joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800038b0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rsi, r8
mov rbx, rcx
test rcx, rcx
jne 0x1800038e5
mov r8d, 0x81c
lea rdx, str.D:HydroGen_SCPSL_SrcImGui_DirectX_11_Kiero_Hookimguiimgui.cpp
lea rcx, str.filename__mode
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
xor r14d, r14d
test rsi, rsi
je 0x1800038f0
mov qword [rsi], r14
lea rdx, [0x18005b8a8]
mov rcx, rbx
call fcn.1800037c0
mov rbx, rax
test rax, rax
jne 0x180003918
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rbp
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x180003a42
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x180003a42
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x180003a42
xor r8d, r8d
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x180003a42
cmp rdi, 0xffffffffffffffff
je 0x180003a42
mov rcx, rdi
call fcn.180007290
mov rbp, rax
test rax, rax
je 0x180003a42
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x180003a2f
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov r8, qword [0x180186df0]
test r8, r8
je 0x180003a24
movsx rdx, word [r8 + 0x6078]
lea rcx, [r8 + 0x607c]
mov r9d, dword [r8 + 0x3f90]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x180003a19
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x6078], cx
movsx rax, cx
lea rcx, [r8 + 0x607c]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r14d
inc word [rcx + 6]
inc dword [r8 + 0x6074]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x180003a4b
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
je 0x180003a3d
mov qword [rsi], rdi
mov rax, rbp
jmp 0x180003a4d
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbp, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x180006bc0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
movsxd rbx, edx
mov r14, rcx
mov edi, ebx
mov esi, ebx
mov ebp, ebx
shr edi, 0x18
mov edx, ebx
shr esi, 0x10
mov r8d, ebx
shr ebp, 8
mov r9d, ebx
shr edx, 8
shr r8d, 0x10
movzx r10d, bl
shr r9d, 0x18
cmp dword [rcx + 0x100], 0
jg 0x180006c31
mov r8d, 0x76f
lea rdx, str.D:HydroGen_SCPSL_SrcImGui_DirectX_11_Kiero_Hookimguiimgui.h
lea rcx, str.Size___0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
movzx r10d, bl
movzx edx, bpl
movzx r8d, sil
movzx r9d, dil
movsxd rcx, dword [r14 + 0x100]
mov rax, qword [r14 + 0x108]
mov edi, dword [rax + rcx*4 - 4]
not edi
movzx eax, r10b
movzx ecx, dil
lea r10, [0x18005c0c0]
xor rcx, rax
shr edi, 8
movzx eax, dl
xor edi, dword [r10 + rcx*4]
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, r8b
xor edi, dword [r10 + rcx*4]
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, r9b
xor edi, dword [r10 + rcx*4]
movzx ecx, dil
xor rcx, rax
shr edi, 8
xor edi, dword [r10 + rcx*4]
mov rcx, qword [r14]
not edi
cmp dword [rcx + 0x4084], edi
jne 0x180006caf
mov r8, rbx
mov edx, 4
mov ecx, edi
call fcn.18001d8e0
mov rbx, qword [rsp + 0x50]
mov eax, edi
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x18000a9b0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov rax, qword [0x180186010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov r9, qword [0x180186df0]
mov r14, r8
mov ebp, edx
mov rsi, rcx
mov rdi, r9
mov r15, qword [r9 + 0x4038]
test edx, edx
jne 0x18000aa1a
mov r8d, 0x154d
lea rdx, str.D:HydroGen_SCPSL_SrcImGui_DirectX_11_Kiero_Hookimguiimgui.cpp
lea rcx, str.id___0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov r9, qword [0x180186df0]
mov ebx, dword [r15 + 0x14]
or dword [rdi + 0x49e8], 0x100
and ebx, 4
mov dword [rdi + 0x4a20], 1
or ebx, 0x1000103
mov rdx, qword [r9 + 0x4038]
cmp qword [rdx + 0x1b8], 0
jne 0x18000aa5b
cmp qword [r9 + 0x4dd8], 0
mov eax, 0x260
je 0x18000aa60
mov eax, 0x230
movss xmm2, dword [rdx + rax]
lea rcx, [rsp + 0x30]
movss xmm3, dword [rdx + rax + 4]
subss xmm3, dword [rdx + 0x114]
subss xmm2, dword [rdx + 0x110]
mov rdx, qword [r14]
call fcn.180015580
or dword [r9 + 0x49e8], 2
lea rcx, [rsp + 0x30]
movsd xmm3, qword [rsp + 0x30]
xor edx, edx
movsd qword [r9 + 0x4a08], xmm3
mov dword [r9 + 0x49f0], 1
mov r9, qword [r15 + 8]
test rsi, rsi
je 0x18000aad1
mov dword [rsp + 0x28], ebp
lea r8, str._s__s__08X
mov qword [rsp + 0x20], rsi
call fcn.1800035a0
jmp 0x18000aae1
lea r8, str._s__08X
mov dword [rsp + 0x20], ebp
call fcn.1800035a0
mov rcx, qword [rsp + 0x30]
mov r8d, ebx
movss xmm6, dword [rdi + 0x3920]
xor edx, edx
call fcn.18000e270
mov rsi, qword [rdi + 0x4038]
movzx r14d, al
movss dword [rdi + 0x3920], xmm6
cmp word [rsi + 0xcc], 1
mov dword [rsi + 0x88], ebp
jne 0x18000ab29
movsd xmm0, qword [rsi + 0x28]
movsd qword [r15 + 0x110], xmm0
mov r9d, ebp
lea rdx, [0x180057cd9]
not r9d
lea r10, [0x18005c0c0]
mov ebx, r9d
mov r8b, 0x23
cmp r8b, 0x23
jne 0x18000ab56
cmp byte [rdx], r8b
jne 0x18000ab56
cmp byte [rdx + 1], r8b
cmove ebx, r9d
movzx ecx, bl
movzx eax, r8b
movzx r8d, byte [rdx]
xor rcx, rax
shr ebx, 8
inc rdx
xor ebx, dword [r10 + rcx*4]
test r8b, r8b
jne 0x18000ab43
not ebx
cmp dword [rdi + 0x409c], ebx
jne 0x18000ab86
xor edx, edx
xor ecx, ecx
call fcn.180006dd0
cmp dword [rdi + 0x4b18], ebp
jne 0x18000abcb
cmp word [rsi + 0x16c], 0
jne 0x18000aba1
cmp byte [rsi + 0x172], 0
je 0x18000abcb
xor edx, edx
mov rcx, rsi
call fcn.180011210
xor edx, edx
mov rcx, rsi
call fcn.180018300
mov rdx, rsi
mov ecx, ebx
call fcn.180006dd0
mov eax, dword [rdi + 0x4b3c]
mov dword [rdi + 0x40c0], eax
movzx eax, r14b
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180053120
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop r15
pop r14
pop rdi
ret
Function at 0x18000afb0
Capabilities:
Hash data with crc32

Disassembly:
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10d, 0xffffffff
mov eax, r10d
test r9b, r9b
je 0x18000b000
lea r11, [0x18005c0c0]
nop dword [rax]
cmp r9b, 0x23
jne 0x18000afe3
cmp byte [r8], r9b
jne 0x18000afe3
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 0x18000afd0
mov rcx, qword [0x180186df0]
not eax
movsxd rdx, dword [rcx + 0x4018]
mov r9, qword [rcx + 0x4020]
mov r10, rdx
shl r10, 4
add r10, r9
test rdx, rdx
je 0x18000b061
nop word [rax + rax]
mov r8, rdx
shr r8, 1
mov rcx, r8
add rcx, rcx
cmp dword [r9 + rcx*8], eax
jae 0x18000b059
lea r9, [r9 + rcx*8]
mov rcx, 0xffffffffffffffff
sub rcx, r8
add r9, 0x10
add rdx, rcx
jmp 0x18000b05c
mov rdx, r8
test rdx, rdx
jne 0x18000b030
cmp r9, r10
je 0x18000b070
cmp dword [r9], eax
jne 0x18000b070
mov rax, qword [r9 + 8]
ret
xor eax, eax
ret

Function at 0x1800160b0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x180186010]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x180186df0]
mov edi, ecx
cmp byte [rbx + 0x4d21], 0
jne 0x180016111
cmp byte [rbx + 0x4d22], 0
jne 0x180016111
movsx r9d, word [rbx + 0x5e68]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.180003520
test dil, 2
je 0x18001623f
jmp 0x18001619a
movss xmm1, dword [rbx + 0x39c4]
lea r8, str.Tooltip__02d
movaps xmm0, xmm1
lea rcx, [rsp + 0x20]
mulss xmm0, dword [0x18017b4b8]
xor eax, eax
mulss xmm1, dword [0x18017b4ac]
addss xmm0, dword [rbx + 0xe48]
lea edx, [rax + 0x10]
addss xmm1, dword [rbx + 0xe4c]
mov qword [rbx + 0x4a00], rax
mov dword [rbx + 0x49ec], 1
movss dword [rbx + 0x49f8], xmm0
movss dword [rbx + 0x49fc], xmm1
movss xmm0, dword [rbx + 0x3a2c]
mulss xmm0, dword [0x18017b418]
or dword [rbx + 0x49e8], 0x41
movss dword [rbx + 0x4a48], xmm0
movsx r9d, word [rbx + 0x5e68]
call fcn.180003520
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x1800161f0
lea r11, [0x18005c0c0]
nop word [rax + rax]
cmp r9b, 0x23
jne 0x1800161d3
cmp byte [r8], r9b
jne 0x1800161d3
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x1800161c0
not ecx
call fcn.18000af30
test rax, rax
je 0x18001623f
cmp byte [rax + 0xbe], 0
je 0x18001623f
mov byte [rax + 0xc3], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xc5], 1
lea rcx, [rsp + 0x20]
mov byte [rax + 0xe4], 1
mov edx, 0x10
inc word [rbx + 0x5e68]
movsx r9d, word [rbx + 0x5e68]
call fcn.180003520
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x2030347
call fcn.18000e270
mov al, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.180053120
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x18001c0f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5fc0], 0
lea rbx, [rcx + 0x5fc8]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x18001c197
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x18001c14a
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.18001ea00
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.180003de0
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5fc0]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5fd0]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x180186de8]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x18001c19f
mov rcx, rbx
call fcn.180003de0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x18001c4e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x20
mov rbx, qword [0x180186df0]
xor ebp, ebp
cmp byte [rbx + 0x5f18], bpl
jne 0x18001c5dc
cmp dword [rbx + 0x5f40], ebp
je 0x18001c527
mov r8d, 0x3381
lea rdx, str.D:HydroGen_SCPSL_SrcImGui_DirectX_11_Kiero_Hookimguiimgui.cpp
lea rcx, str.g.SettingsWindows.empty__
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x18001c5d5
lea r8, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
call fcn.1800038b0
mov rdi, rax
test rax, rax
je 0x18001c5d5
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x18001c561
mov rcx, rax
call fcn.18001c730
mov r8, qword [0x180186df0]
test r8, r8
je 0x18001c5cc
movsx rdx, word [r8 + 0x6078]
lea rcx, [r8 + 0x607c]
mov r9d, dword [r8 + 0x3f90]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x18001c5c1
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x6078], cx
movsx rax, cx
lea rcx, [r8 + 0x607c]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], ebp
inc word [rcx + 6]
inc dword [r8 + 0x6074]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov byte [rbx + 0x5f18], 1
movss xmm0, dword [rbx + 0x5f1c]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x18001c679
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x5f1c], xmm0
jb 0x18001c679
mov rdi, qword [rbx + 0x20]
mov qword [rsp + 0x38], rsi
test rdi, rdi
je 0x18001c667
mov rax, qword [0x180186df0]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
mov dword [rax + 0x5f1c], ebp
call fcn.18001c9b0
lea rdx, [0x18005b8ac]
mov rcx, rdi
mov rsi, rax
call fcn.1800037c0
mov rdi, rax
test rax, rax
je 0x18001c66e
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x18001c66e
mov byte [rbx + 0xce], 1
mov rsi, qword [rsp + 0x38]
mov dword [rbx + 0x5f1c], ebp
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x18001c690
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x180186df0]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x18001c6f3
mov qword [rsp], rbx
lea rbx, [0x18005c0c0]
nop dword [rax]
cmp r9b, 0x23
jne 0x18001c6d3
cmp byte [r8], r9b
jne 0x18001c6d3
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x18001c6c0
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5f30]
not eax
mov r8, qword [r10 + 0x5f38]
lea rdx, [rcx + rcx*8]
lea rcx, [r8 + rdx*8]
cmp r8, rcx
je 0x18001c71f
cmp dword [r8 + 8], eax
je 0x18001c726
add r8, 0x48
cmp r8, rcx
jne 0x18001c710
xor eax, eax
add rsp, 8
ret
mov rax, r8
add rsp, 8
ret
Function at 0x1800417f0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push r14
push r15
sub rsp, 0x98
mov rax, qword [0x180186010]
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 0x18004183f
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x1801874d0]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x18004187d
cmp rsi, r14
jb 0x180041875
cmp rsi, r15
jae 0x180041875
cmp qword [rsi + 8], 0
jne 0x180041a47
mov rsi, qword [rsi]
test rsi, rsi
jne 0x180041860
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 0x180041912
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 0x180041909
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 0x180041909
cmp dword [rsp + 0x40], 0x10000
je 0x18004198b
mov rbx, qword [rsp + 0x28]
cmp rbx, rbp
jb 0x180041909
sub rbx, rbp
cmp rbx, r14
jae 0x1800418d0
test rsi, rsi
jne 0x1800419f0
cmp rdi, r15
ja 0x180041a2f
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 0x180041a2f
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180041a2f
cmp dword [rsp + 0x40], 0x10000
je 0x1800419c1
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 0x180041942
jmp 0x180041a2f
test rbx, rbx
je 0x180041909
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 0x1800419f0
cmp rbx, r14
jae 0x1800418b0
jmp 0x180041912
test rdi, rdi
je 0x180041a2f
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 0x1800419f0
cmp rdi, r15
jbe 0x180041920
jmp 0x180041a2f
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 0x180041a00
mov rax, qword [0x1801874d0]
mov qword [rsi], rax
mov qword [0x1801874d0], 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.180053120
add rsp, 0x98
pop r15
pop r14
pop rdi
pop rsi
ret
Function at 0x1800423c0
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 [0x180186010]
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 0x1800424eb
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1800424e2
nop dword [rax]
cmp dword [rsp + 0x20], 0x10
jb 0x1800424c4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x1800424c4
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x1800424c4
mov rdx, qword [rbx]
test rdx, rdx
jne 0x180042482
mov rcx, qword [0x180186e00]
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 0x1800424e2
jmp 0x1800424b7
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x1800424b7
mov rcx, qword [0x180186e00]
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 0x1800424e2
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 0x180042430
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], rsi
je 0x180042543
cmp dword [rbx + 0xc], esi
jbe 0x180042543
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 0x18004253c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.180042210
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rbx + 0xc]
jb 0x180042500
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180053120
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 0x180042570
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 [0x180186010]
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 [0x1801874c0]
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 0x1800425e3
mov eax, 0xa
jmp 0x180042672
test esi, esi
je 0x180042605
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 0x180042628
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x180042628
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x180042621
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x180042628
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.180053120
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1800426a0
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 [0x1801874cc]
mov ebx, edi
test ecx, ecx
je 0x1800427db
mov rax, qword [0x1801874c0]
add rax, 0x20
nop
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x1800426f8
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x1800426d0
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xffffffff
je 0x1800427db
mov r8d, edi
lea rcx, [rsp + 0x20]
test esi, esi
mov edx, 0xffffffff
setne r8b
call fcn.1800423c0
mov r8d, dword [0x1801874cc]
cmp ebx, r8d
jae 0x180042768
nop word [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x1801874c0]
movzx edx, byte [rcx + rax + 0x20]
shr edx, 1
and edx, 1
cmp edx, esi
je 0x180042761
mov edx, esi
mov ecx, ebx
call fcn.180042570
mov edi, eax
test eax, eax
jne 0x180042768
mov r8d, dword [0x1801874cc]
inc ebx
cmp ebx, r8d
jb 0x180042730
cmp qword [rsp + 0x20], 0
je 0x1800427db
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x1800427c7
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 0x1800427b8
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 0x180042790
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x180186e00]
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
Function at 0x180042bd0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov esi, edx
mov ebx, r15d
xor eax, eax
mov rdi, rcx
mov ebp, 1
lock cmpxchg dword [0x180186dec], ebp
je 0x180042c27
cmp rbx, 0x20
jae 0x180042c10
xor ecx, ecx
jmp 0x180042c12
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x180186dec], ebp
jne 0x180042c06
cmp qword [0x180186e00], r15
je 0x180042d21
test rdi, rdi
jne 0x180042c47
mov ecx, esi
call fcn.1800426a0
mov ebp, eax
jmp 0x180042d26
mov ecx, dword [0x1801874cc]
mov ebx, r15d
test ecx, ecx
je 0x180042c6f
mov r8, qword [0x1801874c0]
mov rax, r8
nop
cmp rdi, qword [rax]
je 0x180042c79
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180042c60
mov ebp, 4
jmp 0x180042d26
cmp ebx, 0xffffffff
je 0x180042c6f
mov eax, ebx
imul rdx, rax, 0x38
movzx eax, byte [rdx + r8 + 0x20]
shr eax, 1
and eax, ebp
cmp eax, esi
je 0x180042d18
mov r8d, ebp
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.1800423c0
mov edx, esi
mov ecx, ebx
call fcn.180042570
mov ebp, eax
cmp qword [rsp + 0x20], r15
je 0x180042d26
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180042d02
mov rbx, qword [rsp + 0x20]
mov esi, eax
nop word [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x180042cf8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rsi, 1
jne 0x180042cd0
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x180186e00]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180042d26
neg esi
sbb ebp, ebp
add ebp, 6
jmp 0x180042d26
mov ebp, 2
xchg dword [0x180186dec], r15d
mov rbx, qword [rsp + 0x40]
mov eax, ebp
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret