joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400314d0
Capabilities:
Hash data with crc32

Disassembly:
test r8d, r8d
jle 0x14003170e
mov r11, rsp
push rbp
push rsi
sub rsp, 0x58
mov rax, qword [0x1404b3fb8]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov qword [r11 - 0x18], rdi
mov rbp, rcx
mov qword [r11 - 0x20], r14
lea rdi, [rdx + 0x1a]
mov qword [r11 - 0x28], r15
mov r14d, 0xffffffff
lea r15, [0x14040faf0]
mov qword [r11 + 0x18], rbx
movsxd rsi, r8d
nop dword [rax + rax]
mov edx, dword [rdi - 0x1a]
test edx, edx
je 0x1400316d6
mov rcx, rbp
call fcn.140030770
mov r9d, dword [rdi - 0x16]
mov rbx, rax
test r9d, r9d
je 0x1400315a1
movsxd rdx, dword [rbp + 0x31c0]
mov r8, qword [rbp + 0x31c8]
mov r10, rdx
shl r10, 4
add r10, r8
test rdx, rdx
je 0x140031591
nop dword [rax]
mov rcx, rdx
shr rcx, 1
mov rax, rcx
add rax, rax
cmp dword [r8 + rax*8], r9d
jae 0x140031589
lea r8, [r8 + rax*8]
mov rax, 0xffffffffffffffff
sub rax, rcx
add r8, 0x10
add rdx, rax
jmp 0x14003158c
mov rdx, rcx
test rdx, rdx
jne 0x140031560
cmp r8, r10
je 0x1400315a1
cmp dword [r8], r9d
jne 0x1400315a1
mov rcx, qword [r8 + 8]
jmp 0x1400315a3
xor ecx, ecx
mov qword [rbx + 0x10], rcx
movsx eax, word [rdi - 2]
movd xmm1, eax
movsx eax, word [rdi]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
movss dword [rbx + 0x40], xmm1
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0x44], xmm0
movsx eax, word [rdi + 2]
movd xmm1, eax
movsx eax, word [rdi + 4]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
movss dword [rbx + 0x48], xmm1
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0x4c], xmm0
movsx eax, word [rdi + 6]
movd xmm1, eax
movsx eax, word [rdi + 8]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
mov eax, dword [rbx + 0xb8]
and eax, 0xfffffe49
movss dword [rbx + 0x50], xmm1
or eax, 0x49
mov dword [rbx + 0xb8], eax
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0x54], xmm0
test rcx, rcx
je 0x140031637
cmp qword [rcx + 0x18], 0
jne 0x14003162c
mov qword [rcx + 0x18], rbx
jmp 0x140031637
cmp qword [rcx + 0x20], 0
jne 0x140031637
mov qword [rcx + 0x20], rbx
mov eax, dword [rdi - 0xe]
mov r9, rbx
mov dword [rbx + 0xb0], eax
movsx eax, byte [rdi - 0xa]
mov dword [rbx + 0x58], eax
mov eax, dword [rdi - 6]
and eax, 0x61fc20
or dword [rbx + 8], eax
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x14003166c
nop
mov r9, rax
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140031660
mov r9d, dword [r9]
lea r8, str.DockNode__02X
mov edx, reloc.WS2_32.dll_sendto
lea rcx, [rsp + 0x20]
call fcn.140014c10
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov ecx, r14d
test r9b, r9b
je 0x1400316c8
cmp r9b, 0x23
jne 0x1400316ab
cmp byte [r8], r9b
jne 0x1400316ab
cmp byte [r8 + 1], r9b
cmove ecx, r14d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r15 + rdx*4]
test r9b, r9b
jne 0x140031698
not ecx
call fcn.14001e170
mov qword [rbx + 0x80], rax
add rdi, 0x24
sub rsi, 1
jne 0x140031520
mov r15, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14012e750
add rsp, 0x58
pop rsi
pop rbp
ret
Function at 0x140075380
Capabilities:
Terminate process

Disassembly:
mov edx, 0x68
xor ecx, ecx
lea r8d, [rdx - 0x38]
jmp fcn.14007e530
Function at 0x14007c240
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x20
xor ebx, ebx
cmp byte [0x1404b82a9], bl
jne 0x14007c321
movzx eax, byte [0x1404bc7d8]
mov byte [0x1404b82aa], al
mov byte [0x1404b82a9], 1
call fcn.140088c80
test al, al
je 0x14007c27c
mov eax, 1
add rsp, 0x20
pop rbx
ret
call fcn.140089160
call fcn.14007dfe0
test eax, eax
jne 0x14007c271
cmp dword [0x1404b828c], ebx
jne 0x14007c2e9
lea rdx, [0x14013602c]
mov dword [0x1404b828c], 0xcea
lea rcx, str.mysql
call qword [sym.imp.WS2_32.dll_getservbyname]
test rax, rax
je 0x14007c2c8
movzx ecx, word [rax + 0x18]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [0x1404b828c], eax
lea rcx, str.MYSQL_TCP_PORT
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x14007c2e9
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov dword [0x1404b828c], eax
cmp qword [0x1404b8290], rbx
jne 0x14007c329
lea rax, str.MySQL
lea rcx, str.MYSQL_UNIX_PORT
mov qword [0x1404b8290], rax
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x14007c329
mov qword [0x1404b8290], rax
mov eax, ebx
add rsp, 0x20
pop rbx
ret
call fcn.1400892e0
movsx ebx, al
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x14007c340
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rcx, str.USER
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
lea rdx, str.ODBC
mov r8d, 0x60
test rax, rax
mov rcx, rbx
cmovne rdx, rax
add rsp, 0x20
pop rbx
jmp fcn.140084460

Function at 0x14007d800
Capabilities:
Encode data using xor

Disassembly:
mov eax, r9d
xor r9d, r9d
add rax, rdx
mov r10, rax
sub r10, rdx
cmp rdx, rax
cmova r10, r9
test r10, r10
je 0x14007d8c6
cmp r10, 0x20
jb 0x14007d89a
lea r11, [rcx - 1]
lea rax, [r8 - 1]
add r11, r10
add rax, r10
cmp rcx, rax
ja 0x14007d83d
cmp r11, r8
jae 0x14007d89a
lea rax, [rdx - 1]
add rax, r10
cmp rcx, rax
ja 0x14007d84e
cmp r11, rdx
jae 0x14007d89a
mov rax, r10
and rax, 0xffffffffffffffe0
nop word [rax + rax]
movdqu xmm0, xmmword [r8]
add r9, 0x20
movdqu xmm1, xmmword [rdx]
pxor xmm1, xmm0
movdqu xmmword [rcx], xmm1
movdqu xmm1, xmmword [rdx + 0x10]
add rdx, 0x20
movdqu xmm0, xmmword [r8 + 0x10]
add r8, 0x20
pxor xmm1, xmm0
movdqu xmmword [rcx + 0x10], xmm1
add rcx, 0x20
cmp r9, rax
jb 0x14007d860
cmp r9, r10
jae 0x14007d8c6
sub rdx, rcx
sub r8, rcx
nop word [rax + rax]
movzx eax, byte [r8 + rcx]
inc r9
xor al, byte [rdx + rcx]
mov byte [rcx], al
lea rcx, [rcx + 1]
cmp r9, r10
jb 0x14007d8b0
ret
Function at 0x14007de00
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x20
mov rsi, rcx
lea rcx, str.LIBMYSQL_PLUGINS
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
lea rcx, str.LIBMYSQL_ENABLE_CLEARTEXT_PLUGIN
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x14007de57
movsx edx, byte [rax]
lea rcx, [0x14013703c]
call qword [sym.imp.VCRUNTIME140.dll_strchr]
movzx ecx, byte [0x1404b8288]
mov edx, 1
test rax, rax
cmovne ecx, edx
mov byte [0x1404b8288], cl
test rbx, rbx
je 0x14007dec6
mov ecx, dword [0x140529f20]
mov r8d, reloc.WS2_32.dll_recv
mov qword [rsp + 0x30], rbp
mov rdx, rbx
mov qword [rsp + 0x38], rdi
call fcn.14007e710
mov rdi, rax
mov rbp, rax
mov edx, 0x3b
mov rcx, rdi
call qword [sym.imp.VCRUNTIME140.dll_strchr]
mov rbx, rax
test rax, rax
je 0x14007de99
mov byte [rax], 0
xor r9d, r9d
or r8d, 0xffffffff
mov rdx, rdi
mov rcx, rsi
call fcn.14007e110
lea rdi, [rbx + 1]
test rbx, rbx
jne 0x14007de80
mov rcx, rbp
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
Function at 0x14007e130
Capabilities:
Query environment variable

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0xa70
mov rax, qword [0x1404b3fb8]
xor rax, rsp
mov qword [rsp + 0xa50], rax
cmp byte [0x1404b82c0], 0
mov r14d, r9d
mov r15, qword [rsp + 0xac0]
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
jne 0x14007e19e
mov r9, qword [str.Authentication_plugin__s_cannot_be_loaded:__s]
lea rax, str.not_initialized
mov r8, qword [section..data]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
mov edx, 0x80b
call fcn.14007a4c0
xor eax, eax
jmp 0x14007e382
lea rcx, [0x1404b8310]
mov qword [rsp + 0xa68], rbp
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test ebx, ebx
js 0x14007e1ca
mov edx, ebx
mov rcx, rdi
call fcn.14007dda0
test rax, rax
jne 0x14007e314
mov r8, qword [rsi + 0x448]
test r8, r8
je 0x14007e1de
mov r8, qword [r8]
test r8, r8
jne 0x14007e1f9
lea rcx, str.LIBMYSQL_PLUGIN_DIR
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
lea r8, str.C:_Program_Files_MySQL_MySQL_Server_6.1_lib_plugin
cmovne r8, rax
lea rax, str..dll
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], rax
lea r9, [0x1401370ac]
mov edx, 0x200
mov qword [rsp + 0x20], rdi
lea rcx, [rsp + 0x40]
call fcn.140084530
xor r8d, r8d
lea rcx, [rsp + 0x40]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov rbp, rax
test rax, rax
jne 0x14007e291
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x30], rbp
xor r9d, r9d
mov r8d, eax
mov dword [rsp + 0x28], 0x800
lea rax, [rsp + 0x250]
xor edx, edx
mov ecx, 0x1000
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
je 0x14007e285
lea rbx, [rsp + 0x250]
jmp 0x14007e31b
lea rbx, [0x140135a5a]
jmp 0x14007e31b
mov rdx, qword [str._mysql_client_plugin_declaration_]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r11, rax
test rax, rax
jne 0x14007e2bb
mov rcx, rbp
lea rbx, str.not_a_plugin
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x14007e31b
test ebx, ebx
js 0x14007e2cc
cmp ebx, dword [rax]
je 0x14007e2cc
lea rbx, str.type_mismatch
jmp 0x14007e31b
mov r8, qword [r11 + 8]
mov rax, rdi
sub r8, rdi
nop word [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x14007e2f3
inc rax
test ecx, ecx
jne 0x14007e2e0
test edx, edx
je 0x14007e300
lea rbx, str.name_mismatch
jmp 0x14007e31b
test ebx, ebx
jns 0x14007e351
mov edx, dword [r11]
mov rcx, rdi
call fcn.14007dda0
test rax, rax
je 0x14007e351
lea rbx, str.it_is_already_loaded
lea rcx, [0x1404b8310]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r9, qword [str.Authentication_plugin__s_cannot_be_loaded:__s]
mov edx, 0x80b
mov r8, qword [section..data]
mov rcx, rsi
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rdi
call fcn.14007a4c0
xor eax, eax
jmp 0x14007e37a
mov r9d, r14d
mov qword [rsp + 0x20], r15
mov r8, rbp
mov rdx, r11
mov rcx, rsi
call fcn.14007dc10
lea rcx, [0x1404b8310]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, rbx
mov rbp, qword [rsp + 0xa68]
mov rcx, qword [rsp + 0xa50]
xor rcx, rsp
call fcn.14012e750
add rsp, 0xa70
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x14007e530
Capabilities:
Terminate process

Disassembly:
mov rcx, rdx
mov edx, r8d
jmp fcn.14007e590

Function at 0x14007e590
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x20
test rcx, rcx
mov ebx, 1
mov ebp, edx
cmovne rbx, rcx
mov rcx, rbx
test dl, 0x20
je 0x14007e5c2
mov edx, 1
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
jmp 0x14007e5c8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x14007e628
mov qword [rsp + 0x30], rsi
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call fcn.140089320
mov rax, qword [fcn.1400932f0]
mov esi, ebp
and esi, 8
cmovne rax, qword [fcn.1400932f0]
mov qword [fcn.1400932f0], rax
test bpl, 0x18
je 0x14007e613
mov r8, rbx
lea ecx, [rdi + 5]
mov edx, 0x440
call fcn.14007e930
test esi, esi
mov rsi, qword [rsp + 0x30]
je 0x14007e628
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rbx, qword [rsp + 0x38]
mov rax, rdi
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14007e640
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebx, r8d
mov rsi, rdx
mov rdi, rcx
test rcx, rcx
jne 0x14007e67b
test bl, 0x40
je 0x14007e67b
mov edx, ebx
mov rcx, rsi
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp fcn.14007e590
mov qword [rsp + 0x30], rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov rbp, rax
test rax, rax
jne 0x14007e6ca
bt ebx, 8
jae 0x14007e699
mov rax, rdi
jmp 0x14007e6cd
test bl, bl
jns 0x14007e6a6
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call fcn.140089320
test bl, 0x18
je 0x14007e6ca
mov r8, rsi
mov edx, 0x400
mov ecx, 5
call fcn.14007e930
mov rax, rbp
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rax, r8
mov rcx, rdx
mov rdx, rax
mov r8d, r9d
jmp 0x14007e640

Function at 0x140080550
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x48
mov rax, qword [0x1404b3fb8]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rax, qword [0x1404bc350]
test rax, rax
jne 0x140080607
movzx eax, word [0x140137ef8]
lea r8, [rsp + 0x22]
mov word [rsp + 0x20], ax
mov edx, 0x1004
movzx eax, byte [0x140137efa]
mov ecx, 0x800
mov byte [rsp + 0x22], al
xor eax, eax
mov dword [rsp + 0x23], eax
mov word [rsp + 0x27], ax
mov byte [rsp + 0x29], al
lea r9d, [rax + 7]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
xor edx, edx
lea r8, [rsp + 0x20]
mov eax, edx
lea r9, str.cp932
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [r8 + rax]
inc rax
cmp cl, byte [r9 + rax - 1]
jne 0x1400805e7
cmp rax, 6
jne 0x1400805d0
jmp 0x1400805ec
sbb edx, edx
or edx, 1
test edx, edx
lea rcx, [0x140452900]
lea rax, [0x1404418f0]
cmove rax, rcx
mov qword [0x1404bc350], rax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14012e750
add rsp, 0x48
ret
Function at 0x1400851d0
Capabilities:
Get socket status

Disassembly:
push rbp
push rsi
sub rsp, 0x688
mov rax, qword [0x1404b3fb8]
xor rax, rsp
mov qword [rsp + 0x670], rax
mov rsi, qword [rcx]
mov ebp, edx
cmp rsi, 0xffffffffffffffff
jne 0x1400851fe
or eax, esi
jmp 0x14008532c
mov qword [rsp + 0x6a8], rbx
mov qword [rsp + 0x680], rdi
test r8d, r8d
js 0x14008523e
mov eax, 0x10624dd3
mov ecx, r8d
imul r8d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x3e8
mov dword [rsp + 0x30], edx
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [rsp + 0x34], eax
xor ebx, ebx
mov qword [rsp + 0x468], rsi
mov dword [rsp + 0x250], ebx
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x460], 1
test ebp, ebp
je 0x140085279
lea eax, [rbp - 1]
cmp eax, 1
ja 0x14008528c
mov qword [rsp + 0x48], rsi
mov dword [rsp + 0x40], 1
jmp 0x14008528c
mov qword [rsp + 0x258], rsi
mov dword [rsp + 0x250], 1
test r8d, r8d
lea rax, [rsp + 0x30]
lea ecx, [rsi + 1]
cmovs rax, rbx
lea r9, [rsp + 0x460]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x250]
call qword [sym.imp.WS2_32.dll_select]
mov edi, eax
test eax, eax
jne 0x1400852d0
mov ecx, 0x274c
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, edi
jmp 0x14008531c
test edi, edi
jg 0x1400852d8
mov eax, edi
jmp 0x14008531c
test ebp, ebp
je 0x1400852eb
lea eax, [rbp - 1]
cmp eax, 1
ja 0x140085303
lea rdx, [rsp + 0x40]
jmp 0x1400852f3
lea rdx, [rsp + 0x250]
mov rcx, rsi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
mov edi, ebx
setne dil
lea rdx, [rsp + 0x460]
mov rcx, rsi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
setne bl
or ebx, edi
mov eax, ebx
mov rbx, qword [rsp + 0x6a8]
mov rdi, qword [rsp + 0x680]
mov rcx, qword [rsp + 0x670]
xor rcx, rsp
call fcn.14012e750
add rsp, 0x688
pop rsi
pop rbp
ret

Function at 0x140085570
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 rbx, rcx
xor r9d, r9d
mov rcx, qword [rcx]
mov rsi, r8
mov rbp, rdx
call qword [sym.imp.WS2_32.dll_recv]
movsxd rdi, eax
cmp rdi, 0xffffffffffffffff
jne 0x1400855f7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd8cd
cmp eax, 1
ja 0x1400855f7
mov r8d, dword [rbx + 0x160]
xor edx, edx
mov rcx, rbx
call fcn.1400851d0
cmp eax, 0xffffffff
je 0x1400855d2
neg eax
sbb eax, eax
neg eax
dec eax
jmp 0x1400855d5
or eax, 0xffffffff
cdqe
test rax, rax
jne 0x1400855fa
mov rcx, qword [rbx]
xor r9d, r9d
mov r8d, esi
mov rdx, rbp
call qword [sym.imp.WS2_32.dll_recv]
movsxd rdi, eax
cmp rdi, 0xffffffffffffffff
je 0x1400855a2
mov rax, rdi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400857c0
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov edi, r9d
mov ebx, r8d
mov rbp, rdx
mov rsi, rcx
cmp r9d, 0xffffffff
jle 0x14008580c
mov rcx, qword [rcx]
lea r8, [rsp + 0x68]
mov edx, 0x8004667e
mov dword [rsp + 0x68], 1
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x14008580c
mov al, 1
jmp 0x1400858c0
mov rcx, qword [rsi]
mov r8d, ebx
mov rdx, rbp
call qword [sym.imp.WS2_32.dll_connect]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x140085893
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2734
je 0x14008583c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x140085893
mov r8d, edi
mov edx, 2
mov rcx, rsi
call fcn.1400851d0
cmp eax, 1
jne 0x140085893
mov rcx, qword [rsi]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov dword [rsp + 0x30], 4
mov r8d, 0x1007
call qword [sym.imp.WS2_32.dll_getsockopt]
mov ebx, eax
test eax, eax
jne 0x140085893
mov ecx, dword [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_WSASetLastError]
cmp dword [rsp + 0x68], ebx
setne bl
cmp edi, 0xffffffff
jle 0x1400858bb
test ebx, ebx
jne 0x1400858bd
mov rcx, qword [rsi]
lea r8, [rsp + 0x68]
mov edx, 0x8004667e
mov dword [rsp + 0x68], ebx
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jne 0x140085805
test ebx, ebx
setne al
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140086dc0
Capabilities:
Enumerate files on windows

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x180
mov rax, qword [0x1404b3fb8]
xor rax, rsp
mov qword [rsp + 0x170], rax
xor ebx, ebx
mov qword [rsp + 0x20], rcx
mov r12, r8
test rdx, rdx
je 0x140086f80
lea r9d, [rbx + 2]
lea r8d, [rbx + 0xb]
call fcn.140086000
mov ebx, eax
cmp eax, 1
jne 0x140086f80
test r12, r12
je 0x140086f80
or rdi, 0xffffffffffffffff
nop dword [rax]
inc rdi
cmp byte [r12 + rdi], 0
jne 0x140086e20
lea r14d, [rdi + 4]
movsxd r15, r14d
mov rcx, r15
call fcn.14012e8dc
mov r8, r15
xor edx, edx
mov rcx, rax
mov rsi, rax
call sub.VCRUNTIME140.dll_memset
movsxd r8, edi
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov r8d, 3
lea rdx, [0x1401386f8]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncat]
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov r13, rax
cmp rax, 0xffffffffffffffff
jne 0x140086e96
mov rcx, rsi
call fcn.14012e770
lea eax, [r13 - 5]
jmp 0x140086f82
mov qword [rsp + 0x1d8], rbp
nop
test byte [rsp + 0x30], 0x10
jne 0x140086f51
lea rax, [rsp + 0x5c]
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140086eb4
lea ebp, [rdi + 3]
add ebp, ebx
cmp ebp, r14d
jle 0x140086ee0
mov rcx, rsi
call fcn.14012e770
movsxd r14, ebp
mov rcx, r14
mov r15, r14
call fcn.14012e8dc
mov rsi, rax
mov r8, r15
xor edx, edx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memset
mov eax, r14d
mov rdx, r12
sub eax, ebx
mov rcx, rsi
sub eax, 3
movsxd r8, eax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov r8d, 2
lea rdx, [0x1401386fc]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncat]
mov eax, r14d
lea rdx, [rsp + 0x5c]
sub eax, edi
mov rcx, rsi
sub eax, 3
movsxd r8, eax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncat]
mov rcx, qword [rsp + 0x20]
mov r9d, 2
mov rdx, rsi
lea r8d, [r9 + 9]
call fcn.140086000
mov ebx, eax
cmp eax, 1
jne 0x140086f67
lea rdx, [rsp + 0x30]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x140086ea0
mov rcx, rsi
call fcn.14012e770
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rbp, qword [rsp + 0x1d8]
mov eax, ebx
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.14012e750
add rsp, 0x180
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret

Function at 0x140087170
Capabilities:
Read file on windows

Disassembly:
mov r9d, 1
jmp fcn.140086000
Function at 0x140088c80
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
cmp byte [0x1404bc7d8], 0
jne 0x140088d88
lea rcx, str.UMASK
mov byte [0x1404bc7d8], 1
mov dword [0x140451a34], 0x1a0
mov dword [0x140451a50], 0x1e8
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140088cd1
mov rcx, rax
call fcn.140088c20
or eax, 0x1a0
mov dword [0x140451a34], eax
lea rcx, str.UMASK_DIR
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140088cf6
mov rcx, rax
call fcn.140088c20
or eax, 0x1e8
mov dword [0x140451a50], eax
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov qword [0x1404bc7e8], rax
lea rax, [0x1404bc7e8]
mov qword [0x1404bc7e0], rax
mov qword [0x1404bc7f0], 0
call fcn.1400891b0
test al, al
je 0x140088d2e
mov al, 1
add rsp, 0x28
ret
call fcn.1400892e0
test al, al
jne 0x140088d27
lea rcx, [0x140138c1c]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov qword [0x1404bc810], rax
test rax, rax
je 0x140088d66
mov rdx, rax
lea rcx, [0x1404bca40]
call fcn.14007f1f0
mov qword [0x1404bc810], rax
lea rcx, [fcn.14007c110]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__tzset]
call fcn.1400890a0
call fcn.140088f00
call fcn.140088e50
xor al, al
add rsp, 0x28
ret

Function at 0x140088d90
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x38
lea rax, [rsp + 0x40]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SYSTEMCurrentControlSetServicesTcpipParameters
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140088e37
lea rax, [rsp + 0x40]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SYSTEMCurrentControlSetServicesWinsock2Parameters
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140088e37
lea rax, [rsp + 0x40]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SYSTEMCurrentControlSetServicesWinsockParameters
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140088e37
lea rcx, str.HAVE_TCPIP
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140088e30
cmp byte [0x1404bc7d9], 0
je 0x140088e37
xor al, al
add rsp, 0x38
ret
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
add rsp, 0x38
ret