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

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x488
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x400], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3e8], 0
mov qword [rbp + 0x3f0], 2
mov qword [rbp + 0x3f8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3d0], rax
mov qword [rbp + 0x3d8], 0
mov r13, qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r14d, 0xffffffff
xor esi, esi
xor ebx, ebx
cmp r8, 0x201
jae 0x180163890
jmp 0x18016386f
jae 0x18016397c
cmp r8, 0x201
jae 0x180163890
mov eax, 0x200
mov qword [rbp + 0x3c8], rax
lea r15, [rbp - 0x58]
mov r12, r8
jmp 0x1801638ca
sub r8, rbx
sub rsi, rbx
cmp rsi, r8
jb 0x18016393d
mov rsi, qword [rbp + 0x3d8]
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x3f8], rbx
mov qword [rbp + 0x3c8], rbx
mov r15, qword [rbp + 0x3d0]
mov r12, rbx
xor ecx, ecx
call r13
mov ecx, r12d
mov rdx, r15
call rdi
test eax, eax
jne 0x180163903
mov r14, rdi
mov rdi, r13
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov eax, r13d
mov r13, rdi
mov rdi, r14
mov r14d, 0xffffffff
test ecx, ecx
jne 0x1801639ef
mov r8d, eax
cmp r12, r8
jne 0x180163860
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x180163a37
add r12, r12
cmp r12, r14
cmovae r12, r14
mov r8, r12
cmp r8, 0x201
jb 0x18016386f
jmp 0x180163890
mov qword [rsp + 0x20], 2
mov r9d, 2
lea rcx, [rbp + 0x3e8]
mov rdx, rbx
call fcn.1801901f0
mov rax, qword [rbp + 0x3e8]
mov qword [rbp + 0x3d8], rax
mov rax, qword [rbp + 0x3f0]
mov qword [rbp + 0x3d0], rax
jmp 0x18016389f
mov rdx, qword [rbp + 0x3c8]
cmp rdx, r8
jb 0x180163a23
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call fcn.180166dd0
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3e8]
test rdx, rdx
je 0x1801639d8
mov rcx, qword [rbp + 0x3f0]
add rdx, rdx
mov r8d, 2
call fcn.180047b40
mov rax, rsi
add rsp, 0x488
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 + 0x3e0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3e8]
test rdx, rdx
jne 0x1801639c3
jmp 0x1801639d8
lea rax, str.std_src_syspalwindowsmod.rs
mov rcx, r8
mov r8, rax
call fcn.180191a60
jmp 0x180163a4f
lea rcx, str.internal_error:_entered_unreachable_code_rustc_7442931d49b199ad0a1cc0f8ca54e327b5139b66library_alloc_src_vecmod.rs
lea r8, str.std_src_syspalwindowsmod.rs
mov edx, 0x28
call fcn.1801916b0
ud2
Function at 0x18016bc90
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
mov rsi, rcx
mov rax, qword [rbp + 0x70]
mov qword [rbp - 8], r9
lea rcx, [rbp]
mov qword [rbp], rax
movups xmm0, xmmword [0x18022d140]
movaps xmmword [rbp + 0x10], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
xor r8d, r8d
test r9b, 1
cmove rcx, r8
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
lea rax, [rbp + 0x10]
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_NtReadFile]
cmp eax, 0x103
jne 0x18016bd1f
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rbp + 0x10]
cmp eax, 0xc0000011
jne 0x18016bd2c
xor edx, edx
xor eax, eax
jmp 0x18016bd56
cmp eax, 0x103
je 0x18016bd60
test eax, eax
js 0x18016bd3f
mov rdx, qword [rbp + 0x18]
xor eax, eax
jmp 0x18016bd56
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xb8
pop rsi
pop rbp
ret
mov dword [rbp + 0x28], 0
mov byte [rbp + 0x2c], 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 + 0x30]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x28]
lea rdx, [rbp - 0x38]
call fcn.180166960
mov qword [rbp + 8], rax
lea rcx, [rbp + 8]
call fcn.1801604c0
mov ecx, 7
int 0x29
ud2

Function at 0x18016bdb0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
mov rsi, rcx
mov rax, qword [rbp + 0x70]
mov qword [rbp - 8], r9
lea rcx, [rbp]
mov qword [rbp], rax
movups xmm0, xmmword [0x18022d140]
movaps xmmword [rbp + 0x10], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
xor r8d, r8d
test r9b, 1
cmove rcx, r8
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
lea rax, [rbp + 0x10]
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 0x18016be46
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rbp + 0x10]
cmp eax, 0x103
je 0x18016be73
test eax, eax
js 0x18016be52
mov rdx, qword [rbp + 0x18]
xor eax, eax
jmp 0x18016be69
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xb8
pop rsi
pop rbp
ret
mov dword [rbp + 0x28], 0
mov byte [rbp + 0x2c], 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 + 0x30]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x28]
lea rdx, [rbp - 0x38]
call fcn.180166960
mov qword [rbp + 8], rax
lea rcx, [rbp + 8]
call fcn.1801604c0
mov ecx, 7
int 0x29
ud2
Function at 0x18016c2c0
Capabilities:
Set environment variable

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rsi, r9
mov rdi, r8
mov r8, rdx
mov rdx, rcx
lea rcx, [rbp - 0x30]
call fcn.18016d090
mov rcx, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x28]
mov rax, rcx
neg rax
jno 0x18016c304
mov rsi, rdx
jmp 0x18016c386
mov qword [rbp - 0x18], rdx
mov qword [rbp - 0x10], rcx
lea rcx, [rbp - 0x30]
mov rdx, rdi
mov r8, rsi
call fcn.18016d090
mov rbx, qword [rbp - 0x30]
mov rdi, qword [rbp - 0x28]
mov rax, rbx
neg rax
jno 0x18016c33d
mov rsi, rdi
mov rdx, qword [rbp - 0x10]
test rdx, rdx
mov r14, qword [rbp - 0x18]
jne 0x18016c375
jmp 0x18016c386
mov r14, qword [rbp - 0x18]
mov rcx, r14
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
je 0x18016c394
xor esi, esi
test rbx, rbx
je 0x18016c36c
add rbx, rbx
mov r8d, 2
mov rcx, rdi
mov rdx, rbx
call fcn.180047b40
mov rdx, qword [rbp - 0x10]
test rdx, rdx
je 0x18016c386
add rdx, rdx
mov r8d, 2
mov rcx, r14
call fcn.180047b40
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
shl rsi, 0x20
or rsi, 2
test rbx, rbx
jne 0x18016c358
jmp 0x18016c36c
Function at 0x180185e60
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov rsi, rdx
mov rdi, rcx
mov rcx, rdx
mov edx, r8d
call fcn.180110ec0
test al, al
je 0x180185eb4
mov eax, dword [rsi]
mov ecx, eax
and ecx, 0x1fffff00
mov dword [rsp + 0x34], ecx
je 0x180185ef4
test al, 1
jne 0x180185ebc
mov edx, 0xffffff00
lock xadd dword [rsi], edx
mov eax, edx
and eax, 0x3fffff00
cmp eax, 0x100
setne al
cmp edx, 0x40000000
setb cl
or cl, al
je 0x180185f21
mov dword [rdi], 3
jmp 0x180185eed
movzx eax, al
mov dword [rdi], 2
mov dword [rdi + 4], eax
mov edx, 0xffffff00
lock xadd dword [rsi], edx
mov eax, edx
and eax, 0x3fffff00
cmp eax, 0x100
setne al
cmp edx, 0x40000000
setb cl
or cl, al
je 0x180185f37
add rsp, 0x68
pop rdi
pop rsi
ret
mov qword [rsp + 0x38], 0
lea rax, [0x180192af8]
mov qword [rsp + 0x20], rax
lea r8, [0x180192a00]
lea rdx, [rsp + 0x34]
lea r9, [rsp + 0x38]
mov cl, 1
call fcn.18018e6d0
add edx, 0xffffff00
mov rcx, rsi
call fcn.180184f20
mov dword [rdi], 3
jmp 0x180185eed
add edx, 0xffffff00
mov rcx, rsi
add rsp, 0x68
pop rdi
pop rsi
jmp fcn.180184f20
Function at 0x18018ece0
Capabilities:
Link many functions at runtime

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
lea rbp, [rsp + 0x40]
mov qword [rbp - 8], 0xfffffffffffffffe
lea rcx, [0x18021d81d]
call sub.KERNEL32.dll_GetModuleHandleA
test rax, rax
je 0x18018ed40
mov rdi, rax
lea rdx, [0x18021d83e]
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x18018ed40
mov rsi, rax
lea rdx, [0x18021d84c]
mov rcx, rdi
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x18018ed40
mov r14, rax
xor ebx, ebx
jmp 0x18018edc2
lea rcx, [0x18021d7d8]
call sub.KERNEL32.dll_GetModuleHandleA
test rax, rax
je 0x18018ee2e
mov rsi, rax
lea rdx, str.NtCreateKeyedEvent
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x18018ee2e
mov rdi, rax
lea rdx, str.NtReleaseKeyedEvent
mov rcx, rsi
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x18018ee2e
mov rbx, rax
lea rdx, str.NtWaitForKeyedEvent
mov rcx, rsi
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x18018ee2e
mov rsi, rax
lea rcx, [rbp - 0x20]
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call rdi
test eax, eax
jne 0x18018ee2e
mov r14, qword [rbp - 0x20]
movzx eax, byte [0x1802800c9]
mov ecx, 0x18
mov edx, 8
call fcn.180047b30
test rax, rax
je 0x18018ee46
mov rdi, rax
mov qword [rax], rbx
mov qword [rax + 8], rsi
mov qword [rax + 0x10], r14
xor eax, eax
lock cmpxchg qword [0x180280120], rdi
je 0x18018ee20
mov rsi, rax
cmp qword [rdi], 0
je 0x18018ee0a
mov rcx, qword [rdi + 0x10]
call sub.KERNEL32.dll_CloseHandle
mov edx, 0x18
mov r8d, 8
mov rcx, rdi
call fcn.180047b40
mov rdi, rsi
mov rax, rdi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, str.parking_lot_requires_either_NT_Keyed_Events__WinXP__or_WaitOnAddress_WakeByAddress__Win8_C:Users_runneradmin.cargo_registry_srcindex.crates.io_6f17d22bba15001fparking_lot_core_0.8.6_src_thread_parkerwindowsmod.rs
lea r8, [0x18021d940]
mov edx, 0x5b
call fcn.180190685
mov qword [rbp - 0x10], r14
mov qword [rbp - 0x18], rbx
mov ecx, 8
mov edx, 0x18
call fcn.180191370
ud2
Function at 0x1400017c0
Capabilities:
Enumerate pe sections

Disassembly:
cmp byte [rcx + 8], 0x2d
mov r9, rdx
mov r8, rcx
jne 0x1400019f9
cmp byte [rcx + 0xd], 0x2d
jne 0x1400019f9
cmp byte [rcx + 0x12], 0x2d
jne 0x1400019f9
cmp byte [rcx + 0x17], 0x2d
jne 0x1400019f9
xor eax, eax
lea r10, [0x140003270]
mov r11d, 0x842100
nop dword [rax]
cmp rax, 0x17
ja 0x14000180c
bt r11, rax
jb 0x140001829
movzx edx, byte [rax + rcx]
cmp dl, 0x66
ja 0x1400019f9
cmp byte [rdx + r10], 0
jne 0x140001829
cmp dl, 0x30
jne 0x1400019f9
inc rax
cmp rax, 0x24
jl 0x140001800
movzx eax, byte [rcx]
movzx edx, byte [rax + r10]
movzx eax, byte [rcx + 1]
shl edx, 4
movzx ecx, byte [rax + r10]
or edx, ecx
movzx eax, byte [r8 + 2]
shl edx, 4
movzx ecx, byte [rax + r10]
or edx, ecx
movzx eax, byte [r8 + 3]
shl edx, 4
movzx ecx, byte [rax + r10]
or edx, ecx
movzx eax, byte [r8 + 4]
shl edx, 4
movzx ecx, byte [rax + r10]
movzx eax, byte [r8 + 5]
or edx, ecx
shl edx, 4
movzx ecx, byte [rax + r10]
movzx eax, byte [r8 + 6]
or edx, ecx
shl edx, 4
movzx ecx, byte [rax + r10]
movzx eax, byte [r8 + 7]
or edx, ecx
shl edx, 4
movzx ecx, byte [rax + r10]
or edx, ecx
mov dword [r9], edx
movzx eax, byte [r8 + 9]
movzx edx, byte [rax + r10]
movzx eax, byte [r8 + 0xa]
shl dx, 4
movzx ecx, byte [rax + r10]
movzx eax, byte [r8 + 0xb]
or dx, cx
shl dx, 4
movzx ecx, byte [rax + r10]
movzx eax, byte [r8 + 0xc]
or dx, cx
shl dx, 4
movzx ecx, byte [rax + r10]
or dx, cx
mov word [r9 + 4], dx
movzx eax, byte [r8 + 0xe]
movzx edx, byte [rax + r10]
movzx eax, byte [r8 + 0xf]
shl dx, 4
movzx ecx, byte [rax + r10]
movzx eax, byte [r8 + 0x10]
or dx, cx
shl dx, 4
movzx ecx, byte [rax + r10]
movzx eax, byte [r8 + 0x11]
or dx, cx
shl dx, 4
movzx ecx, byte [rax + r10]
or dx, cx
mov word [r9 + 6], dx
movzx eax, byte [r8 + 0x13]
movzx ecx, byte [rax + r10]
movzx eax, byte [r8 + 0x14]
shl cl, 4
or cl, byte [rax + r10]
mov byte [r9 + 8], cl
movzx eax, byte [r8 + 0x15]
movzx ecx, byte [rax + r10]
movzx eax, byte [r8 + 0x16]
shl cl, 4
or cl, byte [rax + r10]
mov byte [r9 + 9], cl
movzx eax, byte [r8 + 0x18]
movzx ecx, byte [rax + r10]
movzx eax, byte [r8 + 0x19]
shl cl, 4
or cl, byte [rax + r10]
mov byte [r9 + 0xa], cl
movzx eax, byte [r8 + 0x1a]
movzx ecx, byte [rax + r10]
movzx eax, byte [r8 + 0x1b]
shl cl, 4
or cl, byte [rax + r10]
mov byte [r9 + 0xb], cl
movzx eax, byte [r8 + 0x1c]
movzx ecx, byte [rax + r10]
movzx eax, byte [r8 + 0x1d]
shl cl, 4
or cl, byte [rax + r10]
mov byte [r9 + 0xc], cl
movzx eax, byte [r8 + 0x1e]
movzx ecx, byte [rax + r10]
movzx eax, byte [r8 + 0x1f]
shl cl, 4
or cl, byte [rax + r10]
mov byte [r9 + 0xd], cl
movzx eax, byte [r8 + 0x20]
movzx ecx, byte [rax + r10]
movzx eax, byte [r8 + 0x21]
shl cl, 4
or cl, byte [rax + r10]
mov byte [r9 + 0xe], cl
movzx eax, byte [r8 + 0x22]
movzx ecx, byte [rax + r10]
movzx eax, byte [r8 + 0x23]
shl cl, 4
or cl, byte [rax + r10]
mov byte [r9 + 0xf], cl
ret
Function at 0x180006200
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, qword [0x18010e3e8]
mov edx, 0x28
mov rcx, rbx
mov rdi, r8
call fcn.180006d40
mov edx, 0x44a8
mov qword [rdi], rax
mov rcx, rbx
call fcn.180006d40
cmp dword [0x18010e3e4], 0xb223dcc9
mov rcx, qword [rdi]
mov qword [rcx + 0x18], rax
jne 0x180006333
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindNextChangeNotification]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_UnregisterWait]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalReAlloc]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLocaleName]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetProcessPreferredUILanguages]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ApplicationRecoveryFinished]
xor r9d, r9d
mov dword [rsp + 0x20], 0
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjectsEx]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_QueryThreadCycleTime]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetThreadpoolThreadMinimum]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r8d, r8d
lea rdx, [0x180126da0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetNLSVersionEx]
call qword [sym.imp.KERNEL32.dll_GetThreadLocale]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetThreadIdealProcessorEx]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetConsoleActiveScreenBuffer]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateWaitableTimerW]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetVolumeLabelW]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindVolumeClose]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetProcessWorkingSetSize]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x18008f76c
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 0x18008f7db
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18008f7db
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18008f7db
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18008f7db
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18008f7db
cmp dword [rcx + 0x84], 0xe
jbe 0x18008f7db
cmp dword [rcx + 0xf8], 0
je 0x18008f7db
mov ecx, ebx
call fcn.18008f88c
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.18008f668
nop
cmp dword [rbp + 0x20], 0
je 0x18008f829
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.18008f834
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x18008f76c

Function at 0x180090ffc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x180091012
mov al, 1
jmp 0x180091072
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x180091023
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180091070
mov ecx, dword [rcx + 0x18]
nop
call fcn.18009bf14
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180091070
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180091070
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180091070
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x180091072
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x180096a1c
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.180080e10
sub rsp, rax
mov rax, qword [0x1800a80c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.180090edc
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x180096a6b
mov rax, rbp
jmp 0x180096b73
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 + 0x10dc60]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18009843c
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x10dc60]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x180096b6f
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 0x180096b6f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18009843c
test rax, rax
js 0x180096b6f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x180096b6f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180096b61
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180096b61
cmp byte [rcx], 0xd
jne 0x180096b47
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x180096b56
cmp byte [rcx + 1], 0xa
jne 0x180096b56
inc rcx
jmp 0x180096b56
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xa84d0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180096b29
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x180096b73
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180080b10
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 0x1800977dc
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, [0x18010dc60]
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 0x180097833
cmp word [rdx], r13w
jne 0x180097833
or byte [rax + rdi*8 + 0x38], cl
jmp 0x180097838
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x18009795d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x18009797e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x180097871
mov rdx, r9
mov word [rbx], cx
jmp 0x180097898
cmp r9, r8
jae 0x1800978a8
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 0x180097852
jmp 0x18009795d
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 0x180097952
cmp dword [rsp + 0x80], esi
je 0x180097952
lea r8, [0x18010dc60]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18009792a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1800978fa
mov word [rbx], r13w
jmp 0x18009795a
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 0x180097907
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x18009795a
cmp word [rsp + 0x70], r13w
jne 0x180097937
cmp rbx, r14
je 0x1800978f4
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.180098444
cmp word [rsp + 0x70], r13w
je 0x18009795d
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, [0x18010dc60]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x180097957
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x18009795d
Function at 0x18009b758
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 0x18009b788
xor eax, eax
jmp 0x18009b84b
mov rbp, rbx
cmp word [rax], si
je 0x18009b7ad
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18009b794
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18009b790
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.180099e40
movsxd r14, eax
test eax, eax
jne 0x18009b7eb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18009b781
mov rcx, r14
call fcn.180094898
mov rdi, rax
test rax, rax
jne 0x18009b804
xor ecx, ecx
call fcn.180094414
jmp 0x18009b7e0
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.180099e40
test eax, eax
jne 0x18009b835
mov rcx, rdi
call fcn.180094414
jmp 0x18009b83f
xor ecx, ecx
call fcn.180094414
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 0x18009e5c0
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.180091500
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 0x18009e661
cmp ebx, dword [rsp + 0x30]
je 0x18009e65a
test esi, esi
je 0x18009e65a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x18009e635
sub r8w, 0x61
cmp r8w, 0x19
ja 0x18009e642
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x18009e61f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x18009e646
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x18009e663
mov eax, 1
jmp 0x18009e663
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret