joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004cc90
Capabilities:
Get file version info

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x670
mov qword [rsp + 0x190], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1400990c0]
xor rax, rsp
mov qword [rsp + 0x660], rax
mov rbx, r8
mov r14, rdx
mov qword [rsp + 0xa0], rdx
mov qword [rsp + 0x1c0], rdx
mov rax, qword [0x140256080]
add rax, 0xe0
mov qword [rsp + 0x58], rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [rsp + 0x60], 1
mov qword [rsp + 0x98], rbx
xor r12d, r12d
mov qword [rsp + 0x90], r12
mov rdx, qword [0x140256080]
add rdx, 0x90
mov rdi, qword [rdx + 8]
mov rax, qword [rdi + 8]
mov rcx, rdi
cmp byte [rax + 0x29], r12b
jne 0x14004cd4c
cmp qword [rax + 0x18], rbx
jae 0x14004cd40
mov rax, qword [rax + 0x10]
jmp 0x14004cd46
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x29], r12b
je 0x14004cd34
mov qword [rsp + 0x178], rcx
mov qword [rsp + 0x170], rdx
cmp rcx, rdi
je 0x14004cd71
cmp rbx, qword [rcx + 0x18]
jb 0x14004cd71
lea rcx, [rsp + 0x170]
jmp 0x14004cd89
mov qword [rsp + 0x168], rdi
mov qword [rsp + 0x160], rdx
lea rcx, [rsp + 0x160]
lea rdi, [rsp + 0x1d0]
mov rax, qword [rcx]
mov qword [rdi], rax
mov rax, qword [rcx + 8]
mov qword [rdi + 8], rax
mov r13, qword [rdx + 8]
mov rdi, qword [rsp + 0x1d0]
test rdi, rdi
je 0x14004cdb5
cmp rdi, rdx
je 0x14004cdba
call fcn.140054320
mov rsi, qword [rsp + 0x1d8]
cmp rsi, r13
je 0x14004cddd
test rdi, rdi
jne 0x14004cdd1
call fcn.140054320
cmp rsi, qword [rdi + 8]
jne 0x14004cddd
call fcn.140054320
nop
lea rcx, [0x140081eb0]
jmp 0x14069b0f4

Function at 0x140050460
Capabilities:
Encode data using xor

Disassembly:
call fcn.140426e46
mov qword [rsp], 0xffffffffeadc53ef
call fcn.14050293a
push rax
jbe 0x140024d90
invalid
add al, 0
add byte [rax - 0x39], cl
and al, 0x70
invalid
mov qword [rsp + 0x28], 0x52babd01
mov r12, qword [rsp + 0x20]
je 0x140024d54
call fcn.1403d5e23
jrcxz 0x140050489
in al, dx
int3
and al, byte [0x140061df9]
add byte [rax], al
pop rax
cmp al, byte [rax + rax]
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add eax, dword [rax]
add byte [rax], al
invalid
lea esp, [rsp + 0x30]
call fcn.14050293a
jrcxz 0x140050460
int3

Function at 0x1400506e0
Capabilities:
Query or enumerate registry value
Set environment variable
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0xe0
mov rax, qword [0x1400990c0]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov ebp, ecx
lea rcx, [0x140082148]
mov esi, edx
jmp 0x14069d2b4

Function at 0x140050850
Capabilities:
Query or enumerate registry value
Set environment variable
Set registry value

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0xe0
mov rax, qword [0x1400990c0]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov edi, ecx
lea rcx, [0x140082178]
mov ebp, edx
jmp 0x14069d4d7
Function at 0x1400528e8
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x1400990c0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call fcn.1400577f0
and qword [rbx + 0x50], 0
and dword [rbx + 0x58], 0
and dword [rbx + 0x5c], 0
lea rax, [0x140000000]
mov esi, 0x94
lea rcx, [rsp + 0x20]
mov r8, rsi
xor edx, edx
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rax
mov dword [rbx], 0x60
mov byte [rbx + 0x18], 0
call fcn.1400577f0
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x30], 2
mov esi, 1
jne 0x14005297b
cmp dword [rsp + 0x24], 5
jb 0x140052995
jmp 0x140052991
cmp dword [rsp + 0x30], esi
jne 0x140052995
cmp dword [rsp + 0x24], 4
ja 0x140052991
jne 0x140052995
cmp dword [rsp + 0x28], 0
jbe 0x140052995
mov byte [rbx + 0x18], sil
lea rax, [0x14006ea98]
lea rcx, [rbx + 0x28]
mov dword [rbx + 0x1c], 0x800
mov qword [rbx + 0x20], rax
call fcn.140052728
movzx ecx, byte [0x1402561ec]
test eax, eax
mov rax, rbx
cmovs ecx, esi
mov byte [0x1402561ec], cl
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400536d0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140053330
Capabilities:
Create thread
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r12
sub rsp, 0x30
xor ebx, ebx
test rcx, rcx
mov rbp, r8
mov r12d, edx
mov rsi, rcx
jne 0x14005337d
call fcn.140058870
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
mov dword [rax], SafeArrayGetElement
call fcn.140054210
or rax, 0xffffffffffffffff
jmp 0x140053412
mov qword [rsp + 0x40], rdi
call fcn.140057f50
mov edx, 0x2d8
mov ecx, 1
call fcn.1400589d0
test rax, rax
mov rdi, rax
je 0x1400533f6
call fcn.140058190
mov rcx, rdi
mov rdx, qword [rax + 0xc0]
call fcn.140057f70
lea r8, [0x140053290]
mov rdx, r12
mov r9, rdi
xor ecx, ecx
mov qword [rsp + 0x28], rdi
mov qword [rdi + 0x90], rsi
mov qword [rdi + 0x98], rbp
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
mov rbx, rax
mov qword [rdi + 8], rax
jne 0x140053428
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call fcn.1400539d0
test ebx, ebx
je 0x140053409
mov ecx, ebx
call fcn.1400588d0
or rax, 0xffffffffffffffff
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x140053440
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x1400533f6
mov rax, rbx
jmp 0x14005340d
Function at 0x140053760
Capabilities:
Get system information on windows

Disassembly:
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0xb0
lea rbp, [rsp + 0x30]
mov qword [rbp + 0xb0], rbx
mov qword [rbp + 0xb8], rsi
mov qword [rbp + 0xc0], rdi
mov rax, qword [0x1400990c0]
xor rax, rbp
mov qword [rbp + 0x70], rax
mov eax, dword [rsp]
xor ebx, ebx
mov dword [rbp], ebx
sub rsp, 0x10
lea r13, [rsp + 0x30]
mov eax, dword [r13]
lea r8d, [rbx + 0x30]
lea rdx, [rbp + 0x10]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400538cc
mov r14, qword [rbp + 0x18]
lea rcx, [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [rbp + 0x44]
lea rcx, [rbp]
call fcn.140055230
test eax, eax
je 0x1400537fa
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.140054170
mov ecx, dword [rbp]
cmp ecx, 2
jne 0x140053842
lea rcx, [0x140073e18]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x14005383f
lea rdx, str.SetThreadStackGuarantee
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14005383f
lea rcx, [rbp + 4]
mov dword [rbp + 4], ebx
call rax
cmp eax, 1
jne 0x14005383f
mov eax, dword [rbp + 4]
test eax, eax
cmovne ebx, eax
mov ecx, dword [rbp]
mov r15d, 1
lea r8d, [rdi - 1]
lea edx, [rbx + rdi - 1]
cmp ecx, r15d
mov eax, r8d
mov esi, 0x104
not eax
cmove esi, r15d
and edx, eax
je 0x140053867
add edx, edi
lea eax, [rdi + rdi]
mov ebx, r8d
cmp edx, eax
not rbx
cmovb edx, eax
and rbx, r13
mov eax, SafeArrayLock
mov r12d, edx
sub rbx, r12
cmp ecx, r15d
cmove edi, eax
mov eax, edi
add rax, r14
cmp rbx, rax
jb 0x1400538cc
mov r9d, 4
mov r8d, 0x1000
mov rdx, r12
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x1400538cc
lea r9, [rbp + 8]
mov r8d, esi
mov rdx, r12
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1400538cc
mov eax, r15d
jmp 0x1400538ce
xor eax, eax
mov rcx, qword [rbp + 0x70]
xor rcx, rbp
call fcn.1400536d0
mov rbx, qword [rbp + 0xb0]
mov rsi, qword [rbp + 0xb8]
mov rdi, qword [rbp + 0xc0]
lea rsp, [rbp + 0x80]
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140054210
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 [0x1402535e0]
mov ebx, r9d
mov rdi, r8
mov rsi, rdx
call fcn.140057e60
test rax, rax
je 0x140054264
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 0x1400542f9
mov ecx, 2
call fcn.14005b820
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.1400577f0
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 0x1400542e5
test ebx, ebx
jne 0x1400542e5
lea ecx, [rax + 2]
call fcn.14005b820
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 0x140054320
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x5b8
mov rcx, qword [0x1402535e0]
call fcn.140057e60
test rax, rax
je 0x140054355
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], 0
call rax
add rsp, 0x5b8
ret
mov ecx, 2
mov qword [rsp + 0x5b0], rbx
call fcn.14005b820
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.1400577f0
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 0x1400543de
test ebx, ebx
jne 0x1400543de
lea ecx, [rax + 2]
call fcn.14005b820
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc000000d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rbx, qword [rsp + 0x5b0]
add rsp, 0x5b8
ret
Function at 0x140058b90
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
sub rsp, 0x30
lea r12, reloc.OLEAUT32.dll_SysReAllocString
xor esi, esi
mov edi, ecx
mov rax, r12
mov ebx, esi
nop
cmp ecx, dword [rax]
je 0x140058bce
add ebx, 1
add rax, 0x10
cmp ebx, 0x17
jb 0x140058bb0
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
cmp ebx, 0x17
jae 0x140058db5
mov ecx, 3
call fcn.140064ce0
cmp eax, 1
je 0x140058d6c
mov ecx, 3
call fcn.140064ce0
test eax, eax
jne 0x140058c05
cmp dword [reloc.OLEAUT32.dll_SysReAllocString], 1
je 0x140058d6c
cmp edi, 0xfc
je 0x140058db5
mov qword [rsp + 0x50], rbp
lea rbp, [0x140253670]
lea r8, str.Runtime_Error__n_nProgram:
mov rcx, rbp
mov edx, 0x314
call fcn.140053c40
test eax, eax
je 0x140058c49
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140054170
lea rdx, [0x140253689]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x14025378d], sil
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x140058c99
lea r8, str._program_name_unknown_
lea rcx, [0x140253689]
mov edx, 0x2fb
call fcn.140053c40
test eax, eax
je 0x140058c99
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140054170
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [0x140253689]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 0x3c
jbe 0x140058ce8
lea rcx, [rcx + rbp - 0x23]
lea rdx, [0x140253984]
lea r9d, [rax + 3]
lea r8, [0x14006f284]
sub rdx, rcx
call fcn.140064bc0
test eax, eax
je 0x140058ce8
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140054170
lea r8, [0x14006f280]
mov edx, 0x314
mov rcx, rbp
call fcn.1400569b0
test eax, eax
je 0x140058d14
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140054170
movsxd r8, ebx
mov edx, 0x314
mov rcx, rbp
add r8, r8
mov r8, qword [r12 + r8*8 + 8]
call fcn.1400569b0
test eax, eax
je 0x140058d44
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140054170
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbp
call fcn.140064960
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 0x140058db5
cmp rax, 0xffffffffffffffff
je 0x140058db5
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 0x140058dd0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov ecx, 3
call fcn.140064ce0
cmp eax, 1
je 0x140058e02
mov ecx, 3
call fcn.140064ce0
test eax, eax
jne 0x140058eb6
cmp dword [reloc.OLEAUT32.dll_SysReAllocString], 1
jne 0x140058eb6
mov qword [rsp + 0x48], rbx
lea rbx, reloc.OLEAUT32.dll_SysReAllocString
mov qword [rsp + 0x30], rdi
mov rax, rbx
xor edi, edi
cmp dword [rax], 0xfc
je 0x140058e2e
add edi, 1
add rax, 0x10
cmp edi, 0x17
jb 0x140058e18
jmp 0x140058ea2
cmp edi, 0x17
jae 0x140058ea2
mov ecx, 3
call fcn.140064ce0
cmp eax, 1
je 0x140058e59
mov ecx, 3
call fcn.140064ce0
test eax, eax
jne 0x140058ea2
cmp dword [reloc.OLEAUT32.dll_SysReAllocString], 1
jne 0x140058ea2
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x140058ea2
cmp rax, 0xffffffffffffffff
je 0x140058ea2
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.140058b90
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret

Function at 0x140059017
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1400990c0]
jne 0x1400536ea
rol rcx, 0x10
test cx, 0xffff
jne 0x1400536e6
repz ret
ror rcx, 0x10
jmp 0x140058f70
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140253a40]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140253b38]
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 0x140058ff5
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, [0x140253a40]
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 0x140059017
mov rax, qword [rsp + 0x88]
mov qword [0x140253b38], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140253ad8], rax
mov rax, qword [0x140253b38]
mov qword [0x1402539b0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140253ac0], rax
mov dword [0x1402539a0], 0xc0000409
mov dword [0x1402539a4], 1
mov rax, qword [0x1400990c0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1400990c8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140253a38], eax
mov ecx, 1
call fcn.14005b820
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14006f2c0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140253a38], 0
jne 0x14005909e
mov ecx, 1
call fcn.14005b820
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 0x1400618d0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov eax, dword [0x1402544dc]
xor r12d, r12d
test eax, eax
mov ebp, r12d
jne 0x14006192c
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x14006190c
mov dword [0x1402544dc], 1
jmp 0x14006193f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x140061926
mov dword [0x1402544dc], 2
jmp 0x1400619a9
mov eax, dword [0x1402544dc]
cmp eax, 1
jne 0x1400619a0
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x14006197a
cmp word [rdi], bp
mov rax, rdi
je 0x140061959
add rax, 2
cmp word [rax], bp
jne 0x140061947
add rax, 2
cmp word [rax], bp
jne 0x140061947
sub eax, edi
add eax, 2
movsxd rsi, eax
mov rcx, rsi
call fcn.140058960
test rax, rax
mov rbx, rax
jne 0x140061981
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x140061a9b
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call fcn.1400565c0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbx
jmp 0x140061a9b
cmp eax, 2
je 0x1400619a9
test eax, eax
jne 0x14006197a
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test rax, rax
mov rsi, rax
je 0x14006197a
cmp byte [rax], bpl
mov rbx, rax
je 0x1400619f8
nop
or r9d, 0xffffffff
mov r8, rbx
xor ecx, ecx
lea edx, [r9 + 2]
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x14006197a
or rcx, 0xffffffffffffffff
add ebp, eax
mov rdi, rbx
xor eax, eax
repne scasb al, byte [rdi]
not rcx
add rbx, rcx
cmp byte [rbx], al
jne 0x1400619c0
add ebp, 1
mov edx, 2
movsxd rcx, ebp
call fcn.1400589d0
test rax, rax
mov r12, rax
jne 0x140061a1d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
jmp 0x140061a9b
cmp byte [rsi], 0
mov qword [rsp + 0x50], r13
mov rbx, rax
mov r13, rsi
je 0x140061a85
nop
or r9d, 0xffffffff
mov eax, ebp
mov rcx, rbx
sub rcx, r12
lea edx, [r9 + 2]
mov r8, r13
sar rcx, 1
sub eax, ecx
xor ecx, ecx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x140061aae
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r13
repne scasb al, byte [rdi]
mov rdi, rbx
not rcx
add r13, rcx
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
cmp byte [r13], al
not rcx
lea rbx, [rbx + rcx*2]
jne 0x140061a30
mov rcx, rsi
mov word [rbx], 0
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov rax, r12
mov r13, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
mov rcx, r12
call fcn.1400539d0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
jmp 0x140061a96
Function at 0x140064960
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.140057d70
xor ebx, ebx
cmp qword [0x1402544e8], rbx
mov rbp, rax
mov dword [rsp + 0x98], ebx
mov dword [rsp + 0x30], ebx
jne 0x140064a8c
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x140064b9f
lea rdx, [0x14006f538]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140064b9f
mov rcx, rax
call fcn.140057ca0
lea rdx, [0x14006f528]
mov rcx, rsi
mov qword [0x1402544e8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140057ca0
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x1402544f0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140057ca0
lea rcx, [rsp + 0x98]
mov qword [0x1402544f8], rax
call fcn.140055230
test eax, eax
je 0x140064a3f
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.140054170
cmp dword [rsp + 0x98], 2
jne 0x140064a8c
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140057ca0
test rax, rax
mov qword [0x140254508], rax
je 0x140064a8c
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140057ca0
mov qword [0x140254500], rax
mov rcx, qword [0x140254500]
mov qword [rsp + 0x80], r12
cmp rcx, rbp
je 0x140064b38
cmp qword [0x140254508], rbp
je 0x140064b38
call fcn.140057e60
mov rcx, qword [0x140254508]
mov rsi, rax
call fcn.140057e60
test rsi, rsi
mov r12, rax
je 0x140064b38
test rax, rax
je 0x140064b38
call rsi
test rax, rax
je 0x140064b03
lea rcx, [rsp + 0x34]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x140064b03
test byte [rsp + 0x40], 1
jne 0x140064b38
lea rcx, [rsp + 0x30]
call fcn.140055280
test eax, eax
je 0x140064b25
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.140054170
cmp dword [rsp + 0x30], 4
jb 0x140064b32
bts edi, 0x15
jmp 0x140064b76
bts edi, 0x12
jmp 0x140064b76
mov rcx, qword [0x1402544f0]
cmp rcx, rbp
je 0x140064b76
call fcn.140057e60
test rax, rax
je 0x140064b76
call rax
test rax, rax
mov rbx, rax
je 0x140064b76
mov rcx, qword [0x1402544f8]
cmp rcx, rbp
je 0x140064b76
call fcn.140057e60
test rax, rax
je 0x140064b76
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1402544e8]
call fcn.140057e60
mov r12, qword [rsp + 0x80]
test rax, rax
je 0x140064b9f
mov r9d, edi
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x140064ba1
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400661b0
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1400990c0]
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 0x1400661f7
or eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400536d0
add rsp, 0x38
ret
lea rcx, [rsp + 0x20]
call fcn.140055b00
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400536d0
add rsp, 0x38
ret
Function at 0x14006a9d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rbp
push r14
sub rsp, 0x20
xor ebx, ebx
test rcx, rcx
mov r14, rdx
mov rbp, rcx
je 0x14006aa84
movsxd rax, dword [rcx + 0x3c]
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rdi
mov edi, dword [rax + rcx + 0x88]
mov esi, ebx
add rdi, rcx
cmp dword [rdi + 0x18], ebx
jbe 0x14006aa7f
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r13
mov r13, rbx
mov r12, rbx
nop
nop
mov eax, dword [rdi + 0x20]
mov rdx, r14
add rax, r13
mov ecx, dword [rax + rbp]
add rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x14006aa4f
mov eax, dword [rdi + 0x24]
mov ecx, dword [rdi + 0x1c]
add rax, r12
add rcx, rbp
movzx edx, word [rax + rbp]
mov ebx, dword [rcx + rdx*4]
add rbx, rbp
add esi, 1
add r13, 4
add r12, 2
cmp esi, dword [rdi + 0x18]
jb 0x14006aa20
mov r13, qword [rsp + 0x58]
mov r12, qword [rsp + 0x50]
mov rax, rbx
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rbp
pop rbx
ret
mov rax, rbx
jmp 0x14006aa6c
mov rax, rbx
add rsp, 0x20
pop r14
pop rbp
pop rbx
ret