joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400346a8
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x14012d120]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r14, rcx
xor ebx, ebx
call qword [sym.imp.USER32.dll_GetFocus]
lea rdx, str.PB_WindowID
mov rcx, r14
mov rdi, rax
xor ebp, ebp
call qword [sym.imp.USER32.dll_GetPropW]
lea r13d, [rbx + 9]
mov rsi, rax
test rax, rax
je 0x140034767
lea rdx, [rsp + 0x20]
mov rcx, r14
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x140034767
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x20], eax
jne 0x140034767
mov rcx, qword [0x140133920]
lea rdx, [rsi - 1]
call fcn.14003cb98
mov rbx, rax
lea ebp, [r13 - 8]
cmp dword [rax + 0x20], 0
jle 0x140034767
mov rcx, qword [rax + 8]
xor edx, edx
movsxd rax, dword [rax + 0x20]
add rcx, 4
cmp word [rcx - 2], r13w
jne 0x140034757
mov r8d, 0xfa01
cmp word [rcx], r8w
je 0x140034765
inc rdx
add rcx, 6
cmp rdx, rax
jge 0x140034767
jmp 0x140034744
xor ebp, ebp
mov sil, pe_nt_image_headers64
test rdi, rdi
je 0x140034837
mov ecx, r13d
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
je 0x140034837
mov ecx, send
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x140034837
mov ecx, reloc.WS2_32.dll_recv
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x140034837
mov ecx, reloc.WS2_32.dll_select
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x140034837
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x28]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetClassNameW]
test ebp, ebp
jne 0x140034837
lea r8d, [rbp + 5]
lea rdx, str.RichE
lea rcx, [rsp + 0x28]
call fcn.140013fd0
test eax, eax
je 0x140034807
lea r8d, [rbp + 4]
lea rdx, str.RICHE
lea rcx, [rsp + 0x28]
call fcn.140013fd0
test eax, eax
jne 0x140034822
xor r9d, r9d
xor r8d, r8d
mov edx, 0x44e
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendMessageW]
bt rax, 0xb
jae 0x14003489e
lea rdx, str.Scintilla
lea rcx, [rsp + 0x28]
call fcn.140019904
test eax, eax
je 0x14003489e
test r14, r14
je 0x140034879
mov ecx, send
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x14003486c
mov ecx, reloc.WS2_32.dll_recv
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x14003486c
mov ecx, reloc.WS2_32.dll_select
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
je 0x140034879
mov edx, 1
mov rcx, r14
call fcn.1400348c8
test rdi, rdi
je 0x140034893
lea rdx, str.PB_Hotkey
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetPropW]
test rax, rax
jne 0x14003489e
test rbx, rbx
je 0x14003489e
mov rax, qword [rbx + 0x10]
jmp 0x1400348a0
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140096620
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop rdi
ret

Function at 0x14003ca6c
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140133ea0], eax
add rsp, 0x28
ret
Function at 0x14003ca84
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edx, ecx
mov edi, 0x104
mov ecx, edi
call fcn.14003dba0
mov rdx, rax
mov ecx, edi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor ebp, ebp
movsxd rbx, eax
test eax, eax
je 0x14003cad3
lea edx, [rbx - 1]
movsxd r8, edx
lea eax, [rbp + 0x5c]
cmp word [rsi + r8*2], ax
je 0x14003cad3
mov word [rsi + rbx*2], ax
inc ebx
sub edi, ebx
mov ecx, edi
call fcn.14003dc30
movsxd rax, ebx
mov rbx, qword [rsp + 0x30]
mov word [rsi + rax*2], bp
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14004002c
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
lea rax, [r11 + 8]
mov rbx, r8
mov rbp, rcx
mov qword [r11 - 0x20], rax
mov rcx, qword [rcx + 8]
xor r14d, r14d
xor r9d, r9d
mov qword [r11 - 0x28], r14
xor r8d, r8d
mov dword [r11 + 8], r14d
mov rsi, rdx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14004008d
cmp eax, 0xea
je 0x14004008d
cmp qword [rbx + 0x18], 8
mov rax, rbx
jb 0x140040083
mov rax, qword [rbx]
mov qword [rbx + 0x10], r14
mov word [rax], r14w
jmp 0x140040106
mov edx, dword [rsp + 0x50]
lea rdi, [rbx + 0x10]
shr rdx, 1
cmp rdx, qword [rdi]
ja 0x1400400b4
cmp qword [rbx + 0x18], 8
mov rax, rbx
jb 0x1400400aa
mov rax, qword [rbx]
mov qword [rdi], rdx
mov word [rax + rdx*2], r14w
jmp 0x1400400c2
sub rdx, qword [rdi]
xor r8d, r8d
mov rcx, rbx
call fcn.14004422c
cmp qword [rbx + 0x18], 8
mov rax, rbx
jb 0x1400400cf
mov rax, qword [rbx]
lea rcx, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x28], rcx
xor r8d, r8d
mov rcx, qword [rbp + 8]
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140040106
cmp qword [rbx + 0x18], 8
jb 0x1400400ff
mov rbx, qword [rbx]
mov qword [rdi], r14
mov word [rbx], r14w
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret

Function at 0x14004011c
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x30
and dword [rsp + 0x58], 0
lea rax, [r11 + 0x20]
mov rbx, r8
mov qword [r11 - 0x10], rax
and qword [r11 - 0x18], 0
mov rsi, rcx
mov rcx, qword [rcx + 8]
xor r9d, r9d
xor r8d, r8d
mov rdi, rdx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140040162
cmp eax, 0xea
jne 0x14004019c
mov edx, dword [rsp + 0x58]
lea r8, [rsp + 0x40]
mov rcx, rbx
call fcn.14003f8a0
mov rax, qword [rbx]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x28], rcx
xor r9d, r9d
mov rcx, qword [rsi + 8]
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1400401ab
lea r8, [rsp + 0x40]
xor edx, edx
mov rcx, rbx
call fcn.14003f8a0
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140045c40
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov rbx, rdx
mov rsi, rcx
mov rcx, rdx
cmp qword [rdx + 0x18], 8
jb 0x140045c6a
mov rcx, qword [rdx]
lea rdx, [rbp + 0x50]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov r14d, eax
xor r12d, r12d
xorps xmm0, xmm0
test eax, eax
jne 0x140045c98
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], 7
mov word [rsi], r12w
jmp 0x140045d20
movdqu xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], r12
mov rdx, r14
lea rcx, [rbp - 0x20]
call fcn.140043a98
cmp qword [rbx + 0x18], 8
jb 0x140045cb7
mov rbx, qword [rbx]
mov rdi, qword [rbp - 0x20]
mov r9, rdi
mov r8d, r14d
xor edx, edx
mov rcx, rbx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x140045d3b
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], 7
mov word [rsi], r12w
test rdi, rdi
je 0x140045d20
mov r14d, 0x1000
mov rdx, qword [rbp - 0x10]
sub rdx, rdi
mov rax, rdi
cmp rdx, r14
jb 0x140045d18
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140045e16
mov rcx, rdi
call fcn.140096c48
mov rax, rsi
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov qword [rbp + 0x58], r12
mov dword [rbp + 0x48], r12d
lea r9, [rbp + 0x48]
lea r8, [rbp + 0x58]
lea rdx, str.StringFileInfo040904B0ProductVersion
mov rcx, rdi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140045ccf
mov r15, qword [rbp + 0x58]
test r15, r15
je 0x140045ccf
mov eax, dword [rbp + 0x48]
test eax, eax
je 0x140045ccf
mov ebx, eax
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], 7
mov r14d, 0x1000
cmp rax, 8
jae 0x140045db6
mov qword [rsi + 0x10], rax
add rbx, rbx
mov r8, rbx
mov rdx, r15
mov rcx, rsi
call fcn.140022850
mov word [rbx + rsi], r12w
jmp 0x140045e08
mov r13, rbx
or r13, 7
mov eax, 0xa
cmp r13, rax
cmovb r13, rax
lea rcx, [r13*2 + 2]
cmp rcx, r14
jb 0x140045ddd
call fcn.14003e31c
jmp 0x140045de2
call fcn.140096cd8
mov r12, rax
mov qword [rsi], rax
mov qword [rsi + 0x10], rbx
mov qword [rsi + 0x18], r13
add rbx, rbx
mov r8, rbx
mov rdx, r15
mov rcx, rax
call fcn.140022850
xor eax, eax
mov word [rbx + r12], ax
test rdi, rdi
je 0x140045d20
jmp 0x140045cf0
call fcn.14000a3c4
int3
Function at 0x14005b0e0
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ebp, ebp
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x14005b10a
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, [0x1400fda40]
mov rcx, rbx
mov r14, rax
call fcn.1400186d0
test rax, rax
je 0x14005b16d
mov rcx, rbx
test r14, r14
je 0x14005b157
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 0x14005b1a5
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14005b1a5
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 0x14005b268
mov qword [rsp + 0x40], rsi
mov rsi, 0xffffffffffffffff
mov rdx, rsi
nop
inc rdx
cmp byte [rbx + rdx], bpl
jne 0x14005b1d0
lea ecx, [rax + 1]
add rcx, rdx
call qword [fcn.1400979d0]
mov rdi, rax
test rax, rax
je 0x14005b25a
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x14005b25a
mov rax, rsi
cmp byte [rdi + rax + 1], bpl
lea rax, [rax + 1]
jne 0x14005b200
mov ecx, 0x5c
mov word [rax + rdi], cx
inc rsi
cmp byte [rdi + rsi], bpl
jne 0x14005b214
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 0x14005b230
mov rcx, rdi
test r14, r14
je 0x14005b251
xor edx, edx
lea r8d, [rdx + 8]
call r14
jmp 0x14005b257
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
mov rcx, rdi
call qword [fcn.1400979d8]
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 0x14005bfb0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r9
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, 0xffffffffffffffff
jne 0x14005bfeb
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, gethostname
mov edx, 0x51
cmp eax, 0x2733
cmove ecx, edx
mov eax, ecx
add rsp, 0x20
pop rbx
ret
mov qword [rbx], rcx
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x14005c180
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xb8
mov rax, qword [0x14012d120]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov r14, qword [rsp + 0x120]
mov rsi, rcx
movsxd rcx, edx
xor r13d, r13d
mov r12, r9
mov r15, r8
mov rax, qword [rsi + 0x430]
mov rbp, qword [rsi + rcx*8 + 0x258]
lea rbx, [rcx + 0x15]
shl rbx, 5
add rbx, rsi
mov rdi, qword [rbx + 8]
sub rdi, qword [rbx + 0x10]
test byte [rax + 0x7c], 3
je 0x14005c281
lea rax, [0x14005c030]
cmp qword [rsi + rcx*8 + 0x280], rax
jne 0x14005c281
cmp qword [rbx], r13
je 0x14005c208
test rdi, rdi
je 0x14005c281
mov rdx, 0xffffffffffffffff
xor r9d, r9d
mov r8, rdx
mov rcx, rbp
call fcn.1400641d0
cmp eax, 0xffffffff
je 0x14005c281
test al, 1
je 0x14005c281
cmp qword [rbx], r13
jne 0x14005c252
mov rax, qword [rsi]
mov ecx, dword [rax + 0xb68]
add ecx, ecx
movsxd rcx, ecx
mov qword [rbx + 8], rcx
call qword [fcn.1400979d0]
mov rdi, qword [rbx + 8]
mov qword [rbx], rax
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], r13
mov rcx, qword [rbx]
test rcx, rcx
je 0x14005c27d
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 0x14005c281
add qword [rbx + 0x10], rcx
jmp 0x14005c281
mov qword [rbx + 8], r13
xor r9d, r9d
mov r8d, r12d
mov rdx, r15
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_send]
movsxd rdi, eax
mov dword [r14], r13d
cmp rdi, 0xffffffffffffffff
jne 0x14005c2ee
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x14005c2ba
mov dword [r14], 0x51
mov rax, r13
jmp 0x14005c2f1
mov r8d, pe_nt_image_headers64
lea rdx, [rsp + 0x20]
mov ecx, ebx
call fcn.1400806f0
mov rcx, qword [rsi]
lea rdx, str.Send_failure:__s
mov r8, rax
call fcn.14005bc30
mov rcx, qword [rsi]
mov dword [rcx + 0x1140], ebx
mov dword [r14], gethostname
mov rax, rdi
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140096620
add rsp, 0xb8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14006b790
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 [0x14012d120]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rbp, qword [rcx + 0x260]
lea r8, [rsp + 0x20]
mov rsi, qword [rcx]
lea rdx, [rsp + 0x30]
mov rdi, rcx
mov dword [rsp + 0x20], pe_nt_image_headers64
mov rcx, rbp
mov rbx, 0xffffffffffffffff
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x14006b80a
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], pe_nt_image_headers64
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.140060af0
mov rcx, rsi
cmp rbx, 0xffffffffffffffff
jne 0x14006b82f
lea rdx, str.Error_accept__ing_server_connect
call fcn.14005bc30
lea eax, [rbx + 0x1f]
jmp 0x14006b8a8
lea rdx, str.Connection_accepted_from_server_n
call fcn.14005bdb0
mov edx, 1
mov byte [rdi + 0x3f8], 0
mov rcx, rbx
mov qword [rdi + 0x260], rbx
call fcn.140084e70
mov byte [rdi + 0x279], 1
cmp qword [rsi + 0x728], 0
je 0x14006b8a6
mov dl, 1
mov rcx, rsi
call fcn.14005d500
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.14005d500
test ebx, ebx
je 0x14006b8a6
mov rcx, rdi
call fcn.14006bf00
mov eax, 0x2a
jmp 0x14006b8a8
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140096620
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 0x14006d1e0
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 0x14006d205
cmp dword [rax + 0x9f0], 0
je 0x14006d231
mov r8, qword [rcx + 0x88]
test r8, r8
je 0x14006d231
lea rdx, str.MDTM__s
call fcn.140089580
test eax, eax
jne 0x14006d23e
mov dword [rbx + 0x850], 0x12
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.14006e470
add rsp, 0x20
pop rbx
ret
Function at 0x14006dab0
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 0x14006dae8
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.14006dc00
cmp byte [rcx + 0xe9e], 0
je 0x14006db00
xor edx, edx
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.14006e920
cmp byte [rcx + 0xea1], 0
je 0x14006dba1
mov r8, qword [rbx + 0x820]
test r8, r8
jne 0x14006db5b
mov r8, qword [rcx + 0xc00]
test r8, r8
jne 0x14006db3e
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.140089580
test eax, eax
je 0x14006db91
add rsp, 0x20
pop rbx
ret
cmp byte [rcx + 0xead], 0
lea rcx, [rbx + 0x798]
je 0x14006db81
lea rdx, str.PRET_STOR__s
call fcn.140089580
test eax, eax
je 0x14006db91
add rsp, 0x20
pop rbx
ret
lea rdx, str.PRET_RETR__s
call fcn.140089580
test eax, eax
jne 0x14006dbae
mov dword [rbx + 0x850], 0x1d
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.14006e890
add rsp, 0x20
pop rbx
ret

Function at 0x14006dee0
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 0x14006df2d
cmp qword [rcx + 0x820], 0
je 0x14006df2d
add rcx, 0x798
lea rdx, str.REST__d
xor r8d, r8d
call fcn.140089580
test eax, eax
jne 0x14006df37
mov dword [rbx + 0x850], 0x1a
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.14006dab0
add rsp, 0x20
pop rbx
ret

Function at 0x14006e1d0
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 0x14006e21c
mov r8, qword [rcx + 0x88]
test r8, r8
je 0x14006e21c
lea rdx, str.SIZE__s
call fcn.140089580
test eax, eax
jne 0x14006e229
mov dword [rbx + 0x850], 0x17
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.14006dee0
add rsp, 0x20
pop rbx
ret

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

Disassembly:
mov r9, qword [rcx]
cmp byte [r9 + 0xeac], 0
je 0x14006e4c8
cmp qword [rcx + 0x820], 0
je 0x14006e4c8
cmp byte [r9 + 0xe9b], 0
mov eax, 0x41
mov edx, 0x49
cmovne edx, eax
movsx eax, byte [rcx + 0x840]
cmp eax, edx
je 0x14006e4c8
mov rax, qword [r9 + 0x1e0]
mov r8d, reloc.WS2_32.dll_send
mov dword [rax + 0x20], 1
movzx edx, byte [r9 + 0xe9b]
jmp fcn.14006c240
jmp fcn.14006e1d0
Function at 0x14006e4d0
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 0x14006e505
lea rdx, str.Couldnt_set_desired_mode
call fcn.14005bc30
lea eax, [rbx + 0x11]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
cmp edx, 0xc8
je 0x14006e51c
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200_n
call fcn.14005bdb0
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], r14
cmp esi, 0x13
jne 0x14006e538
mov rcx, rdi
call fcn.14006e1d0
jmp 0x14006e670
cmp esi, 0x14
jne 0x14006e652
mov rsi, qword [rdi]
mov rbp, rbx
cmp dword [rsi + 0xb98], 2
jne 0x14006e5ba
mov rax, qword [rsi + 0x1e0]
mov rdx, qword [rax + 0x10]
test rdx, rdx
je 0x14006e5ba
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.1400795a0
test eax, eax
jne 0x14006e670
mov rcx, qword [rsp + 0x50]
lea edx, [rax + 0x2f]
call fcn.1400e04e4
test rax, rax
je 0x14006e5af
mov rbp, qword [rsp + 0x50]
mov ecx, 1
sub rax, rbp
cmovne rcx, rax
mov byte [rcx + rbp], bl
jmp 0x14006e5ba
mov rcx, qword [rsp + 0x50]
call qword [fcn.1400979d8]
mov rdx, qword [rsi + 0xc00]
test rdx, rdx
jne 0x14006e5de
cmp byte [rsi + 0xe9d], bl
lea rax, str.NLST
lea rdx, str.LIST
cmovne rdx, rax
lea r8, [0x1400f38ac]
test rbp, rbp
mov r9, r8
lea rax, [0x1400ff6d8]
cmovne r9, rbp
lea rcx, [0x1400fce28]
cmovne r8, rax
call fcn.140073b20
mov rcx, rbp
mov r14, rax
call qword [fcn.1400979d8]
test r14, r14
jne 0x14006e61d
lea ebx, [r14 + 0x1b]
jmp 0x14006e672
lea rcx, [rdi + 0x798]
mov r8, r14
lea rdx, [0x1400ff50c]
call fcn.140089580
mov rcx, r14
mov esi, eax
call qword [fcn.1400979d8]
test esi, esi
je 0x14006e646
mov ebx, esi
jmp 0x14006e672
mov dword [rdi + 0x850], 0x1f
jmp 0x14006e672
cmp esi, 0x15
jne 0x14006e65d
lea r8d, [rsi - 8]
jmp 0x14006e666
cmp esi, 0x16
jne 0x14006e672
lea r8d, [rsi - 8]
mov dl, 1
mov rcx, rdi
call fcn.14006dc00
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 0x140079cc0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x1038
call fcn.140096a80
sub rsp, rax
mov rax, qword [0x14012d120]
xor rax, rsp
mov qword [rsp + 0x1020], rax
call fcn.1400d2028
mov byte [rsp + 0x20], 0
test rax, rax
je 0x140079d2c
mov r8d, 0x1000
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x20], 0
je 0x140079d2c
lea rcx, [rsp + 0x20]
call qword [case.0x140057a49.0]
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.140096620
add rsp, 0x1038
ret
xor eax, eax
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.140096620
add rsp, 0x1038
ret

Function at 0x14007a3e0
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 0x14007a5a4
mov qword [rsp + 0x58], rsi
mov rsi, qword [rsp + 0x68]
mov qword [rsp + 0x60], rdi
test rsi, rsi
je 0x14007a584
mov qword [rsp + 0x50], rbp
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x14007a43d
lea ebp, [rax + 0xe]
jmp 0x14007a449
cmp eax, 0x17
jne 0x14007a4f1
lea ebp, [rax + 5]
cmp qword [rsi + 0x20], r13
je 0x14007a4f1
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x14007a4f1
cmp rax, rbp
jb 0x14007a4f1
mov ecx, 0x30
call qword [fcn.1400979d0]
mov rdi, rax
test rax, rax
je 0x14007a52c
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.1400979d0]
mov qword [rdi + 0x20], rax
test rax, rax
je 0x14007a51b
mov rdx, qword [rsi + 0x20]
mov r8, rbp
mov rcx, rax
call fcn.140022850
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x14007a4de
call qword [case.0x140057a49.0]
mov qword [rdi + 0x18], rax
test rax, rax
je 0x14007a500
test rbx, rbx
cmove rbx, rdi
test r15, r15
je 0x14007a4ee
mov qword [r15 + 0x28], rdi
mov r15, rdi
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x14007a430
jmp 0x14007a532
mov rcx, qword [rdi + 0x20]
mov r14d, 8
call qword [fcn.1400979d8]
mov rcx, rdi
call qword [fcn.1400979d8]
jmp 0x14007a532
mov rcx, rdi
mov r14d, 8
call qword [fcn.1400979d8]
jmp 0x14007a532
mov r14d, 8
mov rcx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x50]
test rcx, rcx
je 0x14007a547
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r14d, r14d
je 0x14007a57f
test rbx, rbx
je 0x14007a57a
mov rcx, qword [rbx + 0x20]
call qword [fcn.1400979d8]
mov rcx, qword [rbx + 0x18]
call qword [fcn.1400979d8]
mov rdi, qword [rbx + 0x28]
mov rcx, rbx
call qword [fcn.1400979d8]
mov rbx, rdi
test rdi, rdi
jne 0x14007a551
mov rbx, r13
jmp 0x14007a593
test rbx, rbx
jne 0x14007a593
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