joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18003e690
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x90
mov rax, qword [0x180082010]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, rcx
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x58]
cmp rdi, 0x40000000
jbe 0x18003e6dd
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x18018b780]
lea r15, [rdi + 0x40000000]
cmp qword [rsp + 0x60], r15
cmovbe r15, qword [rsp + 0x60]
sub r15, 0xfff
test rsi, rsi
je 0x18003e71f
cmp rsi, r14
jb 0x18003e717
cmp rsi, r15
jae 0x18003e717
cmp qword [rsi + 8], 0
jne 0x18003e8dd
mov rsi, qword [rsi]
test rsi, rsi
jne 0x18003e702
mov qword [rsp + 0xb8], rbx
mov rbx, rdi
mov qword [rsp + 0xc0], rbp
cmp rdi, r14
jb 0x18003e7a2
nop word [rax + rax]
mov ebp, dword [rsp + 0x78]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x18003e799
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18003e799
cmp dword [rsp + 0x40], 0x10000
je 0x18003e81b
mov rbx, qword [rsp + 0x28]
cmp rbx, rbp
jb 0x18003e799
sub rbx, rbp
cmp rbx, r14
jae 0x18003e760
test rsi, rsi
jne 0x18003e886
cmp rdi, r15
ja 0x18003e8cd
nop dword [rax + rax]
mov ebp, dword [rsp + 0x78]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x18003e8cd
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18003e8cd
cmp dword [rsp + 0x40], 0x10000
je 0x18003e854
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x38]
add rdi, qword [rsp + 0x20]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x18003e7d2
jmp 0x18003e8cd
test rbx, rbx
je 0x18003e799
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x18003e886
cmp rbx, r14
jae 0x18003e740
jmp 0x18003e7a2
test rdi, rdi
je 0x18003e8cd
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x18003e886
cmp rdi, r15
jbe 0x18003e7b0
jmp 0x18003e8cd
xor eax, eax
lea rcx, [rsi + 0x40]
mov rdx, rcx
mov qword [rsi + 8], rax
sub rdx, rsi
mov dword [rsi + 0x10], eax
nop dword [rax]
mov rax, qword [rsi + 8]
add rdx, 0x40
mov qword [rcx], rax
mov qword [rsi + 8], rcx
add rcx, 0x40
cmp rdx, 0xfc0
jbe 0x18003e8a0
mov rax, qword [0x18018b780]
mov qword [rsi], rax
mov qword [0x18018b780], rsi
mov rbp, qword [rsp + 0xc0]
mov rbx, qword [rsp + 0xb8]
mov rax, rsi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.18004cbd0
mov rsi, qword [rsp + 0xc8]
add rsp, 0x90
pop r15
pop r14
pop rdi
ret
Function at 0x18003f260
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x180082010]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor esi, esi
mov r14d, edx
mov rbx, rcx
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
xor edx, edx
mov ebp, r8d
lea ecx, [rsi + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18003f38b
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x18003f382
nop dword [rax]
cmp dword [rsp + 0x20], 0x10
jb 0x18003f364
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x18003f364
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x18003f364
mov rdx, qword [rbx]
test rdx, rdx
jne 0x18003f322
mov rcx, qword [0x18018b430]
mov r8d, 0x200
mov dword [rbx + 8], 0x80
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x18003f382
jmp 0x18003f357
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x18003f357
mov rcx, qword [0x18018b430]
lea r9d, [rax + rax]
mov r8, rdx
shl r9, 2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x18003f382
mov eax, dword [rbx + 8]
add eax, eax
mov qword [rbx], rdx
mov dword [rbx + 8], eax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x18003f2d0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], rsi
je 0x18003f3e3
cmp dword [rbx + 0xc], esi
jbe 0x18003f3e3
nop word [rax + rax]
mov rax, qword [rbx]
xor edx, edx
mov ecx, esi
mov r8d, dword [rax + rcx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x18003f3dc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.18003f0b0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rbx + 0xc]
jb 0x18003f3a0
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18004cbd0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x18003f410
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x180082010]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, ecx
lea r9, [rsp + 0x20]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x18018b770]
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18003f483
mov eax, 0xa
jmp 0x18003f512
test esi, esi
je 0x18003f4a5
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x18003f4c8
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x18003f4c8
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x18003f4c1
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x18003f4c8
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
and byte [rbx + 0x20], 0xfd
and sil, 1
movzx eax, sil
shl sil, 2
add al, al
or al, byte [rbx + 0x20]
and al, 0xfb
or al, sil
mov byte [rbx + 0x20], al
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.18004cbd0
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x18003f540
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, ecx
mov ecx, dword [0x18018b77c]
mov ebx, edi
test ecx, ecx
je 0x18003f67b
mov rax, qword [0x18018b770]
add rax, 0x20
nop
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x18003f598
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x18003f570
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xffffffff
je 0x18003f67b
mov r8d, edi
lea rcx, [rsp + 0x20]
test esi, esi
mov edx, 0xffffffff
setne r8b
call fcn.18003f260
mov r8d, dword [0x18018b77c]
cmp ebx, r8d
jae 0x18003f608
nop word [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x18018b770]
movzx edx, byte [rcx + rax + 0x20]
shr edx, 1
and edx, 1
cmp edx, esi
je 0x18003f601
mov edx, esi
mov ecx, ebx
call fcn.18003f410
mov edi, eax
test eax, eax
jne 0x18003f608
mov r8d, dword [0x18018b77c]
inc ebx
cmp ebx, r8d
jb 0x18003f5d0
cmp qword [rsp + 0x20], 0
je 0x18003f67b
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x18003f667
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop dword [rax]
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18003f658
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x18003f630
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x18018b430]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x48]
mov eax, edi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x18003f9d0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov esi, edx
mov ebx, r15d
xor eax, eax
mov rdi, rcx
mov ebp, 1
lock cmpxchg dword [0x18018b424], ebp
je 0x18003fa27
cmp rbx, 0x20
jae 0x18003fa10
xor ecx, ecx
jmp 0x18003fa12
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x18018b424], ebp
jne 0x18003fa06
cmp qword [0x18018b430], r15
je 0x18003fb21
test rdi, rdi
jne 0x18003fa47
mov ecx, esi
call fcn.18003f540
mov ebp, eax
jmp 0x18003fb26
mov ecx, dword [0x18018b77c]
mov ebx, r15d
test ecx, ecx
je 0x18003fa6f
mov r8, qword [0x18018b770]
mov rax, r8
nop
cmp rdi, qword [rax]
je 0x18003fa79
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x18003fa60
mov ebp, 4
jmp 0x18003fb26
cmp ebx, 0xffffffff
je 0x18003fa6f
mov eax, ebx
imul rdx, rax, 0x38
movzx eax, byte [rdx + r8 + 0x20]
shr eax, 1
and eax, ebp
cmp eax, esi
je 0x18003fb18
mov r8d, ebp
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.18003f260
mov edx, esi
mov ecx, ebx
call fcn.18003f410
mov ebp, eax
cmp qword [rsp + 0x20], r15
je 0x18003fb26
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x18003fb02
mov rbx, qword [rsp + 0x20]
mov esi, eax
nop word [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x18003faf8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rsi, 1
jne 0x18003fad0
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x18018b430]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18003fb26
neg esi
sbb ebp, ebp
add ebp, 6
jmp 0x18003fb26
mov ebp, 2
xchg dword [0x18018b424], r15d
mov rbx, qword [rsp + 0x40]
mov eax, ebp
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
Function at 0x180044e20
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x48
cmp byte [0x18018b5a2], 0
je 0x180045038
mov rax, qword [0x18018b568]
mov qword [rsp + 0x60], rsi
xor esi, esi
test rax, rax
jne 0x180044f16
mov rax, qword gs:[0x60]
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x40], rdi
mov rcx, qword [rax + 0x18]
mov rax, qword [rcx + 0x10]
mov rbp, qword [rax]
mov rbx, rbp
nop
mov r9, qword [rbx + 0x30]
movsxd rax, dword [r9 + 0x3c]
mov r11d, dword [rax + r9 + 0x88]
add r11, r9
cmp r11, r9
je 0x180044ee8
mov r8d, dword [r11 + 0x18]
test r8d, r8d
je 0x180044ee8
mov edi, dword [r11 + 0x20]
nop word [rax + rax]
dec r8d
mov edx, 0x811c9dc5
lea rax, [rdi + r8*4]
mov ecx, dword [rax + r9]
add rcx, r9
movzx eax, byte [rcx]
inc rcx
test al, al
je 0x180044ee3
nop dword [rax]
movsx eax, al
lea rcx, [rcx + 1]
xor eax, edx
imul edx, eax, 0x1000193
movzx eax, byte [rcx - 1]
test al, al
jne 0x180044ec0
cmp edx, 0x95466b05
je 0x180045015
test r8d, r8d
jne 0x180044ea0
mov rax, qword [rbx]
mov rbx, rax
cmp rax, rbp
je 0x180044efd
cmp qword [rax + 0x30], rsi
jne 0x180044e70
mov rax, rsi
mov rdi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov qword [0x18018b568], rax
mov ecx, dword [0x18018b5a4]
call rax
test ax, ax
je 0x180045033
mov rax, qword [0x18018b758]
mov r10, qword [rax]
test r10, r10
je 0x180045033
mov r10, qword [r10 + 8]
test r10, r10
je 0x180045033
mov rax, qword [0x18018b728]
mov r9, qword [rax]
test r9, r9
je 0x180045033
mov r9, qword [r9 + 0x18]
test r9, r9
je 0x180045033
mov r11d, dword [0x18018b73c]
mov r8, rsi
movss xmm3, dword [0x180078e10]
nop dword [rax]
movsxd rax, esi
cmp rax, qword [r9 + 0x108]
jae 0x180045033
mov rdx, qword [r9 + 0x100]
test rdx, rdx
je 0x18004500a
mov rdx, qword [r8 + rdx]
test rdx, rdx
je 0x18004500a
cmp rdx, r10
je 0x18004500a
mov ecx, dword [r11 + rdx]
test ecx, ecx
je 0x18004500a
and ecx, 0x1fc000
cmp ecx, 0x8000
je 0x18004500a
movsd xmm1, qword [r10 + 0x90]
mov eax, dword [r10 + 0x98]
movaps xmm2, xmm1
mov dword [rsp + 0x28], eax
movss xmm0, dword [rsp + 0x28]
shufps xmm2, xmm2, 0x55
addss xmm2, xmm3
movss dword [rsp + 0x38], xmm0
mov eax, dword [rsp + 0x38]
mov dword [rdx + 0x280], 0x3dcccccd
unpcklps xmm1, xmm2
movsd qword [rdx + 0x90], xmm1
mov dword [rdx + 0x98], eax
inc esi
add r8, 0x10
jmp 0x180044f80
mov ecx, dword [r11 + 0x24]
add rcx, r9
movzx edx, word [rcx + r8*2]
mov ecx, dword [r11 + 0x1c]
add rcx, r9
mov eax, dword [rcx + rdx*4]
add rax, r9
jmp 0x180044f00
mov rsi, qword [rsp + 0x60]
add rsp, 0x48
ret
Function at 0x14000a8b0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x14000a8d2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x14000a94c
mov rdi, r14
mov rcx, rbx
call fcn.140007930
test rax, rax
jle 0x14000a924
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.14002f210
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14000a93c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x14000a944
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x14000a8e6
sub r14, rdi
jmp 0x14000aa2f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x14000a963
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000a965
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000a997
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.14002f210
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14000aa2c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000a9d2
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x14000aa0d
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.140018a24
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x14000aa2c
cmp rbp, rax
ja 0x14000a9e0
test rbp, rbp
je 0x14000aa2c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.140018a24
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret

Function at 0x14000c1c0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14000c1fa
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14000c1ff
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14000c248
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400326f0]
cmp byte [rcx + rax], 0
je 0x14000c248
dec r8
sub rdx, 1
jne 0x14000c22e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x14000dd44
Capabilities:
Parse pe header

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

Function at 0x14001416c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140013f68

Function at 0x140021304
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14002131a
mov al, 1
jmp 0x14002137a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14002132b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140021378
mov ecx, dword [rcx + 0x18]
nop
call fcn.140027910
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140021378
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140021378
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140021378
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14002137a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140023388
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.14000d740
sub rsp, rax
mov rax, qword [0x140043040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001f548
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400233d7
mov rax, rbp
jmp 0x1400234df
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 + 0x457b0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140024780
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x457b0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400234db
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 0x1400234db
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140024780
test rax, rax
js 0x1400234db
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400234db
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400234cd
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400234cd
cmp byte [rcx], 0xd
jne 0x1400234b3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400234c2
cmp byte [rcx + 1], 0xa
jne 0x1400234c2
inc rcx
jmp 0x1400234c2
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x43470]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140023495
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400234df
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000d0f0
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 0x140023b20
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, [0x1400457b0]
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 0x140023b77
cmp word [rdx], r13w
jne 0x140023b77
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140023b7c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140023ca1
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140023cc2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140023bb5
mov rdx, r9
mov word [rbx], cx
jmp 0x140023bdc
cmp r9, r8
jae 0x140023bec
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 0x140023b96
jmp 0x140023ca1
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 0x140023c96
cmp dword [rsp + 0x80], esi
je 0x140023c96
lea r8, [0x1400457b0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140023c6e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140023c3e
mov word [rbx], r13w
jmp 0x140023c9e
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 0x140023c4b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140023c9e
cmp word [rsp + 0x70], r13w
jne 0x140023c7b
cmp rbx, r14
je 0x140023c38
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140024788
cmp word [rsp + 0x70], r13w
je 0x140023ca1
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, [0x1400457b0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140023c9b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140023ca1
Function at 0x140026dfc
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 0x140026e2c
xor eax, eax
jmp 0x140026eef
mov rbp, rbx
cmp word [rax], si
je 0x140026e51
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140026e38
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140026e34
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.140023674
movsxd r14, eax
test eax, eax
jne 0x140026e8f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140026e25
mov rcx, r14
call fcn.14001e2ec
mov rdi, rax
test rax, rax
jne 0x140026ea8
xor ecx, ecx
call fcn.14001e2b0
jmp 0x140026e84
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.140023674
test eax, eax
jne 0x140026ed9
mov rcx, rdi
call fcn.14001e2b0
jmp 0x140026ee3
xor ecx, ecx
call fcn.14001e2b0
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 0x140029e64
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.14001de74
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 0x140029f05
cmp ebx, dword [rsp + 0x30]
je 0x140029efe
test esi, esi
je 0x140029efe
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140029ed9
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140029ee6
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140029ec3
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140029eea
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140029f07
mov eax, 1
jmp 0x140029f07
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret