joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b0de0
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ebp, ebp
lea rcx, [0x14013fd78]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x1400b0e0a
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, str.LoadLibraryExA
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x140137f6c]
mov rcx, rbx
mov r14, rax
call fcn.1400fed60
test rax, rax
je 0x1400b0e6d
mov rcx, rbx
test r14, r14
je 0x1400b0e57
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_LoadLibraryA]
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
test r14, r14
je 0x1400b0ea5
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400b0ea5
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_GetSystemDirectoryA]
mov r15d, eax
test eax, eax
je 0x1400b0f68
mov qword [rsp + 0x40], rsi
mov rsi, 0xffffffffffffffff
mov rdx, rsi
nop
inc rdx
cmp byte [rbx + rdx], bpl
jne 0x1400b0ed0
lea ecx, [rax + 1]
add rcx, rdx
call qword [fcn.14005af78]
mov rdi, rax
test rax, rax
je 0x1400b0f5a
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1400b0f5a
mov rax, rsi
cmp byte [rdi + rax + 1], bpl
lea rax, [rax + 1]
jne 0x1400b0f00
mov ecx, 0x5c
mov word [rax + rdi], cx
inc rsi
cmp byte [rdi + rsi], bpl
jne 0x1400b0f14
mov rcx, rdi
sub rcx, rbx
add rcx, rsi
nop word [rax + rax]
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x1400b0f30
mov rcx, rdi
test r14, r14
je 0x1400b0f51
xor edx, edx
lea r8d, [rdx + 8]
call r14
jmp 0x1400b0f57
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
mov rcx, rdi
call qword [fcn.14005af64]
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 0x1400b84e4
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push r13
push r14
push r15
mov r11d, dword [rsp + 0x60]
mov r14d, r8d
movsxd rdi, dword [rcx + 0x160]
mov r15, rdx
mov rbx, rcx
test r11d, r11d
je 0x1400b85a3
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x50]
mov r8d, dword [rsp + 0x40]
lea r10d, [rax + rax*2]
mov eax, edi
imul eax, r9d
movsxd r12, r10d
movsxd r13, eax
mov ebp, ecx
mov eax, r14d
imul eax, ecx
movsxd rdx, eax
mov eax, r8d
imul eax, dword [rbx + 0x158]
add rdx, r12
add rdx, r15
movsxd rcx, eax
add rcx, qword [rbx + 0x150]
add rcx, r13
cmp dword [rsp + 0x58], 0
jle 0x1400b8589
mov r9d, dword [rsp + 0x58]
mov al, byte [rdx + 2]
xor byte [rcx + 2], al
mov al, byte [rdx + 1]
xor byte [rcx + 1], al
mov al, byte [rdx]
lea rdx, [rdx + 3]
xor byte [rcx], al
add rcx, rdi
sub r9, 1
jne 0x1400b856c
mov eax, dword [rbx + 0x174]
inc r8d
neg eax
sbb ecx, ecx
and ecx, 2
dec ecx
add ecx, ebp
sub r11d, 1
jne 0x1400b8538
mov rbx, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
mov r12, qword [rsp + 0x38]
pop r15
pop r14
pop r13
ret

Function at 0x1400b9244
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push r13
push r14
push r15
mov r10d, dword [rsp + 0x60]
mov r14d, r8d
movsxd rbx, dword [rcx + 0x160]
mov r15, rdx
mov r11, rcx
test r10d, r10d
je 0x1400b9304
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x50]
mov r8d, dword [rsp + 0x40]
shl eax, 2
movsxd r12, eax
mov eax, ebx
imul eax, r9d
movsxd r13, eax
mov ebp, ecx
mov eax, r14d
imul eax, ecx
movsxd rdx, eax
mov eax, r8d
imul eax, dword [r11 + 0x158]
add rdx, r12
add rdx, r15
movsxd rcx, eax
add rcx, qword [r11 + 0x150]
add rcx, r13
cmp dword [rsp + 0x58], 0
jle 0x1400b92e9
mov r9d, dword [rsp + 0x58]
mov al, byte [rdx + 2]
xor byte [rcx + 2], al
mov al, byte [rdx + 1]
xor byte [rcx + 1], al
mov al, byte [rdx]
lea rdx, [rdx + 4]
xor byte [rcx], al
add rcx, rbx
sub r9, 1
jne 0x1400b92cc
mov eax, dword [r11 + 0x174]
inc r8d
neg eax
sbb ecx, ecx
and ecx, 2
dec ecx
add ecx, ebp
sub r10d, 1
jne 0x1400b9297
mov rbx, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
mov r12, qword [rsp + 0x38]
pop r15
pop r14
pop r13
ret
Function at 0x1400bb8c0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
push r15
sub rsp, 0x38
xor r15d, r15d
mov rsi, rdx
lea rdx, [rsp + 0x60]
mov r14, rcx
mov dword [rsp + 0x70], r15d
lea ebx, [r15 + 1]
cmp qword [rcx + 8], r15
je 0x1400bb8f6
mov r8d, ebx
call fcn.1400669e0
mov dword [rsp + 0x70], eax
jmp 0x1400bb910
mov rcx, qword [rcx]
lea r9, [rsp + 0x70]
mov r8d, ebx
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x70]
cmp eax, 1
jne 0x1400bb9d8
movzx ecx, byte [rsp + 0x60]
test cl, cl
js 0x1400bb936
mov byte [rsi], cl
mov rax, rbx
mov byte [rsi + 1], r15b
add rsp, 0x38
pop r15
pop r14
pop rsi
pop rbx
ret
movzx eax, cl
mov qword [rsp + 0x68], rbp
and al, 0xe0
mov qword [rsp + 0x30], rdi
cmp al, 0xc0
jne 0x1400bb952
mov ebp, 2
mov edi, ebp
jmp 0x1400bb979
movzx eax, cl
and al, 0xf0
cmp al, 0xe0
jne 0x1400bb965
mov edi, 3
lea ebx, [rdi - 1]
jmp 0x1400bb976
movzx eax, cl
and al, 0xf8
cmp al, 0xf0
jne 0x1400bb9ce
mov edi, 4
lea ebx, [rdi - 1]
mov rbp, rdi
mov byte [rsi], cl
lea rdx, [rsi + 1]
cmp qword [r14 + 8], r15
je 0x1400bb993
lea r8, [rdi - 1]
mov rcx, r14
call fcn.1400669e0
jmp 0x1400bb9b0
mov rcx, qword [r14]
lea r9, [rsp + 0x70]
mov r8d, ebx
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x70]
mov rdi, rbp
cmp eax, ebx
cmovne rdi, r15
mov rax, rdi
mov rbp, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x30]
add rsp, 0x38
pop r15
pop r14
pop rsi
pop rbx
ret
mov word [rsi], 0x3f
mov rax, rbx
jmp 0x1400bb9b9
xor eax, eax
add rsp, 0x38
pop r15
pop r14
pop rsi
pop rbx
ret

Function at 0x1400c1420
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14006d698
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1400c14c1
cmp ebx, dword [rsp + 0x30]
je 0x1400c14ba
test esi, esi
je 0x1400c14ba
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400c1495
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400c14a2
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400c147f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400c14a6
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400c14c3
mov eax, 1
jmp 0x1400c14c3
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400c45b8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400c45ce
mov al, 1
jmp 0x1400c462e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400c45df
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400c462c
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400c2994
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400c462c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400c462c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400c462c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400c462e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400e9a60
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, 0x60
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 0x1400e9ab4
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
mov qword [rsp + 0x70], 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 0x1400e9c37
lea r8d, [rbx + 0x10]
mov rcx, rdi
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x1400e9c37
lea r8, [rsp + 0x34]
mov rcx, rdi
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x1400e9c37
lea edx, [rbx + 1]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x1400e9c37
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 0x1400e9c37
lea r8d, [rbx + 0x10]
mov rcx, rax
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1400e9c37
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 0x1400e9c37
mov r9, rsi
lea r8, [0x140137a7c]
lea edx, [rbx + 0xc]
lea rcx, [rsp + 0x48]
call fcn.1400ead30
lea rax, [rsp + 0x48]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400e9bd1
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 0x1400e9c37
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 0x1400e9c37
mov r8, rbx
lea rdx, [rsp + 0x54]
lea rcx, [rsp + 0x48]
call fcn.140039880
test eax, eax
jne 0x1400e9c37
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x1400e9c58
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 + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x1400ed790
Capabilities:
Resolve dns

Disassembly:
push rbx
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor r13d, r13d
mov r12, r9
mov qword [r9], r13
mov ebx, r13d
lea r9, [rsp + 0x68]
mov r15d, r13d
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r14d, eax
test eax, eax
jne 0x1400ed954
mov qword [rsp + 0x58], rsi
mov rsi, qword [rsp + 0x68]
mov qword [rsp + 0x60], rdi
test rsi, rsi
je 0x1400ed934
mov qword [rsp + 0x50], rbp
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x1400ed7ed
lea ebp, [rax + 0xe]
jmp 0x1400ed7f9
cmp eax, 0x17
jne 0x1400ed8a1
lea ebp, [rax + 5]
cmp qword [rsi + 0x20], r13
je 0x1400ed8a1
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x1400ed8a1
cmp rax, rbp
jb 0x1400ed8a1
mov ecx, gethostbyname
call qword [fcn.14005af78]
mov rdi, rax
test rax, rax
je 0x1400ed8dc
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]
mov dword [rax + 0xc], ecx
mov rcx, rbp
mov dword [rax + 0x10], ebp
mov qword [rax + 0x20], r13
mov qword [rax + 0x18], r13
mov qword [rax + 0x28], r13
call qword [fcn.14005af78]
mov qword [rdi + 0x20], rax
test rax, rax
je 0x1400ed8cb
mov rdx, qword [rsi + 0x20]
mov r8, rbp
mov rcx, rax
call fcn.14002ce50
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x1400ed88e
call qword [case.0x1400a3b09.0]
mov qword [rdi + 0x18], rax
test rax, rax
je 0x1400ed8b0
test rbx, rbx
cmove rbx, rdi
test r15, r15
je 0x1400ed89e
mov qword [r15 + 0x28], rdi
mov r15, rdi
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x1400ed7e0
jmp 0x1400ed8e2
mov rcx, qword [rdi + 0x20]
mov r14d, 8
call qword [fcn.14005af64]
mov rcx, rdi
call qword [fcn.14005af64]
jmp 0x1400ed8e2
mov rcx, rdi
mov r14d, 8
call qword [fcn.14005af64]
jmp 0x1400ed8e2
mov r14d, 8
mov rcx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x50]
test rcx, rcx
je 0x1400ed8f7
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r14d, r14d
je 0x1400ed92f
test rbx, rbx
je 0x1400ed92a
mov rcx, qword [rbx + 0x20]
call qword [fcn.14005af64]
mov rcx, qword [rbx + 0x18]
call qword [fcn.14005af64]
mov rdi, qword [rbx + 0x28]
mov rcx, rbx
call qword [fcn.14005af64]
mov rbx, rdi
test rdi, rdi
jne 0x1400ed901
mov rbx, r13
jmp 0x1400ed943
test rbx, rbx
jne 0x1400ed943
mov r14d, 0x2af9
mov ecx, r14d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rdi, qword [rsp + 0x60]
mov eax, r14d
mov rsi, qword [rsp + 0x58]
mov qword [r12], rbx
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rbx
ret
Function at 0x1400ee174
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x140223d88]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x140145fa8]
mov rbp, rcx
call fcn.1400bfef8
xor edi, edi
test rax, rax
je 0x1400ee25a
mov ebx, edi
call fcn.14007fbe0
mov r14d, dword [rax]
call fcn.14007fbe0
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.140114314
mov rsi, rax
test rax, rax
je 0x1400ee1eb
call fcn.14007fbe0
mov dword [rax], r14d
jmp 0x1400ee215
call fcn.14007fbe0
cmp dword [rax], 0x22
jne 0x1400ee252
call fcn.14007fbe0
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.140114314
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x1400ee252
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x1400ee219
cmp rax, 3
je 0x1400ee234
mov rcx, rsi
call fcn.1400ee0d0
test al, al
je 0x1400ee245
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1400ee245
mov dil, 1
mov rcx, rbx
call fcn.14005af64
mov al, dil
jmp 0x1400ee25c
mov rcx, rbx
call fcn.14005af64
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14007fff0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x1400f1b60
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x1028
call fcn.14008cdc0
sub rsp, rax
call fcn.140070610
mov byte [rsp + 0x20], 0
test rax, rax
je 0x1400f1baa
mov r8d, 0x1000
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x20], 0
je 0x1400f1baa
lea rcx, [rsp + 0x20]
call qword [case.0x1400a3b09.0]
add rsp, 0x1028
ret
xor eax, eax
add rsp, 0x1028
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx]
mov rax, qword [rcx + 0x1e0]
cmp dword [rax + 0x20], 0
je 0x1400f5158
mov r8d, reloc.WS2_32.dll_listen
mov dword [rbx + 0x850], 0xd
mov dl, 1
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400f52a0
cmp byte [rcx + 0xe9e], 0
je 0x1400f5170
xor edx, edx
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400f6390
cmp byte [rcx + 0xea1], 0
je 0x1400f5211
mov r8, qword [rbx + 0x820]
test r8, r8
jne 0x1400f51cb
mov r8, qword [rcx + 0xc00]
test r8, r8
jne 0x1400f51ae
cmp byte [rcx + 0xe9d], 0
lea rax, str.NLST
lea r8, str.LIST
cmovne r8, rax
lea rcx, [rbx + 0x798]
lea rdx, str.PRET__s
call fcn.140119390
test eax, eax
je 0x1400f5201
add rsp, 0x20
pop rbx
ret
cmp byte [rcx + 0xead], 0
lea rcx, [rbx + 0x798]
je 0x1400f51f1
lea rdx, str.PRET_STOR__s
call fcn.140119390
test eax, eax
je 0x1400f5201
add rsp, 0x20
pop rbx
ret
lea rdx, str.PRET_RETR__s
call fcn.140119390
test eax, eax
jne 0x1400f521e
mov dword [rbx + 0x850], 0x1d
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400f6be0
add rsp, 0x20
pop rbx
ret
Function at 0x1400f5230
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, rcx
add rcx, 0x798
cmp byte [rax + 0xe99], 0
jne 0x1400f5255
cmp dword [rax + 0x9f0], 0
je 0x1400f5281
mov r8, qword [rcx + 0x88]
test r8, r8
je 0x1400f5281
lea rdx, str.MDTM__s
call fcn.140119390
test eax, eax
jne 0x1400f528e
mov dword [rbx + 0x850], 0x12
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400f6d30
add rsp, 0x20
pop rbx
ret

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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0xa0
mov rbp, qword [rcx + 0x260]
lea r8, [rax + 8]
mov rsi, qword [rcx]
lea rdx, [rsp + 0x20]
mov rdi, rcx
mov dword [rax + 8], 0x80
mov rcx, rbp
mov rbx, 0xffffffffffffffff
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1400f5dfc
lea r8, [rsp + 0xb0]
mov dword [rsp + 0xb0], 0x80
lea rdx, [rsp + 0x20]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_accept]
mov rbx, rax
mov rdx, rbp
mov rcx, rdi
call fcn.1400af840
mov rcx, rsi
cmp rbx, 0xffffffffffffffff
jne 0x1400f5e21
lea rdx, str.Error_accept__ing_server_connect
call fcn.1400adf10
lea eax, [rbx + 0x1f]
jmp 0x1400f5e9a
lea rdx, str.Connection_accepted_from_server_n
call fcn.1400addb0
mov edx, 1
mov byte [rdi + 0x3f8], 0
mov rcx, rbx
mov qword [rdi + 0x260], rbx
call fcn.1400e9c70
mov byte [rdi + 0x279], 1
cmp qword [rsi + 0x728], 0
je 0x1400f5e98
mov dl, 1
mov rcx, rsi
call fcn.14009f810
mov rcx, qword [rsi + 0x730]
mov r8d, 1
mov rdx, rbx
call qword [rsi + 0x728]
xor edx, edx
mov rcx, rsi
mov ebx, eax
call fcn.14009f810
test ebx, ebx
je 0x1400f5e98
mov rcx, rdi
call fcn.1400f5ca0
mov eax, 0x2a
jmp 0x1400f5e9a
xor eax, eax
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400f6c70
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, rcx
mov rdx, qword [rax + 0x1e0]
cmp dword [rdx + 0x20], 0
je 0x1400f6cbd
cmp qword [rcx + 0x820], 0
je 0x1400f6cbd
add rcx, 0x798
lea rdx, str.REST__d
xor r8d, r8d
call fcn.140119390
test eax, eax
jne 0x1400f6cc7
mov dword [rbx + 0x850], 0x1a
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.1400f5120
add rsp, 0x20
pop rbx
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
add rcx, 0x798
mov rax, qword [rbx]
mov rdx, qword [rax + 0x1e0]
cmp dword [rdx + 0x20], 1
jne 0x1400f6d1c
mov r8, qword [rcx + 0x88]
test r8, r8
je 0x1400f6d1c
lea rdx, str.SIZE__s
call fcn.140119390
test eax, eax
jne 0x1400f6d29
mov dword [rbx + 0x850], 0x17
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400f6c70
add rsp, 0x20
pop rbx
ret

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

Disassembly:
mov r9, qword [rcx]
cmp byte [r9 + 0xeac], 0
je 0x1400f6d88
cmp qword [rcx + 0x820], 0
je 0x1400f6d88
cmp byte [r9 + 0xe9b], 0
mov eax, 0x41
mov edx, 0x49
cmovne edx, eax
movsx eax, byte [rcx + 0x840]
cmp eax, edx
je 0x1400f6d88
mov rax, qword [r9 + 0x1e0]
mov r8d, reloc.WS2_32.dll_send
mov dword [rax + 0x20], 1
movzx edx, byte [r9 + 0xe9b]
jmp fcn.1400f5580
jmp fcn.1400f6cd0
Function at 0x1400f7790
Capabilities:
Check http status code

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
lea eax, [rdx - 0xc8]
mov rdi, rcx
mov rcx, qword [rcx]
mov esi, r8d
cmp eax, 0x64
jb 0x1400f77c5
lea rdx, str.Couldnt_set_desired_mode
call fcn.1400adf10
lea eax, [rbx + 0x11]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
cmp edx, 0xc8
je 0x1400f77dc
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200_n
call fcn.1400addb0
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], r14
cmp esi, 0x13
jne 0x1400f77f8
mov rcx, rdi
call fcn.1400f6cd0
jmp 0x1400f7930
cmp esi, 0x14
jne 0x1400f7912
mov rsi, qword [rdi]
mov rbp, rbx
cmp dword [rsi + 0xb98], 2
jne 0x1400f787a
mov rax, qword [rsi + 0x1e0]
mov rdx, qword [rax + 0x10]
test rdx, rdx
je 0x1400f787a
mov byte [rsp + 0x28], 1
lea r9, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rcx, rsi
mov qword [rsp + 0x50], rbx
call fcn.1400f1c50
test eax, eax
jne 0x1400f7930
mov rcx, qword [rsp + 0x50]
lea edx, [rax + 0x2f]
call fcn.1400c2eb8
test rax, rax
je 0x1400f786f
mov rbp, qword [rsp + 0x50]
mov ecx, 1
sub rax, rbp
cmovne rcx, rax
mov byte [rcx + rbp], bl
jmp 0x1400f787a
mov rcx, qword [rsp + 0x50]
call qword [fcn.14005af64]
mov rdx, qword [rsi + 0xc00]
test rdx, rdx
jne 0x1400f789e
cmp byte [rsi + 0xe9d], bl
lea rax, str.NLST
lea rdx, str.LIST
cmovne rdx, rax
lea r8, [0x14013785c]
test rbp, rbp
mov r9, r8
lea rax, [0x1401380a4]
cmovne r9, rbp
lea rcx, [0x1401379d8]
cmovne r8, rax
call fcn.1400eae00
mov rcx, rbp
mov r14, rax
call qword [fcn.14005af64]
test r14, r14
jne 0x1400f78dd
lea ebx, [r14 + 0x1b]
jmp 0x1400f7932
lea rcx, [rdi + 0x798]
mov r8, r14
lea rdx, [0x140137a20]
call fcn.140119390
mov rcx, r14
mov esi, eax
call qword [fcn.14005af64]
test esi, esi
je 0x1400f7906
mov ebx, esi
jmp 0x1400f7932
mov dword [rdi + 0x850], 0x1f
jmp 0x1400f7932
cmp esi, 0x15
jne 0x1400f791d
lea r8d, [rsi - 8]
jmp 0x1400f7926
cmp esi, 0x16
jne 0x1400f7932
lea r8d, [rsi - 8]
mov dl, 1
mov rcx, rdi
call fcn.1400f52a0
mov ebx, eax
mov r14, qword [rsp + 0x60]
mov eax, ebx
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x140102b24
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140102b54
xor eax, eax
jmp 0x140102c17
mov rbp, rbx
cmp word [rax], si
je 0x140102b79
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140102b60
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140102b5c
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1400bcfd4
movsxd r14, eax
test eax, eax
jne 0x140102bb7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140102b4d
mov rcx, r14
call fcn.14006cd08
mov rdi, rax
test rax, rax
jne 0x140102bd0
xor ecx, ecx
call fcn.14006cccc
jmp 0x140102bac
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1400bcfd4
test eax, eax
jne 0x140102c01
mov rcx, rdi
call fcn.14006cccc
jmp 0x140102c0b
xor ecx, ecx
call fcn.14006cccc
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x140102c34
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140102cbb
mov rsi, rbx
cmp word [rax], bp
je 0x140102c7a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140102c64
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140102c60
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14006cd08
mov rdi, rax
test rax, rax
je 0x140102ca8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14002ce50
mov rbp, rdi
xor ecx, ecx
call fcn.14006cccc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret