joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003860
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.140003da0
mov ebx, 0x104
lea rcx, [rsp + 0x230]
mov r8, rbx
movzx edx, word [rax]
test dx, dx
je 0x1400038c0
mov word [rcx], dx
add rcx, 2
add rax, 2
sub r8, 1
jne 0x1400038a5
jmp 0x1400038c5
test r8, r8
jne 0x1400038c9
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 0x1400038ff
mov word [rax], cx
add rax, 2
sub rdx, 1
jne 0x1400038e6
jmp 0x140003904
test rdx, rdx
jne 0x140003908
sub rax, 2
mov word [rax], 0
mov rcx, rbx
lea rax, [rsp + 0x20]
cmp word [rax], 0
je 0x140003927
add rax, 2
sub rcx, 1
jne 0x140003915
jmp 0x140003977
test rcx, rcx
je 0x140003977
mov rax, rbx
mov rdx, rbx
sub rax, rcx
sub rdx, rax
lea rcx, [rsp + rax*2 + 0x20]
je 0x140003977
lea r8, str.Apoint.exe
sub r8, rcx
nop
nop
movzx eax, word [r8 + rcx]
test ax, ax
je 0x140003969
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x140003950
jmp 0x14000396e
test rdx, rdx
jne 0x140003972
sub rcx, 2
mov word [rcx], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140003a16
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 0x1400039c9
mov word [rax], cx
add rax, 2
sub rdx, 1
jne 0x1400039b0
jmp 0x1400039ce
test rdx, rdx
jne 0x1400039d2
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 0x140003a08
mov word [rax], cx
add rax, 2
sub rbx, 1
jne 0x1400039f0
jmp 0x140003a0d
test rbx, rbx
jne 0x140003a11
sub rax, 2
mov word [rax], 0
mov ecx, dword [0x1400179b4]
test ecx, ecx
je 0x140003a26
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r8, [rsp + 0x230]
lea rcx, [rsp + 0x20]
mov r9d, 1
xor edx, edx
call fcn.140003a60
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.140003f10
add rsp, 0x450
pop rbx
ret
Function at 0x140003a60
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.140009330
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.140009330
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.140009330
call qword [0x1400179c8]
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.140003c40
mov rdi, qword [rsp + 0x60]
test rdi, rdi
je 0x140003bff
lea rcx, [rsp + 0x68]
xor r8d, r8d
mov rdx, rdi
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x140003bff
lea rdx, str.CreateProcessWithLowPriv___Get_Token_success__AppName_s__Cmd_s
lea rcx, [rsp + 0x100]
xor r9d, r9d
mov r8, rsi
call fcn.140003c40
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 0x140003bee
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
cmp rcx, 0xffffffffffffffff
je 0x140003bff
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.CreateProcessWithLowPriv___Ret_d
lea rcx, [rsp + 0x100]
mov r8d, ebx
call fcn.140003c40
mov eax, ebx
mov rcx, qword [rsp + 0x900]
xor rcx, rsp
call fcn.140003f10
mov rbx, qword [rsp + 0x938]
add rsp, 0x910
pop rdi
pop rsi
pop rbp
ret
Function at 0x140003c70
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 0x140003d3a
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 0x140003d17
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 0x140003d83
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 0x140003da0
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.140009330
lea rbx, [0x140017a00]
lea rdx, [0x14001231c]
mov rax, rbx
mov r11d, 0x104
sub rdx, rbx
nop
movzx ecx, word [rdx + rax]
test cx, cx
je 0x140003e08
mov word [rax], cx
add rax, 2
sub r11, 1
jne 0x140003df0
jmp 0x140003e0d
test r11, r11
jne 0x140003e11
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 0x140003eb0
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 0x140003ea5
lea rdx, str._ProgramFiles_
mov rcx, rbx
call fcn.1400047d0
test rax, rax
je 0x140003ea5
lea rdx, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rax, [rsp + 0x40]
jmp 0x140003eb3
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.140003f10
add rsp, 0x260
pop rbx
ret
Function at 0x140004840
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 0x14000489e
cmp dword [0x1400164f0], 2
je 0x140004880
call fcn.1400a7000
mov ecx, 0x12
call fcn.140006bd0
mov ecx, 0xff
call fcn.1400067d0
mov eax, 0xff
jmp 0x140004aa5
mov dword [rax], 0x94
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x1400048cf
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 0x140004aa5
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 0x140004901
bts edi, 0xf
mov eax, esi
shl eax, 8
add eax, r12d
mov dword [0x140016ac4], r13d
mov dword [0x140016acc], eax
mov dword [0x140016ad0], esi
mov dword [0x140016ad4], r12d
mov dword [0x140016ac8], edi
cmp word [0x140000000], 0x5a4d
jne 0x140004987
movsxd rax, dword [0x14000003c]
lea rcx, [0x140000000]
add rax, rcx
cmp dword [rax], 0x4550
je 0x140004955
xor ebx, ebx
mov dword [rsp + 0x50], ebx
jmp 0x14000498d
cmp word [rax + 0x18], 0x20b
je 0x140004965
xor ebx, ebx
mov dword [rsp + 0x50], ebx
jmp 0x14000498d
cmp dword [rax + 0x84], 0xe
ja 0x140004976
xor ebx, ebx
mov dword [rsp + 0x50], ebx
jmp 0x14000498d
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0x50], ebx
jmp 0x14000498d
xor ebx, ebx
mov dword [rsp + 0x50], ebx
mov ecx, 1
call fcn.140006f00
test eax, eax
jne 0x1400049bd
cmp dword [0x1400164f0], 2
je 0x1400049a9
call fcn.140006e10
mov ecx, 0x1c
call fcn.140006bd0
mov ecx, 0xff
call fcn.1400067d0
call fcn.1400061d0
test eax, eax
jne 0x1400049e8
cmp dword [0x1400164f0], 2
je 0x1400049d4
call fcn.140006e10
mov ecx, 0x10
call fcn.140006bd0
mov ecx, 0xff
call fcn.1400067d0
call fcn.1400091d0
nop
call fcn.140008e90
test eax, eax
jns 0x140004a01
mov ecx, 0x1b
call fcn.1400067a0
call fcn.140008d70
mov qword [0x140018e78], rax
call fcn.140008b70
mov qword [0x1400164e8], rax
call fcn.140008900
test eax, eax
jns 0x140004a2c
mov ecx, 8
call fcn.1400067a0
call fcn.1400085d0
test eax, eax
jns 0x140004a3f
mov ecx, 9
call fcn.1400067a0
mov ecx, 1
call fcn.140006910
test eax, eax
je 0x140004a54
mov ecx, eax
call fcn.1400067a0
mov r8, qword [0x140016b00]
mov qword [0x140016b08], r8
mov rdx, qword [0x140016ae8]
mov ecx, dword [0x140016ad8]
call fcn.140001b60
mov edi, eax
mov dword [rsp + 0x20], eax
test ebx, ebx
jne 0x140004a85
mov ecx, eax
call fcn.140006b20
call fcn.140006b40
jmp 0x140004aa3
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.140009250
add rsp, 0x28
jmp 0x140004840
Function at 0x140004ba7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140015008]
jne 0x140003f2a
rol rcx, 0x10
test cx, 0xffff
jne 0x140003f26
repz ret
ror rcx, 0x10
jmp 0x140004b00
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1400165a0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140016698]
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 0x140004b85
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, [0x1400165a0]
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 0x140004ba7
mov rax, qword [rsp + 0x88]
mov qword [0x140016698], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140016638], rax
mov rax, qword [0x140016698]
mov qword [0x140016510], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140016620], rax
mov dword [0x140016500], 0xc0000409
mov dword [0x140016504], 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 [0x140016598], eax
mov ecx, 1
call fcn.140009310
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140010430]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140016598], 0
jne 0x140004c2e
mov ecx, 1
call fcn.140009310
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 0x140006550
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 [0x140016ab8]
mov ebx, r9d
mov rdi, r8
mov rsi, rdx
call fcn.140005cd0
test rax, rax
je 0x1400065a4
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 0x140006639
mov ecx, 2
call fcn.140009310
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.140009330
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 0x140006625
test ebx, ebx
jne 0x140006625
lea ecx, [rax + 2]
call fcn.140009310
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 0x140006bd0
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 0x140006c0e
add ebx, 1
add rax, 0x10
cmp ebx, 0x17
jb 0x140006bf0
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
cmp ebx, 0x17
jae 0x140006df5
mov ecx, 3
call fcn.14000bdf0
cmp eax, 1
je 0x140006dac
mov ecx, 3
call fcn.14000bdf0
test eax, eax
jne 0x140006c45
cmp dword [section..data], 1
je 0x140006dac
cmp edi, 0xfc
je 0x140006df5
mov qword [rsp + 0x50], rbp
lea rbp, [0x140016b30]
lea r8, str.Runtime_Error__n_nProgram:
mov rcx, rbp
mov edx, 0x314
call fcn.14000ab40
test eax, eax
je 0x140006c89
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1400064b0
lea rdx, [0x140016b49]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x140016c4d], sil
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x140006cd9
lea r8, str._program_name_unknown_
lea rcx, [0x140016b49]
mov edx, 0x2fb
call fcn.14000ab40
test eax, eax
je 0x140006cd9
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1400064b0
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [0x140016b49]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 0x3c
jbe 0x140006d28
lea rcx, [rcx + rbp - 0x23]
lea rdx, [0x140016e44]
lea r9d, [rax + 3]
lea r8, [0x140010ac4]
sub rdx, rcx
call fcn.14000aa20
test eax, eax
je 0x140006d28
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1400064b0
lea r8, [0x140010ac0]
mov edx, 0x314
mov rcx, rbp
call fcn.14000a960
test eax, eax
je 0x140006d54
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1400064b0
movsxd r8, ebx
mov edx, 0x314
mov rcx, rbp
add r8, r8
mov r8, qword [r12 + r8*8 + 8]
call fcn.14000a960
test eax, eax
je 0x140006d84
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1400064b0
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbp
call fcn.14000bb90
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 0x140006df5
cmp rax, 0xffffffffffffffff
je 0x140006df5
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 0x140006e10
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov ecx, 3
call fcn.14000bdf0
cmp eax, 1
je 0x140006e42
mov ecx, 3
call fcn.14000bdf0
test eax, eax
jne 0x140006ef6
cmp dword [section..data], 1
jne 0x140006ef6
mov qword [rsp + 0x48], rbx
lea rbx, [0x140015880]
mov qword [rsp + 0x30], rdi
mov rax, rbx
xor edi, edi
cmp dword [rax], 0xfc
je 0x140006e6e
add edi, 1
add rax, 0x10
cmp edi, 0x17
jb 0x140006e58
jmp 0x140006ee2
cmp edi, 0x17
jae 0x140006ee2
mov ecx, 3
call fcn.14000bdf0
cmp eax, 1
je 0x140006e99
mov ecx, 3
call fcn.14000bdf0
test eax, eax
jne 0x140006ee2
cmp dword [section..data], 1
jne 0x140006ee2
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x140006ee2
cmp rax, 0xffffffffffffffff
je 0x140006ee2
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.140006bd0
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret
Function at 0x140008b70
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 [0x14001706c]
xor r12d, r12d
test eax, eax
mov ebp, r12d
jne 0x140008bcc
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x140008bac
mov dword [0x14001706c], 1
jmp 0x140008bdf
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x140008bc6
mov dword [0x14001706c], 2
jmp 0x140008c49
mov eax, dword [0x14001706c]
cmp eax, 1
jne 0x140008c40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x140008c1a
cmp word [rdi], bp
mov rax, rdi
je 0x140008bf9
add rax, 2
cmp word [rax], bp
jne 0x140008be7
add rax, 2
cmp word [rax], bp
jne 0x140008be7
sub eax, edi
add eax, 2
movsxd rsi, eax
mov rcx, rsi
call fcn.14000a1a0
test rax, rax
mov rbx, rax
jne 0x140008c21
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x140008d3b
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call fcn.14000a340
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbx
jmp 0x140008d3b
cmp eax, 2
je 0x140008c49
test eax, eax
jne 0x140008c1a
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test rax, rax
mov rsi, rax
je 0x140008c1a
cmp byte [rax], bpl
mov rbx, rax
je 0x140008c98
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 0x140008c1a
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 0x140008c60
add ebp, 1
mov edx, 2
movsxd rcx, ebp
call fcn.14000a210
test rax, rax
mov r12, rax
jne 0x140008cbd
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
jmp 0x140008d3b
cmp byte [rsi], 0
mov qword [rsp + 0x50], r13
mov rbx, rax
mov r13, rsi
je 0x140008d25
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 0x140008d4e
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 0x140008cd0
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.140004290
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
jmp 0x140008d36
Function at 0x14000bb90
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.140005be0
xor ebx, ebx
cmp qword [0x140017310], rbx
mov rbp, rax
mov dword [rsp + 0x98], ebx
mov dword [rsp + 0x30], ebx
jne 0x14000bcbc
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x14000bdcf
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000bdcf
mov rcx, rax
call fcn.140005b10
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140017310], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140005b10
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x140017318], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140005b10
lea rcx, [rsp + 0x98]
mov qword [0x140017320], rax
call fcn.140006870
test eax, eax
je 0x14000bc6f
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.1400064b0
cmp dword [rsp + 0x98], 2
jne 0x14000bcbc
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140005b10
test rax, rax
mov qword [0x140017330], rax
je 0x14000bcbc
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140005b10
mov qword [0x140017328], rax
mov rcx, qword [0x140017328]
mov qword [rsp + 0x80], r12
cmp rcx, rbp
je 0x14000bd68
cmp qword [0x140017330], rbp
je 0x14000bd68
call fcn.140005cd0
mov rcx, qword [0x140017330]
mov rsi, rax
call fcn.140005cd0
test rsi, rsi
mov r12, rax
je 0x14000bd68
test rax, rax
je 0x14000bd68
call rsi
test rax, rax
je 0x14000bd33
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 0x14000bd33
test byte [rsp + 0x40], 1
jne 0x14000bd68
lea rcx, [rsp + 0x30]
call fcn.1400068c0
test eax, eax
je 0x14000bd55
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.1400064b0
cmp dword [rsp + 0x30], 4
jb 0x14000bd62
bts edi, 0x15
jmp 0x14000bda6
bts edi, 0x12
jmp 0x14000bda6
mov rcx, qword [0x140017318]
cmp rcx, rbp
je 0x14000bda6
call fcn.140005cd0
test rax, rax
je 0x14000bda6
call rax
test rax, rax
mov rbx, rax
je 0x14000bda6
mov rcx, qword [0x140017320]
cmp rcx, rbp
je 0x14000bda6
call fcn.140005cd0
test rax, rax
je 0x14000bda6
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140017310]
call fcn.140005cd0
mov r12, qword [rsp + 0x80]
test rax, rax
je 0x14000bdcf
mov r9d, edi
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x14000bdd1
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000d470
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 0x14000d4b7
or eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140003f10
add rsp, 0x38
ret
lea rcx, [rsp + 0x20]
call fcn.14000d860
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140003f10
add rsp, 0x38
ret