joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000fae0
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 0x14000fb08
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 0x14000fb2e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14000fb30
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14000fb89
test ecx, ecx
jle 0x14000fb69
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 0x14000fb89
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14000fb89
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 0x14000fbb0
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 0x14000fbd2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x14000fbe8
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 0x14000fc04
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000fc06
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000fc42
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 0x14000fcde
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000fc7d
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 0x14000fcbe
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 0x14000fcde
cmp rbx, rax
ja 0x14000fc90
test rbx, rbx
je 0x14000fcde
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 0x140010140
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140020040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14001016d
xor eax, eax
jmp 0x1400102d9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400101a7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400101a7
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 0x1400102d9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400102cc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400101ea
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 0x140010215
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 0x1400102d1
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 0x140010284
sub eax, 1
je 0x140010284
cmp eax, 2
jne 0x1400102cc
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 0x1400102d1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400102b2
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 0x1400102cc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400102d1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140014550
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140010610
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140020040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400106e3
cmp byte [rcx + 0x71], 0
je 0x1400106e3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400106df
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 0x1400106a4
sub eax, 1
je 0x1400106a8
cmp eax, 2
jne 0x1400106df
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140014550
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400106d6
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 0x1400106df
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14001068c
xor al, al
jmp 0x14001068c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140014550
add rsp, 0x60
pop rbx
ret

Function at 0x140014364
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.140013d8c
mov ebx, eax
test eax, eax
jne 0x140014394
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x1400143f7
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400143ee
test al, 0x10
je 0x1400143ee
bt eax, 0xa
jae 0x1400143e7
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.140014408
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x1400143e3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1400143e3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
test edi, edi
jne 0x1400143ee
and dword [rsp + 0x3c], 0
jmp 0x1400143f3
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140014460
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14001449a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14001449f
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400144e8
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400189a0]
cmp byte [rcx + rax], 0
je 0x1400144e8
dec r8
sub rdx, 1
jne 0x1400144ce
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1400152c8
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x140012e30
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x14001127b
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014180
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400141a0
xor al, al
jmp 0x140014221
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400141b3
xor al, al
jmp 0x140014221
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400141dd
xor al, al
jmp 0x140014221
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400141f1
xor al, al
jmp 0x140014221
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014203
xor al, al
jmp 0x140014221
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001421f
xor al, al
jmp 0x140014221
mov al, 1
add rsp, 0x38
ret
Function at 0x140015a40
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
test r9, r9
je 0x140015bd6
cmp r9, 4
jb 0x140015a7a
mov r10, r9
shr r10, 2
imul rax, r10, 0xfffffffffffffffc
add r9, rax
mov eax, dword [rdx]
add rdx, 4
xor eax, dword [r8]
add r8, 4
mov dword [rcx], eax
add rcx, 4
sub r10, 1
jne 0x140015a61
xor r11d, r11d
test r9, r9
je 0x140015bd6
cmp r9, 8
jb 0x140015bad
lea r10, [rcx - 1]
lea rax, [r8 - 1]
add r10, r9
add rax, r9
cmp rcx, rax
ja 0x140015aac
cmp r10, r8
jae 0x140015bad
lea rax, [rdx - 1]
add rax, r9
cmp rcx, rax
ja 0x140015ac1
cmp r10, rdx
jae 0x140015bad
mov qword [rsp + 0x10], rbx
mov qword [rsp], rdi
cmp r9, 0x40
jb 0x140015b67
mov r10, r9
mov qword [rsp + 0x18], rsi
and r10d, 0x3f
mov rbx, r9
sub rbx, r10
mov rdi, rdx
lea rax, [r8 + 0x10]
sub rdi, r8
mov rsi, rcx
sub rsi, r8
nop word [rax + rax]
movdqu xmm0, xmmword [rdi + rax - 0x10]
add r11, 0x40
movdqu xmm1, xmmword [rax - 0x10]
movdqu xmm2, xmmword [rdi + rax]
lea rax, [rax + 0x40]
xorps xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmmword [rsi + rax - 0x50], xmm1
xorps xmm2, xmm0
movdqu xmm0, xmmword [rdi + rax - 0x30]
movdqu xmm1, xmmword [rax - 0x30]
movdqu xmmword [rsi + rax - 0x40], xmm2
xorps xmm1, xmm0
movdqu xmm0, xmmword [rdi + rax - 0x20]
movdqu xmm2, xmmword [rax - 0x20]
movdqu xmmword [rsi + rax - 0x30], xmm1
xorps xmm2, xmm0
movdqu xmmword [rsi + rax - 0x20], xmm2
cmp r11, rbx
jb 0x140015b00
mov rsi, qword [rsp + 0x18]
cmp r10, 8
jb 0x140015b9f
mov r10, r9
and r10, 0xfffffffffffffff8
mov rbx, rdx
lea rax, [r11 + r8]
sub rbx, r8
mov rdi, rcx
sub rdi, r8
nop
movq xmm1, qword [rax + rbx]
add r11, 8
movq xmm0, qword [rax]
lea rax, [rax + 8]
xorps xmm1, xmm0
movq qword [rdi + rax - 8], xmm1
cmp r11, r10
jb 0x140015b80
mov rdi, qword [rsp]
mov rbx, qword [rsp + 0x10]
cmp r11, r9
jae 0x140015bd6
sub rdx, r8
lea r10, [r11 + r8]
sub rcx, r8
sub r9, r11
nop word [rax + rax]
movzx eax, byte [r10 + rdx]
xor al, byte [r10]
mov byte [rcx + r10], al
lea r10, [r10 + 1]
sub r9, 1
jne 0x140015bc0
add rsp, 8
ret

Function at 0x14001aa50
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
movzx ebp, r8b
mov rbx, rcx
cmp edx, 0x10
jae 0x14001aadd
test rcx, rcx
je 0x14001aadd
mov edx, 0x40
call fcn.14001bf30
test al, al
jne 0x14001aadd
mov eax, 0x5a4d
cmp word [rbx], ax
jne 0x14001aadd
movsxd rax, dword [rbx + 0x3c]
cmp eax, 0x400
jg 0x14001aadd
lea rdi, [rbx + rax]
mov edx, 0xf8
mov rcx, rdi
call fcn.14001bf30
test al, al
jne 0x14001aadd
cmp dword [rdi], 0x4550
jne 0x14001aadd
mov rcx, rbx
call fcn.14001afe0
movzx ecx, al
lea rax, [rsi + 0xf]
lea rax, [rax + rcx*2]
lea rax, [rdi + rax*8]
test bpl, bpl
jne 0x14001aadf
xor ecx, ecx
cmp dword [rax], ecx
cmove rax, rcx
jmp 0x14001aadf
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001ab00
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14001ab68
mov edx, 0x40
call fcn.14001bf30
test al, al
jne 0x14001ab68
mov eax, 0x5a4d
cmp word [rbx], ax
jne 0x14001ab68
movsxd rax, dword [rbx + 0x3c]
cmp eax, 0x400
jg 0x14001ab68
lea rdi, [rbx + rax]
mov edx, 0xf8
mov rcx, rdi
call fcn.14001bf30
test al, al
jne 0x14001ab68
cmp dword [rdi], 0x4550
jne 0x14001ab68
mov rcx, rbx
call fcn.14001afe0
mov eax, dword [rdi + 0x28]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rdi
ret

Function at 0x14001ab80
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov ebp, 0x5a4d
test rcx, rcx
je 0x14001abfb
mov edx, 0x40
call fcn.14001bf30
test al, al
jne 0x14001abfb
cmp word [rbx], bp
jne 0x14001abfb
movsxd rax, dword [rbx + 0x3c]
lea rdi, [rbx + 0x3c]
cmp eax, 0x400
jg 0x14001abfb
lea rsi, [rbx + rax]
mov edx, 0xf8
mov rcx, rsi
call fcn.14001bf30
test al, al
jne 0x14001abfb
cmp dword [rsi], 0x4550
jne 0x14001abfb
mov edx, 0xf8
mov rcx, rsi
call fcn.14001bf30
test al, al
je 0x14001abf5
xor esi, esi
jmp 0x14001ac06
movzx esi, word [rsi + 0x18]
jmp 0x14001ac06
xor esi, esi
lea rdi, [rbx + 0x3c]
test rbx, rbx
je 0x14001ac58
mov edx, 0x40
mov rcx, rbx
call fcn.14001bf30
test al, al
jne 0x14001ac58
cmp word [rbx], bp
jne 0x14001ac58
movsxd rax, dword [rdi]
cmp eax, 0x400
jg 0x14001ac58
lea rdi, [rbx + rax]
mov edx, 0xf8
mov rcx, rdi
call fcn.14001bf30
test al, al
jne 0x14001ac58
cmp dword [rdi], 0x4550
jne 0x14001ac58
mov eax, 0x20b
cmp si, ax
jne 0x14001ac53
mov rax, qword [rdi + 0x30]
jmp 0x14001ac5a
mov eax, dword [rdi + 0x34]
jmp 0x14001ac5a
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14001ac70
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14001acf7
mov edx, 0x40
call fcn.14001bf30
test al, al
jne 0x14001acf7
mov eax, 0x5a4d
cmp word [rbx], ax
jne 0x14001acf7
movsxd rax, dword [rbx + 0x3c]
cmp eax, 0x400
jg 0x14001acf7
lea rdi, [rbx + rax]
mov edx, 0xf8
mov rcx, rdi
call fcn.14001bf30
test al, al
jne 0x14001acf7
cmp dword [rdi], 0x4550
jne 0x14001acf7
mov rcx, rbx
call fcn.14001afe0
mov rcx, rbx
test al, al
je 0x14001ace4
call fcn.14001ad90
mov eax, dword [rax + 0x50]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call fcn.14001ad10
mov eax, dword [rax + 0x50]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x14001ad10
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14001ad80
mov edx, 0x40
call fcn.14001bf30
test al, al
jne 0x14001ad80
mov eax, 0x5a4d
cmp word [rbx], ax
jne 0x14001ad80
movsxd rax, dword [rbx + 0x3c]
cmp eax, 0x400
jg 0x14001ad80
lea rdi, [rbx + rax]
mov edx, 0xf8
mov rcx, rdi
call fcn.14001bf30
test al, al
jne 0x14001ad80
cmp dword [rdi], 0x4550
jne 0x14001ad80
mov rcx, rbx
call fcn.14001afe0
xor ecx, ecx
test al, al
cmove rcx, rdi
mov rax, rcx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret

Function at 0x14001ad90
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14001ae00
mov edx, 0x40
call fcn.14001bf30
test al, al
jne 0x14001ae00
mov eax, 0x5a4d
cmp word [rbx], ax
jne 0x14001ae00
movsxd rax, dword [rbx + 0x3c]
cmp eax, 0x400
jg 0x14001ae00
lea rdi, [rbx + rax]
mov edx, 0xf8
mov rcx, rdi
call fcn.14001bf30
test al, al
jne 0x14001ae00
cmp dword [rdi], 0x4550
jne 0x14001ae00
mov rcx, rbx
call fcn.14001afe0
xor ecx, ecx
test al, al
cmovne rcx, rdi
mov rax, rcx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret

Function at 0x14001ae10
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
test rcx, rcx
je 0x14001ae41
test rdx, rdx
je 0x14001ae53
mov r9d, 0x40
mov r8, rcx
call fcn.14001bf00
test al, al
jne 0x14001ae61
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov edx, 0x40
call fcn.14001bf30
test al, al
jne 0x14001ae41
mov eax, 0x5a4d
cmp word [rdi], ax
jne 0x14001ae41
movsxd rax, dword [rdi + 0x3c]
cmp eax, 0x400
jg 0x14001ae41
lea rbx, [rdi + rax]
test rsi, rsi
je 0x14001ae99
mov r9d, 0xf8
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
call fcn.14001bf00
test al, al
je 0x14001ae41
jmp 0x14001aeaa
mov edx, 0xf8
mov rcx, rbx
call fcn.14001bf30
test al, al
jne 0x14001ae41
mov rsi, qword [rsp + 0x38]
xor eax, eax
cmp dword [rbx], 0x4550
cmovne rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14001af50
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14001afce
mov edx, 0x40
call fcn.14001bf30
test al, al
jne 0x14001afce
mov eax, 0x5a4d
cmp word [rbx], ax
jne 0x14001afce
movsxd rax, dword [rbx + 0x3c]
cmp eax, 0x400
jg 0x14001afce
lea rdi, [rbx + rax]
mov edx, 0xf8
mov rcx, rdi
call fcn.14001bf30
test al, al
jne 0x14001afce
cmp dword [rdi], 0x4550
jne 0x14001afce
mov rcx, rbx
call fcn.14001afe0
movzx eax, al
add rax, 0xa
shl rax, 4
add rax, rdi
cmp dword [rax], 0
je 0x14001afce
test rax, rax
setne al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor al, al
add rsp, 0x20
pop rdi
ret
Function at 0x14001afe0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14001b05a
mov edx, 0x40
call fcn.14001bf30
test al, al
jne 0x14001b05a
mov eax, 0x5a4d
cmp word [rbx], ax
jne 0x14001b05a
movsxd rax, dword [rbx + 0x3c]
cmp eax, 0x400
jg 0x14001b05a
lea rdi, [rbx + rax]
mov edx, 0xf8
mov rcx, rdi
call fcn.14001bf30
test al, al
jne 0x14001b05a
cmp dword [rdi], 0x4550
jne 0x14001b05a
mov edx, 0xf8
mov rcx, rdi
call fcn.14001bf30
test al, al
jne 0x14001b05a
mov eax, 0x20b
cmp word [rdi + 0x18], ax
sete al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor al, al
add rsp, 0x20
pop rdi
ret
Function at 0x14001b070
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x40
xor r12d, r12d
mov r14, rdx
mov qword [rsp + 0x30], r12
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov r15, rcx
mov dword [rsp + 0x20], 3
lea r8d, [r12 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14001b0cb
xor eax, eax
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
ret
xor r9d, r9d
mov qword [rsp + 0x28], r12
xor edx, edx
mov qword [rsp + 0x70], rsi
mov rcx, rdi
mov dword [rsp + 0x20], r12d
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rsi, rax
test rax, rax
jne 0x14001b104
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x14001b21d
xor r9d, r9d
mov qword [rsp + 0x68], rbp
xor r8d, r8d
mov qword [rsp + 0x20], r12
mov rcx, rsi
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbp, rax
test rax, rax
jne 0x14001b142
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x14001b218
xor edx, edx
mov qword [rsp + 0x60], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov rax, qword [r14]
test rax, rax
je 0x14001b163
cmp rax, rbx
cmovbe rbx, rax
mov rdx, rbx
mov rcx, rbp
call fcn.14001bf30
test al, al
je 0x14001b1cf
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.____Mapping_of
call fcn.1400014e0
mov rcx, rax
mov rdx, r15
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___void_const____ptr64____ptr64]
mov rcx, rax
lea rdx, str._is_invalid_
call fcn.1400014e0
mov rcx, rax
lea rdx, [0x1400016b0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x14001b213
mov rcx, rbx
call fcn.14001beb0
mov r15, rax
test rax, rax
je 0x14001b1ef
mov r8, rbx
mov rdx, rbp
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
jmp 0x14001b1f2
mov rbx, r12
mov rcx, rbp
mov qword [r14], rbx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, r15
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
ret
Function at 0x14001d8f0
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1400022b7
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
xor al, al
add rsp, 0x28
ret