joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a88e0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push rbp
mov rbp, rsp
mov rcx, qword [rsp + 0x10]
mov rax, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
movups xmm0, xmmword [rax]
movups xmmword [rbx], xmm0
add rbx, 0x10
pxor xmm4, xmm4
cmp ecx, 0xc
je 0x4a89b4
jb 0x4a8a13
movups xmm2, xmmword [rax + 0x10]
movups xmmword [rbx], xmm2
add rbx, 0x10
aeskeygenassist xmm1, xmm2, 1
call fcn.004a87c0
aeskeygenassist xmm1, xmm0, 1
call fcn.004a87e0
aeskeygenassist xmm1, xmm2, 2
call fcn.004a87c0
aeskeygenassist xmm1, xmm0, 2
call fcn.004a87e0
aeskeygenassist xmm1, xmm2, 4
call fcn.004a87c0
aeskeygenassist xmm1, xmm0, 4
call fcn.004a87e0
aeskeygenassist xmm1, xmm2, 8
call fcn.004a87c0
aeskeygenassist xmm1, xmm0, 8
call fcn.004a87e0
aeskeygenassist xmm1, xmm2, 0x10
call fcn.004a87c0
aeskeygenassist xmm1, xmm0, 0x10
call fcn.004a87e0
aeskeygenassist xmm1, xmm2, 0x20
call fcn.004a87c0
aeskeygenassist xmm1, xmm0, 0x20
call fcn.004a87e0
aeskeygenassist xmm1, xmm2, 0x40
call fcn.004a87c0
jmp 0x4a8a81
movq xmm2, qword [rax + 0x10]
aeskeygenassist xmm1, xmm2, 1
call fcn.004a8720
aeskeygenassist xmm1, xmm2, 2
call fcn.004a8780
aeskeygenassist xmm1, xmm2, 4
call fcn.004a8720
aeskeygenassist xmm1, xmm2, 8
call fcn.004a8780
aeskeygenassist xmm1, xmm2, 0x10
call fcn.004a8720
aeskeygenassist xmm1, xmm2, 0x20
call fcn.004a8780
aeskeygenassist xmm1, xmm2, 0x40
call fcn.004a8720
aeskeygenassist xmm1, xmm2, 0x80
call fcn.004a8780
jmp 0x4a8a81
aeskeygenassist xmm1, xmm0, 1
call fcn.004a86e0
aeskeygenassist xmm1, xmm0, 2
call fcn.004a86e0
aeskeygenassist xmm1, xmm0, 4
call fcn.004a86e0
aeskeygenassist xmm1, xmm0, 8
call fcn.004a86e0
aeskeygenassist xmm1, xmm0, 0x10
call fcn.004a86e0
aeskeygenassist xmm1, xmm0, 0x20
call fcn.004a86e0
aeskeygenassist xmm1, xmm0, 0x40
call fcn.004a86e0
aeskeygenassist xmm1, xmm0, 0x80
call fcn.004a86e0
aeskeygenassist xmm1, xmm0, 0x1b
call fcn.004a86e0
aeskeygenassist xmm1, xmm0, 0x36
call fcn.004a86e0
sub rbx, 0x10
movups xmm1, xmmword [rbx]
movups xmmword [rdx], xmm1
dec rcx
movups xmm1, xmmword [rbx - 0x10]
aesimc xmm0, xmm1
movups xmmword [rdx + 0x10], xmm0
sub rbx, 0x10
add rdx, 0x10
dec rcx
jne 0x4a8a8e
movups xmm0, xmmword [rbx - 0x10]
movups xmmword [rdx + 0x10], xmm0
pop rbp
ret

Function at 0x4a8ea0
Capabilities:
Execute syscall

Disassembly:
xor rax, rax
mov ax, word [rsp + 8]
push rcx
mov rcx, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x18]
mov rdi, qword gs:[0x30]
mov dword [rdi + 0x68], 0
sub rsp, 0x80
cmp ecx, 4
jle 0x4a8ee0
cmp ecx, 0x10
jle 0x4a8ed6
int 3
mov rdi, rsp
cld
rep movsq qword [rdi], qword [rsi]
mov rsi, rsp
sub rsp, 8
mov rcx, qword [rsi]
mov rdx, qword [rsi + 8]
mov r8, qword [rsi + 0x10]
mov r9, qword [rsi + 0x18]
movq xmm0, rcx
movq xmm1, rdx
movq xmm2, r8
movq xmm3, r9
mov r10, rcx
syscall
add rsp, 0x88
pop rcx
mov dword [rsp + 0x28], eax
ret
Function at 0x4b5420
Capabilities:
Access peb ldr_data

Disassembly:
lea r12, [rsp - 0x20]
cmp r12, qword [r14 + 0x10]
jbe 0x4b56b9
push rbp
mov rbp, rsp
sub rsp, 0x98
mov qword [rsp + 0xb0], rbx
mov qword [rsp + 0xa8], rax
nop
lea rax, [0x004d1cc0]
call fcn.0040c6a0
mov qword [rsp + 0x70], rax
mov qword [rax + 8], 9
lea rcx, [0x004dd6ea]
mov qword [rax], rcx
mov byte [rax + 0x10], 1
nop
lea rax, [0x004d1cc0]
call fcn.0040c6a0
mov qword [rsp + 0x68], rax
mov qword [rax + 8], 8
lea rcx, [0x004dd47a]
mov qword [rax], rcx
mov byte [rax + 0x10], 1
nop
lea rax, [0x004d1c00]
call fcn.0040c6a0
cmp dword [0x005f2010], 0
jne 0x4b54b7
mov rcx, qword [rsp + 0x70]
jmp 0x4b54c4
call fcn.004612e0
mov rcx, qword [rsp + 0x70]
mov qword [r11], rcx
mov qword [rsp + 0x60], rax
mov qword [rax + 0x18], rcx
mov qword [rax + 8], 0xd
lea rcx, [0x004de4ec]
mov qword [rax], rcx
nop
lea rax, [0x004d1c00]
call fcn.0040c6a0
cmp dword [0x005f2010], 0
jne 0x4b5500
mov rcx, qword [rsp + 0x68]
jmp 0x4b550d
call fcn.004612e0
mov rcx, qword [rsp + 0x68]
mov qword [r11], rcx
mov qword [rsp + 0x58], rax
mov qword [rax + 0x18], rcx
mov qword [rax + 8], 0xc
lea rcx, [0x004de06c]
mov qword [rax], rcx
mov qword [rsp + 0x50], 0
mov rcx, qword [rsp + 0xb0]
mov qword [rsp + 0x40], rcx
lea rax, [0x004c2680]
call fcn.0040c6a0
mov rcx, qword [rsp + 0xb0]
mov qword [rax + 8], rcx
mov qword [rax + 0x10], 0x3000
mov qword [rax + 0x18], 0x40
mov rbx, rax
mov edi, 4
mov rax, qword [rsp + 0x58]
mov rcx, rdi
call fcn.004ae500
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0xb0]
test rcx, rcx
jbe 0x4b56ae
mov rcx, qword [rsp + 0xa8]
mov qword [rsp + 0x90], rcx
lea rax, [0x004c2620]
call fcn.0040c6a0
mov rcx, qword [rsp + 0x48]
mov qword [rax], rcx
mov rcx, qword [rsp + 0x90]
mov qword [rax + 8], rcx
mov rcx, qword [rsp + 0xb0]
mov qword [rax + 0x10], rcx
mov rbx, rax
mov ecx, 3
mov rdi, rcx
mov rax, qword [rsp + 0x60]
nop dword [rax]
call fcn.004ae500
movzx ecx, word [0x005f1da4]
mov word [rsp + 0x3e], cx
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x88], rdx
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x80], rdx
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x78], rdx
lea rax, [0x004c26e0]
nop dword [rax]
call fcn.0040c6a0
mov qword [rax], 0xffffffffffffffff
mov rcx, qword [rsp + 0x88]
mov qword [rax + 8], rcx
mov rcx, qword [rsp + 0x80]
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], 0x20
mov rcx, qword [rsp + 0x78]
mov qword [rax + 0x20], rcx
movzx ecx, word [rsp + 0x3e]
mov word [rsp], cx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], 5
mov qword [rsp + 0x18], 5
call fcn.004a8ea0
xorps xmm15, xmm15
mov r14, qword [0x005f1fd0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x48]
xor ebx, ebx
mov rcx, rbx
mov rdi, rcx
mov rsi, rcx
nop dword [rax]
call fcn.0045dd20
add rsp, 0x98
pop rbp
ret
xor eax, eax
mov rcx, rax
call fcn.00461660
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
call fcn.0045f3e0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
nop dword [rax]
jmp fcn.004b5420
Function at 0x1400047e4
Capabilities:
Identify system language via api

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x1400128b8]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea r14, str.en_US
mov rsi, rcx
mov qword [rcx], r14
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
mov word [rsp + 0x30], ax
mov ebx, 0x10
mov r9d, ebx
lea rdx, [0x140008110]
lea rax, [0x140004df0]
mov r8d, 0x1b3
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call sub.api_ms_win_crt_private_l1_1_0.dll__o_bsearch
xor ebp, ebp
test rax, rax
jne 0x14000485f
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400048e5
cmp dword [rax + 0xc], 0x7c
jne 0x14000486c
cmp word [rax + 8], 0x7f
jne 0x14000484f
mov r8, qword [rax]
or rcx, 0xffffffffffffffff
inc rcx
cmp word [r8 + rcx*2], bp
jne 0x140004873
inc rcx
cmp rcx, 0x7ffffffe
jbe 0x140004890
mov word [rsp + 0x38], bp
jmp 0x1400048d7
lea rax, [rsp + 0x38]
mov r9d, ebp
sub r8, rax
lea rdx, [rsp + 0x38]
lea rax, [rbx - 0x10]
add rax, rcx
je 0x1400048c0
movzx eax, word [r8 + rdx]
test ax, ax
je 0x1400048c0
mov word [rdx], ax
add rdx, 2
sub rbx, 1
jne 0x1400048a0
test rbx, rbx
jne 0x1400048cf
sub rdx, 2
mov r9d, 0x8007007a
mov word [rdx], bp
test r9d, r9d
jns 0x1400048e1
mov ecx, 0x7a
jmp 0x140004854
test ecx, ecx
jne 0x1400048f1
mov rcx, qword [rsp + 0x78]
call fcn.14000494c
jmp 0x14000492a
mov rbx, rbp
mov rdi, rbp
mov rdx, qword [rdi + r14]
lea rcx, [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
test eax, eax
je 0x14000491c
inc rbx
add rdi, 0x30
cmp rdi, 0x750
jb 0x1400048f7
jmp 0x14000492a
lea rax, [rbx + rbx*2]
shl rax, 4
add rax, r14
mov qword [rsi], rax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400050e0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x140005104
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140012e60], eax
call fcn.1400056f0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140012e60], 0
jne case.default.0x14000515a
mov ecx, 1
call fcn.1400056f0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
or eax, 0x95a854dc
cmp al, 0xa8
sub eax, 0xc1b13ff9
mov cs, word [rbx]
invalid
Function at 0x1400244d0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
mov rax, qword gs:[0x30]
xor r9d, r9d
mov edi, ecx
mov rdx, qword [rax + 0x60]
mov rax, qword [rdx + 0x18]
mov rdx, qword [rax + 0x10]
mov rax, qword [rdx]
mov rbx, qword [rax + 0x30]
movsxd rax, dword [rbx + 0x3c]
mov edx, dword [rax + rbx + 0x88]
add rdx, rbx
mov r14d, dword [rdx + 0x1c]
mov esi, dword [rdx + 0x20]
add r14, rbx
mov r11d, dword [rdx + 0x24]
add rsi, rbx
mov r15d, dword [rdx + 0x14]
add r11, rbx
mov r12d, dword [rdx + 0x18]
test r15, r15
je 0x1400245a3
mov qword [rsp + 0x20], rbp
nop word [rax + rax]
mov eax, dword [r14 + r9*4]
test eax, eax
je 0x14002458f
xor r8d, r8d
mov ebp, eax
test r12d, r12d
je 0x14002458f
movzx eax, word [r11 + r8*2]
cmp rax, r9
jne 0x140024587
mov edx, dword [rsi + r8*4]
xor eax, eax
add rdx, rbx
movzx ecx, byte [rdx]
test cl, cl
je 0x140024583
nop dword [rax]
ror eax, 7
lea rdx, [rdx + 1]
movsx ecx, cl
add eax, ecx
movzx ecx, byte [rdx]
test cl, cl
jne 0x140024570
cmp edi, eax
je 0x140024599
inc r8
cmp r8, r12
jb 0x140024552
inc r9
cmp r9, r15
jb 0x140024540
jmp 0x14002459e
movzx eax, byte [rbx + rbp + 4]
mov rbp, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
pop r15
pop r14
pop r12
ret

Function at 0x140024fb1
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov eax, dword [section..data]
syscall
ret

Function at 0x14002a0ec
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140029f18
Function at 0x1400012b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x88
mov dword [rsp + 0x7c], edx
mov qword [rsp + 0x70], rcx
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
movsxd rcx, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
mov ecx, dword [rcx + 0x88]
add rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x58]
mov ecx, dword [rcx + 0x1c]
add rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x58]
mov ecx, dword [rcx + 0x20]
add rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x58]
mov ecx, dword [rcx + 0x24]
add rax, rcx
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x3c], 0
mov eax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x58]
mov ecx, dword [rcx + 0x1c]
sub eax, ecx
setae al
movzx eax, al
mov ecx, eax
lea rax, [0x14003d060]
mov rax, qword [rax + rcx*8 + 0x10]
movabs rcx, 0x39405e264906a005
add rax, rcx
jmp rax
Function at 0x140003170
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x88
mov qword [rsp + 0x78], r8
mov qword [rsp + 0x70], rdx
mov qword [rsp + 0x68], rcx
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x78], 0
jg 0x1400031ad
mov qword [rsp + 0x80], 0
jmp 0x140003379
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x68], 0
je 0x1400031de
mov rcx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x70]
call fcn.140003f50
mov qword [rsp + 0x80], rax
jmp 0x140003379
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x58], rax
call fcn.140004310
mov qword [rsp + 0x50], rax
xor eax, eax
cmp rax, qword [rsp + 0x50]
jae 0x14000327d
lea rcx, [rsp + 0x60]
lea rdx, [rsp + 0x50]
call fcn.140004fc0
mov rcx, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
call fcn.1400043a0
mov r8, qword [rsp + 0x28]
mov rdx, rax
mov rcx, qword [rsp + 0x70]
call fcn.140004360
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x48]
add rax, qword [rsp + 0x70]
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x60]
sub rax, rdx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x48]
mov edx, eax
call fcn.1400043c0
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x80], 0
je 0x140003367
mov rcx, qword [rsp + 0x30]
call fcn.1400025f0
mov qword [rsp + 0x40], 0xfff
mov eax, 0xfff
cmp rax, qword [rsp + 0x60]
jae 0x140003325
mov rax, qword [rsp + 0x30]
mov r9, qword [rax + 0x80]
mov rcx, qword [rsp + 0x70]
mov edx, 1
mov r8d, 0xfff
call fcn.140012314
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
add rax, qword [rsp + 0x70]
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x60]
sub rax, rcx
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x38], 0xfff
je 0x140003320
mov rax, qword [rsp + 0x58]
sub rax, qword [rsp + 0x60]
mov qword [rsp + 0x80], rax
jmp 0x140003379
jmp 0x1400032a3
xor eax, eax
cmp rax, qword [rsp + 0x60]
jae 0x140003362
mov rax, qword [rsp + 0x30]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x70]
mov edx, 1
call fcn.140012314
mov rcx, rax
mov rax, qword [rsp + 0x60]
sub rax, rcx
mov qword [rsp + 0x60], rax
jmp 0x140003367
mov rax, qword [rsp + 0x58]
sub rax, qword [rsp + 0x60]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
add rsp, 0x88
ret

Function at 0x14000a750
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000a79a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000a79a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000a79a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000a79a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000a79a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000a79c
xor al, al
add rsp, 0x28
ret
Function at 0x1400115b0
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 0x14001141b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001141b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001141b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001141b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001141b
cmp dword [rcx + 0x84], 0xe
jbe 0x14001141b
cmp dword [rcx + 0xf8], 0
je 0x14001141b
mov ecx, ebx
call fcn.1400114cc
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.1400112a8
nop
cmp dword [rbp + 0x20], 0
je 0x140011469
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140011474
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400113ac
Function at 0x14001c874
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001c88a
mov al, 1
jmp 0x14001c8ea
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001c89b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001c8e8
mov ecx, dword [rcx + 0x18]
nop
call fcn.140020488
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001c8e8
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001c8e8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001c8e8
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001c8ea
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14001cce4
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, [0x14003ef90]
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 0x14001cd3b
cmp word [rdx], r13w
jne 0x14001cd3b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001cd40
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001ce65
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001ce86
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001cd79
mov rdx, r9
mov word [rbx], cx
jmp 0x14001cda0
cmp r9, r8
jae 0x14001cdb0
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 0x14001cd5a
jmp 0x14001ce65
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 0x14001ce5a
cmp dword [rsp + 0x80], esi
je 0x14001ce5a
lea r8, [0x14003ef90]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001ce32
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001ce02
mov word [rbx], r13w
jmp 0x14001ce62
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 0x14001ce0f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001ce62
cmp word [rsp + 0x70], r13w
jne 0x14001ce3f
cmp rbx, r14
je 0x14001cdfc
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14001d94c
cmp word [rsp + 0x70], r13w
je 0x14001ce65
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, [0x14003ef90]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001ce5f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001ce65
Function at 0x14001dd08
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.140028380
sub rsp, rax
mov rax, qword [0x14003d658]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001a26c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14001dd57
mov rax, rbp
jmp 0x14001de5f
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 + 0x3ef90]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14001d944
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x3ef90]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14001de5b
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 0x14001de5b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14001d944
test rax, rax
js 0x14001de5b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14001de5b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14001de4d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14001de4d
cmp byte [rcx], 0xd
jne 0x14001de33
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14001de42
cmp byte [rcx + 1], 0xa
jne 0x14001de42
inc rcx
jmp 0x14001de42
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x3da80]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14001de15
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14001de5f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140028350
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 0x14001f8a8
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 0x14001f8d8
xor eax, eax
jmp 0x14001f99b
mov rbp, rbx
cmp word [rax], si
je 0x14001f8fd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14001f8e4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001f8e0
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.14001f7c8
movsxd r14, eax
test eax, eax
jne 0x14001f93b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001f8d1
mov rcx, r14
call fcn.14001e0a8
mov rdi, rax
test rax, rax
jne 0x14001f954
xor ecx, ecx
call fcn.14001a230
jmp 0x14001f930
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.14001f7c8
test eax, eax
jne 0x14001f985
mov rcx, rdi
call fcn.14001a230
jmp 0x14001f98f
xor ecx, ecx
call fcn.14001a230
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 0x140022b6c
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.14001aa54
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 0x140022c0d
cmp ebx, dword [rsp + 0x30]
je 0x140022c06
test esi, esi
je 0x140022c06
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140022be1
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140022bee
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140022bcb
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140022bf2
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140022c0f
mov eax, 1
jmp 0x140022c0f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret