joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002360
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x1400043a0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400023c0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400023c8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400023c0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1400023c0
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 0x140002414
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002420
add rdx, 0x28
cmp rdx, r9
jne 0x140002400
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x1400043a0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002452
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002460
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002452
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002452
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002452
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 0x1400024b5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400024c8
add rdx, 0x28
cmp r10, rdx
jne 0x1400024a0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400024d7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400024e7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400024be
test ecx, ecx
jg 0x1400024d0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140001050
Capabilities:
Get local ipv4 addresses

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x4b0
mov dword [rsp + 0x4a4], 0
xor ecx, ecx
mov edx, send
xor eax, eax
mov r9d, eax
lea rax, [rsp + 0x4a4]
mov r8, r9
mov qword [rsp + 0x20], rax
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
mov dword [rsp + 0x4a0], eax
mov edx, dword [rsp + 0x4a0]
lea rcx, str.Result:__lu_n
call fcn.140001c70
cmp dword [rsp + 0x4a0], 0x6f
jne 0x1400012e5
mov eax, dword [rsp + 0x4a4]
mov ecx, eax
call fcn.140005c10
mov qword [rsp + 0x498], rax
mov rcx, qword [rsp + 0x498]
mov eax, dword [rsp + 0x4a4]
mov r8d, eax
xor edx, edx
call fcn.140002a60
cmp qword [rsp + 0x498], 0
je 0x1400012d4
mov r9, qword [rsp + 0x498]
xor ecx, ecx
mov edx, send
xor eax, eax
mov r8d, eax
lea rax, [rsp + 0x4a4]
mov qword [rsp + 0x20], rax
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
mov dword [rsp + 0x4a0], eax
cmp dword [rsp + 0x4a0], 0
jne 0x1400012af
mov rax, qword [rsp + 0x498]
mov qword [rsp + 0x490], rax
cmp qword [rsp + 0x490], 0
je 0x140001288
mov rax, qword [rsp + 0x490]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
je 0x1400011c3
mov rax, qword [rsp + 0x68]
mov rax, qword [rax + 0x10]
movzx eax, word [rax]
cmp eax, 2
jne 0x1400011ab
mov rax, qword [rsp + 0x68]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x60], rax
lea r8, [rsp + 0x70]
mov rdx, qword [rsp + 0x60]
add rdx, 4
mov ecx, 2
mov r9d, send
call sub.WS2_32.dll_inet_ntop
jmp 0x1400011c3
jmp 0x1400011b0
mov rax, qword [rsp + 0x68]
mov rax, qword [rax + 8]
mov qword [rsp + 0x68], rax
jmp 0x140001159
lea rbx, [rsp + 0x70]
mov rax, qword [rsp + 0x490]
movzx edi, byte [rax + 0x55]
mov rax, qword [rsp + 0x490]
movzx esi, byte [rax + 0x54]
mov rax, qword [rsp + 0x490]
movzx r11d, byte [rax + 0x53]
mov rax, qword [rsp + 0x490]
movzx r10d, byte [rax + 0x52]
mov rax, qword [rsp + 0x490]
movzx r8d, byte [rax + 0x51]
mov rax, qword [rsp + 0x490]
movzx edx, byte [rax + 0x50]
mov rax, qword [rsp + 0x490]
mov r9, qword [rax + 0x10]
lea rcx, [rsp + 0x80]
mov rax, rsp
mov qword [rax + 0x50], rbx
mov dword [rax + 0x48], edi
mov dword [rax + 0x40], esi
mov dword [rax + 0x38], r11d
mov dword [rax + 0x30], r10d
mov dword [rax + 0x28], r8d
mov dword [rax + 0x20], edx
lea r8, str.Adapter_Name:__s_nMAC_Address:__.2X__.2X__.2X__.2X__.2X__.2X_nIP_Address:__s_n_n
mov edx, 0x404
call fcn.140001ce0
lea rdx, [rsp + 0x80]
lea rcx, [0x140023ac0]
add rcx, 0x810
call fcn.140005c30
mov rax, qword [rsp + 0x490]
mov rax, qword [rax + 8]
mov qword [rsp + 0x490], rax
jmp 0x140001139
mov rcx, qword [rsp + 0x498]
call fcn.140005d88
lea rax, [0x140023ac0]
add rax, 0x810
mov qword [rsp + 0x4a8], rax
jmp 0x140001304
mov edx, dword [rsp + 0x4a0]
lea rcx, str.GetAdaptersAddresses_failed_with_error:__lu_n
call fcn.140001c70
mov rcx, qword [rsp + 0x498]
call fcn.140005d88
jmp 0x1400012e0
lea rcx, str.Failed_to_allocate_memory_for_adapter_addresses._n
call fcn.140001c70
jmp 0x1400012f8
mov edx, dword [rsp + 0x4a0]
lea rcx, str.GetAdaptersAddresses_failed_with_error:__lu_n
call fcn.140001c70
mov qword [rsp + 0x4a8], 0
mov rax, qword [rsp + 0x4a8]
add rsp, 0x4b0
pop rbx
pop rdi
pop rsi
ret
Function at 0x140001320
Capabilities:
Connect socket
Initialize winsock library
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
mov eax, 0x41e8
call fcn.140001fb0
sub rsp, rax
mov qword [rsp + 0x41e0], rcx
mov ecx, 0x202
lea rdx, [rsp + 0x4048]
call qword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, 0
je 0x140001362
lea rcx, str.Failed_to_initialize_Winsock._n
call fcn.140001c70
jmp 0x140001529
mov ecx, 2
mov edx, 1
xor r8d, r8d
call qword [sym.imp.WS2_32.dll_socket]
mov qword [0x140023ac8], rax
cmp qword [0x140023ac8], 0xffffffffffffffff
jne 0x1400013a1
lea rcx, str.Failed_to_create_socket._n
call fcn.140001c70
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x140001529
mov word [rsp + 0x4038], 2
mov ecx, 0x138d
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x403a], ax
lea rcx, str.127.0.0.1
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rsp + 0x403c], eax
mov rcx, qword [0x140023ac8]
lea rdx, [rsp + 0x4038]
mov r8d, send
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x14000141a
lea rcx, str.Failed_to_connect_to_the_server._n
call fcn.140001c70
mov rcx, qword [0x140023ac8]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x140001529
mov rcx, qword [rsp + 0x41e0]
call fcn.140005f60
mov dword [rsp + 0x4034], eax
mov r9d, dword [rsp + 0x4034]
lea rcx, [rsp + 0x30]
lea rdx, str.POST__upload_HTTP_1.1_r_nHost:__s_r_nContent_Length:__d_r_nContent_Type:_text_plain_r_n_r_n
lea r8, str.127.0.0.1
call fcn.140001c20
lea rcx, [rsp + 0x30]
call fcn.140005f60
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, qword [0x140023ac8]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
mov dword [rsp + 0x2c], eax
movsxd rax, dword [rsp + 0x2c]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x30]
call fcn.140005f60
mov rcx, rax
mov rax, qword [rsp + 0x20]
cmp rax, rcx
je 0x1400014bd
lea rcx, str.Failed_to_send_HTTP_header_to_server._n
call fcn.140001c70
mov rcx, qword [0x140023ac8]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x140001529
mov r8d, dword [rsp + 0x4034]
mov rdx, qword [rsp + 0x41e0]
mov rcx, qword [0x140023ac8]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
cmp eax, dword [rsp + 0x4034]
je 0x140001516
lea rcx, str.Failed_to_send_data_to_server._n
call fcn.140001c70
mov rcx, qword [0x140023ac8]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x140001529
mov rcx, qword [0x140023ac8]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
add rsp, 0x41e8
ret
Function at 0x140002738
Capabilities:
Parse pe header

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

Function at 0x140009b08
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400098f8
Function at 0x14000eddc
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 0x14000ee0c
xor eax, eax
jmp 0x14000eecf
mov rbp, rbx
cmp word [rax], si
je 0x14000ee31
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000ee18
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000ee14
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.14000ed2c
movsxd r14, eax
test eax, eax
jne 0x14000ee6f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000ee05
mov rcx, r14
call fcn.14000a40c
mov rdi, rax
test rax, rax
jne 0x14000ee88
xor ecx, ecx
call fcn.14000a46c
jmp 0x14000ee64
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.14000ed2c
test eax, eax
jne 0x14000eeb9
mov rcx, rdi
call fcn.14000a46c
jmp 0x14000eec3
xor ecx, ecx
call fcn.14000a46c
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 0x1400141cc
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000de30
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140014256
cmp byte [rbp - 0x21], r15b
je 0x140014251
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14001428c
call fcn.14000ac1c
test eax, eax
jne 0x140014278
cmp byte [rbp - 0x21], r15b
je 0x140014270
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14001428c
cmp byte [rbp - 0x21], r15b
je 0x140014289
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14000d40c
test eax, eax
jne 0x14001432c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000de30
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400142cb
cmp byte [rbp - 0x21], r15b
je 0x140014300
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140014300
call fcn.14000ac1c
test eax, eax
jne 0x1400142ec
cmp byte [rbp - 0x21], r15b
je 0x1400142e5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140014300
cmp byte [rbp - 0x21], r15b
je 0x1400142fd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14000d40c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14001432c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14001432f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14001433d
mov rcx, rdi
call fcn.14000a46c
cmp byte [rbp + 0x3f], r15b
je 0x14001434c
mov rcx, qword [rbp + 0x27]
call fcn.14000a46c
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400017e0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140002700
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140002700
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140001850
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140007084]
test esi, esi
mov rdi, rcx
mov rbp, rdx
mov rbx, r8
jle 0x1400019e0
mov rax, qword [0x140007088]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rdi, rdx
jb 0x14000189c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rdi, rdx
jb 0x140001925
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x140001880
mov rcx, rdi
call fcn.1400023b0
test rax, rax
mov r12, rax
je 0x140001a32
mov rax, qword [0x140007088]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.1400024f0
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x140007088]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001a15
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000191e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001990
add dword [0x140007084], 1
cmp ebx, 8
jae 0x140001951
test bl, 4
jne 0x1400019f0
test ebx, ebx
je 0x140001946
movzx eax, byte [rbp]
test bl, 2
mov byte [rdi], al
jne 0x140001a04
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, ebx
sub ebx, 1
mov rdx, qword [rbp + rax - 8]
cmp ebx, 8
mov qword [rdi + rax - 8], rdx
jb 0x140001946
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, ebx
mov qword [rdi + rdx], rcx
jb 0x14000196a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov r8d, 4
mov eax, 0x40
mov rcx, qword [rsp + 0x20]
cmovne r8d, eax
mov rdx, qword [rsp + 0x38]
add rsi, qword [0x140007088]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000191e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400017e0
xor esi, esi
jmp 0x1400018a7
mov eax, dword [rbp]
mov ebx, ebx
mov dword [rdi], eax
mov eax, dword [rbp + rbx - 4]
mov dword [rdi + rbx - 4], eax
jmp 0x140001946
mov ebx, ebx
movzx eax, word [rbp + rbx - 2]
mov word [rdi + rbx - 2], ax
jmp 0x140001946
mov rax, qword [0x140007088]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.1400017e0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rdi
call fcn.1400017e0
nop
nop dword [rax]
nop word cs:[rax + rax]
Function at 0x140002000
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1400070e0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400070c0]
test rbx, rbx
je 0x140002054
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x14000204b
test rsi, rsi
je 0x14000204b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002030
lea rcx, [0x1400070e0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400023b0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140004360]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x14000241f
mov rcx, r9
call fcn.140002280
test eax, eax
je 0x14000241f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
lea rdx, [r9 + rax + 0x18]
movzx eax, word [r9 + 6]
test eax, eax
je 0x14000241d
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x140002414
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x14000241f
add rdx, 0x28
cmp rdx, r9
jne 0x140002400
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret

Function at 0x140002830
Capabilities:
Create process on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xe8
lea rbp, [rsp + 0x50]
mov rbx, rdx
call fcn.1400015e0
mov rsi, qword [sym.imp.KERNEL32.dll_CreateProcessA]
lea rdi, [rsp + 0x70]
nop dword [rax]
mov rcx, qword [rbx]
mov qword [rsp + 0x48], rbp
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x40], rdi
xor edx, edx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
call rsi
jmp 0x140002858
Function at 0x140002f30
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 fcn.140004c10
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140004c10
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140002fa0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000a0a4]
mov rbx, rcx
test esi, esi
jle 0x1400030d0
mov rax, qword [0x14000a0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002feb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140003075
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002fd0
mov rcx, rbx
call fcn.1400039f0
mov rdi, rax
test rax, rax
je 0x1400030f2
mov rax, qword [0x14000a0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003b30
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000a0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400030d7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000306e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140003080
add dword [0x14000a0a4], 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 [0x14000a0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000306e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002f30
nop dword [rax]
xor esi, esi
jmp 0x140002ff8
mov rax, qword [0x14000a0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002f30
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002f30
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003660
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000a100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000a0e0]
test rbx, rbx
je 0x1400036bc
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 0x1400036b3
test rsi, rsi
je 0x1400036b3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003698
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 0x1400039f0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140006b10]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003a10
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003a18
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003a10
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140003a6d
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 0x140003a64
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140003a10
add rax, 0x28
cmp rax, r9
jne 0x140003a50
xor eax, eax
ret

Function at 0x140003a70
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006b10]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140003a8f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140003a98
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140003a8f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140003b30
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006b10]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140003b4f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003b58
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x3a4da1619
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
push rbp
sub rsp, 0x100
lea rbp, [rsp + 0x80]
lea rax, [rbp + 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetSystemInfo]
call rax
mov eax, dword [rbp + 0x30]
cmp eax, 1
ja 0x3a4da164b
mov eax, 1
jmp 0x3a4da170a
mov dword [rbp - 0x30], 0x40
lea rax, [rbp - 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
call rax
mov rdx, qword [rbp - 0x28]
mov eax, 0x80000000
cmp rdx, rax
jae 0x3a4da167a
mov eax, 1
jmp 0x3a4da170a
mov rax, qword [sym.imp.KERNEL32.dll_GetTickCount64]
call rax
mov qword [rbp + 0x78], rax
mov qword [rbp - 0x38], 0xffffffffdc3cba00
lea rax, [rbp + 0x50]
lea rdx, [rbp + 0x4f]
mov rcx, rax
call fcn.3a4da1538
mov rax, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x58]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rdx
mov rax, qword [rbp + 0x5a]
mov rdx, qword [rbp + 0x62]
mov qword [rbp - 0x56], rax
mov qword [rbp - 0x4e], rdx
lea rax, [rbp - 0x60]
mov rcx, rax
call fcn.3a4dbe150
mov r8, qword [0x3a4eb5098]
lea rax, [rbp - 0x38]
mov rdx, rax
mov ecx, 0
call r8
mov rax, qword [sym.imp.KERNEL32.dll_GetTickCount64]
call rax
mov qword [rbp + 0x70], rax
mov rax, qword [rbp + 0x70]
sub rax, qword [rbp + 0x78]
cmp rax, 0xea5f
ja 0x3a4da1705
mov eax, 1
jmp 0x3a4da170a
mov eax, 0
add rsp, 0x100
pop rbp
ret