joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180049b60
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 + 0x6010], 0
lea rbx, [rcx + 0x6018]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x180049c07
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x180049bba
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.18004c290
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.180035c50
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x6010]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x6020]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x180160a84]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x180049c0f
mov rcx, rbx
call fcn.180035c50
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x180049f30
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
mov rbx, qword [0x180160ac8]
xor ebp, ebp
cmp byte [rbx + 0x5f68], bpl
jne 0x18004a00f
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x18004a008
lea r8, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
call fcn.1800355d0
mov rsi, rax
test rax, rax
je 0x18004a008
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x180049f94
mov rcx, rax
call fcn.18004a160
mov r8, qword [0x180160ac8]
test r8, r8
je 0x180049fff
movsx rdx, word [r8 + 0x60f0]
lea rcx, [r8 + 0x60f4]
mov r9d, dword [r8 + 0x3f58]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x180049ff4
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x60f0], cx
movsx rax, cx
lea rcx, [r8 + 0x60f4]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], ebp
inc word [rcx + 6]
inc dword [r8 + 0x60ec]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov byte [rbx + 0x5f68], 1
movss xmm0, dword [rbx + 0x5f6c]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x18004a09e
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x5f6c], xmm0
jb 0x18004a09e
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x18004a091
mov rax, qword [0x180160ac8]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
mov dword [rax + 0x5f6c], ebp
call fcn.18004a3c0
lea rdx, [0x180111820]
mov rcx, rdi
mov rsi, rax
call fcn.1800354e0
mov rdi, rax
test rax, rax
je 0x18004a098
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x18004a098
mov byte [rbx + 0xce], 1
mov dword [rbx + 0x5f6c], ebp
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x18004a0c0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x180160ac8]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x18004a123
mov qword [rsp], rbx
lea rbx, [0x1800f83f0]
nop dword [rax]
cmp r9b, 0x23
jne 0x18004a103
cmp byte [r8], r9b
jne 0x18004a103
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x18004a0f0
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5f80]
not eax
mov r8, qword [r10 + 0x5f88]
lea rdx, [rcx + rcx*8]
lea rcx, [r8 + rdx*8]
cmp r8, rcx
je 0x18004a14f
cmp dword [r8 + 8], eax
je 0x18004a156
add r8, 0x48
cmp r8, rcx
jne 0x18004a140
xor eax, eax
add rsp, 8
ret
mov rax, r8
add rsp, 8
ret
Function at 0x18005dc30
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x70
mov rax, qword [0x180144040]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, qword [0x180160ac8]
mov rbp, rcx
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x18005ddee
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x18005ddee
mov qword [rsp + 0x80], rbx
mov ecx, 0x50
mov qword [rsp + 0x88], rdi
call fcn.180038b40
xor ebx, ebx
mov qword [rsp + 0x28], rax
mov rdi, rax
test rax, rax
je 0x18005dcba
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
jmp 0x18005dcbd
mov rdi, rbx
or dword [rsi + 0xc], 6
lea rax, str.imgui_impl_win32
mov qword [rsi + 0x80], rax
mov qword [rsi + 0x90], rdi
mov qword [rdi], rbp
mov rax, qword [rsp + 0x58]
mov qword [rdi + 0x20], rax
mov rax, qword [rsp + 0x60]
mov qword [rdi + 0x18], rax
mov rax, qword [0x180160ac8]
mov dword [rdi + 0x28], 9
test rax, rax
je 0x18005dd07
mov rsi, qword [rax + 0x90]
jmp 0x18005dd0a
mov rsi, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
shr rax, 0x10
mov r9d, 4
movzx ecx, ax
lea r8, [rsi + 0x2c]
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x18005dd35
mov dword [rsi + 0x2c], ebx
mov rax, qword [0x180160ac8]
mov rcx, qword [rax + 0x4b10]
mov rax, qword [rcx]
mov qword [rax + 0x28], rbp
lea rax, str.xinput1_4.dll
mov qword [rsp + 0x30], rax
lea rax, [0x180112040]
mov qword [rsp + 0x38], rax
lea rax, str.xinput9_1_0.dll
mov qword [rsp + 0x40], rax
lea rax, str.xinput1_2.dll
mov qword [rsp + 0x48], rax
lea rax, str.xinput1_1.dll
mov qword [rsp + 0x50], rax
mov byte [rdi + 0x31], 1
nop word [rax + rax]
mov rcx, qword [rsp + rbx*8 + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x18005ddae
inc rbx
cmp rbx, 5
jl 0x18005dd90
jmp 0x18005ddda
lea rdx, str.XInputGetCapabilities
mov qword [rdi + 0x38], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.XInputGetState
mov rcx, rsi
mov qword [rdi + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x48], rax
mov rdi, qword [rsp + 0x88]
mov al, 1
mov rbx, qword [rsp + 0x80]
jmp 0x18005ddf0
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1800d0f80
mov rbp, qword [rsp + 0x90]
add rsp, 0x70
pop rsi
ret
Function at 0x180067a20
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x180144040]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov edi, r9d
mov esi, r8d
mov rbx, rcx
call qword [sym.imp.USER32.dll_GetForegroundWindow]
cmp rax, qword [0x180160e20]
jne 0x180067bad
mov ecx, edi
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
jne 0x180067baa
xor eax, eax
lea rcx, [rsp + 0x3c]
xor edx, edx
mov dword [rsp + 0x2c], eax
mov r8d, 0x114
call sub.VCRUNTIME140.dll_memset
xor eax, eax
lea rcx, [rbp + 0x5c]
xor edx, edx
mov dword [rbp + 0x54], eax
mov r8d, 0x134
call sub.VCRUNTIME140.dll_memset
cmp byte [0x180153cb8], 0
lea rax, [rbp]
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0x50]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], 0
mov dword [rbp + 0x50], 2
mov dword [rbp + 0x58], esi
mov dword [rsp + 0x28], 2
jne 0x180067adc
call fcn.180062e50
lea rcx, [rsp + 0x20]
call qword [0x18015b1c8]
mov rax, qword [rsp + 0x20]
cmp dword [rax], 0
je 0x180067b66
xor eax, eax
lea rcx, [rsp + 0x3c]
xor edx, edx
mov dword [rsp + 0x2c], eax
mov r8d, 0x114
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [rbp + 0x54]
mov r8d, 0x13c
call sub.VCRUNTIME140.dll_memset
cmp byte [0x180153cb8], 0
lea rax, [rbp]
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0x50]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], 0
mov dword [rbp + 0x50], 2
mov dword [rsp + 0x28], 1
jne 0x180067b51
call fcn.180062e50
lea rcx, [rsp + 0x20]
call qword [0x18015b1f0]
mov rax, qword [rsp + 0x20]
cmp dword [rax], 0
je 0x180067baa
mov ecx, edi
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x180067bcf
cmp byte [0x180160eb8], 0
je 0x180067b9b
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
imul rcx, qword [rbp + 0x1e0], 0x64
mov byte [0x180160eb8], 0
add rax, rcx
mov qword [0x180160eb0], rax
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
cmp rax, qword [0x180160eb0]
jbe 0x180067bad
mov byte [rbx], 1
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.1800d0f80
mov rbx, qword [rsp + 0x2c8]
add rsp, 0x2a0
pop rdi
pop rsi
pop rbp
ret
mov byte [0x180160eb8], 1
jmp 0x180067bad
Function at 0x18006d150
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x28
cmp byte [0x1801440b8], 0
je 0x18006d19a
mov qword [rsp + 0x30], 0x3e8
nop word [rax + rax]
mov ecx, 0x23
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x18006d187
mov byte [0x1801440b8], 0
lea rcx, [rsp + 0x30]
call fcn.18006d920
cmp byte [0x1801440b8], 0
jne 0x18006d170
add rsp, 0x28
ret

Function at 0x18006d600
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov ebx, edx
mov qword [0x180160fc0], rcx
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
cmp ebx, 1
jne 0x18006d649
mov rax, qword [0x180160fb0]
lea r8, [0x18006d590]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], 0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x180160fb8], rax
mov eax, 1
add rsp, 0x30
pop rbx
ret

Function at 0x18006da20
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x180144040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
mov ecx, 8
call fcn.1800d0fa0
lea rcx, [0x18006c830]
mov qword [rax], rcx
mov qword [rsp + 0x30], rax
lea rdi, [rbx + 8]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x18006de70]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbx], rax
test rax, rax
je 0x18006da9d
mov rax, rbx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1800d0f80
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov dword [rdi], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x18006e390
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push r14
push r15
sub rsp, 0x98
mov rax, qword [0x180144040]
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 0x18006e3df
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x1801616f0]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x18006e41d
cmp rsi, r14
jb 0x18006e415
cmp rsi, r15
jae 0x18006e415
cmp qword [rsi + 8], 0
jne 0x18006e5e7
mov rsi, qword [rsi]
test rsi, rsi
jne 0x18006e400
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 0x18006e4b2
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 0x18006e4a9
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 0x18006e4a9
cmp dword [rsp + 0x40], 0x10000
je 0x18006e52b
mov rbx, qword [rsp + 0x28]
cmp rbx, rbp
jb 0x18006e4a9
sub rbx, rbp
cmp rbx, r14
jae 0x18006e470
test rsi, rsi
jne 0x18006e590
cmp rdi, r15
ja 0x18006e5cf
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 0x18006e5cf
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18006e5cf
cmp dword [rsp + 0x40], 0x10000
je 0x18006e561
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 0x18006e4e2
jmp 0x18006e5cf
test rbx, rbx
je 0x18006e4a9
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 0x18006e590
cmp rbx, r14
jae 0x18006e450
jmp 0x18006e4b2
test rdi, rdi
je 0x18006e5cf
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 0x18006e590
cmp rdi, r15
jbe 0x18006e4c0
jmp 0x18006e5cf
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 0x18006e5a0
mov rax, qword [0x1801616f0]
mov qword [rsi], rax
mov qword [0x1801616f0], 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.1800d0f80
add rsp, 0x98
pop r15
pop r14
pop rdi
pop rsi
ret
Function at 0x18006f060
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x180144040]
xor rax, rsp
mov qword [rsp + 0x40], rax
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 0x18006f21a
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x18006f1a8
mov edi, 1
cmp dword [rsp + 0x20], 0x10
jb 0x18006f162
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x18006f162
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x18006f162
mov rdx, qword [rbx]
test rdx, rdx
jne 0x18006f124
mov rcx, qword [0x180160ae0]
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 0x18006f18b
jmp 0x18006f155
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x18006f155
mov rcx, qword [0x180160ae0]
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 0x18006f18b
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 0x18006f0d2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x18006f1a8
mov r8, qword [rbx]
mov edi, r15d
test r8, r8
je 0x18006f1a8
mov rcx, qword [0x180160ae0]
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 0x18006f21a
cmp qword [rbx], r15
je 0x18006f215
mov edi, r15d
cmp dword [rbx + 0xc], r15d
jbe 0x18006f215
nop dword [rax]
nop word [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 0x18006f20e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rsi
call fcn.18006eeb0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x18006f1d0
mov eax, r15d
jmp 0x18006f21f
mov eax, 9
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1800d0f80
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x18006f240
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 [0x180144040]
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 [0x1801616e0]
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 0x18006f2b3
mov eax, 0xa
jmp 0x18006f346
test esi, esi
je 0x18006f2d5
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 0x18006f2f8
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x18006f2f8
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x18006f2f1
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x18006f2f8
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.1800d0f80
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x18006f370
Capabilities:
Resume thread

Disassembly:
push rbx
sub rsp, 0x30
mov edx, dword [0x1801616ec]
xor ebx, ebx
test edx, edx
je 0x18006f39f
mov rcx, qword [0x1801616e0]
add rcx, 0x20
nop dword [rax]
test byte [rcx], 2
jne 0x18006f3a7
inc ebx
add rcx, 0x38
cmp ebx, edx
jb 0x18006f390
xor eax, eax
add rsp, 0x30
pop rbx
ret
cmp ebx, 0xffffffff
je 0x18006f39f
xor r8d, r8d
mov qword [rsp + 0x50], rdi
mov edx, 0xffffffff
lea rcx, [rsp + 0x20]
call fcn.18006f060
mov edi, eax
test eax, eax
jne 0x18006f494
mov r8d, dword [0x1801616ec]
cmp ebx, r8d
jae 0x18006f411
nop dword [rax]
mov ecx, ebx
imul rdx, rcx, 0x38
mov rcx, qword [0x1801616e0]
test byte [rdx + rcx + 0x20], 2
je 0x18006f40a
xor edx, edx
mov ecx, ebx
call fcn.18006f240
mov edi, eax
test eax, eax
jne 0x18006f411
mov r8d, dword [0x1801616ec]
inc ebx
cmp ebx, r8d
jb 0x18006f3e0
cmp qword [rsp + 0x20], 0
je 0x18006f492
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x18006f47e
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
mov qword [rsp + 0x48], rsi
nop dword [rax]
nop word [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 0x18006f46a
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 0x18006f440
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x180160ae0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop rbx
ret
Function at 0x18006f820
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov rdi, rcx
mov ebp, r15d
mov ebx, r15d
xor eax, eax
mov esi, 1
lock cmpxchg dword [0x180160ad8], esi
je 0x18006f871
nop
cmp rbx, 0x20
jae 0x18006f85a
xor ecx, ecx
jmp 0x18006f85c
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x180160ad8], esi
jne 0x18006f850
cmp qword [0x180160ae0], rbp
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], r14
je 0x18006fa03
mov ecx, dword [0x1801616ec]
mov ebx, r15d
test ecx, ecx
je 0x18006f8af
mov rdx, qword [0x1801616e0]
mov rax, rdx
nop
cmp rdi, qword [rax]
je 0x18006f8b9
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x18006f8a0
mov ebp, 4
jmp 0x18006fa08
cmp ebx, 0xffffffff
je 0x18006f8af
mov eax, ebx
mov r14d, ebx
imul r13, rax, 0x38
test byte [rdx + r13 + 0x20], 2
je 0x18006f967
xor r8d, r8d
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.18006f060
mov ebp, eax
test eax, eax
jne 0x18006fa08
xor edx, edx
mov ecx, ebx
call fcn.18006f240
mov ebp, eax
cmp qword [rsp + 0x20], r15
je 0x18006f958
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x18006f944
mov rdi, qword [rsp + 0x20]
mov esi, eax
nop dword [rax]
mov r8d, dword [rdi]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbx, rax
test rax, rax
je 0x18006f93a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rdi, 4
sub rsi, 1
jne 0x18006f910
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x180160ae0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
jne 0x18006fa08
mov rdx, qword [0x1801616e0]
mov rcx, qword [rdx + r13 + 0x10]
call fcn.18006e610
mov edx, dword [0x1801616ec]
dec edx
cmp r14d, edx
jae 0x18006f9b7
mov eax, edx
imul rcx, rax, 0x38
mov rax, qword [0x1801616e0]
movups xmm0, xmmword [rcx + rax]
movups xmmword [rax + r13], xmm0
movups xmm1, xmmword [rcx + rax + 0x10]
movups xmmword [rax + r13 + 0x10], xmm1
movups xmm0, xmmword [rcx + rax + 0x20]
movups xmmword [rax + r13 + 0x20], xmm0
movsd xmm1, qword [rcx + rax + 0x30]
movsd qword [rax + r13 + 0x30], xmm1
mov ecx, dword [0x1801616e8]
mov eax, ecx
mov dword [0x1801616ec], edx
shr eax, 1
cmp eax, 0x20
jb 0x18006fa08
cmp eax, edx
jb 0x18006fa08
mov r8, qword [0x1801616e0]
mov eax, ecx
mov rcx, qword [0x180160ae0]
xor edx, edx
shr rax, 1
imul r9, rax, 0x38
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
test rax, rax
je 0x18006fa08
shr dword [0x1801616e8], 1
mov qword [0x1801616e0], rax
jmp 0x18006fa08
mov ebp, 2
xchg dword [0x180160ad8], r15d
mov r14, qword [rsp + 0x58]
mov eax, ebp
mov rbp, qword [rsp + 0x68]
mov r13, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop rdi
pop rsi
ret