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

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
sub rsp, 0xc90
mov rax, qword [0x140046620]
xor rax, rsp
mov qword [rsp + 0xc60], rax
lea rcx, [rsp + 0x242]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x240], 0
call fcn.14000bf20
xor ebx, ebx
mov rcx, rbx
lea rdx, str.C:log_
nop
nop
movzx eax, word [rcx + rdx]
add rcx, 2
test ax, ax
mov word [rsp + rcx + 0x23e], ax
jne 0x14000a380
lea rcx, [rsp + 0x872]
xor edx, edx
mov r8d, 0x3e6
mov word [rsp + 0x870], bx
call fcn.14000bf20
lea r8, [rsp + 0x240]
lea rdx, [0x1400357cc]
lea rcx, [rsp + 0x450]
call fcn.14000cde0
lea rcx, [rsp + 0x662]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x660], bx
call fcn.14000bf20
lea rcx, [rsp + 0x32]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x30], bx
call fcn.14000bf20
lea rdx, [rsp + 0x30]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0x30]
mov dx, 0x5c
call fcn.14000bad0
lea rcx, [rsp + 0x450]
mov word [rax], bx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14000a5bf
or rcx, 0xffffffffffffffff
mov qword [rsp + 0xc88], rbp
xor eax, eax
mov qword [rsp + 0xc80], rsi
mov qword [rsp + 0xc78], rdi
lea rdi, [rsp + 0x30]
repne scasw ax, word [rdi]
not rcx
lea rdx, [rsp + rcx*2 + 0x30]
lea rcx, [rsp + 0x660]
sub rcx, rdx
nop
nop
nop
movzx eax, word [rdx]
add rdx, 2
test ax, ax
mov word [rcx + rdx - 2], ax
jne 0x14000a480
lea r9, [rsp + 0x660]
lea r8, [rsp + 0x240]
lea rdx, str._s_s.txt
lea rcx, [rsp + 0x450]
call fcn.14000cde0
mov r8, qword [rsp + 0xca0]
lea r9, [rsp + 0xca8]
lea rcx, [rsp + 0x870]
mov edx, 0x1f3
call fcn.14000ea00
lea rcx, [rsp + 0x450]
mov word [rsp + 0xc56], bx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea rdx, [0x140038138]
lea rcx, [rsp + 0x450]
test eax, eax
mov ebp, 1
cmovne ebx, ebp
call fcn.14000e8f0
test rax, rax
mov rsi, rax
je 0x14000a5a7
test ebx, ebx
jne 0x14000a536
lea r8d, [rbp + 1]
lea rcx, [rsp + 0x24]
mov r9, rax
mov rdx, rbp
mov word [rsp + 0x24], 0xfeff
call fcn.14000e6c0
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x870]
repne scasw ax, word [rdi]
mov r9, rsi
mov rdx, rbp
not rcx
sub rcx, rbp
add ecx, ecx
movsxd r8, ecx
lea rcx, [rsp + 0x870]
call fcn.14000e6c0
lea rcx, [rsp + 0x20]
mov r9, rsi
mov r8d, 2
mov rdx, rbp
mov word [rsp + 0x20], 0xd
call fcn.14000e6c0
lea rcx, [rsp + 0x20]
mov r9, rsi
mov r8d, 2
mov rdx, rbp
mov word [rsp + 0x20], 0xa
call fcn.14000e6c0
mov rcx, rsi
call fcn.14000e460
mov rsi, qword [rsp + 0xc80]
mov rbp, qword [rsp + 0xc88]
mov rdi, qword [rsp + 0xc78]
mov rcx, qword [rsp + 0xc60]
xor rcx, rsp
call fcn.14000c100
add rsp, 0xc90
pop rbx
ret
Function at 0x14000a5e0
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x180
mov rax, qword [0x140046620]
xor rax, rsp
mov qword [rsp + 0x170], rax
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x114
xor ebx, ebx
call fcn.14000bf20
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x50], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x14000a6bd
cmp dword [rsp + 0x54], 5
jbe 0x14000a6bd
lea rax, [rsp + 0x38]
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem_
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x34], 4
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x40], 4
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000a6bd
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
lea rdx, str.EnableLUA
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000a6b2
cmp dword [rsp + 0x30], ebx
setne bl
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.14000c100
add rsp, 0x180
pop rbx
ret

Function at 0x14000a6e0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
cmp rcx, 1
je 0x14000a731
lea rdx, str.open
xor r9d, r9d
mov r8, rbx
xor ecx, ecx
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x14000a731
mov rcx, rbx
call fcn.14000a040
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14000b2f0
Capabilities:
Hash data with md5

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor edi, edi
mov byte [rcx + 0x68], 0
mov dword [rcx], 0x67452301
mov dword [rcx + 4], 0xefcdab89
mov dword [rcx + 8], 0x98badcfe
mov dword [rcx + 0xc], 0x10325476
mov dword [rcx + 0x14], edi
mov dword [rcx + 0x10], edi
cmp qword [rdx + 0x20], 0x10
mov rsi, qword [rdx + 0x18]
mov rbx, rcx
jb 0x14000b33f
mov rbp, qword [rdx + 8]
jmp 0x14000b343
lea rbp, [rdx + 8]
mov byte [rcx + 0x68], dil
lea ecx, [rsi*8]
lea eax, [rsi*8]
cmp ecx, eax
mov dword [rbx + 0x10], ecx
jae 0x14000b363
mov dword [rbx + 0x14], 1
mov eax, esi
shr eax, 0x1d
add dword [rbx + 0x14], eax
cmp rsi, 0x40
jb 0x14000b3e8
mov rax, qword [rbp]
lea rdx, [rbx + 0x18]
mov rcx, rbx
mov qword [rdx], rax
mov rax, qword [rbp + 8]
mov qword [rdx + 8], rax
mov rax, qword [rbp + 0x10]
mov qword [rdx + 0x10], rax
mov rax, qword [rbp + 0x18]
mov qword [rdx + 0x18], rax
mov rax, qword [rbp + 0x20]
mov qword [rdx + 0x20], rax
mov rax, qword [rbp + 0x28]
mov qword [rdx + 0x28], rax
mov rax, qword [rbp + 0x30]
mov qword [rdx + 0x30], rax
mov rax, qword [rbp + 0x38]
mov qword [rdx + 0x38], rax
call fcn.14000a770
cmp rsi, 0x7f
mov edi, 0x40
jbe 0x14000b3e8
nop
nop
nop
mov edx, edi
mov rcx, rbx
add rdx, rbp
call fcn.14000a770
add edi, 0x40
lea ecx, [rdi + 0x3f]
cmp rcx, rsi
jb 0x14000b3d0
mov eax, edi
lea rcx, [rbx + 0x18]
sub rsi, rax
lea rdx, [rax + rbp]
mov r8, rsi
call fcn.14000ea30
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14000c340
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 [0x140048468]
mov ebx, r9d
mov rdi, r8
mov rsi, rdx
call fcn.140010fc0
test rax, rax
je 0x14000c394
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 0x14000c429
mov ecx, 2
call fcn.140010df0
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.14000bf20
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 0x14000c415
test ebx, ebx
jne 0x14000c415
lea ecx, [rax + 2]
call fcn.140010df0
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 0x14000c450
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x5b8
mov rcx, qword [0x140048468]
call fcn.140010fc0
test rax, rax
je 0x14000c485
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.140010df0
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.14000bf20
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 0x14000c50e
test ebx, ebx
jne 0x14000c50e
lea ecx, [rax + 2]
call fcn.140010df0
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 0x14000e390
Capabilities:
Move file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x14000e3b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14000e3b7
mov ecx, eax
call fcn.1400109a0
or eax, 0xffffffff
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret
Function at 0x140010cf7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140046620]
jne 0x14000c11a
rol rcx, 0x10
test cx, 0xffff
jne 0x14000c116
repz ret
ror rcx, 0x10
jmp 0x140010c50
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140048550]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140048648]
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 0x140010cd5
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, [0x140048550]
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 0x140010cf7
mov rax, qword [rsp + 0x88]
mov qword [0x140048648], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1400485e8], rax
mov rax, qword [0x140048648]
mov qword [0x1400484c0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1400485d0], rax
mov dword [0x1400484b0], 0xc0000409
mov dword [0x1400484b4], 1
mov rax, qword [0x140046620]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140046628]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140048548], eax
mov ecx, 1
call fcn.140010df0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140038ce0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140048548], 0
jne 0x140010d7e
mov ecx, 1
call fcn.140010df0
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 0x1400169a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
sub rsp, 0x30
lea r12, [0x140046f00]
xor esi, esi
mov edi, ecx
mov rax, r12
mov ebx, esi
nop
cmp ecx, dword [rax]
je 0x1400169de
add ebx, 1
add rax, 0x10
cmp ebx, 0x17
jb 0x1400169c0
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
cmp ebx, 0x17
jae 0x140016bc5
mov ecx, 3
call fcn.14001f100
cmp eax, 1
je 0x140016b7c
mov ecx, 3
call fcn.14001f100
test eax, eax
jne 0x140016a15
cmp dword [0x140046658], 1
je 0x140016b7c
cmp edi, 0xfc
je 0x140016bc5
mov qword [rsp + 0x50], rbp
lea rbp, [0x140048a70]
lea r8, str.Runtime_Error__n_nProgram:
mov rcx, rbp
mov edx, 0x314
call fcn.140010a30
test eax, eax
je 0x140016a59
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.14000c2a0
lea rdx, [0x140048a89]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x140048b8d], sil
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x140016aa9
lea r8, str._program_name_unknown_
lea rcx, [0x140048a89]
mov edx, 0x2fb
call fcn.140010a30
test eax, eax
je 0x140016aa9
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.14000c2a0
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [0x140048a89]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 0x3c
jbe 0x140016af8
lea rcx, [rcx + rbp - 0x23]
lea rdx, [0x140048d84]
lea r9d, [rax + 3]
lea r8, [0x140039304]
sub rdx, rcx
call fcn.14001bde0
test eax, eax
je 0x140016af8
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.14000c2a0
lea r8, [0x140039300]
mov edx, 0x314
mov rcx, rbp
call fcn.14001bd20
test eax, eax
je 0x140016b24
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.14000c2a0
movsxd r8, ebx
mov edx, 0x314
mov rcx, rbp
add r8, r8
mov r8, qword [r12 + r8*8 + 8]
call fcn.14001bd20
test eax, eax
je 0x140016b54
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.14000c2a0
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbp
call fcn.14001eea0
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 0x140016bc5
cmp rax, 0xffffffffffffffff
je 0x140016bc5
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 0x140016be0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov ecx, 3
call fcn.14001f100
cmp eax, 1
je 0x140016c12
mov ecx, 3
call fcn.14001f100
test eax, eax
jne 0x140016cc6
cmp dword [0x140046658], 1
jne 0x140016cc6
mov qword [rsp + 0x48], rbx
lea rbx, [0x140046f00]
mov qword [rsp + 0x30], rdi
mov rax, rbx
xor edi, edi
cmp dword [rax], 0xfc
je 0x140016c3e
add edi, 1
add rax, 0x10
cmp edi, 0x17
jb 0x140016c28
jmp 0x140016cb2
cmp edi, 0x17
jae 0x140016cb2
mov ecx, 3
call fcn.14001f100
cmp eax, 1
je 0x140016c69
mov ecx, 3
call fcn.14001f100
test eax, eax
jne 0x140016cb2
cmp dword [0x140046658], 1
jne 0x140016cb2
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x140016cb2
cmp rax, 0xffffffffffffffff
je 0x140016cb2
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.1400169a0
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret
Function at 0x14001cc60
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 [0x14004931c]
xor r12d, r12d
test eax, eax
mov ebp, r12d
jne 0x14001ccbc
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x14001cc9c
mov dword [0x14004931c], 1
jmp 0x14001cccf
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x14001ccb6
mov dword [0x14004931c], 2
jmp 0x14001cd39
mov eax, dword [0x14004931c]
cmp eax, 1
jne 0x14001cd30
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x14001cd0a
cmp word [rdi], bp
mov rax, rdi
je 0x14001cce9
add rax, 2
cmp word [rax], bp
jne 0x14001ccd7
add rax, 2
cmp word [rax], bp
jne 0x14001ccd7
sub eax, edi
add eax, 2
movsxd rsi, eax
mov rcx, rsi
call fcn.1400105f0
test rax, rax
mov rbx, rax
jne 0x14001cd11
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x14001ce2b
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call fcn.14000ea30
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbx
jmp 0x14001ce2b
cmp eax, 2
je 0x14001cd39
test eax, eax
jne 0x14001cd0a
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test rax, rax
mov rsi, rax
je 0x14001cd0a
cmp byte [rax], bpl
mov rbx, rax
je 0x14001cd88
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 0x14001cd0a
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 0x14001cd50
add ebp, 1
mov edx, 2
movsxd rcx, ebp
call fcn.140010660
test rax, rax
mov r12, rax
jne 0x14001cdad
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
jmp 0x14001ce2b
cmp byte [rsi], 0
mov qword [rsp + 0x50], r13
mov rbx, rax
mov r13, rsi
je 0x14001ce15
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 0x14001ce3e
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 0x14001cdc0
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.14000fc00
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
jmp 0x14001ce26
Function at 0x14001d3f0
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140046620]
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 0x14001d437
or eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14000c100
add rsp, 0x38
ret
lea rcx, [rsp + 0x20]
call fcn.14000e000
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14000c100
add rsp, 0x38
ret
Function at 0x14001eea0
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.140010ed0
xor ebx, ebx
cmp qword [0x1400493c8], rbx
mov rbp, rax
mov dword [rsp + 0x98], ebx
mov dword [rsp + 0x30], ebx
jne 0x14001efcc
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x14001f0df
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001f0df
mov rcx, rax
call fcn.140010e00
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x1400493c8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140010e00
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x1400493d0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140010e00
lea rcx, [rsp + 0x98]
mov qword [0x1400493d8], rax
call fcn.140016e00
test eax, eax
je 0x14001ef7f
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.14000c2a0
cmp dword [rsp + 0x98], 2
jne 0x14001efcc
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140010e00
test rax, rax
mov qword [0x1400493e8], rax
je 0x14001efcc
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140010e00
mov qword [0x1400493e0], rax
mov rcx, qword [0x1400493e0]
mov qword [rsp + 0x80], r12
cmp rcx, rbp
je 0x14001f078
cmp qword [0x1400493e8], rbp
je 0x14001f078
call fcn.140010fc0
mov rcx, qword [0x1400493e8]
mov rsi, rax
call fcn.140010fc0
test rsi, rsi
mov r12, rax
je 0x14001f078
test rax, rax
je 0x14001f078
call rsi
test rax, rax
je 0x14001f043
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 0x14001f043
test byte [rsp + 0x40], 1
jne 0x14001f078
lea rcx, [rsp + 0x30]
call fcn.140016e50
test eax, eax
je 0x14001f065
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.14000c2a0
cmp dword [rsp + 0x30], 4
jb 0x14001f072
bts edi, 0x15
jmp 0x14001f0b6
bts edi, 0x12
jmp 0x14001f0b6
mov rcx, qword [0x1400493d0]
cmp rcx, rbp
je 0x14001f0b6
call fcn.140010fc0
test rax, rax
je 0x14001f0b6
call rax
test rax, rax
mov rbx, rax
je 0x14001f0b6
mov rcx, qword [0x1400493d8]
cmp rcx, rbp
je 0x14001f0b6
call fcn.140010fc0
test rax, rax
je 0x14001f0b6
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1400493c8]
call fcn.140010fc0
mov r12, qword [rsp + 0x80]
test rax, rax
je 0x14001f0df
mov r9d, edi
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x14001f0e1
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x140025ff0
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r13
sub rsp, 0x20
mov rbp, rdx
xor edi, edi
xor edx, edx
lea r8d, [rdi + 1]
mov esi, ecx
call fcn.14001df60
cmp rax, 0xffffffffffffffff
mov r13, rax
je 0x140026194
lea r8d, [rdi + 2]
xor edx, edx
mov ecx, esi
call fcn.14001df60
cmp rax, 0xffffffffffffffff
je 0x140026194
mov qword [rsp + 0x40], rbx
mov rbx, rbp
mov qword [rsp + 0x50], r14
sub rbx, rax
test rbx, rbx
jle 0x140026113
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r14d, 0x1000
lea edx, [rdi + 8]
mov rcx, rax
mov r8, r14
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbp, rax
jne 0x140026099
call fcn.140010940
mov dword [rax], 0xc
call fcn.140010940
mov eax, dword [rax]
mov rbx, qword [rsp + 0x40]
mov r14, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r13
pop rdi
pop rsi
ret
mov edx, 0x8000
mov ecx, esi
mov qword [rsp + 0x48], r12
call fcn.140026270
mov r12d, eax
nop
mov r8d, ebx
cmp rbx, r14
mov rdx, rbp
cmovge r8d, r14d
mov ecx, esi
call fcn.14001a920
cmp eax, 0xffffffff
je 0x1400260d5
cdqe
sub rbx, rax
test rbx, rbx
jg 0x1400260b0
jmp 0x1400260ee
call fcn.140010970
cmp dword [rax], 5
jne 0x1400260ea
call fcn.140010940
mov dword [rax], 0xd
or rdi, 0xffffffffffffffff
mov edx, r12d
mov ecx, esi
call fcn.140026270
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbp
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r12, qword [rsp + 0x48]
jmp 0x14002616c
test rbx, rbx
jns 0x140026176
xor r8d, r8d
mov rdx, rbp
mov ecx, esi
call fcn.14001df60
cmp rax, 0xffffffffffffffff
je 0x14002607a
mov ecx, esi
call fcn.140021110
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb rdi, rdi
neg rdi
sub rdi, 1
cmp rdi, 0xffffffffffffffff
jne 0x140026176
call fcn.140010940
mov dword [rax], 0xd
call fcn.140010970
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx], eax
cmp rdi, 0xffffffffffffffff
je 0x14002607a
xor r8d, r8d
mov rdx, r13
mov ecx, esi
call fcn.14001df60
cmp rax, 0xffffffffffffffff
je 0x14002607a
xor eax, eax
jmp 0x140026081
call fcn.140010940
mov rbp, qword [rsp + 0x58]
mov eax, dword [rax]
add rsp, 0x20
pop r13
pop rdi
pop rsi
ret