joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140066760
Capabilities:
Allocate thread local storage

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0
je 0x140066790
mov r8d, 0x29
lea rdx, [0x1400c1260]
lea rcx, str.tls__win32.allocated__GLFW_FALSE
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
xor eax, eax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, qword [rsp + 0x30]
mov dword [rcx + 4], eax
mov rax, qword [rsp + 0x30]
cmp dword [rax + 4], 0xffffffff
jne 0x1400667be
lea rdx, str.Win32:_Failed_to_allocate_TLS_index
mov ecx, 0x10008
call fcn.140069060
xor eax, eax
jmp 0x1400667ce
mov rax, qword [rsp + 0x30]
mov dword [rax], 1
mov eax, 1
add rsp, 0x20
pop rdi
ret

Function at 0x140066820
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov rax, qword [rsp + 0x30]
cmp dword [rax], 1
je 0x140066850
mov r8d, 0x40
lea rdx, [0x1400c1330]
lea rcx, [0x1400c1390]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
xor eax, eax
mov rax, qword [rsp + 0x30]
mov ecx, dword [rax + 4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x20
pop rdi
ret

Function at 0x140066870
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov rax, qword [rsp + 0x30]
cmp dword [rax], 1
je 0x1400668a5
mov r8d, 0x46
lea rdx, [0x1400c13e0]
lea rcx, str.tls__win32.allocated__GLFW_TRUE
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
xor eax, eax
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov ecx, dword [rax + 4]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x20
pop rdi
ret
Function at 0x1400691b0
Capabilities:
Log keystrokes

Disassembly:
push rdi
sub rsp, 0x220
lea rdi, [rsp + 0x40]
mov ecx, 0x78
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1400c6f40]
xor rax, rsp
mov qword [rsp + 0x210], rax
lea rax, [rsp + 0x60]
mov rdi, rax
xor eax, eax
mov ecx, pe_nt_image_headers64
rep stosb byte [rdi], al
mov r8d, 0x6d1
xor edx, edx
lea rcx, [0x1400cebb2]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x40], 0x20
jmp 0x140069215
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0x15c
jg 0x140069419
movsxd rax, dword [rsp + 0x40]
lea rcx, [0x1400ce8f8]
movsx eax, word [rcx + rax*2]
mov dword [rsp + 0x168], eax
cmp dword [rsp + 0x168], 0xffffffff
jne 0x140069246
jmp 0x14006920b
cmp dword [rsp + 0x40], 0x140
jl 0x140069322
cmp dword [rsp + 0x40], 0x14e
jg 0x140069322
mov dword [rsp + 0x1b8], 0x60
mov dword [rsp + 0x1bc], 0x61
mov dword [rsp + 0x1c0], 0x62
mov dword [rsp + 0x1c4], 0x63
mov dword [rsp + 0x1c8], 0x64
mov dword [rsp + 0x1cc], 0x65
mov dword [rsp + 0x1d0], 0x66
mov dword [rsp + 0x1d4], 0x67
mov dword [rsp + 0x1d8], 0x68
mov dword [rsp + 0x1dc], 0x69
mov dword [rsp + 0x1e0], 0x6e
mov dword [rsp + 0x1e4], 0x6f
mov dword [rsp + 0x1e8], 0x6a
mov dword [rsp + 0x1ec], 0x6d
mov dword [rsp + 0x1f0], 0x6b
mov eax, dword [rsp + 0x40]
sub eax, 0x140
cdqe
mov eax, dword [rsp + rax*4 + 0x1b8]
mov dword [rsp + 0x164], eax
jmp 0x14006933b
mov edx, 1
mov ecx, dword [rsp + 0x168]
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov dword [rsp + 0x164], eax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10
lea r9, [rsp + 0x178]
lea r8, [rsp + 0x60]
mov edx, dword [rsp + 0x168]
mov ecx, dword [rsp + 0x164]
call qword [sym.imp.USER32.dll_ToUnicode]
mov dword [rsp + 0x16c], eax
cmp dword [rsp + 0x16c], 0xffffffff
jne 0x1400693b5
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10
lea r9, [rsp + 0x178]
lea r8, [rsp + 0x60]
mov edx, dword [rsp + 0x168]
mov ecx, dword [rsp + 0x164]
call qword [sym.imp.USER32.dll_ToUnicode]
mov dword [rsp + 0x16c], eax
cmp dword [rsp + 0x16c], 1
jge 0x1400693c4
jmp 0x14006920b
movsxd rax, dword [rsp + 0x40]
imul rax, rax, 5
lea rcx, [0x1400cebb2]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], rax
mov r9d, 1
lea r8, [rsp + 0x178]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
jmp 0x14006920b
mov rcx, rsp
lea rdx, [0x14008c590]
call fcn.14006fa84
mov rcx, qword [rsp + 0x210]
xor rcx, rsp
call fcn.14006f080
add rsp, 0x220
pop rdi
ret
Function at 0x14006da40
Capabilities:
Link many functions at runtime

Disassembly:
push rdi
sub rsp, 0x70
lea rdi, [rsp + 0x20]
mov ecx, 0x14
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1400c6f40]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rax, str.libOSMesa.dll
mov qword [rsp + 0x38], rax
lea rax, str.OSMesa.dll
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0
cmp qword [0x1400cf508], 0
je 0x14006da9b
mov eax, 1
jmp 0x14006dc1b
mov dword [rsp + 0x20], 0
jmp 0x14006daaf
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
cmp qword [rsp + rax*8 + 0x38], 0
je 0x14006dae1
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + rax*8 + 0x38]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x1400cf508], rax
cmp qword [0x1400cf508], 0
je 0x14006dadf
jmp 0x14006dae1
jmp 0x14006daa5
cmp qword [0x1400cf508], 0
jne 0x14006db03
lea rdx, str.OSMesa:_Library_not_found
mov ecx, 0x10006
call fcn.140061bd0
xor eax, eax
jmp 0x14006dc1b
lea rdx, str.OSMesaCreateContextExt
mov rcx, qword [0x1400cf508]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400cf510], rax
lea rdx, str.OSMesaCreateContextAttribs
mov rcx, qword [0x1400cf508]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400cf518], rax
lea rdx, str.OSMesaDestroyContext
mov rcx, qword [0x1400cf508]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400cf520], rax
lea rdx, str.OSMesaMakeCurrent
mov rcx, qword [0x1400cf508]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400cf528], rax
lea rdx, str.OSMesaGetColorBuffer
mov rcx, qword [0x1400cf508]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400cf530], rax
lea rdx, str.OSMesaGetDepthBuffer
mov rcx, qword [0x1400cf508]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400cf538], rax
lea rdx, str.OSMesaGetProcAddress
mov rcx, qword [0x1400cf508]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400cf540], rax
cmp qword [0x1400cf510], 0
je 0x14006dbfc
cmp qword [0x1400cf520], 0
je 0x14006dbfc
cmp qword [0x1400cf528], 0
je 0x14006dbfc
cmp qword [0x1400cf530], 0
je 0x14006dbfc
cmp qword [0x1400cf538], 0
je 0x14006dbfc
cmp qword [0x1400cf540], 0
jne 0x14006dc16
lea rdx, str.OSMesa:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.140061bd0
call fcn.14006dc50
xor eax, eax
jmp 0x14006dc1b
mov eax, 1
mov rdi, rax
mov rcx, rsp
lea rdx, [0x14008cf20]
call fcn.14006fa84
mov rax, rdi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14006f080
add rsp, 0x70
pop rdi
ret

Function at 0x14006fed0
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x140013150
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 0x140011276
Capabilities:
Create thread

Disassembly:
jmp 0x140011a40
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x178
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x22
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x198]
mov rax, qword [0x14001d008]
xor rax, rbp
mov qword [rbp + 0x138], rax
lea rcx, [0x1400220a2]
call fcn.14001137a
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rbp + 0x168]
mov rcx, qword [rcx + rax]
call qword [sym.imp.ucrtbased.dll_atoi]
mov dword [0x14001d8cc], eax
lea rax, [0x14001ad74]
mov qword [rbp + 8], rax
cmp dword [0x14001d8cc], 0x64
jl 0x140011acc
cmp dword [0x14001d8cc], 0x270f
jle 0x140011af0
mov ecx, 2
call qword [sym.imp.ucrtbased.dll___acrt_iob_func]
lea rdx, str.El_valor_se_encuentra_fuera_del_rango_n
mov rcx, rax
call fcn.140011339
mov eax, 1
jmp 0x140011bad
mov eax, 8
imul rax, rax, 0
lea rax, [rbp + rax + 0x58]
mov ecx, 1
imul rcx, rcx, 0
mov rdx, qword [rbp + 8]
add rdx, rcx
mov rcx, rdx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, rcx
lea r8, [fcn.14001109b]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, 8
imul rcx, rcx, 0
mov qword [rbp + rcx + 0x28], rax
mov eax, 8
imul rax, rax, 1
lea rax, [rbp + rax + 0x58]
mov ecx, 1
imul rcx, rcx, 1
mov rdx, qword [rbp + 8]
add rdx, rcx
mov rcx, rdx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, rcx
lea r8, [fcn.14001109b]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, 8
imul rcx, rcx, 1
mov qword [rbp + rcx + 0x28], rax
mov eax, 1
imul rax, rax, 2
mov rcx, qword [rbp + 8]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.14001109b
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14001ad40]
call fcn.140011311
mov rax, rdi
mov rcx, qword [rbp + 0x138]
xor rcx, rbp
call fcn.1400111b8
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret
Function at 0x140011280
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400144a0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400144c0
xor al, al
jmp 0x140014541
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400144d3
xor al, al
jmp 0x140014541
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 0x1400144fd
xor al, al
jmp 0x140014541
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014511
xor al, al
jmp 0x140014541
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014523
xor al, al
jmp 0x140014541
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001453f
xor al, al
jmp 0x140014541
mov al, 1
add rsp, 0x38
ret
Function at 0x180013870
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x1800138cd
lea rbx, [0x18002f280]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x1800138b4
cmp r10, 2
jb 0x1800138b4
cmp byte [r9], r8b
jne 0x1800138b4
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x180013890
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x18001390f
lea rbx, [0x18002f280]
cmp r8b, 0x23
jne 0x1800138f3
cmp byte [r9], r8b
jne 0x1800138f3
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x1800138e0
mov rbx, qword [rsp + 8]
not eax
ret
Function at 0x180015d10
Capabilities:
Hash data with crc32

Disassembly:
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10d, 0xffffffff
mov eax, r10d
test r9b, r9b
je 0x180015d60
lea r11, [0x18002f280]
nop dword [rax]
cmp r9b, 0x23
jne 0x180015d43
cmp byte [r8], r9b
jne 0x180015d43
cmp byte [r8 + 1], r9b
cmove eax, r10d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [r11 + rdx*4]
test r9b, r9b
jne 0x180015d30
mov rcx, qword [0x18005afc8]
not eax
movsxd rdx, dword [rcx + 0x1ac8]
mov r9, qword [rcx + 0x1ad0]
mov r10, rdx
shl r10, 4
add r10, r9
test rdx, rdx
je 0x180015dc1
nop word [rax + rax]
mov r8, rdx
shr r8, 1
mov rcx, r8
add rcx, rcx
cmp dword [r9 + rcx*8], eax
jae 0x180015db9
lea r9, [r9 + rcx*8]
mov rcx, 0xffffffffffffffff
sub rcx, r8
add r9, 0x10
add rdx, rcx
jmp 0x180015dbc
mov rdx, r8
test rdx, rdx
jne 0x180015d90
cmp r9, r10
je 0x180015dd0
cmp dword [r9], eax
jne 0x180015dd0
mov rax, qword [r9 + 8]
ret
xor eax, eax
ret
Function at 0x18001cdf0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbx
sub rsp, 0x40
mov rbx, qword [0x18005afc8]
cmp byte [rbx + 0x3138], 0
je 0x18001cedc
cmp qword [rbx + 0x3140], 0
mov qword [rax - 0x18], rsi
lea rsi, [rax + 0x10]
mov qword [rax - 0x20], rdi
lea rdi, [rbx + 0x3148]
je 0x18001cec4
mov r9d, dword [rdi + 4]
mov qword [rax - 0x10], rbp
xor ebp, ebp
test r9d, r9d
jns 0x18001ce6b
mov eax, r9d
mov rcx, rdi
cdq
sub eax, edx
mov edx, ebp
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.18001d870
mov rcx, qword [rsp + 0x50]
mov rdx, rcx
mov dword [rdi], ebp
mov rcx, rdi
mov r8, rsi
call fcn.180013ad0
mov eax, dword [rdi]
mov edx, 1
mov r9, qword [rbx + 0x3140]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rbx + 0x3150]
cmove ecx, ebp
test rax, rax
movsxd r8, ecx
lea rcx, [0x18005af43]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x28]
add rsp, 0x40
pop rbx
ret
mov rdx, rcx
mov r8, rsi
mov rcx, rdi
call fcn.180013ad0
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x28]
add rsp, 0x40
pop rbx
ret
Function at 0x180029e40
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push r14
push r15
sub rsp, 0x98
mov rax, qword [0x18005a030]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, rcx
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
cmp rdi, 0x40000000
jbe 0x180029e8f
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x18005b0a0]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x180029ecd
cmp rsi, r14
jb 0x180029ec5
cmp rsi, r15
jae 0x180029ec5
cmp qword [rsi + 8], 0
jne 0x18002a097
mov rsi, qword [rsi]
test rsi, rsi
jne 0x180029eb0
mov qword [rsp + 0xc8], rbx
mov rbx, rdi
mov qword [rsp + 0xd0], rbp
mov qword [rsp + 0x90], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x180029f62
nop dword [rax]
nop word [rax + rax]
mov ebp, dword [rsp + 0x78]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x180029f59
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180029f59
cmp dword [rsp + 0x40], 0x10000
je 0x180029fdb
mov rbx, qword [rsp + 0x28]
cmp rbx, rbp
jb 0x180029f59
sub rbx, rbp
cmp rbx, r14
jae 0x180029f20
test rsi, rsi
jne 0x18002a040
cmp rdi, r15
ja 0x18002a07f
nop dword [rax + rax]
mov ebp, dword [rsp + 0x78]
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 0x18002a07f
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18002a07f
cmp dword [rsp + 0x40], 0x10000
je 0x18002a011
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x38]
add rdi, qword [rsp + 0x20]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x180029f92
jmp 0x18002a07f
test rbx, rbx
je 0x180029f59
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 0x18002a040
cmp rbx, r14
jae 0x180029f00
jmp 0x180029f62
test rdi, rdi
je 0x18002a07f
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 0x18002a040
cmp rdi, r15
jbe 0x180029f70
jmp 0x18002a07f
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 0x18002a050
mov rax, qword [0x18005b0a0]
mov qword [rsi], rax
mov qword [0x18005b0a0], rsi
mov r12, qword [rsp + 0x90]
mov rbp, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0xc8]
mov rax, rsi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.18002ba80
add rsp, 0x98
pop r15
pop r14
pop rdi
pop rsi
ret
Function at 0x18002aa10
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 [0x18005a030]
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 0x18002ab3b
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x18002ab32
nop dword [rax]
cmp dword [rsp + 0x20], 0x10
jb 0x18002ab14
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x18002ab14
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x18002ab14
mov rdx, qword [rbx]
test rdx, rdx
jne 0x18002aad2
mov rcx, qword [0x18005afd8]
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 0x18002ab32
jmp 0x18002ab07
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x18002ab07
mov rcx, qword [0x18005afd8]
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 0x18002ab32
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 0x18002aa80
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], rsi
je 0x18002ab93
cmp dword [rbx + 0xc], esi
jbe 0x18002ab93
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 0x18002ab8c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.18002a860
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rbx + 0xc]
jb 0x18002ab50
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18002ba80
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 0x18002abc0
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, 0x30
mov rax, qword [0x18005a030]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, ecx
lea r9, [rsp + 0x20]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x18005b090]
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 0x18002ac33
mov eax, 0xa
jmp 0x18002acc2
test esi, esi
je 0x18002ac55
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 0x18002ac78
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x18002ac78
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x18002ac71
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x18002ac78
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
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 rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.18002ba80
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x18002acf0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, ecx
mov ecx, dword [0x18005b09c]
mov ebx, edi
test ecx, ecx
je 0x18002ae2b
mov rax, qword [0x18005b090]
add rax, 0x20
nop
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x18002ad48
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x18002ad20
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xffffffff
je 0x18002ae2b
mov r8d, edi
lea rcx, [rsp + 0x20]
test esi, esi
mov edx, 0xffffffff
setne r8b
call fcn.18002aa10
mov r8d, dword [0x18005b09c]
cmp ebx, r8d
jae 0x18002adb8
nop word [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x18005b090]
movzx edx, byte [rcx + rax + 0x20]
shr edx, 1
and edx, 1
cmp edx, esi
je 0x18002adb1
mov edx, esi
mov ecx, ebx
call fcn.18002abc0
mov edi, eax
test eax, eax
jne 0x18002adb8
mov r8d, dword [0x18005b09c]
inc ebx
cmp ebx, r8d
jb 0x18002ad80
cmp qword [rsp + 0x20], 0
je 0x18002ae2b
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x18002ae17
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop dword [rax]
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18002ae08
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x18002ade0
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x18005afd8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x48]
mov eax, edi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret