joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004fa00
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov r9, qword [rsp + 0x48]
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call fcn.140131d78
add rsp, 0x28
ret
Function at 0x140096ce0
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
sub rsp, 0x48
call fcn.140096ca0
mov qword [rsp + 0x28], rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
shr rax, 0x10
and rax, 0xffff
movzx eax, ax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x28]
add rax, 0x2c
mov r9d, 4
mov r8, rax
mov edx, 0x20001004
mov ecx, dword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x140096d42
mov rax, qword [rsp + 0x28]
mov dword [rax + 0x2c], 0
add rsp, 0x48
ret

Function at 0x140097150
Capabilities:
Log keystrokes via polling

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x140097176
mov dword [rsp + 0x20], 1
jmp 0x14009717e
mov dword [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x1400a4ac0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov rax, qword [rax + 0x3d80]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x48]
movss xmm0, dword [rax + 0x3d88]
movss dword [rsp + 0x24], xmm0
mov rax, qword [rsp + 0x50]
movss xmm0, dword [rsp + 0x24]
divss xmm0, dword [rax + 0x14]
movss dword [rsp + 0x3c], xmm0
xorps xmm2, xmm2
xorps xmm1, xmm1
mov rcx, qword [rsp + 0x70]
call fcn.140023980
xorps xmm0, xmm0
movss dword [rsp + 0x20], xmm0
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x88]
cmp qword [rsp + 0x30], rax
jae 0x1400a4c0f
mov rax, qword [rsp + 0x30]
movzx eax, word [rax]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x30]
add rax, 2
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0xa
jne 0x1400a4bd1
movss xmm1, dword [rsp + 0x20]
mov rax, qword [rsp + 0x70]
movss xmm0, dword [rax]
call fcn.140079540
mov rax, qword [rsp + 0x70]
movss dword [rax], xmm0
mov rax, qword [rsp + 0x70]
movss xmm0, dword [rax + 4]
addss xmm0, dword [rsp + 0x24]
mov rax, qword [rsp + 0x70]
movss dword [rax + 4], xmm0
xorps xmm0, xmm0
movss dword [rsp + 0x20], xmm0
movzx eax, byte [rsp + 0xa0]
test eax, eax
je 0x1400a4bcc
jmp 0x1400a4c0f
jmp 0x1400a4b42
cmp dword [rsp + 0x28], 0xd
jne 0x1400a4bdd
jmp 0x1400a4b42
movzx edx, word [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
call fcn.14009b3e0
mulss xmm0, dword [rsp + 0x3c]
movss dword [rsp + 0x40], xmm0
movss xmm0, dword [rsp + 0x20]
addss xmm0, dword [rsp + 0x40]
movss dword [rsp + 0x20], xmm0
jmp 0x1400a4b42
mov rax, qword [rsp + 0x70]
movss xmm0, dword [rsp + 0x20]
comiss xmm0, dword [rax]
jbe 0x1400a4c2e
mov rax, qword [rsp + 0x70]
movss xmm0, dword [rsp + 0x20]
movss dword [rax], xmm0
cmp qword [rsp + 0x98], 0
je 0x1400a4c6a
mov rax, qword [rsp + 0x70]
movss xmm0, dword [rax + 4]
addss xmm0, dword [rsp + 0x24]
movaps xmm2, xmm0
movss xmm1, dword [rsp + 0x20]
lea rcx, [rsp + 0x58]
call fcn.140023980
mov rax, qword [rax]
mov rcx, qword [rsp + 0x98]
mov qword [rcx], rax
movss xmm0, dword [rsp + 0x20]
comiss xmm0, dword [0x14021cfd8]
ja 0x1400a4c8e
mov rax, qword [rsp + 0x70]
movss xmm0, dword [rax + 4]
ucomiss xmm0, dword [0x14021cfd8]
jp 0x1400a4ca8
jne 0x1400a4ca8
mov rax, qword [rsp + 0x70]
movss xmm0, dword [rax + 4]
addss xmm0, dword [rsp + 0x24]
mov rax, qword [rsp + 0x70]
movss dword [rax + 4], xmm0
cmp qword [rsp + 0x90], 0
je 0x1400a4cc3
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x30]
mov qword [rax], rcx
mov rax, qword [rsp + 0x70]
add rsp, 0x68
ret
Function at 0x1400b72e0
Capabilities:
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 [0x140238320]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x10]
and eax, 1
test eax, eax
jne 0x1400b7316
jmp 0x1400b7530
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 4]
and eax, 0xc0
test eax, eax
jne 0x1400b7331
mov byte [rsp + 0x20], 1
jmp 0x1400b7336
mov byte [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
mov byte [rsp + 0x21], al
movzx eax, byte [rsp + 0x21]
test eax, eax
je 0x1400b735d
mov rax, qword [rsp + 0x80]
movss xmm0, dword [rax + 0x50]
movss dword [rsp + 0x38], xmm0
jmp 0x1400b7366
xorps xmm0, xmm0
movss dword [rsp + 0x38], xmm0
mov rax, qword [rsp + 0x80]
movss xmm0, dword [rax + 0x2c]
subss xmm0, dword [rsp + 0x38]
movss dword [rsp + 0x2c], xmm0
mov rax, qword [rsp + 0x88]
movss xmm0, dword [rsp + 0x2c]
addss xmm0, dword [rax + 0x10]
comiss xmm0, dword [rsp + 0x90]
jbe 0x1400b73a6
mov dword [rsp + 0x3c], 0xffffffff
jmp 0x1400b73ae
mov dword [rsp + 0x3c], 1
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x58], rax
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x58]
call fcn.1400b9ad0
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x24], eax
jmp 0x1400b73fb
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x24]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jl 0x1400b7502
mov rax, qword [rsp + 0x80]
mov eax, dword [rax]
cmp dword [rsp + 0x24], eax
jge 0x1400b7502
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x60], rax
mov edx, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x60]
call fcn.1400771c0
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 4]
and eax, 0x20
test eax, eax
je 0x1400b744e
jmp 0x1400b7502
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 4]
and eax, 0xc0
mov rcx, qword [rsp + 0x88]
mov ecx, dword [rcx + 4]
and ecx, 0xc0
cmp eax, ecx
je 0x1400b7475
jmp 0x1400b7502
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x40]
movss xmm0, dword [rsp + 0x2c]
addss xmm0, dword [rax + 0x10]
mov rax, qword [rsp + 0x50]
subss xmm0, dword [rax + 0x394c]
movss dword [rsp + 0x48], xmm0
mov rax, qword [rsp + 0x40]
movss xmm0, dword [rsp + 0x2c]
addss xmm0, dword [rax + 0x10]
mov rax, qword [rsp + 0x40]
addss xmm0, dword [rax + 0x14]
mov rax, qword [rsp + 0x50]
addss xmm0, dword [rax + 0x394c]
movss dword [rsp + 0x4c], xmm0
cmp dword [rsp + 0x30], 0
jge 0x1400b74e4
movss xmm0, dword [rsp + 0x90]
comiss xmm0, dword [rsp + 0x48]
ja 0x1400b74fb
cmp dword [rsp + 0x30], 0
jle 0x1400b74fd
movss xmm0, dword [rsp + 0x4c]
comiss xmm0, dword [rsp + 0x90]
jbe 0x1400b74fd
jmp 0x1400b7502
jmp 0x1400b73eb
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 0x34], eax
je 0x1400b7530
mov eax, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x34]
sub ecx, eax
mov eax, ecx
mov r8d, eax
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call fcn.1400b72b0
add rsp, 0x78
ret
Function at 0x1400d55d0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x48
mov eax, dword [0x140238338]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x20], 0x40
mov r9d, 0x1000
mov r8d, 0x1f4
xor edx, edx
mov rcx, qword [0x140238318]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [0x14023833c], eax
movsxd rax, dword [0x14023833c]
mov qword [rsp + 0x20], 0
mov r9d, 0x3c
lea r8, [0x140231ea8]
mov rdx, rax
mov rcx, qword [0x140238318]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [0x14023833c]
add eax, 0x13
mov dl, 0x50
mov ecx, eax
call fcn.1400438f0
mov eax, dword [0x14023833c]
add eax, 0x5e
mov ecx, dword [0x14023833c]
add ecx, 9
mov edx, eax
call fcn.1400438b0
mov eax, dword [rsp + 0x30]
add eax, 8
cdqe
mov qword [rsp + 0x20], 0
mov r9d, 7
lea r8, [0x140238330]
mov rdx, rax
mov rcx, qword [0x140238318]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
movsxd rax, dword [0x14023833c]
mov qword [rsp + 0x20], 0
mov r9d, 7
lea r8, [0x140238330]
mov rdx, rax
mov rcx, qword [0x140238318]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
add rsp, 0x48
ret

Function at 0x1400df7d0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x178
mov rax, qword [0x140231200]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x20], 0
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
jne 0x1400df81e
xor eax, eax
jmp 0x1400df891
mov dword [rsp + 0x30], 0x130
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x1400df87e
mov rdx, qword [rsp + 0x180]
lea rcx, [rsp + 0x5c]
call fcn.14013f04c
test eax, eax
jne 0x1400df86a
mov eax, dword [rsp + 0x20]
cmp dword [rsp + 0x4c], eax
jbe 0x1400df86a
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x24], eax
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x1400df83a
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x24]
jmp 0x1400df891
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140121790
add rsp, 0x178
ret
Function at 0x1400e0f40
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov r8d, 2
xor edx, edx
mov rcx, qword [rsp + 0x88]
call fcn.140132148
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x1400e0f78
mov eax, 0xfffffffd
jmp 0x1400e10ca
mov rcx, qword [rsp + 0x88]
call fcn.140136e70
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jge 0x1400e0f9a
mov eax, 0xfffffffd
jmp 0x1400e10ca
cmp dword [rsp + 0x20], 0
jne 0x1400e0fa8
xor eax, eax
jmp 0x1400e10ca
mov eax, dword [rsp + 0x20]
inc eax
cdqe
lea rdx, [0x14016ab36]
mov rcx, rax
call fcn.14012214c
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x1400e0fe0
mov eax, 0xfffffffe
jmp 0x1400e10ca
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov byte [rcx + rax], 0
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x88]
call fcn.140132148
movsxd rax, dword [rsp + 0x20]
mov r9, qword [rsp + 0x88]
mov r8, rax
mov edx, 1
mov rcx, qword [rsp + 0x28]
call fcn.140131d78
mov qword [rsp + 0x40], rax
movsxd rax, dword [rsp + 0x20]
cmp qword [rsp + 0x40], rax
je 0x1400e1071
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x38]
call fcn.140121ad4
cmp qword [rsp + 0x38], 0
jne 0x1400e1057
mov qword [rsp + 0x58], 0
jmp 0x1400e106a
mov qword [rsp + 0x28], 0x8123
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x58], rax
mov eax, 0xfffffffd
jmp 0x1400e10ca
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x80]
call fcn.1400e2fa0
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x48]
call fcn.140121ad4
cmp qword [rsp + 0x48], 0
jne 0x1400e10b3
mov qword [rsp + 0x60], 0
jmp 0x1400e10c6
mov qword [rsp + 0x28], 0x8123
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x34]
add rsp, 0x78
ret
Function at 0x1401168e8
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x140102f8e
movzx eax, byte [rcx + rdx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x140102f71
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x140102f5c

Function at 0x140122694
Capabilities:
Parse pe header

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

Function at 0x140132910
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 0x14013277b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14013277b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14013277b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14013277b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14013277b
cmp dword [rcx + 0x84], 0xe
jbe 0x14013277b
cmp dword [rcx + 0xf8], 0
je 0x14013277b
mov ecx, ebx
call fcn.14013282c
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.140132608
nop
cmp dword [rbp + 0x20], 0
je 0x1401327c9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1401327d4
int3
xor r8d, r8d
xor edx, edx
jmp 0x14013270c
Function at 0x140136bf0
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.1401224e0
sub rsp, rax
mov rax, qword [0x140231200]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1401482cc
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140136c3f
mov rax, rbp
jmp 0x140136d47
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 + 0x237a60]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14014bd24
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x237a60]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140136d43
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 0x140136d43
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14014bd24
test rax, rax
js 0x140136d43
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140136d43
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140136d35
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140136d35
cmp byte [rcx], 0xd
jne 0x140136d1b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140136d2a
cmp byte [rcx + 1], 0xa
jne 0x140136d2a
inc rcx
jmp 0x140136d2a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x231640]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140136cfd
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140136d47
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140121790
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 0x1401483ec
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140148402
mov al, 1
jmp 0x140148462
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140148413
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140148460
mov ecx, dword [rcx + 0x18]
nop
call fcn.1401542f0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140148460
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140148460
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140148460
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140148462
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14014b0c4
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, [0x140237a60]
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 0x14014b11b
cmp word [rdx], r13w
jne 0x14014b11b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14014b120
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14014b245
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14014b266
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14014b159
mov rdx, r9
mov word [rbx], cx
jmp 0x14014b180
cmp r9, r8
jae 0x14014b190
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 0x14014b13a
jmp 0x14014b245
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 0x14014b23a
cmp dword [rsp + 0x80], esi
je 0x14014b23a
lea r8, [0x140237a60]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14014b212
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14014b1e2
mov word [rbx], r13w
jmp 0x14014b242
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 0x14014b1ef
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14014b242
cmp word [rsp + 0x70], r13w
jne 0x14014b21f
cmp rbx, r14
je 0x14014b1dc
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14014bd2c
cmp word [rsp + 0x70], r13w
je 0x14014b245
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, [0x140237a60]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14014b23f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14014b245
Function at 0x14014f8f4
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14014f914
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14013dcc4
or eax, 0xffffffff
jmp 0x14014f916
xor eax, eax
add rsp, 0x28
ret
Function at 0x14015317c
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 0x1401531ac
xor eax, eax
jmp 0x14015326f
mov rbp, rbx
cmp word [rax], si
je 0x1401531d1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1401531b8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1401531b4
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.140150bb4
movsxd r14, eax
test eax, eax
jne 0x14015320f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1401531a5
mov rcx, r14
call fcn.14014bdd0
mov rdi, rax
test rax, rax
jne 0x140153228
xor ecx, ecx
call fcn.140148290
jmp 0x140153204
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.140150bb4
test eax, eax
jne 0x140153259
mov rcx, rdi
call fcn.140148290
jmp 0x140153263
xor ecx, ecx
call fcn.140148290
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 0x14015328c
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 0x140153313
mov rsi, rbx
cmp word [rax], bp
je 0x1401532d2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1401532bc
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1401532b8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14014bdd0
mov rdi, rax
test rax, rax
je 0x140153300
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14015f780
mov rbp, rdi
xor ecx, ecx
call fcn.140148290
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 0x140156844
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.1401488ac
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 0x1401568e5
cmp ebx, dword [rsp + 0x30]
je 0x1401568de
test esi, esi
je 0x1401568de
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1401568b9
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1401568c6
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1401568a3
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1401568ca
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1401568e7
mov eax, 1
jmp 0x1401568e7
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret