joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003750
Capabilities:
Check if file exists

Disassembly:
push rbx
sub rsp, 0x450
mov rax, qword [0x140015008]
xor rax, rsp
mov qword [rsp + 0x440], rax
lea r8, str.HomeDirectory
lea rdx, str.SOFTWAREAlpsApoint
mov rcx, 0xffffffff80000002
call fcn.140003c90
mov ebx, 0x104
lea rcx, [rsp + 0x230]
mov r8, rbx
movzx edx, word [rax]
test dx, dx
je 0x1400037b0
mov word [rcx], dx
add rcx, 2
add rax, 2
sub r8, 1
jne 0x140003795
jmp 0x1400037b5
test r8, r8
jne 0x1400037b9
sub rcx, 2
mov word [rcx], 0
lea r8, [rsp + 0x230]
lea rcx, [rsp + 0x20]
mov rdx, rbx
lea rax, [rsp + 0x20]
sub r8, rcx
movzx ecx, word [r8 + rax]
test cx, cx
je 0x1400037ef
mov word [rax], cx
add rax, 2
sub rdx, 1
jne 0x1400037d6
jmp 0x1400037f4
test rdx, rdx
jne 0x1400037f8
sub rax, 2
mov word [rax], 0
mov rcx, rbx
lea rax, [rsp + 0x20]
cmp word [rax], 0
je 0x140003817
add rax, 2
sub rcx, 1
jne 0x140003805
jmp 0x140003867
test rcx, rcx
je 0x140003867
mov rax, rbx
mov rdx, rbx
sub rax, rcx
sub rdx, rax
lea rcx, [rsp + rax*2 + 0x20]
je 0x140003867
lea r8, str.Apoint.exe
sub r8, rcx
nop
nop
movzx eax, word [r8 + rcx]
test ax, ax
je 0x140003859
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x140003840
jmp 0x14000385e
test rdx, rdx
jne 0x140003862
sub rcx, 2
mov word [rcx], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140003906
lea r8, str.C:Program_FilesApoint2K
lea rcx, [rsp + 0x230]
mov rdx, rbx
sub r8, rcx
lea rax, [rsp + 0x230]
nop
nop
nop
movzx ecx, word [r8 + rax]
test cx, cx
je 0x1400038b9
mov word [rax], cx
add rax, 2
sub rdx, 1
jne 0x1400038a0
jmp 0x1400038be
test rdx, rdx
jne 0x1400038c2
sub rax, 2
lea rdx, str.C:Program_FilesApoint2KApoint.exe
lea rcx, [rsp + 0x20]
mov word [rax], 0
sub rdx, rcx
lea rax, [rsp + 0x20]
nop
nop
movzx ecx, word [rdx + rax]
test cx, cx
je 0x1400038f8
mov word [rax], cx
add rax, 2
sub rbx, 1
jne 0x1400038e0
jmp 0x1400038fd
test rbx, rbx
jne 0x140003901
sub rax, 2
mov word [rax], 0
mov ecx, dword [0x140017994]
test ecx, ecx
je 0x140003916
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r8, [rsp + 0x230]
lea rcx, [rsp + 0x20]
mov r9d, 1
xor edx, edx
call fcn.140003950
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.140003e00
add rsp, 0x450
pop rbx
ret
Function at 0x140003950
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x910
mov rax, qword [0x140015008]
xor rax, rsp
mov qword [rsp + 0x900], rax
mov rsi, rcx
mov rbp, r8
lea rcx, [rsp + 0x102]
xor ebx, ebx
xor edx, edx
mov r8d, 0x3fe
mov word [rsp + 0x100], bx
call fcn.140009210
xor eax, eax
lea r8d, [rbx + 0x68]
lea rcx, [rsp + 0x90]
xor edx, edx
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], rax
call fcn.140009210
lea rax, str.winsta0default
lea rcx, [rsp + 0x502]
xor edx, edx
mov r8d, 0x3fe
mov qword [rsp + 0xa0], rax
mov dword [rsp + 0x90], 0x68
mov qword [rsp + 0x60], rbx
mov word [rsp + 0x500], bx
call fcn.140009210
call qword [0x1400179a8]
lea rdx, [rsp + 0x60]
mov ecx, eax
call sub.WTSAPI32.dll_WTSQueryUserToken
mov r9, qword [rsp + 0x60]
lea rdx, str.GetCurrentSessionToken_Return_d__Token_p__n
lea rcx, [rsp + 0x500]
movzx r8d, al
call fcn.140003b30
mov rdi, qword [rsp + 0x60]
test rdi, rdi
je 0x140003aef
lea rcx, [rsp + 0x68]
xor r8d, r8d
mov rdx, rdi
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x140003aef
lea rdx, str.CreateProcessWithLowPriv___Get_Token_success__AppName_s__Cmd_s
lea rcx, [rsp + 0x100]
xor r9d, r9d
mov r8, rsi
call fcn.140003b30
lea r11, [rsp + 0x70]
lea rax, [rsp + 0x90]
mov qword [rsp + 0x50], r11
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x430
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov rcx, qword [rsp + 0x68]
mov ebx, eax
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
cmp rcx, 0xffffffffffffffff
je 0x140003ade
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
cmp rcx, 0xffffffffffffffff
je 0x140003aef
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.CreateProcessWithLowPriv___Ret_d
lea rcx, [rsp + 0x100]
mov r8d, ebx
call fcn.140003b30
mov eax, ebx
mov rcx, qword [rsp + 0x900]
xor rcx, rsp
call fcn.140003e00
mov rbx, qword [rsp + 0x938]
add rsp, 0x910
pop rdi
pop rsi
pop rbp
ret
Function at 0x140003b60
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
lea rax, [rsp + 0x40]
mov ebx, r9d
mov rsi, r8
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov rdi, rdx
mov dword [rsp + 0x38], 4
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140003c2a
lea rax, [rsp + 0x48]
mov r9d, 0x20006
xor r8d, r8d
mov rdx, rdi
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140003c07
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x30]
mov r9d, 4
xor r8d, r8d
mov rdx, rsi
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x40]
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rdi
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x3c]
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x40]
test eax, eax
je 0x140003c73
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x3c]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

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

Disassembly:
push rbx
sub rsp, 0x260
mov rax, qword [0x140015008]
xor rax, rsp
mov qword [rsp + 0x250], rax
lea rcx, [rsp + 0x42]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x40], 0
call fcn.140009210
lea rbx, [0x1400179e0]
lea rdx, [0x1400121dc]
mov rax, rbx
mov r11d, 0x104
sub rdx, rbx
nop
movzx ecx, word [rdx + rax]
test cx, cx
je 0x140003cf8
mov word [rax], cx
add rax, 2
sub r11, 1
jne 0x140003ce0
jmp 0x140003cfd
test r11, r11
jne 0x140003d01
sub rax, 2
mov word [rax], 0
lea rax, [rsp + 0x30]
lea rdx, str.SOFTWAREAlpsApoint
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x38], 0x208
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140003da0
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea rdx, str.HomeDirectory
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140003d95
lea rdx, str._ProgramFiles_
mov rcx, rbx
call fcn.1400046c0
test rax, rax
je 0x140003d95
lea rdx, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rax, [rsp + 0x40]
jmp 0x140003da3
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140003e00
add rsp, 0x260
pop rbx
ret
Function at 0x140004730
Capabilities:
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 0x14000478e
cmp dword [0x1400164d0], 2
je 0x140004770
call fcn.140006d00
mov ecx, 0x12
call fcn.140006ac0
mov ecx, 0xff
call fcn.1400066c0
mov eax, 0xff
jmp 0x140004995
mov dword [rax], 0x94
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x1400047bf
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 0x140004995
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 0x1400047f1
bts edi, 0xf
mov eax, esi
shl eax, 8
add eax, r12d
mov dword [0x140016aa4], r13d
mov dword [0x140016aac], eax
mov dword [0x140016ab0], esi
mov dword [0x140016ab4], r12d
mov dword [0x140016aa8], edi
cmp word [0x140000000], 0x5a4d
jne 0x140004877
movsxd rax, dword [0x14000003c]
lea rcx, [0x140000000]
add rax, rcx
cmp dword [rax], 0x4550
je 0x140004845
xor ebx, ebx
mov dword [rsp + 0x50], ebx
jmp 0x14000487d
cmp word [rax + 0x18], 0x20b
je 0x140004855
xor ebx, ebx
mov dword [rsp + 0x50], ebx
jmp 0x14000487d
cmp dword [rax + 0x84], 0xe
ja 0x140004866
xor ebx, ebx
mov dword [rsp + 0x50], ebx
jmp 0x14000487d
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0x50], ebx
jmp 0x14000487d
xor ebx, ebx
mov dword [rsp + 0x50], ebx
mov ecx, 1
call fcn.140006df0
test eax, eax
jne 0x1400048ad
cmp dword [0x1400164d0], 2
je 0x140004899
call fcn.140006d00
mov ecx, 0x1c
call fcn.140006ac0
mov ecx, 0xff
call fcn.1400066c0
call fcn.1400060c0
test eax, eax
jne 0x1400048d8
cmp dword [0x1400164d0], 2
je 0x1400048c4
call fcn.140006d00
mov ecx, 0x10
call fcn.140006ac0
mov ecx, 0xff
call fcn.1400066c0
call fcn.1400090b0
nop
call fcn.140008d80
test eax, eax
jns 0x1400048f1
mov ecx, 0x1b
call fcn.140006690
call fcn.140008c60
mov qword [0x140018e58], rax
call fcn.140008a60
mov qword [0x1400164c8], rax
call fcn.1400087f0
test eax, eax
jns 0x14000491c
mov ecx, 8
call fcn.140006690
call fcn.1400084c0
test eax, eax
jns 0x14000492f
mov ecx, 9
call fcn.140006690
mov ecx, 1
call fcn.140006800
test eax, eax
je 0x140004944
mov ecx, eax
call fcn.140006690
mov r8, qword [0x140016ae0]
mov qword [0x140016ae8], r8
mov rdx, qword [0x140016ac8]
mov ecx, dword [0x140016ab8]
call fcn.140001b60
mov edi, eax
mov dword [rsp + 0x20], eax
test ebx, ebx
jne 0x140004975
mov ecx, eax
call fcn.140006a10
call fcn.140006a30
jmp 0x140004993
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.140009130
add rsp, 0x28
jmp 0x140004730
Function at 0x140004a97
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140015008]
jne 0x140003e1a
rol rcx, 0x10
test cx, 0xffff
jne 0x140003e16
repz ret
ror rcx, 0x10
jmp 0x1400049f0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140016580]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140016678]
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 0x140004a75
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, [0x140016580]
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 0x140004a97
mov rax, qword [rsp + 0x88]
mov qword [0x140016678], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140016618], rax
mov rax, qword [0x140016678]
mov qword [0x1400164f0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140016600], rax
mov dword [0x1400164e0], 0xc0000409
mov dword [0x1400164e4], 1
mov rax, qword [0x140015008]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140015010]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140016578], eax
mov ecx, 1
call fcn.1400091f0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140010430]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140016578], 0
jne 0x140004b1e
mov ecx, 1
call fcn.1400091f0
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 0x140006440
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 [0x140016a98]
mov ebx, r9d
mov rdi, r8
mov rsi, rdx
call fcn.140005bc0
test rax, rax
je 0x140006494
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 0x140006529
mov ecx, 2
call fcn.1400091f0
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.140009210
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 0x140006515
test ebx, ebx
jne 0x140006515
lea ecx, [rax + 2]
call fcn.1400091f0
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 0x140006ac0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
sub rsp, 0x30
lea r12, [0x140015880]
xor esi, esi
mov edi, ecx
mov rax, r12
mov ebx, esi
nop
cmp ecx, dword [rax]
je 0x140006afe
add ebx, 1
add rax, 0x10
cmp ebx, 0x17
jb 0x140006ae0
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
cmp ebx, 0x17
jae 0x140006ce5
mov ecx, 3
call fcn.14000bcd0
cmp eax, 1
je 0x140006c9c
mov ecx, 3
call fcn.14000bcd0
test eax, eax
jne 0x140006b35
cmp dword [section..data], 1
je 0x140006c9c
cmp edi, 0xfc
je 0x140006ce5
mov qword [rsp + 0x50], rbp
lea rbp, [0x140016b10]
lea r8, str.Runtime_Error__n_nProgram:
mov rcx, rbp
mov edx, 0x314
call fcn.14000aa20
test eax, eax
je 0x140006b79
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1400063a0
lea rdx, [0x140016b29]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x140016c2d], sil
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x140006bc9
lea r8, str._program_name_unknown_
lea rcx, [0x140016b29]
mov edx, 0x2fb
call fcn.14000aa20
test eax, eax
je 0x140006bc9
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1400063a0
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [0x140016b29]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 0x3c
jbe 0x140006c18
lea rcx, [rcx + rbp - 0x23]
lea rdx, [0x140016e24]
lea r9d, [rax + 3]
lea r8, [0x140010ac4]
sub rdx, rcx
call fcn.14000a900
test eax, eax
je 0x140006c18
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1400063a0
lea r8, [0x140010ac0]
mov edx, 0x314
mov rcx, rbp
call fcn.14000a840
test eax, eax
je 0x140006c44
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1400063a0
movsxd r8, ebx
mov edx, 0x314
mov rcx, rbp
add r8, r8
mov r8, qword [r12 + r8*8 + 8]
call fcn.14000a840
test eax, eax
je 0x140006c74
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1400063a0
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbp
call fcn.14000ba70
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 0x140006ce5
cmp rax, 0xffffffffffffffff
je 0x140006ce5
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 0x140008a60
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 [0x14001704c]
xor r12d, r12d
test eax, eax
mov ebp, r12d
jne 0x140008abc
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x140008a9c
mov dword [0x14001704c], 1
jmp 0x140008acf
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x140008ab6
mov dword [0x14001704c], 2
jmp 0x140008b39
mov eax, dword [0x14001704c]
cmp eax, 1
jne 0x140008b30
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x140008b0a
cmp word [rdi], bp
mov rax, rdi
je 0x140008ae9
add rax, 2
cmp word [rax], bp
jne 0x140008ad7
add rax, 2
cmp word [rax], bp
jne 0x140008ad7
sub eax, edi
add eax, 2
movsxd rsi, eax
mov rcx, rsi
call fcn.14000a080
test rax, rax
mov rbx, rax
jne 0x140008b11
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x140008c2b
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call fcn.14000a220
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbx
jmp 0x140008c2b
cmp eax, 2
je 0x140008b39
test eax, eax
jne 0x140008b0a
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test rax, rax
mov rsi, rax
je 0x140008b0a
cmp byte [rax], bpl
mov rbx, rax
je 0x140008b88
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 0x140008b0a
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 0x140008b50
add ebp, 1
mov edx, 2
movsxd rcx, ebp
call fcn.14000a0f0
test rax, rax
mov r12, rax
jne 0x140008bad
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
jmp 0x140008c2b
cmp byte [rsi], 0
mov qword [rsp + 0x50], r13
mov rbx, rax
mov r13, rsi
je 0x140008c15
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 0x140008c3e
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 0x140008bc0
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.140004180
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
jmp 0x140008c26
Function at 0x14000ba70
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.140005ad0
xor ebx, ebx
cmp qword [0x1400172f0], rbx
mov rbp, rax
mov dword [rsp + 0x98], ebx
mov dword [rsp + 0x30], ebx
jne 0x14000bb9c
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x14000bcaf
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000bcaf
mov rcx, rax
call fcn.140005a00
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x1400172f0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140005a00
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x1400172f8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140005a00
lea rcx, [rsp + 0x98]
mov qword [0x140017300], rax
call fcn.140006760
test eax, eax
je 0x14000bb4f
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.1400063a0
cmp dword [rsp + 0x98], 2
jne 0x14000bb9c
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140005a00
test rax, rax
mov qword [0x140017310], rax
je 0x14000bb9c
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140005a00
mov qword [0x140017308], rax
mov rcx, qword [0x140017308]
mov qword [rsp + 0x80], r12
cmp rcx, rbp
je 0x14000bc48
cmp qword [0x140017310], rbp
je 0x14000bc48
call fcn.140005bc0
mov rcx, qword [0x140017310]
mov rsi, rax
call fcn.140005bc0
test rsi, rsi
mov r12, rax
je 0x14000bc48
test rax, rax
je 0x14000bc48
call rsi
test rax, rax
je 0x14000bc13
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 0x14000bc13
test byte [rsp + 0x40], 1
jne 0x14000bc48
lea rcx, [rsp + 0x30]
call fcn.1400067b0
test eax, eax
je 0x14000bc35
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.1400063a0
cmp dword [rsp + 0x30], 4
jb 0x14000bc42
bts edi, 0x15
jmp 0x14000bc86
bts edi, 0x12
jmp 0x14000bc86
mov rcx, qword [0x1400172f8]
cmp rcx, rbp
je 0x14000bc86
call fcn.140005bc0
test rax, rax
je 0x14000bc86
call rax
test rax, rax
mov rbx, rax
je 0x14000bc86
mov rcx, qword [0x140017300]
cmp rcx, rbp
je 0x14000bc86
call fcn.140005bc0
test rax, rax
je 0x14000bc86
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1400172f0]
call fcn.140005bc0
mov r12, qword [rsp + 0x80]
test rax, rax
je 0x14000bcaf
mov r9d, edi
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x14000bcb1
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000d2e0
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140015008]
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 0x14000d327
or eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140003e00
add rsp, 0x38
ret
lea rcx, [rsp + 0x20]
call fcn.14000d6d0
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140003e00
add rsp, 0x38
ret