joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140010ab0
Capabilities:
Manipulate console buffer

Disassembly:
sub rsp, 0x78
mov rax, qword [0x140063040]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor eax, eax
mov word [rsp + 0x30], ax
xor eax, eax
mov word [rsp + 0x32], ax
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
movsx eax, word [rsp + 0x48]
movsx ecx, word [rsp + 0x4a]
imul eax, ecx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rcx
mov r9d, dword [rsp + 0x30]
mov r8d, eax
mov dl, 0x20
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
movsx eax, word [rsp + 0x48]
movsx ecx, word [rsp + 0x4a]
imul eax, ecx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rcx
mov r9d, dword [rsp + 0x30]
mov r8d, eax
mov dx, 7
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
mov edx, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
nop
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140054330
add rsp, 0x78
ret

Function at 0x140011ec0
Capabilities:
Terminate process

Disassembly:
mov byte [rsp + 8], cl
sub rsp, 0x78
mov rax, qword [0x140063040]
xor rax, rsp
mov qword [rsp + 0x60], rax
call fcn.140053bc0
test eax, eax
je 0x140011ee7
mov byte [rsp + 0x20], 1
jmp 0x140011eec
mov byte [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
mov byte [rsp + 0x80], al
movzx eax, byte [rsp + 0x80]
test eax, eax
je 0x140011f10
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
nop
call fcn.140053bd7
test eax, eax
je 0x140011f20
mov byte [rsp + 0x21], 1
jmp 0x140011f25
mov byte [rsp + 0x21], 0
movzx eax, byte [rsp + 0x21]
mov byte [rsp + 0x80], al
movzx eax, byte [rsp + 0x80]
test eax, eax
je 0x140011f49
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
nop
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x24], 0x8feed637
mov edx, dword [rsp + 0x24]
lea rcx, [rsp + 0x40]
call fcn.140030a70
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.140035bf0
nop
call fcn.140053bef
nop
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x28], 0x8feed637
mov edx, dword [rsp + 0x28]
lea rcx, [rsp + 0x48]
call fcn.140030a70
mov qword [rsp + 0x48], rax
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x48]
call fcn.140035bf0
nop
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
sub rcx, rax
mov rax, rcx
cmp rax, 0x32
jle 0x140011fdb
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
nop
mov byte [rsp + 0x80], 1
call fcn.140053bfe
nop
jmp 0x140011ff3
movzx eax, byte [rsp + 0x80]
test eax, eax
je 0x14001200b
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
nop
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140054330
add rsp, 0x78
ret
Function at 0x14001a180
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [0x140063040]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor eax, eax
cmp eax, 1
je 0x14001a22b
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov dword [rsp + 0x40], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x20], 0x96bd5cbf
mov ecx, dword [rsp + 0x20]
call fcn.140028a50
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x24], 0x1a9d7539
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov ecx, dword [rsp + 0x24]
call fcn.140027e50
nop
cmp dword [rsp + 0x40], 0
je 0x14001a205
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
nop
mov dword [rsp + 0x28], 0x97e2de91
mov ecx, dword [rsp + 0x28]
call fcn.1400285c0
test eax, eax
je 0x14001a226
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
nop
jmp 0x14001a198
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140054330
add rsp, 0x58
ret
Function at 0x14001a970
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x68], 0
je 0x14001a9a9
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x14001ab00
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x40]
cmp qword [rax], 0
je 0x14001a9d3
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x58]
mov eax, dword [rax]
mov dword [rsp + 0x20], eax
jmp 0x14001a9db
mov dword [rsp + 0x20], 0
movsxd rax, dword [rsp + 0x20]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x70], 0
jle 0x14001aaa8
cmp qword [rsp + 0x28], 0
jle 0x14001aaa8
mov rax, qword [rsp + 0x28]
cmp qword [rsp + 0x70], rax
jge 0x14001aa1d
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x40]
mov rax, qword [rax]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x68]
mov rcx, rax
call fcn.140022f70
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x68]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x70]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x58]
mov ecx, dword [rsp + 0x28]
mov eax, dword [rax]
sub eax, ecx
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x58]
mov dword [rcx], eax
movsxd rax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x40]
add rax, qword [rcx]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x40]
mov qword [rcx], rax
cmp qword [rsp + 0x70], 0
jle 0x14001aaf0
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x80], 0
je 0x14001aaf0
mov rax, qword [rsp + 0x60]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x70]
mov edx, 1
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, qword [rsp + 0x70]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
add rsp, 0x58
ret
Function at 0x140020f20
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xb8
mov rax, qword [0x140063040]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xc0]
cmp qword [rax + 0x68], 0
je 0x140020f5d
mov rax, qword [rsp + 0xc0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140020f64
mov al, 1
jmp 0x1400210f0
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x40], 0xffffffff
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x44], eax
mov edx, dword [rsp + 0x44]
mov rcx, qword [rsp + 0xc0]
call qword [rsp + 0x60]
mov dword [rsp + 0x4c], eax
mov dword [rsp + 0x48], 0xffffffff
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x4c]
cmp dword [rsp + 0x50], eax
jne 0x140020fc0
mov dword [rsp + 0x38], 1
jmp 0x140020fc8
mov dword [rsp + 0x38], 0
movzx eax, byte [rsp + 0x38]
mov byte [rsp + 0x30], al
movzx eax, byte [rsp + 0x30]
movzx eax, al
test eax, eax
je 0x140020fe4
xor al, al
jmp 0x1400210f0
mov qword [rsp + 0x70], 0x20
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax + 0x68]
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0xa0]
mov rcx, qword [rsp + 0xc0]
add rcx, 0x74
lea rdx, [rsp + 0x78]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rsp + 0x80]
mov rdx, rcx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x140021057
cmp dword [rsp + 0x34], 1
je 0x140021063
cmp dword [rsp + 0x34], 3
je 0x1400210de
jmp 0x1400210ee
mov rax, qword [rsp + 0xc0]
mov byte [rax + 0x71], 0
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jbe 0x1400210b5
mov rax, qword [rsp + 0xc0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x58]
mov edx, 1
lea rcx, [rsp + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp qword [rsp + 0x58], rax
je 0x1400210b5
xor al, al
jmp 0x1400210f0
mov rax, qword [rsp + 0xc0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1400210cf
mov dword [rsp + 0x3c], 1
jmp 0x1400210d7
mov dword [rsp + 0x3c], 0
movzx eax, byte [rsp + 0x3c]
jmp 0x1400210f0
mov rax, qword [rsp + 0xc0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x1400210f0
xor al, al
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140054330
add rsp, 0xb8
ret
Function at 0x140036280
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x80
mov rax, qword [0x140063040]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x38], 0
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
mov rdx, qword [rsp + 0x98]
lea rcx, [rsp + 0x68]
call fcn.140042990
nop
lea rax, [0x140042a40]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x90]
add rax, 8
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, rcx
mov r8, qword [rsp + 0x48]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov rcx, qword [rsp + 0x90]
mov qword [rcx], rax
mov rax, qword [rsp + 0x90]
cmp qword [rax], 0
je 0x140036365
mov qword [rsp + 0x50], 0
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
mov qword [rax], rcx
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x60], rax
jmp 0x140036380
mov rax, qword [rsp + 0x90]
mov dword [rax + 8], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
lea rcx, [rsp + 0x68]
call fcn.14003d970
nop
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140054330
add rsp, 0x80
pop rdi
ret
Function at 0x140053a00
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov rax, qword [0x140063040]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov r15, rdx
mov r14, rcx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x28], rdx
xor eax, eax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
xorps xmm1, xmm1
movups xmmword [rsp + 0x38], xmm1
movups xmmword [rsp + 0x48], xmm1
movups xmmword [rsp + 0x58], xmm1
movups xmmword [rsp + 0x68], xmm1
movups xmmword [rsp + 0x78], xmm1
movups xmmword [rbp - 0x78], xmm1
movups xmmword [rbp - 0x68], xmm1
movups xmmword [rbp - 0x58], xmm1
mov dword [rbp - 0x48], 0x6a09e667
mov dword [rbp - 0x44], 0xbb67ae85
mov dword [rbp - 0x40], 0x3c6ef372
mov dword [rbp - 0x3c], 0xa54ff53a
mov dword [rbp - 0x38], 0x510e527f
mov dword [rbp - 0x34], 0x9b05688c
mov dword [rbp - 0x30], 0x1f83d9ab
mov dword [rbp - 0x2c], 0x5be0cd19
mov qword [rsp + 0x30], rax
mov esi, dword [rdx + 0x10]
mov rcx, rdx
call fcn.14001d480
mov r12, rax
mov ebx, 0x40
cmp esi, ebx
cmovb ebx, esi
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x38]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [rsp + 0x34]
add ecx, esi
cmp ecx, 0x40
jae 0x140053ae5
mov dword [rsp + 0x34], ecx
jmp 0x140053b40
sub esi, ebx
mov edi, esi
shr edi, 6
add rbx, r12
mov r8d, 1
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.140053000
mov r8d, edi
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140053000
and esi, 0x3f
mov r8d, esi
mov edx, edi
shl edx, 6
add rdx, rbx
lea rcx, [rsp + 0x38]
call sub.VCRUNTIME140.dll_memcpy
mov dword [rsp + 0x34], esi
shl edi, 6
mov ecx, dword [rsp + 0x30]
add ecx, 0x40
add ecx, edi
mov dword [rsp + 0x30], ecx
lea rdx, [rbp - 0x20]
lea rcx, [rsp + 0x30]
call fcn.1400537c0
mov byte [rbp + 0x40], 0
lea rdi, [rbp - 0x20]
lea rbx, [rbp]
mov esi, 0x20
nop
movzx r8d, byte [rdi]
lea rdx, str._02x
mov rcx, rbx
call fcn.140052fa0
add rbx, 2
lea rdi, [rdi + 1]
sub rsi, 1
jne 0x140053b60
lea rdx, [rbp]
mov rcx, r14
call fcn.14001d9a0
nop
mov rcx, r15
call fcn.14001d7a0
mov rax, r14
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.140054330
mov rbx, qword [rsp + 0x1b0]
add rsp, 0x160
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x140053bc0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
xor rax, rax
mov rax, qword gs:[0x60]
mov rax, qword [rax + 2]
and rax, 0xff
ret

Function at 0x140053bd7
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
xor rax, rax
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0xbc]
and rax, 0x70
ret
Function at 0x140053c04
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 0x140053c3e
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140053c43
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 0x140053c8c
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140059710]
cmp byte [rcx + rax], 0
je 0x140053c8c
dec r8
sub rdx, 1
jne 0x140053c72
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140055098
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x18000cfe1
xor eax, eax
lea r8, [0x18000c560]
mov r9, rcx
mov qword [rsp + 0x28], rax
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x38
ret
Function at 0x1800132e0
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x90
mov rax, qword [0x180095038]
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]
cmp rdi, 0x40000000
jbe 0x18001332d
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x18009aa60]
lea r15, [rdi + 0x40000000]
cmp qword [rsp + 0x60], r15
cmovbe r15, qword [rsp + 0x60]
sub r15, 0xfff
test rsi, rsi
je 0x18001336f
cmp rsi, r14
jb 0x180013367
cmp rsi, r15
jae 0x180013367
cmp qword [rsi + 8], 0
jne 0x18001352d
mov rsi, qword [rsi]
test rsi, rsi
jne 0x180013352
mov qword [rsp + 0xb8], rbx
mov rbx, rdi
mov qword [rsp + 0xc0], rbp
cmp rdi, r14
jb 0x1800133f2
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 0x1800133e9
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 0x1800133e9
cmp dword [rsp + 0x40], 0x10000
je 0x18001346b
mov rbx, qword [rsp + 0x28]
cmp rbx, rbp
jb 0x1800133e9
sub rbx, rbp
cmp rbx, r14
jae 0x1800133b0
test rsi, rsi
jne 0x1800134d6
cmp rdi, r15
ja 0x18001351d
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 0x18001351d
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18001351d
cmp dword [rsp + 0x40], 0x10000
je 0x1800134a4
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 0x180013422
jmp 0x18001351d
test rbx, rbx
je 0x1800133e9
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x1800134d6
cmp rbx, r14
jae 0x180013390
jmp 0x1800133f2
test rdi, rdi
je 0x18001351d
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x1800134d6
cmp rdi, r15
jbe 0x180013400
jmp 0x18001351d
xor eax, eax
lea rcx, [rsi + 0x40]
mov rdx, rcx
mov qword [rsi + 8], rax
sub rdx, rsi
mov dword [rsi + 0x10], eax
nop dword [rax]
mov rax, qword [rsi + 8]
add rdx, 0x40
mov qword [rcx], rax
mov qword [rsi + 8], rcx
add rcx, 0x40
cmp rdx, 0xfc0
jbe 0x1800134f0
mov rax, qword [0x18009aa60]
mov qword [rsi], rax
mov qword [0x18009aa60], rsi
mov rbp, qword [rsp + 0xc0]
mov rbx, qword [rsp + 0xb8]
mov rax, rsi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.18002f330
mov rsi, qword [rsp + 0xc8]
add rsp, 0x90
pop r15
pop r14
pop rdi
ret
Function at 0x180013f50
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 [0x180095038]
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 0x18001407b
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x180014072
nop dword [rax]
cmp dword [rsp + 0x20], 0x10
jb 0x180014054
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x180014054
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x180014054
mov rdx, qword [rbx]
test rdx, rdx
jne 0x180014012
mov rcx, qword [0x18009a5b0]
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 0x180014072
jmp 0x180014047
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x180014047
mov rcx, qword [0x18009a5b0]
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 0x180014072
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 0x180013fc0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], rsi
je 0x1800140d3
cmp dword [rbx + 0xc], esi
jbe 0x1800140d3
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 0x1800140cc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.180013da0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rbx + 0xc]
jb 0x180014090
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18002f330
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 0x180014100
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x180095038]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, ecx
lea r9, [rsp + 0x20]
imul rbx, rax, 0x38
mov r8d, 0x40
add rbx, qword [0x18009aa50]
mov rdx, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [rdx - 5]
cmove rdi, rdx
lea rsi, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180014169
mov eax, 0xa
jmp 0x1800141b6
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 0x180014185
mov rax, qword [rbx]
mov word [rax], 0xf9eb
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [rbx + 0x20], 6
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.18002f330
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x1800141e0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
mov eax, dword [0x18009aa5c]
xor edi, edi
mov ebx, edi
test eax, eax
je 0x1800142f0
mov rcx, qword [0x18009aa50]
add rcx, 0x20
test byte [rcx], 2
je 0x180014223
inc ebx
add rcx, 0x38
cmp ebx, eax
jb 0x180014207
mov eax, edi
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xffffffff
je 0x1800142f0
mov edx, 0xffffffff
lea rcx, [rsp + 0x20]
mov r8d, 1
call fcn.180013f50
mov edx, dword [0x18009aa5c]
cmp ebx, edx
jae 0x18001427d
nop dword [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x18009aa50]
test byte [rcx + rax + 0x20], 2
jne 0x180014277
mov ecx, ebx
call fcn.180014100
mov edi, eax
test eax, eax
jne 0x18001427d
mov edx, dword [0x18009aa5c]
inc ebx
cmp ebx, edx
jb 0x180014250
cmp qword [rsp + 0x20], 0
je 0x1800142f0
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x1800142dc
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
mov qword [rsp + 0x48], rsi
nop
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 0x1800142c8
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 0x1800142a0
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x18009a5b0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x50]
mov eax, edi
add rsp, 0x30
pop rdi
ret