joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400633c4
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rdx, qword [rcx + 0x10]
mov rsi, rcx
add rdx, 1
mov rbx, qword [rcx + 0x38]
xorps xmm0, xmm0
js 0x1400633f4
cvtsi2ss xmm0, rdx
jmp 0x140063409
mov rax, rdx
and edx, 1
shr rax, 1
or rax, rdx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [rcx]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceilf
movss xmm1, dword [0x14007dfd8]
xor ecx, ecx
comiss xmm0, xmm1
jb 0x140063437
subss xmm0, xmm1
comiss xmm0, xmm1
jae 0x140063437
movabs rax, 0x8000000000000000
mov rcx, rax
cvttss2si rax, xmm0
add rax, rcx
mov ecx, 8
cmp rax, rcx
cmova rcx, rax
cmp rbx, rcx
jae 0x140063465
cmp rbx, 0x200
jae 0x140063462
shl rbx, 3
cmp rbx, rcx
jae 0x140063465
mov rbx, rcx
movabs rax, 0xfffffffffffffff
bsr rcx, rax
mov eax, 1
shl rax, cl
cmp rbx, rax
jbe 0x14006348e
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rbx - 1]
mov edi, 1
mov rbx, qword [rsi + 8]
or rax, 1
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.140063058
lea rax, [rdi - 1]
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x1400635a0
mov rcx, qword [rcx]
movabs r8, 0xcbf29ce484222325
xor r9d, r9d
movzx edx, byte [rax + r9 + 0x10]
movabs r10, 0x100000001b3
xor r8, rdx
inc r9
imul r8, r10
cmp r9, 4
jb 0x1400634e7
mov r11, qword [rsi + 0x30]
mov rdi, qword [rsi + 0x18]
and r11, r8
add r11, r11
cmp qword [rdi + r11*8], rbx
jne 0x140063526
mov qword [rdi + r11*8], rax
mov qword [rdi + r11*8 + 8], rax
jmp 0x140063594
mov r10, qword [rdi + r11*8 + 8]
mov edx, dword [rax + 0x10]
cmp edx, dword [r10 + 0x10]
jne 0x140063569
mov r10, qword [r10]
cmp r10, rax
je 0x14006351f
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x14006351f
mov r10, qword [r10 + 8]
cmp edx, dword [r10 + 0x10]
je 0x1400635b6
cmp qword [rdi + r11*8], r10
jne 0x14006355f
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [rdi + r11*8], rax
mov rax, rcx
cmp rcx, rbx
jne 0x1400634d7
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov r10, qword [r10]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x140063594
Function at 0x140068648
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x17]
sub rsp, 0x88
mov rax, qword [0x140089040]
xor rax, rsp
mov qword [rbp + 7], rax
mov qword [rbp - 0x49], r9
mov r15, r8
mov r13, rdx
mov r14, rcx
xor esi, esi
mov dword [rbp - 0x51], esi
mov qword [rbp - 0x41], rdx
mov rbx, rdx
lea rax, [r8 - 1]
mov qword [rbp - 0x51], rax
mov r12, rax
sar r12, 1
cmp rdx, r12
jge 0x140068715
lea rdi, [rbx + rbx]
lea rbx, [rdi + 2]
shl rbx, 5
add rbx, r14
lea rdx, [rbx - 0x20]
lea rcx, [rbp - 0x19]
call fcn.14004b7ec
or esi, 1
mov rdx, rbx
lea rcx, [rbp - 0x39]
call fcn.14004b7ec
or esi, 2
lea r8, [rbp - 0x19]
lea rdx, [rbp - 0x39]
call fcn.1400677ec
movzx ebx, al
lea rcx, [rbp - 0x39]
call fcn.14004b788
nop
lea rcx, [rbp - 0x19]
call fcn.14004b788
xor rbx, 1
inc rbx
add rbx, rdi
mov rdx, rbx
shl rdx, 5
add rdx, r14
shl r13, 5
lea rcx, [r14 + r13]
call fcn.1400510d4
mov r13, rbx
cmp rbx, r12
jl 0x14006869b
mov rdi, rbx
cmp rbx, r12
jne 0x14006873f
test r15b, 1
jne 0x14006873f
shl r15, 5
lea rdx, [r14 - 0x20]
add rdx, r15
shl rbx, 5
lea rcx, [r14 + rbx]
call fcn.1400510d4
mov rdi, qword [rbp - 0x51]
lea rbx, [rdi - 1]
mov r12, qword [rbp - 0x49]
mov r13, qword [rbp - 0x41]
sar rbx, 1
cmp r13, rdi
jge 0x14006879a
mov rdx, r12
lea rcx, [rbp - 0x39]
call fcn.14004b7ec
or esi, 0x10
or esi, 4
mov dword [rbp - 0x51], esi
mov rdx, rbx
shl rdx, 5
add rdx, r14
lea rcx, [rbp - 0x19]
call fcn.14004b7ec
or esi, 0x20
or esi, 8
mov dword [rbp - 0x51], esi
lea r8, [rbp - 0x39]
lea rdx, [rbp - 0x19]
call fcn.1400677ec
test al, al
je 0x14006879a
mov r15b, 1
jmp 0x14006879d
xor r15b, r15b
test sil, 8
je 0x1400687b0
and esi, 0xfffffff7
lea rcx, [rbp - 0x19]
call fcn.14004b788
nop
test sil, 4
je 0x1400687c2
and esi, 0xfffffffb
lea rcx, [rbp - 0x39]
call fcn.14004b788
shl rdi, 5
lea rcx, [rdi + r14]
test r15b, r15b
je 0x1400687e9
mov rdx, rbx
shl rdx, 5
add rdx, r14
call fcn.1400510d4
mov rdi, rbx
dec rbx
jmp 0x14006874b
mov rdx, r12
call fcn.1400510d4
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.140068b50
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140068a5c
Capabilities:
Enumerate gui resources
Execute command

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov edx, 0x65
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.USER32.dll_LoadIconA]
mov rbx, rax
test rdi, rdi
je 0x140068ab9
mov r9, rax
xor r8d, r8d
mov edx, 0x80
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendMessageA]
mov edx, 0x80
mov r9, rbx
mov rcx, rdi
lea r8d, [rdx - 0x7f]
call qword [sym.imp.USER32.dll_SendMessageA]
call fcn.14006897c
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
lea rcx, [0x1400689e4]
call qword [sym.imp.USER32.dll_EnumWindows]
cmp qword [rsp + 0x30], 0
jne 0x140068b1b
lea rcx, str._Debug__Roblox_is_not_opened._n
call fcn.140002f14
lea rcx, str._Logs__Scanning_in_3_seconds..._n
call fcn.140002f14
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [0x1400765b0]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140068abe
lea rcx, [0x1400765b0]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
call fcn.140053148
mov rbx, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rdi
ret

Function at 0x140069888
Capabilities:
Parse pe header

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

Function at 0x140069c38
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140069c72
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140069c77
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140069cc0
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14006df90]
cmp byte [rcx + rax], 0
je 0x140069cc0
dec r8
sub rdx, 1
jne 0x140069ca6
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x14006a40c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.140069d50
mov ebx, eax
test eax, eax
jne 0x14006a43c
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x14006a49f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14006a496
test al, 0x10
je 0x14006a496
bt eax, 0xa
jae 0x14006a48f
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.14006a4b0
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x14006a48b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x14006a48b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
test edi, edi
jne 0x14006a496
and dword [rsp + 0x3c], 0
jmp 0x14006a49b
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180001920
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x18001f040]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rbp, qword [rsp + 0xc0]
lea r8, [rsp + 0x30]
mov r14, rcx
mov qword [rsp + 0x48], 0x1000
xor ebx, ebx
mov edi, 0x1000000
mov edx, edi
mov rcx, rbp
mov r9d, 0x30
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
lea r15, str.xxxxxxxx
nop dword [rax]
nop dword [rax + rax]
mov r9d, 0x30
lea r8, [rsp + 0x30]
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test rax, rax
je 0x180001a92
cmp dword [rsp + 0x50], 0x1000
jne 0x180001a92
cmp dword [rsp + 0x54], 0x40
jne 0x180001a92
mov rcx, rsi
call fcn.1800037e0
mov rcx, qword [rsp + 0x48]
call fcn.180003b94
mov r8, qword [rsp + 0x48]
mov rsi, rax
mov rdx, qword [rsp + 0x30]
lea rax, [rsp + 0x68]
mov r9d, 0x40
mov qword [rsp + 0x20], rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x180001a92
mov r9, qword [rsp + 0x48]
lea rax, [rsp + 0x60]
mov rdx, qword [rsp + 0x30]
mov r8, rsi
mov rcx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov r9d, dword [rsp + 0x68]
lea rax, [rsp + 0x68]
mov r8, qword [rsp + 0x48]
mov rcx, rbp
mov rdx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov r11, qword [rsp + 0x60]
mov r10d, ebx
test r11, r11
jle 0x180001a92
mov r9, r14
mov r8, rsi
sub r9, r15
sub r8, r15
mov edx, ebx
mov rax, r15
nop dword [rax]
cmp byte [rax], 0x3f
je 0x180001a80
movzx ecx, byte [r8 + rax]
cmp byte [r9 + rax], cl
jne 0x180001aa6
inc edx
inc rax
cmp edx, 8
jl 0x180001a70
movsxd rcx, r10d
add rcx, rsi
jne 0x180001ab6
add rdi, qword [rsp + 0x48]
cmp rdi, 0xa000000
jb 0x180001990
jmp 0x180001abf
inc r10d
inc r8
movsxd rax, r10d
cmp rax, r11
jl 0x180001a64
jmp 0x180001a92
mov rbx, rcx
sub rbx, rsi
add rbx, rdi
mov rcx, rsi
call fcn.1800037e0
mov rax, rbx
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1800037c0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x180001c10
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
test edx, edx
je 0x180001d22
cmp edx, 1
jne 0x180001d0d
xor esi, esi
mov edi, edx
mov ebx, esi
xor eax, eax
lock cmpxchg dword [0x180020f7c], edi
je 0x180001c63
cmp rbx, 0x20
jae 0x180001c4c
xor ecx, ecx
jmp 0x180001c4e
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x180020f7c], edi
jne 0x180001c42
cmp qword [0x180020f80], rsi
jne 0x180001c80
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [0x180020f80], rax
mov rcx, qword [sym.imp.OPENGL32.dll_glOrtho]
lea r8, [0x180020fa0]
mov eax, esi
lea rdx, [0x180001390]
xchg dword [0x180020f7c], eax
call fcn.180002f20
mov rcx, qword [sym.imp.OPENGL32.dll_glScalef]
lea r8, [0x180020f88]
lea rdx, [0x180001720]
call fcn.180002f20
call fcn.180003210
xor r9d, r9d
mov qword [rsp + 0x28], rsi
lea r8, [0x1800018a0]
mov dword [rsp + 0x20], esi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
xor r9d, r9d
mov qword [rsp + 0x28], rsi
lea r8, [0x180001b00]
mov dword [rsp + 0x20], esi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
xor esi, esi
mov edi, 1
mov ebx, esi
xor eax, eax
lock cmpxchg dword [0x180020f7c], edi
je 0x180001d58
cmp rbx, 0x20
jae 0x180001d41
xor ecx, ecx
jmp 0x180001d43
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x180020f7c], edi
jne 0x180001d37
cmp qword [0x180020f80], rsi
je 0x180001dd1
xor ecx, ecx
call fcn.180002dd0
test eax, eax
jne 0x180001dd1
mov rcx, qword [0x180020fd0]
mov qword [0x180020fd0], rsi
test rcx, rcx
je 0x180001d99
nop
mov rbx, qword [rcx]
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, rbx
test rbx, rbx
jne 0x180001d80
mov r8, qword [0x180020fc0]
xor edx, edx
mov rcx, qword [0x180020f80]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x180020f80]
call qword [sym.imp.KERNEL32.dll_HeapDestroy]
mov qword [0x180020f80], rsi
mov qword [0x180020fc0], rsi
mov qword [0x180020fc8], rsi
xchg dword [0x180020f7c], esi
mov rsi, qword [rsp + 0x48]
mov eax, edi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x180001e10
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push r14
push r15
sub rsp, 0x98
mov rax, qword [0x18001f040]
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 0x180001e5f
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x180020fd0]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x180001e9d
cmp rsi, r14
jb 0x180001e95
cmp rsi, r15
jae 0x180001e95
cmp qword [rsi + 8], 0
jne 0x180002067
mov rsi, qword [rsi]
test rsi, rsi
jne 0x180001e80
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 0x180001f32
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 0x180001f29
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 0x180001f29
cmp dword [rsp + 0x40], 0x10000
je 0x180001fab
mov rbx, qword [rsp + 0x28]
cmp rbx, rbp
jb 0x180001f29
sub rbx, rbp
cmp rbx, r14
jae 0x180001ef0
test rsi, rsi
jne 0x180002010
cmp rdi, r15
ja 0x18000204f
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 0x18000204f
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18000204f
cmp dword [rsp + 0x40], 0x10000
je 0x180001fe1
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 0x180001f62
jmp 0x18000204f
test rbx, rbx
je 0x180001f29
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 0x180002010
cmp rbx, r14
jae 0x180001ed0
jmp 0x180001f32
test rdi, rdi
je 0x18000204f
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 0x180002010
cmp rdi, r15
jbe 0x180001f40
jmp 0x18000204f
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 0x180002020
mov rax, qword [0x180020fd0]
mov qword [rsi], rax
mov qword [0x180020fd0], 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.1800037c0
add rsp, 0x98
pop r15
pop r14
pop rdi
pop rsi
ret
Function at 0x180002a80
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x58
mov rax, qword [0x18001f040]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor r13d, r13d
mov r12d, edx
mov qword [rcx], r13
mov rbx, rcx
mov qword [rcx + 8], r13
xor edx, edx
mov ecx, 4
mov r15d, r8d
mov edi, r13d
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x180002c77
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x180002bc6
mov edi, 1
cmp dword [rsp + 0x20], 0x10
jb 0x180002b80
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x180002b80
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x180002b80
mov rdx, qword [rbx]
test rdx, rdx
jne 0x180002b42
mov rcx, qword [0x180020f80]
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 0x180002ba9
jmp 0x180002b73
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x180002b73
mov rcx, qword [0x180020f80]
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 0x180002ba9
mov qword [rbx], rax
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, rsi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x180002af0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x180002bc6
mov r8, qword [rbx]
mov edi, r13d
test r8, r8
je 0x180002bc6
mov rcx, qword [0x180020f80]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rbx], r13
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x180002c77
cmp qword [rbx], r13
je 0x180002c72
mov edi, r13d
cmp dword [rbx + 0xc], r13d
jbe 0x180002c72
mov qword [rsp + 0xa0], rbp
mov qword [rsp + 0x50], r14
nop word [rax + rax]
mov r8, qword [rbx]
xor edx, edx
mov eax, edi
mov ecx, 0x5a
lea r14, [rax*4]
mov r8d, dword [r8 + r14]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
mov ebp, r13d
test rax, rax
je 0x180002c57
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x180002c4a
mov r8d, r15d
mov edx, r12d
mov rcx, rsi
mov ebp, 1
call fcn.1800028d0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
jne 0x180002c5e
mov rcx, qword [rbx]
mov dword [r14 + rcx], r13d
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x180002c00
mov r14, qword [rsp + 0x50]
mov rbp, qword [rsp + 0xa0]
mov eax, r13d
jmp 0x180002c7c
mov eax, 9
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1800037c0
add rsp, 0x58
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x180002ca0
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 [0x18001f040]
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 [0x180020fc0]
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 0x180002d13
mov eax, 0xa
jmp 0x180002da6
test esi, esi
je 0x180002d35
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 0x180002d58
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x180002d58
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x180002d51
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x180002d58
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]
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 rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1800037c0
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x180002dd0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x30
mov r8d, dword [0x180020fcc]
mov esi, ecx
xor ecx, ecx
mov ebx, ecx
test r8d, r8d
je 0x180002e17
mov rax, qword [0x180020fc0]
add rax, 0x20
nop word [rax + rax]
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x180002e24
inc ebx
add rax, 0x38
cmp ebx, r8d
jb 0x180002e00
mov eax, ecx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
cmp ebx, 0xffffffff
je 0x180002e17
test esi, esi
mov qword [rsp + 0x48], rdi
mov edx, 0xffffffff
setne cl
mov r8d, ecx
lea rcx, [rsp + 0x20]
call fcn.180002a80
mov edi, eax
test eax, eax
jne 0x180002f0c
mov r9d, dword [0x180020fcc]
cmp ebx, r9d
jae 0x180002e9c
nop dword [rax + rax]
mov ecx, ebx
imul rdx, rcx, 0x38
mov rcx, qword [0x180020fc0]
movzx r8d, byte [rdx + rcx + 0x20]
shr r8d, 1
and r8d, 1
cmp r8d, esi
je 0x180002e95
mov edx, esi
mov ecx, ebx
call fcn.180002ca0
mov edi, eax
test eax, eax
jne 0x180002e9c
mov r9d, dword [0x180020fcc]
inc ebx
cmp ebx, r9d
jb 0x180002e60
cmp qword [rsp + 0x20], 0
je 0x180002f0a
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180002ef6
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
mov r8d, dword [rbx]
test r8d, r8d
je 0x180002ee7
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180002ee7
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 0x180002eb8
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x180020f80]
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
Function at 0x180009988
Capabilities:
Parse pe header

Disassembly:
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 0x1800099f7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1800099f7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1800099f7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1800099f7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1800099f7
cmp dword [rcx + 0x84], 0xe
jbe 0x1800099f7
cmp dword [rcx + 0xf8], 0
je 0x1800099f7
mov ecx, ebx
call fcn.180009aa8
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.180009884
nop
cmp dword [rbp + 0x20], 0
je 0x180009a45
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.180009a50
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x180009988