joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1408f9dd0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x98
lea rdx, str.SystemCurrentControlSetServices_
lea rcx, [rsp + 0x58]
call fcn.1408eff40
nop
mov rdx, qword [rsp + 0xa8]
lea rcx, [rsp + 0x58]
call fcn.1408f5350
lea rcx, [rsp + 0x58]
call fcn.1408eff30
lea r8, [rsp + 0x48]
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x1408f9e48
mov byte [rsp + 0x34], 0
lea rcx, [rsp + 0x58]
call fcn.1408f5370
movzx eax, byte [rsp + 0x34]
jmp 0x1408fa004
mov byte [rsp + 0x35], 1
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x35]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Type
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x1408f9e9e
mov byte [rsp + 0x36], 0
lea rcx, [rsp + 0x58]
call fcn.1408f5370
movzx eax, byte [rsp + 0x36]
jmp 0x1408fa004
mov byte [rsp + 0x37], 3
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x37]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.ErrorControl
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x1408f9ef4
mov byte [rsp + 0x38], 0
lea rcx, [rsp + 0x58]
call fcn.1408f5370
movzx eax, byte [rsp + 0x38]
jmp 0x1408fa004
mov byte [rsp + 0x39], 3
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x39]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Start
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x1408f9f4a
mov byte [rsp + 0x3a], 0
lea rcx, [rsp + 0x58]
call fcn.1408f5370
movzx eax, byte [rsp + 0x3a]
jmp 0x1408fa004
mov rcx, qword [rsp + 0xa0]
call fcn.1408f5250
mov dword [rsp + 0x50], eax
mov rcx, qword [rsp + 0xa0]
call fcn.1408eff30
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x80], rax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.ImagePath
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x1408f9fcb
mov byte [rsp + 0x3b], 0
lea rcx, [rsp + 0x58]
call fcn.1408f5370
movzx eax, byte [rsp + 0x3b]
jmp 0x1408fa004
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x1408f9fe4
mov dword [rsp + 0x40], 1
jmp 0x1408f9fec
mov dword [rsp + 0x40], 0
movzx eax, byte [rsp + 0x40]
mov byte [rsp + 0x3c], al
lea rcx, [rsp + 0x58]
call fcn.1408f5370
movzx eax, byte [rsp + 0x3c]
add rsp, 0x98
ret
Function at 0x1408fb460
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x68], 0
je 0x1408fb499
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call 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]
jmp 0x1408fb587
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x50], 0
jle 0x1408fb52f
cmp qword [rsp + 0x20], 0
jle 0x1408fb52f
mov rax, qword [rsp + 0x20]
cmp qword [rsp + 0x50], rax
jge 0x1408fb4d9
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x48]
mov rcx, rax
call fcn.1408f0110
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
cmp qword [rsp + 0x50], 0
jle 0x1408fb577
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x80], 0
je 0x1408fb577
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.api_ms_win_crt_stdio_l1_1_0.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 + 0x28]
sub rcx, rax
mov rax, rcx
add rsp, 0x38
ret
Function at 0x1408fb590
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
cmp qword [rsp + 0x80], 0
jg 0x1408fb5b5
xor eax, eax
jmp 0x1408fb77b
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x68], 0
je 0x1408fb5de
mov r8, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call 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]
jmp 0x1408fb77b
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const___ptr64]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jbe 0x1408fb67d
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x20]
call fcn.1408efb60
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const___ptr64]
mov r8, qword [rsp + 0x28]
mov rdx, rax
mov rcx, qword [rsp + 0x78]
call fcn.1408f0110
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x80], 0
je 0x1408fb76b
mov rcx, qword [rsp + 0x70]
call fcn.1408fc650
mov qword [rsp + 0x58], 0xfff
cmp qword [rsp + 0x20], 0xfff
jbe 0x1408fb71e
mov rax, qword [rsp + 0x70]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x30], 0xfff
je 0x1408fb71c
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
jmp 0x1408fb77b
jmp 0x1408fb6a3
cmp qword [rsp + 0x20], 0
jbe 0x1408fb76b
mov rax, qword [rsp + 0x70]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x20]
mov edx, 1
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
add rsp, 0x68
ret
Function at 0x1408fc710
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov rax, qword [rsp + 0xb0]
cmp qword [rax + 0x68], 0
je 0x1408fc73b
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1408fc742
mov al, 1
jmp 0x1408fc89c
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x50], rax
call fcn.1408fd300
mov dword [rsp + 0x38], eax
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0xb0]
call qword [rsp + 0x50]
mov dword [rsp + 0x3c], eax
call fcn.1408fd300
mov dword [rsp + 0x40], eax
lea rdx, [rsp + 0x3c]
lea rcx, [rsp + 0x40]
call fcn.1408fd360
movzx eax, al
test eax, eax
je 0x1408fc799
xor al, al
jmp 0x1408fc89c
mov qword [rsp + 0x68], 0x20
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x68]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x90]
mov rcx, qword [rsp + 0xb0]
add rcx, 0x74
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rsp + 0x70]
mov rdx, rcx
mov rcx, qword [rsp + 0x58]
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]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x1408fc809
cmp dword [rsp + 0x30], 1
je 0x1408fc815
cmp dword [rsp + 0x30], 3
je 0x1408fc88a
jmp 0x1408fc89a
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x71], 0
lea rax, [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jbe 0x1408fc861
mov rax, qword [rsp + 0xb0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x48]
mov edx, 1
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp qword [rsp + 0x48], rax
je 0x1408fc861
xor al, al
jmp 0x1408fc89c
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1408fc87b
mov dword [rsp + 0x34], 1
jmp 0x1408fc883
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
jmp 0x1408fc89c
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x1408fc89c
xor al, al
add rsp, 0xa8
ret
Function at 0x140900940
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.HARDWARERESOURCEMAPSystem_ResourcesPhysical_Memory
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
xor r8d, r8d
lea rdx, str..Translated
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [rsp + 0x34]
mov ecx, eax
call fcn.1409090f4
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
xor r8d, r8d
lea rdx, str..Translated
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x4c], eax
mov rax, qword [rsp + 0x40]
add rax, 0x18
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0
jmp 0x140900a16
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x4c]
cmp dword [rsp + 0x30], eax
jae 0x140900a52
mov rax, qword [rsp + 0x38]
add rax, 8
mov r9, rax
mov r8, qword [rsp + 0x38]
lea rdx, [rsp + 0x68]
lea rcx, [0x1409710f0]
call fcn.1408f6060
mov rax, qword [rsp + 0x38]
add rax, 0x14
mov qword [rsp + 0x38], rax
jmp 0x140900a0c
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.140908d40
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
add rsp, 0x88
ret
Function at 0x140900a80
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x24], 0
lea r9, [rsp + 0x24]
mov r8d, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x28]
mov ecx, 0xb
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xc0000004
jne 0x140900b14
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [rsp + 0x24]
mov r9d, 4
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x24]
mov r8d, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x28]
mov ecx, 0xb
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [rsp + 0x30], eax
jmp 0x140900ab8
cmp dword [rsp + 0x30], 0
jge 0x140900b35
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x140900c2b
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x20], 0
jmp 0x140900b53
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax]
cmp dword [rsp + 0x20], eax
jae 0x140900c16
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x128
mov rcx, qword [rsp + 0x38]
lea rax, [rcx + rax + 8]
mov ecx, dword [rsp + 0x20]
imul rcx, rcx, 0x128
mov rdx, qword [rsp + 0x38]
movzx ecx, word [rdx + rcx + 0x2e]
lea rax, [rax + rcx + 0x28]
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.1408eff40
lea rcx, [rsp + 0x50]
call fcn.1408eff30
mov rdx, qword [rsp + 0x80]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x140900c07
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x128
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx + rax + 0x18]
mov qword [rsp + 0x40], rax
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x50]
call fcn.1408f5370
mov rax, qword [rsp + 0x48]
jmp 0x140900c2b
lea rcx, [rsp + 0x50]
call fcn.1408f5370
jmp 0x140900b49
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
add rsp, 0x78
ret
Function at 0x1409016f0
Capabilities:
Load ntoskrnl

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xc8
lea rcx, [0x140971138]
call fcn.1408ff2f0
test rax, rax
jne 0x140901724
movzx eax, word [0x140971160]
test eax, eax
jne 0x140901724
cmp qword [0x140971168], 0
je 0x140901729
jmp 0x1409018f2
lea rcx, [0x1409582a8]
call fcn.1408eedf0
mov r8b, 1
mov rdx, rax
lea rcx, [0x140957e88]
call fcn.140900c30
mov dword [0x14097115c], eax
xor edx, edx
mov eax, dword [0x14097115c]
mov ecx, 0x1000
div ecx
mov eax, edx
mov word [0x140971160], ax
mov r8d, 1
xor edx, edx
lea rcx, [0x140957e98]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov qword [0x140971168], rax
lea rcx, [rsp + 0x98]
call fcn.140902610
nop
lea rax, [0x1409710f0]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
call fcn.1409027a0
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
call fcn.140902770
jmp 0x1409017c5
lea rcx, [rsp + 0x40]
call fcn.1409026f0
movzx edx, byte [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.140902730
movzx eax, al
test eax, eax
je 0x140901877
lea rcx, [rsp + 0x40]
call fcn.140902710
lea rcx, [rsp + 0x88]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x58], rax
lea rax, [0x140901940]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x88]
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0xb0]
call fcn.140903b80
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x98]
call fcn.140901910
nop
lea rcx, [rsp + 0xb0]
call fcn.140900730
jmp 0x1409017bb
lea rax, [rsp + 0x98]
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x50]
call fcn.1408f9030
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x50]
call fcn.1409025e0
mov qword [rsp + 0x78], rax
jmp 0x1409018b2
mov rax, qword [rsp + 0x38]
add rax, 0x10
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x38], rax
je 0x1409018da
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x80], rax
mov rcx, qword [rsp + 0x80]
call fcn.1409007f0
jmp 0x1409018a4
mov rax, qword [rsp + 0xe0]
mov byte [rax], 0
lea rcx, [rsp + 0x98]
call fcn.1409025f0
mov rax, qword [rsp + 0xe0]
add rsp, 0xc8
pop rdi
pop rsi
ret
Function at 0x140904b90
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x30]
call fcn.140905520
nop
lea rax, [0x1409055c0]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x60]
add rax, 8
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x30]
call fcn.1408f9030
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rsp + 0x40]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov rcx, qword [rsp + 0x60]
mov qword [rcx], rax
mov rax, qword [rsp + 0x60]
cmp qword [rax], 0
je 0x140904c36
lea rcx, [rsp + 0x30]
call fcn.1408ff0b0
jmp 0x140904c4e
mov rax, qword [rsp + 0x60]
mov dword [rax + 8], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
lea rcx, [rsp + 0x30]
call fcn.140905170
add rsp, 0x58
ret
Function at 0x1409081a4
Capabilities:
Get geographical location

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

Function at 0x1409088c0
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.1409082b8
mov ebx, eax
test eax, eax
jne 0x1409088f0
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x140908953
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14090894a
test al, 0x10
je 0x14090894a
bt eax, 0xa
jae 0x140908943
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.140908964
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x14090893f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x14090893f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
test edi, edi
jne 0x14090894a
and dword [rsp + 0x3c], 0
jmp 0x14090894f
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 0x1409098f4
Capabilities:
Parse pe header

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

Disassembly:
push rbx
sub rsp, 0x20
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
je 0x140001334
lea rdx, str.NtClose
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtMapViewOfSection
mov rcx, rbx
mov qword [0x1400490e8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtSetInformationFile
mov rcx, rbx
mov qword [0x1400490b0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.RtlInitUnicodeString
mov rcx, rbx
mov qword [0x140049088], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtSetInformationProcess
mov rcx, rbx
mov qword [0x140049080], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.RtlAdjustPrivilege
mov rcx, rbx
mov qword [0x1400490c8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtCreateSection
mov rcx, rbx
mov qword [0x1400490a8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtOpenFile
mov rcx, rbx
mov qword [0x1400490d8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtWriteFile
mov rcx, rbx
mov qword [0x1400490f8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x1400490e8], 0
mov qword [0x1400490a0], rax
je 0x14000132b
cmp qword [0x1400490b0], 0
je 0x14000132b
cmp qword [0x140049088], 0
je 0x14000132b
cmp qword [0x140049080], 0
je 0x14000132b
cmp qword [0x1400490c8], 0
je 0x14000132b
cmp qword [0x1400490a8], 0
je 0x14000132b
cmp qword [0x1400490d8], 0
je 0x14000132b
cmp qword [0x1400490f8], 0
je 0x14000132b
test rax, rax
jne 0x140001334
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
add rsp, 0x20
pop rbx
ret

Function at 0x14000133c
Capabilities:
Parse pe header

Disassembly:
mov r9d, 0x5a4d
mov r8d, 0x400
mov r10d, 0x4550
test rcx, rcx
je 0x140001370
cmp word [rcx], r9w
jne 0x140001370
cmp dword [rcx + 0x3c], r8d
jg 0x140001370
movsxd rax, dword [rcx + 0x3c]
cmp dword [rax + rcx], r10d
jne 0x140001370
movzx edx, word [rax + rcx + 4]
jmp 0x140001372
xor edx, edx
test rcx, rcx
je 0x140001398
cmp word [rcx], r9w
jne 0x140001398
cmp dword [rcx + 0x3c], r8d
jg 0x140001398
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], r10d
jne 0x140001398
mov ecx, 0x8664
mov eax, dword [rax + 0x28]
ret
xor eax, eax
ret