joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005ea0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov r15, rdx
mov r12, rcx
test rdx, rdx
je 0x1400060a9
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x1400060a9
movsxd rax, dword [rdx + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x1400060a9
mov rcx, qword [rax + rdx + 0x90]
mov rax, rcx
shr rax, 0x20
test ecx, ecx
je 0x14000609e
test eax, eax
je 0x14000609e
mov r13d, ecx
add r13, rdx
je 0x14000609e
xor esi, esi
nop
mov eax, dword [r13 + 0xc]
test eax, eax
je 0x14000609e
lea rbp, [r15 + rax]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], 0xf
mov byte [rsp + 0x30], 0
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [r8 + rbp], 0
jne 0x140005f40
mov rdx, rbp
lea rcx, [rsp + 0x30]
call fcn.1400034d0
nop
lea rdx, [rsp + 0x30]
call fcn.140005330
mov r14, rax
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140005fa2
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005f9d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400060a2
call fcn.14000ec90
test r14, r14
je 0x140006094
mov edi, dword [r13 + 0x10]
add rdi, r15
je 0x140006094
nop dword [rax + rax]
mov rax, qword [rdi]
test rax, rax
je 0x140006094
js 0x14000608a
lea rbx, [rax + r15]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], 0xf
mov byte [rsp + 0x30], 0
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rbx + r8 + 2], 0
jne 0x140005ff5
lea rdx, [rbx + 2]
lea rcx, [rsp + 0x30]
call fcn.1400034d0
nop
lea r8, [rsp + 0x30]
mov rdx, r14
mov rcx, r12
call fcn.1400056a0
mov rsi, rax
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x14000605b
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006056
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400060a2
call fcn.14000ec90
test rsi, rsi
je 0x140006088
call fcn.140004d60
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rbp
mov r9, rsi
lea r8, [rbx + 2]
lea rdx, str.Mapping___s___0x_016llX__import_from___s___0x_016llX_
mov rcx, rax
call fcn.140004e20
mov qword [rdi], rsi
xor esi, esi
add rdi, 8
jne 0x140005fc0
add r13, 0x14
jne 0x140005f10
mov al, 1
jmp 0x1400060ab
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
xor al, al
mov rbx, qword [rsp + 0xa0]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140006db0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140019008]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, rcx
mov qword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
mov rcx, 0xffffffff80000002
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetServices
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
je 0x140006e24
call fcn.140004d60
mov r9d, ebx
lea r8, str.atom::kernel::Loader::DestroyRegistry
lea rdx, str._s:_RegOpenKeyExW__HKEY_LOCAL_MACHINE__SYSTEMCurrentControlSetServices___error___0x_08X_
mov rcx, rax
call fcn.140004e20
xor bl, bl
jmp 0x140006e7d
cmp qword [rdi + 0x50], 8
lea rbx, [rdi + 0x38]
mov rdx, rbx
jb 0x140006e35
mov rdx, qword [rbx]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
mov edi, eax
cmp eax, 2
je 0x140006e7b
test eax, eax
je 0x140006e7b
call fcn.140004d60
cmp qword [rbx + 0x18], 8
jb 0x140006e5a
mov rbx, qword [rbx]
mov r9, rbx
mov dword [rsp + 0x20], edi
lea r8, str.atom::kernel::Loader::DestroyRegistry
mov rcx, rax
lea rdx, str._s:_RegDeleteTreeW___S___error___0x_08X_
call fcn.140004e20
xor bl, bl
jmp 0x140006e7d
mov bl, 1
mov rcx, qword [rsp + 0x30]
test rcx, rcx
jle 0x140006e8d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14000ec70
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140007440
Capabilities:
Acquire debug privileges

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x90
mov rax, qword [0x140019008]
xor rax, rsp
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
mov qword [r11 - 0x18], rax
xor ebx, ebx
mov qword [r11 - 0x68], rbx
mov qword [r11 - 0x58], rbx
mov qword [r11 - 0x50], 7
mov word [rsp + 0x30], bx
lea rdx, str.SeDebugPrivilege
lea rcx, [r11 - 0x68]
call fcn.140003450
nop
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.14000e2e0
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x1400074f2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400074ed
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400074ed
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000ec90
cmp qword [rsp + 0x60], 0
je 0x14000758b
mov rcx, qword [rsp + 0x70]
lea rax, [rcx + 1]
test rax, 0xfffffffffffffffe
je 0x14000758b
mov dword [rsp + 0x78], 1
mov dword [rsp + 0x84], 2
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
mov r9d, 0x10
lea r8, [rsp + 0x78]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x140007587
call fcn.140004d60
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, str.atom::win32::Privilege::Set
lea rdx, str._s:_AdjustTokenPrivileges__...___error___0x_08X_
mov rcx, rbx
call fcn.140004e20
call fcn.140004d60
lea r8, str.SeDebugPrivilege
lea rdx, str._s:___ws_:_failed_to_grant_
mov rcx, rax
call fcn.140004e20
jmp 0x1400075ad
mov bl, 1
jmp 0x1400075af
call fcn.140004d60
lea r9, str.SeDebugPrivilege
lea r8, str.atom::GrantDebugPrivilege
lea rdx, str._s:___ws_:_not_valid_
mov rcx, rax
call fcn.140004e20
xor bl, bl
mov rcx, qword [rsp + 0x70]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400075c4
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x70], 0xffffffffffffffff
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x140007612
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000760d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000760d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000ec90
movzx eax, bl
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14000ec70
add rsp, 0x90
pop rbx
ret
Function at 0x140009f30
Capabilities:
Set console window title

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x140019008]
xor rax, rsp
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_AllocConsole]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_AttachConsole]
xor eax, eax
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rax
lea r8, [0x1400131b0]
lea rdx, str.CONIN_
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rax
lea r8, [0x1400131b4]
lea rdx, str.CONOUT_
lea rcx, [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rax
lea r8, [0x1400131b4]
lea rdx, str.CONOUT_
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
lea rcx, [0x1400131c0]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
call fcn.140009660
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeConsole]
mov eax, ebx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14000ec70
add rsp, 0x40
pop rbx
ret
Function at 0x14000d200
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140019008]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000d22d
xor eax, eax
jmp 0x14000d38a
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x14000d258
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x14000d258
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], dil
mov eax, edi
jmp 0x14000d38a
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000d37d
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x14000d29b
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
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 0x14000d2c6
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 0x14000d382
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 0x14000d335
sub eax, 1
je 0x14000d335
cmp eax, 2
jne 0x14000d37d
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 0x14000d382
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14000d363
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 0x14000d37d
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14000d382
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14000ec70
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14000d5b0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140019008]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14000d683
cmp byte [rcx + 0x71], 0
je 0x14000d683
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000d67f
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 0x14000d644
sub eax, 1
je 0x14000d648
cmp eax, 2
jne 0x14000d67f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000ec70
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14000d676
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 0x14000d67f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000d62c
xor al, al
jmp 0x14000d62c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000ec70
add rsp, 0x60
pop rbx
ret
Function at 0x14000ddf0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
mov eax, 0x2860
call fcn.14000fe60
sub rsp, rax
mov rax, qword [0x140019008]
xor rax, rsp
mov qword [rsp + 0x2850], rax
cmp qword [0x1400218b8], 0x10
lea rsi, [0x1400218a0]
mov rdi, qword [0x1400218b0]
mov r14, r8
cmovae rsi, qword [0x1400218a0]
mov rbp, rdx
mov qword [rsp + 0x30], 0
cmp rdi, 0x10
jae 0x14000de63
movups xmm0, xmmword [rsi]
mov qword [rsp + 0x48], 0xf
movups xmmword [rsp + 0x30], xmm0
jmp 0x14000dede
movabs rax, 0x7fffffffffffffff
mov rbx, rdi
or rbx, 0xf
cmp rbx, rax
cmova rbx, rax
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x14000deb7
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14000e02e
mov rcx, rax
call fcn.14000ef30
mov rcx, rax
test rax, rax
je 0x14000dff8
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x14000dec5
test rcx, rcx
je 0x14000dec3
call fcn.14000ef30
jmp 0x14000dec5
xor eax, eax
lea r8, [rdi + 1]
mov qword [rsp + 0x30], rax
mov rdx, rsi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov qword [rsp + 0x48], rbx
xor edx, edx
mov qword [rsp + 0x40], rdi
mov r8d, 0x1000
lea rcx, [rsp + 0x850]
call sub.VCRUNTIME140.dll_memset
call fcn.14000dcb0
mov qword [rsp + 0x28], r14
lea rdx, [rsp + 0x850]
mov r9, rbp
mov qword [rsp + 0x20], 0
mov r8d, 0x1000
mov rbx, rax
mov rcx, qword [rax]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vsprintf_s]
cmp qword [rsp + 0x48], 0x10
lea r8, [rsp + 0x30]
mov r9d, 0x10
lea rdx, [rsp + 0x850]
cmovae r8, qword [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x800
mov edi, eax
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rbx]
lea rdx, [rsp + 0x50]
mov r9, rbp
mov qword [rsp + 0x28], r14
mov r8d, 0x800
mov qword [rsp + 0x20], 0
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vsprintf_s]
xor edx, edx
lea rcx, [rsp + 0x1850]
mov r8d, 0x1000
call sub.VCRUNTIME140.dll_memset
lea r8, [rsp + 0x50]
lea rdx, str._atom___s_r_n
lea rcx, [rsp + 0x1850]
call fcn.14000dd90
lea rcx, [rsp + 0x1850]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x14000e004
mov rcx, qword [rsp + 0x30]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000dfff
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000dfff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000ec90
mov eax, edi
mov rcx, qword [rsp + 0x2850]
xor rcx, rsp
call fcn.14000ec70
lea r11, [rsp + 0x2860]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.140001270
int3
Function at 0x14000e040
Capabilities:
Get file size
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x58
mov rax, qword [0x140019008]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp qword [rcx + 0x18], 8
mov rdi, rdx
jb 0x14000e063
mov rcx, qword [rcx]
mov edx, 1
mov qword [rsp + 0x30], 0
mov r8d, edx
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14000e15f
mov qword [rsp + 0x80], rbx
xor edx, edx
mov qword [rsp + 0x88], rbp
mov rcx, rax
mov qword [rsp + 0x50], r14
mov dword [rsp + 0x40], 0
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rbp, qword [rdi + 8]
mov rdx, qword [rdi]
mov rcx, rbp
sub rcx, rdx
mov r14d, eax
mov ebx, eax
cmp r14, rcx
jae 0x14000e0e3
lea rcx, [rdx + r14]
mov qword [rdi + 8], rcx
jmp 0x14000e116
jbe 0x14000e116
mov rax, qword [rdi + 0x10]
sub rax, rdx
cmp rbx, rax
jbe 0x14000e0fe
mov rdx, rbx
mov rcx, rdi
call fcn.14000e180
jmp 0x14000e116
sub rbx, rcx
xor edx, edx
mov r8, rbx
mov rcx, rbp
call sub.VCRUNTIME140.dll_memset
lea rax, [rbx + rbp]
mov qword [rdi + 8], rax
mov rdx, qword [rdi]
lea r9, [rsp + 0x40]
mov r8d, r14d
mov qword [rsp + 0x20], 0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r14, qword [rsp + 0x50]
mov rcx, rsi
mov rbp, qword [rsp + 0x88]
mov rbx, qword [rsp + 0x80]
test eax, eax
je 0x14000e159
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x14000e161
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14000ec70
add rsp, 0x58
pop rdi
pop rsi
ret

Function at 0x14000f8c4
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x14001a130
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x140042066]
call fcn.1400117e4
nop
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x14001a188
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x14001a29a
mov rax, qword [rbp + 0x130]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 0
jle 0x14001a233
cmp qword [rbp + 0x28], 0
jle 0x14001a233
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x14001a1d1
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x128]
mov rcx, rax
call fcn.140011771
nop
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov edx, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
nop
cmp qword [rbp + 0x130], 0
jle 0x14001a289
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x14001a289
mov rax, qword [rbp + 0x120]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x130]
mov edx, 1
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x140011474
Capabilities:
Terminate process

Disassembly:
jmp 0x14001cbd0
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]
nop
add rsp, 0x28
ret
Function at 0x14001158c
Capabilities:
Parse pe header

Disassembly:
jmp 0x14001d700
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14001d720
xor al, al
jmp 0x14001d7a1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14001d733
xor al, al
jmp 0x14001d7a1
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 0x14001d75d
xor al, al
jmp 0x14001d7a1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14001d771
xor al, al
jmp 0x14001d7a1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14001d783
xor al, al
jmp 0x14001d7a1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001d79f
xor al, al
jmp 0x14001d7a1
mov al, 1
add rsp, 0x38
ret
Function at 0x1400117cb
Capabilities:
Write file on windows

Disassembly:
jmp 0x140016b30
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x2e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1c8]
mov rax, qword [0x14003af40]
xor rax, rbp
mov qword [rbp + 0x168], rax
lea rcx, [0x140042066]
call fcn.1400117e4
nop
mov rax, qword [rbp + 0x190]
cmp qword [rax + 0x68], 0
je 0x140016b97
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140016b9e
mov al, 1
jmp 0x140016cee
call fcn.140011235
mov rcx, qword [rbp + 0x190]
mov rcx, qword [rcx]
mov qword [rbp + 0x158], rcx
mov edx, eax
mov rcx, qword [rbp + 0x190]
mov rax, qword [rbp + 0x158]
call qword [rax + 0x18]
mov dword [rbp + 0x160], eax
call fcn.140011235
mov ecx, dword [rbp + 0x160]
mov edx, ecx
mov ecx, eax
call fcn.14001164a
movzx eax, al
test eax, eax
je 0x140016bef
xor al, al
jmp 0x140016cee
mov qword [rbp + 8], 0x20
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x190]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rax, qword [rbp + 0x190]
mov rcx, qword [rax + 0x68]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x154], eax
cmp dword [rbp + 0x154], 0
je 0x140016c54
cmp dword [rbp + 0x154], 1
je 0x140016c5f
cmp dword [rbp + 0x154], 3
je 0x140016cdd
jmp 0x140016cec
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x140016caf
mov rax, qword [rbp + 0x190]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x140016caf
xor al, al
jmp 0x140016cee
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140016cca
mov dword [rbp + 0x154], 1
jmp 0x140016cd4
mov dword [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
jmp 0x140016cee
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x140016cee
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x1400255f0]
call fcn.14001169a
mov rax, rdi
mov rcx, qword [rbp + 0x168]
xor rcx, rbp
call fcn.1400113ca
lea rsp, [rbp + 0x178]
pop rdi
pop rbp
ret