joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140221ae0
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rbp, qword [rcx + 0x18]
lea eax, [rdx - 0xc8]
xor edi, edi
mov esi, r8d
mov rbx, rcx
cmp eax, 0x64
jb 0x140221b1f
lea rdx, str.Couldnt_set_desired_mode
call fcn.1401fa850
lea eax, [rdi + 0x11]
jmp 0x140221c85
cmp edx, 0xc8
je 0x140221b36
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200
call fcn.1401fa9c0
cmp esi, 0x13
jne 0x140221b4b
mov rdx, rbp
mov rcx, rbx
call fcn.1402219e0
jmp 0x140221c81
cmp esi, 0x14
jne 0x140221c63
cmp dword [rbx + 0x748], 2
mov rbp, qword [rbx + 0x18]
jne 0x140221bc8
mov rax, qword [rbx + 0x1b0]
mov rcx, qword [rax]
test rcx, rcx
je 0x140221bc8
xor r9d, r9d
mov qword [rsp + 0x40], rdi
lea r8, [rsp + 0x40]
mov dword [rsp + 0x20], 3
xor edx, edx
call fcn.14022a3f0
test eax, eax
jne 0x140221c81
mov rcx, qword [rsp + 0x40]
lea edx, [rsi + 0x1b]
call fcn.140261858
test rax, rax
je 0x140221bbd
mov rdi, qword [rsp + 0x40]
mov ecx, 1
sub rax, rdi
cmovne rcx, rax
mov byte [rcx + rdi], 0
jmp 0x140221bc8
mov rcx, qword [rsp + 0x40]
call qword [str._b9_]
mov rdx, qword [rbx + 0x7b0]
test rdx, rdx
jne 0x140221bed
cmp byte [rbx + 0x12e1], 0
lea rax, str.NLST
lea rdx, str.LIST
cmovne rdx, rax
lea r8, [0x1402f0cd0]
test rdi, rdi
mov r9, r8
lea rax, [0x1402f44f4]
cmovne r9, rdi
lea rcx, [0x140334b24]
cmovne r8, rax
call fcn.14020cf40
mov rcx, rdi
mov rsi, rax
call qword [str._b9_]
test rsi, rsi
jne 0x140221c2b
lea edi, [rsi + 0x1b]
jmp 0x140221c83
lea rdx, [rbp + 0x700]
mov r9, rsi
lea r8, [0x1403337b0]
mov rcx, rbx
call fcn.1402357c0
mov rcx, rsi
mov edi, eax
call qword [str._b9_]
test edi, edi
jne 0x140221c83
mov rcx, qword [rbx + 0x18]
mov dword [rcx + 0x7d0], 0x1f
jmp 0x140221c83
cmp esi, 0x15
jne 0x140221c6e
lea r8d, [rsi - 8]
jmp 0x140221c77
cmp esi, 0x16
jne 0x140221c83
lea r8d, [rsi - 8]
mov dl, 1
mov rcx, rbx
call fcn.1402214f0
mov edi, eax
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1402288d0
Capabilities:
Convert ip address from string

Disassembly:
push rbx
push rsi
push rdi
push r12
sub rsp, 0x88
mov rax, qword [0x140398b38]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, 0xffffffffffffffff
mov qword [rsp + 0x20], rcx
mov rbx, rsi
mov rdi, rdx
nop
inc rbx
cmp byte [rdx + rbx], 0
jne 0x140228900
mov qword [rsp + 0xc0], rbp
xor r12d, r12d
cmp byte [rdx], 0x5b
mov qword [rsp + 0x80], r13
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x70], r15
jne 0x140228afb
cmp rbx, 4
jb 0x140228af4
inc rdi
sub rbx, 2
cmp byte [rdi + rbx], 0x5d
lea r15, [rdi + rbx]
jne 0x140228af4
lea rdx, str.0123456789abcdefABCDEF:.
mov rcx, rdi
call fcn.140280650
cmp rbx, rax
je 0x140228a29
cmp byte [rdi + rax], 0x25
lea r15, [rdi + rax]
mov rbx, rax
jne 0x140228af4
lea r8d, [r12 + 2]
mov ebp, r12d
lea rdx, [0x14033e794]
lea rcx, [r15 + 1]
lea r14, [r15 + 1]
call fcn.1402776e0
test eax, eax
jne 0x1402289aa
movzx eax, byte [r15 + 3]
lea rcx, [r15 + 3]
test al, al
je 0x1402289aa
cmp al, 0x5d
cmovne r14, rcx
movzx eax, byte [r14]
test al, al
je 0x140228aed
mov rcx, r12
nop dword [rax]
cmp al, 0x5d
je 0x1402289de
cmp rcx, 0xf
jge 0x1402289de
inc r14
mov byte [rsp + rcx + 0x28], al
inc ebp
inc rcx
movzx eax, byte [r14]
test al, al
jne 0x1402289c0
test ebp, ebp
je 0x140228aed
cmp byte [r14], 0x5d
jne 0x140228aed
movsxd rax, ebp
cmp rax, 0x10
jae 0x140228b16
lea rcx, [rsp + 0x28]
mov byte [rsp + rax + 0x28], r12b
call qword [fcn.14028d300]
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x28], rax
test rax, rax
jne 0x140228a25
mov eax, 7
jmp 0x140228ab9
mov byte [r15 + 1], r12b
lea r8, [rsp + 0x28]
mov byte [r15], r12b
mov rdx, rdi
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x140228af4
lea r9d, [rax + 0x2d]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x28]
lea ecx, [rax + 0x16]
call fcn.14022b0a0
test rax, rax
je 0x140228aa6
lea rax, [rsp + 0x38]
nop dword [rax + rax]
inc rsi
cmp byte [rax + rsi], r12b
jne 0x140228a70
cmp rsi, rbx
jae 0x140228aa6
lea rax, [rsp + 0x38]
mov rdx, rdi
sub rdx, rax
lea rcx, [rsp + 0x38]
nop
movzx eax, byte [rcx]
mov byte [rdx + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x140228a90
lea r15, [rdi + rsi]
mov byte [r15 + 1], r12b
mov byte [r15], 0x5d
cmp byte [rdi], r12b
mov eax, reloc.WLDAP32.dll_Ordinal_14
cmove r12d, eax
mov eax, r12d
mov r15, qword [rsp + 0x70]
mov r14, qword [rsp + 0x78]
mov r13, qword [rsp + 0x80]
mov rbp, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14025e930
add rsp, 0x88
pop r12
pop rdi
pop rsi
pop rbx
ret
mov eax, 3
jmp 0x140228ab9
mov eax, reloc.WS2_32.dll_shutdown
jmp 0x140228ab9
lea rdx, [0x14033e798]
mov rcx, rdi
call fcn.140277300
cmp rbx, rax
je 0x140228aaa
mov eax, reloc.WS2_32.dll_setsockopt
jmp 0x140228ab9
call fcn.14025e688
int3
Function at 0x140231430
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbx
push rbp
push r12
push r13
push r15
sub rsp, 0x180
mov rax, qword [0x140398b38]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov qword [rsp + 0x50], rcx
mov r15, r8
mov rcx, rdx
mov r12, rdx
xor ebp, ebp
xor ebx, ebx
call fcn.14020f6d0
mov r13, rax
test rax, rax
jne 0x1402314ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.14020ece0
mov r9, rax
lea rdx, str.schannel:_invalid_path_name_for_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.1401fa850
xor ecx, ecx
lea ebx, [rbp + 0x4d]
call qword [str._b9_]
jmp 0x140231668
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], Ordinal_133
mov edx, 0x80000000
mov rcx, r13
mov qword [rsp + 0x170], r14
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x140231521
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.14020ece0
mov r9, rax
lea rdx, str.schannel:_failed_to_open_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.1401fa850
xor ecx, ecx
lea ebx, [r14 + 0x4e]
jmp 0x140231652
lea rdx, [rsp + 0x48]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x14023156a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.14020ece0
mov r9, rax
lea rdx, str.schannel:_failed_to_determine_size_of_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.1401fa850
mov ebx, Ordinal_79
jmp 0x140231646
mov qword [rsp + 0x178], rdi
mov rdi, qword [rsp + 0x48]
cmp rdi, 0x100000
jle 0x14023159f
mov r8d, 0x100000
lea rdx, str.schannel:_CA_file_exceeds_max_size_of__u_bytes
mov rcx, r15
call fcn.1401fa850
mov ebx, Ordinal_79
jmp 0x14023163e
lea rcx, [rdi + 1]
call qword [fcn.14027b1c8]
mov rbp, rax
test rax, rax
jne 0x1402315b9
lea ebx, [rax + 0x1b]
jmp 0x14023163e
mov qword [rsp + 0x1c8], rsi
test rdi, rdi
je 0x140231618
nop word [rax + rax]
mov r8d, edi
mov dword [rsp + 0x40], 0
sub r8d, ebx
mov esi, ebx
lea rdx, [rbx + rbp]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14023168a
mov eax, dword [rsp + 0x40]
test eax, eax
jne 0x14023160f
mov edi, esi
jmp 0x140231611
add ebx, eax
mov eax, ebx
cmp rax, rdi
jb 0x1402315d0
mov rcx, qword [rsp + 0x50]
mov r9, r12
mov r8, rdi
mov byte [rdi + rbp], 0
mov rdx, rbp
mov qword [rsp + 0x20], r15
call fcn.140231190
mov ebx, eax
mov rsi, qword [rsp + 0x1c8]
mov rdi, qword [rsp + 0x178]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbp
call qword [str._b9_]
mov rcx, r13
call fcn.140273908
mov r14, qword [rsp + 0x170]
mov eax, ebx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.14025e930
add rsp, 0x180
pop r15
pop r13
pop r12
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.14020ece0
mov r9, rax
lea rdx, str.schannel:_failed_to_read_from_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.1401fa850
mov ebx, Ordinal_79
jmp 0x140231636
Function at 0x1402388a0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [fcn.14027b1c8]
mov rdi, rax
test rax, rax
jne 0x1402388e2
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x140238929
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x140238982
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x140238940
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1402389c3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x140340dbc]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x140340dbd]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x140238990
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x14023e950
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
call fcn.14027367c
xor r9d, r9d
mov r8d, edi
mov dword [rax], 0
mov rax, qword [rbx + 0x360]
mov rcx, qword [rbx + 0x470]
test rax, rax
je 0x14023e9ae
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], reloc.WS2_32.dll_recv
mov qword [rsp + 0x28], rdx
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
jmp 0x14023e9b7
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
js 0x14023e9d7
je 0x14023e9e5
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp eax, 0x2733
je 0x14023e9fa
cmp eax, 0x2714
je 0x14023e9fa
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x48]
mov eax, 0xfffffffc
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14023ea10
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx + 0x360], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x14023ea7b
call fcn.140240940
mov rdx, qword [rbx + 0x360]
xor r9d, r9d
mov rcx, qword [rbx + 0x470]
mov r8d, edi
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
test eax, eax
je 0x14023ea6b
lea rax, [rdx + 0x10]
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_sendto]
jmp 0x14023eaa5
mov qword [rsp + 0x20], rdx
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_sendto]
jmp 0x14023eaa5
mov rax, qword [rcx + 0x340]
test byte [rax + 0x2e], 1
je 0x14023ea95
mov ecx, dword [rcx + 0x470]
call fcn.14028e68c
jmp 0x14023eaa5
mov rcx, qword [rcx + 0x470]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14023eafe
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x14023eae5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x14023eae5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
je 0x14023eae5
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x14023eaf9
or dword [rbx + 0x49c], 0x40
mov eax, 0xfffffffc
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x3d8]
test rcx, rcx
jne 0x140242042
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x14023ea10
call fcn.14024f600
test eax, eax
jg 0x1402420e6
mov rcx, qword [rbx + 0x3d8]
mov edx, eax
mov qword [rsp + 0x30], rdi
call fcn.14024f350
mov edi, eax
cmp eax, 5
je 0x1402420d2
cmp eax, 2
je 0x1402420aa
mov rcx, qword [rbx + 0x3d8]
call fcn.14024f5e0
test eax, eax
jne 0x1402420aa
cmp edi, 3
je 0x140242093
mov rcx, qword [rbx + 0x3d8]
call fcn.14024f5f0
test eax, eax
je 0x1402420d2
or dword [rbx + 0x49c], 0x40
mov eax, 0xfffffffc
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
lea r8, str.lws_ssl_capable_write
mov ecx, 4
lea rdx, str._s:_want_read_n
call fcn.14023ac50
mov rdi, qword [rsp + 0x30]
mov eax, 0xfffffffc
add rsp, 0x20
pop rbx
ret
or dword [rbx + 0x494], 0x1000
mov eax, 0xffffffff
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
Function at 0x140242020
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx + 0x360], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x14023ea7b
call fcn.140240940
mov rdx, qword [rbx + 0x360]
xor r9d, r9d
mov rcx, qword [rbx + 0x470]
mov r8d, edi
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
test eax, eax
je 0x14023ea6b
lea rax, [rdx + 0x10]
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_sendto]
jmp 0x14023eaa5
mov qword [rsp + 0x20], rdx
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_sendto]
jmp 0x14023eaa5
mov rax, qword [rcx + 0x340]
test byte [rax + 0x2e], 1
je 0x14023ea95
mov ecx, dword [rcx + 0x470]
call fcn.14028e68c
jmp 0x14023eaa5
mov rcx, qword [rcx + 0x470]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14023eafe
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x14023eae5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x14023eae5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
je 0x14023eae5
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x14023eaf9
or dword [rbx + 0x49c], 0x40
mov eax, 0xfffffffc
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x3d8]
test rcx, rcx
jne 0x140242042
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x14023ea10
call fcn.14024f600
test eax, eax
jg 0x1402420e6
mov rcx, qword [rbx + 0x3d8]
mov edx, eax
mov qword [rsp + 0x30], rdi
call fcn.14024f350
mov edi, eax
cmp eax, 5
je 0x1402420d2
cmp eax, 2
je 0x1402420aa
mov rcx, qword [rbx + 0x3d8]
call fcn.14024f5e0
test eax, eax
jne 0x1402420aa
cmp edi, 3
je 0x140242093
mov rcx, qword [rbx + 0x3d8]
call fcn.14024f5f0
test eax, eax
je 0x1402420d2
or dword [rbx + 0x49c], 0x40
mov eax, 0xfffffffc
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
lea r8, str.lws_ssl_capable_write
mov ecx, 4
lea rdx, str._s:_want_read_n
call fcn.14023ac50
mov rdi, qword [rsp + 0x30]
mov eax, 0xfffffffc
add rsp, 0x20
pop rbx
ret
or dword [rbx + 0x494], 0x1000
mov eax, 0xffffffff
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
Function at 0x14024aaf0
Capabilities:
Send data
Send data on socket

Disassembly:
movsx edx, byte [rcx + 0x4ad]
mov rcx, qword [rcx]
jmp fcn.14024d1d0

Function at 0x14024d0d0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
movsx rax, byte [rcx + 0x4ad]
mov esi, 2
xor r8d, r8d
mov edx, esi
lea rbx, [rax + rax*8]
shl rbx, 5
add rbx, qword [rcx]
mov ecx, esi
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbx + 0x260], rax
cmp rax, 0xffffffffffffffff
je 0x14024d1a1
xor r8d, r8d
mov edx, esi
mov ecx, esi
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbx + 0x268], rax
cmp rax, 0xffffffffffffffff
je 0x14024d1a1
mov ecx, 0x7f000001
mov word [rbx + 0x218], si
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbx + 0x21c], eax
lea r8d, [rsi + 0xe]
xor eax, eax
lea rdx, [rbx + 0x218]
mov word [rbx + 0x21a], ax
mov rcx, qword [rbx + 0x260]
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
js 0x14024d1a1
mov dword [rsp + 0x30], reloc.WS2_32.dll_recv
lea r8, [rsp + 0x30]
mov rcx, qword [rbx + 0x260]
lea rdx, [rbx + 0x218]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x14024d1a1
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
lea r8, str.lws_plat_pipe_create
mov ecx, 1
lea rdx, str._s:_failed_n
call fcn.14023ac50
mov rbx, qword [rsp + 0x38]
mov eax, 1
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
sub rsp, 0x38
movsxd rax, edx
xor r9d, r9d
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
mov byte [rsp + 0x48], 0
lea rdx, [rax + rax*8]
shl rdx, 5
lea r8d, [r9 + 1]
add rcx, rdx
lea rdx, [rsp + 0x48]
lea rax, [rcx + 0x218]
mov rcx, qword [rcx + 0x268]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_sendto]
xor ecx, ecx
cmp eax, 1
setne cl
mov eax, ecx
add rsp, 0x38
ret

Function at 0x14024d230
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x140398b38]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov ecx, 0x202
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x14024d275
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.14025e930
add rsp, 0x1d8
ret
mov r8d, eax
lea rdx, str.WSAStartup_failed_with_error:__d_n
mov ecx, 1
call fcn.14023ac50
mov eax, 1
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.14025e930
add rsp, 0x1d8
ret
Function at 0x14024f830
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push r15
sub rsp, 0x20
mov rcx, rdx
mov r15, r9
lea rdx, [0x140334028]
mov r14, r8
xor ebx, ebx
call fcn.14027b1bc
mov rdi, rax
test rax, rax
jne 0x14024f86c
lea eax, [rbx + 1]
jmp 0x14024f912
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 2]
call fcn.14027f390
test eax, eax
je 0x14024f888
mov ebx, 1
jmp 0x14024f908
mov rcx, rdi
mov qword [rsp + 0x30], rsi
call fcn.14027fa54
movsxd rsi, eax
cmp rsi, 0xffffffffffffffff
je 0x14024f8f9
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call fcn.14027f390
test eax, eax
jne 0x14024f8f9
lea rdx, [rsi + 1]
xor ecx, ecx
lea r8, str.alloc_file
call fcn.140241d60
mov qword [r14], rax
test rax, rax
jne 0x14024f8ce
lea ebx, [rax + 2]
jmp 0x14024f903
mov r9, rdi
mov r8d, 1
mov rdx, rsi
mov rcx, rax
call fcn.14027efc0
cmp rax, 1
je 0x14024f900
mov rcx, qword [r14]
lea r8, str.lws_free
xor edx, edx
call fcn.140241d60
mov ebx, 1
jmp 0x14024f903
mov qword [r15], rsi
mov rsi, qword [rsp + 0x30]
mov rcx, rdi
call fcn.14027af90
mov eax, ebx
mov rbx, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
Function at 0x14024f930
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x20
mov r14, r9
mov r12, r8
mov r13, rdx
mov edi, 1
test rdx, rdx
je 0x14024fa1d
lea rdx, [0x140334028]
mov rcx, r13
call fcn.14027b1bc
mov rbx, rax
test rax, rax
je 0x14024fa0c
xor edx, edx
lea r8d, [rdi + 1]
mov rcx, rax
call fcn.14027f390
mov rcx, rbx
test eax, eax
jne 0x14024fa07
call fcn.14027fa54
movsxd rsi, eax
mov rcx, rbx
mov qword [rsp + 0x58], rsi
cmp rsi, 0xffffffffffffffff
je 0x14024fa07
xor r8d, r8d
xor edx, edx
call fcn.14027f390
test eax, eax
jne 0x14024fa04
lea rdx, [rsi + 1]
xor ecx, ecx
lea r8, str.alloc_file
call fcn.140241d60
mov rbp, rax
test rax, rax
jne 0x14024f9dd
mov rcx, rbx
lea edi, [rax + 2]
call fcn.14027af90
mov eax, edi
jmp 0x14024fb18
mov r9, rbx
mov r8, rdi
mov rdx, rsi
mov rcx, rbp
call fcn.14027efc0
cmp rax, rdi
je 0x14024fa13
lea r8, str.lws_free
xor edx, edx
mov rcx, rbp
call fcn.140241d60
mov rcx, rbx
call fcn.14027af90
mov eax, edi
jmp 0x14024fb18
mov rcx, rbx
call fcn.14027af90
jmp 0x14024fa28
mov rbp, r12
mov qword [rsp + 0x58], r14
mov rsi, r14
mov qword [rsp + 0x50], r15
lea rdx, [0x140343f24]
mov r8d, 5
mov rcx, rbp
mov r15, rbp
mov rbx, rbp
add rsi, rbp
call fcn.1402776e0
test eax, eax
je 0x14024fa8d
lea r8, str.alloc_der
mov rdx, r14
xor ecx, ecx
call fcn.140241d60
mov rbx, rax
test rax, rax
je 0x14024fabe
mov r8, r14
mov rdx, r12
mov rcx, rax
call fcn.140260c10
mov rax, qword [rsp + 0x70]
mov qword [rax], rbx
mov rax, qword [rsp + 0x78]
mov qword [rax], r14
xor eax, eax
jmp 0x14024fb13
test r13, r13
jne 0x14024fac2
lea rdx, [r14 + r14*2]
xor ecx, ecx
shr rdx, 2
lea r8, str.alloc_der
call fcn.140241d60
mov rbp, rax
test rax, rax
jne 0x14024fac2
lea rdx, [0x140343f3c]
mov ecx, edi
call fcn.14023ac50
mov eax, edi
jmp 0x14024fb13
add rbx, 5
cmp rbx, rsi
jae 0x14024fae3
nop dword [rax + rax]
movzx eax, byte [rbx]
cmp al, 0xa
je 0x14024fae3
cmp al, 0x2d
je 0x14024fae8
inc rbx
cmp rbx, rsi
jb 0x14024fad0
cmp byte [rbx], 0x2d
jne 0x14024fafd
cmp rbx, rsi
jae 0x14024fafd
nop dword [rax]
cmp byte [rbx], 0xa
je 0x14024fb2f
inc rbx
cmp rbx, rsi
jb 0x14024faf0
lea r8, str.lws_free
xor edx, edx
mov rcx, rbp
call fcn.140241d60
mov eax, 4
mov r15, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x20
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
cmp rbx, rsi
jae 0x14024fafd
inc rbx
lea rax, [rsi - 2]
cmp rax, r15
jbe 0x14024fb4d
cmp byte [rax], 0xa
je 0x14024fb52
dec rax
cmp rax, r15
ja 0x14024fb40
cmp byte [rax], 0xa
jne 0x14024fafd
test r13, r13
je 0x14024fb5a
mov byte [rax], 0
sub eax, ebx
cmp eax, 0xffffffff
je 0x14024fafd
mov r9d, dword [rsp + 0x58]
mov r8, rbp
mov edx, eax
mov rcx, rbx
call fcn.140255cc0
mov ecx, eax
mov rax, qword [rsp + 0x78]
mov qword [rax], rcx
mov rax, qword [rsp + 0x70]
mov qword [rax], rbp
xor eax, eax
jmp 0x14024fb13
Function at 0x140251040
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rcx, rdx
mov rdi, r8
mov rbx, rdx
call qword [sym.imp.WS2_32.dll_inet_addr]
mov eax, eax
mov esi, 0xffffffff
cmp rax, rsi
jne 0x14025109b
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x140251086
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
mov eax, dword [rcx]
cmp rax, rsi
jne 0x14025109b
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov dword [rdi + 4], eax
xor eax, eax
add rsp, 0x20
pop rdi
ret