joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140046300
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x130
mov rax, qword [0x1400cd070]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rbx, qword [rsp + 0x180]
mov rsi, r9
movsxd rax, edx
mov rdi, r8
mov r14, rcx
mov rbp, qword [rcx + rax*8 + 0x4c0]
call fcn.1400467d0
test eax, eax
je 0x140046354
mov dword [rbx], reloc.WLDAP32.dll_Ordinal_27
mov rax, 0xffffffffffffffff
jmp 0x1400463c4
xor r9d, r9d
mov r8d, esi
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_send]
movsxd rdi, eax
mov dword [rbx], 0
cmp rdi, 0xffffffffffffffff
jne 0x1400463c1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp eax, 0x2733
jne 0x14004638e
xor edi, edi
mov dword [rbx], 0x51
jmp 0x1400463c1
mov r8d, 0x100
lea rdx, [rsp + 0x20]
mov ecx, esi
call fcn.14006a510
mov rcx, qword [r14]
lea rdx, str.Send_failure:__s
mov r8, rax
call fcn.140045ee0
mov rcx, qword [r14]
mov dword [rcx + 0x1248], esi
mov dword [rbx], gethostname
mov rax, rdi
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.140072f40
add rsp, 0x130
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
movsxd rcx, edx
mov rax, rcx
shl rax, 5
lea rbx, [rsi + 0x508]
add rbx, rax
mov rax, qword [rsi + 0x688]
mov rdi, qword [rbx + 8]
sub rdi, qword [rbx + 0x10]
test byte [rax + 0x7c], 3
je 0x1400468d2
lea rax, [0x140046220]
cmp qword [rsi + rcx*8 + 0x4e8], rax
jne 0x1400468d2
cmp qword [rbx], 0
je 0x140046838
test rdi, rdi
je 0x1400468d2
mov rbp, qword [rsi + rcx*8 + 0x4c0]
mov rdx, 0xffffffffffffffff
mov r8, rdx
mov rcx, rbp
xor r9d, r9d
call fcn.140046d10
cmp eax, 0xffffffff
je 0x1400468d2
test al, 1
je 0x1400468d2
mov rcx, qword [rbx]
test rcx, rcx
jne 0x1400468a7
mov rax, qword [rsi]
mov ecx, dword [rax + 0xb88]
add ecx, ecx
movsxd rcx, ecx
mov qword [rbx + 8], rcx
call qword [section..data]
mov qword [rbx], rax
mov rcx, rax
test rax, rax
jne 0x14004688e
lea eax, [rcx + 0x1b]
jmp 0x1400468d4
mov rdi, qword [rbx + 8]
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0
test rcx, rcx
je 0x1400468ca
mov rdx, qword [rbx + 0x10]
xor r9d, r9d
add rdx, rcx
mov r8d, edi
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x1400468d2
add qword [rbx + 0x10], rcx
jmp 0x1400468d2
mov qword [rbx + 8], 0
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140046c20
Capabilities:
Get socket status

Disassembly:
push rbx
sub rsp, 0x30
mov r10, rdx
mov rbx, rcx
test rdx, rdx
je 0x140046c36
cmp dword [rdx], 0
jne 0x140046c54
test r8, r8
je 0x140046c41
cmp dword [r8], 0
jne 0x140046c54
test r9, r9
je 0x140046cf6
cmp dword [r9], 0
je 0x140046cf6
mov rcx, qword [rsp + 0x60]
lea r11, [rsp + 0x48]
test rcx, rcx
jns 0x140046c68
xor r11d, r11d
jmp 0x140046cb5
jle 0x140046cac
movabs rax, 0x20c49ba5e353f7cf
imul rcx
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul rax, rdx, 0x3e8
sub rcx, rax
imul rax, rcx, 0x3e8
mov ecx, 0x7fffffff
cmp rdx, rcx
mov dword [rsp + 0x4c], eax
cmovg rdx, rcx
mov dword [rsp + 0x48], edx
jmp 0x140046cb5
mov qword [rsp + 0x48], 0
test r9, r9
je 0x140046cc0
cmp dword [r9], 0
jne 0x140046cc3
xor r9d, r9d
test r8, r8
je 0x140046cce
cmp dword [r8], 0
jne 0x140046cd1
xor r8d, r8d
test r10, r10
je 0x140046cdc
cmp dword [r10], 0
jne 0x140046cdf
xor r10d, r10d
lea ecx, [rbx + 1]
mov qword [rsp + 0x20], r11
mov rdx, r10
call qword [sym.imp.WS2_32.dll_select]
add rsp, 0x30
pop rbx
ret
mov rcx, qword [rsp + 0x60]
call fcn.140046e80
add rsp, 0x30
pop rbx
ret

