joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180058420
Capabilities:
Log keystrokes via polling

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xc0
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
movaps xmmword [rax - 0x58], xmm8
movaps xmmword [rax - 0x68], xmm9
movaps xmmword [rax - 0x78], xmm10
movaps xmmword [rsp + 0x60], xmm11
movaps xmmword [rsp + 0x50], xmm12
mov rax, qword [0x18006a040]
xor rax, rsp
mov qword [rsp + 0x48], rax
movss xmm12, dword [0x180061218]
movabs r15, 0x7fffffffffffec77
mov r13d, 0xff
movabs r12, 0x7fffffffffffffff
xorps xmm11, xmm11
nop dword [rax + rax]
cmp byte [0x18006a9d0], 0
je 0x1800585f9
mov ecx, 0x45
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x1800585f9
call fcn.180001610
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetCursorPos]
lea rcx, [0x18006a0a0]
movss dword [rsp + 0x28], xmm11
movss dword [rsp + 0x2c], xmm11
movaps xmm8, xmm11
movaps xmm9, xmm11
movaps xmm10, xmm12
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
jne 0x180058663
cmp dword [0x18006a0ec], 0x7fffffff
je 0x18005864d
mov rsi, qword [0x18006aa48]
mov rdi, qword [0x18006aa40]
cmp rdi, rsi
je 0x1800585c1
mov rbx, qword [rsp + 0x40]
mov r14d, dword [rsp + 0x44]
mov rbp, qword [0x18006aa10]
cmp qword [rdi], 0
je 0x1800585aa
mov eax, dword [rdi + 0x28]
dec eax
cmp eax, 0x63
ja 0x1800585aa
lea r8, [rbp + 0x1a1ff70]
mov qword [rsp + 0x20], 0
lea rcx, [rdi + 0x30]
lea rdx, [rsp + 0x20]
call fcn.180058770
test al, al
je 0x1800585aa
movss xmm6, dword [rsp + 0x24]
movss xmm7, dword [rsp + 0x20]
movaps xmm1, xmm6
movd xmm2, ebx
cvtdq2ps xmm2, xmm2
movd xmm0, r14d
cvtdq2ps xmm0, xmm0
subss xmm1, xmm0
movaps xmm0, xmm7
subss xmm0, xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll__hypotf
comiss xmm10, xmm0
jbe 0x1800585aa
movaps xmm10, xmm0
movaps xmm8, xmm7
movaps xmm9, xmm6
add rdi, 0x48
cmp rdi, rsi
jne 0x180058538
movss dword [rsp + 0x28], xmm8
movss dword [rsp + 0x2c], xmm9
lea rcx, [0x18006a0a0]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
ucomiss xmm8, xmm11
jp 0x1800585d6
je 0x1800585f9
ucomiss xmm9, xmm11
jp 0x1800585de
je 0x1800585f9
lea rcx, [rsp + 0x28]
call fcn.180001ee0
lea rcx, [rsp + 0x30]
call fcn.180001e00
mov rax, qword [rsp + 0x30]
jmp 0x18005860d
lea rcx, [rsp + 0x30]
call fcn.180001e00
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
cmp rax, r15
je 0x180058639
mov ecx, 1
cmovl ecx, r13d
test cl, cl
jns 0x180058639
add rax, 0x1388
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x38], rax
call fcn.180002220
jmp 0x1800584a0
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x38], r12
call fcn.180002220
jmp 0x1800584a0
mov ecx, 6
mov dword [0x18006a0ec], 0x7ffffffe
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x180058670
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
test edx, edx
je 0x1800586b2
cmp edx, 1
jne 0x1800586e8
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
xor eax, eax
lea r8, [0x180058310]
mov qword [rsp + 0x28], rax
mov r9, rbx
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x30
pop rbx
ret
mov rcx, qword [0x18006aa18]
call fcn.180058190
cmp dword [0x18006aa80], 0
je 0x1800586e8
call fcn.180057300
mov rcx, qword [0x18006aa78]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
mov qword [0x18006aa78], rax
mov dword [0x18006aa80], eax
mov eax, 1
add rsp, 0x30
pop rbx
ret
Function at 0x140002890
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x1400420c0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rsi, rcx
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x1400028d9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_to_open_clipboard._Error:__lu_n
call fcn.140001240
jmp 0x140002a2a
mov ecx, 1
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rdi, rax
test rax, rax
jne 0x14000290b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_to_get_clipboard_data._Error:__lu_n
call fcn.140001240
call qword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x140002a2a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rbx, rax
test rax, rax
jne 0x14000293b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_to_lock_global_memory._Error:__lu_n
call fcn.140001240
call qword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x140002a2a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call qword [sym.imp.USER32.dll_CloseClipboard]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rbx + r8], al
jne 0x140002965
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.140003a90
nop
add rsi, 0x10
mov rdx, rsi
cmp qword [rsi + 0x18], 0xf
jbe 0x14000298d
mov rdx, qword [rsi]
lea rcx, [rsp + 0x20]
mov rdi, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x38]
cmp rbp, 0xf
cmova rcx, rdi
mov r14, qword [rsp + 0x30]
cmp r14, qword [rsi + 0x10]
jne 0x1400029bb
mov r8, r14
call fcn.14002e660
test eax, eax
je 0x1400029f7
lea rax, [rsp + 0x20]
cmp rsi, rax
je 0x1400029e7
lea rdx, [rsp + 0x20]
cmp rbp, 0xf
cmova rdx, rdi
mov r8, r14
mov rcx, rsi
call fcn.140003360
mov rbp, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x20]
mov rdx, rbx
lea rcx, str.Clipboard_text:__s_n
call fcn.140001240
nop
cmp rbp, 0xf
jbe 0x140002a2a
lea rdx, [rbp + 1]
mov rax, rdi
cmp rdx, 0x1000
jb 0x140002a22
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002a4d
mov rcx, rdi
call fcn.14000eee0
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14000eec0
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
call fcn.140017248
int3
Function at 0x140002b80
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rdi, rcx
xor ebx, ebx
cmp qword [rcx + 0x20], rbx
je 0x140002d37
mov rcx, qword [rcx + 0x38]
mov rax, qword [rdi + 0x40]
sub rax, rcx
sar rax, 3
test rax, rax
je 0x140002d37
nop dword [rax]
mov rsi, qword [rcx + rbx*8]
mov rax, qword [rsi]
lea rdx, [rdi + 0x10]
mov rcx, rsi
call qword [rax]
test al, al
jne 0x140002bf0
inc rbx
mov rcx, qword [rdi + 0x38]
mov rax, qword [rdi + 0x40]
sub rax, rcx
sar rax, 3
cmp rbx, rax
jb 0x140002bc0
jmp 0x140002d37
lea rdx, [rsi + 8]
lea rcx, [rsp + 0x28]
call fcn.140003170
nop
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x28]
test eax, eax
jne 0x140002c35
lea rdx, str.Failed_to_open_clipboard.
lea rcx, [0x140043700]
call fcn.140003690
mov rcx, rax
call fcn.140003940
jmp 0x140002d04
call qword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x140002c5f
lea rdx, str.Failed_to_empty_clipboard.
lea rcx, [0x140043700]
call fcn.140003690
mov rcx, rax
call fcn.140003940
jmp 0x140002cfd
mov r14, qword [rsp + 0x38]
lea rdx, [r14 + 1]
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rsi, rax
test rax, rax
jne 0x140002c98
lea rdx, str.Failed_to_allocate_global_memory.
lea rcx, [0x140043700]
call fcn.140003690
mov rcx, rax
call fcn.140003940
jmp 0x140002cfd
lea rbx, [rsp + 0x28]
cmp rbp, 0xf
cmova rbx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rcx, rax
lea r8, [r14 + 1]
mov rdx, rbx
call fcn.14002dfe0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, rsi
mov ecx, 1
call qword [sym.imp.USER32.dll_SetClipboardData]
test rax, rax
jne 0x140002cfd
lea rdx, str.Failed_to_set_clipboard_data.
lea rcx, [0x140043700]
call fcn.140003690
mov rcx, rax
call fcn.140003940
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
call qword [sym.imp.USER32.dll_CloseClipboard]
nop
cmp rbp, 0xf
jbe 0x140002d37
lea rdx, [rbp + 1]
mov rax, rdi
cmp rdx, 0x1000
jb 0x140002d2f
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002d4d
mov rcx, rdi
call fcn.14000eee0
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
call fcn.140017248
int3

Function at 0x140003ef0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x140003f24
movabs r10, 0x100000001b3
nop
movzx ecx, byte [rdx + r9]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140003f10
ret
Function at 0x140008c00
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x140008cc5
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x140008cc5
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x140008cde
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx + 0x10]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx]
cmp rcx, rax
je 0x140008cb5
cmp byte [rcx], 0x5c
jne 0x140008cae
lea rdx, [rcx + 1]
cmp rdx, rax
je 0x140008cae
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x140008c9c
movzx eax, byte [rdx]
sub al, 0x28
cmp al, 1
jbe 0x140008cab
test r8b, 0x10
jne 0x140008cae
movzx eax, byte [rdx]
sub al, 0x7b
test al, 0xfd
jne 0x140008cae
mov rcx, rdx
lea rax, [rcx + 1]
mov qword [rbx], rax
mov rcx, rbx
call fcn.140005330
test edi, edi
jne 0x140008c20
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.140005320
int3
Function at 0x14000bcb0
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x30
mov r15, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x14000bcd4
xor eax, eax
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
je 0x14000bd62
mov rdi, r15
mov qword [rsp + 0x68], rbp
lea rsi, [rcx + 0x50]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x14000bd30
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x14000bd30
cmp rdi, rcx
mov rbp, rdi
cmovge rbp, rcx
mov rcx, r14
mov r8, rbp
call fcn.14002dfe0
mov rax, qword [rsi]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14000bd4d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x14000bd55
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov ebp, 1
add r14, rbp
test rdi, rdi
jg 0x14000bcf1
mov rbp, qword [rsp + 0x68]
sub r15, rdi
jmp 0x14000be40
mov rax, qword [rcx + 0x38]
mov rsi, r15
mov rdx, qword [rax]
test rdx, rdx
je 0x14000bd79
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000bd7b
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000bdad
cmp rax, r15
mov rdi, r15
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.14002dfe0
mov rax, qword [rbx + 0x50]
add r14, rdi
sub rsi, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14000be3d
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000bde8
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 rsi, 0xfff
jbe 0x14000be1e
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.1400186ac
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x14000be3d
cmp rsi, rax
ja 0x14000bdf1
test rsi, rsi
je 0x14000be3d
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.1400186ac
sub rsi, rax
sub r15, rsi
mov rsi, qword [rsp + 0x28]
mov rax, r15
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r15
pop r14
pop rbx
ret

Function at 0x14000fd34
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x140014cd7
call fcn.1400198c8
mov dword [rax], 0x16
call fcn.140017228
xor eax, eax
jmp 0x140014d65
mov rdx, r9
mov rcx, r8
call fcn.140014c3c
mov rbx, rax
test rax, rax
je 0x140014d62
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140014b68]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140014d4f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14001983c
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140014d36
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140014d45
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14001db34
jmp 0x140014d62
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140014d5f
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x14001b01c
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 0x14001b08b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001b08b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001b08b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001b08b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001b08b
cmp dword [rcx + 0x84], 0xe
jbe 0x14001b08b
cmp dword [rcx + 0xf8], 0
je 0x14001b08b
mov ecx, ebx
call fcn.14001b13c
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.14001af18
nop
cmp dword [rbp + 0x20], 0
je 0x14001b0d9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001b0e4
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14001b01c

Function at 0x14001b220
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001b01c
Function at 0x1400206b8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400206ce
mov al, 1
jmp 0x14002072e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400206df
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14002072c
mov ecx, dword [rcx + 0x18]
nop
call fcn.14002695c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14002072c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14002072c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14002072c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14002072e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140021bf8
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.14000f7e0
sub rsp, rax
mov rax, qword [0x1400420c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14002042c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140021c47
mov rax, rbp
jmp 0x140021d4f
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 + 0x44bc0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140022b44
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x44bc0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140021d4b
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 0x140021d4b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140022b44
test rax, rax
js 0x140021d4b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140021d4b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140021d3d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140021d3d
cmp byte [rcx], 0xd
jne 0x140021d23
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140021d32
cmp byte [rcx + 1], 0xa
jne 0x140021d32
inc rcx
jmp 0x140021d32
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x424d0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140021d05
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140021d4f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000eec0
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 0x140021ee4
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, [0x140044bc0]
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 0x140021f3b
cmp word [rdx], r13w
jne 0x140021f3b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140021f40
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140022065
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140022086
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140021f79
mov rdx, r9
mov word [rbx], cx
jmp 0x140021fa0
cmp r9, r8
jae 0x140021fb0
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 0x140021f5a
jmp 0x140022065
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 0x14002205a
cmp dword [rsp + 0x80], esi
je 0x14002205a
lea r8, [0x140044bc0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140022032
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140022002
mov word [rbx], r13w
jmp 0x140022062
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 0x14002200f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140022062
cmp word [rsp + 0x70], r13w
jne 0x14002203f
cmp rbx, r14
je 0x140021ffc
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140022b4c
cmp word [rsp + 0x70], r13w
je 0x140022065
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, [0x140044bc0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14002205f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140022065
Function at 0x140026124
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 0x140026154
xor eax, eax
jmp 0x140026217
mov rbp, rbx
cmp word [rax], si
je 0x140026179
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140026160
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14002615c
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.140024724
movsxd r14, eax
test eax, eax
jne 0x1400261b7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14002614d
mov rcx, r14
call fcn.14001f1d0
mov rdi, rax
test rax, rax
jne 0x1400261d0
xor ecx, ecx
call fcn.14001db34
jmp 0x1400261ac
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.140024724
test eax, eax
jne 0x140026201
mov rcx, rdi
call fcn.14001db34
jmp 0x14002620b
xor ecx, ecx
call fcn.14001db34
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 0x140028eb0
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.14001ed84
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 0x140028f51
cmp ebx, dword [rsp + 0x30]
je 0x140028f4a
test esi, esi
je 0x140028f4a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140028f25
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140028f32
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140028f0f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140028f36
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140028f53
mov eax, 1
jmp 0x140028f53
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret