joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18a1c
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
lea rcx, [0x00025910]
mov ebx, edx
call qword [sym.imp.ntoskrnl.exe_KeAcquireSpinLockRaiseToDpc]
mov byte [0x00025918], al
test rdi, rdi
je case.default.0x18b15
test ebx, ebx
je case.default.0x18b15
cmp dword [0x000258f8], ebx
jae 0x18a8b
lea esi, [rbx + 0xfff]
and esi, 0xfffff000
call fcn.000189dc
mov edx, esi
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov qword [0x00025908], rax
test rax, rax
je 0x18af9
mov dword [0x000258f8], esi
jmp 0x18a92
mov rax, qword [0x00025908]
mov r8, rbx
mov rdx, rdi
mov rcx, rax
call fcn.0001dd60
mov dword [0x000258fc], ebx
xor ecx, ecx
jmp 0x18ab7
cmp dword [rdi], ebx
ja 0x18abc
mov eax, dword [rdi]
sub ebx, dword [rdi]
inc ecx
add rdi, rax
cmp ebx, 0x50
jae 0x18aaa
mov rdx, qword [0x00025908]
mov dword [0x00025900], ecx
test ecx, ecx
je 0x18af9
cmp dword [rdx + 4], 1
jne 0x18adf
mov eax, dword [rdx]
add rdx, rax
add ecx, 0xffffffff
jne 0x18acd
jmp 0x18af9
cmp byte [0x000266c2], 0
je case.default.0x18b15
lea rcx, [0x00020740]
call sub.ntoskrnl.exe_DbgPrint
call fcn.000189dc
mov dl, byte [0x00025918]
lea rcx, [0x00025910]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.ntoskrnl.exe_KeReleaseSpinLock]
Function at 0x18d74
Capabilities:
Print debug messages

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 r13
push r14
sub rsp, 0x60
mov rdi, rcx
lea rcx, [0x000258e8]
mov ebp, edx
xor ebx, ebx
xor r12d, r12d
xor r13d, r13d
xor r14d, r14d
call qword [sym.imp.ntoskrnl.exe_KeAcquireSpinLockRaiseToDpc]
mov rsi, qword [0x000258e0]
test rsi, rsi
mov dl, al
mov byte [0x000258f0], al
je 0x18e0b
mov rax, qword [rsi + 8]
cmp dword [rsi + 0x14], ebx
je 0x18dd0
cmp dword [rsi + 0x18], ebp
jb 0x18dd8
mov rsi, rax
test rax, rax
jmp 0x18dc0
and dword [rsi + 0x14], ebx
lea rdx, [rsi + 0x18]
mov rcx, rdi
mov r8d, 0x20
call fcn.0001dd60
mov r8d, dword [rsi + 0x18]
lea rdx, [rsi + 0x38]
lea rcx, [rdi + 0x20]
sub r8, 0x20
call fcn.0001dd60
mov ebx, dword [rsi + 0x18]
mov dl, byte [0x000258f0]
lea rcx, [0x000258e8]
call qword [sym.imp.ntoskrnl.exe_KeReleaseSpinLock]
mov r11d, dword [rdi + 0x14]
test r11d, r11d
je 0x18e25
lea r12, [rdi + 0x20]
mov r8d, dword [rdi + 0x18]
test r8d, r8d
je 0x18e33
lea r13, [r11 + rdi + 0x20]
mov r9d, dword [rdi + 0x1c]
test r9d, r9d
je 0x18e45
lea eax, [r8 + r11]
lea r14, [rax + rdi + 0x20]
cmp byte [0x000266c2], 0
je 0x18eb2
test r14, r14
lea rdx, [0x00020600]
mov rcx, rdx
mov rax, rdx
cmovne rcx, r14
test r13, r13
mov qword [rsp + 0x58], rcx
mov ecx, dword [rdi + 0x10]
mov dword [rsp + 0x50], r9d
mov r9d, dword [rdi + 8]
cmovne rax, r13
test r12, r12
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x40], r8d
mov r8d, dword [rdi + 4]
cmovne rdx, r12
mov qword [rsp + 0x38], rdx
mov edx, dword [rdi]
mov dword [rsp + 0x30], r11d
mov dword [rsp + 0x28], ecx
mov ecx, dword [rdi + 0xc]
mov dword [rsp + 0x20], ecx
lea rcx, [0x00020770]
call sub.ntoskrnl.exe_DbgPrint
lea r11, [rsp + 0x60]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret
Function at 0x18f1c
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
lea rcx, [0x000258c8]
mov ebx, edx
call qword [sym.imp.ntoskrnl.exe_KeAcquireSpinLockRaiseToDpc]
mov byte [0x000258d0], al
test rdi, rdi
je case.default.0x19015
test ebx, ebx
je case.default.0x19015
cmp dword [0x000258b0], ebx
jae 0x18f8b
lea esi, [rbx + 0xfff]
and esi, 0xfffff000
call fcn.00018edc
mov edx, esi
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov qword [0x000258c0], rax
test rax, rax
je 0x18ff9
mov dword [0x000258b0], esi
jmp 0x18f92
mov rax, qword [0x000258c0]
mov r8, rbx
mov rdx, rdi
mov rcx, rax
call fcn.0001dd60
mov dword [0x000258b4], ebx
xor ecx, ecx
jmp 0x18fb7
cmp dword [rdi], ebx
ja 0x18fbc
mov eax, dword [rdi]
sub ebx, dword [rdi]
inc ecx
add rdi, rax
cmp ebx, 0x2c
jae 0x18faa
mov rdx, qword [0x000258c0]
mov dword [0x000258b8], ecx
test ecx, ecx
je 0x18ff9
cmp dword [rdx + 4], 0
jne 0x18fdf
mov eax, dword [rdx]
add rdx, rax
add ecx, 0xffffffff
jne 0x18fcd
jmp 0x18ff9
cmp byte [0x000266c2], 0
je case.default.0x19015
lea rcx, [0x00020810]
call sub.ntoskrnl.exe_DbgPrint
call fcn.00018edc
mov dl, byte [0x000258d0]
lea rcx, [0x000258c8]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.ntoskrnl.exe_KeReleaseSpinLock]

Function at 0x1957c
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov ebx, edx
mov rbp, rcx
test edx, edx
je 0x195d5
lea rsi, [rcx + 8]
cmp byte [0x000266c2], 0
je 0x195cb
mov eax, dword [rsi + 4]
mov r9d, dword [rsi - 4]
mov r8d, dword [rsi - 8]
mov dword [rsp + 0x28], eax
mov eax, dword [rsi]
lea rcx, [0x000208d0]
mov edx, edi
mov dword [rsp + 0x20], eax
call sub.ntoskrnl.exe_DbgPrint
inc edi
add rsi, 0x10
cmp edi, ebx
jb 0x1959f
lea rcx, [0x00025e90]
call qword [sym.imp.ntoskrnl.exe_KeAcquireSpinLockRaiseToDpc]
mov byte [0x00025e98], al
test rbp, rbp
je 0x19640
test ebx, ebx
je 0x19640
cmp dword [0x00025e84], ebx
jb 0x19617
mov rcx, qword [0x00025e88]
mov r8d, ebx
mov rdx, rbp
shl r8d, 4
call fcn.0001dd60
mov dword [0x00025e80], ebx
jmp 0x1966a
lea ecx, [rbx + 0x64]
call fcn.000194fc
test al, al
je 0x1966a
mov rcx, qword [0x00025e88]
mov dword [0x00025e80], ebx
shl ebx, 4
mov r8d, ebx
mov rdx, rbp
call fcn.0001dd60
jmp 0x1966a
mov rcx, qword [0x00025e88]
test rcx, rcx
je 0x1966a
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
and qword [0x00025e88], 0
and dword [0x00025e80], 0
and dword [0x00025e84], 0
mov dl, byte [0x00025e98]
lea rcx, [0x00025e90]
call qword [sym.imp.ntoskrnl.exe_KeReleaseSpinLock]
lea rcx, [0x000298e0]
xor edx, edx
mov r8d, 0x3380
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
jmp fcn.0001dc60
Function at 0x196ac
Capabilities:
Print debug messages

Disassembly:
test rcx, rcx
je 0x19809
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov ebx, edx
mov rbp, rcx
test edx, edx
je 0x197f5
xor edi, edi
test edx, edx
je 0x19716
lea rsi, [rcx + 8]
cmp byte [0x000266c2], 0
je 0x1970c
mov eax, dword [rsi + 4]
mov r9d, dword [rsi - 4]
mov r8d, dword [rsi - 8]
mov dword [rsp + 0x28], eax
mov eax, dword [rsi]
lea rcx, [0x000208d0]
mov edx, edi
mov dword [rsp + 0x20], eax
call sub.ntoskrnl.exe_DbgPrint
inc edi
add rsi, 0x10
cmp edi, ebx
jb 0x196e0
lea rcx, [0x00025e90]
call qword [sym.imp.ntoskrnl.exe_KeAcquireSpinLockRaiseToDpc]
mov esi, dword [0x00025e80]
mov byte [0x00025e98], al
mov eax, dword [0x00025e84]
test eax, eax
je 0x19764
sub eax, esi
cmp eax, ebx
jb 0x19764
mov r8d, ebx
mov rcx, rsi
mov rdx, rbp
shl rcx, 4
shl r8d, 4
add rcx, qword [0x00025e88]
call fcn.0001dd60
add dword [0x00025e80], ebx
jmp 0x197e2
mov rdi, qword [0x00025e88]
and dword [0x00025e80], 0
and dword [0x00025e84], 0
and qword [0x00025e88], 0
lea ecx, [rsi + rbx + 0x64]
call fcn.000194fc
test al, al
je 0x197d2
test rdi, rdi
je 0x197af
mov rcx, qword [0x00025e88]
mov r8d, esi
mov rdx, rdi
shl r8d, 4
call fcn.0001dd60
mov dword [0x00025e80], esi
mov r8d, ebx
mov rcx, rsi
mov rdx, rbp
shl rcx, 4
shl r8d, 4
add rcx, qword [0x00025e88]
call fcn.0001dd60
add dword [0x00025e80], ebx
test rdi, rdi
je 0x197e2
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov dl, byte [0x00025e98]
lea rcx, [0x00025e90]
call qword [sym.imp.ntoskrnl.exe_KeReleaseSpinLock]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1bf04
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
xor esi, esi
mov rbp, rdx
sub eax, 1
mov rbx, rcx
je 0x1bfd3
cmp eax, 1
je 0x1bf9f
cmp byte [0x000266c2], sil
je 0x1bf4e
mov r8d, dword [rcx + 0x68]
mov rdx, qword [rcx + 0x60]
lea rcx, [0x00022180]
call sub.ntoskrnl.exe_DbgPrint
mov rdx, qword [rbx + 0x60]
mov rdi, qword [rbp]
test rdx, rdx
je 0x1bf85
mov r8d, dword [rbx + 0x68]
test r8d, r8d
je 0x1bf85
mov rcx, rdi
call fcn.0001b6f8
cmp byte [0x000266c2], 0
mov esi, eax
je 0x1bf85
lea rcx, [0x000221b0]
mov edx, eax
call sub.ntoskrnl.exe_DbgPrint
mov rcx, rdi
call fcn.00019e8c
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
and qword [rbp], 0
jmp 0x1c01a
cmp byte [0x000266c2], sil
je 0x1bfb4
lea rcx, [0x00022160]
call sub.ntoskrnl.exe_DbgPrint
mov rdx, qword [rbx + 0x60]
test rdx, rdx
je 0x1c01a
mov r8d, dword [rbx + 0x68]
test r8d, r8d
je 0x1c01a
mov rcx, qword [rbp]
call fcn.0001b6f8
mov esi, eax
jmp 0x1c01a
cmp byte [0x000266c2], sil
je 0x1bfe8
lea rcx, [0x00022140]
call sub.ntoskrnl.exe_DbgPrint
mov edx, 0x68
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rdi, rax
test rax, rax
jne 0x1c002
dec dword [rbx + 0x20]
jmp 0x1c01c
inc dword [rbx + 0x20]
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 0x68]
mov qword [rbp], rax
call fcn.0001dc60
and dword [rdi + 0x28], esi
mov eax, esi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400021d0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140009840]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400021f0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400021f8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400021f0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000224d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002244
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400021f0
add rax, 0x28
cmp rax, r9
jne 0x140002230
xor eax, eax
ret

Function at 0x140002250
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140009840]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000226f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002278
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000226f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002310
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140009840]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000232f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002338
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140007bc0
Capabilities:
Query or enumerate registry value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x440
lea rax, [rsp + 0x38]
mov dword [rsp + 0x34], 0x400
mov rsi, r8
mov rbx, r9
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x38], 0
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edx, eax
xor eax, eax
test edx, edx
je 0x140007c10
add rsp, 0x440
pop rbx
pop rsi
pop rdi
ret
lea rax, [rsp + 0x34]
lea rdi, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsp + 0x38]
mov rdx, rsi
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rdx, rbx
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
sete al
movzx eax, al
add rsp, 0x440
pop rbx
pop rsi
pop rdi
ret
Function at 0x140007cb0
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rdi, rdx
call fcn.140001500
lea rdx, str.HARDWAREACPIFADTVBOX__
mov rcx, 0xffffffff80000002
call fcn.140007b70
test eax, eax
jne 0x140007de4
lea rbx, str.SYSTEMCurrentControlSetControlSystemInformation
lea r9, str.VirtualBox
mov rcx, 0xffffffff80000002
lea r8, str.SystemProductName
mov rdx, rbx
call fcn.140007bc0
test eax, eax
jne 0x140007df5
lea r9, str.VirtualBox
lea r8, str.BiosVersion
mov rdx, rbx
mov rcx, 0xffffffff80000002
call fcn.140007bc0
mov esi, eax
test eax, eax
jne 0x140007e06
mov rcx, qword [rdi + 8]
call sub.msvcrt.dll_atoi
lea rcx, str.PID:__i
mov edx, eax
call fcn.140007c60
mov rcx, qword [rdi + 8]
call sub.msvcrt.dll_atoi
xor edx, edx
mov ecx, 0x1fffff
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r8d, dword [0x140008200]
xor edx, edx
mov r9d, 0x3000
mov rbx, rax
mov rcx, rax
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r9d, dword [0x140008200]
lea r8, [0x1400080c0]
mov rcx, rbx
mov qword [rsp + 0x20], 0
mov rdi, rax
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, rbx
mov r9, rdi
xor r8d, r8d
mov qword [rsp + 0x30], 0
xor edx, edx
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
add rsp, 0x40
pop rbx
pop rsi
pop rdi
ret
lea rcx, str.VirtualBox_VM_registry_path_value_detected_:__n
call fcn.140007c60
jmp 0x140007cda
lea rcx, str.VirtualBox_VM_registry_key_value_detected_:__n
call fcn.140007c60
jmp 0x140007d06
lea rcx, str.VirtualBox_VM_BIOS_version_detected_:__n
mov esi, 0xfffffffe
call fcn.140007c60
jmp 0x140007dda
Function at 0x14000ff68
Capabilities:
Parse pe header

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

Function at 0x140011570
Capabilities:
Read file on windows

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, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x14001159e
xor eax, eax
jmp 0x140011684
cmp qword [rcx + 0x68], 0
je 0x1400115af
call fcn.1400116a0
jmp 0x140011684
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400115c6
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400115c8
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400115fa
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140033d10
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x14001167e
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140011631
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x14001165a
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14001fb9c
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x14001167e
cmp rsi, rbx
ja 0x140011638
test rsi, rsi
je 0x14001167e
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14001fb9c
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14001c518
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 0x14001c587
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001c587
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001c587
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001c587
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001c587
cmp dword [rcx + 0x84], 0xe
jbe 0x14001c587
cmp dword [rcx + 0xf8], 0
je 0x14001c587
mov ecx, ebx
call fcn.14001c638
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.14001c414
nop
cmp dword [rbp + 0x20], 0
je 0x14001c5d5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001c5e0
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14001c518

Function at 0x14001c71c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001c518
Function at 0x140027c94
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140027d1b
mov rsi, rbx
cmp word [rax], bp
je 0x140027cda
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140027cc4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140027cc0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140025518
mov rdi, rax
test rax, rax
je 0x140027d08
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140033d10
mov rbp, rdi
xor ecx, ecx
call fcn.140022dcc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14002aee4
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.14002460c
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 0x14002af85
cmp ebx, dword [rsp + 0x30]
je 0x14002af7e
test esi, esi
je 0x14002af7e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14002af59
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14002af66
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14002af43
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14002af6a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14002af87
mov eax, 1
jmp 0x14002af87
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14002c96c
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.14000f490
sub rsp, rax
mov rax, qword [0x14004aac0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400267d4
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14002c9bb
mov rax, rbp
jmp 0x14002cac3
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 + 0x4ca60]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14002dc54
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x4ca60]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14002cabf
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 0x14002cabf
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14002dc54
test rax, rax
js 0x14002cabf
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14002cabf
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14002cab1
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14002cab1
cmp byte [rcx], 0xd
jne 0x14002ca97
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14002caa6
cmp byte [rcx + 1], 0xa
jne 0x14002caa6
inc rcx
jmp 0x14002caa6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x4b430]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14002ca79
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14002cac3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400335e0
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 0x14002cde0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14002cdf6
mov al, 1
jmp 0x14002ce56
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14002ce07
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14002ce54
mov ecx, dword [rcx + 0x18]
nop
call fcn.140028800
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14002ce54
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14002ce54
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14002ce54
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14002ce56
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14002cff4
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, [0x14004ca60]
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 0x14002d04b
cmp word [rdx], r13w
jne 0x14002d04b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14002d050
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14002d175
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14002d196
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14002d089
mov rdx, r9
mov word [rbx], cx
jmp 0x14002d0b0
cmp r9, r8
jae 0x14002d0c0
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 0x14002d06a
jmp 0x14002d175
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 0x14002d16a
cmp dword [rsp + 0x80], esi
je 0x14002d16a
lea r8, [0x14004ca60]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14002d142
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14002d112
mov word [rbx], r13w
jmp 0x14002d172
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 0x14002d11f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14002d172
cmp word [rsp + 0x70], r13w
jne 0x14002d14f
cmp rbx, r14
je 0x14002d10c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14002dc5c
cmp word [rsp + 0x70], r13w
je 0x14002d175
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, [0x14004ca60]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14002d16f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14002d175