joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400338ac
Capabilities:
Get common file path

Disassembly:
jmp 0x140082730
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x438
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xa6
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x458]
mov rax, qword [0x1400c5040]
xor rax, rbp
mov qword [rbp + 0x408], rax
mov dword [rbp + 0x3f4], 0
lea rcx, [0x1400d5646]
call fcn.140034f86
lea rax, [rbp + 0x10]
mov rdi, rax
xor eax, eax
mov ecx, 0x20a
rep stosb byte [rdi], al
lea rdx, [rbp + 0x10]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [rbp + 0x234], eax
cmp dword [rbp + 0x234], 0
je 0x1400827bd
cmp dword [rbp + 0x234], 0x105
jbe 0x14008280b
lea rdx, str.____Failed_to_get_temp_path
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.14003406d
lea rdx, [0x140033fa0]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
lea rdx, [0x1400b0628]
mov rcx, qword [rbp + 0x430]
call fcn.140033a82
mov eax, dword [rbp + 0x3f4]
or eax, 1
mov dword [rbp + 0x3f4], eax
mov rax, qword [rbp + 0x430]
jmp 0x14008287d
lea rcx, [rbp + 0x10]
call qword [sym.imp.ucrtbased.dll_wcslen]
movzx eax, word [rbp + rax*2 + 0xe]
cmp eax, 0x5c
jne 0x140082857
lea rcx, [rbp + 0x10]
call qword [sym.imp.ucrtbased.dll_wcslen]
lea rax, [rax + rax - 2]
mov qword [rbp + 0x3d8], rax
cmp qword [rbp + 0x3d8], 0x20a
jae 0x140082844
jmp 0x140082849
call fcn.1400346da
xor eax, eax
mov rcx, qword [rbp + 0x3d8]
mov word [rbp + rcx + 0x10], ax
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 0x430]
call fcn.140033a82
mov eax, dword [rbp + 0x3f4]
or eax, 1
mov dword [rbp + 0x3f4], eax
mov rax, qword [rbp + 0x430]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x1400b5f10]
call fcn.140034a22
mov rax, rdi
mov rcx, qword [rbp + 0x408]
xor rcx, rbp
call fcn.140033f7d
lea rsp, [rbp + 0x418]
pop rdi
pop rbp
ret

Function at 0x1400341da
Capabilities:
Terminate process

Disassembly:
jmp 0x140096930
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 0x140034216
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x1400825b0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x20]
lea rcx, [0x1400d5646]
call fcn.140034f86
mov rcx, qword [rbp + 0x180]
call fcn.140033e47
mov qword [rbp + 8], rax
mov rax, qword [rbp + 0x188]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp + 0x188]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
movzx eax, word [rax + 0x14]
mov rcx, qword [rbp + 0x28]
lea rax, [rcx + rax + 0x18]
mov qword [rbp + 0x48], rax
mov dword [rbp + 0x64], 0
jmp 0x14008262b
mov eax, dword [rbp + 0x64]
inc eax
mov dword [rbp + 0x64], eax
mov rax, qword [rbp + 0x28]
movzx eax, word [rax + 6]
cmp dword [rbp + 0x64], eax
jae 0x1400826d3
mov eax, dword [rbp + 0x64]
imul rax, rax, 0x28
mov rcx, qword [rbp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0x88]
mov r8, qword [rbp + 8]
mov rdx, qword [rbp + 0x180]
mov rcx, rax
call fcn.140033be5
test eax, eax
jne 0x1400826ce
mov rax, qword [rbp + 0x88]
mov rcx, rax
call fcn.140033e47
cmp qword [rbp + 8], rax
jne 0x1400826ce
mov rax, qword [rbp + 0x88]
cmp dword [rax + 0xc], 0
jne 0x140082698
xor eax, eax
jmp 0x1400826d5
cmp qword [rbp + 0x190], 0
je 0x1400826b5
mov rax, qword [rbp + 0x190]
mov rcx, qword [rbp + 0x88]
mov ecx, dword [rcx + 8]
mov dword [rax], ecx
mov rax, qword [rbp + 0x88]
mov eax, dword [rax + 0xc]
mov rcx, qword [rbp + 0x188]
add rcx, rax
mov rax, rcx
jmp 0x1400826d5
jmp 0x140082623
xor eax, eax
lea rsp, [rbp + 0x168]
pop rdi
pop rbp
ret
Function at 0x1400345fe
Capabilities:
Parse pe header

Disassembly:
jmp 0x140098000
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140098020
xor al, al
jmp 0x1400980a1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140098033
xor al, al
jmp 0x1400980a1
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 0x14009805d
xor al, al
jmp 0x1400980a1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140098071
xor al, al
jmp 0x1400980a1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140098083
xor al, al
jmp 0x1400980a1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14009809f
xor al, al
jmp 0x1400980a1
mov al, 1
add rsp, 0x38
ret
Function at 0x140034bbc
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400787d0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x1400d53b3]
call fcn.140034f86
mov rax, qword [rbp + 0x120]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14007880c
xor eax, eax
jmp 0x140078839
mov rax, qword [rbp + 8]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp + 0x120]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
cmp dword [rax], 0x4550
je 0x140078835
xor eax, eax
jmp 0x140078839
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x140034f2c
Capabilities:
Write file on windows

Disassembly:
jmp 0x140063df0
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 [0x1400c5040]
xor rax, rbp
mov qword [rbp + 0x168], rax
lea rcx, [0x1400d5128]
call fcn.140034f86
mov rax, qword [rbp + 0x190]
cmp qword [rax + 0x68], 0
je 0x140063e56
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140063e5d
mov al, 1
jmp 0x140063fad
call fcn.1400338c0
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.1400338c0
mov ecx, dword [rbp + 0x160]
mov edx, ecx
mov ecx, eax
call fcn.1400348f1
movzx eax, al
test eax, eax
je 0x140063eae
xor al, al
jmp 0x140063fad
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 0x140063f13
cmp dword [rbp + 0x154], 1
je 0x140063f1e
cmp dword [rbp + 0x154], 3
je 0x140063f9c
jmp 0x140063fab
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 0x140063f6e
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 0x140063f6e
xor al, al
jmp 0x140063fad
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140063f89
mov dword [rbp + 0x154], 1
jmp 0x140063f93
mov dword [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
jmp 0x140063fad
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x140063fad
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x1400aef80]
call fcn.140034a22
mov rax, rdi
mov rcx, qword [rbp + 0x168]
xor rcx, rbp
call fcn.140033f7d
lea rsp, [rbp + 0x178]
pop rdi
pop rbp
ret
Function at 0x14003504e
Capabilities:
Print debug messages

Disassembly:
jmp 0x140094f0c
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edx, edx
mov rdi, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call fcn.1400347c5
and qword [rdi + 0x50], 0
lea rax, [0x140000000]
and dword [rdi + 0x58], 0
lea rcx, [rdi + 0x28]
and dword [rdi + 0x5c], 0
xor r8d, r8d
mov qword [rdi + 0x10], rax
xor edx, edx
mov qword [rdi + 8], rax
lea rax, [0x1400b8070]
mov qword [rdi + 0x20], rax
mov dword [rdi], 0x60
mov dword [rdi + 0x18], 0xe00
call fcn.140033efb
test eax, eax
jne 0x140094fa3
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x140094fa3
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140094f9c
lea rcx, str.ERROR_:_Unable_to_initialize_critical_section_in_CAtlBaseModule_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [0x1400c81b0], 1
mov rbx, qword [rsp + 0x30]
mov rax, rdi
add rsp, 0x20
pop rdi
ret
Function at 0x180002c40
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x180002c68
xor eax, eax
lea r8, [0x180002b10]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x38
ret

Function at 0x140001d40
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov ecx, 2
call fcn.140002290
lea rcx, str.Mingw_w64_runtime_failure:_n
mov edx, 0x1b
mov r8d, 1
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 2
call fcn.140002290
mov r8, qword [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
int3

Function at 0x1400023b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rax, qword [0x140008008]
movzx edx, word [rax]
cmp edx, 0x5a4d
jne 0x14000241c
movsxd rdx, dword [rax + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14000241c
add rax, rdx
movzx edx, word [rax + 0x18]
cmp edx, 0x20b
jne 0x14000241c
movzx edx, word [rax + 6]
test edx, edx
je 0x14000241c
sub rcx, qword [0x140008008]
movzx r8d, word [rax + 0x14]
add rax, r8
add rax, 0x18
jmp 0x140002408
add rax, 0x28
dec edx
je 0x14000241c
mov r8d, dword [rax + 0xc]
cmp rcx, r8
jb 0x140002400
add r8d, dword [rax + 8]
cmp rcx, r8
jae 0x140002400
jmp 0x14000241e
xor eax, eax
ret

Function at 0x140002420
Capabilities:
Parse pe header

Disassembly:
mov rcx, qword [0x140008008]
movzx edx, word [rcx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x140002455
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rcx + rdx], 0x4550
jne 0x140002455
movzx r8d, word [rcx + rdx + 0x18]
cmp r8d, 0x20b
jne 0x140002455
movzx eax, word [rcx + rdx + 6]
ret

Function at 0x1400024d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140008008]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x1400024fc
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1400024fc
movzx ecx, word [rax + rcx + 0x18]
cmp ecx, 0x20b
je 0x1400024fe
xor eax, eax
ret
Function at 0x1400030f0
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x14001fa48]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov dword [rsp + 0x30], 0x114
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x140003130
mov eax, 0xff
jmp 0x1400032d4
mov r9d, dword [rsp + 0x3c]
and r9d, 0x7fff
mov edx, dword [rsp + 0x34]
mov ecx, edx
shl ecx, 8
mov eax, dword [rsp + 0x38]
add ecx, eax
mov r8d, dword [rsp + 0x40]
mov dword [0x140020428], r8d
mov dword [0x140020430], ecx
mov dword [0x140020434], edx
mov dword [0x140020438], eax
mov eax, r9d
bts eax, 0xf
cmp r8d, 2
cmove eax, r9d
mov dword [0x14002042c], eax
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x1400031c6
movsxd rax, dword [0x14000003c]
lea rcx, [0x140000000]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x1400031c6
mov ecx, 0x20b
cmp word [rax + 0x18], cx
jne 0x1400031c6
xor ebx, ebx
cmp dword [rax + 0x84], 0xe
jbe 0x1400031c8
cmp dword [rax + 0xf8], ebx
setne bl
jmp 0x1400031c8
xor ebx, ebx
mov dword [rsp + 0x20], ebx
mov edi, 1
mov ecx, edi
call fcn.140006518
test eax, eax
jne 0x1400031fe
cmp dword [0x140020408], 2
je 0x1400031ea
call fcn.140006300
mov ecx, 0x1c
call fcn.14000634c
mov ecx, 0xff
call fcn.140003a70
call fcn.140006250
test eax, eax
jne 0x14000322a
cmp dword [0x140020408], 2
je 0x140003215
call fcn.140006300
mov ecx, 0x10
call fcn.14000634c
mov ecx, 0xff
call fcn.140003a70
nop
call fcn.14000658c
test eax, eax
jns 0x14000323d
mov ecx, 0x1b
call fcn.140003a8c
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov qword [0x140022468], rax
call fcn.140006dbc
mov qword [0x140020400], rax
call fcn.14000681c
test eax, eax
jns 0x140003269
mov ecx, 8
call fcn.140003a8c
call fcn.140006b8c
test eax, eax
jns 0x14000327c
mov ecx, 9
call fcn.140003a8c
mov ecx, edi
call fcn.140003af0
test eax, eax
je 0x14000328e
mov ecx, eax
call fcn.140003a8c
mov r8, qword [0x140020418]
mov qword [0x140020450], r8
mov rdx, qword [0x140020410]
mov ecx, dword [0x14002040c]
call fcn.140002c8c
mov edi, eax
mov dword [rsp + 0x24], eax
test ebx, ebx
je 0x1400032f5
call fcn.140003adc
jmp 0x1400032d2
mov eax, edi
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400039d0
mov rbx, qword [rsp + 0x170]
add rsp, 0x160
pop rdi
ret
mov ecx, eax
call fcn.140003e30
nop
mov ecx, eax
call fcn.140003a00
nop
int3
sub rsp, 0x28
call fcn.1400b3000
add rsp, 0x28
jmp 0x1400030f0

Function at 0x140004774
Capabilities:
Create directory

Disassembly:
sub rsp, 0x28
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x14000478c
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14000478e
xor eax, eax
test eax, eax
je 0x14000479e
mov ecx, eax
call fcn.140008d78
or eax, 0xffffffff
jmp 0x1400047a0
xor eax, eax
add rsp, 0x28
ret
Function at 0x14000634c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
lea r14, [0x1400190b0]
mov edi, ecx
mov rax, r14
xor ebx, ebx
cmp edi, dword [rax]
je 0x14000637e
inc ebx
add rax, 0x10
cmp ebx, 0x17
jb 0x14000636f
cmp ebx, 0x17
jae 0x1400064fa
mov ebp, 3
mov ecx, ebp
call fcn.14000f6a0
cmp eax, 1
je 0x1400064b8
mov ecx, ebp
call fcn.14000f6a0
test eax, eax
jne 0x1400063b4
cmp dword [0x14001f9f0], 1
je 0x1400064b8
cmp edi, 0xfc
je 0x1400064fa
mov ebp, 0x314
lea rdi, [0x140020470]
mov edx, ebp
lea r8, str.Runtime_Error__n_nProgram:
mov rcx, rdi
call fcn.14000a8bc
test eax, eax
je 0x1400063f6
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140008e50
mov r8d, 0x104
mov byte [0x14002058d], 0
lea rdx, [0x140020489]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x140006447
lea r8, str._program_name_unknown_
mov edx, 0x2fb
lea rcx, [0x140020489]
call fcn.14000a8bc
test eax, eax
je 0x140006447
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140008e50
lea r8, [0x14001a630]
mov rdx, rbp
mov rcx, rdi
call fcn.14000e3b8
test eax, eax
je 0x140006472
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140008e50
movsxd r8, ebx
mov rdx, rbp
add r8, r8
mov rcx, rdi
mov r8, qword [r14 + r8*8 + 8]
call fcn.14000e3b8
test eax, eax
je 0x1400064a1
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140008e50
mov r8d, 0x12010
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov rcx, rdi
call fcn.14000f6f8
jmp 0x1400064fa
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x1400064fa
movsxd rcx, ebx
add rcx, rcx
or r8, 0xffffffffffffffff
mov rdx, qword [r14 + rcx*8 + 8]
inc r8
cmp byte [rdx + r8], 0
jne 0x1400064dc
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x140006dbc
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 r14d, r14d
mov rdi, rax
test rax, rax
je 0x140006e97
mov rbx, rax
cmp word [rax], r14w
je 0x140006e0b
add rbx, 2
movzx eax, word [rbx]
test ax, ax
jne 0x140006df3
add rbx, 2
movzx eax, word [rbx]
test ax, ax
jne 0x140006df3
mov qword [rsp + 0x38], r14
sub rbx, rdi
mov qword [rsp + 0x30], r14
mov r8, rdi
sar rbx, 1
xor edx, edx
mov dword [rsp + 0x28], r14d
xor ecx, ecx
mov qword [rsp + 0x20], r14
lea r9d, [rbx + 1]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rbp, eax
test eax, eax
je 0x140006e8e
mov rcx, rbp
call fcn.140005b24
mov rsi, rax
test rax, rax
je 0x140006e8e
mov qword [rsp + 0x38], r14
lea r9d, [rbx + 1]
mov qword [rsp + 0x30], r14
mov r8, rdi
mov dword [rsp + 0x28], ebp
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x140006e80
mov rcx, rsi
call fcn.14000a664
mov rsi, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
jmp 0x140006e99
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
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 0x140008e50
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x540
mov rax, qword [0x14001fa48]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x140008ecd
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
jmp 0x140008eed
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.1400039d0
add rsp, 0x540
pop rbx
ret
Function at 0x14000ed9c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xb0
mov rax, qword [0x14001fa48]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov ebx, ecx
mov r9d, 0x78
and ecx, 0x3ff
mov rsi, r8
mov edi, edx
lea r8, [rsp + 0x20]
bts ecx, 0xa
lea edx, [r9 - 0x77]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x14000ee3c
lea rcx, [rsp + 0x20]
call fcn.14000ec90
cmp ebx, eax
je 0x14000ee35
test edi, edi
je 0x14000ee35
mov r9, qword [rsi]
xor r8d, r8d
mov dl, byte [r9]
lea rcx, [r9 + 1]
lea eax, [rdx - 0x41]
cmp al, 0x19
jbe 0x14000ee18
sub dl, 0x61
cmp dl, 0x19
ja 0x14000ee22
mov dl, byte [rcx]
inc r8d
inc rcx
jmp 0x14000ee09
or rcx, 0xffffffffffffffff
inc rcx
cmp byte [r9 + rcx], 0
jne 0x14000ee26
cmp r8d, ecx
je 0x14000ee3c
mov eax, 1
jmp 0x14000ee3e
xor eax, eax
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400039d0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14000f6f8
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x14001fa48]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r12, rdx
mov r15, rcx
call fcn.140005f5c
xor esi, esi
mov rbx, rax
cmp qword [0x1400210c0], rsi
jne 0x14000f80b
xor r8d, r8d
lea rcx, str.USER32.DLL
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x14000f8f6
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000f8f6
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov qword [0x1400210c0], rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov qword [0x1400210c8], rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov qword [0x1400210d0], rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x1400210e0], rax
mov rcx, rax
test rax, rax
je 0x14000f802
lea rdx, str.GetProcessWindowStation
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x1400210d8], rax
jmp 0x14000f812
mov rax, qword [0x1400210d8]
jmp 0x14000f819
mov rax, qword [0x1400210d8]
mov rcx, qword [0x1400210e0]
cmp rax, rbx
je 0x14000f88b
cmp rcx, rbx
je 0x14000f88b
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x1400210e0]
mov rdi, rax
call sub.KERNEL32.dll_DecodePointer
mov r14, rax
test rdi, rdi
je 0x14000f88b
test rax, rax
je 0x14000f88b
mov rax, rdi
call qword [0x140019c00]
test rax, rax
je 0x14000f885
mov r9d, 0xc
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea r8, [rsp + 0x38]
mov rcx, rax
mov rax, r14
lea edx, [r9 - 0xb]
call qword [0x140019c00]
test eax, eax
je 0x14000f885
test byte [rsp + 0x40], 1
jne 0x14000f88b
bts ebp, 0x15
jmp 0x14000f8d1
mov rcx, qword [0x1400210c8]
cmp rcx, rbx
je 0x14000f8d1
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14000f8d1
call qword [0x140019c00]
mov rsi, rax
test rax, rax
je 0x14000f8d1
mov rcx, qword [0x1400210d0]
cmp rcx, rbx
je 0x14000f8d1
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14000f8d1
mov rcx, rsi
call qword [0x140019c00]
mov rsi, rax
mov rcx, qword [0x1400210c0]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14000f8f6
mov r9d, ebp
mov r8, r12
mov rdx, r15
mov rcx, rsi
call qword [0x140019c00]
jmp 0x14000f8f8
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400039d0
add rsp, 0x50
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret