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

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

Function at 0x140015740
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400157af
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400157af
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400157af
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400157af
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400157af
cmp dword [rcx + 0x84], 0xe
jbe 0x1400157af
cmp dword [rcx + 0xf8], 0
je 0x1400157af
mov ecx, ebx
call fcn.140015860
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14001563c
nop
cmp dword [rbp + 0x20], 0
je 0x1400157fd
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140015808
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140015740

Function at 0x140015944
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140015740
Function at 0x14001d074
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14001d0a4
xor eax, eax
jmp 0x14001d167
mov rbp, rbx
cmp word [rax], si
je 0x14001d0c9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14001d0b0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001d0ac
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14001b674
movsxd r14, eax
test eax, eax
jne 0x14001d107
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001d09d
mov rcx, r14
call fcn.140018bf8
mov rdi, rax
test rax, rax
jne 0x14001d120
xor ecx, ecx
call fcn.140018bbc
jmp 0x14001d0fc
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14001b674
test eax, eax
jne 0x14001d151
mov rcx, rdi
call fcn.140018bbc
jmp 0x14001d15b
xor ecx, ecx
call fcn.140018bbc
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x14001fe30
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140018770
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14001fed1
cmp ebx, dword [rsp + 0x30]
je 0x14001feca
test esi, esi
je 0x14001feca
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14001fea5
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14001feb2
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14001fe8f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14001feb6
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14001fed3
mov eax, 1
jmp 0x14001fed3
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140021b14
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140010658
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140021b9e
cmp byte [rbp - 0x21], r15b
je 0x140021b99
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140021bd4
call fcn.1400192ec
test eax, eax
jne 0x140021bc0
cmp byte [rbp - 0x21], r15b
je 0x140021bb8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140021bd4
cmp byte [rbp - 0x21], r15b
je 0x140021bd1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140014738
test eax, eax
jne 0x140021c74
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140010658
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140021c13
cmp byte [rbp - 0x21], r15b
je 0x140021c48
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140021c48
call fcn.1400192ec
test eax, eax
jne 0x140021c34
cmp byte [rbp - 0x21], r15b
je 0x140021c2d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140021c48
cmp byte [rbp - 0x21], r15b
je 0x140021c45
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140014738
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140021c74
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140021c77
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140021c85
mov rcx, rdi
call fcn.140018bbc
cmp byte [rbp + 0x3f], r15b
je 0x140021c94
mov rcx, qword [rbp + 0x27]
call fcn.140018bbc
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140024620
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140024648
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140024648
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001020
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x280
lea rdi, [rsp + 0x20]
mov ecx, 0x98
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x290]
mov dword [rsp + 0x30], 0x238
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x278], rax
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x278]
call sub.KERNEL32.dll_Process32FirstW
cmp eax, 1
jne 0x1400010bd
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x278]
call sub.KERNEL32.dll_Process32NextW
cmp eax, 1
jne 0x1400010bd
mov rdx, qword [rsp + 0x290]
lea rcx, [rsp + 0x5c]
call qword [sym.imp.ucrtbased.dll__wcsicmp]
test eax, eax
jne 0x1400010bb
mov rcx, qword [rsp + 0x278]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x38]
jmp 0x1400010cd
jmp 0x140001079
mov rcx, qword [rsp + 0x278]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, [0x14000bb40]
call fcn.140006660
mov rax, rdi
add rsp, 0x280
pop rdi
ret
Function at 0x1400014c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rdx
mov word [rsp + 8], cx
push rdi
sub rsp, 0x180
lea rdi, [rsp + 0x30]
mov ecx, 0x54
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
movzx ecx, word [rsp + 0x190]
movzx eax, word [rsp + 0x190]
mov r8d, 0xa
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x140001517
xor al, al
jmp 0x1400015f6
mov rdx, qword [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x140001538
xor al, al
jmp 0x1400015f6
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x20], 1
mov r9d, 0x40
mov r8d, 0x20
mov rdx, qword [rsp + 0x198]
lea rcx, [rsp + 0x60]
call fcn.140002ac0
nop
mov rax, qword [rsp + 0x60]
movsxd rax, dword [rax + 4]
lea rax, [rsp + rax + 0x60]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_bool___cdecl_std::ios_base::operator__void_const___ptr64]
movzx eax, al
test eax, eax
je 0x1400015ba
mov byte [rsp + 0x174], 0
lea rcx, [rsp + 0x60]
call fcn.140003620
movzx eax, byte [rsp + 0x174]
jmp 0x1400015f6
mov eax, dword [rsp + 0x48]
mov r8d, eax
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const____ptr64__long_long___int64_____ptr64]
lea rcx, [rsp + 0x60]
call fcn.1400047e0
nop
mov byte [rsp + 0x175], 1
lea rcx, [rsp + 0x60]
call fcn.140003620
movzx eax, byte [rsp + 0x175]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x14000bba0]
call fcn.140006660
mov rax, rdi
add rsp, 0x180
pop rdi
ret
Function at 0x1400016e0
Capabilities:
Acquire debug privileges
Execute command
Get common file path

Disassembly:
mov word [rsp + 0x10], dx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x4f0
lea rdi, [rsp + 0x30]
mov ecx, 0x130
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x500]
lea rdx, [rsp + 0x270]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rax, str.your.dll
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x270]
lea r8, str._s_s
mov edx, 0x104
lea rcx, [rsp + 0x40]
call fcn.140006090
nop
lea rdx, [rsp + 0x40]
movzx ecx, word [rsp + 0x508]
call fcn.1400014c0
movzx eax, al
test eax, eax
jne 0x140001781
lea rcx, str.Failed_to_extract_DLL_resource_n
call fcn.140005ff0
lea rcx, str.pause
call qword [sym.imp.ucrtbased.dll_system]
nop
jmp 0x14000192f
mov dword [rsp + 0x484], 0
lea rcx, str.Waiting_for_HOI4_n
call fcn.140005ff0
nop
cmp dword [rsp + 0x484], 0
jne 0x1400017b9
mov rcx, qword [rsp + 0x500]
call fcn.140001020
mov dword [rsp + 0x484], eax
jmp 0x140001799
mov rdx, qword [rsp + 0x500]
lea rcx, str.Connected_to__s_n
call fcn.140005ff0
lea rax, [rsp + 0x498]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov qword [rsp + 0x4c8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x4c8]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140001894
mov dword [rsp + 0x498], 1
mov eax, 0xc
imul rax, rax, 0
mov dword [rsp + rax + 0x4a4], 2
mov eax, 0xc
imul rax, rax, 0
lea rax, [rsp + rax + 0x49c]
mov r8, rax
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x140001885
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x498]
xor edx, edx
mov rcx, qword [rsp + 0x4c8]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
nop
mov rcx, qword [rsp + 0x4c8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov r8d, dword [rsp + 0x484]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x4d8], rax
cmp qword [rsp + 0x4d8], 0
jne 0x1400018ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x4e0], eax
mov edx, dword [rsp + 0x4e0]
lea rcx, str.OpenProcess_failed:_0x_X_n
call fcn.140005ff0
lea rcx, str.PAUSE
call qword [sym.imp.ucrtbased.dll_system]
nop
jmp 0x14000192f
lea rdx, [rsp + 0x40]
mov ecx, dword [rsp + 0x484]
call fcn.140001100
movzx eax, al
test eax, eax
je 0x140001913
lea rcx, str.DLL_injected_successfully_n
call fcn.140005ff0
nop
jmp 0x140001920
lea rcx, str.DLL_injection_failed_n
call fcn.140005ff0
nop
mov rcx, qword [rsp + 0x4d8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, rsp
lea rdx, [0x14000bd80]
call fcn.140006660
add rsp, 0x4f0
pop rdi
ret
Function at 0x140001950
Capabilities:
Execute command
Set console window title

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rdi
mov eax, 0x1020
call fcn.1400068a0
sub rsp, rax
lea rdi, [rsp + 0x20]
mov ecx, 0x400
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x1030]
lea rcx, str.SilverInjector
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
lea rcx, str.color_0c
call qword [sym.imp.ucrtbased.dll_system]
lea rcx, str.Standard_Injector_n
call fcn.140005ff0
lea rcx, [0x14000ba18]
call fcn.140005ff0
lea rcx, str.Version_1.0.0_n
call fcn.140005ff0
lea rcx, str.One_of_two_Injectors_used_by_Silver_n
call fcn.140005ff0
lea rcx, str.__________________n
call fcn.140005ff0
lea rcx, str.Press_Enter_to_Inject
call fcn.140005ff0
mov r8d, 0x3e7
lea rdx, [rsp + 0x30]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_istream_wchar_t__struct_std::char_traits_wchar_t___std::wcin]
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_istream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__::getline_wchar_t____ptr64__long_long___int64_____ptr64]
lea rcx, str.Attempting..._n
call fcn.140005ff0
lea rax, [0x14000baa8]
mov qword [rsp + 0x808], rax
mov rcx, qword [rsp + 0x808]
call qword [sym.imp.ucrtbased.dll_wcslen]
inc rax
mov qword [rsp + 0x1010], rax
mov eax, 2
mov rcx, qword [rsp + 0x1010]
mul rcx
mov rcx, 0xffffffffffffffff
cmovb rax, rcx
mov rcx, rax
call fcn.140006600
mov qword [rsp + 0x1008], rax
mov rax, qword [rsp + 0x1008]
mov qword [rsp + 0x810], rax
mov rcx, qword [rsp + 0x808]
call qword [sym.imp.ucrtbased.dll_wcslen]
inc rax
mov r8, qword [rsp + 0x808]
mov rdx, rax
mov rcx, qword [rsp + 0x810]
call qword [sym.imp.ucrtbased.dll_wcscpy_s]
mov eax, 0x65
mov word [rsp + 0x818], ax
movzx edx, word [rsp + 0x818]
mov rcx, qword [rsp + 0x810]
call fcn.1400016e0
lea rcx, str.Injected__n
call fcn.140005ff0
lea rcx, str.You_can_close_this_window_now
call fcn.140005ff0
mov r8d, 0x3e7
lea rdx, [rsp + 0x830]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_istream_wchar_t__struct_std::char_traits_wchar_t___std::wcin]
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_istream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__::getline_wchar_t____ptr64__long_long___int64_____ptr64]
xor eax, eax
mov edi, eax
mov rcx, rsp
lea rdx, [0x14000be20]
call fcn.140006660
mov eax, edi
add rsp, 0x1020
pop rdi
ret
Function at 0x140003c40
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xd0
lea rdi, [rsp + 0x30]
mov ecx, 0x28
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xe0]
mov rax, qword [rsp + 0xe0]
cmp qword [rax + 0x68], 0
je 0x140003c85
mov rax, qword [rsp + 0xe0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140003c8c
mov al, 1
jmp 0x140003e26
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0xa0], rax
call fcn.140004990
mov dword [rsp + 0xa8], eax
mov edx, dword [rsp + 0xa8]
mov rcx, qword [rsp + 0xe0]
call qword [rsp + 0xa0]
mov dword [rsp + 0xac], eax
call fcn.140004990
mov dword [rsp + 0xb0], eax
mov edx, dword [rsp + 0xac]
mov ecx, dword [rsp + 0xb0]
call fcn.1400049a0
movzx eax, al
test eax, eax
je 0x140003cf9
xor al, al
jmp 0x140003e26
mov qword [rsp + 0x30], 0x20
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax + 0x68]
mov qword [rsp + 0xb8], rax
lea rax, [rsp + 0x68]
mov rcx, qword [rsp + 0xe0]
add rcx, 0x74
lea rdx, [rsp + 0x88]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rsp + 0x48]
mov rdx, rcx
mov rcx, qword [rsp + 0xb8]
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 [rsp + 0xc0], eax
cmp dword [rsp + 0xc0], 0
je 0x140003d7b
cmp dword [rsp + 0xc0], 1
je 0x140003d87
cmp dword [rsp + 0xc0], 3
je 0x140003e14
jmp 0x140003e24
mov rax, qword [rsp + 0xe0]
mov byte [rax + 0x71], 0
lea rax, [rsp + 0x48]
mov rcx, qword [rsp + 0x88]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0x98], 0
jbe 0x140003de2
mov rax, qword [rsp + 0xe0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x98]
mov edx, 1
lea rcx, [rsp + 0x48]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rsp + 0x98], rax
je 0x140003de2
xor al, al
jmp 0x140003e26
mov rax, qword [rsp + 0xe0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140003dff
mov dword [rsp + 0xc4], 1
jmp 0x140003e0a
mov dword [rsp + 0xc4], 0
movzx eax, byte [rsp + 0xc4]
jmp 0x140003e26
mov rax, qword [rsp + 0xe0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x140003e26
xor al, al
mov rdi, rax
mov rcx, rsp
lea rdx, [0x14000c650]
call fcn.140006660
mov rax, rdi
add rsp, 0xd0
pop rdi
ret
Function at 0x140005de0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x68], 0
je 0x140005e1a
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
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 0x140005f09
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x40]
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 [rsp + 0x28], rax
cmp qword [rsp + 0x50], 0
jle 0x140005eb1
cmp qword [rsp + 0x28], 0
jle 0x140005eb1
mov rax, qword [rsp + 0x28]
cmp qword [rsp + 0x50], rax
jge 0x140005e5a
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x40]
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 [rsp + 0x28]
mov rdx, qword [rsp + 0x48]
mov rcx, rax
call fcn.140004840
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
nop
cmp qword [rsp + 0x50], 0
jle 0x140005ef9
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x80], 0
je 0x140005ef9
mov rax, qword [rsp + 0x40]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x50]
mov edx, 1
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
add rsp, 0x30
pop rdi
ret
Function at 0x140006a60
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.140007040
movzx eax, al
test eax, eax
jne 0x140006a80
mov ecx, 7
call fcn.140008430
nop
mov byte [rsp + 0x20], 0
call fcn.140006e70
mov byte [rsp + 0x21], al
cmp dword [0x140012358], 1
jne 0x140006aa4
mov ecx, 7
call fcn.140008430
nop
jmp 0x140006afc
cmp dword [0x140012358], 0
jne 0x140006af7
mov dword [0x140012358], 1
lea rdx, [0x14000b640]
lea rcx, [0x14000b628]
call sub.ucrtbased.dll__initterm_e
test eax, eax
je 0x140006ad8
mov eax, 0xff
jmp 0x140006c01
lea rdx, [0x14000b620]
lea rcx, [0x14000b608]
call sub.ucrtbased.dll__initterm
mov dword [0x140012358], 2
jmp 0x140006afc
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140007230
call fcn.140008400
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140006b59
mov rcx, qword [rsp + 0x30]
call fcn.1400071a0
movzx eax, al
test eax, eax
je 0x140006b59
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x14000b5e0]
nop
call fcn.140008410
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x140006b8d
mov rcx, qword [rsp + 0x38]
call fcn.1400071a0
movzx eax, al
test eax, eax
je 0x140006b8d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call sub.ucrtbased.dll__register_thread_local_exe_atexit_callback
nop
call fcn.140006c40
mov dword [rsp + 0x28], eax
call fcn.140008650
movzx eax, al
test eax, eax
jne 0x140006bac
mov ecx, dword [rsp + 0x28]
call sub.ucrtbased.dll_exit
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140006bbb
call sub.ucrtbased.dll__cexit
nop
xor edx, edx
mov cl, 1
call fcn.140007260
mov eax, dword [rsp + 0x28]
jmp 0x140006c01
add rsp, 0x68
ret
Function at 0x180006540
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1800065af
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1800065af
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1800065af
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1800065af
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1800065af
cmp dword [rcx + 0x84], 0xe
jbe 0x1800065af
cmp dword [rcx + 0xf8], 0
je 0x1800065af
mov ecx, ebx
call fcn.180006660
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.18000643c
nop
cmp dword [rbp + 0x20], 0
je 0x1800065fd
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.180006608
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x180006540