joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140095150
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.14009cd60
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.14009cd60
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x140095e02
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400bdc68]
test eax, eax
je 0x140095e9a
lea rax, [0x1400bdc40]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400bdc70]
mov qword [rbp - 8], rax
jmp 0x140095e7e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140095e72
cmp qword [rbp - 0x10], 0
je 0x140095e72
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140095e38
lea rax, [0x1400bdc40]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140095e9b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140095fa0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140095fc8
mov eax, 0
jmp 0x140096016
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140095ff1
mov eax, 0
jmp 0x140096016
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140096011
mov eax, 0
jmp 0x140096016
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14009601c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14009609a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140096091
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140096091
mov rax, qword [rbp - 8]
jmp 0x1400960af
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140096064
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x7ff7c7dec28a
Capabilities:
Write file on windows

Disassembly:
jmp 0x7ff7c7e19fa0
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, [0x7ff7c7e4c069]
call fcn.7ff7c7ded71b
nop
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x7ff7c7e19ff8
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 0x7ff7c7e1a10a
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 0x7ff7c7e1a0a3
cmp qword [rbp + 0x28], 0
jle 0x7ff7c7e1a0a3
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x7ff7c7e1a041
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.7ff7c7ded5b8
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 0x7ff7c7e1a0f9
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x7ff7c7e1a0f9
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 0x7ff7c7dec3ac
Capabilities:
Enumerate processes

Disassembly:
jmp 0x7ff7c7e05b70
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x4c8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xca
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x4e8]
mov rax, qword [0x7ff7c7e3e080]
xor rax, rbp
mov qword [rbp + 0x498], rax
lea rcx, [0x7ff7c7e4c114]
call fcn.7ff7c7ded71b
nop
mov dword [rbp + 0x284], 0
xor edx, edx
mov ecx, 2
call fcn.7ff7c7decaf5
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0xffffffffffffffff
jne 0x7ff7c7e05c10
lea rdx, str.CreateToolhelp32Snapshot__of_processes__failed.
lea rcx, [rbp + 0x428]
call fcn.7ff7c7dec7f3
nop
lea rcx, [rbp + 0x428]
call fcn.7ff7c7dec262
nop
lea rcx, [rbp + 0x428]
call fcn.7ff7c7ded3c4
nop
xor eax, eax
jmp 0x7ff7c7e05ca7
mov dword [rbp + 0x30], 0x238
lea rdx, [rbp + 0x30]
mov rcx, qword [rbp + 8]
call fcn.7ff7c7dece4c
test eax, eax
jne 0x7ff7c7e05c65
lea rdx, str.Process32FirstW_failed.
lea rcx, [rbp + 0x468]
call fcn.7ff7c7dec7f3
nop
lea rcx, [rbp + 0x468]
call fcn.7ff7c7dec262
nop
lea rcx, [rbp + 0x468]
call fcn.7ff7c7ded3c4
nop
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
xor eax, eax
jmp 0x7ff7c7e05ca7
mov rdx, qword [rbp + 0x4c0]
lea rcx, [rbp + 0x5c]
call qword [sym.imp.ucrtbased.dll__wcsicmp]
test eax, eax
jne 0x7ff7c7e05c85
mov eax, dword [rbp + 0x38]
mov dword [rbp + 0x284], eax
jmp 0x7ff7c7e05c96
lea rdx, [rbp + 0x30]
mov rcx, qword [rbp + 8]
call fcn.7ff7c7ded3e2
test eax, eax
jne 0x7ff7c7e05c65
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov eax, dword [rbp + 0x284]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x7ff7c7e2de00]
call fcn.7ff7c7ded324
mov rax, rdi
mov rcx, qword [rbp + 0x498]
xor rcx, rbp
call fcn.7ff7c7decb2c
lea rsp, [rbp + 0x4a8]
pop rdi
pop rbp
ret
Function at 0x7ff7c7decd34
Capabilities:
Terminate process

Disassembly:
jmp 0x7ff7c7e213a0
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 0x7ff7c7decf3c
Capabilities:
Get geographical location

Disassembly:
jmp 0x7ff7c7e1a720
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov r9d, 2
lea r8, [rsp + 0x40]
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x7ff7c7e1a75d
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x60]
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov edx, eax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax]
call fcn.7ff7c7ded6f8
add rsp, 0x58
ret

Function at 0x7ff7c7ded036
Capabilities:
Parse pe header

