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

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001aca
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001aca
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001aca
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001aca
cmp dword [rcx + 0x84], 0xe
jbe 0x140001aca
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001acc
xor al, al
add rsp, 0x28
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 [0x14000d008]
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 [0x14000d008]
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 [0x14000d008]
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 [0x14000d008]
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 0x14005085c
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x1400506ef
xor ecx, ecx
call qword [0x140070090]
test rax, rax
je 0x1400506ef
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400506ef
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400506ef
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400506ef
cmp dword [rcx + 0x84], 0xe
jbe 0x1400506ef
cmp dword [rcx + 0xf8], 0
je 0x1400506ef
mov ecx, ebx
call fcn.140050790
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.140050580
cmp dword [rbp + 0x20], 0
je 0x14005073c
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140050744
int3
xor r8d, r8d
xor edx, edx
jmp 0x140050688
Function at 0x14000158c
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x160
mov rax, qword [0x140011020]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov r12, rcx
lea rdx, [0x14000c348]
lea rcx, [rsp + 0x80]
mov r8d, 0x10
mov dword [rsp + 0x20], 4
call fcn.140001048
mov ebx, dword [0x14000c340]
test ebx, ebx
je 0x14000174d
test bl, 7
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x78], rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov qword [rsp + 0x60], rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov qword [rsp + 0x68], rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov qword [rsp + 0x70], rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x50], rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualFree]
mov qword [rsp + 0x58], rax
lea rax, [0x140001510]
mov qword [rsp + 0x30], rax
lea rax, [0x140001518]
mov qword [rsp + 0x38], rax
lea rax, [0x140001520]
mov qword [rsp + 0x40], rax
lea rax, [0x140001528]
mov qword [rsp + 0x48], rax
je 0x14000166d
shr ebx, 3
lea ebx, [rbx*8 + 8]
lea ecx, [rbx + 0x80]
call fcn.140001980
test rax, rax
mov rdi, rax
je 0x14000174d
mov ebp, dword [0x14000c344]
lea rdx, [0x14000c358]
mov r8d, ebx
mov rcx, rax
mov rsi, rax
call fcn.140001a60
test ebx, ebx
je 0x1400016c9
add ebx, 0xffffffff
shr ebx, 3
add ebx, 1
lea rcx, [rsp + 0x80]
mov r8, rsi
mov rdx, rsi
call fcn.14000116c
add rsi, 8
sub rbx, 1
jne 0x1400016ac
mov r9d, dword [rsp + 0x20]
lea edx, [rbp + 0x400]
xor ecx, ecx
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
mov rbx, rax
je 0x14000170c
mov edx, dword [0x14000c340]
mov r9d, ebp
mov r8, rax
mov rcx, rdi
call fcn.14000138c
cmp eax, ebp
je 0x14000170c
mov rcx, rbx
call fcn.140001830
xor ebx, ebx
mov rcx, rdi
call fcn.140001830
test rbx, rbx
je 0x14000174d
lea r9, [rsp + 0x20]
mov rdx, rbp
mov r8d, 0x40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea rcx, [rsp + 0x30]
mov r8, r12
xor edx, edx
call rbx
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140001f40
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x140001f60
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
xor edx, edx
mov r8d, 0x94
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x140001fbe
cmp dword [0x1400124f8], 2
je 0x140001fa0
call fcn.140002a30
mov ecx, 0x12
call fcn.1400027f0
mov ecx, 0xff
call fcn.1400023f0
mov eax, 0xff
jmp 0x1400021c6
mov dword [rax], 0x94
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x140001fef
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, 0xff
jmp 0x1400021c6
mov r13d, dword [rbx + 0x10]
mov esi, dword [rbx + 4]
mov r12d, dword [rbx + 8]
mov edi, dword [rbx + 0xc]
and edi, 0x7fff
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp r13d, 2
je 0x140002021
bts edi, 0xf
mov eax, esi
shl eax, 8
add eax, r12d
mov dword [0x14001250c], r13d
mov dword [0x140012514], eax
mov dword [0x140012518], esi
mov dword [0x14001251c], r12d
mov dword [0x140012510], edi
cmp word [0x140000000], 0x5a4d
jne 0x1400020a7
movsxd rax, dword [0x14000003c]
lea rcx, [0x140000000]
add rax, rcx
cmp dword [rax], 0x4550
je 0x140002075
xor ebx, ebx
mov dword [rsp + 0x50], ebx
jmp 0x1400020ad
cmp word [rax + 0x18], 0x20b
je 0x140002085
xor ebx, ebx
mov dword [rsp + 0x50], ebx
jmp 0x1400020ad
cmp dword [rax + 0x84], 0xe
ja 0x140002096
xor ebx, ebx
mov dword [rsp + 0x50], ebx
jmp 0x1400020ad
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0x50], ebx
jmp 0x1400020ad
xor ebx, ebx
mov dword [rsp + 0x50], ebx
mov ecx, 1
call fcn.140002360
test eax, eax
jne 0x1400020dd
cmp dword [0x1400124f8], 2
je 0x1400020c9
call fcn.140002a30
mov ecx, 0x1c
call fcn.1400027f0
mov ecx, 0xff
call fcn.1400023f0
call fcn.140005580
test eax, eax
jne 0x140002108
cmp dword [0x1400124f8], 2
je 0x1400020f4
call fcn.140002a30
mov ecx, 0x10
call fcn.1400027f0
mov ecx, 0xff
call fcn.1400023f0
call fcn.140004e40
nop
call fcn.140004b10
test eax, eax
jns 0x140002121
mov ecx, 0x1b
call fcn.1400023c0
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov qword [0x140014578], rax
call fcn.140004940
mov qword [0x1400124e8], rax
call fcn.140004830
test eax, eax
jns 0x14000214d
mov ecx, 8
call fcn.1400023c0
call fcn.1400044a0
test eax, eax
jns 0x140002160
mov ecx, 9
call fcn.1400023c0
mov ecx, 1
call fcn.140002530
test eax, eax
je 0x140002175
mov ecx, eax
call fcn.1400023c0
mov r8, qword [0x140012538]
mov qword [0x140012540], r8
mov rdx, qword [0x140012528]
mov ecx, dword [0x140012520]
call fcn.140001814
mov edi, eax
mov dword [rsp + 0x20], eax
test ebx, ebx
jne 0x1400021a6
mov ecx, eax
call fcn.140002740
call fcn.140002760
jmp 0x1400021c4
mov eax, edi
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r13
pop r12
pop rdi
ret
sub rsp, 0x28
call fcn.1400056a0
add rsp, 0x28
jmp 0x140001f60
Function at 0x1400027f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
sub rsp, 0x30
lea r12, [0x1400111c0]
xor esi, esi
mov edi, ecx
mov rax, r12
mov ebx, esi
nop
cmp ecx, dword [rax]
je 0x14000282e
add ebx, 1
add rax, 0x10
cmp ebx, 0x17
jb 0x140002810
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
cmp ebx, 0x17
jae 0x140002a15
mov ecx, 3
call fcn.140006680
cmp eax, 1
je 0x1400029cc
mov ecx, 3
call fcn.140006680
test eax, eax
jne 0x140002865
cmp dword [0x140011030], 1
je 0x1400029cc
cmp edi, 0xfc
je 0x140002a15
mov qword [rsp + 0x50], rbp
lea rbp, [0x140012570]
lea r8, str.Runtime_Error__n_nProgram:
mov rcx, rbp
mov edx, 0x314
call fcn.1400065d0
test eax, eax
je 0x1400028a9
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140003d50
lea rdx, [0x140012589]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x14001268d], sil
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1400028f9
lea r8, str._program_name_unknown_
lea rcx, [0x140012589]
mov edx, 0x2fb
call fcn.1400065d0
test eax, eax
je 0x1400028f9
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140003d50
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [0x140012589]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 0x3c
jbe 0x140002948
lea rcx, [rcx + rbp - 0x23]
lea rdx, [0x140012884]
lea r9d, [rax + 3]
lea r8, [0x14000e914]
sub rdx, rcx
call fcn.1400064b0
test eax, eax
je 0x140002948
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140003d50
lea r8, [0x14000e910]
mov edx, 0x314
mov rcx, rbp
call fcn.1400063f0
test eax, eax
je 0x140002974
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140003d50
movsxd r8, ebx
mov edx, 0x314
mov rcx, rbp
add r8, r8
mov r8, qword [r12 + r8*8 + 8]
call fcn.1400063f0
test eax, eax
je 0x1400029a4
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140003d50
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbp
call fcn.140006190
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x140002a15
cmp rax, 0xffffffffffffffff
je 0x140002a15
xor eax, eax
movsxd rcx, ebx
lea r9, [rsp + 0x58]
add rcx, rcx
mov qword [rsp + 0x20], rsi
mov rdx, qword [r12 + rcx*8 + 8]
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x140002a30
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov ecx, 3
call fcn.140006680
cmp eax, 1
je 0x140002a62
mov ecx, 3
call fcn.140006680
test eax, eax
jne 0x140002b16
cmp dword [0x140011030], 1
jne 0x140002b16
mov qword [rsp + 0x48], rbx
lea rbx, [0x1400111c0]
mov qword [rsp + 0x30], rdi
mov rax, rbx
xor edi, edi
cmp dword [rax], 0xfc
je 0x140002a8e
add edi, 1
add rax, 0x10
cmp edi, 0x17
jb 0x140002a78
jmp 0x140002b02
cmp edi, 0x17
jae 0x140002b02
mov ecx, 3
call fcn.140006680
cmp eax, 1
je 0x140002ab9
mov ecx, 3
call fcn.140006680
test eax, eax
jne 0x140002b02
cmp dword [0x140011030], 1
jne 0x140002b02
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x140002b02
cmp rax, 0xffffffffffffffff
je 0x140002b02
movsxd rcx, edi
xor eax, eax
lea r9, [rsp + 0x40]
add rcx, rcx
mov qword [rsp + 0x20], rax
mov rdx, qword [rbx + rcx*8 + 8]
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 0xff
call fcn.1400027f0
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret

Function at 0x140003df0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x5b0
mov rbp, rcx
mov rcx, qword [0x140012898]
mov ebx, r9d
mov rdi, r8
mov rsi, rdx
call fcn.140005080
test rax, rax
je 0x140003e44
mov r10, qword [rsp + 0x5e0]
mov r9d, ebx
mov r8, rdi
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x20], r10
call rax
jmp 0x140003ed9
mov ecx, 2
call fcn.140008c60
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.140001890
mov rax, qword [rsp + 0x5b8]
mov dword [rsp + 0x40], 0xc000000d
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x140003ec5
test ebx, ebx
jne 0x140003ec5
lea ecx, [rax + 2]
call fcn.140008c60
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc000000d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
lea r11, [rsp + 0x5b0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140003fa7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140011020]
jne 0x140001f5a
rol rcx, 0x10
test cx, 0xffff
jne 0x140001f56
repz ret
ror rcx, 0x10
jmp 0x140003f00
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140012940]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140012a38]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140003f85
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140012940]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140003fa7
mov rax, qword [rsp + 0x88]
mov qword [0x140012a38], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1400129d8], rax
mov rax, qword [0x140012a38]
mov qword [0x1400128b0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1400129c0], rax
mov dword [0x1400128a0], 0xc0000409
mov dword [0x1400128a4], 1
mov rax, qword [0x140011020]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140011028]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140012938], eax
mov ecx, 1
call fcn.140008c60
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14000e9d0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140012938], 0
jne 0x14000402e
mov ecx, 1
call fcn.140008c60
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140004940
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov eax, dword [0x140012f18]
test eax, eax
jne 0x140004993
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x140004973
mov dword [0x140012f18], 1
jmp 0x1400049ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x14000498d
mov dword [0x140012f18], 2
jmp 0x140004a89
mov eax, dword [0x140012f18]
cmp eax, 1
jne 0x140004a80
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x140004ad3
cmp word [rdi], 0
mov qword [rsp + 0x50], rbp
mov rbx, rdi
mov qword [rsp + 0x58], r12
je 0x1400049d5
add rbx, 2
cmp word [rbx], 0
jne 0x1400049c1
add rbx, 2
cmp word [rbx], 0
jne 0x1400049c1
xor r12d, r12d
sub rbx, rdi
mov r8, rdi
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
sar rbx, 1
lea r9d, [rbx + 1]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
movsxd rbp, eax
je 0x140004a73
mov rcx, rbp
call fcn.140008680
test rax, rax
mov rsi, rax
je 0x140004a73
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
lea r9d, [rbx + 1]
mov r8, rdi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x140004a4d
mov rcx, rsi
call fcn.140001830
mov rsi, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbp, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x140004a59
cmp eax, 2
je 0x140004a89
test eax, eax
jne 0x140004ad3
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test rax, rax
mov rbx, rax
je 0x140004ad3
cmp byte [rax], 0
je 0x140004ab2
nop
add rax, 1
cmp byte [rax], 0
jne 0x140004aa0
add rax, 1
cmp byte [rax], 0
jne 0x140004aa0
sub eax, ebx
add eax, 1
movsxd rsi, eax
mov rcx, rsi
call fcn.140008680
test rax, rax
mov rdi, rax
jne 0x140004ae5
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140001a60
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rax, rdi
add rsp, 0x40
pop rdi
ret
Function at 0x140006190
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x50
mov edi, r8d
mov r13, rdx
mov r14, rcx
call fcn.140004f90
xor ebx, ebx
cmp qword [0x1400131a0], rbx
mov rbp, rax
mov dword [rsp + 0x98], ebx
mov dword [rsp + 0x30], ebx
jne 0x1400062bc
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x1400063cf
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400063cf
mov rcx, rax
call fcn.140004ec0
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x1400131a0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140004ec0
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x1400131a8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140004ec0
lea rcx, [rsp + 0x98]
mov qword [0x1400131b0], rax
call fcn.140002490
test eax, eax
je 0x14000626f
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.140003d50
cmp dword [rsp + 0x98], 2
jne 0x1400062bc
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140004ec0
test rax, rax
mov qword [0x1400131c0], rax
je 0x1400062bc
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140004ec0
mov qword [0x1400131b8], rax
mov rcx, qword [0x1400131b8]
mov qword [rsp + 0x80], r12
cmp rcx, rbp
je 0x140006368
cmp qword [0x1400131c0], rbp
je 0x140006368
call fcn.140005080
mov rcx, qword [0x1400131c0]
mov rsi, rax
call fcn.140005080
test rsi, rsi
mov r12, rax
je 0x140006368
test rax, rax
je 0x140006368
call rsi
test rax, rax
je 0x140006333
lea rcx, [rsp + 0x34]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x140006333
test byte [rsp + 0x40], 1
jne 0x140006368
lea rcx, [rsp + 0x30]
call fcn.1400024e0
test eax, eax
je 0x140006355
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.140003d50
cmp dword [rsp + 0x30], 4
jb 0x140006362
bts edi, 0x15
jmp 0x1400063a6
bts edi, 0x12
jmp 0x1400063a6
mov rcx, qword [0x1400131a8]
cmp rcx, rbp
je 0x1400063a6
call fcn.140005080
test rax, rax
je 0x1400063a6
call rax
test rax, rax
mov rbx, rax
je 0x1400063a6
mov rcx, qword [0x1400131b0]
cmp rcx, rbp
je 0x1400063a6
call fcn.140005080
test rax, rax
je 0x1400063a6
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1400131a0]
call fcn.140005080
mov r12, qword [rsp + 0x80]
test rax, rax
je 0x1400063cf
mov r9d, edi
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x1400063d1
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000b3f0
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140011020]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x20]
mov r9d, 6
mov edx, 0x1004
mov byte [rsp + 0x26], 0
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x14000b437
or eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140001f40
add rsp, 0x38
ret
lea rcx, [rsp + 0x20]
call fcn.14000b6f0
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140001f40
add rsp, 0x38
ret
Function at 0x1400015e0
Capabilities:
Manipulate console buffer

Disassembly:
push rdi
sub rsp, 0x60
mov rax, qword [0x140072180]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor eax, eax
mov ecx, 0xfffffff5
mov dword [rsp + 0x30], eax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
lea rdx, [rsp + 0x38]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
movsx ecx, word [rsp + 0x38]
lea rax, [rsp + 0x34]
movsx r8d, word [rsp + 0x3a]
mov dl, 0x20
mov r9d, dword [rsp + 0x30]
imul r8d, ecx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
movsx eax, word [rsp + 0x38]
mov edx, 7
movsx r8d, word [rsp + 0x3a]
mov rcx, rdi
mov r9d, dword [rsp + 0x30]
imul r8d, eax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
mov edx, dword [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140052190
add rsp, 0x60
pop rdi
ret