joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140007d10
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3d0], rcx
mov qword [rbp + 0x3d8], 0
mov qword [rbp + 0x3e0], 2
mov qword [rbp + 0x3e8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3c8], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x140007db0
jmp 0x140007d9f
jae 0x140007e6f
cmp r8, 0x201
jae 0x140007db0
mov r14d, 0x200
lea r15, [rbp - 0x58]
mov r12, r8
jmp 0x140007e07
sub r8, rbx
sub rdi, rbx
cmp r8, rdi
jbe 0x140007ddf
lea rcx, [rbp + 0x3d8]
mov rdx, rbx
call fcn.14001c6e0
mov rsi, qword [rbp + 0x3d8]
mov rax, qword [rbp + 0x3e0]
mov qword [rbp + 0x3c8], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x3e8], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3c8]
mov r12, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r12d
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r13d, eax
test eax, eax
jne 0x140007e30
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140007edb
mov r8d, r13d
cmp r12, r8
jne 0x140007d90
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140007f0f
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x140007d9f
jmp 0x140007db0
cmp r14, r8
jb 0x140007f29
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call fcn.14000a070
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3d0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
je 0x140007ec4
mov rcx, qword [rbp + 0x3e0]
add rdx, rdx
mov r8d, 2
call fcn.140001180
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3d0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
jne 0x140007eaf
jmp 0x140007ec4
lea rcx, str.internal_error:_entered_unreachable_code_rustc_eeb90cda1969383f56a2637cbd3037bdf598841clibrary_alloc_src_vecmod.rs
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.14001d990
jmp 0x140007f3e
lea rax, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.14001dd40
ud2
Function at 0x14000e110
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x140020258]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x14000e148
mov rcx, qword [rbp + 0x60]
mov qword [rbp - 0x30], rcx
test r9, r9
mov qword [rbp - 0x38], r9
lea rcx, [rbp - 0x30]
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, rbp
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14000e1a6
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0x103
je 0x14000e1d3
test eax, eax
js 0x14000e1b2
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x14000e1c9
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa8
pop rsi
pop rbp
ret
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x1c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x18]
lea rdx, [rbp - 0x38]
call fcn.140009e20
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.1400062b0
mov ecx, 7
int 0x29
ud2
Function at 0x14001a720
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
test r8, r8
je 0x14001a7aa
mov rax, rdx
mov rdx, qword [rbp + 0x50]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x14001a7a0
cmp r10, r11
jb 0x14001a826
cmp r10, rdx
ja 0x14001a838
add r11, r9
xor ebx, ebx
nop word cs:[rax + rax]
cmp rdi, rbx
je 0x14001a7a2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14001a780
jmp 0x14001a807
ja 0x14001a7aa
mov r11, r10
cmp rax, r8
jne 0x14001a747
mov rdx, qword [rbp + 0x60]
test rdx, rdx
je 0x14001a80b
mov r8, qword [rbp + 0x58]
add rdx, r8
movzx ecx, cx
mov al, 1
nop
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x14001a7e0
mov r8, r10
sub ecx, r9d
jns 0x14001a7fe
jmp 0x14001a80d
cmp r10, rdx
je 0x14001a81a
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14001a80d
xor al, 1
cmp r8, rdx
jne 0x14001a7c0
jmp 0x14001a80d
xor eax, eax
jmp 0x14001a80d
mov al, 1
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.14001d870
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14001ddb0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14001dd40
int3

Function at 0x14001bed4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001bf1e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001bf1e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001bf1e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001bf1e
cmp dword [rcx + 0x84], 0xe
jbe 0x14001bf1e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14001bf20
xor al, al
add rsp, 0x28
ret
Function at 0x140006cb0
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 0x140006e53
movabs rdx, 0x2aaaaaaaaaaaaaab
mov r13d, 0x5a4d
nop word [rax + rax]
cmp qword [rbx], 5
jne 0x140006e46
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 0x140006e53
xor esi, esi
cmp qword [rbx + 0x18], rsi
jbe 0x140006e05
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.140004800
cmp ax, r13w
jne 0x140006def
lea rcx, [rbp + 0x3c]
call fcn.140004720
mov r14d, eax
add r14, rbp
mov rcx, r14
call fcn.140004800
cmp ax, r12w
jne 0x140006def
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.140004720
mov dword [rsp + 0x38], eax
mov rdx, qword [rdi + 8]
cmp rdx, qword [rdi + 0x10]
je 0x140006de2
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 0x140006def
lea r8, [rsp + 0x28]
mov rcx, rdi
call fcn.140006f00
inc esi
mov eax, esi
cmp rax, qword [rbx + 0x18]
jb 0x140006d60
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 0x140006e46
cmp r8, r9
je 0x140006e46
mov qword [rdi + 8], r8
add rbx, 0x28
cmp rbx, r12
jne 0x140006d20
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
Function at 0x1400177b0
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140057040]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp dword [0x14005dba4], 0
jne 0x140017951
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
xor ebp, ebp
mov qword [rsp + 0x40], rbp
mov dword [rsp + 0x38], ebp
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], ebp
xor r9d, r9d
xor r8d, r8d
mov edi, 0xffffffff
mov edx, edi
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
mov qword [rsp + 0x58], rbp
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [0x140042ad8]
xor edx, edx
mov r8d, 1
lea rcx, [0x140042ae8]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov rax, qword [rsp + 0x58]
mov rcx, qword [rax]
mov rsi, qword [rcx + 0x18]
mov ecx, 0x18
call fcn.14001af30
mov rbx, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x14001789b
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rbp
mov dword [rbx + 0x10], 1
lea rcx, [0x14004f990]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
je 0x14001797f
jmp 0x14001789e
mov rbx, rbp
mov qword [rsp + 0x50], rbx
test rbx, rbx
je 0x140017974
lea rax, [0x14005db30]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rbp
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbx]
mov rcx, qword [rsp + 0x58]
call rsi
nop
lock xadd dword [rbx + 0x10], edi
cmp edi, 1
jne 0x140017916
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400178f7
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], rbp
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140017909
call fcn.14001b1ac
mov qword [rbx + 8], rbp
mov edx, 0x18
mov rcx, rbx
call fcn.14001b1ac
mov dword [rsp + 0x38], ebp
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xa
mov rcx, qword [0x14005db30]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov dword [0x14005dba4], 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14001adf0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov ecx, 0x8007000e
call fcn.14001bed0
nop
mov ecx, 0x8007000e
call fcn.14001bed0
int3
Function at 0x140017990
Capabilities:
Reference wmi statements

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x50
mov rax, qword [0x140057040]
xor rax, rsp
mov qword [rsp + 0x48], rax
call fcn.1400177b0
xor r14d, r14d
mov qword [rsp + 0x40], r14
mov rax, qword [0x14005db30]
mov rcx, qword [rax]
mov rbp, qword [rcx + 0xa0]
mov ecx, 0x18
call fcn.14001af30
mov rbx, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140017a16
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], r14
mov dword [rbx + 0x10], 1
lea rcx, str.SELECT__FROM_Win32_NetworkAdapter_where_PNPDeviceID_is_not_NULL_and_MACAddress_is_not_NULL
call fcn.14001bee0
mov qword [rbx], rax
jmp 0x140017a19
mov rbx, r14
mov qword [rsp + 0x30], rbx
test rbx, rbx
je 0x140017b5a
mov rsi, qword [rbx]
mov ecx, 0x18
call fcn.14001af30
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x140017a69
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rax
mov qword [rdi + 8], r14
mov dword [rdi + 0x10], 1
lea rcx, [0x14004f9a8]
call fcn.14001bee0
mov qword [rdi], rax
jmp 0x140017a6c
mov rdi, r14
mov qword [rsp + 0x38], rdi
test rdi, rdi
je 0x140017b4f
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov r9d, 0x30
mov r8, rsi
mov rdx, qword [rdi]
mov rcx, qword [0x14005db30]
call rbp
mov ebp, eax
mov esi, 0xffffffff
mov ecx, esi
lock xadd dword [rdi + 0x10], ecx
cmp ecx, 1
jne 0x140017ae2
mov rcx, qword [rdi]
test rcx, rcx
je 0x140017ac2
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rdi], r14
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x140017ad4
call fcn.14001b1ac
mov qword [rdi + 8], r14
mov edx, 0x18
mov rcx, rdi
call fcn.14001b1ac
nop
lock xadd dword [rbx + 0x10], esi
cmp esi, 1
jne 0x140017b1c
mov rcx, qword [rbx]
test rcx, rcx
je 0x140017afd
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r14
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140017b0f
call fcn.14001b1ac
mov qword [rbx + 8], r14
mov edx, 0x18
mov rcx, rbx
call fcn.14001b1ac
mov rax, qword [rsp + 0x40]
test ebp, ebp
cmovs rax, r14
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14001adf0
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret
mov ecx, 0x8007000e
call fcn.14001bed0
nop
mov ecx, 0x8007000e
call fcn.14001bed0
int3
Function at 0x14001a138
Capabilities:
Read file on windows

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, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x14001a166
xor eax, eax
jmp 0x14001a24c
cmp qword [rcx + 0x68], 0
je 0x14001a177
call fcn.14001a268
jmp 0x14001a24c
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14001a18e
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14001a190
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14001a1c2
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.14003e380
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x14001a246
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x14001a1f9
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x14001a222
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14002720c
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x14001a246
cmp rsi, rbx
ja 0x14001a200
test rsi, rsi
je 0x14001a246
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14002720c
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x14001bc80
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001bcca
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001bcca
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001bcca
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001bcca
cmp dword [rcx + 0x84], 0xe
jbe 0x14001bcca
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14001bccc
xor al, al
add rsp, 0x28
ret
Function at 0x1400268cc
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.14001b560
sub rsp, rax
mov rax, qword [0x140057040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14002ed84
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14002691b
mov rax, rbp
jmp 0x140026a27
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 + 0x594e0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140031c54
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x594e0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140026a23
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 0x140026a23
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140031c54
test rax, rax
js 0x140026a23
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140026a23
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140026a15
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140026a15
cmp byte [rcx], 0xd
jne 0x1400269fb
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140026a0a
cmp byte [rcx + 1], 0xa
jne 0x140026a0a
inc rcx
jmp 0x140026a0a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x574a0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400269dd
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140026a27
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14001adf0
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 0x140029b40
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 0x140029baf
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140029baf
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140029baf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140029baf
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140029baf
cmp dword [rcx + 0x84], 0xe
jbe 0x140029baf
cmp dword [rcx + 0xf8], 0
je 0x140029baf
mov ecx, ebx
call fcn.140029c54
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.140029a48
nop
cmp dword [rbp + 0x20], 0
jne 0x140029c10
call fcn.1400341d8
cmp eax, 1
jne 0x140029c00
xor dl, dl
jmp 0x140029c0a
call fcn.1400341a4
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x140029c1b
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140029c24
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140029b40

Function at 0x140029d28
Capabilities:
Parse pe header

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

Function at 0x14002cd40
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 [0x140062050]
mov ebx, r9d
mov rdi, r8
mov esi, edx
mov rbp, rcx
cmp rax, 0xffffffffffffffff
je 0x14002cda5
test rax, rax
jne 0x14002cd93
lea r9, str.GetLocaleInfoEx
lea r8, [0x140045c38]
lea rdx, str.GetLocaleInfoEx
lea ecx, [rax + 0xa]
call fcn.14002c950
test rax, rax
je 0x14002cda5
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call fcn.14003e340
jmp 0x14002cdbf
xor edx, edx
mov rcx, rbp
call fcn.14002d030
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 0x140030d50
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140030d66
mov al, 1
jmp 0x140030dd2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140030d77
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140030dd0
mov ecx, dword [rcx + 0x18]
nop
call fcn.140036534
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140030dd0
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 0x140030dd0
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140030dd0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140030dd2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140031d00
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, [0x1400594e0]
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 0x140031d56
cmp word [rdx], r9w
jne 0x140031d56
or byte [rax + rbp*8 + 0x38], 4
jmp 0x140031d5b
and byte [rax + rbp*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rax, rsi
mov rbx, rsi
cmp rsi, r8
jae 0x140031eda
mov r11d, 0xd
lea r13d, [r11 - 0xb]
movzx edx, word [rax]
cmp dx, 0x1a
je 0x140031ea5
lea rcx, [rax + 2]
cmp dx, r11w
jne 0x140031da3
cmp rcx, r8
jae 0x140031dc3
cmp word [rcx], r9w
jne 0x140031da3
add rax, 4
mov edx, r9d
jmp 0x140031da6
mov rax, rcx
mov word [rbx], dx
mov r9, r13
mov rcx, rbx
mov r9d, 0xa
lea rbx, [rbx + r13]
cmp rax, r8
jb 0x140031d78
jmp 0x140031eda
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 0x140031e9e
cmp dword [rsp + 0x80], edi
je 0x140031e9e
lea r9, [0x1400594e0]
mov rax, qword [r9 + r12*8]
test byte [rax + rbp*8 + 0x38], 0x48
mov ebp, 0xa
je 0x140031e78
movzx eax, word [rsp + 0x70]
cmp ax, bp
jne 0x140031e2b
mov word [rbx], bp
jmp 0x140031ed7
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 0x140031e46
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 0x140031ed7
cmp word [rsp + 0x70], bp
jne 0x140031e84
cmp rbx, rsi
je 0x140031e23
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140031c5c
cmp word [rsp + 0x70], bp
je 0x140031eda
mov word [rbx], 0xd
jmp 0x140031ed7
mov rcx, r15
lea r9, [0x1400594e0]
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 0x140031ed4
or al, r13b
mov byte [rcx + r8*8 + 0x38], al
jmp 0x140031eda
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