joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180001630
Capabilities:
Enumerate processes
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x290
mov rax, qword [0x180006040]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor ebx, ebx
mov ecx, 0x20
mov qword [rsp + 0x28], rbx
call fcn.180002b84
movups xmm0, xmmword [str.HD_Player.exe]
xor edx, edx
mov qword [rsp + 0x20], rax
mov rsi, rax
mov qword [rsp + 0x30], 0xd
movups xmmword [rax], xmm0
mov qword [rsp + 0x38], 0xf
movsd xmm0, qword [0x180004360]
movsd qword [rax + 0x10], xmm0
movzx ecx, word [0x180004368]
mov word [rax + 0x18], cx
mov ecx, 2
mov word [rax + 0x1a], bx
mov dword [rsp + 0x40], 0x238
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180001819
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
lea rax, [rsp + 0x6c]
mov rdx, 0xffffffffffffffff
inc rdx
cmp word [rax + rdx*2], bx
jne 0x1800016e1
mov r8d, 0xd
lea rcx, [rsp + 0x6c]
cmp rdx, r8
cmovb r8, rdx
test r8, r8
je 0x180001723
lea rax, [rsp + 0x6c]
mov rbx, rsi
sub rbx, rax
nop dword [rax]
movzx eax, word [rcx]
cmp word [rbx + rcx], ax
jne 0x180001738
add rcx, 2
sub r8, 1
jne 0x180001710
lea rcx, [rsp + 0x6c]
mov rbx, rsi
sub rbx, rcx
cmp rdx, 0xd
je 0x1800017c4
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x180001810
lea rax, [rsp + 0x6c]
mov r9, rsi
sub r9, rax
nop dword [rax]
lea rax, [rsp + 0x6c]
mov rdx, 0xffffffffffffffff
nop dword [rax]
inc rdx
cmp word [rax + rdx*2], 0
jne 0x180001770
mov r8d, 0xd
lea rax, [rsp + 0x6c]
cmp rdx, r8
cmovb r8, rdx
test r8, r8
je 0x1800017a5
movzx ecx, word [rax]
cmp word [r9 + rax], cx
jne 0x1800017ad
add rax, 2
sub r8, 1
jne 0x180001791
cmp rdx, 0xd
ja 0x1800017ad
jae 0x1800017c4
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x180001810
mov r9, rbx
jmp 0x180001760
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [rsp + 0x48]
mov edx, 0x20
mov rcx, rsi
call fcn.180002b50
test ebx, ebx
je 0x180001826
mov r8d, ebx
xor edx, edx
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x180001826
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180001826
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x20
mov rcx, rsi
call fcn.180002b50
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.180002b30
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x180002530
Capabilities:
Create thread

Disassembly:
sub rsp, 0x68
mov rax, qword [0x180006040]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp edx, 1
jne 0x1800025b2
mov ecx, 8
call fcn.180002b84
lea rcx, [0x180002500]
mov qword [rax], rcx
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x180002af0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1800025d5
cmp dword [rsp + 0x38], 0
je 0x1800025c9
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x1800025c9
mov eax, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180002b30
add rsp, 0x68
ret
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rsp + 0x38], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x18002b4b0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push rsi
push rdi
mov eax, 0x13b8
call fcn.18003c150
sub rsp, rax
mov rdi, rdx
mov rsi, rcx
cmp qword [0x180337798], 0
jne 0x18002b586
movups xmm0, xmmword [0x180060ff2]
movaps xmmword [rsp + 0x30], xmm0
movups xmm0, xmmword [0x180061002]
movaps xmmword [rsp + 0x40], xmm0
movups xmm0, xmmword [0x180061012]
movaps xmmword [rsp + 0x50], xmm0
movups xmm0, xmmword [0x180061022]
movaps xmmword [rsp + 0x60], xmm0
movups xmm0, xmmword [0x180061032]
movaps xmmword [rsp + 0x70], xmm0
mov word [rsp + 0x80], 0x3f
movaps xmm0, xmmword [str.____________________HUD.Draw]
movaps xmm1, xmmword [rsp + 0x30]
xorps xmm1, xmm0
movaps xmmword [rsp + 0x30], xmm1
movaps xmm1, xmmword [0x18005dc90]
movaps xmm2, xmmword [rsp + 0x40]
xorps xmm2, xmm1
movaps xmmword [rsp + 0x40], xmm2
movaps xmm2, xmmword [rsp + 0x50]
xorps xmm2, xmmword [0x18005dca0]
movaps xmmword [rsp + 0x50], xmm2
xorps xmm0, xmmword [rsp + 0x60]
movaps xmmword [rsp + 0x60], xmm0
xorps xmm1, xmmword [rsp + 0x70]
movaps xmmword [rsp + 0x70], xmm1
xor byte [rsp + 0x80], 0x3f
lea r8, [rsp + 0x30]
xor ecx, ecx
xor edx, edx
xor r9d, r9d
call fcn.180038c20
mov qword [0x180337798], rax
mov qword [rsp + 0x20], rdi
call fcn.18003cc90
mov dword [rsp + 0x13b4], 0xffffffff
mov dword [rsp + 0x34], eax
mov ecx, 3
nop word cs:[rax + rax]
mov edx, eax
shr edx, 0x1e
xor edx, eax
imul eax, edx, 0x6c078965
add rax, rcx
add rax, 0xfffffffffffffffe
mov dword [rsp + rcx*4 + 0x2c], eax
cmp rcx, 0x271
je 0x18002b5ec
mov edx, eax
shr edx, 0x1e
xor edx, eax
imul eax, edx, 0x6c078965
add eax, ecx
dec eax
mov dword [rsp + rcx*4 + 0x30], eax
add rcx, 2
jmp 0x18002b5b0
mov dword [rsp + 0x30], 0x270
lea rcx, [rsp + 0x30]
call fcn.180036f10
shr eax, 8
xorps xmm0, xmm0
cvtsi2ss xmm0, eax
mulss xmm0, dword [0x18005e680]
xorps xmm1, xmm1
addss xmm1, xmm0
movss dword [rsp + 0x28], xmm1
mov rax, qword [rsi]
test rax, rax
je 0x18002b63f
mov rdx, qword [0x180337798]
movsxd r9, dword [0x180075040]
lea r8, [rsp + 0x20]
mov rcx, rsi
call qword [rax + r9*8]
nop
add rsp, 0x13b8
pop rdi
pop rsi
ret

Function at 0x1800339d0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x1800339fe
mov r9, rcx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r8, [0x18002b650]
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov al, 1
add rsp, 0x38
ret
Function at 0x180034630
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
test r8, r8
jle 0x1800346c6
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0x68], 0
je 0x1800346cd
mov r15, rsi
jmp 0x18003468b
cmp r15, r14
cmovb r14, r15
mov rcx, rdi
mov r8, r14
call fcn.18005b630
add rdi, r14
sub r15, r14
mov rax, qword [rbx + 0x50]
sub dword [rax], r14d
mov rax, qword [rbx + 0x38]
add qword [rax], r14
test r15, r15
jle 0x1800346be
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x1800346a3
mov rax, qword [rbx + 0x50]
mov r14d, dword [rax]
test r14d, r14d
jg 0x180034660
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x1800346be
mov byte [rdi], al
inc rdi
dec r15
test r15, r15
jg 0x18003468b
sub rsi, r15
jmp 0x1800347ba
xor esi, esi
jmp 0x1800347ba
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x180034720
mov rax, qword [rbx + 0x50]
movsxd r15, dword [rax]
test r15, r15
je 0x180034720
cmp r15, rsi
cmovae r15, rsi
mov rcx, rdi
mov r8, r15
call fcn.18005b630
add rdi, r15
mov r14, rsi
sub r14, r15
mov rax, qword [rbx + 0x50]
sub dword [rax], r15d
mov rax, qword [rbx + 0x38]
movsxd rcx, r15d
add qword [rax], rcx
cmp qword [rbx + 0x80], 0
jne 0x180034731
jmp 0x1800347b7
mov r14, rsi
cmp qword [rbx + 0x80], 0
je 0x1800347b7
mov rax, qword [rbx + 0x18]
lea rcx, [rbx + 0x70]
cmp qword [rax], rcx
jne 0x180034760
mov ecx, dword [rbx + 0x90]
mov rdx, qword [rbx + 0x88]
mov qword [rax], rdx
mov rax, qword [rbx + 0x38]
mov qword [rax], rdx
sub ecx, edx
mov rax, qword [rbx + 0x50]
mov dword [rax], ecx
nop dword [rax]
cmp r14, 0x1000
jb 0x180034793
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rdi
call fcn.180043330
add rdi, rax
sub r14, rax
cmp rax, 0xfff
je 0x180034760
jmp 0x1800347b7
test r14, r14
je 0x1800347b4
mov r9, qword [rbx + 0x80]
mov edx, 1
mov rcx, rdi
mov r8, r14
call fcn.180043330
sub r14, rax
jmp 0x1800347b7
xor r14d, r14d
sub rsi, r14
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x18003d440
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 0x18003d47a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x18003d47f
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 0x18003d4c8
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x180062130]
cmp byte [rcx + rax], 0
je 0x18003d4c8
dec r8
sub rdx, 1
jne 0x18003d4ae
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x180040604
Capabilities:
Parse pe header

Disassembly:
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x180040604
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 0x180040673
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180040673
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180040673
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180040673
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180040673
cmp dword [rcx + 0x84], 0xe
jbe 0x180040673
cmp dword [rcx + 0xf8], 0
je 0x180040673
mov ecx, ebx
call fcn.18004053c
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.180040798
nop
cmp dword [rbp + 0x20], 0
je 0x1800406c1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1800405d0
int3

Function at 0x1800466d0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1800466f8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1800466f8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x18004f8e0
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.18003c150
sub rsp, rax
mov rax, qword [0x1800761c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18004e940
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18004f92f
mov rax, rbp
jmp 0x18004fa37
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, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x338960]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18004f610
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x338960]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18004fa33
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 0x18004fa33
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18004f610
test rax, rax
js 0x18004fa33
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18004fa33
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18004fa25
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18004fa25
cmp byte [rcx], 0xd
jne 0x18004fa0b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18004fa1a
cmp byte [rcx + 1], 0xa
jne 0x18004fa1a
inc rcx
jmp 0x18004fa1a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x76ca0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18004f9ed
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18004fa37
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.18003dd90
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 0x180050380
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 0x1800503b0
xor eax, eax
jmp 0x180050473
mov rbp, rbx
cmp word [rax], si
je 0x1800503d5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800503bc
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800503b8
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.180049d84
movsxd r14, eax
test eax, eax
jne 0x180050413
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1800503a9
mov rcx, r14
call fcn.180049c94
mov rdi, rax
test rax, rax
jne 0x18005042c
xor ecx, ecx
call fcn.180049c58
jmp 0x180050408
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.180049d84
test eax, eax
jne 0x18005045d
mov rcx, rdi
call fcn.180049c58
jmp 0x180050467
xor ecx, ecx
call fcn.180049c58
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 0x180052200
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x180052216
mov al, 1
jmp 0x180052276
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x180052227
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180052274
mov ecx, dword [rcx + 0x18]
nop
call fcn.180057f84
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180052274
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180052274
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180052274
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x180052276
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x180052bac
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, [0x180338960]
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 0x180052c03
cmp word [rdx], r13w
jne 0x180052c03
or byte [rax + rdi*8 + 0x38], cl
jmp 0x180052c08
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x180052d2d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x180052d4e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x180052c41
mov rdx, r9
mov word [rbx], cx
jmp 0x180052c68
cmp r9, r8
jae 0x180052c78
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 0x180052c22
jmp 0x180052d2d
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 0x180052d22
cmp dword [rsp + 0x80], esi
je 0x180052d22
lea r8, [0x180338960]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x180052cfa
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x180052cca
mov word [rbx], r13w
jmp 0x180052d2a
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 0x180052cd7
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x180052d2a
cmp word [rsp + 0x70], r13w
jne 0x180052d07
cmp rbx, r14
je 0x180052cc4
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18004f56c
cmp word [rsp + 0x70], r13w
je 0x180052d2d
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, [0x180338960]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x180052d27
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x180052d2d
Function at 0x180057b10
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.180049ec4
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 0x180057bb1
cmp ebx, dword [rsp + 0x30]
je 0x180057baa
test esi, esi
je 0x180057baa
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x180057b85
sub r8w, 0x61
cmp r8w, 0x19
ja 0x180057b92
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x180057b6f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x180057b96
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x180057bb3
mov eax, 1
jmp 0x180057bb3
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x18005aff0
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.18004f56c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.18004f56c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x18005b140
cmp rax, 0xffffffffffffffff
je 0x18005b140
xor edi, edi
test rbp, rbp
jle 0x18005b0eb
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.18004cb0c
mov rbx, rax
test rax, rax
jne 0x18005b078
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x18005b0e1
mov edx, 0x8000
mov ecx, r14d
call fcn.18005ae74
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.180050fe0
cmp eax, 0xffffffff
je 0x18005b0c1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x18005b088
mov edx, r15d
mov ecx, r14d
call fcn.18005ae74
jmp 0x18005b0e1
cmp byte [rsi + 0x38], dil
je 0x18005b0d8
cmp dword [rsi + 0x34], 5
jne 0x18005b0d8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x18005b0e1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.180049c58
jmp 0x18005b154
jns 0x18005b154
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.18004f56c
cmp rax, 0xffffffffffffffff
jne 0x18005b10c
cmp byte [rsi + 0x30], dil
je 0x18005b154
mov edi, dword [rsi + 0x2c]
jmp 0x18005b154
mov ecx, r14d
call fcn.180057f84
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x18005b154
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x18005b154
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x18005b14d
mov eax, dword [rsi + 0x2c]
jmp 0x18005b152
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.18004f56c
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140007650
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rdi, rcx
mov dword [rsp + 0x20], 0
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rcx], xmm0
mov qword [rcx], rax
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], rax
mov dword [rsp + 0x20], 1
mov rbx, qword [rdx]
mov r12, qword [rdx + 8]
mov qword [rsp + 0x88], r12
cmp rbx, r12
je 0x1400077f3
movabs rdx, 0x2aaaaaaaaaaaaaab
mov r13d, 0x5a4d
nop word [rax + rax]
cmp qword [rbx], 5
jne 0x1400077e6
mov rcx, qword [rdi + 8]
sub rcx, qword [rdi]
mov rax, rdx
imul rcx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
jne 0x1400077f3
xor esi, esi
cmp qword [rbx + 0x18], rsi
jbe 0x1400077a5
mov r12d, 0x4550
nop dword [rax]
mov r15d, esi
shl r15d, 0xc
mov rbp, qword [rbx + 8]
add rbp, r15
mov rcx, rbp
call fcn.140004a50
cmp ax, r13w
jne 0x14000778f
lea rcx, [rbp + 0x3c]
call fcn.140004970
mov r14d, eax
add r14, rbp
mov rcx, r14
call fcn.140004a50
cmp ax, r12w
jne 0x14000778f
mov rcx, qword [rbx + 0x10]
add rcx, r15
mov qword [rsp + 0x28], rcx
mov rcx, qword [rbx + 8]
add rcx, r15
mov qword [rsp + 0x30], rcx
lea rcx, [r14 + 0x50]
call fcn.140004970
mov dword [rsp + 0x38], eax
mov rdx, qword [rdi + 8]
cmp rdx, qword [rdi + 0x10]
je 0x140007782
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rdx], xmm0
movsd xmm1, qword [rsp + 0x38]
movsd qword [rdx + 0x10], xmm1
add qword [rdi + 8], 0x18
jmp 0x14000778f
lea r8, [rsp + 0x28]
mov rcx, rdi
call fcn.1400078a0
inc esi
mov eax, esi
cmp rax, qword [rbx + 0x18]
jb 0x140007700
mov r12, qword [rsp + 0x88]
mov r9, qword [rdi + 8]
mov r8, qword [rdi]
mov rcx, r9
sub rcx, r8
movabs rax, 0x2aaaaaaaaaaaaaab
imul rcx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdx, 4
movabs rdx, 0x2aaaaaaaaaaaaaab
jae 0x1400077e6
cmp r8, r9
je 0x1400077e6
mov qword [rdi + 8], r8
add rbx, 0x28
cmp rbx, r12
jne 0x1400076c0
mov rax, rdi
mov rbx, qword [rsp + 0x90]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret