joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b83e0
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, [0x1403e8100]
push rdi
mov r13, r12
push rsi
push rbx
and rsp, 0xfffffffffffffff0
sub rsp, 0x150
cmp byte [0x1403e8100], 0
mov qword [rsp + 0x40], 0
lea rdi, [rsp + 0x50]
rep stosq qword [rdi], rax
mov rax, qword [0x1403e1770]
mov qword [rsp + 0x48], 0
mov rcx, qword [rax]
mov dword [rdi], 0
je 0x1400b8568
mov rcx, r13
lea rsi, [0x14022a018]
lea rdi, [rsp + 0x40]
call fcn.140035ff0
lea r14, [0x14027b02d]
mov r12, rax
test rax, rax
je 0x1400b85b0
nop dword [rax]
mov rcx, r12
call fcn.140036200
test rax, rax
je 0x1400b8548
lea rbx, [rax + 8]
mov rcx, rbx
call sub.msvcrt.dll_strlen
cmp rax, 8
jbe 0x1400b8470
lea rcx, [rbx + rax - 8]
mov rdx, rsi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1400b8470
mov qword [rsp + 0x20], rbx
mov r9, r13
mov r8, r14
mov edx, 0x103
mov rcx, rdi
call fcn.1401fd690
test eax, eax
js 0x1400b8470
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call fcn.1400b8800
mov qword [rsp + 0x38], rax
test rax, rax
je 0x1400b8470
mov r15, qword [rax + 0x50]
test r15, r15
je 0x1400b852a
mov rcx, qword [r15 + 0x110]
test rcx, rcx
je 0x1400b8522
cmp qword [r15 + 0x108], 0
je 0x1400b851d
xor ebx, ebx
nop dword [rax + rax]
mov rcx, qword [rcx + rbx*8]
add rbx, 1
call fcn.140075620
cmp rbx, qword [r15 + 0x108]
mov rcx, qword [r15 + 0x110]
jb 0x1400b8500
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 0x1400b8481
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, [0x14027ab4d]
xor r9d, r9d
lea r8, [0x14027ab40]
call fcn.1400bd830
mov rdx, rax
test rax, rax
je 0x1400b85bc
mov r8d, 0x103
mov rcx, r12
mov r13, r12
call sub.msvcrt.dll_strncpy
test r12, r12
jne 0x1400b8442
mov eax, 0xffffffff
jmp 0x1400b8552
mov rcx, r13
call sub.msvcrt.dll__mkdir
xor eax, eax
jmp 0x1400b8552
lea rax, str.No_path_to_wallets_store_has_been_defined
mov r9d, 5
lea r8, [0x14027a9e0]
xor ecx, ecx
mov qword [rsp + 0x20], rax
call fcn.14005aec0
mov eax, 0xffffffff
jmp 0x1400b8552
Function at 0x1400be7f0
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, 0x368
and rsp, 0xfffffffffffffff0
sub rsp, 0x50
call sub.msvcrt.dll_calloc
mov r12, rax
test rax, rax
je 0x1400be985
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.140103830
mov ecx, 2
xor r8d, r8d
mov qword [r12 + 0x278], rbx
mov qword [r12 + 0x38], rax
mov edx, 2
mov dword [r12 + 0x260], 0x2019
call qword [sym.imp.WS2_32.dll_socket]
mov qword [r12], rax
mov rcx, rax
cmp rax, 0xffffffffffffffff
je 0x1400bea08
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 0x1400be9d0
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 0x1400be998
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 0x1400be985
mov rdx, r12
mov rcx, r13
call fcn.1400bdef0
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, [0x1402bc3c3]
lea r8, str.dap_context
mov qword [rsp + 0x20], rax
call fcn.14005aec0
jmp 0x1400be975
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.14005aec0
jmp 0x1400be909
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.14005aec0
mov rcx, r12
xor r12d, r12d
call sub.msvcrt.dll_free
jmp 0x1400be985
Function at 0x1400c33a0
Capabilities:
Check if file exists
Get file attributes

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

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
cmp r9d, 1
je 0x1400c68f8
cmp r9d, 2
jne 0x1400c6917
lea rbx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_UUUUUU
test r8, r8
je 0x1400c6908
test rdx, rdx
je 0x1400c6908
movzx r9d, byte [rcx]
lea rax, [rcx + 1]
xor r12d, r12d
mov byte [rsp + 0x2d], r9b
mov r9d, 1
cmp rdx, 1
je 0x1400c6830
add rcx, rdx
xor esi, esi
mov edx, 1
xor r12d, r12d
jmp 0x1400c6764
cmp rcx, rax
je 0x1400c6810
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 0x1400c6758
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 0x1400c681a
mov esi, 1
xor r9d, r9d
jmp 0x1400c6761
test sil, sil
je 0x1400c6830
test r9b, r9b
jne 0x1400c6830
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 0x1400c6856
xor eax, eax
mov ecx, eax
add eax, 1
mov byte [r11 + rcx], 0
cmp eax, edx
jb 0x1400c6848
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 0x1400c68b7
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 0x1400c68e2
xor eax, eax
mov edx, eax
add eax, 1
mov byte [r8 + rdx], 0x3d
cmp eax, ecx
jb 0x1400c68d4
add rsp, 0x30
add r12, r11
mov rax, r12
pop rbx
pop rsi
pop r12
ret
lea rbx, [0x1402c5100]
test r8, r8
jne 0x1400c671c
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 0x1400c6940
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.14005aec0
xor eax, eax
add rsp, 0x38
ret
Function at 0x1400c8e90
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rax, r8
mov rbp, rsp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
and rsp, 0xfffffffffffffff0
sub rsp, 0x160
and eax, 0xf
mov qword [rbp + 0x28], r9
mov qword [rsp + 0x48], rax
jne 0x1400c8fc4
mov r12, r8
cmp r8, qword [rbp + 0x30]
ja 0x1400c8fa0
mov rdi, rdx
mov rdx, qword [rcx + 8]
lea r13, [rsp + 0x50]
mov rax, qword [rcx + 0x98]
lea r15, [rsp + 0x70]
mov rcx, r13
movdqu xmm0, xmmword [rdx]
mov rsi, qword [rax]
mov r14, qword [rax + 8]
movaps xmmword [rsp + 0x50], xmm0
movdqu xmm1, xmmword [rdx + 0x10]
mov edx, 8
movaps xmmword [rsp + 0x60], xmm1
call fcn.140206320
mov rcx, r13
mov rdx, r15
mov r13, r12
call fcn.14004f080
shr r13, 4
je 0x1400c8f6a
mov rbx, qword [rbp + 0x28]
shl r13, 4
add r13, rbx
nop word [rax + rax]
mov rdx, rbx
mov rcx, rdi
mov r8, r15
add rdi, 0x10
call fcn.140044b40
mov rax, r14
xor dword [rbx], esi
shr rsi, 0x20
xor dword [rbx + 8], r14d
shr rax, 0x20
xor dword [rbx + 4], esi
xor dword [rbx + 0xc], eax
add rbx, 0x10
mov rsi, qword [rdi - 0x10]
mov r14, qword [rdi - 8]
cmp r13, rbx
jne 0x1400c8f30
mov rax, qword [rbp + 0x28]
movzx eax, byte [rax + r12 - 1]
cmp r12, rax
jb 0x1400c8ff1
sub r12, rax
mov qword [rsp + 0x48], r12
mov rax, qword [rsp + 0x48]
lea rsp, [rbp - 0x38]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rax, str.buf_out_size___a_in_size
mov r9d, 7
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
lea r8, str.dap_enc_aes
call fcn.14005aec0
jmp 0x1400c8f81
lea rax, str.Bad_in_size
mov r9d, 7
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
lea r8, str.dap_enc_aes
call fcn.14005aec0
mov qword [rsp + 0x48], 0
jmp 0x1400c8f81
mov qword [rsp + 0x28], rax
lea rax, str.Padding_size_is__zu_while_whole_message_is_just__zu
mov r9d, 8
lea r8, str.dap_enc_aes
mov qword [rsp + 0x30], r12
mov edx, 0x85
lea rcx, str.dap_enc_iaes256_cbc_decrypt_fast
mov qword [rsp + 0x20], rax
call fcn.14005aec0
jmp 0x1400c8f81
Function at 0x1400ce5d0
Capabilities:
Get system information on windows
Initialize winsock library

Disassembly:
push rbp
mov rbp, rsp
push r12
mov r12, rdx
push rsi
push rbx
mov ebx, ecx
mov ecx, 0x202
and rsp, 0xfffffffffffffff0
sub rsp, 0x200
lea rdx, [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1400ce710
mov rax, qword [0x1403e1770]
mov rcx, qword [rax]
xor eax, eax
test rcx, rcx
je 0x1400ce627
xor r9d, r9d
lea r8, str.debug_reactor
lea rdx, [0x1402bc52b]
call fcn.1400bd7c0
lea rsi, [rsp + 0x30]
mov byte [0x1403ec5a0], al
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [rsp + 0x50]
cmp ebx, edx
cmova rbx, rdx
test ebx, ebx
je 0x1400ce6e0
mov dword [0x14024c5b0], ebx
lea rdx, [rbx*8]
mov ecx, 1
call sub.msvcrt.dll_calloc
mov qword [0x1403ec5a8], rax
test rax, rax
je 0x1400ce843
call fcn.1400bef30
test eax, eax
jne 0x1400ce751
mov rcx, r12
call fcn.140103fe0
call fcn.1400cedb0
mov r12d, eax
test eax, eax
jne 0x1400ce814
mov eax, dword [0x14024c5b0]
mov r9d, 2
xor edx, edx
xor ecx, ecx
lea r8, str.dap_events
mov dword [rsp + 0x28], eax
lea rax, str.Initialized_event_socket_reactor_for__u_threads
mov qword [rsp + 0x20], rax
call fcn.14005aec0
mov eax, r12d
mov dword [0x1403ec5b0], 1
lea rsp, [rbp - 0x18]
pop rbx
pop rsi
pop r12
pop rbp
ret
mov dword [0x14024c5b0], edx
shl rdx, 3
jne 0x1400ce65b
mov qword [0x1403ec5a8], 0
mov r12d, 0xffffffff
lea rsp, [rbp - 0x18]
mov eax, r12d
pop rbx
pop rsi
pop r12
pop rbp
ret
mov dword [rsp + 0x28], eax
mov r9d, 8
mov edx, 0xe4
lea rax, str.Couldnt_init_Winsock_DLL__error:__d
mov qword [rsp + 0x20], rax
lea r8, str.dap_events
lea rcx, str.dap_events_init
mov r12d, 2
call fcn.14005aec0
lea rsp, [rbp - 0x18]
mov eax, r12d
pop rbx
pop rsi
pop r12
pop rbp
ret
lea rax, str.Cant_init_client_submodule_dap_context___
mov r9d, 8
lea r8, str.dap_events
mov edx, 0xf5
mov qword [rsp + 0x20], rax
lea rcx, str.dap_events_init
call fcn.14005aec0
lea rax, str.Deinit_events_subsystem
mov r9d, 7
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
lea r8, str.dap_events
call fcn.14005aec0
call fcn.1400f7e80
call fcn.1400cea60
call fcn.140103e10
mov eax, dword [0x14024c5b0]
test eax, eax
je 0x1400ce7e8
xor ebx, ebx
nop dword [rax + rax]
mov rax, qword [0x1403ec5a8]
mov edx, ebx
add ebx, 1
mov rax, qword [rax + rdx*8]
mov rdx, rsi
mov rax, qword [rax + 0x70]
mov rcx, qword [rax + 0x38]
call fcn.1400337d0
cmp ebx, dword [0x14024c5b0]
jb 0x1400ce7c0
mov rcx, qword [0x1403ec5a8]
test rcx, rcx
je 0x1400ce7f9
call sub.msvcrt.dll_free
mov dword [0x1403ec5b0], 0
mov r12d, 0xffffffff
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x1400ce701
lea rax, str.Cant_init_client_submodule_dap_events_socket_init___
mov r9d, 8
lea r8, str.dap_events
mov edx, 0xfb
mov qword [rsp + 0x20], rax
lea rcx, str.dap_events_init
call fcn.14005aec0
jmp 0x1400ce77b
or r12d, 0xffffffff
jmp 0x1400ce701
Function at 0x1400ce890
Capabilities:
Set socket configuration

Disassembly:
push r12
mov r12, rdx
push rsi
push rbx
mov ebx, ecx
sub rsp, 0x50
cmp ecx, 1
je 0x1400ce8f0
test ecx, 0xfffffff7
je 0x1400ce990
lea rax, str.Cant_create_socket_type__d
mov dword [rsp + 0x28], ecx
xor r12d, r12d
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, str.dap_events_socket
mov edx, 0x1d3
lea rcx, str.dap_events_socket_create
call fcn.14005aec0
add rsp, 0x50
mov rax, r12
pop rbx
pop rsi
pop r12
ret
mov edx, 2
xor r8d, r8d
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
lea r8, [rsp + 0x4c]
mov edx, 0x8004667e
mov dword [rsp + 0x4c], 1
mov rsi, rax
mov rcx, rax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jne 0x1400ce9a0
mov rdx, r12
mov rcx, rsi
call fcn.1400cfa20
mov r12, rax
test rax, rax
je 0x1400ce9d8
mov dword [rax + 0x34], ebx
mov rax, qword [0x1403e17a0]
lea r8, str.dap_events_socket
cmp byte [rax], 0
mov eax, 0
mov dword [rsp + 0x30], ebx
cmove r8, rax
lea rax, str.Created_socket__llu_type__d
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x28], rsi
xor ecx, ecx
mov qword [rsp + 0x20], rax
call fcn.14005aec0
add rsp, 0x50
mov rax, r12
pop rbx
pop rsi
pop r12
ret
mov edx, 1
jmp 0x1400ce8f5
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_ioctl__d
lea r8, str.dap_events_socket
mov qword [rsp + 0x20], rax
call fcn.14005aec0
jmp 0x1400ce925
lea rax, str.Cant_allocate_memory_for_the_new_esocket
mov r9d, 8
lea r8, str.dap_events_socket
mov edx, 0x1e9
mov qword [rsp + 0x20], rax
lea rcx, str.dap_events_socket_create
call fcn.14005aec0
jmp 0x1400ce8df

Function at 0x1400ced20
Capabilities:
Send data
Send data on socket

Disassembly:
push rbp
mov edx, 2
mov rbp, rsp
push r12
and rsp, 0xfffffffffffffff0
sub rsp, 0x40
movzx eax, word [rcx + 0x1c]
mov r12, qword [rcx]
mov ecx, 0x7f000001
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov word [rsp + 0x30], dx
mov word [rsp + 0x32], ax
call qword [sym.imp.WS2_32.dll_htonl]
xor r9d, r9d
mov rcx, r12
mov dword [rsp + 0x28], 0x10
mov dword [rsp + 0x34], eax
lea rax, [rsp + 0x30]
mov r8d, 1
lea rdx, [0x1402bcc90]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
je 0x1400ceda0
mov r12, qword [rbp - 8]
xor eax, eax
leave
ret
mov r12, qword [rbp - 8]
leave
jmp qword [sym.imp.WS2_32.dll_WSAGetLastError]
Function at 0x1400cf1f0
Capabilities:
Send data
Send data on socket

Disassembly:
push rbp
mov rbp, rsp
push r12
push rbx
mov rbx, rcx
and rsp, 0xfffffffffffffff0
sub rsp, 0x50
mov rax, qword [0x1403e17a0]
mov qword [rbp + 0x18], rdx
cmp byte [rax], 0
je 0x1400cf24f
mov eax, 0xffffffff
test rcx, rcx
je 0x1400cf21e
mov eax, dword [rcx]
mov dword [rsp + 0x38], eax
mov rax, qword [rbp + 0x18]
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x30], rbx
lea r8, str.dap_events_socket
xor ecx, ecx
mov qword [rsp + 0x28], rax
lea rax, str.Sent_ptr__p_to_esocket_queue__p___d_
mov qword [rsp + 0x20], rax
call fcn.14005aec0
mov edx, 0x10
mov ecx, 0x20
call qword [sym.imp.msvcrt.dll__aligned_malloc]
mov rdx, rax
mov rax, qword [rbp + 0x18]
mov qword [rdx + 0x10], rax
mov rcx, qword [rbx + 0x2f0]
call qword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
movzx eax, word [rbx + 0x1c]
mov edx, 2
mov qword [rsp + 0x40], 0
mov r12, qword [rbx]
mov word [rsp + 0x40], dx
mov ecx, 0x7f000001
mov qword [rsp + 0x48], 0
mov word [rsp + 0x42], ax
call qword [sym.imp.WS2_32.dll_htonl]
lea rdx, [rbp + 0x18]
xor r9d, r9d
mov rcx, r12
mov dword [rsp + 0x44], eax
lea rax, [rsp + 0x40]
mov r8d, 8
mov dword [rsp + 0x28], 0x10
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_sendto]
mov r8d, eax
xor eax, eax
cmp r8d, 0xffffffff
je 0x1400cf2f0
lea rsp, [rbp - 0x10]
pop rbx
pop r12
pop rbp
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rsp, [rbp - 0x10]
pop rbx
pop r12
pop rbp
ret

