joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002b460
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 0x14002b488
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 0x14002b4ae
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14002b4b0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14002b509
test ecx, ecx
jle 0x14002b4e9
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 0x14002b509
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14002b509
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 0x14002b530
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 0x14002b552
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x14002b568
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 0x14002b584
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14002b586
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14002b5c2
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 0x14002b65e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14002b5fd
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 0x14002b63e
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 0x14002b65e
cmp rbx, rax
ja 0x14002b610
test rbx, rbx
je 0x14002b65e
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
Function at 0x14002bac0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14003d040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14002baed
xor eax, eax
jmp 0x14002bc59
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14002bb27
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14002bb27
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 0x14002bc59
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14002bc4c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14002bb6a
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 0x14002bb95
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 0x14002bc51
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 0x14002bc04
sub eax, 1
je 0x14002bc04
cmp eax, 2
jne 0x14002bc4c
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 0x14002bc51
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14002bc32
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 0x14002bc4c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14002bc51
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14002c7e0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14002bee0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14003d040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14002bfb3
cmp byte [rcx + 0x71], 0
je 0x14002bfb3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14002bfaf
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 0x14002bf74
sub eax, 1
je 0x14002bf78
cmp eax, 2
jne 0x14002bfaf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14002c7e0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14002bfa6
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 0x14002bfaf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14002bf5c
xor al, al
jmp 0x14002bf5c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14002c7e0
add rsp, 0x60
pop rbx
ret
Function at 0x14002c5c0
Capabilities:
Encrypt data using rc4 via systemfunction033

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x14003d040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, rdx
mov qword [rsp + 0x40], rdx
mov rax, qword [rdx]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x24], r9d
mov rax, qword [0x14003d0d8]
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x34], eax
lea rcx, str.Advapi32
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
jne 0x14002c631
lea rcx, str.____LoadLibraryA_Advapi32__FAILED_n
call fcn.14002a620
jmp 0x14002c669
lea rdx, str.SystemFunction033
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call rax
test eax, eax
je 0x14002c6af
mov edx, eax
lea rcx, str.____SystemFunction033_FAILED_With_Error:_0x_0.8X__n
call fcn.14002a620
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
mov rcx, qword [rbx]
test rcx, rcx
je 0x14002c6ab
mov rdx, qword [rbx + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x14002c699
mov r8, qword [rcx - 8]
sub rcx, r8
add rdx, 0x27
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14002c715
mov rcx, r8
call fcn.14002cba4
xor eax, eax
mov qword [rbx], rax
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rax
xor al, al
jmp 0x14002c6fd
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
mov rcx, qword [rbx]
test rcx, rcx
je 0x14002c6fb
mov rdx, qword [rbx + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x14002c6e9
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14002c715
mov rcx, r8
call fcn.14002cba4
xor eax, eax
mov qword [rbx], rax
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rax
mov al, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14002c7e0
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3

Function at 0x14002d46c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002d4b6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002d4b6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002d4b6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002d4b6
cmp dword [rcx + 0x84], 0xe
jbe 0x14002d4b6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14002d4b8
xor al, al
add rsp, 0x28
ret
Function at 0x14000b9ac
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140016950], eax
call fcn.14000b730
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x140016950], 0
jne case.default.0x14000ba02
mov ecx, 1
call fcn.14000b730
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
mov edx, 0x7a9a90a2
sar byte [rsi + 0x38], cl
in al, 0xbd
cld
xchg byte [rdi + 0x49], cl
insb byte [rdi], dx
adc dword [rbx - 0xc], ecx
lea eax, es:[r8 + 0x23f2bb75]
add esp, eax
stosd dword [rdi], eax
outsd dx, dword [rsi]
loope 0x1400232a0
shl dword [rcx - 0x17], 1
cwde
outsb dx, byte [rsi]
jbe 0x140023281
hlt
push rdi
div dword [rbx + 0x7e]
invalid
in eax, dx
jo 0x140023228
sbb byte [rdi - 0x6c], ah
invalid
push rdi
adc al, 0xdf
std
invalid
Function at 0x180002040
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [section._________2]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rdx
mov r8d, 0x30
lea rdx, [rsp + 0x20]
call qword [sym.imp.kernel32.dll_VirtualQuery]
nop
mov eax, 0x5a4d
mov rcx, qword [rsp + 0x28]
cmp word [rcx], ax
je 0x18000207d
xor al, al
jmp 0x1800020bb
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rdx + rcx], 0x4550
je 0x18000208e
xor al, al
jmp 0x1800020bb
mov r8d, dword [rdx + rcx + 0xe8]
lea rax, [r8 + rcx]
cmp rbx, rax
jb 0x1800020b5
mov eax, dword [rdx + rcx + 0xec]
add rax, r8
add rax, rcx
cmp rbx, rax
jae 0x1800020b5
mov al, 1
jmp 0x1800020bb
xor al, al
jmp 0x1800020bb
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180005bc0
add rsp, 0x60
pop rbx
ret

Function at 0x1800020d0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
mov rax, qword [section._________2]
xor rax, rsp
mov qword [rsp + 0x50], rax
movzx eax, cx
mov rsi, rdx
mov rbx, rcx
test rax, rax
je 0x180002106
add rbx, 0xffffffffffff0000
add rbx, rax
xor edi, edi
mov qword [rsp + 0x78], rbp
cmp rbx, rsi
jae 0x1800021de
mov ebp, 0x80010000
nop dword [rax + rax]
lea rax, [rbx - 0x50000000]
cmp rax, 0x30000000
ja 0x180002137
mov rbx, rbp
jmp 0x1800021d5
mov eax, edi
inc edi
cmp eax, 0x14
jg 0x1800021de
xor eax, eax
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
lea r8d, [rax + 0x30]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
call qword [sym.imp.kernel32.dll_VirtualQuery]
test rax, rax
je 0x1800021de
cmp dword [rsp + 0x40], 0x10000
mov rcx, qword [rsp + 0x38]
jne 0x1800021bb
cmp rcx, 0x10000
jb 0x1800021bb
mov edx, 0x10000
mov r9d, pe_nt_image_headers64
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.kernel32.dll_VirtualAlloc]
test rax, rax
jne 0x1800021e0
add rbx, 0x10000
jmp 0x1800021d5
mov rbx, qword [rsp + 0x20]
add rbx, rcx
movzx eax, bx
test rax, rax
je 0x1800021d5
add rbx, 0xffffffffffff0000
add rbx, rax
cmp rbx, rsi
jb 0x180002120
xor eax, eax
mov rbp, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180005bc0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x180002210
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rax, qword [section._________2]
xor rax, rsp
mov qword [rsp + 0x50], rax
add rdx, 0xffffffffffff0000
mov rdi, rcx
movzx eax, dx
mov rbx, rdx
sub rbx, rax
test rax, rax
cmove rbx, rdx
cmp rbx, rcx
jbe 0x1800022fd
nop dword [rax]
lea rax, [rbx - 0x50000000]
cmp rax, 0x30000000
ja 0x180002269
mov ebx, 0x4fff0000
jmp 0x1800022f4
xor eax, eax
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
lea r8d, [rax + 0x30]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
call qword [sym.imp.kernel32.dll_VirtualQuery]
test rax, rax
je 0x1800022fd
cmp dword [rsp + 0x40], 0x10000
jne 0x1800022dd
cmp qword [rsp + 0x38], 0x10000
jb 0x1800022dd
mov edx, 0x10000
mov r9d, pe_nt_image_headers64
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.kernel32.dll_VirtualAlloc]
test rax, rax
jne 0x1800022ff
sub rbx, 0x10000
jmp 0x1800022f4
mov rbx, qword [rsp + 0x28]
add rbx, 0xffffffffffff0000
movzx eax, bx
test rax, rax
je 0x1800022f4
sub rbx, rax
cmp rbx, rdi
ja 0x180002250
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180005bc0
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x180002320
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x20
lea rsi, [rcx - 0x7ff80000]
mov rbx, rcx
cmp rcx, 0x7ff80000
ja 0x180002342
mov esi, 0x10000
mov qword [rsp + 0x38], rdi
lea rdi, [rcx + 0x7ff80000]
cmp rbx, 0xffffffff80000000
jb 0x18000235e
mov rdi, 0xfffffffffff80000
mov rax, qword [0x18001eb40]
mov rcx, qword [0x18001eb30]
mov qword [rsp + 0x30], rbp
test rax, rax
jne 0x180002385
test rcx, rcx
je 0x18000239c
mov rax, rcx
mov qword [0x18001eb40], rcx
mov rdx, qword [rax + 0x10]
test rdx, rdx
je 0x18000239c
cmp rdx, rsi
jb 0x18000239c
cmp rdx, rdi
jbe 0x1800024c8
mov qword [0x18001eb40], rcx
mov rax, rcx
test rcx, rcx
je 0x1800023d7
test rcx, rcx
je 0x1800023c7
mov rcx, qword [rax + 0x10]
test rcx, rcx
je 0x1800023c7
cmp rcx, rsi
jb 0x1800023c7
cmp rcx, rdi
jbe 0x1800024c8
mov rax, qword [rax + 8]
mov qword [0x18001eb40], rax
test rax, rax
jne 0x1800023b0
movzx eax, bx
sub rbx, rax
cmp rbx, 0x40000000
jbe 0x18000240e
mov rdx, rbx
lea rcx, [rbx - 0x40000000]
call fcn.1800020d0
test rax, rax
jne 0x180002469
lea rdx, [rbx - 0x40000000]
mov rcx, rsi
call fcn.180002210
test rax, rax
jne 0x180002469
movabs rax, 0xffffffff40000000
cmp rbx, rax
jae 0x180002445
lea rdx, [rbx + 0x40000000]
mov rcx, rbx
call fcn.180002210
test rax, rax
jne 0x180002469
mov rdx, rdi
lea rcx, [rbx + 0x40000000]
call fcn.1800020d0
test rax, rax
jne 0x180002469
mov rdx, rbx
mov rcx, rsi
call fcn.180002210
test rax, rax
jne 0x180002469
mov rdx, rdi
mov rcx, rbx
call fcn.1800020d0
test rax, rax
je 0x1800024f4
mov dword [rax], 0x52727464
lea rdx, [rax + 0xffa8]
xor r8d, r8d
mov qword [0x18001eb40], rax
mov qword [rax + 0x10], r8
mov r9d, 0x2a7
mov rcx, qword [0x18001eb30]
mov qword [rax + 8], rcx
lea rcx, [rax + 0xff60]
mov qword [0x18001eb30], rax
nop dword [rax]
nop word [rax + rax]
mov qword [rdx], r8
lea rdx, [rdx - 0x60]
mov r8, rcx
sub rcx, 0x60
sub r9, 1
jne 0x1800024b0
mov qword [rax + 0x10], r8
mov rbx, qword [rax + 0x10]
cmp rbx, rsi
jb 0x1800024f4
cmp rbx, rdi
ja 0x1800024f4
mov rcx, qword [rbx + 0x48]
mov edx, 0xcc
mov qword [rax + 0x10], rcx
mov rcx, rbx
lea r8d, [rdx - 0x6c]
call fcn.180007600
mov rax, rbx
jmp 0x1800024f6
xor eax, eax
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
Function at 0x180002580
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [section._________2]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp dword [0x18001eb48], 0
je 0x1800025b3
mov eax, 0x10dd
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180005bc0
add rsp, 0x38
ret
call qword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov ecx, eax
xor eax, eax
lock cmpxchg dword [0x18001eb48], ecx
jne 0x18000259c
xor eax, eax
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x18001eb30]
mov qword [0x18001eb18], rax
mov qword [0x18001eb28], rax
mov dword [0x18001eb4c], eax
mov qword [0x18001eb38], rax
test rbx, rbx
je 0x180002622
nop word [rax + rax]
lea r9, [rsp + 0x20]
mov edx, 0x10000
mov r8d, pe_nt_image_headers64
mov rcx, rbx
call qword [sym.imp.kernel32.dll_VirtualProtect]
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x180002600
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180005bc0
add rsp, 0x38
ret

Function at 0x180002640
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x38
mov rax, qword [section._________2]
xor rax, rsp
mov qword [rsp + 0x28], rax
call qword [sym.imp.kernel32.dll_GetCurrentThreadId]
cmp dword [0x18001eb48], eax
je 0x180002678
mov eax, 0x10dd
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180005bc0
add rsp, 0x38
ret
mov qword [rsp + 0x40], rbx
mov rbx, qword [0x18001eb18]
mov qword [rsp + 0x48], rbp
xor ebp, ebp
mov qword [rsp + 0x30], rdi
test rbx, rbx
je 0x18000270e
mov qword [rsp + 0x50], rsi
nop word [rax + rax]
mov rax, qword [rbx + 0x20]
lea r9, [rsp + 0x20]
mov r8d, dword [rbx + 0x28]
mov rcx, qword [rbx + 0x18]
movzx edx, byte [rax + 0x3e]
call qword [sym.imp.kernel32.dll_VirtualProtect]
cmp dword [rbx + 8], ebp
jne 0x1800026f1
mov rsi, qword [rbx + 0x20]
test rsi, rsi
je 0x1800026f1
xor edx, edx
mov rdi, rsi
and rdi, 0xffffffffffff0000
mov rcx, rsi
lea r8d, [rdx + 0x60]
call fcn.180007600
mov rax, qword [rdi + 0x10]
mov qword [rsi + 0x48], rax
mov qword [rdi + 0x10], rsi
mov qword [rbx + 0x20], rbp
mov rdi, qword [rbx]
mov edx, 0x30
mov rcx, rbx
call fcn.180005c20
mov rbx, rdi
test rdi, rdi
jne 0x1800026a0
mov rsi, qword [rsp + 0x50]
mov qword [0x18001eb18], rbp
call qword [sym.imp.kernel32.dll_GetCurrentProcess]
mov rbx, qword [0x18001eb30]
mov rdi, rax
test rbx, rbx
je 0x180002764
nop word [rax + rax]
lea r9, [rsp + 0x20]
mov edx, 0x10000
mov r8d, 0x20
mov rcx, rbx
call qword [sym.imp.kernel32.dll_VirtualProtect]
mov r8d, 0x10000
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.kernel32.dll_FlushInstructionCache]
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x180002730
mov rdi, qword [0x18001eb28]
test rdi, rdi
je 0x180002792
mov rcx, qword [rdi + 8]
call qword [sym.imp.kernel32.dll_ResumeThread]
mov rbx, qword [rdi]
mov edx, 0x10
mov rcx, rdi
call fcn.180005c20
mov rdi, rbx
test rbx, rbx
jne 0x180002770
mov rdi, qword [rsp + 0x30]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov qword [0x18001eb28], rbp
mov dword [0x18001eb48], ebp
mov rbp, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180005bc0
add rsp, 0x38
ret
Function at 0x180002c80
Capabilities:
Suspend thread

Disassembly:
push rdi
sub rsp, 0x20
mov eax, dword [0x18001eb4c]
mov rdi, rcx
test eax, eax
jne 0x180002d23
call qword [sym.imp.kernel32.dll_GetCurrentThread]
cmp rdi, rax
jne 0x180002caa
xor eax, eax
add rsp, 0x20
pop rdi
ret
mov ecx, 0x10
mov qword [rsp + 0x30], rbx
call fcn.180005be4
mov rbx, rax
test rax, rax
jne 0x180002cc6
lea edi, [rax + 8]
jmp 0x180002ce9
mov rcx, rdi
call qword [sym.imp.kernel32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x180002d07
call qword [sym.imp.kernel32.dll_GetLastError]
mov edi, eax
mov edx, 0x10
mov rcx, rbx
call fcn.180005c20
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov dword [0x18001eb4c], edi
mov qword [0x18001eb38], 0
add rsp, 0x20
pop rdi
ret
mov rax, qword [0x18001eb28]
mov qword [rbx], rax
xor eax, eax
mov qword [rbx + 8], rdi
mov qword [0x18001eb28], rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180003190
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rsi
sub rsp, 0x38
mov rax, qword [section._________2]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbp, rdx
mov rsi, rcx
call qword [sym.imp.kernel32.dll_GetCurrentThreadId]
cmp dword [0x18001eb48], eax
je 0x1800031c4
mov eax, 0x10dd
jmp 0x1800032da
mov eax, dword [0x18001eb4c]
test eax, eax
jne 0x1800032da
test rsi, rsi
je 0x1800031ee
cmp qword [rsi], 0
jne 0x1800031f8
mov dword [0x18001eb4c], 6
mov qword [0x18001eb38], rsi
mov eax, 6
jmp 0x1800032da
mov qword [rsp + 0x60], rbx
mov ecx, 0x30
mov qword [rsp + 0x30], rdi
call fcn.180005be4
mov rbx, rax
test rax, rax
jne 0x18000321c
lea edi, [rax + 8]
jmp 0x1800032af
mov rcx, qword [rsi]
call fcn.180002510
mov rcx, rbp
mov rdi, rax
call fcn.180002510
movzx edx, byte [rdi + 0x3e]
mov rbp, qword [rdi + 0x48]
sub rbp, rdx
lea ecx, [rdx - 1]
cmp ecx, 0x1d
ja 0x1800032a1
cmp qword [rdi + 0x50], rax
jne 0x1800032a1
lea r9, [rsp + 0x20]
mov dword [rsp + 0x20], 0
mov r8d, pe_nt_image_headers64
mov rcx, rbp
call qword [sym.imp.kernel32.dll_VirtualProtect]
test eax, eax
jne 0x180003272
call qword [sym.imp.kernel32.dll_GetLastError]
mov edi, eax
jmp 0x1800032af
mov dword [rbx + 8], 1
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x20], rdi
mov qword [rbx + 0x18], rbp
mov eax, dword [rsp + 0x20]
mov dword [rbx + 0x28], eax
mov rax, qword [0x18001eb18]
mov qword [rbx], rax
xor eax, eax
mov qword [0x18001eb18], rbx
jmp 0x1800032d0
cmp dword [0x18001eb20], 0
mov edi, 9
jne 0x1800032b5
mov dword [0x18001eb4c], edi
test rbx, rbx
je 0x1800032c7
mov edx, 0x30
mov rcx, rbx
call fcn.180005c20
mov qword [0x18001eb38], rsi
mov eax, edi
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180005bc0
add rsp, 0x38
pop rsi
pop rbp
ret

Function at 0x180003910
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x358
mov rax, qword [section._________2]
xor rax, rsp
mov qword [rsp + 0x340], rax
mov edx, 0x104
lea rcx, [rsp + 0x20]
call qword [sym.imp.kernel32.dll_GetSystemDirectoryA]
lea rdx, [0x18001a400]
lea rcx, [rsp + 0x20]
call qword [sym.imp.kernel32.dll_lstrcatA]
lea rcx, [rsp + 0x20]
call qword [sym.imp.kernel32.dll_LoadLibraryA]
mov qword [0x18001ebd0], rax
mov rcx, rax
test rax, rax
jne 0x1800039a3
lea r8, [rsp + 0x20]
lea rdx, [0x18001a410]
lea rcx, [rsp + 0x130]
call qword [sym.imp.user32.dll_wsprintfA]
mov r9d, 0x10
lea r8, [0x18001a430]
lea rdx, [rsp + 0x130]
xor ecx, ecx
call qword [sym.imp.user32.dll_MessageBoxA]
mov rcx, qword [0x18001ebd0]
xor eax, eax
test rcx, rcx
setne al
mov rcx, qword [rsp + 0x340]
xor rcx, rsp
call fcn.180005bc0
add rsp, 0x358
ret