joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a3450
Capabilities:
Generate random numbers via winapi

Disassembly:
push rbx
xor r8d, r8d
mov ebx, ecx
xor edx, edx
mov r9d, 1
sub rsp, 0x40
mov dword [rsp + 0x20], 0xf0000000
lea rcx, [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1400a3490
mov eax, dword [rsp + 0x34]
xor edx, edx
add rsp, 0x40
div ebx
pop rbx
mov eax, edx
ret
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x34]
mov edx, 4
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x1400a3479
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [rsp + 0x34]
xor edx, edx
add rsp, 0x40
div ebx
pop rbx
mov eax, edx
ret

Function at 0x1400a34d0
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push r12
xor r8d, r8d
mov r12d, edx
mov r9d, 1
push rbx
xor edx, edx
mov rbx, rcx
sub rsp, 0x48
mov dword [rsp + 0x20], 0xf0000000
lea rcx, [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1400a3510
add rsp, 0x48
mov eax, 1
pop rbx
pop r12
ret
mov rcx, qword [rsp + 0x38]
mov r8, rbx
mov edx, r12d
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x1400a34ff
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
add rsp, 0x48
xor eax, eax
pop rbx
pop r12
ret

Function at 0x1400a3560
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
mov rbp, rsp
push rbx
lea rbx, [0x140224080]
mov rcx, rbx
and rsp, 0xfffffffffffffff0
sub rsp, 0xa0
call sub.msvcrt.dll_strlen
mov r8, rax
mov rax, rbx
cmp r8, 3
jbe 0x1400a3598
mov rbx, qword [rbp - 8]
leave
ret
xor r8d, r8d
mov byte [rsp + 0x90], 0
movabs rax, 0x4552415754464f53
movabs rdx, 0x6f736f7263694d5c
mov qword [rsp + 0x50], rax
mov r9d, 0x20019
movabs rax, 0x6f646e69575c7466
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x58], rdx
movabs rdx, 0x65727275435c7377
mov qword [rsp + 0x60], rax
movabs rax, 0x6f6973726556746e
mov qword [rsp + 0x68], rdx
movabs rdx, 0x726f6c7078455c6e
mov qword [rsp + 0x70], rax
movabs rax, 0x6c6c6568535c7265
mov qword [rsp + 0x78], rdx
movabs rdx, 0x737265646c6f4620
mov qword [rsp + 0x80], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x88], rdx
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov r8d, eax
xor eax, eax
test r8d, r8d
jne 0x1400a358b
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rbx
xor edx, edx
mov rcx, qword [rsp + 0x48]
mov dword [rsp + 0x44], 0x104
mov r9d, 2
lea r8, [0x14021a36a]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegGetValueA]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rbx
mov rbx, qword [rbp - 8]
leave
ret
Function at 0x1400a8e70
Capabilities:
Encode data using xor

Disassembly:
mov r9d, 0x1f
mov r8d, r8d
jmp fcn.140082400

Function at 0x1400aa340
Capabilities:
Encode data using xor

Disassembly:
mov r9d, 0x1f
mov r8d, r8d
jmp fcn.14007fd60
Function at 0x1400b26f0
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
and rsp, 0xfffffffffffffff0
test edx, edx
je 0x1400b283a
lea eax, [rdx - 1]
cmp eax, 2
jbe 0x1400b283c
mov r8d, edx
movdqa xmm4, xmmword [0x14010c180]
movdqa xmm3, xmmword [0x14010c190]
mov rax, rcx
shr r8d, 2
sub r8d, 1
shl r8, 4
lea r8, [rcx + r8 + 0x10]
nop dword [rax + rax]
movdqu xmm1, xmmword [rax]
add rax, 0x10
movdqa xmm0, xmm1
movdqa xmm2, xmm1
psrld xmm0, 8
psrld xmm2, 0x10
pslld xmm0, 0x10
pslld xmm2, 8
pand xmm2, xmm3
pand xmm0, xmm4
pxor xmm0, xmm2
movdqa xmm2, xmm1
pslld xmm2, 0x18
psrld xmm1, 0x18
pxor xmm1, xmm2
pxor xmm0, xmm1
movups xmmword [rax - 0x10], xmm0
cmp rax, r8
jne 0x1400b2738
mov eax, edx
and eax, 0xfffffffc
test dl, 3
je 0x1400b283a
sub edx, eax
cmp edx, 1
je 0x1400b280a
movq xmm2, qword [0x14010c180]
mov r8d, eax
movq xmm3, qword [0x14010c190]
lea r8, [rcx + r8*4]
movq xmm1, qword [r8]
movdqa xmm0, xmm1
psrld xmm0, 8
pslld xmm0, 0x10
pand xmm0, xmm2
movdqa xmm2, xmm1
psrld xmm2, 0x10
pslld xmm2, 8
pand xmm2, xmm3
pxor xmm0, xmm2
movdqa xmm2, xmm1
pslld xmm2, 0x18
psrld xmm1, 0x18
pxor xmm1, xmm2
pxor xmm0, xmm1
movq qword [r8], xmm0
mov r8d, edx
and r8d, 0xfffffffe
add eax, r8d
cmp edx, r8d
je 0x1400b283a
lea r8, [rcx + rax*4]
mov eax, dword [r8]
mov edx, eax
mov ecx, eax
mov r9d, eax
shr eax, 8
shl edx, 8
shl ecx, 0x18
and eax, 0xff00
shr r9d, 0x18
and edx, 0xff0000
xor ecx, r9d
xor edx, ecx
xor eax, edx
mov dword [r8], eax
leave
ret
xor eax, eax
jmp 0x1400b2795
Function at 0x1400b66e0
Capabilities:
Encode data using xor

Disassembly:
push r13
push r12
mov r12d, r8d
push rbp
mov ebp, r9d
push rdi
push rsi
mov rsi, rcx
push rbx
mov ebx, edx
sub rsp, 0x28
mov rdi, qword [rsp + 0x80]
test edx, edx
je 0x1400b6711
mov r8d, edx
xor edx, edx
shl r8, 2
call sub.msvcrt.dll_memset
test r12d, r12d
je 0x1400b675e
xor r13d, r13d
nop dword [rax]
mov rcx, rdi
call fcn.14006cb40
xor edx, edx
mov ecx, eax
shr ax, 1
movzx eax, ax
div ebx
mov edx, edx
lea rdx, [rsi + rdx*4]
mov eax, dword [rdx]
and eax, 1
lea r8d, [rax - 1]
xor eax, 1
add r13d, eax
lea eax, [rcx + rcx]
and eax, 2
sub eax, 1
and eax, r8d
add eax, dword [rdx]
mov dword [rdx], eax
cmp r12d, r13d
ja 0x1400b6720
test ebp, ebp
je 0x1400b67b4
xor r12d, r12d
nop dword [rax]
mov rcx, rdi
call fcn.14006cb40
xor edx, edx
mov ecx, eax
shr ax, 1
movzx eax, ax
div ebx
mov edx, edx
lea rdx, [rsi + rdx*4]
mov r8d, dword [rdx]
mov eax, r8d
sar eax, 1
or eax, r8d
and eax, 1
lea r9d, [rax - 1]
xor eax, 1
add r12d, eax
lea eax, [rcx*4]
and eax, 4
sub eax, 2
and eax, r9d
add eax, r8d
mov dword [rdx], eax
cmp ebp, r12d
ja 0x1400b6768
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x1400b77b0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
mov rdi, rdx
push rsi
mov rsi, rcx
push rbx
sub rsp, 0x18
mov eax, dword [rcx]
mov ecx, dword [rdi]
mov r15, qword [rsp + 0xa0]
mov r13d, dword [rsp + 0x88]
mov r10d, dword [rsp + 0x90]
mov edx, dword [rsp + 0x80]
imul r13d, eax
imul r10d, ecx
imul eax, dword [rsp + 0x98]
imul ecx, r15d
add r13d, r10d
imul r13d, edx
lea r12d, [rax + rcx]
lea rax, [r9*4 - 4]
imul r12d, edx
lea rbx, [rsi + rax]
add rax, rdi
mov qword [rsp], rbx
and r13d, 0x7fffffff
mov qword [rsp + 8], rax
and r12d, 0x7fffffff
test r9, r9
je 0x1400b7a18
xor edx, edx
xor r11d, r11d
xor r10d, r10d
nop dword [rax + rax]
mov eax, dword [rsi + r10*4]
mov ebp, dword [rdi + r10*4]
mov rcx, qword [rsp + 0x88]
mov r14, qword [rsp + 0x90]
mov ebx, dword [r8 + r10*4]
imul rcx, rax
imul r14, rbp
imul rax, qword [rsp + 0x98]
imul rbp, r15
add rcx, r14
add rcx, r11
mov r11, rbx
imul r11, r13
add rax, rbp
imul rbx, r12
add rdx, rax
add r11, rcx
add rdx, rbx
test r10, r10
je 0x1400b79f8
mov eax, r11d
sar r11, 0x1f
and eax, 0x7fffffff
mov dword [rsi + r10*4 - 4], eax
mov eax, edx
sar rdx, 0x1f
and eax, 0x7fffffff
mov dword [rdi + r10*4 - 4], eax
add r10, 1
cmp r9, r10
jne 0x1400b7848
mov rax, qword [rsp]
xor ebp, ebp
mov dword [rax], r11d
mov rax, qword [rsp + 8]
shr r11, 0x3f
mov r12, r11
mov r10d, r11d
mov dword [rax], edx
xor eax, eax
mov ecx, eax
nop dword [rax + rax]
mov eax, dword [rsi + rbp*4]
mov rbx, rbp
sub eax, ecx
sub eax, dword [r8 + rbp*4]
lea rbp, [rbp + 1]
shr eax, 0x1f
mov ecx, eax
cmp r9, rbp
jne 0x1400b78f0
mov r11d, 1
mov ebp, r12d
xor ecx, ecx
sub r11d, eax
neg ebp
mov eax, r10d
or r11d, r12d
shr ebp, 1
neg r11d
nop dword [rax]
mov r10d, dword [rsi + rcx*4]
mov r9, rcx
sub r10d, eax
mov eax, dword [r8 + rcx*4]
xor eax, ebp
and eax, r11d
sub r10d, eax
mov eax, r10d
and eax, 0x7fffffff
mov dword [rsi + rcx*4], eax
mov eax, r10d
add rcx, 1
shr eax, 0x1f
cmp rbx, r9
jne 0x1400b7928
mov rax, rdx
xor ecx, ecx
xor r11d, r11d
shr rax, 0x3f
mov edx, ecx
mov r10d, eax
nop dword [rax]
mov ecx, dword [rdi + r11*4]
sub ecx, edx
sub ecx, dword [r8 + r11*4]
mov edx, ecx
mov rcx, r11
add r11, 1
shr edx, 0x1f
cmp rcx, rbx
jne 0x1400b7970
mov ecx, edx
mov edx, 1
mov r11d, eax
sub edx, ecx
neg r11d
xor ecx, ecx
or edx, eax
shr r11d, 1
mov eax, r10d
neg edx
nop word cs:[rax + rax]
mov r10d, dword [rdi + rcx*4]
mov r9, rcx
sub r10d, eax
mov eax, dword [r8 + rcx*4]
xor eax, r11d
and eax, edx
sub r10d, eax
mov eax, r10d
and eax, 0x7fffffff
mov dword [rdi + rcx*4], eax
mov eax, r10d
add rcx, 1
shr eax, 0x1f
cmp r9, rbx
jne 0x1400b79b0
add rsp, 0x18
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
sar r11, 0x1f
sar rdx, 0x1f
cmp r9, 1
je 0x1400b78cd
mov r10d, 1
jmp 0x1400b7848
mov rax, qword [rsp + 8]
mov dword [rbx], 0
mov dword [rax], 0
jmp 0x1400b79e0
Function at 0x1400c5070
Capabilities:
Query or enumerate registry value

Disassembly:
push r14
mov r14, rdx
push r13
mov r13, rcx
push r12
push rsi
mov rsi, r9
push rbx
mov rbx, r8
sub rsp, 0x50
mov rax, qword [0x140222e00]
test rax, rax
jne 0x1400c50e5
mov rdx, rcx
lea r8, [rsp + 0x48]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov r12d, eax
test eax, eax
jne 0x1400c5178
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x28], rsi
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x48]
mov r12d, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400c5178
mov qword [rsp + 0x30], r9
mov r9d, 0xffff
mov qword [rsp + 0x28], r8
mov r8, rdx
mov rdx, rcx
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], 0
call rax
mov r12d, eax
cmp eax, 2
jne 0x1400c5178
mov qword [rsp + 0x30], rsi
mov r9d, 0x1ffff
mov r8, r14
mov rdx, r13
mov qword [rsp + 0x28], rbx
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], 0
call qword [0x140222e00]
mov r12d, eax
cmp eax, 2
jne 0x1400c5178
mov qword [rsp + 0x30], rsi
mov r9d, 0x2ffff
mov r8, r14
mov rdx, r13
mov qword [rsp + 0x28], rbx
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], 0
call qword [0x140222e00]
mov r12d, eax
add rsp, 0x50
mov eax, r12d
pop rbx
pop rsi
pop r12
pop r13
pop r14
ret
Function at 0x1400c55d0
Capabilities:
Print debug messages

Disassembly:
push r13
mov r13, r9
push r12
mov r12, rdx
push rsi
push rbx
mov ebx, r8d
sub rsp, 0x38
mov rax, qword [0x1402223a0]
mov rsi, qword [rsp + 0x80]
test rax, rax
je 0x1400c5603
add rsp, 0x38
pop rbx
pop rsi
pop r12
pop r13
jmp rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1400c56d0
mov qword [rsp + 0x20], 0
test r12, r12
je 0x1400c5657
test ebx, ebx
jle 0x1400c563c
lea rcx, [rsp + 0x20]
mov r9d, ebx
mov r8, r12
lea rdx, str._s:_d
call fcn.1400c55a0
jmp 0x1400c566f
test r12, r12
je 0x1400c5657
lea rcx, [rsp + 0x20]
mov r8, r12
lea rdx, [0x1400f53ea]
call fcn.1400c55a0
jmp 0x1400c566f
test ebx, ebx
jle 0x1400c568e
lea rcx, [rsp + 0x20]
mov r8d, ebx
lea rdx, str._d:
call fcn.1400c55a0
test eax, eax
jle 0x1400c568e
mov r12, qword [rsp + 0x20]
test r12, r12
je 0x1400c568e
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, r12
call sub.msvcrt.dll_free
lea rcx, [rsp + 0x28]
mov r8, rsi
mov rdx, r13
mov qword [rsp + 0x28], 0
call fcn.1400c3e00
test eax, eax
jle 0x1400c56d0
mov r12, qword [rsp + 0x28]
test r12, r12
je 0x1400c56d0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add rsp, 0x38
mov rcx, r12
pop rbx
pop rsi
pop r12
pop r13
jmp sub.msvcrt.dll_free
add rsp, 0x38
pop rbx
pop rsi
pop r12
pop r13
ret

Function at 0x1400c5c90
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x48
cmp qword [0x1402223a0], 0
je 0x1400c5cb3
mov qword [rsp + 0x20], rcx
lea r9, str.assert:__s_n
xor ecx, ecx
call fcn.1400c56e0
jmp 0x1400c5d1a
mov qword [rsp + 0x38], 0
test rdx, rdx
jne 0x1400c5cc8
lea rdx, [0x1400f5bb6]
mov dword [rsp + 0x20], r8d
lea r10, [rsp + 0x38]
mov r9, rdx
mov r8, rcx
lea rdx, str._r_nMDBX_ASSERTION:__s___s:_u
mov rcx, r10
call fcn.1400c55a0
test eax, eax
jle 0x1400c5cf3
cmp qword [rsp + 0x38], 0
jne 0x1400c5cff
lea rax, str._troubles_with_assertion_message_preparation_
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1400c5d1a
call qword [sym.imp.KERNEL32.dll_DebugBreak]
or ecx, 0xffffffff
add rsp, 0x48
jmp qword [sym.imp.KERNEL32.dll_FatalExit]

Function at 0x1400c5d30
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsFree]
test eax, eax
jne 0x1400c5d5b
mov r8d, 0x124e
lea rdx, str.thread_key_delete
lea rcx, str.TlsFree_key_
add rsp, 0x28
jmp fcn.1400c5c90
add rsp, 0x28
ret
Function at 0x180003310
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x180003338
xor eax, eax
lea r8, [0x180003230]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x38
ret

Function at 0x180004330
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
sub rax, 0x10000
mov rcx, rax
call fcn.180004550
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x180004437
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x180004394
mov rax, qword [0x18000f008]
cmp qword [rsp + 0x20], rax
ja 0x180004394
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x180004356
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x1800043c3
jmp 0x180004437
cmp dword [rsp + 0x50], 0x10000
jne 0x18000441a
cmp qword [rsp + 0x48], 0x10000
jb 0x18000441a
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180004408
mov rax, qword [rsp + 0x28]
jmp 0x180004439
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180004432
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.180004550
mov qword [rsp + 0x20], rax
jmp 0x180004356
xor eax, eax
add rsp, 0x68
ret

Function at 0x180004440
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.180004590
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x180004543
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x18000449b
mov rax, qword [0x18000f008]
cmp qword [rsp + 0x20], rax
ja 0x18000449b
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x18000445d
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x1800044ca
jmp 0x180004543
cmp dword [rsp + 0x50], 0x10000
jne 0x180004521
cmp qword [rsp + 0x48], 0x10000
jb 0x180004521
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18000450f
mov rax, qword [rsp + 0x28]
jmp 0x180004545
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x18000453e
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.180004590
mov qword [rsp + 0x20], rax
jmp 0x18000445d
xor eax, eax
add rsp, 0x68
ret
Function at 0x1800078f0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, ecx
mov ecx, dword [0x18000fbac]
mov ebx, edi
test ecx, ecx
je 0x180007a2b
mov rax, qword [0x18000fba0]
add rax, 0x20
nop
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x180007948
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180007920
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xffffffff
je 0x180007a2b
mov r8d, edi
lea rcx, [rsp + 0x20]
test esi, esi
mov edx, 0xffffffff
setne r8b
call fcn.180007c70
mov r8d, dword [0x18000fbac]
cmp ebx, r8d
jae 0x1800079b8
nop word [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x18000fba0]
movzx edx, byte [rcx + rax + 0x20]
shr edx, 1
and edx, 1
cmp edx, esi
je 0x1800079b1
mov edx, esi
mov ecx, ebx
call fcn.180007b60
mov edi, eax
test eax, eax
jne 0x1800079b8
mov r8d, dword [0x18000fbac]
inc ebx
cmp ebx, r8d
jb 0x180007980
cmp qword [rsp + 0x20], 0
je 0x180007a2b
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180007a17
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop dword [rax]
nop dword [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 0x180007a08
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 0x1800079e0
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x18000f580]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x48]
mov eax, edi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x180007b60
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 [0x18000fba0]
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 0x180007bc4
mov eax, 0xa
jmp 0x180007c53
test esi, esi
je 0x180007be6
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 0x180007c09
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x180007c09
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x180007c02
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x180007c09
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]
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 rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x180007c70
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 [0x18000f240]
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 sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180007d9a
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x180007d91
nop word [rax + rax]
cmp dword [rsp + 0x20], 0x10
jb 0x180007d74
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x180007d74
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x180007d74
mov rdx, qword [rbx]
test rdx, rdx
jne 0x180007d32
mov dword [rbx + 8], 0x80
mov r8d, 0x200
mov rcx, qword [0x18000f580]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x180007d91
jmp 0x180007d67
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x180007d67
mov rcx, qword [0x18000f580]
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 0x180007d91
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 sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x180007ce0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], rsi
je 0x180007df3
cmp dword [rbx + 0xc], esi
jbe 0x180007df3
nop dword [rax]
nop dword [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 0x180007dec
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.180008160
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rbx + 0xc]
jb 0x180007db0
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180009380
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 0x180008310
Capabilities:
Resume thread

Disassembly:
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rdi, rcx
je 0x18000837f
mov qword [rsp + 0x30], rbx
xor ebx, ebx
cmp dword [rcx + 0xc], ebx
jbe 0x180008368
mov qword [rsp + 0x38], rsi
mov rax, qword [rdi]
xor edx, edx
mov r8d, dword [rax + rbx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18000835c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [rdi + 0xc]
jb 0x180008330
mov rsi, qword [rsp + 0x38]
mov r8, qword [rdi]
xor edx, edx
mov rcx, qword [0x18000f580]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret