joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002b0b0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0xc0]
sub rsp, 0x1c0
mov rax, qword [0x14016a100]
xor rax, rsp
mov qword [rbp + 0xb0], rax
cmp dword [rcx + 0xbc], 2
mov rdi, rdx
mov rsi, qword [rcx]
mov rbx, rcx
je 0x14002b24e
test dword [rcx + 0x3c4], 0x8000002
jne 0x14002b246
mov r14d, 0x80
lea r8, [rsp + 0x20]
lea rdx, [rbp - 0x50]
mov dword [rsp + 0x20], r14d
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x14002b155
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, r14d
lea rdx, [rbp + 0x30]
mov ecx, eax
mov ebx, eax
call fcn.140051cb0
lea rdx, str.getpeername___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rsi
call fcn.140029b2c
jmp 0x14002b24e
mov r8, r14
mov dword [rsp + 0x20], r14d
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.140087ba0
lea r8, [rsp + 0x20]
mov rcx, rdi
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x14002b19f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8, r14
lea rdx, [rbp + 0x30]
mov ecx, eax
mov ebx, eax
call fcn.140051cb0
lea rdx, str.getsockname___failed_with_errno__d:__s
jmp 0x14002b142
lea rdi, [rbx + 0x18e]
mov rdx, rdi
lea r8, [rbx + 0x1bc]
lea rcx, [rbp - 0x50]
call fcn.14002b6a8
test al, al
jne 0x14002b1e9
call fcn.1400af5a8
mov ebx, dword [rax]
call fcn.1400af5a8
mov r8, r14
lea rdx, [rbp + 0x30]
mov ecx, ebx
mov rdi, rax
call fcn.140051cb0
mov r8d, dword [rdi]
lea rdx, str.ssrem_inet_ntop___failed_with_errno__d:__s
jmp 0x14002b145
lea rcx, [rbx + 0x88]
mov r8d, reloc.WLDAP32.dll_Ordinal_46
mov rdx, rdi
call fcn.140087d60
lea r8, [rbx + 0x1f0]
lea rdx, [rbx + 0x1c0]
lea rcx, [rsp + 0x30]
call fcn.14002b6a8
test al, al
jne 0x14002b246
call fcn.1400af5a8
mov ebx, dword [rax]
call fcn.1400af5a8
mov r8, r14
lea rdx, [rbp + 0x30]
mov ecx, ebx
mov rdi, rax
call fcn.140051cb0
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
jmp 0x14002b145
mov rcx, rbx
call fcn.14002ad78
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.140085010
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14002b9e8
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x14016a100]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov eax, dword [rcx + 0xe74]
lea r9, [rsp + 0x50]
mov rdi, rdx
shr eax, 0xd
and eax, 1
mov dword [rsp + 0x20], 4
mov rbx, rcx
mov dword [rsp + 0x50], eax
mov edx, 0xffff
mov r8d, 8
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x14002ba53
mov r8, rdi
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
mov rcx, rbx
call fcn.140029c14
jmp 0x14002bae6
mov ecx, dword [rbx + 0xdfc]
mov dword [rsp + 0x58], 1
call fcn.14002bd40
imul ecx, eax, 0x3e8
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x5c], ecx
mov ecx, dword [rbx + 0xe00]
call fcn.14002bd40
and qword [rsp + 0x40], 0
lea r8, [rsp + 0x58]
and qword [rsp + 0x38], 0
mov r9d, ntohl
imul ecx, eax, 0x3e8
mov edx, 0x98000004
lea rax, [rsp + 0x54]
mov qword [rsp + 0x30], rax
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x60], ecx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x14002bae6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, edi
lea rdx, str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
mov r9d, eax
mov rcx, rbx
call fcn.140029c14
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140085010
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret

Function at 0x14002bb04
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0xd0
mov rax, qword [0x14016a100]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx]
lea r9, [rsp + 0x30]
mov r8d, 1
mov dword [rsp + 0x20], 4
mov rax, rdx
mov dword [rsp + 0x30], r8d
mov rcx, rax
lea edx, [r8 + 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x14002bb7a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x80
lea rdx, [rsp + 0x40]
mov ecx, eax
call fcn.140051cb0
mov r8, rax
lea rdx, str.Could_not_set_TCP_NODELAY:__s_n
mov rcx, rbx
call fcn.140029c14
jmp 0x14002bb89
lea rdx, str.TCP_NODELAY_set_n
mov rcx, rbx
call fcn.140029c14
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140085010
add rsp, 0xd0
pop rbx
ret

Function at 0x14002bd00
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edi, ecx
mov rbx, rdx
mov rcx, r8
call fcn.14002bd98
mov r8d, eax
mov rdx, rbx
mov ecx, edi
call fcn.1400da4a4
mov rbx, qword [rsp + 0x30]
cdqe
add rsp, 0x20
pop rdi
ret
Function at 0x14002c044
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbp, rcx
xor ebx, ebx
lea rcx, [0x140119b58]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
je 0x14002c17a
lea rdx, str.LoadLibraryExA
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x140119b78]
mov rcx, rbp
mov rsi, rax
call fcn.1400cbd64
test rax, rax
je 0x14002c0ba
mov rcx, rbp
test rsi, rsi
je 0x14002c0b2
mov r8d, 8
jmp 0x14002c0dd
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x14002c0e1
test rsi, rsi
je 0x14002c0e9
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14002c0e9
mov r8d, 0x800
mov rcx, rbp
xor edx, edx
call rsi
mov rbx, rax
jmp 0x14002c177
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r14d, eax
test eax, eax
je 0x14002c177
mov rcx, rbp
call fcn.1400b39f0
lea ecx, [r14 + 1]
add rcx, rax
call qword [section..data]
mov rdi, rax
test rax, rax
je 0x14002c16e
mov edx, r14d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x14002c16e
mov rcx, rdi
call fcn.1400b39f0
lea rdx, [0x14014b568]
lea rcx, [rdi + rax]
call fcn.1400c8a90
mov rcx, rdi
call fcn.1400b39f0
mov rdx, rbp
lea rcx, [rdi + rax]
call fcn.1400c8a90
mov rcx, rdi
test rsi, rsi
je 0x14002c165
xor edx, edx
lea r8d, [rdx + 8]
call rsi
jmp 0x14002c16b
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
mov rcx, rdi
call qword [str._P_t_]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x14002c310
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x14016a100]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
test cl, 2
je 0x14002c362
mov ecx, 0x202
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x14002c349
mov eax, 2
jmp 0x14002c3a0
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x14002c35a
shr ax, 8
cmp al, 2
je 0x14002c362
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x14002c342
call fcn.1400534d8
test eax, eax
jne 0x14002c3a0
xor edx, edx
lea r9d, [rax + 3]
lea r8d, [rax + 2]
lea ecx, [rax + 6]
call fcn.14002c198
test al, al
je 0x14002c397
lea rcx, [0x14016e7f8]
mov byte [0x14016e7f0], 1
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
jmp 0x14002c39e
mov byte [0x14016e7f0], 0
xor eax, eax
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140085010
add rsp, 0x1d8
ret
Function at 0x14002f81c
Capabilities:
Set socket configuration

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x50
and qword [r11 - 0x18], 0
lea rax, [r11 + 0x18]
and qword [r11 - 0x20], 0
xor r9d, r9d
mov qword [r11 - 0x28], rax
xor r8d, r8d
lea rax, [r11 + 0x10]
mov dword [rsp + 0x28], 4
mov edx, 0x4004747b
mov qword [r11 - 0x38], rax
mov rbx, rcx
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x14002f87f
lea r9, [rsp + 0x68]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x50
pop rbx
ret

Function at 0x140038734
Capabilities:
Resolve dns

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov r15, r9
xor ebp, ebp
and qword [r9], rbp
xor r14d, r14d
lea r9, [rax + 0x20]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov ebx, eax
test eax, eax
jne 0x140038898
mov rsi, qword [rsp + 0x58]
test rsi, rsi
je 0x140038886
cmp dword [rsi + 4], 2
jne 0x14003882d
cmp qword [rsi + 0x20], 0
je 0x14003882d
cmp qword [rsi + 0x10], 0x10
jb 0x14003882d
mov ecx, Ordinal_50
call qword [section..data]
mov rdi, rax
test rax, rax
je 0x14003885c
mov ecx, dword [rsi]
mov dword [rax], ecx
mov ecx, dword [rsi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rsi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rsi + 0xc]
and qword [rax + 0x20], 0
and qword [rax + 0x18], 0
and qword [rax + 0x28], 0
mov dword [rax + 0xc], ecx
mov ecx, reloc.WS2_32.dll_recv
mov dword [rax + reloc.WS2_32.dll_recv], 0x10
call qword [section..data]
mov qword [rdi + 0x20], rax
test rax, rax
je 0x140038855
mov rdx, qword [rsi + 0x20]
mov r8d, reloc.WS2_32.dll_recv
mov rcx, rax
call fcn.140087d60
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x14003881a
call qword [case.0x1400566a8.0]
mov qword [rdi + 0x18], rax
test rax, rax
je 0x14003883b
test rbp, rbp
cmove rbp, rdi
test r14, r14
je 0x14003882a
mov qword [r14 + 0x28], rdi
mov r14, rdi
mov rsi, qword [rsi + 0x28]
test rsi, rsi
je 0x140038861
jmp 0x140038779
mov rcx, qword [rdi + 0x20]
mov ebx, 8
call qword [str._P_t_]
mov rcx, rdi
call qword [str._P_t_]
jmp 0x140038861
mov ebx, 8
jmp 0x14003884a
mov ebx, 8
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140038871
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebx, ebx
je 0x140038881
mov rcx, rbp
call fcn.1400386ec
xor ebp, ebp
jmp 0x140038893
test rbp, rbp
jne 0x140038893
mov ebx, 0x2af9
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov qword [r15], rbp
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x14003aa48
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x50
and qword [rbp - 0x10], 0
mov rdi, r8
and qword [rbp - 0x18], 0
mov rbx, r9
and dword [rbp + 0x38], 0
mov rsi, rdx
mov r14, rcx
mov dword [rbp - 0x20], 4
mov rcx, rdi
mov dword [rbp - 0x1c], ebx
mov r8, r9
xor edx, edx
call fcn.140087ba0
mov r9d, dword [rbp + 0x40]
lea rcx, [rbp - 0x10]
xor r8d, r8d
mov dword [rsp + 0x20], 0xf0000000
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x14003ab4b
mov edx, dword [rbp + 0x48]
lea rax, [rbp - 0x18]
mov rcx, qword [rbp - 0x10]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x14003ab2b
mov rcx, qword [rbp - 0x18]
xor r9d, r9d
mov r8d, esi
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x14003ab2b
mov rcx, qword [rbp - 0x18]
lea r9, [rbp - 0x20]
and dword [rsp + 0x20], 0
lea r8, [rbp + 0x38]
mov edx, 4
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x14003ab2b
mov eax, dword [rbp + 0x38]
cmp rbx, rax
jb 0x14003ab2b
and dword [rsp + 0x20], 0
lea r9, [rbp - 0x1c]
mov rcx, qword [rbp - 0x18]
mov r8, rdi
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x14003ab3a
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x14003ab4b
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
pop rdi
pop rbp
ret

Function at 0x14003d3e4
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x140
mov rax, qword [0x14016a100]
xor rax, rsp
mov qword [rsp + 0x130], rax
call fcn.1400cc840
xor ebx, ebx
mov byte [rsp + 0x20], bl
test rax, rax
je 0x14003d437
mov r8d, 0x104
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x20], bl
je 0x14003d437
lea rcx, [rsp + 0x20]
call qword [case.0x1400566a8.0]
mov rbx, rax
mov rax, rbx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140085010
add rsp, 0x140
pop rbx
ret
jmp 0x14003d3e4

Function at 0x14003d454
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x140
mov rax, qword [0x14016a100]
xor rax, rsp
mov qword [rsp + 0x130], rax
call fcn.1400cc840
xor ebx, ebx
mov byte [rsp + 0x20], bl
test rax, rax
je 0x14003d437
mov r8d, 0x104
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x20], bl
je 0x14003d437
lea rcx, [rsp + 0x20]
call qword [case.0x1400566a8.0]
mov rbx, rax
mov rax, rbx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140085010
add rsp, 0x140
pop rbx
ret
jmp 0x14003d3e4
Function at 0x14003d734
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push rbx
sub rsp, 0x30
mov r9d, 1
mov dword [rsp + 0x20], 0xf0000000
xor r8d, r8d
xor edx, edx
mov rbx, rcx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x14003d777
mov rcx, qword [rbx]
lea rax, [rbx + 8]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x8003
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
add rsp, 0x30
pop rbx
ret

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

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x14016a100]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbp, qword [rcx + 0x248]
lea r8, [r11 - 0x28]
mov rsi, qword [rcx]
lea rdx, [r11 - 0x20]
mov rdi, rcx
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
mov rcx, rbp
or rbx, 0xffffffffffffffff
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1400431eb
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x28]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_accept]
mov rbx, rax
mov rdx, rbp
mov rcx, rdi
call fcn.14002a620
mov rcx, rsi
cmp rbx, 0xffffffffffffffff
jne 0x140043210
lea rdx, str.Error_accept__ing_server_connect
call fcn.140029b2c
lea eax, [rbx + 0x1f]
jmp 0x140043288
lea rdx, str.Connection_accepted_from_server_n
call fcn.140029c14
btr dword [rdi + 0x3c4], 0xb
mov ebp, 1
mov edx, ebp
mov qword [rdi + 0x248], rbx
mov rcx, rbx
call fcn.1400527d0
mov byte [rdi + 0x261], bpl
cmp qword [rsi + 0x738], 0
je 0x140043286
mov dl, bpl
mov rcx, rsi
call fcn.14001ac30
mov rcx, qword [rsi + 0x740]
mov r8d, ebp
mov rdx, rbx
call qword [rsi + 0x738]
xor edx, edx
mov rcx, rsi
mov ebx, eax
call fcn.14001ac30
test ebx, ebx
je 0x140043286
mov rcx, rdi
call fcn.1400437b8
lea eax, [rbp + 0x29]
jmp 0x140043288
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140085010
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov r8, qword [rcx]
mov rbx, rcx
mov rax, qword [r8 + 0x1f8]
cmp dword [rax + 0x20], 0
je 0x140044f0e
mov edx, reloc.WS2_32.dll_listen
call fcn.1400437b0
mov r8d, edx
mov dl, 1
add rsp, 0x20
pop rbx
jmp fcn.140044ff0
mov eax, dword [r8 + 0xe70]
bt eax, 0xe
jae 0x140044f27
xor edx, edx
add rsp, 0x20
pop rbx
jmp fcn.1400459cc
test byte [r8 + 0xe74], 1
je 0x140044fab
mov rcx, qword [rcx + 0x820]
test rcx, rcx
jne 0x140044f86
mov r8, qword [r8 + 0xbf8]
test r8, r8
jne 0x140044f5f
bt eax, 0xd
lea r8, str.LIST
lea rax, str.NLST
cmovb r8, rax
lea rcx, [rbx + 0x798]
lea rdx, str.PRET__s
call fcn.1400575f4
test eax, eax
jne 0x140044fb0
lea edx, [rax + 0x1d]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400437b0
lea r9, [rbx + 0x798]
mov r8, rcx
mov rcx, r9
bt eax, 0x19
jae 0x140044fa2
lea rdx, str.PRET_STOR__s
jmp 0x140044f6d
lea rdx, str.PRET_RETR__s
jmp 0x140044f6d
call fcn.140045938
add rsp, 0x20
pop rbx
ret
Function at 0x1400456ac
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
lea eax, [rdx - 0xc8]
mov rsi, rcx
mov rcx, qword [rcx]
mov edi, r8d
cmp eax, 0x64
jb 0x1400456e2
lea rdx, str.Couldnt_set_desired_mode
call fcn.140029b2c
lea eax, [rbx + 0x11]
jmp 0x140045737
cmp edx, 0xc8
je 0x1400456f9
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200_n
call fcn.140029c14
cmp edi, 0x13
jne 0x140045708
mov rcx, rsi
call fcn.140045424
jmp 0x140045733
cmp edi, 0x14
jne 0x140045717
mov rcx, rsi
call fcn.14004452c
jmp 0x140045733
cmp edi, 0x15
jne 0x140045726
mov rcx, rsi
call fcn.140045414
jmp 0x140045733
cmp edi, 0x16
jne 0x140045735
mov rcx, rsi
call fcn.14004559c
mov ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14004a514
Capabilities:
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x1d0
mov rax, qword [0x14016a100]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov ecx, 2
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x14004a55a
mov r8d, eax
lea rdx, str.WSAStartup_failed___d_
mov rcx, rbx
call fcn.140029b2c
jmp 0x14004a584
call qword [sym.imp.WS2_32.dll_WSACleanup]
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x14004a575
shr ax, 8
test al, al
jne 0x14004a575
xor eax, eax
jmp 0x14004a589
lea rdx, str.insufficient_winsock_version_to_support_telnet
mov rcx, rbx
call fcn.140029b2c
mov eax, 2
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140085010
add rsp, 0x1d0
pop rbx
ret

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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, qword [rcx]
mov edi, r8d
mov esi, edx
mov byte [rax + 0x10], 0xff
xor r9d, r9d
mov byte [rax + 0x11], sil
mov rbx, rcx
mov byte [rax + 0x12], dil
mov rcx, qword [rcx + 0x240]
lea rdx, [rax + 0x10]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14004ae8b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140029b2c
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.14004a694
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x14004b000
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x14004b1af
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rbp, qword [rcx]
mov r14, rcx
mov rsi, qword [rbp + 0x1f8]
lea rdi, [rsi + 0x1cb8]
lea rbx, [rsi + 0x1eb8]
mov qword [rbx], rdi
cmp rdi, rbx
jae 0x14004b050
lea rax, [rdi + 1]
mov byte [rdi], 0xff
mov qword [rbx], rax
jmp 0x14004b053
mov rax, rdi
cmp rax, rbx
jae 0x14004b06c
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x14004b06c
mov byte [rax], Ordinal_33
inc qword [rbx]
movzx ecx, word [rsi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rsi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x14004b0f3
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14004b0f3
mov al, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14004b0f3
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14004b0f3
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14004b0f3
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14004b0f3
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rsi + 0x1ec0], r9
lea r8, [rsi + 0x1cba]
sub r9, rdi
mov qword [rbx], rdi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.14004a7ac
mov rcx, qword [r14 + 0x240]
xor r9d, r9d
mov rdx, rdi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14004b14b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140029b2c
lea rdx, [rsi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.14004aeb8
mov rcx, qword [r14 + 0x240]
lea rdx, [rsi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14004b197
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140029b2c
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x14004c2d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0xd0
mov rax, qword [0x14016a100]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rdi, qword [rcx + 0x798]
lea rax, [rsp + 0x30]
mov rsi, qword [rcx]
mov r15, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rdi + 0x15c]
lea r14, [rdi + 0x168]
mov rdx, qword [r14]
add r8d, 4
mov rcx, qword [rdi + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rdi + 0x150], 0
mov dword [rdi + 0x154], eax
jne 0x14004c377
movsxd r8, dword [rsp + 0x30]
lea rcx, [rdi + 0xd0]
lea rdx, [rsp + 0x40]
call fcn.140087d60
mov eax, dword [rsp + 0x30]
mov dword [rdi + 0x150], eax
mov r9d, dword [rdi + 0x154]
cmp r9d, 4
jge 0x14004c3c9
lea rdx, str.Received_too_short_packet
mov rcx, rsi
call fcn.140029b2c
mov dword [rdi + 0xc], 7
xor eax, eax
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140085010
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
mov rcx, r14
call fcn.14004bea4
movzx r8d, ax
mov dword [rdi + 0xc], r8d
sub r8d, 3
je 0x14004c478
sub r8d, 1
je 0x14004c4e7
sub r8d, 1
je 0x14004c434
cmp r8d, 1
je 0x14004c414
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rsi
lea rdx, [0x14011d580]
call fcn.140029b2c
jmp 0x14004c4e7
mov rdx, qword [r14]
lea r8d, [r9 - 2]
add rdx, 2
mov rcx, rdi
call fcn.14004c07c
test eax, eax
je 0x14004c4e7
jmp 0x14004c39c
mov rbp, qword [r14]
lea eax, [r9 - 4]
mov rcx, r14
movsxd rbx, eax
call fcn.14004be90
movzx r9d, ax
lea rcx, [rbp + 4]
mov rdx, rbx
mov dword [rdi + 8], r9d
call fcn.14004be58
cmp rax, rbx
jae 0x14004c4e7
lea r8, [rbp + 4]
mov rcx, rsi
lea rdx, str.TFTP_error:__s_n
call fcn.140029c14
jmp 0x14004c4e7
cmp r9d, 4
jle 0x14004c4e7
mov rcx, r14
call fcn.14004be90
movzx ecx, word [rdi + 0x48]
mov edx, 1
add ecx, edx
cmp cx, ax
jne 0x14004c4e7
mov r8, qword [r14]
lea eax, [r9 - 4]
movsxd r9, eax
add r8, 4
mov rcx, r15
call fcn.140029a24
mov ebx, eax
test eax, eax
je 0x14004c4c6
mov edx, 5
mov rcx, rdi
call fcn.14004cd0c
mov eax, ebx
jmp 0x14004c39c
mov eax, dword [rdi + 0x154]
mov rcx, rsi
sub eax, 4
cdqe
add qword [rsi + 0x110], rax
mov rdx, qword [rsi + 0x110]
call fcn.1400356c8
mov rcx, r15
call fcn.1400358e8
test eax, eax
je 0x14004c39a
mov edx, 5
mov rcx, rdi
call fcn.14004cd0c
mov eax, Ordinal_46
jmp 0x14004c39c