joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000a040
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
mov eax, 0x23340
call fcn.14001f4c0
sub rsp, rax
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
mov dword [rsp + 0x23368], 0xff
lea rax, [rsp + 0x170]
mov r9d, 0xfe
mov byte [rax], 0
add rax, 0x234
sub r9d, 1
jns 0x14000a07a
lea rdx, [rsp + 0x23368]
lea rcx, [rsp + 0x170]
call fcn.140009d1c
mov edx, dword [rsp + 0x23368]
lea rcx, [rsp + 0x170]
mov r9, rdi
mov r8, rsi
mov qword [rsp + 0x20], rbx
call fcn.140009be4
test rax, rax
mov rbx, rax
jne 0x14000a0cc
xor eax, eax
jmp 0x14000a21d
lea rdx, [rax + 0x130]
lea rax, [rsp + 0x48]
mov edi, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov r9d, edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14000a0c5
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
lea rdx, [rbx + 1]
mov r9d, edi
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14000a0c5
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
lea rdx, str.RuntimeLib
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x40], 0x104
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14000a0c5
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], eax
lea r8d, [rax + 1]
lea rcx, [rsp + 0x60]
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
jne 0x14000a1f4
lea rcx, [rsp + 0x60]
call fcn.14000ba10
cmp eax, 0xe
mov rbx, rax
jle 0x14000a1fd
lea ecx, [rax - 0xe]
movsxd rdx, ecx
lea rcx, [rsp + rdx + 0x60]
lea rdx, str.clientjvm.dll
call fcn.14000b950
test eax, eax
jne 0x14000a1fd
mov eax, dword [str.server]
lea rcx, [rsp + 0x23368]
lea rdx, [rsp + 0x23368]
mov dword [rcx], eax
movzx eax, word [0x1400225c8]
mov word [rcx + 4], ax
mov al, byte [0x1400225ca]
mov byte [rcx + 6], al
mov eax, dword [rdx]
movsxd rcx, ebx
mov dword [rsp + rcx + 0x52], eax
movzx eax, word [rdx + 4]
mov word [rsp + rcx + 0x56], ax
jmp 0x14000a1fd
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x60]
call fcn.140007c6c
lea r11, [rsp + 0x23340]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x14000a234
Capabilities:
Check if file exists
Get common file path
Get file attributes
Set current directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x240
lea rdx, str.:vm.sysfirst
xor r8d, r8d
mov rbp, rcx
call fcn.140004ae4
lea rdx, str.:vm.version.max
mov rcx, rbp
mov esi, eax
call fcn.140004cb4
lea rdx, str.:vm.version.min
mov rcx, rbp
mov rdi, rax
call fcn.140004cb4
lea rdx, str.:vm.version
mov rcx, rbp
mov rbx, rax
call fcn.140004cb4
mov r8, rdi
mov rcx, rax
mov rdx, rbx
call fcn.14000a040
test esi, esi
mov rbx, rax
je 0x14000a2b0
test rax, rax
jne 0x14000a3a0
lea rdx, str.:vm.location
mov rcx, rbp
call fcn.140004cb4
lea rcx, str.Configured_vm.location:__s
mov rdx, rax
mov rsi, rax
call fcn.1400065e4
test rsi, rsi
je 0x14000a39d
lea rdx, str.:working.directory
mov rcx, rbp
call fcn.140004cb4
test rax, rax
mov rdi, rax
jne 0x14000a319
lea rdx, [rsp + 0x20]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea rdx, str.WinRun4J:ini.dir
mov rcx, rbp
call fcn.140004cb4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov rcx, rsi
jmp 0x14000a33d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x14000a365
lea rcx, str.vm.location_item_not_found:__s
mov rdx, rbx
call fcn.1400065e4
xor ecx, ecx
lea rdx, [0x1400225ec]
call fcn.14000d810
test rax, rax
mov rbx, rax
jne 0x14000a31e
test rdi, rdi
jne 0x14000a361
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
xor eax, eax
jmp 0x14000a3a0
lea r8, [rsp + 0x130]
xor r9d, r9d
mov edx, 0x104
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test rdi, rdi
jne 0x14000a38e
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea rcx, [rsp + 0x130]
call fcn.140007c6c
jmp 0x14000a3a0
mov rax, rbx
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x14000a3bc
Capabilities:
Get common file path
Set current directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x130
cmp byte [0x14002c5ec], 0
mov dil, dl
mov rsi, rcx
jne 0x14000a44d
lea rdx, str.:working.directory
call fcn.140004cb4
test rax, rax
mov rbx, rax
jne 0x14000a3f6
test dil, dil
je 0x14000a446
lea rdx, str.WinRun4J:ini.dir
mov rcx, rsi
call fcn.140004cb4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test rbx, rbx
je 0x14000a41c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
call fcn.1400065d4
test eax, eax
jne 0x14000a446
lea rdx, [rsp + 0x20]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea rdx, [rsp + 0x20]
lea rcx, str.Working_directory_set_to:__s
call fcn.1400065e4
mov byte [0x14002c5ec], 1
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x14000ad28
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov rcx, rax
call fcn.140007ca4
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov rbx, rax
call fcn.140006a5c
lea r8, [0x14002c5e4]
lea rdx, [0x14002b5a0]
mov r9b, 1
mov rcx, rbx
call fcn.140007960
cmp dword [0x14002c5e4], 0
je 0x14000ada8
mov rcx, qword [0x14002b5a0]
lea rdx, str.__WinRun4J:
mov r8d, 0xb
call fcn.14000c4f0
test eax, eax
jne 0x14000ada8
mov rcx, rdi
call fcn.14000ab54
mov ebx, eax
call fcn.140006620
mov eax, ebx
jmp 0x14000adc7
mov rcx, rdi
call fcn.14000a540
test rax, rax
jne 0x14000adbc
mov eax, 1
jmp 0x14000adc7
mov rdx, rax
mov rcx, rdi
call fcn.14000a9b8
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14000add4
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rdx
mov rdx, rcx
mov r9d, 0x40
xor ecx, ecx
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbx], rax
add rsp, 0x20
pop rbx
ret
Function at 0x14000e390
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
sub rsp, 0x30
lea r12, [0x1400296d0]
xor esi, esi
mov edi, ecx
mov rax, r12
mov ebx, esi
nop
cmp ecx, dword [rax]
je 0x14000e3ce
add ebx, 1
add rax, 0x10
cmp ebx, 0x17
jb 0x14000e3b0
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
cmp ebx, 0x17
jae 0x14000e5b5
mov ecx, 3
call fcn.140018330
cmp eax, 1
je 0x14000e56c
mov ecx, 3
call fcn.140018330
test eax, eax
jne 0x14000e405
cmp dword [0x140029540], 1
je 0x14000e56c
cmp edi, 0xfc
je 0x14000e5b5
mov qword [rsp + 0x50], rbp
lea rbp, [0x14002c690]
lea r8, str.Runtime_Error__n_nProgram:
mov rcx, rbp
mov edx, 0x314
call fcn.140018280
test eax, eax
je 0x14000e449
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.14000fa50
lea rdx, [0x14002c6a9]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x14002c7ad], sil
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x14000e499
lea r8, str._program_name_unknown_
lea rcx, [0x14002c6a9]
mov edx, 0x2fb
call fcn.140018280
test eax, eax
je 0x14000e499
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.14000fa50
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [0x14002c6a9]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 0x3c
jbe 0x14000e4e8
lea rcx, [rcx + rbp - 0x23]
lea rdx, [0x14002c9a4]
lea r9d, [rax + 3]
lea r8, [0x140022ff0]
sub rdx, rcx
call fcn.140018160
test eax, eax
je 0x14000e4e8
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.14000fa50
lea r8, [0x14002176c]
mov edx, 0x314
mov rcx, rbp
call fcn.1400180a0
test eax, eax
je 0x14000e514
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.14000fa50
movsxd r8, ebx
mov edx, 0x314
mov rcx, rbp
add r8, r8
mov r8, qword [r12 + r8*8 + 8]
call fcn.1400180a0
test eax, eax
je 0x14000e544
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.14000fa50
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbp
call fcn.140017e40
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 0x14000e5b5
cmp rax, 0xffffffffffffffff
je 0x14000e5b5
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 0x14000e5d0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov ecx, 3
call fcn.140018330
cmp eax, 1
je 0x14000e602
mov ecx, 3
call fcn.140018330
test eax, eax
jne 0x14000e6b6
cmp dword [0x140029540], 1
jne 0x14000e6b6
mov qword [rsp + 0x48], rbx
lea rbx, [0x1400296d0]
mov qword [rsp + 0x30], rdi
mov rax, rbx
xor edi, edi
cmp dword [rax], 0xfc
je 0x14000e62e
add edi, 1
add rax, 0x10
cmp edi, 0x17
jb 0x14000e618
jmp 0x14000e6a2
cmp edi, 0x17
jae 0x14000e6a2
mov ecx, 3
call fcn.140018330
cmp eax, 1
je 0x14000e659
mov ecx, 3
call fcn.140018330
test eax, eax
jne 0x14000e6a2
cmp dword [0x140029540], 1
jne 0x14000e6a2
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x14000e6a2
cmp rax, 0xffffffffffffffff
je 0x14000e6a2
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.14000e390
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret

Function at 0x14000faf0
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 [0x14002c9b8]
mov ebx, r9d
mov rdi, r8
mov rsi, rdx
call fcn.140010c80
test rax, rax
je 0x14000fb44
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 0x14000fbd9
mov ecx, 2
call fcn.140019450
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.14000cc20
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 0x14000fbc5
test ebx, ebx
jne 0x14000fbc5
lea ecx, [rax + 2]
call fcn.140019450
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 0x140017140
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov eax, dword [0x14002cb38]
test eax, eax
jne 0x140017193
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x140017173
mov dword [0x14002cb38], 1
jmp 0x1400171ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x14001718d
mov dword [0x14002cb38], 2
jmp 0x140017289
mov eax, dword [0x14002cb38]
cmp eax, 1
jne 0x140017280
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x1400172d3
cmp word [rdi], 0
mov qword [rsp + 0x50], rbp
mov rbx, rdi
mov qword [rsp + 0x58], r12
je 0x1400171d5
add rbx, 2
cmp word [rbx], 0
jne 0x1400171c1
add rbx, 2
cmp word [rbx], 0
jne 0x1400171c1
xor r12d, r12d
sub rbx, rdi
mov r8, rdi
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
sar rbx, 1
lea r9d, [rbx + 1]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
movsxd rbp, eax
je 0x140017273
mov rcx, rbp
call fcn.140018f50
test rax, rax
mov rsi, rax
je 0x140017273
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
lea r9d, [rbx + 1]
mov r8, rdi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x14001724d
mov rcx, rsi
call fcn.14000bac0
mov rsi, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbp, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x140017259
cmp eax, 2
je 0x140017289
test eax, eax
jne 0x1400172d3
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test rax, rax
mov rbx, rax
je 0x1400172d3
cmp byte [rax], 0
je 0x1400172b2
nop
add rax, 1
cmp byte [rax], 0
jne 0x1400172a0
add rax, 1
cmp byte [rax], 0
jne 0x1400172a0
sub eax, ebx
add eax, 1
movsxd rsi, eax
mov rcx, rsi
call fcn.140018f50
test rax, rax
mov rdi, rax
jne 0x1400172e5
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000bca0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rax, rdi
add rsp, 0x40
pop rdi
ret
Function at 0x140017e40
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.140010b90
xor ebx, ebx
cmp qword [0x14002cdc0], rbx
mov rbp, rax
mov dword [rsp + 0x98], ebx
mov dword [rsp + 0x30], ebx
jne 0x140017f6c
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x14001807f
lea rdx, [0x140023238]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001807f
mov rcx, rax
call fcn.140010ac0
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x14002cdc0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140010ac0
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x14002cdc8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140010ac0
lea rcx, [rsp + 0x98]
mov qword [0x14002cdd0], rax
call fcn.14000e030
test eax, eax
je 0x140017f1f
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.14000fa50
cmp dword [rsp + 0x98], 2
jne 0x140017f6c
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140010ac0
test rax, rax
mov qword [0x14002cde0], rax
je 0x140017f6c
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140010ac0
mov qword [0x14002cdd8], rax
mov rcx, qword [0x14002cdd8]
mov qword [rsp + 0x80], r12
cmp rcx, rbp
je 0x140018018
cmp qword [0x14002cde0], rbp
je 0x140018018
call fcn.140010c80
mov rcx, qword [0x14002cde0]
mov rsi, rax
call fcn.140010c80
test rsi, rsi
mov r12, rax
je 0x140018018
test rax, rax
je 0x140018018
call rsi
test rax, rax
je 0x140017fe3
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 0x140017fe3
test byte [rsp + 0x40], 1
jne 0x140018018
lea rcx, [rsp + 0x30]
call fcn.14000e080
test eax, eax
je 0x140018005
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.14000fa50
cmp dword [rsp + 0x30], 4
jb 0x140018012
bts edi, 0x15
jmp 0x140018056
bts edi, 0x12
jmp 0x140018056
mov rcx, qword [0x14002cdc8]
cmp rcx, rbp
je 0x140018056
call fcn.140010c80
test rax, rax
je 0x140018056
call rax
test rax, rax
mov rbx, rax
je 0x140018056
mov rcx, qword [0x14002cdd0]
cmp rcx, rbp
je 0x140018056
call fcn.140010c80
test rax, rax
je 0x140018056
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14002cdc0]
call fcn.140010c80
mov r12, qword [rsp + 0x80]
test rax, rax
je 0x14001807f
mov r9d, edi
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x140018081
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001b190
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x38
mov rax, qword [0x14002a390]
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 0x14001b1d7
or eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140016960
add rsp, 0x38
ret
lea rcx, [rsp + 0x20]
call fcn.14000c280
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140016960
add rsp, 0x38
ret
Function at 0x14001db37
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14002a390]
jne 0x14001697a
rol rcx, 0x10
test cx, 0xffff
jne 0x140016976
repz ret
ror rcx, 0x10
jmp 0x14001da90
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14002cea0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x14002cf98]
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 0x14001db15
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, [0x14002cea0]
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 0x14001db37
mov rax, qword [rsp + 0x88]
mov qword [0x14002cf98], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14002cf38], rax
mov rax, qword [0x14002cf98]
mov qword [0x14002ce10], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14002cf20], rax
mov dword [0x14002ce00], 0xc0000409
mov dword [0x14002ce04], 1
mov rax, qword [0x14002a390]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14002a398]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14002ce98], eax
mov ecx, 1
call fcn.140019450
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140023c28]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14002ce98], 0
jne 0x14001dbbe
mov ecx, 1
call fcn.140019450
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 0x14001f050
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.140018390
cmp rax, 0xffffffffffffffff
mov r13, rax
je 0x14001f1f4
lea r8d, [rdi + 2]
xor edx, edx
mov ecx, esi
call fcn.140018390
cmp rax, 0xffffffffffffffff
je 0x14001f1f4
mov qword [rsp + 0x40], rbx
mov rbx, rbp
mov qword [rsp + 0x50], r14
sub rbx, rax
test rbx, rbx
jle 0x14001f173
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 0x14001f0f9
call fcn.14000de10
mov dword [rax], 0xc
call fcn.14000de10
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.14001f2d0
mov r12d, eax
nop
mov r8d, ebx
cmp rbx, r14
mov rdx, rbp
cmovge r8d, r14d
mov ecx, esi
call fcn.1400185a0
cmp eax, 0xffffffff
je 0x14001f135
cdqe
sub rbx, rax
test rbx, rbx
jg 0x14001f110
jmp 0x14001f14e
call fcn.14000de40
cmp dword [rax], 5
jne 0x14001f14a
call fcn.14000de10
mov dword [rax], 0xd
or rdi, 0xffffffffffffffff
mov edx, r12d
mov ecx, esi
call fcn.14001f2d0
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 0x14001f1cc
test rbx, rbx
jns 0x14001f1d6
xor r8d, r8d
mov rdx, rbp
mov ecx, esi
call fcn.140018390
cmp rax, 0xffffffffffffffff
je 0x14001f0da
mov ecx, esi
call fcn.14001ba10
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb rdi, rdi
neg rdi
sub rdi, 1
cmp rdi, 0xffffffffffffffff
jne 0x14001f1d6
call fcn.14000de10
mov dword [rax], 0xd
call fcn.14000de40
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx], eax
cmp rdi, 0xffffffffffffffff
je 0x14001f0da
xor r8d, r8d
mov rdx, r13
mov ecx, esi
call fcn.140018390
cmp rax, 0xffffffffffffffff
je 0x14001f0da
xor eax, eax
jmp 0x14001f0e1
call fcn.14000de10
mov rbp, qword [rsp + 0x58]
mov eax, dword [rax]
add rsp, 0x20
pop r13
pop rdi
pop rsi
ret
Function at 0x1409cb058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1409cb1df
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 0x1409cb089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409cb06f
add dl, dl
jne 0x1409cb096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409cb0f6
xor eax, eax
add dl, dl
jne 0x1409cb0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409cb1ad
add dl, dl
jne 0x1409cb0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409cb0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409cb0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409cb0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1409cb0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1409cb07e
mov eax, 1
add dl, dl
jne 0x1409cb106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409cb113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409cb0fb
sub eax, ebx
mov ebx, 1
jne 0x1409cb14c
mov ecx, 1
add dl, dl
jne 0x1409cb12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1409cb13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409cb123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409cb07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1409cb168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1409cb175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409cb15d
cmp eax, 0x7d00
jae 0x1409cb19b
cmp eax, 0x500
jb 0x1409cb196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409cb07e
cmp eax, 0x7f
ja 0x1409cb19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409cb07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1409cb1d2
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 0x1409cb07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20