joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140334710
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0xc8
lea rbp, [rsp + 0x100]
xorps xmm4, xmm4
movaps xmmword [rbp - 0x70], xmm4
movaps xmmword [rbp - 0x60], xmm4
movaps xmmword [rbp - 0x50], xmm4
mov qword [rbp + 0x10], rcx
mov ebx, edx
mov rdi, r8
mov rsi, r9
mov r14, qword [rbp + 0x30]
mov r15, qword [rbp + 0x38]
mov r12, qword [rbp + 0x40]
mov r13, qword [rbp + 0x48]
xor edx, edx
mov dword [rbp - 0x40], edx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.140309490
mov rcx, qword [rbp + 0x10]
mov rdx, qword [rcx + 8]
test rdi, rdi
jne 0x140334778
xor r8d, r8d
jmp 0x14033477c
lea r8, [rdi + 0x10]
mov qword [rbp - 0x48], r8
mov qword [rbp - 0x50], rsi
mov r9, rsi
test r14, r14
jne 0x140334790
xor eax, eax
jmp 0x140334794
lea rax, [r14 + 0x10]
mov qword [rbp - 0x58], rax
test r15, r15
jne 0x1403347a2
xor r10d, r10d
jmp 0x1403347a6
lea r10, [r15 + 0x10]
mov qword [rbp - 0x60], r10
test r12, r12
jne 0x1403347b4
xor r11d, r11d
jmp 0x1403347b9
lea r11, [r12 + 0x10]
mov qword [rbp - 0x68], r11
test r13, r13
jne 0x1403347c6
xor esi, esi
jmp 0x1403347ca
lea rsi, [r13 + 0x10]
mov qword [rbp - 0x70], rsi
mov rcx, rdx
mov qword [rbp - 0x7c], rcx
mov edx, ebx
mov dword [rbp - 0x74], edx
mov qword [rbp - 0x84], r8
mov qword [rbp - 0x8c], r9
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], r10
mov qword [rsp + 0x30], r11
mov qword [rsp + 0x38], rsi
lea rcx, [rbp - 0xb8]
call fcn.14000ca90
mov rcx, qword [rbp - 0x7c]
mov edx, dword [rbp - 0x74]
mov r8, qword [rbp - 0x84]
mov r9, qword [rbp - 0x8c]
call sub.ADVAPI32.dll_RegEnumKeyExW
mov esi, eax
lea rcx, [rbp - 0xb8]
call fcn.14000cae0
nop
xor ecx, ecx
mov qword [rbp - 0x70], rcx
xor ecx, ecx
mov qword [rbp - 0x68], rcx
xor ecx, ecx
mov qword [rbp - 0x60], rcx
xor ecx, ecx
mov qword [rbp - 0x58], rcx
xor ecx, ecx
mov qword [rbp - 0x50], rcx
xor ecx, ecx
mov qword [rbp - 0x48], rcx
cmp byte [rbp - 0x40], 0
je 0x140334866
mov rcx, qword [rbp + 0x10]
xor edx, edx
call fcn.140309530
mov eax, esi
add rsp, 0xc8
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x140334da0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0xc0]
xor eax, eax
mov qword [rbp - 0x48], rax
mov qword [rbp + 0x10], rcx
mov rsi, rdx
mov rdi, r8
mov rbx, r9
xor edx, edx
mov dword [rbp - 0x40], edx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.140309490
mov rcx, qword [rbp + 0x10]
mov rdx, qword [rcx + 8]
test rsi, rsi
je 0x140334df1
add rsi, 0xc
jmp 0x140334df3
xor esi, esi
mov qword [rbp - 0x48], rsi
mov r14, qword [rbp + 0x30]
mov qword [rsp + 0x20], r14
mov r14, qword [rbp + 0x38]
mov qword [rsp + 0x28], r14
mov rcx, rdx
mov qword [rbp - 0x50], rcx
mov rdx, rsi
mov qword [rbp - 0x58], rdx
mov r8, rdi
mov qword [rbp - 0x60], r8
mov r9, rbx
mov qword [rbp - 0x68], r9
lea rcx, [rbp - 0x90]
call fcn.14000ca90
mov rcx, qword [rbp - 0x50]
mov rdx, qword [rbp - 0x58]
mov r8, qword [rbp - 0x60]
mov r9, qword [rbp - 0x68]
call sub.ADVAPI32.dll_RegQueryValueExW
mov esi, eax
lea rcx, [rbp - 0x90]
call fcn.14000cae0
nop
xor ecx, ecx
mov qword [rbp - 0x48], rcx
cmp byte [rbp - 0x40], 0
je 0x140334e6c
mov rcx, qword [rbp + 0x10]
xor edx, edx
call fcn.140309530
mov eax, esi
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x1403bb640
Capabilities:
Enumerate process modules

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0xc0]
xor eax, eax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], rax
mov qword [rbp + 0x10], rcx
mov rdi, rdx
mov ebx, r8d
mov rsi, r9
xor edx, edx
mov dword [rbp - 0x40], edx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.140309490
mov rcx, qword [rbp + 0x10]
mov r14, qword [rcx + 8]
test rdi, rdi
jne 0x1403bb694
xor r15d, r15d
jmp 0x1403bb698
lea r15, [rdi + 0x10]
mov qword [rbp - 0x48], r15
mov qword [rbp - 0x50], rsi
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov edi, dword [rbp + 0x30]
mov dword [rsp + 0x20], edi
mov rcx, r14
mov qword [rbp - 0x5c], rcx
mov rdx, r15
mov qword [rbp - 0x64], rdx
mov r8d, ebx
mov dword [rbp - 0x54], r8d
mov r9, rsi
mov qword [rbp - 0x6c], r9
lea rcx, [rbp - 0x98]
call fcn.14000ca90
mov rcx, qword [rbp - 0x5c]
mov rdx, qword [rbp - 0x64]
mov r8d, dword [rbp - 0x54]
mov r9, qword [rbp - 0x6c]
call sub.KERNEL32.dll_K32EnumProcessModulesEx
mov esi, eax
lea rcx, [rbp - 0x98]
call fcn.14000cae0
call sub.KERNEL32.dll_GetLastError
mov edi, eax
xor ecx, ecx
mov qword [rbp - 0x50], rcx
xor ecx, ecx
mov qword [rbp - 0x48], rcx
test esi, esi
setne sil
movzx esi, sil
cmp byte [rbp - 0x40], 0
je 0x1403bb727
mov rcx, qword [rbp + 0x10]
xor edx, edx
call fcn.140309530
call fcn.140007542
mov dword [rax + 8], edi
movzx eax, sil
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x1403bc200
Capabilities:
Enumerate process modules

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
xor eax, eax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x48], rax
mov esi, edx
test rcx, rcx
jne 0x1403bc22d
xor edi, edi
jmp 0x1403bc231
lea rdi, [rcx + 0x10]
mov qword [rbp - 0x40], rdi
mov qword [rbp - 0x48], r8
mov rbx, r8
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, rdi
mov qword [rbp - 0x54], rcx
mov edx, esi
mov dword [rbp - 0x4c], edx
mov r8, rbx
mov qword [rbp - 0x5c], r8
lea rcx, [rbp - 0x88]
call fcn.14000ca90
mov rcx, qword [rbp - 0x54]
mov edx, dword [rbp - 0x4c]
mov r8, qword [rbp - 0x5c]
call sub.KERNEL32.dll_K32EnumProcesses
mov esi, eax
lea rcx, [rbp - 0x88]
call fcn.14000cae0
call sub.KERNEL32.dll_GetLastError
mov edi, eax
xor eax, eax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
test esi, esi
setne sil
movzx esi, sil
call fcn.140007542
mov dword [rax + 8], edi
movzx eax, sil
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x1403c8bd0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0xc0]
xor eax, eax
mov qword [rbp - 0x48], rax
mov qword [rbp + 0x10], rcx
mov rsi, rdx
mov rdi, r8
mov rbx, r9
xor edx, edx
mov dword [rbp - 0x40], edx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.140309490
mov rcx, qword [rbp + 0x10]
mov rdx, qword [rcx + 8]
test rsi, rsi
je 0x1403c8c21
add rsi, 0xc
jmp 0x1403c8c23
xor esi, esi
mov qword [rbp - 0x48], rsi
mov r14, qword [rbp + 0x30]
mov qword [rsp + 0x20], r14
mov r14, qword [rbp + 0x38]
mov qword [rsp + 0x28], r14
mov rcx, rdx
mov qword [rbp - 0x50], rcx
mov rdx, rsi
mov qword [rbp - 0x58], rdx
mov r8, rdi
mov qword [rbp - 0x60], r8
mov r9, rbx
mov qword [rbp - 0x68], r9
lea rcx, [rbp - 0x90]
call fcn.14000ca90
mov rcx, qword [rbp - 0x50]
mov rdx, qword [rbp - 0x58]
mov r8, qword [rbp - 0x60]
mov r9, qword [rbp - 0x68]
call sub.ADVAPI32.dll_RegQueryValueExW
mov esi, eax
lea rcx, [rbp - 0x90]
call fcn.14000cae0
nop
xor ecx, ecx
mov qword [rbp - 0x48], rcx
cmp byte [rbp - 0x40], 0
je 0x1403c8c9c
mov rcx, qword [rbp + 0x10]
xor edx, edx
call fcn.140309530
mov eax, esi
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x100bc60
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
mov edi, esi
xor eax, eax
lock cmpxchg qword [0x01024400], rbx
je 0x100bca6
cmp rax, rbx
jne 0x100bc99
mov edi, 1
jmp 0x100bca6
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100bc80
mov eax, dword [0x010243fc]
cmp eax, 1
jne 0x100bcbb
lea ecx, [rax + 0x1e]
call sub.MSVCR80.dll__amsg_exit
jmp 0x100bcfa
mov eax, dword [0x010243fc]
test eax, eax
jne 0x100bcf0
mov dword [0x010243fc], 1
lea rdx, [0x010014d8]
lea rcx, [0x010014c0]
call sub.MSVCR80.dll__initterm_e
test eax, eax
je 0x100bcfa
mov eax, 0xff
jmp 0x100bddb
mov dword [0x010211f4], 1
mov eax, dword [0x010243fc]
cmp eax, 1
jne 0x100bd22
lea rdx, [0x010014b8]
lea rcx, [0x01001498]
call sub.MSVCR80.dll__initterm
mov dword [0x010243fc], 2
test edi, edi
jne 0x100bd2d
xchg qword [0x01024400], rsi
cmp qword [0x01024418], 0
je 0x100bd56
lea rcx, [0x01024418]
call fcn.0100c2a0
test eax, eax
je 0x100bd56
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x01024418]
mov rcx, qword [sym.imp.MSVCR80.dll___initenv]
mov rax, qword [0x010211d8]
mov qword [rcx], rax
mov r8, qword [0x010211d8]
mov rdx, qword [0x010211e0]
mov ecx, dword [0x010211d0]
call fcn.0100b52c
mov dword [0x010211f0], eax
cmp dword [0x010211d4], 0
jne 0x100bd97
mov ecx, eax
call qword [sym.imp.MSVCR80.dll_exit]
cmp dword [0x010211f4], 0
jne 0x100bdac
call qword [sym.imp.MSVCR80.dll__cexit]
mov eax, dword [0x010211f0]
jmp 0x100bddb
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
sub rsp, 0x28
call fcn.010b5000
add rsp, 0x28
jmp 0x100bc60
Function at 0x1800011a0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x1800ac008]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov r12, qword [rsp + 0xc0]
lea r8, [rsp + 0x38]
xor esi, esi
mov qword [rsp + 0x50], 0x1000
mov rbx, rdx
mov r15, rcx
mov ebp, 0x1000000
mov rcx, r12
mov edx, ebp
mov r14d, esi
lea r9d, [rsi + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
nop word [rax + rax]
mov r9d, 0x30
lea r8, [rsp + 0x38]
mov rdx, rbp
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test rax, rax
je 0x180001329
cmp dword [rsp + 0x58], 0x1000
jne 0x180001329
cmp dword [rsp + 0x5c], 0x40
jne 0x180001329
mov rcx, r14
call fcn.18002ec60
mov rcx, qword [rsp + 0x50]
call fcn.18002ec68
mov r8, qword [rsp + 0x50]
mov r14, rax
mov rdx, qword [rsp + 0x38]
lea rax, [rsp + 0x70]
mov r9d, 0x40
mov qword [rsp + 0x20], rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x180001329
mov r9, qword [rsp + 0x50]
lea rax, [rsp + 0x68]
mov rdx, qword [rsp + 0x38]
mov r8, r14
mov rcx, r12
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov r9d, dword [rsp + 0x70]
lea rax, [rsp + 0x70]
mov r8, qword [rsp + 0x50]
mov rcx, r12
mov rdx, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rbx + r8], sil
jne 0x1800012d2
mov rdi, qword [rsp + 0x68]
test rdi, rdi
jle 0x180001329
mov r10, r14
mov edx, esi
sub r10, rbx
mov r11d, esi
test r8, r8
jle 0x18000131d
mov r9, r15
mov rax, rbx
sub r9, rbx
nop
cmp byte [rax], 0x3f
je 0x180001310
movzx ecx, byte [r10 + rax]
cmp byte [r9 + rax], cl
jne 0x18000133d
inc edx
inc rax
movsxd rcx, edx
cmp rcx, r8
jl 0x180001300
movsxd rcx, r11d
lea rax, [rcx + r14]
test rax, rax
jne 0x18000134f
add rbp, qword [rsp + 0x50]
cmp rbp, 0xa000000
jb 0x180001210
jmp 0x180001353
inc r11d
inc r10
movsxd rax, r11d
cmp rax, rdi
jge 0x180001329
mov edx, esi
jmp 0x1800012f5
lea rsi, [rcx + rbp]
mov rcx, r14
call fcn.18002ec60
mov rax, rsi
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.18002ec40
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
Function at 0x180001720
Capabilities:
Log keystrokes via polling

Disassembly:
push rdi
sub rsp, 0x70
mov rax, qword [0x1800ac008]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rcx, qword [0x1800b1c50]
lea rdx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r8d, dword [rsp + 0x30]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [0x1800b1bec]
mov rdi, rax
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x1800018c2
cmp byte [0x1800b1bfa], 0
lea rdx, str.xxxxxxxxxxxxxxx
mov qword [rsp + 0x80], rbx
sete cl
mov qword [rsp + 0x20], rdi
mov byte [0x1800b1bfa], cl
test cl, cl
jne 0x1800017ad
lea rcx, [0x18005f6c8]
call fcn.1800011a0
lea r8, [0x18005f6d8]
jmp 0x1800017c0
lea rcx, [0x18005f6f0]
call fcn.1800011a0
lea r8, [0x18005f6c8]
xor ebx, ebx
mov rdx, rax
mov rcx, rdi
mov qword [rsp + 0x20], rbx
lea r9d, [rbx + 0xe]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
cmp byte [0x1800b1bfa], bl
lea rdx, str.xxxxxxxxxxxxxxx
mov qword [rsp + 0x20], rdi
jne 0x180001800
lea rcx, [0x18005f6c8]
call fcn.1800011a0
lea r8, [0x18005f6d8]
jmp 0x180001813
lea rcx, [0x18005f6f0]
call fcn.1800011a0
lea r8, [0x18005f6c8]
mov r9d, 0xe
mov qword [rsp + 0x20], rbx
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
cmp byte [0x1800b1bfa], 0
lea rdx, str.xxx___xxxxxxx_x
mov qword [rsp + 0x20], rdi
jne 0x180001854
lea rcx, [0x18005f710]
call fcn.1800011a0
lea r8, [0x18005f728]
jmp 0x180001867
lea rcx, [0x18005f728]
call fcn.1800011a0
lea r8, [0x18005f740]
mov r9d, 2
mov qword [rsp + 0x20], rbx
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
movzx eax, word [0x1800b1bec]
lea rdx, [rsp + 0x38]
mov r8d, 0x28
mov dword [rsp + 0x38], 1
mov word [rsp + 0x42], bx
mov qword [rsp + 0x44], 2
mov qword [rsp + 0x50], rbx
lea ecx, [r8 - 0x27]
mov word [rsp + 0x40], ax
call qword [sym.imp.USER32.dll_SendInput]
mov rbx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.18002ec40
add rsp, 0x70
pop rdi
ret

Function at 0x1800029d0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x180002a28
mov r9, rcx
mov qword [rsp + 0x30], rbx
xor ebx, ebx
lea r8, [0x1800027a0]
mov qword [rsp + 0x28], rbx
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r9d, r9d
mov qword [rsp + 0x28], rbx
lea r8, [0x180002820]
mov dword [rsp + 0x20], ebx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, qword [rsp + 0x30]
mov eax, 1
add rsp, 0x38
ret
Function at 0x180002a40
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push r14
push r15
sub rsp, 0x98
mov rax, qword [0x1800ac008]
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 0x180002a8f
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x1800b1ca0]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x180002acd
cmp rsi, r14
jb 0x180002ac5
cmp rsi, r15
jae 0x180002ac5
cmp qword [rsi + 8], 0
jne 0x180002c97
mov rsi, qword [rsi]
test rsi, rsi
jne 0x180002ab0
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 0x180002b62
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 0x180002b59
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 0x180002b59
cmp dword [rsp + 0x40], 0x10000
je 0x180002bdb
mov rbx, qword [rsp + 0x28]
cmp rbx, rbp
jb 0x180002b59
sub rbx, rbp
cmp rbx, r14
jae 0x180002b20
test rsi, rsi
jne 0x180002c40
cmp rdi, r15
ja 0x180002c7f
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 0x180002c7f
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180002c7f
cmp dword [rsp + 0x40], 0x10000
je 0x180002c11
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 0x180002b92
jmp 0x180002c7f
test rbx, rbx
je 0x180002b59
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 0x180002c40
cmp rbx, r14
jae 0x180002b00
jmp 0x180002b62
test rdi, rdi
je 0x180002c7f
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 0x180002c40
cmp rdi, r15
jbe 0x180002b70
jmp 0x180002c7f
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 0x180002c50
mov rax, qword [0x1800b1ca0]
mov qword [rsi], rax
mov qword [0x1800b1ca0], 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.18002ec40
add rsp, 0x98
pop r15
pop r14
pop rdi
pop rsi
ret
Function at 0x1800036b0
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push rbx
push rbp
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x1800ac008]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r14d, edx
xor r15d, r15d
xor edx, edx
mov qword [rcx], r15
mov rbx, rcx
mov qword [rcx + 8], r15
mov ebp, r8d
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1800037ea
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1800037e1
cmp dword [rsp + 0x20], 0x10
jb 0x1800037ac
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x1800037ac
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x1800037ac
mov rdx, qword [rbx]
test rdx, rdx
jne 0x18000376a
mov rcx, qword [0x1800b1c18]
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 0x1800037e1
jmp 0x18000379f
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x18000379f
mov rcx, qword [0x1800b1c18]
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 0x1800037cc
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 0x180003714
jmp 0x1800037e1
mov r8, qword [rbx]
xor edx, edx
mov rcx, qword [0x1800b1c18]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rbx], r15
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], r15
je 0x180003855
mov edi, r15d
cmp dword [rbx + 0xc], r15d
jbe 0x180003850
mov qword [rsp + 0x90], rsi
mov rax, qword [rbx]
xor edx, edx
mov ecx, edi
mov r8d, dword [rax + rcx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18000383c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rsi
call fcn.180003500
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x180003800
mov rsi, qword [rsp + 0x90]
mov eax, r15d
jmp 0x18000385a
mov eax, r15d
jmp 0x18000385a
mov eax, 9
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18002ec40
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rbp
pop rbx
ret
Function at 0x180003880
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 [0x1800ac008]
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 [0x1800b1c90]
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 0x1800038f3
mov eax, 0xa
jmp 0x180003982
test esi, esi
je 0x180003915
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 0x180003938
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x180003938
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x180003931
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x180003938
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.18002ec40
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1800039b0
Capabilities:
Resume thread

Disassembly:
push rbx
sub rsp, 0x30
mov edx, dword [0x1800b1c9c]
xor ebx, ebx
test edx, edx
je 0x1800039df
mov rcx, qword [0x1800b1c90]
add rcx, 0x20
nop dword [rax]
test byte [rcx], 2
jne 0x1800039e7
inc ebx
add rcx, 0x38
cmp ebx, edx
jb 0x1800039d0
xor eax, eax
add rsp, 0x30
pop rbx
ret
cmp ebx, 0xffffffff
je 0x1800039df
xor r8d, r8d
mov qword [rsp + 0x50], rdi
mov edx, 0xffffffff
lea rcx, [rsp + 0x20]
call fcn.1800036b0
mov edi, eax
test eax, eax
jne 0x180003ac2
mov r8d, dword [0x1800b1c9c]
cmp ebx, r8d
jae 0x180003a51
nop dword [rax]
mov ecx, ebx
imul rdx, rcx, 0x38
mov rcx, qword [0x1800b1c90]
test byte [rdx + rcx + 0x20], 2
je 0x180003a4a
xor edx, edx
mov ecx, ebx
call fcn.180003880
mov edi, eax
test eax, eax
jne 0x180003a51
mov r8d, dword [0x1800b1c9c]
inc ebx
cmp ebx, r8d
jb 0x180003a20
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180003aac
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
mov qword [rsp + 0x48], rsi
nop word [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 0x180003a98
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 0x180003a70
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1800b1c18]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop rbx
ret