Function at 0x140046ed0
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.140046f20
mov r8d, eax
mov rdx, rbx
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
mov rbx, qword [rsp + 0x30]
cdqe
add rsp, 0x20
pop rdi
ret
Function at 0x14004bc30
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor edi, edi
lea rax, [rcx + rdx]
mov rbp, rax
mov rbx, rcx
sub rbp, rcx
mov esi, 0x1505
cmp rcx, rax
cmova rbp, rdi
test rbp, rbp
je 0x14004b8c3
movzx ecx, byte [rbx]
call fcn.14004ed70
imul rsi, rsi, 0x21
movsx rcx, al
lea rbx, [rbx + 1]
xor rsi, rcx
inc rdi
cmp rdi, rbp
jb 0x14004b8a4
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
movzx eax, sil
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14004bc66
call fcn.14004bfa0
test al, al
jne 0x14004bc66
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.14004bf00
mov rdx, qword [rsp + 0x30]
mov rcx, rax
add rsp, 0x20
pop rbx
jmp 0x14004b870
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x14004ea90
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ebp, ebp
lea rcx, [0x14007b8f8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
jne 0x14004eaba
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, [0x14007b910]
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x14007b920]
mov rcx, rbx
mov r14, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcspbrk]
test rax, rax
je 0x14004eb1e
mov rcx, rbx
test r14, r14
je 0x14004eb08
xor edx, edx
lea r8d, [rdx + 8]
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
test r14, r14
je 0x14004eb56
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14004eb56
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
xor edx, edx
mov qword [rsp + 0x50], r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r15d, eax
test eax, eax
je 0x14004ec1a
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x40], rsi
mov rdx, rdi
nop
inc rdx
cmp word [rbx + rdx*2], bp
jne 0x14004eb80
lea ecx, [rax + 1]
add rcx, rdx
add rcx, rcx
call qword [section..data]
mov rsi, rax
test rax, rax
je 0x14004ec0c
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14004ec0c
mov rax, rdi
cmp word [rsi + rax*2 + 2], bp
lea rax, [rax + 1]
jne 0x14004ebb3
mov dword [rsi + rax*2], 0x5c
cmp word [rsi + rdi*2 + 2], bp
lea rdi, [rdi + 1]
jne 0x14004ebc5
lea rcx, [rdi + rdi]
sub rcx, rbx
add rcx, rsi
nop word [rax + rax]
movzx eax, word [rbx]
mov word [rcx + rbx], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x14004ebe0
mov rcx, rsi
test r14, r14
je 0x14004ec03
xor edx, edx
lea r8d, [rdx + 8]
call r14
jmp 0x14004ec09
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbp, rax
mov rcx, rsi
call qword [str._B_a_]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov rax, rbp
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
Function at 0x14004ec80
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x1400cd070]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
test cl, 2
je 0x14004ece6
mov ecx, 0x202
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x14004ecc9
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x14004ecc3
shr ax, 8
cmp al, 2
je 0x14004ece6
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140072f40
add rsp, 0x1d8
ret
lea rcx, [0x14007b8c8]
call fcn.14004ea90
mov qword [0x1400cef98], rax
test rax, rax
je 0x14004ed23
lea rdx, str.if_nametoindex
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400cef90]
test rax, rax
cmovne rcx, rax
mov qword [0x1400cef90], rcx
xor edx, edx
lea r9d, [rdx + 3]
lea r8d, [rdx + 2]
lea ecx, [rdx + 6]
call fcn.14006afd0
test al, al
lea rcx, [0x1400d2408]
setne byte [0x1400d2400]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140072f40
add rsp, 0x1d8
ret
Function at 0x14004f3f0
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1400cd070]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov edx, 1
mov dword [rsp + 0x34], reloc.WS2_32.dll_recv
mov ebp, 2
mov dword [rsp + 0x30], 1
mov ecx, ebp
mov rsi, r9
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14004f445
jmp 0x14004f5f4
mov qword [rsp + 0x80], rbx
mov ecx, 0x7f000001
xor ebx, ebx
mov word [rsp + 0x38], bp
mov qword [rsp + 0x40], rbx
call qword [sym.imp.WS2_32.dll_htonl]
lea r9, [rsp + 0x30]
mov word [rsp + 0x3a], bx
mov edx, 0xffff
mov dword [rsp + 0x3c], eax
lea r8d, [rbx + 4]
mov qword [rsi + 8], 0xffffffffffffffff
mov rcx, rdi
mov qword [rsi], 0xffffffffffffffff
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x14004f5cb
lea r8d, [rbx + 0x10]
mov rcx, rdi
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x14004f5cb
lea r8, [rsp + 0x34]
mov rcx, rdi
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x14004f5cb
lea edx, [rbx + 1]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x14004f5cb
xor r8d, r8d
lea edx, [rbx + 1]
mov ecx, ebp
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsi], rax
cmp rax, 0xffffffffffffffff
je 0x14004f5cb
lea r8d, [rbx + 0x10]
mov rcx, rax
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x14004f5cb
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rsi + 8], rax
cmp rax, 0xffffffffffffffff
je 0x14004f5cb
mov r9, rsi
lea r8, [0x1400be7a8]
lea edx, [rbx + 0xc]
lea rcx, [rsp + 0x48]
call fcn.1400490a0
lea rax, [rsp + 0x48]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x14004f565
mov rcx, qword [rsi]
lea rdx, [rsp + 0x48]
xor r9d, r9d
mov r8d, ebx
call qword [sym.imp.WS2_32.dll_send]
movsxd rcx, eax
cmp rcx, rbx
jne 0x14004f5cb
mov rcx, qword [rsi + 8]
lea rdx, [rsp + 0x54]
xor r9d, r9d
lea r8d, [r9 + 0xc]
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, rbx
jne 0x14004f5cb
mov r8, rbx
lea rdx, [rsp + 0x54]
lea rcx, [rsp + 0x48]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14004f5cb
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x14004f5ec
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rsi]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rsi + 8]
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140072f40
lea r11, [rsp + 0x70]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14004f650
Capabilities:
Resolve dns

Disassembly:
push rbp
push r12
push r13
push r15
sub rsp, 0x28
mov r13, r9
xor ebp, ebp
mov qword [r9], rbp
xor r15d, r15d
lea r9, [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r12d, eax
test eax, eax
jne 0x14004f7d9
mov qword [rsp + 0x60], rdi
mov rdi, qword [rsp + 0x68]
test rdi, rdi
je 0x14004f7be
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x20], r14
nop
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x14004f6be
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x14004f6b0
inc rbx
jmp 0x14004f6c0
xor ebx, ebx
mov eax, dword [rdi + 4]
cmp eax, 2
jne 0x14004f6ce
lea r14d, [rax + 0xe]
jmp 0x14004f6db
cmp eax, 0x17
jne 0x14004f774
lea r14d, [rax + 5]
cmp qword [rdi + 0x20], 0
je 0x14004f774
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x14004f774
cmp rax, r14
jb 0x14004f774
lea rcx, [rbx + 0x30]
add rcx, r14
call qword [section..data]
mov rsi, rax
test rax, rax
je 0x14004f783
mov ecx, dword [rdi]
mov r8, r14
mov dword [rax], ecx
mov ecx, dword [rdi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rdi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rdi + 0xc]
mov dword [rax + 0xc], ecx
lea rcx, [rsi + 0x30]
mov dword [rax + 0x10], r14d
xor eax, eax
mov qword [rsi + 0x18], rax
mov qword [rsi + 0x28], rax
mov qword [rsi + 0x20], rcx
mov rdx, qword [rdi + 0x20]
call sub.VCRUNTIME140.dll_memcpy
test rbx, rbx
je 0x14004f761
mov rcx, qword [rsi + 0x20]
mov r8, rbx
add rcx, r14
mov qword [rsi + 0x18], rcx
mov rdx, qword [rdi + 0x18]
call sub.VCRUNTIME140.dll_memcpy
test rbp, rbp
cmove rbp, rsi
test r15, r15
je 0x14004f771
mov qword [r15 + 0x28], rsi
mov r15, rsi
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x14004f6a0
jmp 0x14004f789
mov r12d, 8
mov rcx, qword [rsp + 0x68]
mov r14, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
test rcx, rcx
je 0x14004f7a8
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r12d, r12d
je 0x14004f7b9
mov rcx, rbp
call fcn.14004f620
xor ebp, ebp
jmp 0x14004f7cd
test rbp, rbp
jne 0x14004f7cd
mov r12d, 0x2af9
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rdi, qword [rsp + 0x60]
mov eax, r12d
mov qword [r13], rbp
add rsp, 0x28
pop r15
pop r13
pop r12
pop rbp
ret

Function at 0x14004fcb0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
mov r9, rdx
mov r8, rcx
mov qword [rsp + 0x28], rbx
xor edx, edx
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
cmovbe rbx, rax
mov rax, rbx
add rsp, 0x30
pop rbx
ret
Function at 0x14005c980
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 + 0x4c0]
lea rdx, [rax + 0x10]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14005c9df
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140045ee0
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.14005c160
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x14005e040
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0xd0
mov rax, qword [0x1400cd070]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rdi, qword [rcx + 0x790]
lea rax, [rsp + 0x30]
mov rsi, qword [rcx]
mov r15, rcx
mov dword [rsp + 0x30], Ordinal_133
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 0x14005e0dd
movsxd r8, dword [rsp + 0x30]
lea rcx, [rdi + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rdi + 0x150], eax
mov r9d, dword [rdi + 0x154]
mov qword [rsp + 0xf8], rbx
mov qword [rsp + 0x100], rbp
cmp r9d, 4
jge 0x14005e147
lea rdx, str.Received_too_short_packet
mov rcx, rsi
call fcn.140045ee0
mov dword [rdi + 0xc], 7
xor eax, eax
mov rbp, qword [rsp + 0x100]
mov rbx, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140072f40
mov rsi, qword [rsp + 0x108]
add rsp, 0xd0
pop r15
pop r14
pop rdi
ret
mov rcx, r14
call fcn.14005db70
movzx r8d, ax
mov dword [rdi + 0xc], r8d
sub r8d, 3
je 0x14005e1f6
sub r8d, 1
je 0x14005e265
sub r8d, 1
je 0x14005e1b2
cmp r8d, 1
je 0x14005e192
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rsi
lea rdx, [0x1400be3a0]
call fcn.140045ee0
jmp 0x14005e265
mov rdx, qword [r14]
lea r8d, [r9 - 2]
add rdx, 2
mov rcx, rdi
call fcn.14005dd90
test eax, eax
je 0x14005e265
jmp 0x14005e112
mov rbp, qword [r14]
lea eax, [r9 - 4]
mov rcx, r14
movsxd rbx, eax
call fcn.14005db50
movzx r9d, ax
lea rcx, [rbp + 4]
mov rdx, rbx
mov dword [rdi + 8], r9d
call fcn.14005db10
cmp rax, rbx
jae 0x14005e265
lea r8, [rbp + 4]
mov rcx, rsi
lea rdx, str.TFTP_error:__s_n
call fcn.140045ff0
jmp 0x14005e265
cmp r9d, 4
jle 0x14005e265
mov rcx, r14
call fcn.14005db50
movzx ecx, word [rdi + 0x48]
inc ecx
cmp cx, ax
jne 0x14005e265
mov r8, qword [r14]
lea eax, [r9 - 4]
movsxd r9, eax
add r8, 4
mov edx, 1
mov rcx, r15
call fcn.140045e00
mov ebx, eax
test eax, eax
je 0x14005e244
mov edx, 5
mov rcx, rdi
call fcn.14005eb80
mov eax, ebx
jmp 0x14005e112
mov eax, dword [rdi + 0x154]
mov rcx, rsi
sub eax, 4
cdqe
add qword [rsi + 0xf8], rax
mov rdx, qword [rsi + 0xf8]
call fcn.140045000
mov rcx, r15
call fcn.140045290
test eax, eax
je 0x14005e110
mov edx, 5
mov rcx, rdi
call fcn.14005eb80
mov eax, Ordinal_46
jmp 0x14005e112
Function at 0x140062e40
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x1400cd070]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rbp, qword [rcx + 0x4c8]
lea r8, [rsp + 0x20]
mov rsi, qword [rcx]
lea rdx, [rsp + 0x30]
mov rdi, rcx
mov dword [rsp + 0x20], Ordinal_133
mov rcx, rbp
mov rbx, 0xffffffffffffffff
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x140062eba
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], Ordinal_133
lea rdx, [rsp + 0x30]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_accept]
mov rbx, rax
mov rdx, rbp
mov rcx, rdi
call fcn.1400433f0
mov rcx, rsi
cmp rbx, 0xffffffffffffffff
jne 0x140062edf
lea rdx, str.Error_accept__ing_server_connect
call fcn.140045ee0
lea eax, [rbx + 0x1f]
jmp 0x140062f58
lea rdx, str.Connection_accepted_from_server_n
call fcn.140045ff0
mov byte [rdi + 0x64a], 0
mov edx, 1
mov rcx, rbx
mov qword [rdi + 0x4c8], rbx
call fcn.14006afa0
mov byte [rdi + 0x65d], 1
cmp qword [rsi + 0x710], 0
je 0x140062f56
mov dl, 1
mov rcx, rsi
call fcn.14002ff10
mov rcx, qword [rsi + 0x718]
mov r8d, 1
mov rdx, rbx
call qword [rsi + 0x710]
xor edx, edx
mov rcx, rsi
mov ebx, eax
call fcn.14002ff10
test ebx, ebx
je 0x140062f56
mov rcx, rdi
call fcn.140063420
mov eax, Ordinal_46
jmp 0x140062f58
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140072f40
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

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

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [rcx + 0x842], 0
lea r9, [rcx + 0x790]
mov rbx, rcx
jne 0x140064058
xor r10d, r10d
mov dword [r9 + 0xd0], r10d
mov rax, qword [rcx]
mov ecx, r10d
cmp dword [rax + 0xbc4], 2
sete cl
mov dword [r9 + 0xd4], ecx
cmp byte [rbx + 0x642], r10b
je 0x140064014
mov r8, qword [r9 + 0x90]
test r8, r8
je 0x140064014
cmp dword [r9 + 0xa0], r10d
je 0x14006400b
mov rax, qword [r9 + 0x98]
mov rdx, qword [rax]
cmp byte [rdx], 0x2f
je 0x140064014
mov dword [r9 + 0xb4], r10d
jmp 0x140064032
cmp dword [r9 + 0xa0], r10d
je 0x140064055
mov r8, qword [r9 + 0x98]
mov dword [r9 + 0xb4], 1
mov r8, qword [r8]
lea rdx, str.CWD__s
mov rcx, r9
call fcn.14006c8d0
test eax, eax
jne 0x140064062
lea edx, [rax + 0x10]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140063410
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140064410
add rsp, 0x20
pop rbx
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, rcx
add rcx, 0x790
cmp byte [rax + 0xf59], 0
jne 0x140064435
cmp dword [rax + 0x9e0], 0
je 0x140064461
mov r8, qword [rcx + 0xa8]
test r8, r8
je 0x140064461
lea rdx, str.MDTM__s
call fcn.14006c8d0
test eax, eax
jne 0x14006446e
lea edx, [rax + 0x12]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140063410
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400654f0
add rsp, 0x20
pop rbx
ret
Function at 0x140064bc0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, qword [rcx]
lea eax, [rdx - 0xc8]
mov rdi, rcx
cmp eax, 0x64
jb 0x140064c41
mov qword [rsp + 0x30], rbx
mov ebx, dword [rcx + 0x85c]
test ebx, ebx
jne 0x140064bff
lea rdx, str.disabling_EPRT_usage_n
mov rcx, rsi
call fcn.140045ff0
mov byte [rdi + 0x650], bl
inc ebx
cmp ebx, 2
jne 0x140064c28
lea rdx, str.Failed_to_do_PORT
mov rcx, rsi
call fcn.140045ee0
lea eax, [rbx + 0x1c]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov edx, ebx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x1400658c0
lea rdx, str.Connect_data_stream_actively_n
mov rcx, rsi
call fcn.140045ff0
xor edx, edx
mov rcx, rdi
call fcn.140063410
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.1400635b0
Function at 0x140064f50
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
add rcx, 0x790
mov rax, qword [rbx]
mov rdx, qword [rax + 0x1a8]
cmp dword [rdx + 0x10], 0
je 0x140064f9d
cmp qword [rcx + 0xa8], 0
je 0x140064f9d
xor r8d, r8d
lea rdx, str.REST__d
call fcn.14006c8d0
test eax, eax
jne 0x140064faa
lea edx, [rax + 0x1a]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140063410
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140064c70
add rsp, 0x20
pop rbx
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
add rcx, 0x790
mov rax, qword [rbx]
mov rdx, qword [rax + 0x1a8]
cmp dword [rdx + 0x10], 1
jne 0x14006528c
mov r8, qword [rcx + 0xa8]
test r8, r8
je 0x14006528c
lea rdx, str.SIZE__s
call fcn.14006c8d0
test eax, eax
jne 0x140065299
lea edx, [rax + 0x17]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140063410
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140064f50
add rsp, 0x20
pop rbx
ret

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

Disassembly:
sub rsp, 0x28
mov r10, qword [rcx]
mov r9, rcx
cmp byte [r10 + 0xf6c], 0
je 0x140065547
cmp qword [rcx + 0x838], 0
je 0x140065547
movzx edx, byte [r10 + 0xf5b]
call fcn.140063800
test eax, eax
je 0x140065547
mov rax, qword [r10 + 0x1a8]
mov r8d, reloc.WS2_32.dll_send
mov rcx, r9
mov dword [rax + 0x10], 1
movzx edx, byte [r10 + 0xf5b]
add rsp, 0x28
jmp fcn.140063770
mov rcx, r9
add rsp, 0x28
jmp fcn.140065240

Function at 0x140069870
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, rcx
mov ebx, 1
mov edx, ebx
xor ecx, ecx
xor ebp, ebp
call qword [str.LB_a_]
mov rdi, rax
test rax, rax
je 0x1400698ed
nop word [rax + rax]
mov r8d, ebx
mov rdx, rdi
mov rcx, r14
mov rbp, rdi
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebx, eax
test eax, eax
je 0x140069918
cmp ebx, esi
je 0x140069918
cmp ebx, 0x8000
ja 0x140069918
cmp ebx, esi
jb 0x140069913
mov edx, ebx
mov rcx, rdi
call qword [str.LB_a_]
mov rdi, rax
test rax, rax
jne 0x1400698b0
mov rcx, rbp
call qword [str._B_a_]
xor eax, eax
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
mov rax, rdi
jmp 0x1400698f8
mov rcx, rdi
jmp 0x1400698f0
jmp 0x140069870