joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400035e0
Capabilities:
Get geographical location

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x40
mov r14, qword [rcx + 0x10]
movabs rdi, 0x7ffffffffffffffe
mov rax, rdi
mov rsi, rcx
sub rax, r14
cmp rax, rdx
jb 0x140003795
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x38], rbp
mov rbp, qword [rcx + 0x18]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r13
xor r13d, r13d
mov qword [rsp + 0x20], r15
lea r15, [rdx + r14]
mov rcx, r15
or rcx, 7
cmp rcx, rdi
jbe 0x14000363f
lea rcx, [r13 - 2]
jmp 0x14000368a
mov rdx, rbp
mov rax, rdi
shr rdx, 1
sub rax, rdx
cmp rbp, rax
jbe 0x140003659
mov rcx, 0xfffffffffffffffe
jmp 0x14000368a
lea rax, [rdx + rbp]
mov rdi, rcx
cmp rcx, rax
cmovb rdi, rax
movabs rax, 0x7fffffffffffffff
lea rcx, [rdi + 1]
cmp rcx, rax
ja 0x14000379b
add rcx, rcx
cmp rcx, 0x1000
jb 0x1400036b6
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14000379b
mov rcx, rax
call fcn.140003e38
test rax, rax
je 0x140003748
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x1400036c8
test rcx, rcx
je 0x1400036c5
call fcn.140003e38
mov rbx, rax
jmp 0x1400036c8
mov rbx, r13
mov rax, qword [rsp + 0x80]
lea r8, [r14 + r14]
mov qword [rsi + 0x10], r15
lea r12, [r8 + rbx]
mov qword [rsi + 0x18], rdi
mov rcx, rbx
lea r15, [rax + rax]
add rax, r14
lea r14, [rbx + rax*2]
cmp rbp, 8
jb 0x14000374f
mov rdi, qword [rsi]
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov r8, r15
lea rdx, str._fieldscountryCode
mov rcx, r12
call sub.VCRUNTIME140.dll_memcpy
lea rdx, [rbp*2 + 2]
mov word [r14], r13w
cmp rdx, 0x1000
jb 0x14000373e
mov rcx, qword [rdi - 8]
add rdx, 0x27
sub rdi, rcx
lea rax, [rdi - 8]
cmp rax, 0x1f
ja 0x140003748
mov rdi, rcx
mov rcx, rdi
call fcn.140003e30
jmp 0x14000376d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov r8, r15
lea rdx, str._fieldscountryCode
mov rcx, r12
call sub.VCRUNTIME140.dll_memcpy
mov word [r14], r13w
mov qword [rsi], rbx
mov rax, rsi
mov r13, qword [rsp + 0x28]
mov r12, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x70]
mov r15, qword [rsp + 0x20]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
call fcn.140001810
int3
call fcn.140001770
int3
Function at 0x140003e38
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140003e72
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140003e77
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140003ec0
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400063c0]
cmp byte [rcx + rax], 0
je 0x140003ec0
dec r8
sub rdx, 1
jne 0x140003ea6
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140004e14
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140004e5e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140004e5e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140004e5e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140004e5e
cmp dword [rcx + 0x84], 0xe
jbe 0x140004e5e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140004e60
xor al, al
add rsp, 0x28
ret

Function at 0x140001000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
lea rcx, str._JAVA_LAUNCHER_DEBUG
call qword [sym.imp.MSVCR100.dll_getenv]
test rax, rax
je 0x140001066
lea rcx, str.Windows_original_main_args:_n
call qword [sym.imp.MSVCR100.dll_printf]
mov rax, qword [sym.imp.MSVCR100.dll___argc]
xor ebx, ebx
cmp dword [rax], ebx
jle 0x140001066
xor edi, edi
mov rax, qword [sym.imp.MSVCR100.dll___argv]
lea rcx, str.wwwd_args__d____s_n
mov edx, ebx
mov r8, qword [rax]
mov r8, qword [r8 + rdi]
call qword [sym.imp.MSVCR100.dll_printf]
mov rax, qword [sym.imp.MSVCR100.dll___argc]
inc ebx
add rdi, 8
cmp ebx, dword [rax]
jl 0x140001038
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov rcx, rax
call sub.jli.dll_JLI_CmdToArgs
call sub.jli.dll_JLI_GetStdArgc
movsxd rdi, eax
lea ecx, [rdi + 1]
movsxd rcx, ecx
shl rcx, 3
call sub.jli.dll_JLI_MemAlloc
mov rbx, rax
call sub.jli.dll_JLI_GetStdArgs
xor r9d, r9d
xor edx, edx
test edi, edi
jle 0x1400010b2
mov r9d, edi
mov rcx, qword [rax]
add rax, 0x10
mov qword [rbx + rdx*8], rcx
inc rdx
cmp rdx, rdi
jl 0x14000109f
mov rcx, qword [str.java]
movsxd rax, r9d
and qword [rbx + rax*8], 0
test rcx, rcx
jne 0x1400010c9
mov rcx, qword [rbx]
mov rax, qword [str.java]
test rax, rax
jne 0x1400010d8
mov rax, qword [rbx]
and dword [rsp + 0x68], 0
mov byte [rsp + 0x60], 0
mov byte [rsp + 0x58], 0
mov byte [rsp + 0x50], 1
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rax
lea rax, [0x140002250]
mov r8d, 2
lea r9, str._J_ms8m
mov qword [rsp + 0x38], rax
lea rax, [0x140002240]
mov rdx, rbx
mov qword [rsp + 0x30], rax
lea rax, str._lib_tools.jar
mov ecx, edi
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r8d
call sub.jli.dll_JLI_Launch
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
Function at 0x140001000
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0xa8
mov qword [rsp + 0xa0], rdx
mov qword [rsp + 0x98], rcx
lea rcx, [rsp + 0x28]
xor edx, edx
mov r8d, 0x70
call fcn.140025840
mov dword [rsp + 0x28], 0x70
lea rax, str.runas
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x98]
call fcn.140001920
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0xa0]
call fcn.140001920
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x58], 2
lea rcx, [rsp + 0x28]
call qword [sym.imp.SHELL32.dll_ShellExecuteExA]
cmp eax, 0
jne 0x14000109f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0x4c7
jne 0x14000109a
jmp 0x14000109f
jmp 0x14000109f
add rsp, 0xa8
ret

Function at 0x1400010b0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
sub rsp, 0xd8
mov qword [rsp + 0xd0], rcx
lea rcx, [rsp + 0x68]
xor edx, edx
mov r8d, 0x68
call fcn.140025840
mov dword [rsp + 0x68], 0x68
mov dword [rsp + 0xa4], 1
mov word [rsp + 0xa8], 2
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x18
call fcn.140025840
mov rcx, qword [rsp + 0xd0]
call fcn.140001920
mov rdx, rax
xor eax, eax
mov r9d, eax
xor eax, eax
lea r10, [rsp + 0x68]
lea rax, [rsp + 0x50]
mov rcx, r9
mov r8, r9
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0x8000000
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], r10
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, 0
je 0x140001188
mov rcx, qword [rsp + 0x50]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
add rsp, 0xd8
ret
Function at 0x140002eb0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x88
mov qword [rsp + 0x78], r8
mov qword [rsp + 0x70], rdx
mov qword [rsp + 0x68], rcx
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x78], 0
jg 0x140002eed
mov qword [rsp + 0x80], 0
jmp 0x1400030b9
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x68], 0
je 0x140002f1e
mov rcx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x70]
call fcn.140003c60
mov qword [rsp + 0x80], rax
jmp 0x1400030b9
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x58], rax
call fcn.140004010
mov qword [rsp + 0x50], rax
xor eax, eax
cmp rax, qword [rsp + 0x50]
jae 0x140002fbd
lea rcx, [rsp + 0x60]
lea rdx, [rsp + 0x50]
call fcn.140004c60
mov rcx, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
call fcn.1400040a0
mov r8, qword [rsp + 0x28]
mov rdx, rax
mov rcx, qword [rsp + 0x70]
call fcn.140004060
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x48]
add rax, qword [rsp + 0x70]
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x60]
sub rax, rdx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x48]
mov edx, eax
call fcn.1400040c0
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x80], 0
je 0x1400030a7
mov rcx, qword [rsp + 0x30]
call fcn.140002380
mov qword [rsp + 0x40], 0xfff
mov eax, 0xfff
cmp rax, qword [rsp + 0x60]
jae 0x140003065
mov rax, qword [rsp + 0x30]
mov r9, qword [rax + 0x80]
mov rcx, qword [rsp + 0x70]
mov edx, 1
mov r8d, 0xfff
call fcn.140011780
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
add rax, qword [rsp + 0x70]
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x60]
sub rax, rcx
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x38], 0xfff
je 0x140003060
mov rax, qword [rsp + 0x58]
sub rax, qword [rsp + 0x60]
mov qword [rsp + 0x80], rax
jmp 0x1400030b9
jmp 0x140002fe3
xor eax, eax
cmp rax, qword [rsp + 0x60]
jae 0x1400030a2
mov rax, qword [rsp + 0x30]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x70]
mov edx, 1
call fcn.140011780
mov rcx, rax
mov rax, qword [rsp + 0x60]
sub rax, rcx
mov qword [rsp + 0x60], rax
jmp 0x1400030a7
mov rax, qword [rsp + 0x58]
sub rax, qword [rsp + 0x60]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
add rsp, 0x88
ret

Function at 0x14000abb0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000abfa
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000abfa
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000abfa
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000abfa
cmp dword [rcx + 0x84], 0xe
jbe 0x14000abfa
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000abfc
xor al, al
add rsp, 0x28
ret
Function at 0x140012cb8
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140012d27
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140012d27
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140012d27
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140012d27
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140012d27
cmp dword [rcx + 0x84], 0xe
jbe 0x140012d27
cmp dword [rcx + 0xf8], 0
je 0x140012d27
mov ecx, ebx
call fcn.140012dd8
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140012bb4
nop
cmp dword [rbp + 0x20], 0
je 0x140012d75
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140012d80
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140012cb8

Function at 0x140012ebc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140012cb8
Function at 0x140019ae0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140019af6
mov al, 1
jmp 0x140019b56
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140019b07
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140019b54
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001d758
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140019b54
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140019b54
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140019b54
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140019b56
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140019f50
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x14003a030]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x140019fa7
cmp word [rdx], r13w
jne 0x140019fa7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140019fac
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001a0d1
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001a0f2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140019fe5
mov rdx, r9
mov word [rbx], cx
jmp 0x14001a00c
cmp r9, r8
jae 0x14001a01c
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x140019fc6
jmp 0x14001a0d1
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001a0c6
cmp dword [rsp + 0x80], esi
je 0x14001a0c6
lea r8, [0x14003a030]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001a09e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001a06e
mov word [rbx], r13w
jmp 0x14001a0ce
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14001a07b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001a0ce
cmp word [rsp + 0x70], r13w
jne 0x14001a0ab
cmp rbx, r14
je 0x14001a068
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14001abb8
cmp word [rsp + 0x70], r13w
je 0x14001a0d1
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x14003a030]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001a0cb
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001a0d1
Function at 0x14001af74
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140025210
sub rsp, rax
mov rax, qword [0x140038580]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400174d8
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14001afc3
mov rax, rbp
jmp 0x14001b0cb
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x3a030]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14001abb0
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x3a030]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14001b0c7
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001b0c7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14001abb0
test rax, rax
js 0x14001b0c7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14001b0c7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14001b0b9
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14001b0b9
cmp byte [rcx], 0xd
jne 0x14001b09f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14001b0ae
cmp byte [rcx + 1], 0xa
jne 0x14001b0ae
inc rcx
jmp 0x14001b0ae
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x38a00]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14001b081
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14001b0cb
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400251e0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001cb78
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14001cba8
xor eax, eax
jmp 0x14001cc6b
mov rbp, rbx
cmp word [rax], si
je 0x14001cbcd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14001cbb4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001cbb0
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14001ca98
movsxd r14, eax
test eax, eax
jne 0x14001cc0b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001cba1
mov rcx, r14
call fcn.14001b314
mov rdi, rax
test rax, rax
jne 0x14001cc24
xor ecx, ecx
call fcn.14001749c
jmp 0x14001cc00
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14001ca98
test eax, eax
jne 0x14001cc55
mov rcx, rdi
call fcn.14001749c
jmp 0x14001cc5f
xor ecx, ecx
call fcn.14001749c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x14001fe3c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140017cc0
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14001fedd
cmp ebx, dword [rsp + 0x30]
je 0x14001fed6
test esi, esi
je 0x14001fed6
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14001feb1
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14001febe
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14001fe9b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14001fec2
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14001fedf
mov eax, 1
jmp 0x14001fedf
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400245e8
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001abb8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001abb8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140024738
cmp rax, 0xffffffffffffffff
je 0x140024738
xor edi, edi
test rbp, rbp
jle 0x1400246e3
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140018020
mov rbx, rax
test rax, rax
jne 0x140024670
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400246d9
mov edx, 0x8000
mov ecx, r14d
call fcn.140013c50
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400196e0
cmp eax, 0xffffffff
je 0x1400246b9
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140024680
mov edx, r15d
mov ecx, r14d
call fcn.140013c50
jmp 0x1400246d9
cmp byte [rsi + 0x38], dil
je 0x1400246d0
cmp dword [rsi + 0x34], 5
jne 0x1400246d0
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400246d9
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001749c
jmp 0x14002474c
jns 0x14002474c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001abb8
cmp rax, 0xffffffffffffffff
jne 0x140024704
cmp byte [rsi + 0x30], dil
je 0x14002474c
mov edi, dword [rsi + 0x2c]
jmp 0x14002474c
mov ecx, r14d
call fcn.14001d758
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14002474c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x14002474c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140024745
mov eax, dword [rsi + 0x2c]
jmp 0x14002474a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001abb8
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140025300
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140025328
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140025328
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180961058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1809611df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x180961089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18096106f
add dl, dl
jne 0x180961096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1809610f6
xor eax, eax
add dl, dl
jne 0x1809610a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1809611ad
add dl, dl
jne 0x1809610b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1809610c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1809610d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1809610dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1809610ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x18096107e
mov eax, 1
add dl, dl
jne 0x180961106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180961113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1809610fb
sub eax, ebx
mov ebx, 1
jne 0x18096114c
mov ecx, 1
add dl, dl
jne 0x18096112e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18096113b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180961123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18096107e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x180961168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180961175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18096115d
cmp eax, 0x7d00
jae 0x18096119b
cmp eax, 0x500
jb 0x180961196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18096107e
cmp eax, 0x7f
ja 0x18096119e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18096107e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1809611d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x18096107e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20