joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400029a8
Capabilities:
Get file version info

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x828]
sub rsp, 0x900
mov rax, qword [0x14005d010]
xor rax, rsp
mov qword [rbp + 0x7f0], rax
xor r12d, r12d
xor edx, edx
mov r8d, 0x11c
lea rcx, [rbp + 0xf0]
call fcn.140015490
lea rcx, [0x140056670]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x140002a26
lea rdx, str.RtlGetVersion
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140002a26
lea rcx, [rbp + 0xf0]
call rax
lea r8, [rbp - 0x40]
lea rdx, str.kernel32.dll
mov ecx, 2
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeExW]
mov esi, eax
mov rbx, r12
mov rdi, r12
mov r13d, 0x1000
test eax, eax
je 0x140002a75
mov ecx, esi
cmp rsi, r13
jb 0x140002a5c
call fcn.140006fc4
jmp 0x140002a61
call fcn.1400122e4
mov rbx, rax
lea rdi, [rax + rsi]
mov r8, rsi
xor edx, edx
mov rcx, rax
call fcn.140015490
sub rdi, rbx
mov qword [rsp + 0x20], rbx
mov r9d, edi
mov r8d, dword [rbp - 0x40]
lea rdx, str.kernel32.dll
mov ecx, 2
call qword [sym.imp.VERSION.dll_GetFileVersionInfoExW]
mov qword [rsp + 0x48], r12
mov dword [rsp + 0x40], r12d
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x48]
lea rdx, [0x1400568ec]
mov rcx, rbx
call qword [sym.imp.VERSION.dll_VerQueryValueW]
mov rax, qword [rsp + 0x48]
movzx edx, word [rax + 0xe]
mov ecx, dword [rax + 8]
and ecx, 0xffff0000
cmp ecx, 0xa0000
jb 0x140003a12
cmp edx, 0x4a61
jb 0x140003a12
cmp edx, 0x585d
jb 0x140002b01
call fcn.140002834
test al, al
je 0x140002b01
lea rcx, str.ERROR:_Your_windows_version_is_Windows_11_22H2_or_higher_version__please_use_older_versions_of_windows._n_n
jmp 0x140003a19
test rbx, rbx
je 0x140002b32
cmp rdi, r13
jb 0x140002b27
add rdi, 0x27
mov rcx, qword [rbx - 8]
sub rbx, rcx
lea rax, [rbx - 8]
cmp rax, 0x1f
ja 0x140003a8f
mov rbx, rcx
mov rdx, rdi
mov rcx, rbx
call fcn.140012040
jmp 0x1413ca427
lea rcx, str.ERROR:_Your_windows_version_is_old__you_must_use_minimum_windows_10_x64_20h1_version_or_higher_version._n_n
call fcn.1400011c8
lea rcx, str.pause
call fcn.14001e794
test rbx, rbx
je 0x140003a57
cmp rdi, r13
jb 0x140003a4c
add rdi, 0x27
mov rcx, qword [rbx - 8]
sub rbx, rcx
lea rax, [rbx - 8]
cmp rax, 0x1f
ja 0x140003a8f
mov rbx, rcx
mov rdx, rdi
mov rcx, rbx
call fcn.140012040
xor eax, eax
mov rcx, qword [rbp + 0x7f0]
xor rcx, rsp
call fcn.140012020
lea r11, [rsp + 0x900]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.14001ffe0
nop
call fcn.14001ffe0
nop
call fcn.1400060e4
nop
call fcn.140012150
nop
call fcn.14001ffe0
nop
call fcn.14001ffe0
nop
call fcn.1400060e4
nop
call fcn.140012150
nop
call fcn.14000145c
int3
Function at 0x140004198
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x1400041b8
xor eax, eax
jmp 0x14000429e
cmp qword [rcx + 0x68], 0
je 0x1400041c9
call fcn.140004cc0
jmp 0x14000429e
mov rax, qword [rcx + 0x38]
mov rdi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400041e0
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400041e2
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140004214
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140015870
mov rax, qword [rsi + 0x50]
add r14, rbx
sub rdi, rbx
sub dword [rax], ebx
mov rcx, qword [rsi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140004298
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000424b
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x140004274
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14001f7d0
add r14, rax
sub rdi, rax
cmp rax, rbx
jne 0x140004298
cmp rdi, rbx
ja 0x140004252
test rdi, rdi
je 0x140004298
mov r9, qword [rsi + 0x80]
mov r8, rdi
mov edx, 1
mov rcx, r14
call fcn.14001f7d0
sub rdi, rax
sub rbp, rdi
mov rax, rbp
add rsp, 0x20
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140007158
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov rbx, rcx
mov esi, 0x7fffffff
mov ebp, 0x9908b0df
mov r9, qword [rbx]
mov r8d, dword [r9]
cmp r8d, 0x270
jne 0x1400071c8
lea r8, [r9 + 8]
mov r10d, 0x270
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
and edx, esi
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, ebp
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x14000718d
mov r8d, dword [r9]
jmp 0x140007296
cmp r8d, 0x4e0
jb 0x140007296
lea r10, [r9 + 0x9c4]
mov r11d, 0xe3
mov eax, dword [r10]
lea r8, [r10 + 4]
mov edx, dword [r8]
xor edx, eax
and edx, esi
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, ebp
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 - 0x9c0], ecx
lea r10, [r8]
sub r11, 1
jne 0x1400071e5
lea r10, [r9 + 0xd50]
mov r11d, 0x18c
mov eax, dword [r10]
mov edx, eax
lea r8, [r10 + 4]
xor edx, dword [r8]
and edx, esi
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, ebp
xor ecx, dword [r10 - 0xd4c]
xor ecx, edx
mov dword [r10 - 0x9c0], ecx
lea r10, [r8]
sub r11, 1
jne 0x14000722a
mov edx, dword [r9 + 0x1380]
xor edx, dword [r9 + 4]
and edx, esi
xor edx, dword [r9 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, ebp
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
and dword [r9], 0
xor r8d, r8d
mov eax, r8d
mov edx, dword [r9 + rax*4 + 4]
mov ecx, edx
lea eax, [r8 + 1]
shr ecx, 0xb
mov dword [r9], eax
mov eax, dword [r9 + 0x1384]
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
cmp eax, dword [rbx + 0x10]
ja 0x140007174
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
ret
Function at 0x14000eac0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x260
mov dword [rsp + 0x20], 0
lea rax, [rsp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0x20a
rep stosb byte [rdi], al
lea rdx, [rsp + 0x50]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
je 0x14000eb0b
cmp dword [rsp + 0x24], 0x105
jbe 0x14000eb37
lea rdx, [0x14004ca44]
mov rcx, qword [rsp + 0x270]
call fcn.140005164
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x270]
jmp 0x14000ebc9
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x28], 0xffffffffffffffff
inc qword [rsp + 0x28]
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x28]
cmp word [rax + rcx*2], 0
jne 0x14000eb4a
mov rax, qword [rsp + 0x28]
movzx eax, word [rsp + rax*2 + 0x4e]
cmp eax, 0x5c
jne 0x14000eba4
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x30], 0xffffffffffffffff
inc qword [rsp + 0x30]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
cmp word [rax + rcx*2], 0
jne 0x14000eb82
mov rax, qword [rsp + 0x30]
xor ecx, ecx
mov word [rsp + rax*2 + 0x4e], cx
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x270]
call fcn.140005164
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret
Function at 0x14000ecb0
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x24], 0
lea r9, [rsp + 0x24]
mov r8d, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x28]
mov ecx, reloc.WS2_32.dll_inet_addr
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xc0000004
jne 0x14000ed47
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [rsp + 0x24]
mov r9d, 4
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x24]
mov r8d, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x28]
mov ecx, reloc.WS2_32.dll_inet_addr
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [rsp + 0x30], eax
jmp 0x14000eceb
cmp dword [rsp + 0x30], 0
jge 0x14000ed70
cmp qword [rsp + 0x28], 0
je 0x14000ed69
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x14000ee8a
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x14000ed89
xor eax, eax
jmp 0x14000ee8a
mov dword [rsp + 0x20], 0
jmp 0x14000ed9d
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax]
cmp dword [rsp + 0x20], eax
jae 0x14000ee75
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x128
mov rcx, qword [rsp + 0x38]
lea rax, [rcx + rax + 8]
mov ecx, dword [rsp + 0x20]
imul rcx, rcx, 0x128
mov rdx, qword [rsp + 0x38]
movzx ecx, word [rdx + rcx + 0x2e]
lea rax, [rax + rcx + 0x28]
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.1400053b0
mov rcx, qword [rsp + 0x90]
call fcn.140005198
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x60]
call fcn.140005198
mov qword [rsp + 0x48], rax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
call fcn.1400202bc
test eax, eax
jne 0x14000ee66
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x128
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx + rax + 0x18]
mov qword [rsp + 0x50], rax
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x60]
call fcn.14000529c
mov rax, qword [rsp + 0x58]
jmp 0x14000ee8a
lea rcx, [rsp + 0x60]
call fcn.14000529c
jmp 0x14000ed93
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
add rsp, 0x88
ret
Function at 0x14000eff0
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x30], 0xffffffffffffffff
inc qword [rsp + 0x30]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
cmp byte [rax + rcx], 0
jne 0x14000f019
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x88]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x40]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x20], 0
jmp 0x14000f083
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x20], eax
jae 0x14000f149
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x58]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x80]
mov rcx, rax
call fcn.140015fa0
test eax, eax
jne 0x14000f144
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x38], 0xffffffffffffffff
inc qword [rsp + 0x38]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x38]
cmp byte [rax + rcx], 0
jne 0x14000f0df
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x48], rax
jne 0x14000f144
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0xc], 0
jne 0x14000f10f
xor eax, eax
jmp 0x14000f14b
cmp qword [rsp + 0x90], 0
je 0x14000f12c
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x28]
mov ecx, dword [rcx + 8]
mov dword [rax], ecx
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
jmp 0x14000f14b
jmp 0x14000f079
xor eax, eax
add rsp, 0x78
ret
Function at 0x14000f530
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xa8
lea rcx, [0x140056460]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x14000f55d
xor al, al
jmp 0x14000f6c6
mov r8, qword [rsp + 0xb0]
lea rdx, str.RegistryMachineSystemCurrentControlSetServices_
lea rcx, [rsp + 0x70]
call fcn.14000f6d0
nop
lea rcx, [rsp + 0x70]
call fcn.1400050a0
mov rdx, rax
lea rcx, [rsp + 0x90]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov r8, qword [rsp + 0xb0]
lea rdx, str.SYSTEMCurrentControlSetServices_
lea rcx, [rsp + 0x50]
call fcn.14000f6d0
nop
lea rcx, [rsp + 0x50]
call fcn.1400050a0
lea r8, [rsp + 0x38]
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
je 0x14000f625
cmp dword [rsp + 0x24], 2
jne 0x14000f601
mov byte [rsp + 0x20], 1
lea rcx, [rsp + 0x50]
call fcn.14000512c
nop
lea rcx, [rsp + 0x70]
call fcn.14000512c
movzx eax, byte [rsp + 0x20]
jmp 0x14000f6c6
mov byte [rsp + 0x21], 0
lea rcx, [rsp + 0x50]
call fcn.14000512c
nop
lea rcx, [rsp + 0x70]
call fcn.14000512c
movzx eax, byte [rsp + 0x21]
jmp 0x14000f6c6
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.NtUnloadDriver
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x90]
call qword [rsp + 0x48]
mov dword [rsp + 0x28], eax
lea rcx, [rsp + 0x50]
call fcn.1400050a0
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
je 0x14000f6a7
mov byte [rsp + 0x22], 0
lea rcx, [rsp + 0x50]
call fcn.14000512c
nop
lea rcx, [rsp + 0x70]
call fcn.14000512c
movzx eax, byte [rsp + 0x22]
jmp 0x14000f6c6
mov byte [rsp + 0x23], 1
lea rcx, [rsp + 0x50]
call fcn.14000512c
nop
lea rcx, [rsp + 0x70]
call fcn.14000512c
movzx eax, byte [rsp + 0x23]
add rsp, 0xa8
ret

Function at 0x14000f7a0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov rax, qword [rsp + 0x20]
mov qword [rsp], rax
mov rax, qword [rsp]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14000f7c4
xor eax, eax
jmp 0x14000f7f2
mov rax, qword [rsp]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
cmp dword [rax], 0x4550
je 0x14000f7ed
xor eax, eax
jmp 0x14000f7f2
mov rax, qword [rsp + 8]
add rsp, 0x18
ret

Function at 0x140012e0c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140012e56
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140012e56
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140012e56
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140012e56
cmp dword [rcx + 0x84], 0xe
jbe 0x140012e56
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140012e58
xor al, al
add rsp, 0x28
ret
Function at 0x14001aa78
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 0x14001a8e3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001a8e3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001a8e3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001a8e3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001a8e3
cmp dword [rcx + 0x84], 0xe
jbe 0x14001a8e3
cmp dword [rcx + 0xf8], 0
je 0x14001a8e3
mov ecx, ebx
call fcn.14001a994
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.14001a770
nop
cmp dword [rbp + 0x20], 0
je 0x14001a931
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001a93c
int3
xor r8d, r8d
xor edx, edx
jmp 0x14001a874

Function at 0x140020258
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140020278
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140024024
or eax, 0xffffffff
jmp 0x14002027a
xor eax, eax
add rsp, 0x28
ret

Function at 0x140027f30
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140027f46
mov al, 1
jmp 0x140027fa6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140027f57
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140027fa4
mov ecx, dword [rcx + 0x18]
nop
call fcn.140031cec
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140027fa4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140027fa4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140027fa4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140027fa6
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14002e264
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.14003b760
sub rsp, rax
mov rax, qword [0x14005d010]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140027e10
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14002e2b3
mov rax, rbp
jmp 0x14002e3bb
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 + 0x11abc30]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14002f1b0
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x11abc30]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14002e3b7
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 0x14002e3b7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14002f1b0
test rax, rax
js 0x14002e3b7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14002e3b7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14002e3a9
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14002e3a9
cmp byte [rcx], 0xd
jne 0x14002e38f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14002e39e
cmp byte [rcx + 1], 0xa
jne 0x14002e39e
inc rcx
jmp 0x14002e39e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x5d650]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14002e371
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14002e3bb
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140012020
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 0x14002e550
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, [0x1411abc30]
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 0x14002e5a7
cmp word [rdx], r13w
jne 0x14002e5a7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14002e5ac
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14002e6d1
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14002e6f2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14002e5e5
mov rdx, r9
mov word [rbx], cx
jmp 0x14002e60c
cmp r9, r8
jae 0x14002e61c
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 0x14002e5c6
jmp 0x14002e6d1
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 0x14002e6c6
cmp dword [rsp + 0x80], esi
je 0x14002e6c6
lea r8, [0x1411abc30]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14002e69e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14002e66e
mov word [rbx], r13w
jmp 0x14002e6ce
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 0x14002e67b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14002e6ce
cmp word [rsp + 0x70], r13w
jne 0x14002e6ab
cmp rbx, r14
je 0x14002e668
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14002f1b8
cmp word [rsp + 0x70], r13w
je 0x14002e6d1
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, [0x1411abc30]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14002e6cb
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14002e6d1
Function at 0x1400308dc
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 0x14003090c
xor eax, eax
jmp 0x1400309cf
mov rbp, rbx
cmp word [rax], si
je 0x140030931
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140030918
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140030914
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.1400307fc
movsxd r14, eax
test eax, eax
jne 0x14003096f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140030905
mov rcx, r14
call fcn.140027d4c
mov rdi, rax
test rax, rax
jne 0x140030988
xor ecx, ecx
call fcn.140027c1c
jmp 0x140030964
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.1400307fc
test eax, eax
jne 0x1400309b9
mov rcx, rdi
call fcn.140027c1c
jmp 0x1400309c3
xor ecx, ecx
call fcn.140027c1c
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 0x1400343d0
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.140027840
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 0x140034471
cmp ebx, dword [rsp + 0x30]
je 0x14003446a
test esi, esi
je 0x14003446a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140034445
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140034452
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14003442f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140034456
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140034473
mov eax, 1
jmp 0x140034473
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret