joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180006270
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x10], edx
push rdi
sub rsp, 0x20
cmp dword [rcx + 0xd0], 0
mov rbx, rcx
movsxd rdi, edx
jg 0x1800062a7
mov r8d, 0x70d
lea rdx, str.D:.Esp_line_Sourcepandora_loaderimgui_menuimgui.h
lea rcx, str.Size___0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rax, qword [rbx + 0xd8]
lea rdx, [0x18005d400]
movsxd r8, dword [rbx + 0xd0]
mov ebx, dword [rax + r8*4 - 4]
not ebx
movzx eax, dil
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, byte [rsp + 0x39]
xor ebx, dword [rdx + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, byte [rsp + 0x3a]
xor ebx, dword [rdx + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, byte [rsp + 0x3b]
xor ebx, dword [rdx + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
xor ebx, dword [rdx + rcx*4]
mov rcx, qword [0x18006ecd0]
not ebx
cmp dword [rcx + 0x3f0c], ebx
jne 0x180006326
mov r8, rdi
mov edx, 4
mov ecx, ebx
call fcn.18001b7c0
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180006340
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
cmp dword [rcx + 0xd0], 0
mov rdi, rdx
mov rbx, rcx
jg 0x180006373
mov r8d, 0x70d
lea rdx, str.D:.Esp_line_Sourcepandora_loaderimgui_menuimgui.h
lea rcx, str.Size___0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
movss xmm0, dword [rbx + 0xf0]
lea r10, [0x18005d400]
movsxd rcx, dword [rbx + 0xd0]
mov rax, qword [rbx + 0xd8]
movss xmm2, dword [rdi]
movss xmm1, dword [rbx + 0xf4]
subss xmm2, xmm0
movss xmm3, dword [rdi + 4]
mov r9d, dword [rax + rcx*4 - 4]
subss xmm3, xmm1
movss xmm4, dword [rdi + 8]
not r9d
movzx ecx, r9b
subss xmm4, xmm0
movss xmm0, dword [rdi + 0xc]
shr r9d, 8
subss xmm0, xmm1
movd r8d, xmm2
movss dword [rsp + 0x20], xmm2
movzx eax, byte [rsp + 0x20]
xor rcx, rax
movss dword [rsp + 0x24], xmm3
mov eax, r8d
movss dword [rsp + 0x28], xmm4
shr eax, 8
movzx edx, al
mov eax, r8d
xor r9d, dword [r10 + rcx*4]
movzx ecx, r9b
xor rdx, rcx
shr r9d, 8
shr eax, 0x10
movss dword [rsp + 0x2c], xmm0
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
movzx edx, al
movzx eax, byte [rsp + 0x24]
xor rdx, rcx
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
mov edx, r8d
shr rdx, 0x18
xor rdx, rcx
movd r8d, xmm3
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
xor rcx, rax
shr r9d, 8
mov eax, r8d
shr eax, 8
movzx edx, al
mov eax, r8d
xor r9d, dword [r10 + rcx*4]
movzx ecx, r9b
xor rdx, rcx
shr r9d, 8
shr eax, 0x10
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
movzx edx, al
movzx eax, byte [rsp + 0x28]
xor rdx, rcx
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
mov edx, r8d
shr rdx, 0x18
xor rdx, rcx
movd r8d, xmm4
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
xor rcx, rax
shr r9d, 8
mov eax, r8d
xor r9d, dword [r10 + rcx*4]
shr eax, 8
movzx edx, al
movzx ecx, r9b
mov rbx, qword [rsp + 0x40]
xor rdx, rcx
shr r9d, 8
mov eax, r8d
shr eax, 0x10
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
movzx edx, al
movzx eax, byte [rsp + 0x2c]
xor rdx, rcx
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
mov edx, r8d
shr rdx, 0x18
xor rdx, rcx
movd r8d, xmm0
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
xor rcx, rax
shr r9d, 8
mov eax, r8d
shr eax, 8
movzx edx, al
mov eax, r8d
xor r9d, dword [r10 + rcx*4]
movzx ecx, r9b
xor rdx, rcx
shr r9d, 8
shr eax, 0x10
shr r8, 0x18
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
movzx edx, al
xor rdx, rcx
xor r9d, dword [r10 + rdx*4]
movzx edx, r9b
shr r9d, 8
xor r8, rdx
xor r9d, dword [r10 + r8*4]
not r9d
mov eax, r9d
add rsp, 0x30
pop rdi
ret
Function at 0x180014760
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, qword [0x18006ecd0]
mov edi, ecx
cmp byte [rbx + 0x427d], 0
jne 0x1800147b2
cmp byte [rbx + 0x427e], 0
jne 0x1800147b2
movsx r9d, word [rbx + 0x5362]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.1800030d0
test dil, 1
je 0x1800148d8
jmp 0x18001483d
movss xmm1, dword [rbx + 0x38b0]
lea r8, str.Tooltip__02d
movaps xmm0, xmm1
lea rcx, [rsp + 0x20]
mulss xmm0, dword [0x180065210]
xor eax, eax
mov edx, 0x10
mulss xmm1, dword [0x1800651f0]
addss xmm0, dword [rbx + 0xd94]
addss xmm1, dword [rbx + 0xd98]
mov qword [rbx + 0x3ff8], rax
mov dword [rbx + 0x3fe4], 1
movss dword [rbx + 0x3ff0], xmm0
movss dword [rbx + 0x3ff4], xmm1
movss xmm0, dword [rbx + 0x3918]
mulss xmm0, dword [0x180065098]
or dword [rbx + 0x3fe0], 0x41
movss dword [rbx + 0x4040], xmm0
movsx r9d, word [rbx + 0x5362]
call fcn.1800030d0
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x180014890
lea r11, [0x18005d400]
nop dword [rax]
cmp r9b, 0x23
jne 0x180014873
cmp byte [r8], r9b
jne 0x180014873
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 0x180014860
not ecx
call fcn.18000bf80
test rax, rax
je 0x1800148d8
cmp byte [rax + 0x96], 0
je 0x1800148d8
mov byte [rax + 0x9d], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xb8], 1
lea rcx, [rsp + 0x20]
inc word [rbx + 0x5362]
mov edx, 0x10
movsx r9d, word [rbx + 0x5362]
call fcn.1800030d0
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.18000e830
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x18001a040
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 + 0x5410], 0
lea rbx, [rcx + 0x5418]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x18001a0e3
mov ecx, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test ecx, ecx
jns 0x18001a096
mov eax, ecx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, ecx
mov rcx, rbx
test eax, eax
cmovg edx, eax
call fcn.18001c6a0
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.180003c70
mov eax, dword [rbx]
lea rcx, [0x18006ecc8]
mov r9, qword [rdi + 0x5410]
test eax, eax
lea edx, [rax - 1]
mov rax, qword [rdi + 0x5420]
cmove edx, r14d
test rax, rax
movsxd r8, edx
mov edx, 1
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x18001a0eb
mov rcx, rbx
call fcn.180003c70
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x18001a780
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
movzx r8d, byte [rcx]
lea rdx, [rcx + 1]
mov r14, qword [0x18006ecd0]
mov r9d, 0xffffffff
mov ebx, r9d
test r8b, r8b
je 0x18001a7e4
lea r10, [0x18005d400]
cmp r8b, 0x23
jne 0x18001a7c7
cmp byte [rdx], r8b
jne 0x18001a7c7
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 0x18001a7b4
mov eax, dword [r14 + 0x53c0]
xor edi, edi
mov qword [rsp + 0x30], rbp
not ebx
mov qword [rsp + 0x38], rsi
test eax, eax
jle 0x18001a845
mov esi, edi
mov ebp, edi
test rsi, rsi
js 0x18001a80a
cmp edi, eax
jl 0x18001a824
mov r8d, 0x704
lea rdx, str.D:.Esp_line_Sourcepandora_loaderimgui_menuimgui.h
lea rcx, str.i___0__i___Size
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rax, qword [r14 + 0x53c8]
cmp dword [rax + rbp + 8], ebx
je 0x18001a862
mov eax, dword [r14 + 0x53c0]
inc edi
inc rsi
add rbp, 0x48
cmp edi, eax
jl 0x18001a801
xor eax, eax
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
test edi, edi
js 0x18001a86f
cmp edi, dword [r14 + 0x53c0]
jl 0x18001a889
mov r8d, 0x704
lea rdx, str.D:.Esp_line_Sourcepandora_loaderimgui_menuimgui.h
lea rcx, str.i___0__i___Size
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
movsxd rax, edi
lea rcx, [rax + rax*8]
mov rax, qword [r14 + 0x53c8]
lea rax, [rax + rcx*8]
jmp 0x18001a847
Function at 0x18004a920
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, 0x210
call fcn.1800123e0
cmp byte [rax], 0
je 0x18004a9a5
mov ecx, 0xa0
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x18004a9a5
mov rbx, qword [0x18006ecd0]
test rbx, rbx
jne 0x18004a974
mov r8d, 0xec0
lea rdx, str.D:.Esp_line_Sourcepandora_loaderimgui_menuimgui.cpp
lea rcx, str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rbx, qword [0x18006ecd0]
cmp byte [rbx + 0x37c1], 0
je 0x18004a991
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x210
call fcn.180002860
mov dword [rbx + 0x378], 0x210
mov dword [rbx + 0x938], 0xa0
mov ecx, 0x214
call fcn.1800123e0
cmp byte [rax], 0
je 0x18004aa24
mov ecx, 0xa1
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x18004aa24
mov rbx, qword [0x18006ecd0]
test rbx, rbx
jne 0x18004a9f3
mov r8d, 0xec0
lea rdx, str.D:.Esp_line_Sourcepandora_loaderimgui_menuimgui.cpp
lea rcx, str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rbx, qword [0x18006ecd0]
cmp byte [rbx + 0x37c1], 0
je 0x18004aa10
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x214
call fcn.180002860
mov dword [rbx + 0x37c], 0x214
mov dword [rbx + 0x948], 0xa1
mov ecx, 0x212
call fcn.1800123e0
cmp byte [rax], 0
je 0x18004aaa3
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x18004aaa3
mov rbx, qword [0x18006ecd0]
test rbx, rbx
jne 0x18004aa72
mov r8d, 0xec0
lea rdx, str.D:.Esp_line_Sourcepandora_loaderimgui_menuimgui.cpp
lea rcx, str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rbx, qword [0x18006ecd0]
cmp byte [rbx + 0x37c1], 0
je 0x18004aa8f
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x212
call fcn.180002860
mov dword [rbx + 0x264], 0x212
mov dword [rbx + 0x940], 0x5b
mov ecx, 0x216
call fcn.1800123e0
cmp byte [rax], 0
je 0x18004ab22
mov ecx, 0x5c
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x18004ab22
mov rbx, qword [0x18006ecd0]
test rbx, rbx
jne 0x18004aaf1
mov r8d, 0xec0
lea rdx, str.D:.Esp_line_Sourcepandora_loaderimgui_menuimgui.cpp
lea rcx, str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rbx, qword [0x18006ecd0]
cmp byte [rbx + 0x37c1], 0
je 0x18004ab0e
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x216
call fcn.180002860
mov dword [rbx + 0x268], 0x216
mov dword [rbx + 0x950], 0x5c
add rsp, 0x20
pop rbx
ret
Function at 0x1800519d0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x40
mov rcx, qword [0x18006ed48]
lea rdx, [0x18006ed70]
movaps xmmword [rsp + 0x30], xmm6
call qword [sym.imp.USER32.dll_GetWindowRect]
movzx ecx, byte [0x18006ecb8]
xor ebx, ebx
test cl, cl
jne 0x180051a21
mov qword [rsp + 0x28], rbx
lea r8, [0x180011e50]
xor r9d, r9d
mov dword [rsp + 0x20], ebx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov cl, 1
mov byte [0x18006ecb8], cl
mov rdx, qword [0x18006ecd0]
xorps xmm6, xmm6
mov rax, qword [rdx + 0x3ed8]
movss xmm0, dword [rax + 0x18]
ucomiss xmm0, dword [0x1800651f8]
jp 0x180051a89
jne 0x180051a89
test cl, cl
jne 0x180051a72
mov qword [rsp + 0x28], rbx
lea r8, [0x180011e50]
xor r9d, r9d
mov dword [rsp + 0x20], ebx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, qword [0x18006ecd0]
mov cl, 1
mov byte [0x18006ecb8], cl
mov rax, qword [rdx + 0x3ed8]
movss xmm0, dword [rax + 0x1c]
ucomiss xmm0, xmm6
jp 0x180051a89
je 0x180051b66
test cl, cl
jne 0x180051ab9
mov qword [rsp + 0x28], rbx
lea r8, [0x180011e50]
xor r9d, r9d
mov dword [rsp + 0x20], ebx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, qword [0x18006ecd0]
mov cl, 1
mov byte [0x18006ecb8], cl
mov rax, qword [rdx + 0x3ed8]
movss xmm6, dword [rax + 0x1c]
test cl, cl
jne 0x180051af4
mov qword [rsp + 0x28], rbx
lea r8, [0x180011e50]
xor r9d, r9d
mov dword [rsp + 0x20], ebx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, qword [0x18006ecd0]
mov byte [0x18006ecb8], 1
mov rax, qword [rdx + 0x3ed8]
mov r9d, 0x1f4
movd xmm0, dword [0x18006ed74]
movd xmm1, dword [0x18006ed70]
mov rcx, qword [0x18006ed48]
cvtdq2ps xmm0, xmm0
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0x12c
cvtdq2ps xmm1, xmm1
addss xmm0, xmm6
addss xmm1, dword [rax + 0x18]
cvttss2si r8d, xmm0
cvttss2si edx, xmm1
call qword [sym.imp.USER32.dll_MoveWindow]
mov rcx, qword [0x18006ecd0]
lea rdx, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x50], rbx
mov rcx, qword [rcx + 0x3ed8]
call fcn.180011f70
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x40
pop rbx
ret

Function at 0x180054070
Capabilities:
Create thread
Terminate thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, r9
cmp edx, 1
jne 0x1800540f9
mov qword [rsp + 0x40], rdi
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
xor edi, edi
lea r8, [0x180051b80]
mov qword [rsp + 0x28], rdi
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], edi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r8, qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x28], rdi
xor ecx, ecx
mov qword [0x18006ed68], rax
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r9, rbx
mov qword [rsp + 0x28], rdi
lea r8, [0x1800519b0]
mov dword [rsp + 0x20], edi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, qword [rsp + 0x40]
mov eax, 1
add rsp, 0x30
pop rbx
ret
test edx, edx
jne 0x18005410a
mov rcx, qword [0x18006ed68]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, 1
add rsp, 0x30
pop rbx
ret
Function at 0x180054bd0
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 0x180054c10
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x18006ef80]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x180054c4e
cmp rsi, r14
jb 0x180054c46
cmp rsi, r15
jae 0x180054c46
cmp qword [rsi + 8], 0
jne 0x180054e17
mov rsi, qword [rsi]
test rsi, rsi
jne 0x180054c31
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 0x180054ce2
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 0x180054cd9
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 0x180054cd9
cmp dword [rsp + 0x70], 0x10000
je 0x180054d5b
mov rbx, qword [rsp + 0x58]
cmp rbx, rbp
jb 0x180054cd9
sub rbx, rbp
cmp rbx, r14
jae 0x180054ca0
test rsi, rsi
jne 0x180054dc0
cmp rdi, r15
ja 0x180054dff
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 0x180054dff
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180054dff
cmp dword [rsp + 0x70], 0x10000
je 0x180054d91
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 0x180054d12
jmp 0x180054dff
test rbx, rbx
je 0x180054cd9
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 0x180054dc0
cmp rbx, r14
jae 0x180054c80
jmp 0x180054ce2
test rdi, rdi
je 0x180054dff
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 0x180054dc0
cmp rdi, r15
jbe 0x180054cf0
jmp 0x180054dff
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 0x180054dd0
mov rax, qword [0x18006ef80]
mov qword [rsi], rax
mov qword [0x18006ef80], 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 0x180055800
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
xor r15d, r15d
mov r14d, edx
mov qword [rcx], r15
mov rbx, rcx
mov qword [rcx + 8], r15
xor edx, edx
mov ecx, 4
mov ebp, r8d
mov edi, r15d
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1800559ba
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x180055949
mov edi, 1
nop dword [rax + rax]
cmp dword [rsp + 0x20], 0x10
jb 0x180055903
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x180055903
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x180055903
mov rdx, qword [rbx]
test rdx, rdx
jne 0x1800558c2
mov rcx, qword [0x18006edb8]
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 0x18005592c
jmp 0x1800558f3
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x1800558f3
mov rcx, qword [0x18006edb8]
add eax, eax
mov r9d, eax
mov r8, rdx
shl r9, 2
xor edx, edx
mov dword [rbx + 8], eax
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x18005592c
mov qword [rbx], rax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
lea eax, [rcx + 1]
mov dword [rbx + 0xc], eax
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x180055870
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x180055949
mov r8, qword [rbx]
mov edi, r15d
test r8, r8
je 0x180055949
mov rcx, qword [0x18006edb8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rbx], r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x1800559ba
cmp qword [rbx], r15
je 0x1800559b5
mov edi, r15d
cmp dword [rbx + 0xc], r15d
jbe 0x1800559b5
nop dword [rax]
nop dword [rax + rax]
mov r8, qword [rbx]
xor edx, edx
mov eax, edi
mov ecx, 0x5a
mov r8d, dword [r8 + rax*4]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x1800559ae
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rsi
call fcn.180055670
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x180055970
mov eax, r15d
jmp 0x1800559bf
mov eax, 9
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x1800559e0
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 [0x18006ef70]
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 0x180055a44
mov eax, 0xa
jmp 0x180055ad7
test esi, esi
je 0x180055a66
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 0x180055a89
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x180055a89
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x180055a82
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x180055a89
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]
movzx ecx, sil
shl sil, 2
add cl, cl
xor cl, byte [rbx + 0x20]
and cl, 2
xor cl, byte [rbx + 0x20]
xor sil, cl
and sil, 4
xor sil, cl
mov byte [rbx + 0x20], sil
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x180055af0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x30
mov r8d, dword [0x18006ef7c]
mov esi, ecx
xor ecx, ecx
mov ebx, ecx
test r8d, r8d
je 0x180055b37
mov rax, qword [0x18006ef70]
add rax, 0x20
nop word [rax + rax]
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x180055b44
inc ebx
add rax, 0x38
cmp ebx, r8d
jb 0x180055b20
mov eax, ecx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
cmp ebx, 0xffffffff
je 0x180055b37
test esi, esi
mov qword [rsp + 0x48], rdi
mov edx, 0xffffffff
setne cl
mov r8d, ecx
lea rcx, [rsp + 0x20]
call fcn.180055800
mov edi, eax
test eax, eax
jne 0x180055c2f
mov r9d, dword [0x18006ef7c]
cmp ebx, r9d
jae 0x180055bbc
nop dword [rax + rax]
mov ecx, ebx
imul rdx, rcx, 0x38
mov rcx, qword [0x18006ef70]
movzx r8d, byte [rdx + rcx + 0x20]
shr r8d, 1
and r8d, 1
cmp r8d, esi
je 0x180055bb5
mov edx, esi
mov ecx, ebx
call fcn.1800559e0
mov edi, eax
test eax, eax
jne 0x180055bbc
mov r9d, dword [0x18006ef7c]
inc ebx
cmp ebx, r9d
jb 0x180055b80
cmp qword [rsp + 0x20], 0
je 0x180055c2d
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180055c19
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180055c0a
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 0x180055be0
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x18006edb8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret