joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140009a10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov word [rsp + 0x18], r8w
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rcx, qword [rsp + 0x90]
call fcn.140009de0
test eax, eax
jne 0x140009a3e
xor eax, eax
jmp 0x140009c24
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x90]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
add rax, 0x88
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp dword [rax + 4], 0
je 0x140009a8c
mov rax, qword [rsp + 0x38]
cmp dword [rax], 0
jne 0x140009a93
xor eax, eax
jmp 0x140009c24
mov rax, qword [rsp + 0x38]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x90]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx + rax + 4]
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x90]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x90]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x90]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x28], 0
cmp dword [rsp + 0x98], 0
je 0x140009bad
mov dword [rsp + 0x20], 0
jmp 0x140009b3f
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x20], eax
jae 0x140009bab
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x90]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x68]
call fcn.140011980
cmp dword [rsp + 0x98], eax
jne 0x140009ba9
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x70]
movzx eax, word [rcx + rax*2]
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x90]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
jmp 0x140009bab
jmp 0x140009b35
jmp 0x140009bda
movzx eax, word [rsp + 0xa0]
mov rcx, qword [rsp + 0x30]
sub eax, dword [rcx + 0x10]
mov eax, eax
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x90]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140009be6
xor eax, eax
jmp 0x140009c24
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jb 0x140009c1f
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x28], rax
jae 0x140009c1f
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x90]
call fcn.140009e70
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
add rsp, 0x88
ret
Function at 0x140009c30
Capabilities:
Access peb ldr_data

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
mov rax, qword gs:[0x60]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
add rax, 0x10
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x48]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x20], rax
mov dx, 0x5c
mov rcx, qword [rsp + 0x80]
call fcn.140012028
test rax, rax
je 0x140009c96
mov dword [rsp + 0x28], 1
jmp 0x140009c9e
mov dword [rsp + 0x28], 0
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x140009cd7
mov rax, qword [rsp + 0x20]
mov rdx, qword [rax + 0x50]
mov rcx, qword [rsp + 0x80]
call sub.api_ms_win_crt_string_l1_1_0.dll__wcsicmp
test eax, eax
jne 0x140009cd5
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x30]
jmp 0x140009dd2
jmp 0x140009cff
mov rax, qword [rsp + 0x20]
mov rdx, qword [rax + 0x60]
mov rcx, qword [rsp + 0x80]
call sub.api_ms_win_crt_string_l1_1_0.dll__wcsicmp
test eax, eax
jne 0x140009cff
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x30]
jmp 0x140009dd2
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x68]
cmp qword [rsp + 0x20], rax
jne 0x140009ca6
cmp dword [rsp + 0x88], 0
jne 0x140009d29
xor eax, eax
jmp 0x140009dd2
xor edx, edx
lea rcx, [0x140019e20]
call fcn.140009c30
xor r8d, r8d
mov edx, 0xa301ecda
mov rcx, rax
call fcn.140009a10
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x140009d58
xor eax, eax
jmp 0x140009dd2
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov edx, 0x104
mov rcx, qword [rsp + 0x38]
call sub.api_ms_win_crt_string_l1_1_0.dll_wcsnlen
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
shl eax, 1
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
add eax, 2
mov word [rsp + 0x32], ax
mov qword [rsp + 0x58], 0
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x30]
xor edx, edx
xor ecx, ecx
call qword [rsp + 0x50]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jge 0x140009dcd
xor eax, eax
jmp 0x140009dd2
mov rax, qword [rsp + 0x58]
add rsp, 0x70
pop rdi
ret

Function at 0x140009de0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
cmp qword [rsp + 0x30], 0
jne 0x140009df5
xor eax, eax
jmp 0x140009e62
mov rax, qword [rsp + 0x30]
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140009e12
xor eax, eax
jmp 0x140009e62
mov rax, qword [rsp + 8]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0x10]
cmp dword [rax], 0x4550
je 0x140009e3c
xor eax, eax
jmp 0x140009e62
mov rax, qword [rsp + 0x10]
movzx eax, word [rax + 0x16]
mov word [rsp], ax
movzx eax, word [rsp]
and eax, 0x2000
cmp eax, 0x2000
je 0x140009e5d
xor eax, eax
jmp 0x140009e62
mov eax, 1
add rsp, 0x28
ret
Function at 0x14000a6d0
Capabilities:
Acquire debug privileges

Disassembly:
sub rsp, 0x38
mov r8d, 1
lea rdx, [0x140019ea8]
xor ecx, ecx
call fcn.140009fa0
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x14000a725
mov ecx, 1
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
lea rdx, str.Could_not_enable_SeDebugPrivilege._Are_you_elevated_
mov rcx, rax
call fcn.140001060
mov ecx, 1
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
lea rdx, [0x140019ecc]
mov rcx, rax
call fcn.140001060
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret

Function at 0x14000b5b0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
mov rax, qword gs:[0x60]
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
add rax, 0x118
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0x10]
cmp dword [rax], 6
ja 0x14000b5e5
mov dword [rsp], 0x400
jmp 0x14000b5ec
mov dword [rsp], 0x1000
mov eax, dword [rsp]
bts eax, 7
add rsp, 0x28
ret

Function at 0x14000b600
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
mov rax, qword gs:[0x60]
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
add rax, 0x118
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0x10]
cmp dword [rax], 6
ja 0x14000b635
mov dword [rsp], 0x400
jmp 0x14000b63c
mov dword [rsp], 0x1000
mov eax, dword [rsp]
or eax, 0x10
add rsp, 0x28
ret

Function at 0x14000c890
Capabilities:
Acquire debug privileges

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
lea rax, str.SeDebugPrivilege
mov qword [rsp + 0x28], rax
lea rax, str.SeAssignPrimaryTokenPrivilege
mov qword [rsp + 0x30], rax
mov r9d, 2
lea r8, [rsp + 0x28]
mov rdx, qword [rsp + 0x50]
lea rcx, [0x14001a378]
call fcn.14000c920
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x14000c90a
mov ecx, 1
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
lea rdx, str.Could_not_impersonate_SYSTEM
mov rcx, rax
call fcn.140001060
mov ecx, 1
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
lea rdx, [0x14001a294]
mov rcx, rax
call fcn.140001060
mov eax, dword [rsp + 0x20]
add rsp, 0x48
ret
Function at 0x14000c920
Capabilities:
Acquire debug privileges

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x24], 0
mov rax, qword [rsp + 0x58]
mov qword [rax], 0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea rax, [0x14001a1e8]
mov qword [rsp + 0x30], rax
lea rax, str.SeImpersonatePrivilege
mov qword [rsp + 0x38], rax
mov r9d, 1
mov r8d, 2
lea rdx, [rsp + 0x30]
xor ecx, ecx
call fcn.14000a520
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x14000c99a
jmp 0x14000c9ec
lea r9, [rsp + 0x28]
mov r8d, dword [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
call fcn.14000c240
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x14000c9c0
jmp 0x14000c9ec
mov rcx, qword [rsp + 0x28]
call fcn.14000c850
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x14000c9d7
jmp 0x14000c9ec
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x28]
mov qword [rax], rcx
mov dword [rsp + 0x24], 1
cmp dword [rsp + 0x24], 0
jne 0x14000ca05
cmp qword [rsp + 0x28], 0
je 0x14000ca05
mov rcx, qword [rsp + 0x28]
call fcn.140010655
mov eax, dword [rsp + 0x24]
add rsp, 0x48
ret
Function at 0x140012cac
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140012cf6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140012cf6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140012cf6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140012cf6
cmp dword [rcx + 0x84], 0xe
jbe 0x140012cf6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140012cf8
xor al, al
add rsp, 0x28
ret

Function at 0x140014330
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140014358
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140014358
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x40392f
Capabilities:
Query environment variable

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
lea rax, str.C_INCLUDE_PATH
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_getenv
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
cmp rax, 0
je 0x40397b
mov rax, qword [rbp - 8]
mov r11, rax
mov rax, qword [rbp + 0x10]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.libtccbs.dll_tcc_add_sysinclude_path
lea rax, str.CPATH
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_getenv
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
cmp rax, 0
je 0x4039b8
mov rax, qword [rbp - 8]
mov r11, rax
mov rax, qword [rbp + 0x10]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.libtccbs.dll_tcc_add_include_path
lea rax, str.LIBRARY_PATH
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_getenv
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
cmp rax, 0
je 0x4039f5
mov rax, qword [rbp - 8]
mov r11, rax
mov rax, qword [rbp + 0x10]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.libtccbs.dll_tcc_add_library_path
leave
ret
Function at 0x1400111e5
Capabilities:
Terminate process

Disassembly:
jmp 0x140012e60
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x14001126c
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400141b0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400141d0
xor al, al
jmp 0x140014251
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400141e3
xor al, al
jmp 0x140014251
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001420d
xor al, al
jmp 0x140014251
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014221
xor al, al
jmp 0x140014251
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014233
xor al, al
jmp 0x140014251
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001424f
xor al, al
jmp 0x140014251
mov al, 1
add rsp, 0x38
ret
Function at 0x2bfe5a3c0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x2bfe5a430
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x2bfe66074]
mov rbx, rcx
test esi, esi
jle 0x2bfe5a560
mov rax, qword [0x2bfe66078]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x2bfe5a47b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x2bfe5a505
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x2bfe5a460
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x2bfe5a582
mov rax, qword [0x2bfe66078]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x2bfe66078]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x2bfe5a567
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x2bfe5a4fe
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x2bfe5a510
add dword [0x2bfe66074], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x2bfe66078]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x2bfe5a4fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x2bfe5a488
mov rax, qword [0x2bfe66078]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x2bfe5a900
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x2bfe660a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x2bfe66080]
test rbx, rbx
je 0x2bfe5a95c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x2bfe5a953
test rsi, rsi
je 0x2bfe5a953
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x2bfe5a938
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x2bfe5ab70
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x2bfe5ab88
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x2bfe5ab90
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x2bfe5aba0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x2bfe5abed
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x2bfe5abe4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x2bfe5abef
add rax, 0x28
cmp rax, r9
jne 0x2bfe5abd0
xor eax, eax
ret

Function at 0x2bfe5abf0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x2bfe5ac80
mov rdx, qword [0x2bfe63910]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x2bfe5ac6e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x2bfe5ac6e
cmp word [rax + 0x18], 0x20b
jne 0x2bfe5ac6e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x2bfe5ac80
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x2bfe5ac59
add rbx, 0x28
cmp rbx, rdi
je 0x2bfe5ac80
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x2bfe5ac50
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x2bfe5ac90
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x2bfe63910]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x2bfe5acb0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x2bfe5acb8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x2bfe5acb0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x2bfe5ad0d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x2bfe5ad04
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x2bfe5acb0
add rax, 0x28
cmp rax, r9
jne 0x2bfe5acf0
xor eax, eax
ret

Function at 0x2bfe5ad10
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x2bfe63910]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x2bfe5ad2f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x2bfe5ad38
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x2bfe5ad2f
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x2bfe5ad50
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x2bfe63910]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x2bfe5ad70
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x2bfe5ad78
ret
cmp word [rdx + 0x18], 0x20b
jne 0x2bfe5ad70
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x2bfe5adc0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x2bfe5adb7
test rcx, rcx
je 0x2bfe5ad70
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x2bfe5ada8
xor eax, eax
ret

Function at 0x2bfe5add0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x2bfe63910]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x2bfe5adef
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x2bfe5adf8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x2bfe5ae10
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x2bfe63910]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x2bfe5ae30
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x2bfe5ae38
ret
cmp word [r8 + 0x18], 0x20b
jne 0x2bfe5ae30
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x2bfe5ae30
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x2bfe5ae84
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x2bfe5ae90
add rdx, 0x28
cmp r9, rdx
jne 0x2bfe5ae70
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x2bfe5aea0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x2bfe63910]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x2bfe5aec2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x2bfe5aed0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x2bfe5aec2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x2bfe5aec2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x2bfe5aec2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x2bfe5af25
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x2bfe5af38
add rdx, 0x28
cmp rdx, r10
jne 0x2bfe5af10
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x2bfe5af47
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x2bfe5af57
mov edx, dword [rax + 0xc]
test edx, edx
je 0x2bfe5af2e
test ecx, ecx
jg 0x2bfe5af40
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x14000c100
Capabilities:
Resolve dns

Disassembly:
push rbx
push r14
sub rsp, 0x58
mov rax, qword [0x1401205e8]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov r14, rcx
mov rbx, rdx
mov rcx, rdx
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x14000c145
cmp word [rax + 0x10], 2
jne 0x14000c145
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
mov eax, dword [rcx]
mov dword [r14], eax
xor eax, eax
jmp 0x14000c1f9
mov qword [rsp + 0x80], rbp
mov qword [rsp + 0x50], rsi
xor esi, esi
mov qword [rsp + 0x48], rdi
mov ebp, esi
mov qword [rsp + 0x40], r15
mov edi, esi
mov dword [rsp + 0x28], 0
lea r15d, [rsi + 0x2e]
nop
lea rdx, [rbx + 1]
mov qword [rsp + 0x20], rdx
cmp byte [rbx], 0x30
je 0x14000c1b3
mov r8d, 0xa
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
cmp eax, 0xff
ja 0x14000c1db
mov rdx, qword [rsp + 0x20]
cmp rdx, rbx
je 0x14000c1db
mov rcx, rdx
sub rcx, rbx
cmp rcx, 3
jg 0x14000c1db
mov byte [rsp + rdi + 0x28], al
movsx eax, byte [rdx]
cmp ebp, 3
mov ecx, esi
cmovl ecx, r15d
cmp eax, ecx
jne 0x14000c1db
inc ebp
lea rbx, [rdx + 1]
inc rdi
cmp rdi, 4
jl 0x14000c170
mov eax, dword [rsp + 0x28]
mov dword [r14], eax
jmp 0x14000c1e0
mov esi, 0xffffffff
mov r15, qword [rsp + 0x40]
mov eax, esi
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400db0d0
add rsp, 0x58
pop r14
pop rbx
ret

Function at 0x14000c220
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x1401205e8]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov ecx, 0x101
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x14000c289
movzx eax, word [rsp + 0x20]
cmp al, 1
jne 0x14000c283
shr ax, 8
cmp al, 1
jne 0x14000c283
mov ecx, 1
call qword [sym.imp.WINMM.dll_timeBeginPeriod]
xor eax, eax
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1400db0d0
add rsp, 0x1d8
ret
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1400db0d0
add rsp, 0x1d8
ret

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

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1401205e8]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rdx
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x28]
lea r8, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x14000c3c8
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400db0d0
add rsp, 0x40
pop rbx
ret
mov eax, dword [rsp + 0x2c]
movzx ecx, word [rsp + 0x2a]
mov dword [rbx], eax
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [rbx + 4], ax
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400db0d0
add rsp, 0x40
pop rbx
ret