joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140097280
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 0x14009743c
mov rax, qword [rcx + 0x188]
mov r13, rcx
test rax, rax
je 0x1400972c8
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 + 0x1b8]
xor r15d, r15d
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x1400972ad
call fcn.140035f50
mov r14, rax
test rax, rax
je 0x140097447
mov rcx, rax
call fcn.140036160
test rax, rax
je 0x1400973d0
lea rsi, [rsp + 0x44]
lea rdi, str._s.unsorted
movabs rbx, 0x636e69616863642e
jmp 0x140097329
mov rcx, r14
call fcn.140036160
test rax, rax
je 0x1400973d0
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 0x140097318
mov rdx, r12
mov rcx, r13
call fcn.14007df50
mov rcx, r13
mov rdx, rax
mov r12, rax
call fcn.14007e8c0
add r15d, eax
mov rax, qword [r13 + 0x1b8]
cmp byte [rax + 0x28], 0
je 0x140097318
add r12, 0x10
mov rcx, rdi
mov rdx, r12
call fcn.140101e90
mov rcx, rax
mov rbp, rax
call fcn.1400447a0
cmp eax, 0xffffffff
je 0x140097410
mov rdx, rbp
mov rcx, r12
call sub.msvcrt.dll_rename
test eax, eax
jne 0x1400973e0
mov rcx, rbp
call sub.msvcrt.dll_free
mov rcx, r14
call fcn.140036160
test rax, rax
jne 0x140097329
nop dword [rax]
mov rcx, r14
call fcn.1400363b0
jmp 0x1400972ad
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, [0x1402b0a12]
mov qword [rsp + 0x20], rax
call fcn.14005a0c0
jmp 0x1400973b0
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, [0x1402b0a12]
call fcn.14005a0c0
jmp 0x1400973a1
mov r15d, 0xfffffffe
jmp 0x1400972ad
mov r9d, 7
xor edx, edx
xor ecx, ecx
mov r15d, 0xfffffffd
mov rax, qword [r13 + 0x1b8]
lea r8, [0x1402b0a12]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
lea rax, [0x1402b0cb2]
mov qword [rsp + 0x20], rax
call fcn.14005a0c0
jmp 0x1400972ad
Function at 0x1400a77a0
Capabilities:
Read file on windows

Disassembly:
push r13
push r12
push rsi
mov rsi, rdx
lea rdx, [0x1402815c4]
push rbx
sub rsp, 0x38
call sub.msvcrt.dll_fopen
mov r12, rax
test rax, rax
je 0x1400a7820
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 0x1400a7828
mov r9, r12
mov r8, rbx
mov edx, 1
mov rcx, r13
call sub.msvcrt.dll_fread
cmp rax, rbx
jne 0x1400a7838
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 0x1400a780f
mov rcx, rbx
call sub.msvcrt.dll_malloc
mov r13, rax
jmp 0x1400a77ec
lea rax, [0x1402815c8]
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.14005a0c0
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 0x1400b5900
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 0x1400b59a8
mov esi, edx
lea rdi, [rcx + 0x1ac]
lea rdx, [rcx + 0x1a8]
mov eax, dword [rcx + 0x1a8]
test eax, eax
jne 0x1400b5980
mov eax, esi
xchg dword [rdi], eax
cmp esi, 7
je 0x1400b5998
test esi, esi
je 0x1400b5968
call fcn.1400d55a0
add rsp, 0x30
mov r8, rbx
mov r9d, 2
pop rbx
mov rcx, rax
lea rdx, [fcn.1401c6480]
pop rsi
pop rdi
jmp fcn.1400fe3e0
mov rcx, qword [rbx]
call fcn.1400963f0
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.1401c6480
jmp 0x1400b5931
mov rcx, qword [rbx]
call fcn.140096330
jmp 0x1400b593e
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.14005a0c0
mov eax, 0xffffffff
jmp 0x1400b5972
Function at 0x1400bca70
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, [0x1403f1100]
push rdi
mov r13, r12
push rsi
push rbx
and rsp, 0xfffffffffffffff0
sub rsp, 0x150
cmp byte [0x1403f1100], 0
mov qword [rsp + 0x40], 0
lea rdi, [rsp + 0x50]
rep stosq qword [rdi], rax
mov rax, qword [0x1403e9d30]
mov qword [rsp + 0x48], 0
mov rcx, qword [rax]
mov dword [rdi], 0
je 0x1400bcbf8
mov rcx, r13
lea rsi, [0x140231018]
lea rdi, [rsp + 0x40]
call fcn.140035f50
lea r14, [0x14028304d]
mov r12, rax
test rax, rax
je 0x1400bcc40
nop dword [rax]
mov rcx, r12
call fcn.140036160
test rax, rax
je 0x1400bcbd8
lea rbx, [rax + 8]
mov rcx, rbx
call sub.msvcrt.dll_strlen
cmp rax, 8
jbe 0x1400bcb00
lea rcx, [rbx + rax - 8]
mov rdx, rsi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1400bcb00
mov qword [rsp + 0x20], rbx
mov r9, r13
mov r8, r14
mov edx, 0x103
mov rcx, rdi
call fcn.140204470
test eax, eax
js 0x1400bcb00
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call fcn.1400bce90
mov qword [rsp + 0x38], rax
test rax, rax
je 0x1400bcb00
mov r15, qword [rax + 0x50]
test r15, r15
je 0x1400bcbba
mov rcx, qword [r15 + 0x110]
test rcx, rcx
je 0x1400bcbb2
cmp qword [r15 + 0x108], 0
je 0x1400bcbad
xor ebx, ebx
nop dword [rax + rax]
mov rcx, qword [rcx + rbx*8]
add rbx, 1
call fcn.140076aa0
cmp rbx, qword [r15 + 0x108]
mov rcx, qword [r15 + 0x110]
jb 0x1400bcb90
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.140036160
test rax, rax
jne 0x1400bcb11
nop dword [rax]
mov rcx, r12
call fcn.1400363b0
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, [0x140282b6d]
xor r9d, r9d
lea r8, [0x140282b60]
call fcn.1400c1f10
mov rdx, rax
test rax, rax
je 0x1400bcc4c
mov r8d, 0x103
mov rcx, r12
mov r13, r12
call sub.msvcrt.dll_strncpy
test r12, r12
jne 0x1400bcad2
mov eax, 0xffffffff
jmp 0x1400bcbe2
mov rcx, r13
call sub.msvcrt.dll__mkdir
xor eax, eax
jmp 0x1400bcbe2
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.14005a0c0
mov eax, 0xffffffff
jmp 0x1400bcbe2
Function at 0x1400c2ed0
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 0x1400c3065
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.14010a0a0
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 0x1400c30e8
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 0x1400c30b0
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 0x1400c3078
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 0x1400c3065
mov rdx, r12
mov rcx, r13
call fcn.1400c25d0
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, [0x1402c3983]
lea r8, str.dap_context
mov qword [rsp + 0x20], rax
call fcn.14005a0c0
jmp 0x1400c3055
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.14005a0c0
jmp 0x1400c2fe9
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.14005a0c0
mov rcx, r12
xor r12d, r12d
call sub.msvcrt.dll_free
jmp 0x1400c3065
Function at 0x1400c7f80
Capabilities:
Check if file exists
Get file attributes

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

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
cmp r9d, 1
je 0x1400cb4d8
cmp r9d, 2
jne 0x1400cb4f7
lea rbx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_UUUUUU
test r8, r8
je 0x1400cb4e8
test rdx, rdx
je 0x1400cb4e8
movzx r9d, byte [rcx]
lea rax, [rcx + 1]
xor r12d, r12d
mov byte [rsp + 0x2d], r9b
mov r9d, 1
cmp rdx, 1
je 0x1400cb410
add rcx, rdx
xor esi, esi
mov edx, 1
xor r12d, r12d
jmp 0x1400cb344
cmp rcx, rax
je 0x1400cb3f0
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 0x1400cb338
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 0x1400cb3fa
mov esi, 1
xor r9d, r9d
jmp 0x1400cb341
test sil, sil
je 0x1400cb410
test r9b, r9b
jne 0x1400cb410
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 0x1400cb436
xor eax, eax
mov ecx, eax
add eax, 1
mov byte [r11 + rcx], 0
cmp eax, edx
jb 0x1400cb428
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 0x1400cb497
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 0x1400cb4c2
xor eax, eax
mov edx, eax
add eax, 1
mov byte [r8 + rdx], 0x3d
cmp eax, ecx
jb 0x1400cb4b4
add rsp, 0x30
add r12, r11
mov rax, r12
pop rbx
pop rsi
pop r12
ret
lea rbx, [0x1402cc720]
test r8, r8
jne 0x1400cb2fc
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 0x1400cb520
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.14005a0c0
xor eax, eax
add rsp, 0x38
ret
Function at 0x1400cda70
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 0x1400cdba4
mov r12, r8
cmp r8, qword [rbp + 0x30]
ja 0x1400cdb80
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.14020d120
mov rcx, r13
mov rdx, r15
mov r13, r12
call fcn.14004e280
shr r13, 4
je 0x1400cdb4a
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.140044ab0
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 0x1400cdb10
mov rax, qword [rbp + 0x28]
movzx eax, byte [rax + r12 - 1]
cmp r12, rax
jb 0x1400cdbd1
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.14005a0c0
jmp 0x1400cdb61
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.14005a0c0
mov qword [rsp + 0x48], 0
jmp 0x1400cdb61
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.14005a0c0
jmp 0x1400cdb61
Function at 0x1400d31b0
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 0x1400d32f0
mov rax, qword [0x1403e9d30]
mov rcx, qword [rax]
xor eax, eax
test rcx, rcx
je 0x1400d3207
xor r9d, r9d
lea r8, str.debug_reactor
lea rdx, [0x1402c3aeb]
call fcn.1400c1ea0
lea rsi, [rsp + 0x30]
mov byte [0x1403f55e0], 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 0x1400d32c0
mov dword [0x1402535b0], ebx
lea rdx, [rbx*8]
mov ecx, 1
call sub.msvcrt.dll_calloc
mov qword [0x1403f55e8], rax
test rax, rax
je 0x1400d3423
call fcn.1400c3610
test eax, eax
jne 0x1400d3331
mov rcx, r12
call fcn.14010a850
call fcn.1400d3aa0
mov r12d, eax
test eax, eax
jne 0x1400d33f4
mov eax, dword [0x1402535b0]
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.14005a0c0
mov eax, r12d
mov dword [0x1403f55f0], 1
lea rsp, [rbp - 0x18]
pop rbx
pop rsi
pop r12
pop rbp
ret
mov dword [0x1402535b0], edx
shl rdx, 3
jne 0x1400d323b
mov qword [0x1403f55e8], 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.14005a0c0
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.14005a0c0
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.14005a0c0
call fcn.1400fe6d0
call fcn.1400d3640
call fcn.14010a680
mov eax, dword [0x1402535b0]
test eax, eax
je 0x1400d33c8
xor ebx, ebx
nop dword [rax + rax]
mov rax, qword [0x1403f55e8]
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.140033730
cmp ebx, dword [0x1402535b0]
jb 0x1400d33a0
mov rcx, qword [0x1403f55e8]
test rcx, rcx
je 0x1400d33d9
call sub.msvcrt.dll_free
mov dword [0x1403f55f0], 0
mov r12d, 0xffffffff
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x1400d32e1
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.14005a0c0
jmp 0x1400d335b
or r12d, 0xffffffff
jmp 0x1400d32e1
Function at 0x1400d3470
Capabilities:
Set socket configuration

Disassembly:
push r12
mov r12, rdx
push rsi
push rbx
mov ebx, ecx
sub rsp, 0x50
cmp ecx, 1
je 0x1400d34d0
test ecx, 0xfffffff7
je 0x1400d3570
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.14005a0c0
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 0x1400d3580
mov rdx, r12
mov rcx, rsi
call fcn.1400d4750
mov r12, rax
test rax, rax
je 0x1400d35b8
mov dword [rax + 0x34], ebx
mov rax, qword [0x1403e9d60]
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.14005a0c0
add rsp, 0x50
mov rax, r12
pop rbx
pop rsi
pop r12
ret
mov edx, 1
jmp 0x1400d34d5
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.14005a0c0
jmp 0x1400d3505
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.14005a0c0
jmp 0x1400d34bf

Function at 0x1400d3a10
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, [0x1402c4178]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
je 0x1400d3a90
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 0x1400d3ee0
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 [0x1403e9d60]
mov qword [rbp + 0x18], rdx
cmp byte [rax], 0
je 0x1400d3f3f
mov eax, 0xffffffff
test rcx, rcx
je 0x1400d3f0e
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.14005a0c0
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 + 0x2f8]
call qword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
test rax, rax
je 0x1400d3f80
xor eax, eax
lea rsp, [rbp - 0x10]
pop rbx
pop r12
pop rbp
ret
movzx eax, word [rbx + 0x1c]
mov edx, 2
mov r12, qword [rbx]
mov ecx, 0x7f000001
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
mov word [rsp + 0x40], dx
mov word [rsp + 0x42], ax
call qword [sym.imp.WS2_32.dll_htonl]
xor r9d, r9d
lea rdx, [rbp + 0x18]
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]
cmp eax, 0xffffffff
jne 0x1400d3f6c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x1400d3f6e