Function at 0x1400d0a30
Capabilities:
Read file on windows

Disassembly:
test rcx, rcx
je 0x1400d0a90
push r12
mov r12, rdx
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x1400d0a80
mov qword [rdx], 0
mov rbx, r8
test r8, r8
je 0x1400d0a5a
mov qword [r8], 0
lea rdx, [0x1403debf5]
call sub.msvcrt.dll_fopen
mov rcx, rax
test rax, rax
je 0x1400d0a80
add rsp, 0x28
mov r8, rbx
mov rdx, r12
pop rbx
pop r12
jmp fcn.1401203e0
add rsp, 0x28
xor eax, eax
pop rbx
pop r12
ret
xor eax, eax
ret

Function at 0x1400d0aa0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
test rcx, rcx
je 0x1400d0ac0
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
setne al
add rsp, 0x28
ret
xor eax, eax
ret

Function at 0x1400d0ad0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
test rcx, rcx
je 0x1400d0b00
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400d0af0
shr al, 7
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret
xor eax, eax
ret
Function at 0x1400d0e90
Capabilities:
Enumerate files on windows

Disassembly:
push rbp
mov rbp, rsp
push r15
push r14
xor r14d, r14d
push r13
push r12
mov r12, rcx
push rdi
push rsi
push rbx
and rsp, 0xfffffffffffffff0
sub rsp, 0x160
call sub.msvcrt.dll_strlen
lea rdi, [rsp + 0x4c]
lea rcx, [rax + 2]
mov rbx, rax
call sub.msvcrt.dll_malloc
mov r8, rbx
mov rdx, r12
mov r13, rax
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov byte [r13 + rbx], 0x2a
mov rcx, r13
mov byte [r13 + rbx + 1], 0
lea rbx, [rsp + 0x20]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rsi, qword [sym.imp.KERNEL32.dll_FindNextFileA]
mov r12, rax
nop
mov rdx, rbx
mov rcx, r12
call rsi
test eax, eax
je 0x1400d0f54
cmp dword [rsp + 0x20], 0x10
jne 0x1400d0f00
cmp word [rdi], 0x2e2e
je 0x1400d0f80
cmp word [rdi], 0x2e
je 0x1400d0f00
mov ecx, 0x10
call sub.msvcrt.dll_malloc
mov rcx, rdi
mov r15, rax
call fcn.1400fb5e0
mov qword [r15 + 8], 0
mov qword [r15], rax
test r14, r14
jne 0x1400d0f90
mov r14, r15
mov rdx, rbx
mov rcx, r12
call rsi
test eax, eax
jne 0x1400d0f0c
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, r13
call sub.msvcrt.dll_free
lea rsp, [rbp - 0x38]
mov rax, r14
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
cmp byte [rdi + 2], 0
je 0x1400d0f00
jmp 0x1400d0f1a
mov rax, r14
nop dword [rax + rax]
mov rdx, rax
mov rax, qword [rax + 8]
test rax, rax
jne 0x1400d0f98
mov qword [rdx + 8], r15
jmp 0x1400d0f00
Function at 0x1400d7770
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push r13
push r12
sub rsp, 0x58
test r8, r8
je 0x1400d7939
lea rax, str.Checking_url_path__s
mov r12, r8
xor r9d, r9d
mov r15, rcx
mov qword [rsp + 0x28], r8
xor ecx, ecx
mov r14, rdx
lea r8, str.dap_http_folder
mov qword [rsp + 0x20], rax
xor edx, edx
call fcn.14005aec0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400d78c0
test al, 0x10
je 0x1400d78c0
lea rax, str.File_service_for__s____s
mov qword [rsp + 0x30], r12
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov r9d, 2
lea r8, str.dap_http_folder
mov qword [rsp + 0x28], r14
call fcn.14005aec0
mov edx, 0x1008
mov ecx, 1
call sub.msvcrt.dll_calloc
mov r13, rax
test rax, rax
je 0x1400d797f
mov r8d, 0xfff
mov rdx, r12
mov rcx, rax
call sub.msvcrt.dll_strncpy
mov ecx, 0x492
call fcn.1400019f8
mov qword [r13 + 0x1000], rax
mov rcx, rax
test rax, rax
je 0x1400d7942
lea rdx, str.data.mag
call fcn.140001b7e
mov r12d, eax
test eax, eax
jne 0x1400d78f0
lea rax, [0x1400d79d0]
xor r9d, r9d
mov r8, r13
mov rdx, r14
mov qword [rsp + 0x40], rax
lea rax, [0x1400d79c0]
mov rcx, r15
mov qword [rsp + 0x38], rax
lea rax, [0x1400d7b20]
mov qword [rsp + 0x30], rax
lea rax, [0x1400d7ac0]
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
call fcn.1400d5090
add rsp, 0x58
mov eax, r12d
pop r12
pop r13
pop r14
pop r15
ret
lea rax, str.Directory_Not_Found_
mov qword [rsp + 0x20], rax
mov r9d, 7
xor edx, edx
xor ecx, ecx
lea r8, str.dap_http_folder
mov r12d, 0xfffffff5
call fcn.14005aec0
jmp 0x1400d78ab
lea rax, str.Cant_load_MIME_magic_detection_database
mov r9d, 8
lea r8, str.dap_http_folder
mov edx, 0x8c
mov qword [rsp + 0x20], rax
lea rcx, str.dap_http_folder_add
mov r12d, 0xfffffffe
call fcn.14005aec0
mov rcx, qword [r13 + 0x1000]
call fcn.140001b59
mov rcx, r13
call sub.msvcrt.dll_free
jmp 0x1400d78ab
lea rax, str.Directory_Path_parameter_is_empty_
jmp 0x1400d78c7
lea rax, str.Cant_init_MIME_detection_library
mov r9d, 8
lea r8, str.dap_http_folder
mov edx, 0x81
mov qword [rsp + 0x20], rax
lea rcx, str.dap_http_folder_add
mov r12d, 0xffffffff
call fcn.14005aec0
mov rcx, r13
call sub.msvcrt.dll_free
jmp 0x1400d78ab
lea rax, [0x1402b9598]
mov r9d, 8
or r12d, 0xffffffff
mov edx, 0x79
mov qword [rsp + 0x20], rax
lea r8, str.dap_http_folder
lea rcx, str.dap_http_folder_add
call fcn.14005aec0
jmp 0x1400d78ab
Function at 0x1400f3450
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push rbp
mov rbp, rsp
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x1400f35b5
cmp byte [rcx], 0
mov r12, rcx
je 0x1400f35b5
call sub.msvcrt.dll_strlen
mov rbx, rax
lea r8, [rax + 1]
lea rax, [rax + 0x10]
shr rax, 4
shl rax, 4
call fcn.140035990
xor edx, edx
sub rsp, rax
lea rsi, [rsp + 0x20]
mov rcx, rsi
call sub.msvcrt.dll_memset
mov rdx, r12
mov rcx, rsi
mov r8, rbx
call sub.msvcrt.dll_memcpy
movzx eax, byte [rsp + 0x20]
mov rdx, rsi
mov ecx, eax
and ecx, 0xffffffdf
sub ecx, 0x41
cmp cl, 0x19
jbe 0x1400f3571
mov rdi, qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
nop
xor ebx, ebx
test al, al
je 0x1400f34f0
cmp al, 0x5c
je 0x1400f3550
cmp al, 0x2f
je 0x1400f3550
movzx eax, byte [rdx + 1]
xor ebx, ebx
add rdx, 1
test al, al
jne 0x1400f34d6
nop dword [rax]
mov rcx, rsi
call rdi
cmp eax, 0xffffffff
je 0x1400f34fe
test al, 0x10
jne 0x1400f3512
mov rcx, rsi
call sub.msvcrt.dll__mkdir
mov r12d, eax
cmp eax, 0xffffffff
je 0x1400f359b
test rbx, rbx
je 0x1400f3560
movzx eax, byte [rbx + 1]
mov byte [rbx], 0x5c
lea rdx, [rbx + 1]
xor ebx, ebx
test al, al
jne 0x1400f353c
jmp 0x1400f34f0
movzx eax, byte [rdx + 1]
add rdx, 1
test al, al
je 0x1400f34d0
cmp al, 0x5c
je 0x1400f3530
cmp al, 0x2f
je 0x1400f3530
jmp 0x1400f34d0
mov byte [rdx], 0
mov rbx, rdx
jmp 0x1400f34f0
xor r12d, r12d
lea rsp, [rbp - 0x20]
mov eax, r12d
pop rbx
pop rsi
pop rdi
pop r12
pop rbp
ret
cmp byte [rsp + 0x21], 0x3a
jne 0x1400f34c8
movzx ecx, byte [rsi + 2]
cmp cl, 0x5c
je 0x1400f358e
cmp cl, 0x2f
jne 0x1400f34c8
movzx eax, byte [rsi + 3]
lea rdx, [rsi + 3]
jmp 0x1400f34c8
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 0x14
lea rsp, [rbp - 0x20]
mov eax, r12d
pop rbx
pop rsi
pop rdi
pop r12
pop rbp
ret
call qword [sym.imp.msvcrt.dll__errno]
mov r12d, 0xffffffff
mov dword [rax], 0x16
jmp 0x1400f3563