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

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rsi
push r14
sub rsp, 0x50
mov rbp, r8
mov rsi, rdx
mov r14, rcx
cmp rdx, r8
je 0x180093940
cmp qword [rdx + 0x28], 0xf
lea r8, [rdx + 0x10]
mov rax, qword [rcx + 8]
mov r10, qword [rcx + 0x18]
mov r9, qword [r8 + 0x10]
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rdi
lea rdi, [rcx + 8]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x80], rax
mov rax, qword [rdx + 8]
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x88], r10
jbe 0x18009379f
mov r8, qword [r8]
xor ecx, ecx
movabs rdx, 0xcbf29ce484222325
movabs r11, 0x100000001b3
test r9, r9
je 0x1800937d4
nop word [rax + rax]
movzx eax, byte [r8 + rcx]
inc rcx
xor rdx, rax
imul rdx, r11
cmp rcx, r9
jb 0x1800937c0
mov r15, qword [r14 + 0x30]
mov rcx, rdi
mov rbx, qword [rsi]
and r15, rdx
shl r15, 4
mov rdx, rsi
add r15, r10
mov r13, qword [r15]
mov r12, qword [r15 + 8]
call fcn.180081680
dec qword [rdi + 8]
cmp rsi, r12
je 0x180093824
mov r14, rbx
cmp rbx, rbp
je 0x18009383e
mov rdx, rbx
mov rcx, rdi
mov rbx, qword [rbx]
call fcn.180081680
dec qword [rdi + 8]
cmp r14, r12
jne 0x180093800
mov r14, qword [rsp + 0x70]
mov r12, qword [rsp + 0x80]
cmp r13, rsi
mov r13, qword [rsp + 0x78]
jne 0x180093857
mov qword [r15], r12
mov rax, r12
jmp 0x18009385a
cmp r13, rsi
jne 0x180093846
mov qword [r15], rbx
mov rax, qword [rsp + 0x78]
mov qword [rax], rbx
mov qword [rbx + 8], rax
jmp 0x180093927
mov rax, r13
mov qword [r15 + 8], rax
cmp rbx, rbp
je 0x18009391f
nop word [rax + rax]
cmp qword [rbx + 0x28], 0xf
lea r8, [rbx + 0x10]
mov r9, qword [r8 + 0x10]
mov rsi, rbx
jbe 0x180093885
mov r8, qword [r8]
xor edx, edx
movabs rcx, 0xcbf29ce484222325
test r9, r9
je 0x1800938b9
movabs r13, 0x100000001b3
movzx eax, byte [r8 + rdx]
inc rdx
xor rcx, rax
imul rcx, r13
cmp rdx, r9
jb 0x1800938a0
mov r13, qword [rsp + 0x78]
mov r15, qword [r14 + 0x30]
mov rdx, rbx
mov rbx, qword [rbx]
and r15, rcx
shl r15, 4
mov rcx, rdi
add r15, qword [rsp + 0x88]
mov r14, qword [r15 + 8]
call fcn.180081680
dec qword [rdi + 8]
cmp rsi, r14
je 0x180093906
mov rsi, rbx
cmp rbx, rbp
je 0x18009391c
mov rdx, rbx
mov rcx, rdi
mov rbx, qword [rbx]
call fcn.180081680
dec qword [rdi + 8]
cmp rsi, r14
jne 0x1800938e7
mov qword [r15], r12
mov qword [r15 + 8], r12
cmp rbx, rbp
je 0x18009391f
mov r14, qword [rsp + 0x70]
jmp 0x180093870
mov qword [r15], rbx
mov qword [r13], rbx
mov qword [rbx + 8], r13
mov r13, qword [rsp + 0x30]
mov r12, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov r15, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x50
pop r14
pop rsi
pop rbp
ret
Function at 0x180093ae0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x180093b60
mov rax, qword [rbx + 0x38]
mov rdx, qword [rbx + 8]
shr rax, 3
mov qword [rsp + 0x38], rdi
cmp rax, rcx
jbe 0x180093b20
mov r8, rdx
mov rcx, rbx
mov rdx, qword [rdx]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
jmp fcn.180093730
lea rcx, [rbx + 8]
call fcn.1800815e0
mov rax, qword [rbx + 8]
lea r8, [rsp + 0x30]
mov qword [rax], rax
mov rax, qword [rbx + 8]
mov qword [rax + 8], rax
mov qword [rbx + 0x10], 0
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x20]
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x30], rax
call fcn.180083180
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret

Function at 0x180093d50
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x180093d84
movabs r10, 0x100000001b3
nop
movzx ecx, byte [rdx + r9]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x180093d70
ret

Function at 0x180094590
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x180229ec0]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, rdx
mov rbx, rcx
mov ecx, 8
call fcn.1800cbf7c
test rax, rax
je 0x1800945c1
mov qword [rax], rdi
mov qword [rsp + 0x30], rax
lea rdi, [rbx + 8]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x18009b270]
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 0x18009460e
mov rax, rbx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1800cbe10
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov dword [rdi], 0
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
Function at 0x180094b00
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov r10, r8
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor esi, esi
cmp byte [r8 + 0xf], sil
je 0x180094b34
mov eax, esi
lea ecx, [rax + 0x55]
xor byte [r8 + rax], cl
inc rax
cmp rax, 0xe
jb 0x180094b20
mov byte [r8 + 0xf], sil
add r8, 0xe
lea r9, [rsp + 0x20]
mov rdx, r10
lea rcx, [rsp + 0x30]
call fcn.180012660
nop
mov r9, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0xf
jbe 0x180094b59
mov rbx, qword [rbx]
mov r8, rbx
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.180030bf0
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
movups xmm0, xmmword [rax]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdi + 0x10], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x180094bd3
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180094bce
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180094bce
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800cbd7c
mov rax, rdi
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x1800a5740
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x70
movdqa xmm0, xmmword [0x1801e1120]
xor edi, edi
movdqa xmm1, xmmword [0x1801e0eb0]
mov ecx, edi
movdqu xmmword [rbp - 0x30], xmm0
mov byte [rbp - 0x10], 1
movdqu xmmword [rbp - 0x20], xmm1
nop dword [rax]
nop dword [rax + rax]
lea eax, [rcx + 0x55]
xor byte [rbp + rcx - 0x30], al
inc rcx
cmp rcx, 0x1f
jb 0x1800a5780
xorps xmm0, xmm0
mov byte [rbp - 0x10], dil
mov rbx, 0xffffffffffffffff
mov qword [rbp - 0x40], rdi
movups xmmword [rbp - 0x50], xmm0
mov r8, rbx
mov qword [rbp - 0x38], rdi
lea rax, [rbp - 0x30]
inc r8
cmp byte [rax + r8], dil
jne 0x1800a57b1
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x50]
call fcn.18000d700
lea rdx, [rbp - 0x50]
lea rcx, [0x18022e4b0]
call fcn.1800bd0b0
movdqa xmm0, xmmword [0x1801e1120]
mov rcx, rdi
movdqu xmmword [rbp - 0x50], xmm0
mov dword [rbp - 0x40], 0x48061329
mov dword [rbp - 0x3c], 0x452f3f41
mov word [rbp - 0x38], 0x100
nop dword [rax + rax]
lea eax, [rcx + 0x55]
xor byte [rbp + rcx - 0x50], al
inc rcx
cmp rcx, 0x18
jb 0x1800a5800
xorps xmm0, xmm0
mov byte [rbp - 0x37], dil
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], rdi
lea rax, [rbp - 0x50]
mov qword [rbp - 0x18], rdi
mov r8, rbx
nop word [rax + rax]
inc r8
cmp byte [rax + r8], dil
jne 0x1800a5830
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x30]
call fcn.18000d700
lea rdx, [rbp - 0x30]
lea rcx, [0x18022e5d0]
call fcn.1800bd0b0
movdqa xmm0, xmmword [0x1801e1120]
mov rcx, rdi
movdqu xmmword [rbp - 0x50], xmm0
mov dword [rbp - 0x40], 0x61329
mov byte [rbp - 0x3c], 1
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx + 0x55]
xor byte [rbp + rcx - 0x50], al
inc rcx
cmp rcx, 0x13
jb 0x1800a5880
xorps xmm0, xmm0
mov byte [rbp - 0x3c], dil
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], rdi
lea rax, [rbp - 0x50]
mov qword [rbp - 0x18], rdi
mov r8, rbx
nop word [rax + rax]
inc r8
cmp byte [rax + r8], dil
jne 0x1800a58b0
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x30]
call fcn.18000d700
lea rdx, [rbp - 0x30]
lea rcx, [0x18022e6f0]
call fcn.1800bd0b0
movdqa xmm0, xmmword [0x1801e1130]
mov rcx, rdi
movdqu xmmword [rbp - 0x50], xmm0
mov dword [rbp - 0x40], 0xc0b0903
mov dword [rbp - 0x3c], 0x100180c
nop dword [rax]
nop dword [rax + rax]
lea eax, [rcx + 0x55]
xor byte [rbp + rcx - 0x50], al
inc rcx
cmp rcx, 0x16
jb 0x1800a5900
xorps xmm0, xmm0
mov byte [rbp - 0x39], dil
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], rdi
lea rax, [rbp - 0x50]
mov qword [rbp - 0x18], rdi
inc rbx
cmp byte [rax + rbx], dil
jne 0x1800a5927
mov r8, rbx
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x30]
call fcn.18000d700
lea rdx, [rbp - 0x30]
lea rcx, [0x18022e810]
call fcn.1800bd0b0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x1800b70f0
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push rsi
push r14
push r15
sub rsp, 0x40
xor r15d, r15d
mov rsi, rdx
cmp dword [rcx], 1
mov r14, rcx
jne 0x1800b7263
mov rax, qword [0x18022edb8]
mov qword [rsp + 0x60], rbx
test rax, rax
jne 0x1800b71f1
mov rax, qword gs:[0x60]
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x70], rdi
mov r8, qword [rax + 0x18]
mov rax, qword [r8 + 0x10]
mov rbp, qword [rax]
mov r11, rbp
nop dword [rax]
nop word [rax + rax]
mov r9, qword [r11 + 0x30]
movsxd rax, dword [r9 + 0x3c]
mov ebx, dword [rax + r9 + 0x88]
add rbx, r9
cmp rbx, r9
je 0x1800b71c8
mov r8d, dword [rbx + 0x18]
test r8d, r8d
je 0x1800b71c8
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r8d
mov edx, 0x3231e873
lea rax, [rdi + r8*4]
mov eax, dword [rax + r9]
add rax, r9
movzx ecx, byte [rax]
inc rax
test cl, cl
je 0x1800b71c3
nop dword [rax]
movsx ecx, cl
lea rax, [rax + 1]
xor ecx, edx
imul edx, ecx, 0x1000193
movzx ecx, byte [rax - 1]
test cl, cl
jne 0x1800b71a0
cmp edx, 0xbb668c8f
je 0x1800b7247
test r8d, r8d
jne 0x1800b7180
mov rax, qword [r11]
mov r11, rax
cmp rax, rbp
je 0x1800b71dd
cmp qword [rax + 0x30], r15
jne 0x1800b7150
mov rax, r15
mov rdi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x68]
mov qword [0x18022edb8], rax
movzx ecx, word [r14 + 4]
lea rbx, [0x18022de08]
mov r8, rbx
lea rdx, [r14 + 8]
mov r9d, reloc.WS2_32.dll_recv
call rax
xorps xmm0, xmm0
mov r8, 0xffffffffffffffff
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r15
inc r8
cmp byte [rbx + r8], r15b
jne 0x1800b7221
mov rdx, rbx
mov rcx, rsi
call fcn.18000d700
mov rbx, qword [rsp + 0x60]
mov rax, rsi
add rsp, 0x40
pop r15
pop r14
pop rsi
ret
mov ecx, dword [rbx + 0x24]
add rcx, r9
movzx edx, word [rcx + r8*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r9
mov eax, dword [rcx + rdx*4]
add rax, r9
jmp 0x1800b71e0
mov dword [rsp + 0x28], 0x363c3820
mov rcx, r15
mov dword [rsp + 0x2c], 0x352d36
mov byte [rsp + 0x30], 1
nop dword [rax + rax]
lea eax, [rcx + 0x55]
xor byte [rsp + rcx + 0x28], al
inc rcx
cmp rcx, 7
jb 0x1800b7280
xorps xmm0, xmm0
mov byte [rsp + 0x30], r15b
movups xmmword [rdx], xmm0
mov qword [rdx + 0x10], r15
lea rax, [rsp + 0x28]
mov qword [rdx + 0x18], r15
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rax + r8], r15b
jne 0x1800b72b0
lea rdx, [rsp + 0x28]
mov rcx, rsi
call fcn.18000d700
mov rax, rsi
add rsp, 0x40
pop r15
pop r14
pop rsi
ret
Function at 0x1800c1db0
Capabilities:
Access peb ldr_data
Encode data using xor
Get kernel32 base address
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x180229ec0]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], edx
mov rsi, rcx
mov rax, qword gs:[0x60]
movsxd rbp, r8d
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop word [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x1800c1e67
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x1800c1e67
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0xe5664598
lea rcx, [rdi + r9*4]
mov ecx, dword [rcx + r10]
add rcx, r10
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x1800c1e62
nop
movsx edx, dl
lea rcx, [rcx + 1]
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx - 1]
test dl, dl
jne 0x1800c1e40
cmp r8d, 0x3d34ad99
je 0x1800c1e6c
test r9d, r9d
jne 0x1800c1e20
mov rax, qword [rax]
jmp 0x1800c1df0
mov edx, dword [rbx + 0x24]
mov rcx, rsi
add rdx, r10
movzx r8d, word [rdx + r9*2]
mov edx, dword [rbx + 0x1c]
add rdx, r10
mov eax, dword [rdx + r8*4]
add rax, r10
call rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rbx + rbp]
mov qword [rsp + 0x20], 0
mov rcx, rax
lea r8, [rsp + 0x30]
mov r9d, 4
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1800cbe10
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800c9520
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push r14
push r15
sub rsp, 0x98
mov rax, qword [0x180229ec0]
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 0x1800c956f
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x18022f6c0]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x1800c95ad
cmp rsi, r14
jb 0x1800c95a5
cmp rsi, r15
jae 0x1800c95a5
cmp qword [rsi + 8], 0
jne 0x1800c9777
mov rsi, qword [rsi]
test rsi, rsi
jne 0x1800c9590
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 0x1800c9642
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 0x1800c9639
nop word [rax + rax]
mov r8d, Ordinal_50
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800c9639
cmp dword [rsp + 0x40], 0x10000
je 0x1800c96bb
mov rbx, qword [rsp + 0x28]
cmp rbx, rbp
jb 0x1800c9639
sub rbx, rbp
cmp rbx, r14
jae 0x1800c9600
test rsi, rsi
jne 0x1800c9720
cmp rdi, r15
ja 0x1800c975f
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 0x1800c975f
mov r8d, Ordinal_50
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800c975f
cmp dword [rsp + 0x40], 0x10000
je 0x1800c96f1
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 0x1800c9672
jmp 0x1800c975f
test rbx, rbx
je 0x1800c9639
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 0x1800c9720
cmp rbx, r14
jae 0x1800c95e0
jmp 0x1800c9642
test rdi, rdi
je 0x1800c975f
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 0x1800c9720
cmp rdi, r15
jbe 0x1800c9650
jmp 0x1800c975f
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 0x1800c9730
mov rax, qword [0x18022f6c0]
mov qword [rsi], rax
mov qword [0x18022f6c0], 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.1800cbe10
add rsp, 0x98
pop r15
pop r14
pop rdi
pop rsi
ret
Function at 0x1800c9fc0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x30
mov r8d, dword [0x18022f6bc]
mov esi, ecx
xor ecx, ecx
mov ebx, ecx
test r8d, r8d
je 0x1800ca007
mov rax, qword [0x18022f6b0]
add rax, 0x20
nop word [rax + rax]
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x1800ca014
inc ebx
add rax, 0x38
cmp ebx, r8d
jb 0x1800c9ff0
mov eax, ecx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
cmp ebx, 0xffffffff
je 0x1800ca007
test esi, esi
mov qword [rsp + 0x48], rdi
mov edx, 0xffffffff
setne cl
mov r8d, ecx
lea rcx, [rsp + 0x20]
call fcn.1800ca4d0
mov edi, eax
test eax, eax
jne 0x1800ca0fd
mov r9d, dword [0x18022f6bc]
cmp ebx, r9d
jae 0x1800ca08c
nop dword [rax + rax]
mov ecx, ebx
imul rdx, rcx, 0x38
mov rcx, qword [0x18022f6b0]
movzx r8d, byte [rdx + rcx + 0x20]
shr r8d, 1
and r8d, 1
cmp r8d, esi
je 0x1800ca085
mov edx, esi
mov ecx, ebx
call fcn.1800ca230
mov edi, eax
test eax, eax
jne 0x1800ca08c
mov r9d, dword [0x18022f6bc]
inc ebx
cmp ebx, r9d
jb 0x1800ca050
cmp qword [rsp + 0x20], 0
je 0x1800ca0fb
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x1800ca0e7
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
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 0x1800ca0d8
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 0x1800ca0b0
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x18022edd8]
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 0x1800ca230
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 [0x180229ec0]
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 [0x18022f6b0]
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 0x1800ca2a3
mov eax, 0xa
jmp 0x1800ca336
test esi, esi
je 0x1800ca2c5
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 0x1800ca2e8
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x1800ca2e8
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x1800ca2e1
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x1800ca2e8
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.1800cbe10
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1800ca360
Capabilities:
Enumerate threads

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x180229ec0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rcx
xor esi, esi
xor edx, edx
lea ecx, [rsi + 4]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x1800ca4ac
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], Ordinal_33
mov rcx, rax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x1800ca4a3
mov esi, 1
mov qword [rsp + 0x68], rbx
cmp dword [rsp + 0x20], 0x10
jb 0x1800ca45a
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x1800ca45a
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x1800ca45a
mov rdx, qword [rdi]
test rdx, rdx
jne 0x1800ca41b
mov dword [rdi + 8], 0x80
mov r8d, 0x200
mov rcx, qword [0x18022edd8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rdi], rax
mov rdx, rax
test rax, rax
je 0x1800ca482
lea rbx, [rdi + 0xc]
jmp 0x1800ca44f
mov eax, dword [rdi + 8]
lea rbx, [rdi + 0xc]
cmp dword [rbx], eax
jb 0x1800ca44f
add eax, eax
mov r8, rdx
mov r9d, eax
xor edx, edx
mov dword [rdi + 8], eax
mov rcx, qword [0x18022edd8]
shl r9, 2
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x1800ca482
mov qword [rdi], rax
mov ecx, dword [rbx]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], Ordinal_33
mov rcx, rbp
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x1800ca3c1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1800ca49e
mov r8, qword [rdi]
xor esi, esi
test r8, r8
je 0x1800ca49e
mov rcx, qword [0x18022edd8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rdi], rsi
mov rbx, qword [rsp + 0x68]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1800cbe10
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x1800ca4d0
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov ebp, r8d
mov qword [rcx], 0
mov r14d, edx
mov qword [rcx + 8], 0
mov rdi, rcx
call fcn.1800ca360
test eax, eax
jne 0x1800ca517
mov eax, 9
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rdi], 0
je 0x1800ca58e
mov qword [rsp + 0x30], rbx
xor ebx, ebx
cmp dword [rdi + 0xc], ebx
jbe 0x1800ca576
mov qword [rsp + 0x38], rsi
nop
mov r8, qword [rdi]
xor edx, edx
mov r8d, dword [r8 + rbx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x1800ca56a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rsi
call fcn.1800ca8f0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [rdi + 0xc]
jb 0x1800ca530
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rbp, qword [rsp + 0x40]
xor eax, eax
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x1800caaa0
Capabilities:
Resume thread

Disassembly:
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rdi, rcx
je 0x1800cab0f
mov qword [rsp + 0x30], rbx
xor ebx, ebx
cmp dword [rcx + 0xc], ebx
jbe 0x1800caaf8
mov qword [rsp + 0x38], rsi
mov r8, qword [rdi]
xor edx, edx
mov r8d, dword [r8 + rbx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x1800caaec
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 0x1800caac0
mov rsi, qword [rsp + 0x38]
mov r8, qword [rdi]
xor edx, edx
mov rcx, qword [0x18022edd8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret