joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140031730
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov word [rsp + 0x88], ax
mov byte [rsp + 0x8a], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x140031842
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x14003181a
add rax, 1
cmp rax, 0x6b
je 0x140031837
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x140031810
cmp edx, 0x6a
je 0x140031837
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x14003182b

Function at 0x140031be0
Capabilities:
Allocate thread local storage

Disassembly:
push r13
push r12
push rsi
push rbx
sub rsp, 0x28
lea rsi, [0x1403f19c0]
mov rcx, rsi
call fcn.1400314a0
lea r13, [rax + 8]
mov r12, rax
mov rcx, r13
call fcn.140030000
mov ebx, dword [0x1403f19c0]
test ebx, ebx
jne 0x140031c50
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140276218], eax
cmp eax, 0xffffffff
je 0x14022b856
mov dword [0x1403f19c0], 1
mov rcx, r13
call fcn.140030320
test r12, r12
je 0x140031c82
mov rcx, r12
add rsp, 0x28
pop rbx
pop rsi
pop r12
pop r13
jmp fcn.140031860
cmp ebx, 1
je 0x140031c31
mov ecx, 2
call qword [fcn.1400440e0]
mov r9d, ebx
mov r8, rsi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
mov rcx, r13
call fcn.140030320
test r12, r12
jne 0x140031c3e
add rsp, 0x28
pop rbx
pop rsi
pop r12
pop r13
ret
call sub.msvcrt.dll_abort
nop
Function at 0x140034be0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.1400440e0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400440e0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x140034c50
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1403fa6f4]
mov r12, rcx
test ebx, ebx
jle 0x140034d80
mov rax, qword [0x1403fa6f8]
xor r9d, r9d
add rax, 0x18
nop dword [rax + rax]
mov r8, qword [rax]
cmp r8, r12
ja 0x140034c9b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp r12, r8
jb 0x140034d25
add r9d, 1
add rax, 0x28
cmp r9d, ebx
jne 0x140034c80
mov rcx, r12
call fcn.1400356d0
mov rsi, rax
test rax, rax
je 0x140034da2
mov rax, qword [0x1403fa6f8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.140035800
mov edx, dword [rsi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1403fa6f8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140034d87
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140034d1e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140034d30
add dword [0x1403fa6f4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x1403fa6f8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140034d1e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140034be0
nop dword [rax]
xor ebx, ebx
jmp 0x140034ca8
mov rax, qword [0x1403fa6f8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140034be0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140034be0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140035320
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r13, [0x1403fa760]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1403fa740]
test rbx, rbx
je 0x14003537c
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x140035373
test r12, r12
je 0x140035373
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140035358
mov rcx, r13
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400356d0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1403e3c20]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400356f0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400356f8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400356f0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140035745
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14003573c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400356f0
add rax, 0x28
cmp rax, r9
jne 0x140035728
xor eax, eax
ret

Function at 0x140035750
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1403e3c20]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140035770
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140035778
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x140035770
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x140035800
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1403e3c20]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140035820
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140035828
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret
Function at 0x140059df0
Capabilities:
Query environment variable

Disassembly:
push rbp
mov rbp, rsp
push r12
mov r12d, ecx
and rsp, 0xfffffffffffffff0
sub rsp, 0x40
mov eax, dword [0x140276380]
test eax, eax
je 0x140059f50
cmp eax, 0xffffffff
je 0x140059f7a
lea rax, [0x1403e4200]
lea rcx, [0x1402bd166]
cmp dword [rax], r12d
jne 0x140059e70
movzx edx, byte [rcx]
mov eax, 7
lea r9, [0x1402764bf]
mov r8d, 6
test dl, dl
je 0x140059e5c
nop dword [rax]
mov byte [r9 + rax], dl
movsxd r8, eax
add rax, 1
movzx edx, byte [rcx + rax - 7]
test dl, dl
jne 0x140059e48
lea rax, str.ERRNO
mov byte [rax + r8], 0
mov r12, qword [rbp - 8]
leave
ret
mov rcx, qword [rax + 0x18]
add rax, 0x10
test rcx, rcx
jne 0x140059e26
cmp r12d, 9
jle 0x140059f87
mov edx, 1
lea r11, [rsp + 0x1f]
lea r9, [0x1402bd184]
mov r10d, 0xcccccccd
nop
mov eax, r12d
mov ecx, r12d
imul rax, r10
shr rax, 0x23
lea r8d, [rax + rax*4]
add r8d, r8d
sub ecx, r8d
mov r8d, edx
movsxd rcx, ecx
movzx ecx, byte [r9 + rcx]
mov byte [r11 + rdx], cl
mov ecx, r12d
add rdx, 1
mov r12d, eax
cmp ecx, 0x63
jg 0x140059ea0
movsxd rax, r12d
mov edx, r12d
movsxd rcx, r8d
imul rax, rax, 0x66666667
sar edx, 0x1f
sar rax, 0x22
sub eax, edx
lea rdx, [rsp + rcx + 0x20]
lea eax, [rax + rax*4]
add eax, eax
sub r12d, eax
movsxd rax, r12d
movzx eax, byte [r9 + rax]
mov byte [rsp + rcx + 0x20], al
lea rax, [0x1402764c6]
lea r9, [rax + 1]
add r9, rcx
nop word cs:[rax + rax]
movzx ecx, byte [rdx]
add rax, 1
sub rdx, 1
mov byte [rax - 1], cl
cmp rax, r9
jne 0x140059f20
lea edx, [r8 + 7]
lea rax, str.ERRNO
movsxd rdx, edx
mov byte [rax + rdx], 0
jmp 0x140059e68
lea rcx, str._JSON_C_STRERROR_ENABLE
call sub.msvcrt.dll_getenv
test rax, rax
je 0x140059f70
mov dword [0x140276380], 1
jmp 0x140059e18
mov dword [0x140276380], 0xffffffff
mov ecx, r12d
mov r12, qword [rbp - 8]
leave
jmp sub.msvcrt.dll_strerror
xor r8d, r8d
lea r9, [0x1402bd184]
jmp 0x140059ed6
Function at 0x140076ee0
Capabilities:
Read file on windows

Disassembly:
push r14
lea rdx, [0x1402c6600]
push r13
xor r13d, r13d
push r12
sub rsp, 0x30
call sub.msvcrt.dll_fopen
test rax, rax
je 0x140076f6f
mov r12, rax
mov r8d, 2
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_fseek
mov rcx, r12
xor r14d, r14d
call sub.msvcrt.dll_ftell
mov rcx, r12
movsxd r13, eax
call sub.msvcrt.dll_rewind
test r13, r13
jne 0x140076f80
mov r9, r12
mov r8, r13
mov edx, 1
mov rcx, r14
call sub.msvcrt.dll_fread
cmp rax, r13
jne 0x140076f90
mov rdx, r13
mov rcx, r14
call fcn.140077b60
mov r13, rax
test rax, rax
je 0x140076f5f
mov rcx, rax
call fcn.1400757a0
mov rcx, r14
call sub.msvcrt.dll_free
mov rcx, r12
call sub.msvcrt.dll_fclose
add rsp, 0x30
mov rax, r13
pop r12
pop r13
pop r14
ret
mov rcx, r13
call sub.msvcrt.dll_malloc
mov r14, rax
jmp 0x140076f2c
lea rax, str.Cant_read__llu_bytes_from_the_disk_
mov qword [rsp + 0x28], r13
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov r9d, 7
lea r8, str.dap_cert_file
xor r13d, r13d
call fcn.14005a150
mov rcx, r14
call sub.msvcrt.dll_free
jmp 0x140076f67

Function at 0x140076fd0
Capabilities:
Write file on windows

Disassembly:
push r14
mov r14, rcx
mov rcx, rdx
push r13
mov r13, rdx
push r12
sub rsp, 0x50
call fcn.1400f75e0
mov r12, rax
mov rcx, rax
call fcn.1400f6690
mov rcx, r12
call sub.msvcrt.dll_free
lea rdx, [0x1402c63ec]
mov rcx, r13
call sub.msvcrt.dll_fopen
test rax, rax
je 0x1400770fa
lea rdx, [rsp + 0x4c]
mov rcx, r14
mov dword [rsp + 0x4c], 0
mov r12, rax
call fcn.140077e00
mov r13, rax
test rax, rax
je 0x1400770c0
mov r8d, dword [rsp + 0x4c]
mov rcx, rax
mov r9, r12
mov edx, 1
call sub.msvcrt.dll_fwrite
mov ecx, dword [rsp + 0x4c]
cmp rcx, rax
je 0x1400770a0
mov qword [rsp + 0x30], rax
lea rax, str.Cant_write__u_bytes_on_disk__processed_only__zu__
mov r9d, 7
xor edx, edx
mov dword [rsp + 0x28], ecx
lea r8, str.dap_cert_file
xor ecx, ecx
mov qword [rsp + 0x20], rax
call fcn.14005a150
mov rcx, r12
call sub.msvcrt.dll_fclose
mov eax, 0xfffffffd
add rsp, 0x50
pop r12
pop r13
pop r14
ret
mov rcx, r12
call sub.msvcrt.dll_fclose
mov rcx, r13
call sub.msvcrt.dll_free
add rsp, 0x50
xor eax, eax
pop r12
pop r13
pop r14
ret
lea rax, str.Cant_serialize_certificate_in_memory
mov r9d, 7
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
lea r8, str.dap_cert_file
call fcn.14005a150
mov rcx, r12
call sub.msvcrt.dll_fclose
add rsp, 0x50
mov eax, 0xfffffffc
pop r12
pop r13
pop r14
ret
call qword [sym.imp.msvcrt.dll__errno]
mov ecx, dword [rax]
call sub.msvcrt.dll_strerror
mov qword [rsp + 0x28], r13
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x30], rax
lea rax, str.Cant_open_file__s_for_write:__s
mov r9d, 7
lea r8, str.dap_cert_file
mov qword [rsp + 0x20], rax
call fcn.14005a150
mov eax, 0xfffffffe
jmp 0x14007708d
Function at 0x140095c20
Capabilities:
Delete file
Move file

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
test rcx, rcx
je 0x140095e0c
mov rax, qword [rcx + 0x180]
mov r13, rcx
test rax, rax
je 0x140095c68
call rax
xor r15d, r15d
add rsp, 0x58
mov eax, r15d
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [rcx + 0x1b0]
xor r15d, r15d
mov r12, qword [rax + 8]
test r12, r12
je 0x140095c4d
mov rcx, r12
call fcn.1400c5e50
test al, al
je 0x140095dd0
mov rcx, r12
call fcn.140035ff0
mov r14, rax
test rax, rax
je 0x140095e17
mov rcx, rax
xor r15d, r15d
call fcn.140036200
test rax, rax
je 0x140095d88
lea rsi, [rsp + 0x44]
lea rdi, str._s.unsorted
movabs rbx, 0x636e69616863642e
jmp 0x140095ce1
mov rcx, r14
call fcn.140036200
test rax, rax
je 0x140095d88
lea r12, [rax + 8]
mov qword [rsp + 0x44], rbx
mov rcx, r12
mov dword [rsp + 0x4c], 0x6c6c65
call sub.msvcrt.dll_strlen
mov r8d, 0xb
mov rdx, rsi
lea rcx, [r12 + rax - 0xb]
call sub.msvcrt.dll_strncmp
test eax, eax
jne 0x140095cd0
mov rdx, r12
mov rcx, r13
call fcn.14007d8a0
mov rcx, r13
mov rdx, rax
mov r12, rax
call fcn.14007e160
add r15d, eax
mov rax, qword [r13 + 0x1b0]
cmp byte [rax + 0x28], 0
je 0x140095cd0
add r12, 0x10
mov rcx, rdi
mov rdx, r12
call fcn.1400fe7d0
mov rcx, rax
mov rbp, rax
call fcn.140044838
cmp eax, 0xffffffff
je 0x140095de0
mov rdx, rbp
mov rcx, r12
call sub.msvcrt.dll_rename
test eax, eax
jne 0x140095d98
mov rcx, rbp
call sub.msvcrt.dll_free
mov rcx, r14
call fcn.140036200
test rax, rax
jne 0x140095ce1
nop dword [rax]
mov rcx, r14
call fcn.140036450
jmp 0x140095c4d
lea rax, str.Couldnt_rename__s_to__s
mov qword [rsp + 0x30], rbp
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], r12
mov r9d, 7
lea r8, [0x1402ab2d2]
mov qword [rsp + 0x20], rax
call fcn.14005a150
jmp 0x140095d6c
mov rcx, r12
call fcn.1400f6690
jmp 0x140095c8b
lea rax, str.File__s_doesnt_exist
mov qword [rsp + 0x28], rbp
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov r9d, 7
lea r8, [0x1402ab2d2]
call fcn.14005a150
jmp 0x140095d5d
mov r15d, 0xfffffffe
jmp 0x140095c4d
mov r9d, 7
xor edx, edx
xor ecx, ecx
mov r15d, 0xfffffffd
mov rax, qword [r13 + 0x1b0]
lea r8, [0x1402ab2d2]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
lea rax, [0x1402ab542]
mov qword [rsp + 0x20], rax
call fcn.14005a150
jmp 0x140095c4d
Function at 0x1400a5fc0
Capabilities:
Read file on windows

Disassembly:
push r13
push r12
push rsi
mov rsi, rdx
lea rdx, [0x14027c4de]
push rbx
sub rsp, 0x38
call sub.msvcrt.dll_fopen
mov r12, rax
test rax, rax
je 0x1400a6040
mov r8d, 2
xor edx, edx
mov rcx, rax
xor r13d, r13d
call sub.msvcrt.dll_fseek
mov rcx, r12
call sub.msvcrt.dll_ftell
mov rcx, r12
movsxd rbx, eax
call sub.msvcrt.dll_rewind
test rbx, rbx
jne 0x1400a6048
mov r9, r12
mov r8, rbx
mov edx, 1
mov rcx, r13
call sub.msvcrt.dll_fread
cmp rax, rbx
jne 0x1400a6058
mov rcx, r12
mov r12, r13
call sub.msvcrt.dll_fclose
mov qword [rsi], rbx
add rsp, 0x38
mov rax, r12
pop rbx
pop rsi
pop r12
pop r13
ret
xor ebx, ebx
jmp 0x1400a602f
mov rcx, rbx
call sub.msvcrt.dll_malloc
mov r13, rax
jmp 0x1400a600c
lea rax, [0x14027c4e8]
mov qword [rsp + 0x28], rbx
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov r9d, 7
lea r8, str.chain_net_srv_datum
call fcn.14005a150
mov rcx, r13
call sub.msvcrt.dll_free
mov rcx, r12
xor r12d, r12d
call sub.msvcrt.dll_fclose
add rsp, 0x38
mov rax, r12
pop rbx
pop rsi
pop r12
pop r13
ret
Function at 0x1400b3cb0
Capabilities:
Send data
Send data on socket

Disassembly:
push rdi
push rsi
push rbx
mov rbx, rcx
sub rsp, 0x30
cmp byte [rcx + 0x13c], 0
jne 0x1400b3d58
mov esi, edx
lea rdi, [rcx + 0x1ac]
lea rdx, [rcx + 0x1a8]
mov eax, dword [rcx + 0x1a8]
test eax, eax
jne 0x1400b3d30
mov eax, esi
xchg dword [rdi], eax
cmp esi, 7
je 0x1400b3d48
test esi, esi
je 0x1400b3d18
call fcn.1400d3430
add rsp, 0x30
mov r8, rbx
mov r9d, 2
pop rbx
mov rcx, rax
lea rdx, [fcn.1401c1810]
pop rsi
pop rdi
jmp fcn.1400fad20
mov rcx, qword [rbx]
call fcn.140094de0
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
xor eax, eax
mov ecx, eax
xchg dword [rdi], ecx
xchg dword [rdx], eax
xor ecx, ecx
mov rdx, rbx
call fcn.1401c1810
jmp 0x1400b3ce1
mov rcx, qword [rbx]
call fcn.140094d20
jmp 0x1400b3cee
mov rax, qword [rcx + 8]
mov r9d, 7
xor edx, edx
xor ecx, ecx
lea r8, str.chain_net
mov qword [rsp + 0x28], rax
lea rax, str.Cant_change_state_of_loading_network__s
mov qword [rsp + 0x20], rax
call fcn.14005a150
mov eax, 0xffffffff
jmp 0x1400b3d22
Function at 0x1400bae20
Capabilities:
Create directory

Disassembly:
push rbp
xor eax, eax
mov ecx, 0x1e
mov rbp, rsp
push r15
push r14
push r13
push r12
lea r12, [0x1403eb100]
push rdi
mov r13, r12
push rsi
push rbx
and rsp, 0xfffffffffffffff0
sub rsp, 0x150
cmp byte [0x1403eb100], 0
mov qword [rsp + 0x40], 0
lea rdi, [rsp + 0x50]
rep stosq qword [rdi], rax
mov rax, qword [0x1403e40d0]
mov qword [rsp + 0x48], 0
mov rcx, qword [rax]
mov dword [rdi], 0
je 0x1400bafa8
mov rcx, r13
lea rsi, [0x14022c018]
lea rdi, [rsp + 0x40]
call fcn.140035ff0
lea r14, [0x14027cd8d]
mov r12, rax
test rax, rax
je 0x1400baff0
nop dword [rax]
mov rcx, r12
call fcn.140036200
test rax, rax
je 0x1400baf88
lea rbx, [rax + 8]
mov rcx, rbx
call sub.msvcrt.dll_strlen
cmp rax, 8
jbe 0x1400baeb0
lea rcx, [rbx + rax - 8]
mov rdx, rsi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1400baeb0
mov qword [rsp + 0x20], rbx
mov r9, r13
mov r8, r14
mov edx, 0x103
mov rcx, rdi
call fcn.1401ff950
test eax, eax
js 0x1400baeb0
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call fcn.1400bb240
mov qword [rsp + 0x38], rax
test rax, rax
je 0x1400baeb0
mov r15, qword [rax + 0x50]
test r15, r15
je 0x1400baf6a
mov rcx, qword [r15 + 0x110]
test rcx, rcx
je 0x1400baf62
cmp qword [r15 + 0x108], 0
je 0x1400baf5d
xor ebx, ebx
nop dword [rax + rax]
mov rcx, qword [rcx + rbx*8]
add rbx, 1
call fcn.140076780
cmp rbx, qword [r15 + 0x108]
mov rcx, qword [r15 + 0x110]
jb 0x1400baf40
call sub.msvcrt.dll_free
mov rcx, r15
call sub.msvcrt.dll_free
mov rcx, qword [rsp + 0x38]
call sub.msvcrt.dll_free
mov rcx, r12
call fcn.140036200
test rax, rax
jne 0x1400baec1
nop dword [rax]
mov rcx, r12
call fcn.140036450
xor eax, eax
lea rsp, [rbp - 0x38]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rdx, [0x14027c8ad]
xor r9d, r9d
lea r8, [0x14027c8a0]
call fcn.1400c0260
mov rdx, rax
test rax, rax
je 0x1400baffc
mov r8d, 0x103
mov rcx, r12
mov r13, r12
call sub.msvcrt.dll_strncpy
test r12, r12
jne 0x1400bae82
mov eax, 0xffffffff
jmp 0x1400baf92
mov rcx, r13
call sub.msvcrt.dll__mkdir
xor eax, eax
jmp 0x1400baf92
lea rax, str.No_path_to_wallets_store_has_been_defined
mov r9d, 5
lea r8, str.dap_chain_wallet
xor ecx, ecx
mov qword [rsp + 0x20], rax
call fcn.14005a150
mov eax, 0xffffffff
jmp 0x1400baf92
Function at 0x1400c1220
Capabilities:
Create tcp socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push rbp
mov rbp, rsp
push r14
push r13
mov r13, rcx
mov ecx, 1
push r12
push rbx
mov rbx, rdx
mov edx, 0x370
and rsp, 0xfffffffffffffff0
sub rsp, 0x50
call sub.msvcrt.dll_calloc
mov r12, rax
test rax, rax
je 0x1400c13b5
mov qword [rax + 0x60], 1
mov edx, 1
mov ecx, 1
mov qword [rax + 0x80], 1
call sub.msvcrt.dll_calloc
mov dword [r12 + 0x34], 6
mov qword [r12 + 0x70], rax
call fcn.1401069c0
mov ecx, 2
xor r8d, r8d
mov qword [r12 + 0x280], rbx
mov qword [r12 + 0x38], rax
mov edx, 2
mov dword [r12 + 0x268], 0x2019
call qword [sym.imp.WS2_32.dll_socket]
mov qword [r12], rax
mov rcx, rax
cmp rax, 0xffffffffffffffff
je 0x1400c1438
lea r9, [rsp + 0x30]
mov r8d, 0x1002
mov edx, 0xffff
mov dword [rsp + 0x30], 0x400
mov dword [rsp + 0x20], 4
mov rbx, qword [sym.imp.WS2_32.dll_setsockopt]
call rbx
mov rcx, qword [r12]
lea r8, [rsp + 0x34]
mov edx, 0x8004667e
mov dword [rsp + 0x34], 1
call qword [sym.imp.WS2_32.dll_ioctlsocket]
lea r9, [rsp + 0x38]
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov dword [rsp + 0x38], 1
mov rcx, qword [r12]
mov r8d, 4
call rbx
test eax, eax
js 0x1400c1400
mov eax, 2
mov ecx, 0x7f000001
mov qword [rsp + 0x40], 0
lea r14, [rsp + 0x40]
mov qword [rsp + 0x48], 0
mov word [rsp + 0x40], ax
call qword [sym.imp.WS2_32.dll_htonl]
mov rcx, qword [r12]
mov r8d, 0x10
mov rdx, r14
mov dword [rsp + 0x44], eax
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
js 0x1400c13c8
mov dword [rsp + 0x3c], 0x64
mov rcx, qword [r12]
lea r8, [rsp + 0x3c]
mov rdx, r14
call qword [sym.imp.WS2_32.dll_getsockname]
movzx eax, word [rsp + 0x42]
mov word [r12 + 0x1c], ax
test r13, r13
je 0x1400c13b5
mov rdx, r12
mov rcx, r13
call fcn.1400c0920
lea rsp, [rbp - 0x20]
mov rax, r12
pop rbx
pop r12
pop r13
pop r14
pop rbp
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r9d, 7
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], eax
lea rax, [0x1402bdd83]
lea r8, str.dap_context
mov qword [rsp + 0x20], rax
call fcn.14005a150
jmp 0x1400c13a5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r9d, 5
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], eax
lea rax, str.Cant_set_up_REUSEADDR_flag_to_the_socket__err:__d
lea r8, str.dap_context
mov qword [rsp + 0x20], rax
call fcn.14005a150
jmp 0x1400c1339
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r9d, 7
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], eax
lea rax, str.Error_creating_socket_for_TYPE_EVENT:__d
lea r8, str.dap_context
mov qword [rsp + 0x20], rax
call fcn.14005a150
mov rcx, r12
xor r12d, r12d
call sub.msvcrt.dll_free
jmp 0x1400c13b5
Function at 0x1400c5e50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
test rcx, rcx
je 0x1400c5e80
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400c5e70
shr eax, 4
add rsp, 0x28
and eax, 1
ret
xor eax, eax
add rsp, 0x28
ret
xor eax, eax
ret
Function at 0x1400c91a0
Capabilities:
Encode data using base64

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
cmp r9d, 1
je 0x1400c93a8
cmp r9d, 2
jne 0x1400c93c7
lea rbx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_UUUUUU
test r8, r8
je 0x1400c93b8
test rdx, rdx
je 0x1400c93b8
movzx r9d, byte [rcx]
lea rax, [rcx + 1]
xor r12d, r12d
mov byte [rsp + 0x2d], r9b
mov r9d, 1
cmp rdx, 1
je 0x1400c92e0
add rcx, rdx
xor esi, esi
mov edx, 1
xor r12d, r12d
jmp 0x1400c9214
cmp rcx, rax
je 0x1400c92c0
mov edx, r9d
movzx r11d, byte [rax]
movzx r10d, dl
add rax, 1
lea r9d, [rdx + 1]
mov byte [rsp + r10 + 0x2d], r11b
cmp dl, 2
jne 0x1400c9208
movzx r9d, byte [rsp + 0x2d]
movzx edx, byte [rsp + 0x2e]
movzx r10d, byte [rsp + 0x2f]
mov r11d, r9d
shl r9d, 4
shr r11b, 2
and r9d, 0x30
movzx r11d, r11b
movzx r11d, byte [rbx + r11]
mov byte [r8 + r12], r11b
mov r11d, edx
shl edx, 2
shr r11b, 4
and edx, 0x3c
add r9d, r11d
mov r11d, r10d
and r10d, 0x3f
movzx r9d, r9b
shr r11b, 6
movzx r9d, byte [rbx + r9]
add edx, r11d
movzx edx, dl
mov byte [r8 + r12 + 1], r9b
movzx edx, byte [rbx + rdx]
lea r9, [r12 + 3]
mov byte [r8 + r12 + 2], dl
movzx edx, byte [rbx + r10]
add r12, 4
mov byte [r8 + r9], dl
cmp rcx, rax
je 0x1400c92ca
mov esi, 1
xor r9d, r9d
jmp 0x1400c9211
test sil, sil
je 0x1400c92e0
test r9b, r9b
jne 0x1400c92e0
add rsp, 0x30
mov rax, r12
pop rbx
pop rsi
pop r12
ret
movzx r10d, r9b
movzx eax, r9b
mov edx, 3
lea r11, [rsp + r10 + 0x2d]
sub edx, eax
je 0x1400c9306
xor eax, eax
mov ecx, eax
add eax, 1
mov byte [r11 + rcx], 0
cmp eax, edx
jb 0x1400c92f8
movzx eax, byte [rsp + 0x2d]
movzx ecx, byte [rsp + 0x2e]
movzx r11d, byte [rsp + 0x2f]
mov esi, eax
shl eax, 4
lea edx, [rcx*4]
shr sil, 2
and eax, 0x30
shr cl, 4
and edx, 0x3c
movzx esi, sil
add eax, ecx
shr r11b, 6
movzx esi, byte [rbx + rsi]
movzx eax, al
add edx, r11d
lea r11, [r12 + 1]
mov byte [r8 + r12], sil
movzx eax, byte [rbx + rax]
mov byte [r8 + r12 + 1], al
cmp r9b, 2
jne 0x1400c9367
movzx edx, dl
movzx eax, byte [rbx + rdx]
mov byte [r8 + r12 + 2], al
mov r12d, 3
add r11, r10
sub r12d, r9d
add r8, r11
movzx r12d, r12b
mov ecx, r12d
test r12d, r12d
je 0x1400c9392
xor eax, eax
mov edx, eax
add eax, 1
mov byte [r8 + rdx], 0x3d
cmp eax, ecx
jb 0x1400c9384
add rsp, 0x30
add r12, r11
mov rax, r12
pop rbx
pop rsi
pop r12
ret
lea rbx, [0x1402c6ac0]
test r8, r8
jne 0x1400c91cc
add rsp, 0x30
xor r12d, r12d
mov rax, r12
pop rbx
pop rsi
pop r12
ret
lea rcx, str.Unknown_base64_standard
call sub.msvcrt.dll_perror
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
cmp rcx, 0x10
jbe 0x1400c93f0
lea rax, [rcx - 8]
ret
sub rsp, 0x38
lea rax, str.blowfish_cbc_decryption_size_in_ct_with_iv_must_be_more_than_28_bytes
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov r9d, 7
lea r8, str.dap_enc_blowfish
call fcn.14005a150
xor eax, eax
add rsp, 0x38
ret