Disassembly:
jmp 0x7ff7c7e20730
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x7ff7c7e20750
xor al, al
jmp 0x7ff7c7e207d1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x7ff7c7e20763
xor al, al
jmp 0x7ff7c7e207d1
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 0x7ff7c7e2078d
xor al, al
jmp 0x7ff7c7e207d1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x7ff7c7e207a1
xor al, al
jmp 0x7ff7c7e207d1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x7ff7c7e207b3
xor al, al
jmp 0x7ff7c7e207d1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x7ff7c7e207cf
xor al, al
jmp 0x7ff7c7e207d1
mov al, 1
add rsp, 0x38
ret
Function at 0x7ff7c7ded09f
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
jmp 0x7ff7c7e05530
push rbp
push rdi
sub rsp, 0x208
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x46
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x7ff7c7e3e080]
xor rax, rbp
mov qword [rbp + 0x1c8], rax
lea rcx, [0x7ff7c7e4c114]
call fcn.7ff7c7ded71b
nop
lea rax, [rbp + 8]
mov qword [rsp + 0x20], rax
mov r9d, 2
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
je 0x7ff7c7e055d2
lea rdx, str.Failed_to_open_registry_key.
lea rcx, [rbp + 0x108]
call fcn.7ff7c7dec7f3
nop
lea rcx, [rbp + 0x108]
call fcn.7ff7c7dec262
nop
lea rcx, [rbp + 0x108]
call fcn.7ff7c7ded3c4
nop
xor al, al
jmp 0x7ff7c7e056b7
mov rcx, qword [str.C:_tempWindowsUpdate.exe]
call qword [sym.imp.ucrtbased.dll_wcslen]
lea rax, [rax + rax + 2]
mov dword [rbp + 0x1b4], eax
mov rax, qword [str.C:_tempWindowsUpdate.exe]
mov qword [rbp + 0x1b8], rax
mov rax, qword [rbp + 8]
mov qword [rbp + 0x1c0], rax
mov eax, dword [rbp + 0x1b4]
mov dword [rsp + 0x28], eax
mov rax, qword [rbp + 0x1b8]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.MyInjector
mov rcx, qword [rbp + 0x1c0]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
je 0x7ff7c7e0567c
lea rdx, str.Failed_to_set_registry_value.
lea rcx, [rbp + 0x148]
call fcn.7ff7c7dec7f3
nop
lea rcx, [rbp + 0x148]
call fcn.7ff7c7dec262
nop
lea rcx, [rbp + 0x148]
call fcn.7ff7c7ded3c4
nop
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
xor al, al
jmp 0x7ff7c7e056b7
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rdx, str.Registry_key_added_for_persistence.
lea rcx, [rbp + 0x188]
call fcn.7ff7c7dec7f3
nop
lea rcx, [rbp + 0x188]
call fcn.7ff7c7dec262
nop
lea rcx, [rbp + 0x188]
call fcn.7ff7c7ded3c4
nop
mov al, 1
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x7ff7c7e2de80]
call fcn.7ff7c7ded324
mov rax, rdi
mov rcx, qword [rbp + 0x1c8]
xor rcx, rbp
call fcn.7ff7c7decb2c
lea rsp, [rbp + 0x1d8]
pop rdi
pop rbp
ret
Function at 0x7ff7c7ded59f
Capabilities:
Write file on windows

Disassembly:
jmp 0x7ff7c7e09320
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 [0x7ff7c7e3e080]
xor rax, rbp
mov qword [rbp + 0x168], rax
lea rcx, [0x7ff7c7e4c069]
call fcn.7ff7c7ded71b
nop
mov rax, qword [rbp + 0x190]
cmp qword [rax + 0x68], 0
je 0x7ff7c7e09387
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x72]
test eax, eax
jne 0x7ff7c7e0938e
mov al, 1
jmp 0x7ff7c7e09504
mov rax, qword [rbp + 0x190]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rbp + 0x158], rax
call fcn.7ff7c7dec8a2
mov word [rbp + 0x160], ax
movzx edx, word [rbp + 0x160]
mov rcx, qword [rbp + 0x190]
call qword [rbp + 0x158]
mov word [rbp + 0x162], ax
call fcn.7ff7c7dec8a2
mov word [rbp + 0x164], ax
movzx edx, word [rbp + 0x162]
movzx ecx, word [rbp + 0x164]
call fcn.7ff7c7dec9ab
movzx eax, al
test eax, eax
je 0x7ff7c7e093f7
xor al, al
jmp 0x7ff7c7e09504
mov qword [rbp + 8], 0x20
mov rax, qword [rbp + 0x190]
mov rax, qword [rax + 0x68]
mov qword [rbp + 0x158], rax
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 rcx, qword [rbp + 0x158]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_wchar_t__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x160], eax
cmp dword [rbp + 0x160], 0
je 0x7ff7c7e0946a
cmp dword [rbp + 0x160], 1
je 0x7ff7c7e09475
cmp dword [rbp + 0x160], 3
je 0x7ff7c7e094f3
jmp 0x7ff7c7e09502
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x72], 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 0x7ff7c7e094c5
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 0x7ff7c7e094c5
xor al, al
jmp 0x7ff7c7e09504
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x72]
test eax, eax
jne 0x7ff7c7e094e0
mov dword [rbp + 0x154], 1
jmp 0x7ff7c7e094ea
mov dword [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
jmp 0x7ff7c7e09504
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x72], 0
mov al, 1
jmp 0x7ff7c7e09504
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x7ff7c7e2dd00]
call fcn.7ff7c7ded324
mov rax, rdi
mov rcx, qword [rbp + 0x168]
xor rcx, rbp
call fcn.7ff7c7decb2c
lea rsp, [rbp + 0x178]
pop rdi
pop rbp
ret
Function at 0x7ff7c7ded6c6
Capabilities:
Write file on windows

Disassembly:
jmp 0x7ff7c7e09090
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1b8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x32
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1d8]
mov rax, qword [0x7ff7c7e3e080]
xor rax, rbp
mov qword [rbp + 0x170], rax
lea rcx, [0x7ff7c7e4c069]
call fcn.7ff7c7ded71b
nop
mov rax, qword [rbp + 0x1a0]
cmp qword [rax + 0x68], 0
je 0x7ff7c7e090f7
mov rax, qword [rbp + 0x1a0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x7ff7c7e090fe
mov al, 1
jmp 0x7ff7c7e0926e
mov rax, qword [rbp + 0x1a0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rbp + 0x158], rax
call fcn.7ff7c7dec6c2
mov dword [rbp + 0x160], eax
mov edx, dword [rbp + 0x160]
mov rcx, qword [rbp + 0x1a0]
call qword [rbp + 0x158]
mov dword [rbp + 0x164], eax
call fcn.7ff7c7dec6c2
mov dword [rbp + 0x168], eax
mov edx, dword [rbp + 0x164]
mov ecx, dword [rbp + 0x168]
call fcn.7ff7c7ded239
movzx eax, al
test eax, eax
je 0x7ff7c7e09161
xor al, al
jmp 0x7ff7c7e0926e
mov qword [rbp + 8], 0x20
mov rax, qword [rbp + 0x1a0]
mov rax, qword [rax + 0x68]
mov qword [rbp + 0x158], rax
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x1a0]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rcx, qword [rbp + 0x158]
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 + 0x160], eax
cmp dword [rbp + 0x160], 0
je 0x7ff7c7e091d4
cmp dword [rbp + 0x160], 1
je 0x7ff7c7e091df
cmp dword [rbp + 0x160], 3
je 0x7ff7c7e0925d
jmp 0x7ff7c7e0926c
mov rax, qword [rbp + 0x1a0]
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 0x7ff7c7e0922f
mov rax, qword [rbp + 0x1a0]
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 0x7ff7c7e0922f
xor al, al
jmp 0x7ff7c7e0926e
mov rax, qword [rbp + 0x1a0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x7ff7c7e0924a
mov dword [rbp + 0x154], 1
jmp 0x7ff7c7e09254
mov dword [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
jmp 0x7ff7c7e0926e
mov rax, qword [rbp + 0x1a0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x7ff7c7e0926e
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x7ff7c7e2f5e0]
call fcn.7ff7c7ded324
mov rax, rdi
mov rcx, qword [rbp + 0x170]
xor rcx, rbp
call fcn.7ff7c7decb2c
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret
Function at 0x7ff7c7e1f520
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.7ff7c7ded806
movzx eax, al
test eax, eax
jne 0x7ff7c7e1f540
mov ecx, 7
call fcn.7ff7c7ded342
nop
mov byte [rsp + 0x20], 0
call fcn.7ff7c7ded3bf
mov byte [rsp + 0x21], al
cmp dword [0x7ff7c7e3f008], 1
jne 0x7ff7c7e1f564
mov ecx, 7
call fcn.7ff7c7ded342
nop
jmp 0x7ff7c7e1f5bc
cmp dword [0x7ff7c7e3f008], 0
jne 0x7ff7c7e1f5b7
mov dword [0x7ff7c7e3f008], 1
lea rdx, [0x7ff7c7e2b880]
lea rcx, [0x7ff7c7e2b550]
call fcn.7ff7c7decaeb
test eax, eax
je 0x7ff7c7e1f598
mov eax, 0xff
jmp 0x7ff7c7e1f6c1
lea rdx, [0x7ff7c7e2b440]
lea rcx, [section..rdata]
call fcn.7ff7c7ded397
mov dword [0x7ff7c7e3f008], 2
jmp 0x7ff7c7e1f5bc
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.7ff7c7ded301
call fcn.7ff7c7ded0b3
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x7ff7c7e1f619
mov rcx, qword [rsp + 0x30]
call fcn.7ff7c7dec92e
movzx eax, al
test eax, eax
je 0x7ff7c7e1f619
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 [0x7ff7c7e4e020]
nop
call fcn.7ff7c7ded1bc
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x7ff7c7e1f64d
mov rcx, qword [rsp + 0x38]
call fcn.7ff7c7dec92e
movzx eax, al
test eax, eax
je 0x7ff7c7e1f64d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.7ff7c7ded667
nop
call fcn.7ff7c7e1f730
mov dword [rsp + 0x28], eax
call fcn.7ff7c7ded036
movzx eax, al
test eax, eax
jne 0x7ff7c7e1f66c
mov ecx, dword [rsp + 0x28]
call fcn.7ff7c7dec1ef
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x7ff7c7e1f67b
call fcn.7ff7c7ded6ad
nop
xor edx, edx
mov cl, 1
call fcn.7ff7c7dec89d
mov eax, dword [rsp + 0x28]
jmp 0x7ff7c7e1f6c1
add rsp, 0x68
ret
Function at 0x140005730
Capabilities:
Read file on windows

Disassembly:
push rbx
push rdi
sub rsp, 0x78
mov rdi, rdx
mov rbx, rcx
mov rcx, rdi
xor edx, edx
mov r8d, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1400059b4
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
test eax, eax
js 0x1400059b4
jne 0x140005772
xor eax, eax
add rsp, 0x78
pop rdi
pop rbx
ret
mov qword [rsp + 0x98], rsi
lea rdx, [0x14000f71c]
mov qword [rsp + 0x68], r14
movsxd r14, eax
lea rcx, [r14 + 1]
call fcn.14000d4e4
mov rsi, rax
test rax, rax
jne 0x1400057b3
mov eax, 0xfffffffe
mov rsi, qword [rsp + 0x98]
mov r14, qword [rsp + 0x68]
add rsp, 0x78
pop rdi
pop rbx
ret
xor r8d, r8d
mov byte [r14 + rax], 0
xor edx, edx
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov r9, rdi
mov r8, r14
mov edx, 1
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rdi, rax
cmp rax, r14
je 0x1400057f1
mov rcx, rsi
call fcn.14000d17c
mov eax, 0xfffffffd
jmp 0x14000579f
mov r14, rsi
cmp rdi, 3
jb 0x140005819
cmp word [rsi], 0xbbef
jne 0x14000582d
cmp byte [rsi + 2], 0xbf
jne 0x14000582d
add rdi, 0xfffffffffffffffd
lea r14, [rsi + 3]
cmp qword [rbx], 0
jne 0x140005819
mov byte [rbx + 0x40], 1
test rdi, rdi
jne 0x14000582d
mov rcx, rsi
call fcn.14000d17c
mov eax, edi
jmp 0x14000579f
cmp rdi, 0xffffffffffffffff
jne 0x140005842
mov rcx, rsi
call fcn.14000d17c
mov eax, edi
jmp 0x14000579f
mov qword [rsp + 0x90], rbp
lea rdx, [0x14000f71c]
mov qword [rsp + 0x60], r15
lea r15, [rdi + 1]
mov rcx, r15
call fcn.14000d4e4
mov rbp, rax
test rax, rax
jne 0x140005874
mov edi, 0xfffffffe
jmp 0x140005998
mov r8, r15
mov qword [rsp + 0x70], r12
xor edx, edx
mov rcx, rbp
call sub.VCRUNTIME140.dll_memset
mov r8, rdi
mov rdx, r14
mov rcx, rbp
call sub.VCRUNTIME140.dll_memcpy
mov r12, qword [rbx]
lea rax, [0x14000f82f]
xor edi, edi
mov qword [rsp + 0x50], rbp
test r12, r12
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x40], rdi
setne r14b
mov qword [rsp + 0xa8], rdi
movzx r8d, r14b
mov qword [rsp + 0xa0], rdi
mov rcx, rbx
call fcn.1400073d0
test eax, eax
js 0x140005988
lea rax, [rsp + 0xa0]
mov rcx, rbx
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0xa8]
lea r8, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x50]
call fcn.140007580
test al, al
je 0x140005979
mov rax, qword [rsp + 0xa0]
mov rcx, rbx
mov r9, qword [rsp + 0xa8]
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov byte [rsp + 0x30], r14b
mov qword [rsp + 0x20], rax
call fcn.140004640
test eax, eax
js 0x140005988
lea rax, [rsp + 0xa0]
mov rcx, rbx
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0xa8]
lea r8, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x50]
call fcn.140007580
test al, al
jne 0x140005914
test r12, r12
je 0x14000598c
mov rcx, rbp
call fcn.14000d17c
jmp 0x140005993
mov edi, eax
jmp 0x140005993
mov qword [rbx], rbp
mov qword [rbx + 8], r15
mov r12, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x90]
mov rcx, rsi
mov r15, qword [rsp + 0x60]
call fcn.14000d17c
mov eax, edi
jmp 0x14000579f
mov eax, 0xfffffffd
add rsp, 0x78
pop rdi
pop rbx
ret