joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800ab640
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x180106040]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rsi, r8
mov r14, rdx
mov rdi, rcx
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x28], xmm1
xor ebx, ebx
mov qword [rsp + 0x38], rbx
nop word [rax + rax]
mov r9d, ebx
mov r8, qword [0x1801d4b48]
mov rdx, qword [rdi]
mov rcx, rsi
call fcn.18009a550
movss dword [rsp + 0x20], xmm0
mov rdx, qword [rsp + 0x30]
cmp rdx, qword [rsp + 0x38]
je 0x1800ab6b3
movss dword [rdx], xmm0
add qword [rsp + 0x30], 4
jmp 0x1800ab6c2
lea r8, [rsp + 0x20]
lea rcx, [rsp + 0x28]
call fcn.1800ab7a0
inc ebx
cmp ebx, 0x10
jl 0x1800ab680
mov rcx, qword [rsp + 0x28]
mov eax, dword [rcx]
mov dword [r14], eax
mov eax, dword [rcx + 4]
mov dword [r14 + 4], eax
mov eax, dword [rcx + 8]
mov dword [r14 + 8], eax
mov eax, dword [rcx + 0xc]
mov dword [r14 + 0xc], eax
mov eax, dword [rcx + 0x10]
mov dword [r14 + 0x10], eax
mov eax, dword [rcx + 0x14]
mov dword [r14 + 0x14], eax
mov eax, dword [rcx + 0x18]
mov dword [r14 + 0x18], eax
mov eax, dword [rcx + 0x1c]
mov dword [r14 + 0x1c], eax
mov eax, dword [rcx + 0x20]
mov dword [r14 + 0x20], eax
mov eax, dword [rcx + 0x24]
mov dword [r14 + 0x24], eax
mov eax, dword [rcx + 0x28]
mov dword [r14 + 0x28], eax
mov eax, dword [rcx + 0x2c]
mov dword [r14 + 0x2c], eax
mov eax, dword [rcx + 0x30]
mov dword [r14 + 0x30], eax
mov eax, dword [rcx + 0x34]
mov dword [r14 + 0x34], eax
mov eax, dword [rcx + 0x38]
mov dword [r14 + 0x38], eax
mov eax, dword [rcx + 0x3c]
mov dword [r14 + 0x3c], eax
mov rdx, qword [rsp + 0x38]
sub rdx, rcx
and rdx, 0xfffffffffffffffc
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800ab770
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800ab770
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800cacbc
mov rax, r14
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1800caa50
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
Function at 0x1800b1c40
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x1800b1c61
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x1800b1c8e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1800b1c90
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1800b1ce9
test ecx, ecx
jle 0x1800b1cc9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x1800b1ce9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1800b1ce9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
Function at 0x1800b1d10
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x1800b1d32
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x1800b1d41
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1800b1d64
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1800b1d66
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1800b1da2
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x1800b1e3e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1800b1ddd
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x1800b1e1e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x1800b1e3e
cmp rbx, rax
ja 0x1800b1df0
test rbx, rbx
je 0x1800b1e3e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
pop rcx
cmp eax, dword [rsi]
add byte [rsi + rbx*2 + 0x3b60000f], bl
invalid
cmp eax, dword [rsi]
Function at 0x1800b2270
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x180106040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1800b229d
xor eax, eax
jmp 0x1800b2409
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1800b22d7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1800b22d7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x1800b2409
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1800b23fc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1800b231a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x1800b2345
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1800b2401
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1800b23b4
sub eax, 1
je 0x1800b23b4
cmp eax, 2
jne 0x1800b23fc
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1800b2401
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1800b23e2
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x1800b23fc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1800b2401
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1800caa50
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1800b27c0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x180106040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1800b2893
cmp byte [rcx + 0x71], 0
je 0x1800b2893
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1800b288f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1800b2854
sub eax, 1
je 0x1800b2858
cmp eax, 2
jne 0x1800b288f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1800caa50
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1800b2886
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x1800b288f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1800b283c
xor al, al
jmp 0x1800b283c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1800caa50
add rsp, 0x60
pop rbx
ret
Function at 0x1800bdc00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [rcx + 0x10]
mov r10d, ecx
and r10d, 7
je 0x1800bdc34
cmp ecx, r10d
jge 0x1800bdc22
mov rcx, rbx
call fcn.1800bd3f0
mov eax, dword [rbx + 0x14]
mov ecx, r10d
shr eax, cl
sub dword [rbx + 0x10], r10d
mov ecx, dword [rbx + 0x10]
mov dword [rbx + 0x14], eax
xor r8d, r8d
mov eax, ecx
test ecx, ecx
jle 0x1800bdc6e
mov ecx, dword [rbx + 0x14]
lea rdx, [rsp + 0x30]
movzx r9d, cl
nop dword [rax]
shr ecx, 8
inc r8d
mov byte [rdx], r9b
lea rdx, [rdx + 1]
sub eax, 8
mov dword [rbx + 0x14], ecx
movzx r9d, cl
test eax, eax
jg 0x1800bdc50
mov dword [rbx + 0x10], eax
test eax, eax
jns 0x1800bdc9d
mov edx, dword [0x1801d4634]
mov rax, qword gs:[0x58]
mov ecx, 0x28
mov rax, qword [rax + rdx*8]
lea rdx, str.zlib_corrupt
mov qword [rcx + rax], rdx
xor eax, eax
add rsp, 0x20
pop rbx
ret
movsxd rcx, r8d
cmp rcx, 4
jge 0x1800bdccf
mov r8, qword [rbx + 8]
mov rax, qword [rbx]
nop dword [rax]
cmp rax, r8
jb 0x1800bdcb9
xor dl, dl
jmp 0x1800bdcc2
movzx edx, byte [rax]
inc rax
mov qword [rbx], rax
mov byte [rsp + rcx + 0x30], dl
inc rcx
cmp rcx, 4
jl 0x1800bdcb0
movzx eax, byte [rsp + 0x30]
movzx r8d, byte [rsp + 0x31]
movzx ecx, byte [rsp + 0x33]
shl r8d, 8
add r8d, eax
shl ecx, 8
movzx eax, byte [rsp + 0x32]
add ecx, eax
mov eax, r8d
xor eax, 0xffff
cmp ecx, eax
jne 0x1800bdc72
mov rcx, qword [rbx]
mov qword [rsp + 0x38], rdi
mov edi, r8d
add rcx, rdi
cmp rcx, qword [rbx + 8]
jbe 0x1800bdd44
mov edx, dword [0x1801d4634]
mov rax, qword gs:[0x58]
mov ecx, 0x28
mov rax, qword [rax + rdx*8]
lea rdx, str.read_past_buffer
mov qword [rcx + rax], rdx
mov rdi, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rdx, qword [rbx + 0x18]
lea rax, [r8 + rdx]
cmp rax, qword [rbx + 0x28]
jbe 0x1800bdd5e
mov rcx, rbx
call fcn.1800bd530
test eax, eax
je 0x1800bdd37
mov rdx, qword [rbx]
mov r8, rdi
mov rcx, qword [rbx + 0x18]
call sub.VCRUNTIME140.dll_memcpy
add qword [rbx], rdi
mov eax, 1
add qword [rbx + 0x18], rdi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
Function at 0x1800c7bc0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x50
lea rdx, str.Build_BETA___2
lea rcx, [0x1801cc458]
call fcn.18007a020
call fcn.1800b56a0
call fcn.180047400
call fcn.1800c8fc0
call fcn.1800b4c60
call fcn.1800b3580
call fcn.1800c7d40
cmp dword [0x1801cc364], 7
je 0x1800c7c07
call fcn.1800c7ad0
jmp 0x1800c7c26
xor eax, eax
lea r8, [0x1800c7750]
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]
call fcn.1800552e0
mov rcx, rax
call fcn.180055340
mov byte [0x1801d5a48], 1
call fcn.180073a60
mov rcx, rax
call fcn.180073b00
call fcn.180063a60
lea rdx, str.Press_INSERT_to_open_Gui
mov rbx, rax
lea rcx, [rsp + 0x30]
call fcn.180041d70
mov r8d, 3
mov rdx, rax
mov rcx, rbx
call fcn.180063b60
cmp byte [0x1801d5a48], 0
je 0x1800c7d31
mov dword [rsp + 0x60], 1
cmp dword [0x1801cc364], 7
jne 0x1800c7cf0
call fcn.1800c9e80
test al, al
jne 0x1800c7cf0
call fcn.1800c9e50
mov rbx, rax
call fcn.1800c9e30
mov edx, dword [rax]
cmp edx, dword [0x1801d52d4]
jne 0x1800c7cc1
cmp byte [0x1801d5220], 0
sete cl
mov byte [0x1801d5220], cl
jmp 0x1800c7cc8
movzx ecx, byte [0x1801d5220]
cmp edx, 0x1b
jne 0x1800c7cd8
test cl, cl
je 0x1800c7cd8
mov byte [0x1801d5220], 0
call fcn.18009a9c0
mov edx, dword [rbx]
mov rcx, rax
call fcn.18009ab40
call fcn.1800c9e80
test al, al
je 0x1800c7c98
call fcn.18004cd90
lea rcx, [rsp + 0x68]
mov r8, rax
call fcn.1800b6370
mov rdx, rax
mov rcx, r8
call fcn.1800c9e90
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x70]
call fcn.18007d520
mov rcx, rax
call fcn.18007d530
cmp byte [0x1801d5a48], 0
jne 0x1800c7c86
mov rcx, qword [0x1801d5a58]
call fcn.1800ca270
int3
Function at 0x1800ca290
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
cmp edx, 1
jne 0x1800ca2e3
mov qword [0x1801d5a58], rcx
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
xor eax, eax
lea r8, [0x1800ca260]
mov qword [rsp + 0x28], rax
mov r9, rbx
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x1800ca2d8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x30
pop rbx
ret
test edx, edx
jne 0x1800ca2d8
call fcn.1800ca270
int3

Function at 0x1800cbc60
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.1800cbeb0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x1800cbd7a
mov rax, qword [0x180106090]
cmp qword [rsp + 0x20], rax
jb 0x1800cbcc4
mov rax, qword [0x180106098]
cmp qword [rsp + 0x20], rax
ja 0x1800cbcc4
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x1800cbc86
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 sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x1800cbcf5
jmp 0x1800cbd7a
cmp dword [rsp + 0x50], 0x10000
jne 0x1800cbd5d
cmp qword [rsp + 0x48], 0x10000
jb 0x1800cbd5d
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1800cbd3b
mov rax, qword [rsp + 0x28]
jmp 0x1800cbd7c
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1800cbd4b
xor eax, eax
jmp 0x1800cbd7c
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x1800cbd75
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.1800cbeb0
mov qword [rsp + 0x20], rax
jmp 0x1800cbc86
xor eax, eax
add rsp, 0x68
ret
Function at 0x1800cbd90
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.1800cbef0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x1800cbea6
mov rax, qword [0x180106090]
cmp qword [rsp + 0x20], rax
jb 0x1800cbdeb
mov rax, qword [0x180106098]
cmp qword [rsp + 0x20], rax
ja 0x1800cbdeb
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x1800cbdad
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 sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x1800cbe1c
jmp 0x1800cbea6
cmp dword [rsp + 0x50], 0x10000
jne 0x1800cbe84
cmp qword [rsp + 0x48], 0x10000
jb 0x1800cbe84
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1800cbe62
mov rax, qword [rsp + 0x28]
jmp 0x1800cbea8
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1800cbe72
xor eax, eax
jmp 0x1800cbea8
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x1800cbea1
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.1800cbef0
mov qword [rsp + 0x20], rax
jmp 0x1800cbdad
xor eax, eax
add rsp, 0x68
ret
Function at 0x1800cbf40
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.1800cc4d0
mov qword [rsp + 0x28], 0
cmp qword [0x1801d4658], 0
jne 0x1800cbf88
cmp qword [0x1801d4650], 0
je 0x1800cbf88
mov rax, qword [0x1801d4650]
mov qword [0x1801d4658], rax
cmp qword [0x1801d4658], 0
je 0x1800cc02e
mov rax, qword [0x1801d4658]
cmp qword [rax + 0x10], 0
je 0x1800cc02e
mov rax, qword [0x1801d4658]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x1800cc02e
mov rax, qword [0x1801d4658]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x1800cc02e
mov rax, qword [0x1801d4658]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x1800cbff4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x1800cbffb
xor eax, eax
jmp 0x1800cc1a5
mov rax, qword [0x1801d4658]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rsp + 0x28]
jmp 0x1800cc1a5
mov rax, qword [0x1801d4650]
mov qword [0x1801d4658], rax
jmp 0x1800cc050
mov rax, qword [0x1801d4658]
mov rax, qword [rax + 8]
mov qword [0x1801d4658], rax
cmp qword [0x1801d4658], 0
je 0x1800cc09d
cmp qword [0x1801d4658], 0
je 0x1800cc09b
mov rax, qword [0x1801d4658]
cmp qword [rax + 0x10], 0
je 0x1800cc09b
mov rax, qword [0x1801d4658]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x1800cc09b
mov rax, qword [0x1801d4658]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x1800cc09b
jmp 0x1800cbfcc
jmp 0x1800cc03e
mov rax, qword [rsp + 0x60]
and rax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.1800cc1b0
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x1800cc1a3
mov rax, qword [rsp + 0x48]
mov qword [0x1801d4658], rax
mov rax, qword [0x1801d4658]
mov dword [rax], 0x52727464
mov rax, qword [0x1801d4658]
mov qword [rax + 0x10], 0
mov rax, qword [0x1801d4658]
mov rcx, qword [0x1801d4650]
mov qword [rax + 8], rcx
mov rax, qword [0x1801d4658]
mov qword [0x1801d4650], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x1801d4658]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x1800cc154
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x1800cc18e
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x1800cc14a
mov rax, qword [0x1801d4658]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x1800cbfcc
xor eax, eax
add rsp, 0x58
ret
Function at 0x1800ccec0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov r8d, 0x30
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
call sub.KERNEL32.dll_VirtualQuery
nop
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1800ccf07
xor al, al
jmp 0x1800ccfa9
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x4550
je 0x1800ccf31
xor al, al
jmp 0x1800ccfa9
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x88], rax
jb 0x1800ccfa1
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov ecx, 8
imul rcx, rcx, 0xc
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rdx + rcx + 0x8c]
add rax, rcx
cmp qword [rsp + 0x88], rax
jae 0x1800ccfa1
mov al, 1
jmp 0x1800ccfa9
jmp 0x1800ccfa7
xor al, al
add rsp, 0x78
ret

Function at 0x1800cd2b0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1801d4650]
mov qword [rsp + 0x28], rax
jmp 0x1800cd2d0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1800cd2ff
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov edx, 0x10000
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1800cd2fd
call sub.KERNEL32.dll_GetLastError
jmp 0x1800cd301
jmp 0x1800cd2c2
xor eax, eax
add rsp, 0x38
ret
Function at 0x1800cd9c0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x20], 0
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x1801d4668], eax
je 0x1800cd9ed
mov eax, 0x10dd
jmp 0x1800cdc06
cmp dword [0x1801d466c], 0
je 0x1800cda01
mov eax, dword [0x1801d466c]
jmp 0x1800cdc06
cmp qword [rsp + 0x78], 0
jne 0x1800cda13
mov eax, 0x57
jmp 0x1800cdc06
cmp qword [rsp + 0x70], 0
jne 0x1800cda25
mov eax, 6
jmp 0x1800cdc06
mov rax, qword [rsp + 0x70]
cmp qword [rax], 0
jne 0x1800cda57
mov dword [rsp + 0x20], 6
mov eax, dword [rsp + 0x20]
mov dword [0x1801d466c], eax
mov rax, qword [rsp + 0x70]
mov qword [0x1801d4670], rax
mov eax, dword [rsp + 0x20]
jmp 0x1800cdc06
mov ecx, 0x30
call fcn.1800cb1c4
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x1800cdac9
mov dword [rsp + 0x20], 8
mov eax, dword [rsp + 0x20]
mov dword [0x1801d466c], eax
cmp qword [rsp + 0x30], 0
je 0x1800cdab4
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov edx, 0x30
mov rcx, qword [rsp + 0x50]
call fcn.1800cacbc
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x70]
mov qword [0x1801d4670], rax
mov eax, dword [rsp + 0x20]
jmp 0x1800cdc06
xor edx, edx
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax]
call fcn.1800cd990
mov qword [rsp + 0x38], rax
xor edx, edx
mov rcx, qword [rsp + 0x78]
call fcn.1800cd990
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x38]
movzx eax, byte [rax + 0x3e]
mov dword [rsp + 0x24], eax
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x38]
mov rcx, qword [rcx + 0x48]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
cmp dword [rsp + 0x24], 0
je 0x1800cdb26
movsxd rax, dword [rsp + 0x24]
cmp rax, 0x1e
jbe 0x1800cdb43
mov dword [rsp + 0x20], 9
cmp dword [0x1801d4660], 0
je 0x1800cdb3e
jmp 0x1800cda8a
jmp 0x1800cda80
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x78]
cmp qword [rax + 0x50], rcx
je 0x1800cdb70
mov dword [rsp + 0x20], 9
cmp dword [0x1801d4660], 0
je 0x1800cdb6b
jmp 0x1800cda8a
jmp 0x1800cda80
mov dword [rsp + 0x28], 0
movsxd rax, dword [rsp + 0x24]
lea r9, [rsp + 0x28]
mov r8d, 0x40
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1800cdba7
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x1800cda80
mov rax, qword [rsp + 0x30]
mov dword [rax + 8], 1
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x70]
mov qword [rax + 0x10], rcx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov qword [rax + 0x20], rcx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x18], rcx
mov rax, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x28]
mov dword [rax + 0x28], ecx
mov rax, qword [rsp + 0x30]
mov rcx, qword [0x1801d4680]
mov qword [rax], rcx
mov rax, qword [rsp + 0x30]
mov qword [0x1801d4680], rax
xor eax, eax
add rsp, 0x68
ret