joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140033a30
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push rbp
push rsi
sub rsp, 0x58
mov rsi, qword [0x140128850]
mov rbp, rcx
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x140033c52
lea rcx, [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140033c52
mov qword [rsp + 0x70], rbx
mov ecx, 0x50
mov qword [rsp + 0x50], rdi
call fcn.140080120
mov r8, qword [0x140128850]
xor ebx, ebx
mov rdi, rax
test r8, r8
je 0x140033af1
movsx rdx, word [r8 + 0x5490]
lea rax, [r8 + 0x5494]
mov r9d, dword [r8 + 0x3ff8]
lea rax, [rax + rdx*8]
cmp dword [rax], r9d
je 0x140033ae6
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x5490], cx
movsx rax, cx
lea rax, [rax*8 + 0x5494]
add rax, r8
mov dword [rax], r9d
mov dword [rax + 4], ebx
inc word [rax + 4]
inc dword [r8 + 0x5488]
test rdi, rdi
je 0x140033b0e
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm0
movups xmmword [rdi + 0x20], xmm0
movups xmmword [rdi + 0x30], xmm0
movups xmmword [rdi + 0x40], xmm0
jmp 0x140033b11
mov rdi, rbx
or dword [rsi + 0xc], 6
lea rax, str.imgui_impl_win32
mov qword [rsi + 0x90], rax
mov qword [rsi + 0xa0], rdi
mov qword [rdi], rbp
mov rax, qword [rsp + 0x80]
mov qword [rdi + 0x20], rax
mov rax, qword [rsp + 0x88]
mov qword [rdi + 0x18], rax
mov dword [rdi + 0x28], 9
test r8, r8
je 0x140033b5a
mov rsi, qword [r8 + 0xa0]
jmp 0x140033b5d
mov rsi, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
shr rax, 0x10
mov r9d, 4
movzx ecx, ax
lea r8, [rsi + 0x2c]
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x140033b88
mov dword [rsi + 0x2c], ebx
mov rax, qword [0x140128850]
mov rcx, qword [rax + 0x4be0]
mov rax, qword [rdi]
mov rdx, qword [rcx]
mov qword [rdx + 0x30], rax
mov qword [rdx + 0x28], rax
lea rax, str.xinput1_4.dll
mov qword [rsp + 0x28], rax
lea rax, str.xinput1_3.dll
mov qword [rsp + 0x30], rax
lea rax, str.xinput9_1_0.dll
mov qword [rsp + 0x38], rax
lea rax, str.xinput1_2.dll
mov qword [rsp + 0x40], rax
lea rax, str.xinput1_1.dll
mov qword [rsp + 0x48], rax
mov byte [rdi + 0x31], 1
mov rcx, qword [rsp + rbx*8 + 0x28]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x140033c13
inc rbx
cmp rbx, 5
jl 0x140033be4
mov rdi, qword [rsp + 0x50]
mov al, 1
mov rbx, qword [rsp + 0x70]
add rsp, 0x58
pop rsi
pop rbp
ret
lea rdx, str.XInputGetCapabilities
mov qword [rdi + 0x38], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.XInputGetState
mov rcx, rsi
mov qword [rdi + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, qword [rsp + 0x70]
mov qword [rdi + 0x48], rax
mov al, 1
mov rdi, qword [rsp + 0x50]
add rsp, 0x58
pop rsi
pop rbp
ret
xor al, al
add rsp, 0x58
pop rsi
pop rbp
ret
Function at 0x140038990
Capabilities:
Hash data with crc32
Resolve function by parsing pe exports

Disassembly:
mov rax, qword [0x140128850]
mov rdx, qword [rax + 0x4ed0]
cmp ecx, 0xffffffff
jne 0x1400389aa
cmp dword [rdx + 0x74], ecx
cmovne ecx, dword [rdx + 0x74]
cmp ecx, dword [rdx + 0x6c]
mov eax, 0xffffffff
cmove ecx, eax
test byte [rdx + 4], 7
je 0x140038a29
mov r10d, dword [rdx]
lea r8, [0x1400bb241]
movzx eax, word [rdx + 0x78]
lea r11, [0x1400af9e0]
not r10d
mov word [rdx + 0x224], cx
mov ecx, r10d
mov byte [rdx + 0x23b], 1
mov word [rdx + 0x7a], ax
mov r9b, 0x23
nop dword [rax + rax]
cmp r9b, 0x23
jne 0x140038a03
cmp byte [r8], r9b
jne 0x140038a03
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x1400389f0
not ecx
xor edx, edx
jmp fcn.140017e80
ret
Function at 0x140056dd0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x140056df2
xor eax, eax
add rsp, 0x20
pop r14
pop rbp
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rdi
je 0x140056e86
mov rdi, rbp
mov qword [rsp + 0x50], r15
lea rsi, [rcx + 0x50]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x140056e53
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x140056e53
cmp rdi, rcx
mov r15, rdi
cmovge r15, rcx
mov rcx, r14
mov r8, r15
call fcn.14009ee20
mov rax, qword [rsi]
sub rdi, r15
sub dword [rax], r15d
mov rcx, qword [rbx + 0x38]
movsxd rax, r15d
add qword [rcx], rax
jmp 0x140056e71
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140056e79
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov r15d, 1
add r14, r15
test rdi, rdi
jg 0x140056e13
mov r15, qword [rsp + 0x50]
sub rbp, rdi
jmp 0x140056f6f
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140056e9d
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140056e9f
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140056ed1
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.14009ee20
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 0x140056f6c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140056f0c
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 0x140056f4d
nop word [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.14007abc4
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x140056f6c
cmp rsi, rax
ja 0x140056f20
test rsi, rsi
je 0x140056f6c
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14007abc4
sub rsi, rax
sub rbp, rsi
mov rsi, qword [rsp + 0x40]
mov rax, rbp
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rbp
pop rbx
ret

Function at 0x140059ed0
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
test rdx, rdx
je 0x140059f6d
cmp rdx, 0x40
jb 0x140059f52
movdqa xmm2, xmmword [0x1400bcc50]
lea rax, [rcx + 0x20]
mov r9, rdx
and r9, 0xffffffffffffffc0
nop word [rax + rax]
movdqu xmm0, xmmword [rax - 0x20]
lea rax, [rax + 0x40]
add r8, 0x40
movdqa xmm1, xmm2
xorps xmm1, xmm0
movdqu xmmword [rax - 0x60], xmm1
movdqa xmm1, xmm2
movdqu xmm0, xmmword [rax - 0x50]
xorps xmm0, xmm2
movdqu xmmword [rax - 0x50], xmm0
movdqu xmm0, xmmword [rax - 0x40]
xorps xmm1, xmm0
movdqu xmmword [rax - 0x40], xmm1
movdqa xmm1, xmm2
movdqu xmm0, xmmword [rax - 0x30]
xorps xmm1, xmm0
movdqu xmmword [rax - 0x30], xmm1
cmp r8, r9
jb 0x140059f00
cmp r8, rdx
jae 0x140059f6d
lea rax, [r8 + rcx]
sub rdx, r8
nop dword [rax]
xor byte [rax], 0xaa
lea rax, [rax + 1]
sub rdx, 1
jne 0x140059f60
ret
Function at 0x140059f70
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
mov rbx, 0xffffffffffffffff
nop
inc rbx
cmp byte [rcx + rbx], 0
jne 0x140059f90
lea rcx, [rbx + 1]
call fcn.14006d0bc
mov r8, rsi
lea rdx, [rbx + 1]
mov rcx, rax
mov rbp, rax
call fcn.140082de8
mov rdx, rbx
mov rcx, rbp
call fcn.140059ed0
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x336e6977
mov dword [rsp + 0x24], 0x642e7532
mov word [rsp + 0x28], 0x6c6c
mov byte [rsp + 0x2a], 0
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
je 0x14005a045
mov rdx, rbx
mov rcx, rbp
call fcn.140059ed0
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rbp
mov rcx, rbx
mov rsi, rax
xor eax, eax
rep stosb byte [rdi], al
mov rcx, rbp
call fcn.14006cd54
test rsi, rsi
je 0x14005a045
xor eax, eax
mov qword [0x140128f20], rsi
lea rdi, [rsp + 0x48]
mov dword [0x140128868], 1
mov ecx, 8
rep stosb byte [rdi], al
mov eax, 1
jmp 0x14005a051
mov dword [0x140128868], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14005b890
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x10], rdx
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x50
mov r14d, dword [0x140128f28]
movsxd rax, dword [0x1400d21ec]
xor edx, edx
cmp eax, 0x7b
ja 0x14005b8ca
lea rdx, [0x140125c60]
mov rdx, qword [rdx + rax*8]
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], 0
mov edi, 0xf
mov qword [rbp - 8], rdi
mov byte [rbp - 0x20], 0
test rdx, rdx
jne 0x14005b910
mov qword [rbp - 0x10], 0xa
movsd xmm0, qword [str.Select_Key]
movsd qword [rbp - 0x20], xmm0
movzx eax, word [0x1400bbe20]
mov word [rbp - 0x18], ax
mov byte [rbp - 0x16], dl
jmp 0x14005b937
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x14005b920
lea rcx, [rbp - 0x20]
call fcn.140058300
mov rdi, qword [rbp - 8]
cmp r14d, 1
jne 0x14005ba63
cmp rdi, 0x11
jb 0x14005b97a
lea rbx, [rbp - 0x20]
cmp rdi, 0xf
cmova rbx, qword [rbp - 0x20]
mov qword [rbp - 0x10], 0x11
mov r8d, 0x11
lea rdx, str.Press_key_to_bind
mov rcx, rbx
call fcn.14009ee20
mov byte [rbx + 0x11], 0
jmp 0x14005ba5f
mov rcx, rdi
shr rcx, 1
movabs rsi, 0x7fffffffffffffff
mov rax, rsi
sub rax, rcx
cmp rdi, rax
jbe 0x14005b9c2
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.14006d080
test rax, rax
je 0x14005bb0f
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x14005b9ff
lea rax, [rcx + rdi]
mov esi, 0x1f
cmp rax, rsi
cmova rsi, rax
lea rcx, [rsi + 1]
test rcx, rcx
jne 0x14005b9df
xor ebx, ebx
jmp 0x14005b9ff
cmp rcx, 0x1000
jb 0x14005b9f7
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14005bb09
jmp 0x14005b9a3
call fcn.14006d080
mov rbx, rax
mov qword [rbp - 0x10], 0x11
mov qword [rbp - 8], rsi
movups xmm0, xmmword [str.Press_key_to_bind]
movups xmmword [rbx], xmm0
movzx ecx, byte [0x1400bbe38]
mov byte [rbx + 0x10], cl
mov byte [rbx + 0x11], 0
cmp rdi, 0xf
jbe 0x14005ba5b
lea rdx, [rdi + 1]
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005ba56
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005bb0f
call fcn.14006cd54
mov qword [rbp - 0x20], rbx
mov rdi, qword [rbp - 8]
mov dword [rbp + 0x28], 0x42fa0000
mov dword [rbp + 0x2c], 0x41a00000
lea rcx, [rbp - 0x20]
cmp rdi, 0xf
cmova rcx, qword [rbp - 0x20]
xor r8d, r8d
lea rdx, [rbp + 0x28]
call fcn.14003b730
test al, al
je 0x14005bab6
test r14d, r14d
jne 0x14005bab6
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], r14d
xor r9d, r9d
lea r8, [0x14005bb20]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
mov rdx, qword [rbp - 8]
cmp rdx, 0xf
jbe 0x14005baed
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005bae8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005bb03
call fcn.14006cd54
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop rdi
pop rbp
ret
call fcn.1400824dc
nop
call fcn.140055450
nop
call fcn.1400824dc
int3
Function at 0x14006d794
Capabilities:
Parse pe header

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

Function at 0x140075d40
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.140099aa0
sub rsp, rax
mov rax, qword [0x1400d0040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140088094
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140075d8f
mov rax, rbp
jmp 0x140075e9b
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 + 0x127c70]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140088328
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x127c70]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140075e97
mov dword [rsp + 0x30], edi
lea r9, [rsp + 0x30]
mov rcx, qword [rcx + r12*8 + 0x28]
lea rdx, [rsp + 0x40]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140075e97
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140088328
test rax, rax
js 0x140075e97
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140075e97
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140075e89
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140075e89
cmp byte [rcx], 0xd
jne 0x140075e6f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140075e7e
cmp byte [rcx + 1], 0xa
jne 0x140075e7e
inc rcx
jmp 0x140075e7e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xd04d0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140075e51
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140075e9b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140099a70
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 0x140082818
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 0x140082887
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140082887
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140082887
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140082887
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140082887
cmp dword [rcx + 0x84], 0xe
jbe 0x140082887
cmp dword [rcx + 0xf8], 0
je 0x140082887
mov ecx, ebx
call fcn.14008292c
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.140082720
nop
cmp dword [rbp + 0x20], 0
jne 0x1400828e8
call fcn.14008f560
cmp eax, 1
jne 0x1400828d8
xor dl, dl
jmp 0x1400828e2
call fcn.14008f4ec
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x1400828f3
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400828fc
int3
xor r8d, r8d
xor edx, edx
jmp 0x140082818

Function at 0x140082a00
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 0x140082887
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140082887
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140082887
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140082887
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140082887
cmp dword [rcx + 0x84], 0xe
jbe 0x140082887
cmp dword [rcx + 0xf8], 0
je 0x140082887
mov ecx, ebx
call fcn.14008292c
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.140082720
nop
cmp dword [rbp + 0x20], 0
jne 0x1400828e8
call fcn.14008f560
cmp eax, 1
jne 0x1400828d8
xor dl, dl
jmp 0x1400828e2
call fcn.14008f4ec
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x1400828f3
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400828fc
int3
xor r8d, r8d
xor edx, edx
jmp 0x140082818
Function at 0x140082cdc
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 0x140082d13
call fcn.140085be0
mov dword [rax], 0x16
call fcn.1400824bc
xor eax, eax
jmp 0x140082da5
mov rdx, r9
mov rcx, r8
call fcn.140082c78
mov rbx, rax
test rax, rax
je 0x140082da2
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], edi
mov qword [rsp + 0x28], rax
lea r8, [0x140082bac]
mov eax, dword [rsp + 0x60]
mov rdx, rsi
mov r9, rbx
mov dword [rsp + 0x20], eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140082d8f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140085b70
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140082d76
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140082d85
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140089770
jmp 0x140082da2
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140082d9f
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 0x1400889b8
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
xor edi, edi
mov rax, r15
lea rcx, [0x140127c70]
and eax, 0x3f
mov r12, r15
sar r12, 6
mov rsi, rdx
lea r9d, [rdi + 0xa]
mov r14, r15
lea rbp, [rax + rax*8]
mov rax, qword [rcx + r12*8]
mov r10, qword [rax + rbp*8 + 0x28]
test r8, r8
je 0x140088a0e
cmp word [rdx], r9w
jne 0x140088a0e
or byte [rax + rbp*8 + 0x38], 4
jmp 0x140088a13
and byte [rax + rbp*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rax, rsi
mov rbx, rsi
cmp rsi, r8
jae 0x140088b92
mov r11d, 0xd
lea r13d, [r11 - 0xb]
movzx edx, word [rax]
cmp dx, 0x1a
je 0x140088b5d
lea rcx, [rax + 2]
cmp dx, r11w
jne 0x140088a5b
cmp rcx, r8
jae 0x140088a7b
cmp word [rcx], r9w
jne 0x140088a5b
add rax, 4
mov edx, r9d
jmp 0x140088a5e
mov rax, rcx
mov word [rbx], dx
mov r9, r13
mov rcx, rbx
mov r9d, 0xa
lea rbx, [rbx + r13]
cmp rax, r8
jb 0x140088a30
jmp 0x140088b92
lea r9, [rsp + 0x80]
mov word [rsp + 0x70], di
mov r8d, r13d
mov dword [rsp + 0x80], edi
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x20], rdi
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140088b56
cmp dword [rsp + 0x80], edi
je 0x140088b56
lea r9, [0x140127c70]
mov rax, qword [r9 + r12*8]
test byte [rax + rbp*8 + 0x38], 0x48
mov ebp, 0xa
je 0x140088b30
movzx eax, word [rsp + 0x70]
cmp ax, bp
jne 0x140088ae3
mov word [rbx], bp
jmp 0x140088b8f
mov word [rsp + 0x78], ax
mov rdx, r14
mov rax, r14
sar rdx, 6
and eax, 0x3f
mov word [rbx], 0xd
lea r8, [rax + rax*8]
mov rax, qword [r9 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, r13
jl 0x140088afe
mov rax, r14
sar rax, 6
and r14d, 0x3f
mov rax, qword [r9 + rax*8]
lea rcx, [r14 + r14*8]
mov byte [rax + rcx*8 + 0x3c], bpl
jmp 0x140088b8f
cmp word [rsp + 0x70], bp
jne 0x140088b3c
cmp rbx, rsi
je 0x140088adb
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140088330
cmp word [rsp + 0x70], bp
je 0x140088b92
mov word [rbx], 0xd
jmp 0x140088b8f
mov rcx, r15
lea r9, [0x140127c70]
and ecx, 0x3f
mov rax, r15
sar rax, 6
lea r8, [rcx + rcx*8]
mov rcx, qword [r9 + rax*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140088b8c
or al, r13b
mov byte [rcx + r8*8 + 0x38], al
jmp 0x140088b92
mov word [rbx], dx
add rbx, r13
sub rbx, rsi
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
Function at 0x140089cbc
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x140131050]
mov ebx, r9d
mov rdi, r8
mov esi, edx
mov rbp, rcx
cmp rax, 0xffffffffffffffff
je 0x140089d21
test rax, rax
jne 0x140089d0f
lea r9, [0x1400a79a0]
lea r8, [0x1400a7998]
lea rdx, [0x1400a79a0]
lea ecx, [rax + 0xa]
call fcn.140089870
test rax, rax
je 0x140089d21
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call fcn.14009ea20
jmp 0x140089d3b
xor edx, edx
mov rcx, rbp
call fcn.140089fac
mov ecx, eax
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14008d298
Capabilities:
Get file size

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