joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180097490
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 0x1800976a0
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 0x1800974ff
mov r8, qword [r8]
xor ecx, ecx
movabs rdx, 0xcbf29ce484222325
movabs r11, 0x100000001b3
test r9, r9
je 0x180097534
nop word [rax + rax]
movzx eax, byte [r8 + rcx]
inc rcx
xor rdx, rax
imul rdx, r11
cmp rcx, r9
jb 0x180097520
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.1800853e0
dec qword [rdi + 8]
cmp rsi, r12
je 0x180097584
mov r14, rbx
cmp rbx, rbp
je 0x18009759e
mov rdx, rbx
mov rcx, rdi
mov rbx, qword [rbx]
call fcn.1800853e0
dec qword [rdi + 8]
cmp r14, r12
jne 0x180097560
mov r14, qword [rsp + 0x70]
mov r12, qword [rsp + 0x80]
cmp r13, rsi
mov r13, qword [rsp + 0x78]
jne 0x1800975b7
mov qword [r15], r12
mov rax, r12
jmp 0x1800975ba
cmp r13, rsi
jne 0x1800975a6
mov qword [r15], rbx
mov rax, qword [rsp + 0x78]
mov qword [rax], rbx
mov qword [rbx + 8], rax
jmp 0x180097687
mov rax, r13
mov qword [r15 + 8], rax
cmp rbx, rbp
je 0x18009767f
nop word [rax + rax]
cmp qword [rbx + 0x28], 0xf
lea r8, [rbx + 0x10]
mov r9, qword [r8 + 0x10]
mov rsi, rbx
jbe 0x1800975e5
mov r8, qword [r8]
xor edx, edx
movabs rcx, 0xcbf29ce484222325
test r9, r9
je 0x180097619
movabs r13, 0x100000001b3
movzx eax, byte [r8 + rdx]
inc rdx
xor rcx, rax
imul rcx, r13
cmp rdx, r9
jb 0x180097600
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.1800853e0
dec qword [rdi + 8]
cmp rsi, r14
je 0x180097666
mov rsi, rbx
cmp rbx, rbp
je 0x18009767c
mov rdx, rbx
mov rcx, rdi
mov rbx, qword [rbx]
call fcn.1800853e0
dec qword [rdi + 8]
cmp rsi, r14
jne 0x180097647
mov qword [r15], r12
mov qword [r15 + 8], r12
cmp rbx, rbp
je 0x18009767f
mov r14, qword [rsp + 0x70]
jmp 0x1800975d0
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 0x180097840
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 0x1800978c0
mov rax, qword [rbx + 0x38]
mov rdx, qword [rbx + 8]
shr rax, 3
mov qword [rsp + 0x38], rdi
cmp rax, rcx
jbe 0x180097880
mov r8, rdx
mov rcx, rbx
mov rdx, qword [rdx]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
jmp fcn.180097490
lea rcx, [rbx + 8]
call fcn.180085340
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.180086ee0
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret

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

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

Function at 0x1800982f0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x180230100]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, rdx
mov rbx, rcx
mov ecx, 8
call fcn.1800d0a4c
test rax, rax
je 0x180098321
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, [0x18009f130]
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 0x18009836e
mov rax, rbx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1800d08e0
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 0x180098860
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 0x180098894
mov eax, esi
lea ecx, [rax - 0x6b]
xor byte [r8 + rax], cl
inc rax
cmp rax, 0xe
jb 0x180098880
mov byte [r8 + 0xf], sil
add r8, 0xe
lea r9, [rsp + 0x20]
mov rdx, r10
lea rcx, [rsp + 0x30]
call fcn.180012740
nop
mov r9, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0xf
jbe 0x1800988b9
mov rbx, qword [rbx]
mov r8, rbx
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.1800347e0
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 0x180098933
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18009892e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18009892e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800d084c
mov rax, rdi
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x1800a9600
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 [0x1801e6a70]
xor edi, edi
movdqa xmm1, xmmword [0x1801e6810]
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 - 0x6b]
xor byte [rbp + rcx - 0x30], al
inc rcx
cmp rcx, 0x1f
jb 0x1800a9640
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 0x1800a9671
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x50]
call fcn.18000d780
lea rdx, [rbp - 0x50]
lea rcx, [0x180234620]
call fcn.1800c1ac0
movdqa xmm0, xmmword [0x1801e6a70]
mov rcx, rdi
movdqu xmmword [rbp - 0x50], xmm0
mov dword [rbp - 0x40], 0x88c6d3e9
mov dword [rbp - 0x3c], 0x85efff81
mov word [rbp - 0x38], 0x100
nop dword [rax + rax]
lea eax, [rcx - 0x6b]
xor byte [rbp + rcx - 0x50], al
inc rcx
cmp rcx, 0x18
jb 0x1800a96c0
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 0x1800a96f0
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x30]
call fcn.18000d780
lea rdx, [rbp - 0x30]
lea rcx, [0x180234740]
call fcn.1800c1ac0
movdqa xmm0, xmmword [0x1801e6a70]
mov rcx, rdi
movdqu xmmword [rbp - 0x50], xmm0
mov dword [rbp - 0x40], 0xc6d3e9
mov byte [rbp - 0x3c], 1
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx - 0x6b]
xor byte [rbp + rcx - 0x50], al
inc rcx
cmp rcx, 0x13
jb 0x1800a9740
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 0x1800a9770
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x30]
call fcn.18000d780
lea rdx, [rbp - 0x30]
lea rcx, [0x180234860]
call fcn.1800c1ac0
movdqa xmm0, xmmword [0x1801e6a80]
mov rcx, rdi
movdqu xmmword [rbp - 0x50], xmm0
mov dword [rbp - 0x40], 0xcccbc9c3
mov dword [rbp - 0x3c], 0x100d8cc
nop dword [rax]
nop dword [rax + rax]
lea eax, [rcx - 0x6b]
xor byte [rbp + rcx - 0x50], al
inc rcx
cmp rcx, 0x16
jb 0x1800a97c0
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 0x1800a97e7
mov r8, rbx
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x30]
call fcn.18000d780
lea rdx, [rbp - 0x30]
lea rcx, [0x180234980]
call fcn.1800c1ac0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x1800bbb00
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 0x1800bbc73
mov rax, qword [0x180234f28]
mov qword [rsp + 0x60], rbx
test rax, rax
jne 0x1800bbc01
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 0x1800bbbd8
mov r8d, dword [rbx + 0x18]
test r8d, r8d
je 0x1800bbbd8
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r8d
mov edx, 0xda91f0cb
lea rax, [rdi + r8*4]
mov eax, dword [rax + r9]
add rax, r9
movzx ecx, byte [rax]
inc rax
test cl, cl
je 0x1800bbbd3
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 0x1800bbbb0
cmp edx, 0x52210667
je 0x1800bbc57
test r8d, r8d
jne 0x1800bbb90
mov rax, qword [r11]
mov r11, rax
cmp rax, rbp
je 0x1800bbbed
cmp qword [rax + 0x30], r15
jne 0x1800bbb60
mov rax, r15
mov rdi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x68]
mov qword [0x180234f28], rax
movzx ecx, word [r14 + 4]
lea rbx, [0x180233f80]
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 0x1800bbc31
mov rdx, rbx
mov rcx, rsi
call fcn.18000d780
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 0x1800bbbf0
mov dword [rsp + 0x28], 0xf6fcf8e0
mov rcx, r15
mov dword [rsp + 0x2c], 0xf5edf6
mov byte [rsp + 0x30], 1
nop dword [rax + rax]
lea eax, [rcx - 0x6b]
xor byte [rsp + rcx + 0x28], al
inc rcx
cmp rcx, 7
jb 0x1800bbc90
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 0x1800bbcc0
lea rdx, [rsp + 0x28]
mov rcx, rsi
call fcn.18000d780
mov rax, rsi
add rsp, 0x40
pop r15
pop r14
pop rsi
ret
Function at 0x1800c6880
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 [0x180230100]
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 0x1800c6937
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x1800c6937
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0xd0a8162b
lea rcx, [rdi + r9*4]
mov ecx, dword [rcx + r10]
add rcx, r10
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x1800c6932
nop
movsx edx, dl
lea rcx, [rcx + 1]
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx - 1]
test dl, dl
jne 0x1800c6910
cmp r8d, 0x1ac5710e
je 0x1800c693c
test r9d, r9d
jne 0x1800c68f0
mov rax, qword [rax]
jmp 0x1800c68c0
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.1800d08e0
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800cdff0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push r14
push r15
sub rsp, 0x98
mov rax, qword [0x180230100]
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 0x1800ce03f
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x180235830]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x1800ce07d
cmp rsi, r14
jb 0x1800ce075
cmp rsi, r15
jae 0x1800ce075
cmp qword [rsi + 8], 0
jne 0x1800ce247
mov rsi, qword [rsi]
test rsi, rsi
jne 0x1800ce060
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 0x1800ce112
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 0x1800ce109
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 0x1800ce109
cmp dword [rsp + 0x40], 0x10000
je 0x1800ce18b
mov rbx, qword [rsp + 0x28]
cmp rbx, rbp
jb 0x1800ce109
sub rbx, rbp
cmp rbx, r14
jae 0x1800ce0d0
test rsi, rsi
jne 0x1800ce1f0
cmp rdi, r15
ja 0x1800ce22f
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 0x1800ce22f
mov r8d, Ordinal_50
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800ce22f
cmp dword [rsp + 0x40], 0x10000
je 0x1800ce1c1
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 0x1800ce142
jmp 0x1800ce22f
test rbx, rbx
je 0x1800ce109
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 0x1800ce1f0
cmp rbx, r14
jae 0x1800ce0b0
jmp 0x1800ce112
test rdi, rdi
je 0x1800ce22f
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 0x1800ce1f0
cmp rdi, r15
jbe 0x1800ce120
jmp 0x1800ce22f
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 0x1800ce200
mov rax, qword [0x180235830]
mov qword [rsi], rax
mov qword [0x180235830], 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.1800d08e0
add rsp, 0x98
pop r15
pop r14
pop rdi
pop rsi
ret
Function at 0x1800cea90
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x30
mov r8d, dword [0x18023582c]
mov esi, ecx
xor ecx, ecx
mov ebx, ecx
test r8d, r8d
je 0x1800cead7
mov rax, qword [0x180235820]
add rax, 0x20
nop word [rax + rax]
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x1800ceae4
inc ebx
add rax, 0x38
cmp ebx, r8d
jb 0x1800ceac0
mov eax, ecx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
cmp ebx, 0xffffffff
je 0x1800cead7
test esi, esi
mov qword [rsp + 0x48], rdi
mov edx, 0xffffffff
setne cl
mov r8d, ecx
lea rcx, [rsp + 0x20]
call fcn.1800cefa0
mov edi, eax
test eax, eax
jne 0x1800cebcd
mov r9d, dword [0x18023582c]
cmp ebx, r9d
jae 0x1800ceb5c
nop dword [rax + rax]
mov ecx, ebx
imul rdx, rcx, 0x38
mov rcx, qword [0x180235820]
movzx r8d, byte [rdx + rcx + 0x20]
shr r8d, 1
and r8d, 1
cmp r8d, esi
je 0x1800ceb55
mov edx, esi
mov ecx, ebx
call fcn.1800ced00
mov edi, eax
test eax, eax
jne 0x1800ceb5c
mov r9d, dword [0x18023582c]
inc ebx
cmp ebx, r9d
jb 0x1800ceb20
cmp qword [rsp + 0x20], 0
je 0x1800cebcb
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x1800cebb7
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 0x1800ceba8
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 0x1800ceb80
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x180234f48]
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 0x1800ced00
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 [0x180230100]
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 [0x180235820]
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 0x1800ced73
mov eax, 0xa
jmp 0x1800cee06
test esi, esi
je 0x1800ced95
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 0x1800cedb8
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x1800cedb8
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x1800cedb1
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x1800cedb8
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.1800d08e0
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1800cee30
Capabilities:
Enumerate threads

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x180230100]
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 0x1800cef7c
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], Ordinal_33
mov rcx, rax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x1800cef73
mov esi, 1
mov qword [rsp + 0x68], rbx
cmp dword [rsp + 0x20], 0x10
jb 0x1800cef2a
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x1800cef2a
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x1800cef2a
mov rdx, qword [rdi]
test rdx, rdx
jne 0x1800ceeeb
mov dword [rdi + 8], 0x80
mov r8d, 0x200
mov rcx, qword [0x180234f48]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rdi], rax
mov rdx, rax
test rax, rax
je 0x1800cef52
lea rbx, [rdi + 0xc]
jmp 0x1800cef1f
mov eax, dword [rdi + 8]
lea rbx, [rdi + 0xc]
cmp dword [rbx], eax
jb 0x1800cef1f
add eax, eax
mov r8, rdx
mov r9d, eax
xor edx, edx
mov dword [rdi + 8], eax
mov rcx, qword [0x180234f48]
shl r9, 2
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x1800cef52
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 0x1800cee91
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1800cef6e
mov r8, qword [rdi]
xor esi, esi
test r8, r8
je 0x1800cef6e
mov rcx, qword [0x180234f48]
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.1800d08e0
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x1800cefa0
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.1800cee30
test eax, eax
jne 0x1800cefe7
mov eax, 9
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rdi], 0
je 0x1800cf05e
mov qword [rsp + 0x30], rbx
xor ebx, ebx
cmp dword [rdi + 0xc], ebx
jbe 0x1800cf046
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 0x1800cf03a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rsi
call fcn.1800cf3c0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [rdi + 0xc]
jb 0x1800cf000
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 0x1800cf570
Capabilities:
Resume thread

Disassembly:
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rdi, rcx
je 0x1800cf5df
mov qword [rsp + 0x30], rbx
xor ebx, ebx
cmp dword [rcx + 0xc], ebx
jbe 0x1800cf5c8
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 0x1800cf5bc
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 0x1800cf590
mov rsi, qword [rsp + 0x38]
mov r8, qword [rdi]
xor edx, edx
mov rcx, qword [0x180234f48]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret