joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800058f0
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
call fcn.180014560
mov ebx, eax
test eax, eax
je 0x18000596e
mov ecx, eax
call fcn.180014620
test al, al
je 0x18000596e
lea r8, str.6A653E3B_97F2_D94B_6C34_30A6E726E788
xor edx, edx
mov ecx, 0xf001f
call qword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov rdi, rax
test rax, rax
je 0x18000596e
xor r9d, r9d
mov qword [rsp + 0x20], 4
xor r8d, r8d
mov edx, 0xf001f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rax
cmp dword [rax], ebx
sete bl
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, bl
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x40]
xor al, al
add rsp, 0x30
pop rdi
ret
Function at 0x180013e70
Capabilities:
Create thread
Inject thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rdi, rdx
mov rbp, rcx
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x180013e91
add rbx, rbx
mov dword [rsp + 0x20], 4
mov r8, rbx
mov r9d, 0x3000
xor edx, edx
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r9, rbx
mov qword [rsp + 0x20], 0
mov rdx, rax
mov r8, rdi
mov rcx, rbp
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r9, qword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor r8d, r8d
mov qword [rsp + 0x30], 0
xor edx, edx
mov dword [rsp + 0x28], 0
mov rcx, rbp
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rcx, rax
mov edx, 0xffffffff
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov r9d, 0x8000
mov r8, rbx
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x60], 0
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
setne al
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret

Function at 0x180013f60
Capabilities:
Create thread
Enumerate process modules

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x4a0
mov rax, qword [0x1800660c0]
xor rax, rsp
mov qword [rsp + 0x490], rax
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_GetProcessId]
mov edx, eax
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
test rax, rax
je 0x180014075
xor edx, edx
mov dword [rsp + 0x50], 0x438
mov r8d, 0x434
lea rcx, [rsp + 0x54]
call fcn.180032840
lea rdx, [rsp + 0x50]
mov rcx, rdi
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x18001400a
nop dword [rax]
nop dword [rax + rax]
mov rdx, rsi
lea rcx, [rsp + 0x80]
call fcn.18001edb8
test eax, eax
lea rdx, [rsp + 0x50]
mov rcx, rdi
cmove rbx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x180013fe0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x180014075
mov r9, qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor r8d, r8d
mov qword [rsp + 0x30], 0
xor edx, edx
mov dword [rsp + 0x28], 0
mov rcx, rbp
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rcx, rax
mov edx, 0xffffffff
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x40], 0
setne al
jmp 0x180014077
xor al, al
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.180015d60
mov rbx, qword [rsp + 0x4d0]
add rsp, 0x4a0
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800140a0
Capabilities:
Create thread
Inject thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rdi, rdx
mov rbp, rcx
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x1800140c1
add rbx, rbx
mov dword [rsp + 0x20], 4
mov r8, rbx
mov r9d, 0x3000
xor edx, edx
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r9, rbx
mov qword [rsp + 0x20], 0
mov rdx, rax
mov r8, rdi
mov rcx, rbp
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call fcn.1800142f0
mov qword [rsp + 0x30], 0
xor r8d, r8d
mov dword [rsp + 0x28], 0
xor edx, edx
mov rcx, rbp
mov qword [rsp + 0x20], rsi
mov r9d, dword [rax]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rcx, rax
mov edx, 0xffffffff
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov r9d, 0x8000
mov r8, rbx
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x60], 0
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
setne al
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret

Function at 0x180014190
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
mov rdi, rcx
call fcn.1800142f0
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov r9d, dword [rax + 4]
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rcx, rax
mov edx, 0xffffffff
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x60], 0
mov rbx, qword [rsp + 0x50]
setne al
add rsp, 0x40
pop rdi
ret

Function at 0x180014210
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x470
mov rax, qword [0x1800660c0]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_GetProcessId]
mov edx, eax
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
test rax, rax
je 0x1800142c2
xor edx, edx
mov dword [rsp + 0x20], 0x438
mov r8d, 0x434
lea rcx, [rsp + 0x24]
call fcn.180032840
lea rdx, [rsp + 0x20]
mov rcx, rdi
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x1800142a7
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.18001edb8
test eax, eax
lea rdx, [rsp + 0x20]
mov rcx, rdi
cmove rbx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x180014280
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x1800142c2
mov rdx, rbx
mov rcx, rbp
call fcn.180014190
jmp 0x1800142c4
xor al, al
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.180015d60
mov rbx, qword [rsp + 0x4a0]
add rsp, 0x470
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800142f0
Capabilities:
Create process on windows
Delete directory
Delete file
Read file via mapping

Disassembly:
sub rsp, 0xe8
cmp byte [0x180068b90], 0
je 0x18001430f
lea rax, [0x180068b88]
add rsp, 0xe8
ret
mov qword [rsp + 0xf0], rbx
lea rdx, str.Divine.Injector.X86.exe
mov qword [rsp + 0xf8], rbp
mov ecx, 2
mov qword [rsp + 0x100], rsi
mov qword [rsp + 0x108], rdi
mov qword [rsp + 0xe0], r14
call fcn.180012b70
xorps xmm0, xmm0
mov rbx, rax
xor eax, eax
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0x60], rax
lea rax, [0x18005e9b0]
mov qword [rsp + 0x28], rax
lea r8d, [r9 + 4]
mov dword [rsp + 0x20], 8
lea rcx, [rdx - 1]
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
movups xmmword [rsp + 0xb0], xmm0
movups xmmword [rsp + 0xc0], xmm0
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
xor r9d, r9d
mov qword [rsp + 0x20], 8
xor r8d, r8d
mov rcx, rax
mov rbp, rax
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp qword [rbx + 0x18], 7
mov sil, 1
mov rdi, rax
mov rcx, rbx
jbe 0x1800143e8
mov rcx, qword [rbx]
xor r14d, r14d
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
xor r9d, r9d
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor edx, edx
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], r14d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x180014456
mov rcx, qword [rsp + 0x58]
mov edx, 0x2710
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rdi]
mov dword [0x180068b88], eax
mov eax, dword [rdi + 4]
mov dword [0x180068b8c], eax
jmp 0x180014459
xor sil, sil
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx + 0x18], 7
mov rcx, rbx
mov rdi, qword [rsp + 0x108]
mov rbp, qword [rsp + 0xf8]
jbe 0x180014488
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov rdx, qword [rbx + 0x18]
cmp rdx, 7
jbe 0x1800144d3
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x1800144ce
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180014527
mov rcx, r8
call fcn.180015d88
mov edx, 0x28
mov qword [rbx + 0x10], r14
mov rcx, rbx
mov qword [rbx + 0x18], 7
mov word [rbx], r14w
call fcn.180015d88
test sil, sil
je 0x180014505
mov byte [0x180068b90], 1
lea rax, [0x180068b88]
jmp 0x180014507
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbx, qword [rsp + 0xf0]
mov r14, qword [rsp + 0xe0]
add rsp, 0xe8
ret
call fcn.18001df38
int3
Function at 0x180014560
Capabilities:
Enumerate processes

Disassembly:
push rbx
sub rsp, 0x270
mov rax, qword [0x1800660c0]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
test rax, rax
je 0x180014604
xor edx, edx
mov qword [rsp + 0x280], rdi
mov r8d, 0x234
mov dword [rsp + 0x20], 0x238
lea rcx, [rsp + 0x24]
call fcn.180032840
lea rdx, [rsp + 0x20]
mov rcx, rbx
xor edi, edi
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1800145f1
lea rdx, str.Steam.exe
lea rcx, [rsp + 0x4c]
call fcn.18001edb8
test eax, eax
je 0x1800145ed
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1800145c4
jmp 0x1800145f1
mov edi, dword [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rdi, qword [rsp + 0x280]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.180015d60
add rsp, 0x270
pop rbx
ret

Function at 0x180014620
Capabilities:
Enumerate process modules

Disassembly:
push rbp
mov eax, 0x2270
call fcn.180016790
sub rsp, rax
mov rax, qword [0x1800660c0]
xor rax, rsp
mov qword [rsp + 0x2250], rax
mov r8d, ecx
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbp, rax
test rax, rax
je 0x180014746
mov qword [rsp + 0x2260], r14
lea r9, [rsp + 0x30]
mov r8d, 0x2000
mov dword [rsp + 0x20], 1
lea rdx, [rsp + 0x40]
mov rcx, rbp
xor r14b, r14b
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModulesEx]
test eax, eax
je 0x180014731
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1800146a2
mov al, 1
jmp 0x18001473e
mov qword [rsp + 0x2288], rbx
xor ebx, ebx
mov qword [rsp + 0x2290], rsi
mov esi, dword [rsp + 0x30]
shr rsi, 3
test rsi, rsi
je 0x180014721
mov qword [rsp + 0x2268], rdi
lea rdi, [rsp + 0x40]
nop
mov rdx, qword [rdi]
lea r8, [rsp + 0x2040]
mov r9d, 0x104
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_K32GetModuleBaseNameW]
test eax, eax
je 0x180014706
lea rdx, str.Divine.Protector.dll
lea rcx, [rsp + 0x2040]
call fcn.18001edb8
test eax, eax
je 0x180014716
inc ebx
add rdi, 8
movsxd rax, ebx
cmp rax, rsi
jb 0x1800146d0
jmp 0x180014719
mov r14b, 1
mov rdi, qword [rsp + 0x2268]
mov rsi, qword [rsp + 0x2290]
mov rbx, qword [rsp + 0x2288]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, r14b
mov r14, qword [rsp + 0x2260]
mov rcx, qword [rsp + 0x2250]
xor rcx, rsp
call fcn.180015d60
add rsp, 0x2270
pop rbp
ret
Function at 0x180014760
Capabilities:
Enumerate processes
Enumerate threads
Terminate process
Terminate thread

Disassembly:
push r12
push r13
sub rsp, 0x2b8
mov rax, qword [0x1800660c0]
xor rax, rsp
mov qword [rsp + 0x290], rax
xor edx, edx
mov qword [rsp + 0x2d8], rbx
mov r12, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
xor edx, edx
mov dword [rsp + 0x50], 0x238
mov r8d, 0x234
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x54]
mov rbx, rax
call fcn.180032840
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x180014938
mov qword [rsp + 0x2e0], rbp
mov qword [rsp + 0x2e8], rsi
mov qword [rsp + 0x2b0], rdi
mov qword [rsp + 0x2a8], r14
mov qword [rsp + 0x2a0], r15
mov r15, qword [r12 + 8]
mov r14, qword [r12]
cmp r14, r15
je 0x1800148fa
nop word [rax + rax]
mov rdx, qword [r14]
lea rcx, [rsp + 0x7c]
call fcn.18001edb8
test eax, eax
jne 0x1800148e8
mov r8d, dword [rsp + 0x58]
lea ecx, [rax + 1]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbp, rax
test rax, rax
je 0x1800148e8
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov esi, dword [rsp + 0x58]
xor edx, edx
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
xorps xmm0, xmm0
mov dword [rsp + 0x28], 0x1c
mov rbx, rax
lea rdx, [rsp + 0x28]
xor eax, eax
mov rcx, rbx
mov qword [rsp + 0x3c], rax
movups xmmword [rsp + 0x2c], xmm0
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1800148c8
cmp dword [rsp + 0x34], esi
jne 0x1800148b6
mov r8d, dword [rsp + 0x30]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rcx, rax
xor edx, edx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x180014887
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0xffffffff
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add r14, 8
cmp r14, r15
jne 0x180014810
mov rbx, qword [rsp + 0x20]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1800147f3
mov r15, qword [rsp + 0x2a0]
mov r14, qword [rsp + 0x2a8]
mov rdi, qword [rsp + 0x2b0]
mov rsi, qword [rsp + 0x2e8]
mov rbp, qword [rsp + 0x2e0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [r12]
mov rbx, qword [rsp + 0x2d8]
test rcx, rcx
je 0x180014994
mov rdx, qword [r12 + 0x10]
sub rdx, rcx
and rdx, 0xfffffffffffffff8
cmp rdx, 0x1000
jb 0x18001497f
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1800149b0
mov rcx, r8
call fcn.180015d88
xor eax, eax
mov qword [r12], rax
mov qword [r12 + 8], rax
mov qword [r12 + 0x10], rax
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.180015d60
add rsp, 0x2b8
pop r13
pop r12
ret
call fcn.18001df38
int3
Function at 0x180025abc
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.180016790
sub rsp, rax
mov rax, qword [0x1800660c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18002270c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x180025b0b
mov rax, rbp
jmp 0x180025c13
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 + 0x683f0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1800256f8
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x683f0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x180025c0f
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 0x180025c0f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1800256f8
test rax, rax
js 0x180025c0f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x180025c0f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180025c01
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180025c01
cmp byte [rcx], 0xd
jne 0x180025be7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x180025bf6
cmp byte [rcx + 1], 0xa
jne 0x180025bf6
inc rcx
jmp 0x180025bf6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x664d0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180025bc9
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x180025c13
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180015d60
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 0x1800260a8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1800260be
mov al, 1
jmp 0x18002611e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1800260cf
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x18002611c
mov ecx, dword [rcx + 0x18]
nop
call fcn.18002cee4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18002611c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18002611c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18002611c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x18002611e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x180026344
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, [0x1800683f0]
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 0x18002639b
cmp word [rdx], r13w
jne 0x18002639b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1800263a0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1800264c5
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1800264e6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1800263d9
mov rdx, r9
mov word [rbx], cx
jmp 0x180026400
cmp r9, r8
jae 0x180026410
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 0x1800263ba
jmp 0x1800264c5
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 0x1800264ba
cmp dword [rsp + 0x80], esi
je 0x1800264ba
lea r8, [0x1800683f0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x180026492
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x180026462
mov word [rbx], r13w
jmp 0x1800264c2
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 0x18002646f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1800264c2
cmp word [rsp + 0x70], r13w
jne 0x18002649f
cmp rbx, r14
je 0x18002645c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.180025700
cmp word [rsp + 0x70], r13w
je 0x1800264c5
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, [0x1800683f0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1800264bf
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1800264c5
Function at 0x18002736c
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, str.GetTempPath2W
mov edi, ecx
lea rdx, str.GetTempPath2W
mov ecx, 5
lea r8, [0x1800554b0]
call fcn.180026fc4
test rax, rax
je 0x1800273b6
movabs r10, 0xa3e5bf4030d1b870
mov rdx, rbx
mov ecx, edi
call qword [0x180034408]
jmp 0x1800273c1
mov rdx, rbx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x18002c728
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 0x18002c758
xor eax, eax
jmp 0x18002c81b
mov rbp, rbx
cmp word [rax], si
je 0x18002c77d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18002c764
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18002c760
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.18002afcc
movsxd r14, eax
test eax, eax
jne 0x18002c7bb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18002c751
mov rcx, r14
call fcn.1800292c0
mov rdi, rax
test rax, rax
jne 0x18002c7d4
xor ecx, ecx
call fcn.180025410
jmp 0x18002c7b0
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.18002afcc
test eax, eax
jne 0x18002c805
mov rcx, rdi
call fcn.180025410
jmp 0x18002c80f
xor ecx, ecx
call fcn.180025410
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 0x18002f814
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.1800237b8
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 0x18002f8b5
cmp ebx, dword [rsp + 0x30]
je 0x18002f8ae
test esi, esi
je 0x18002f8ae
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x18002f889
sub r8w, 0x61
cmp r8w, 0x19
ja 0x18002f896
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x18002f873
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x18002f89a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x18002f8b7
mov eax, 1
jmp 0x18002f8b7
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret