joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180005810
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x30
mov r15, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x180005834
xor eax, eax
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
je 0x1800058c2
mov rdi, r15
mov qword [rsp + 0x68], rbp
lea rsi, [rcx + 0x50]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x180005890
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x180005890
cmp rdi, rcx
mov rbp, rdi
cmovge rbp, rcx
mov rcx, r14
mov r8, rbp
call fcn.180030ed0
mov rax, qword [rsi]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x1800058ad
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x1800058b5
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov ebp, 1
add r14, rbp
test rdi, rdi
jg 0x180005851
mov rbp, qword [rsp + 0x68]
sub r15, rdi
jmp 0x1800059a0
mov rax, qword [rcx + 0x38]
mov rsi, r15
mov rdx, qword [rax]
test rdx, rdx
je 0x1800058d9
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1800058db
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x18000590d
cmp rax, r15
mov rdi, r15
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.180030ed0
mov rax, qword [rbx + 0x50]
add r14, rdi
sub rsi, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x18000599d
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x180005948
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rsi, 0xfff
jbe 0x18000597e
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.18001eb44
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x18000599d
cmp rsi, rax
ja 0x180005951
test rsi, rsi
je 0x18000599d
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.18001eb44
sub rsi, rax
sub r15, rsi
mov rsi, qword [rsp + 0x28]
mov rax, r15
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
Function at 0x180014590
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x58
mov rax, qword [0x1800660c0]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor r13d, r13d
mov r12d, edx
mov qword [rcx], r13
mov rbx, rcx
mov qword [rcx + 8], r13
xor edx, edx
mov ecx, 4
mov r15d, r8d
mov edi, r13d
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x180014787
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1800146d6
mov edi, 1
cmp dword [rsp + 0x20], 0x10
jb 0x180014690
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x180014690
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x180014690
mov rdx, qword [rbx]
test rdx, rdx
jne 0x180014652
mov rcx, qword [0x180068d10]
mov r8d, 0x200
mov dword [rbx + 8], 0x80
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x1800146b9
jmp 0x180014683
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x180014683
mov rcx, qword [0x180068d10]
add eax, eax
mov r9d, eax
mov r8, rdx
shl r9, 2
xor edx, edx
mov dword [rbx + 8], eax
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x1800146b9
mov qword [rbx], rax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x180014600
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1800146d6
mov r8, qword [rbx]
mov edi, r13d
test r8, r8
je 0x1800146d6
mov rcx, qword [0x180068d10]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rbx], r13
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x180014787
cmp qword [rbx], r13
je 0x180014782
mov edi, r13d
cmp dword [rbx + 0xc], r13d
jbe 0x180014782
mov qword [rsp + 0xa0], rbp
mov qword [rsp + 0x50], r14
nop word [rax + rax]
mov r8, qword [rbx]
xor edx, edx
mov eax, edi
mov ecx, 0x5a
lea r14, [rax*4]
mov r8d, dword [r8 + r14]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
mov ebp, r13d
test rax, rax
je 0x180014767
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x18001475a
mov r8d, r15d
mov edx, r12d
mov rcx, rsi
mov ebp, 1
call fcn.1800143e0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
jne 0x18001476e
mov rcx, qword [rbx]
mov dword [r14 + rcx], r13d
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x180014710
mov r14, qword [rsp + 0x50]
mov rbp, qword [rsp + 0xa0]
mov eax, r13d
jmp 0x18001478c
mov eax, 9
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1800172c0
add rsp, 0x58
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x1800147b0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x1800660c0]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, ecx
lea r9, [rsp + 0x20]
imul rbx, rax, 0x38
mov r8d, 0x40
add rbx, qword [0x180068d90]
mov rdx, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [rdx - 5]
cmove rdi, rdx
lea rsi, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180014819
mov eax, 0xa
jmp 0x180014866
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x180014835
mov rax, qword [rbx]
mov word [rax], 0xf9eb
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [rbx + 0x20], 6
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1800172c0
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x180014890
Capabilities:
Resume thread

Disassembly:
push rbx
sub rsp, 0x30
mov edx, dword [0x180068d9c]
xor ebx, ebx
test edx, edx
je 0x1800148bf
mov rcx, qword [0x180068d90]
add rcx, 0x20
nop dword [rax]
test byte [rcx], 2
je 0x1800148c7
inc ebx
add rcx, 0x38
cmp ebx, edx
jb 0x1800148b0
xor eax, eax
add rsp, 0x30
pop rbx
ret
cmp ebx, 0xffffffff
je 0x1800148bf
mov edx, 0xffffffff
mov qword [rsp + 0x50], rdi
mov r8d, 1
lea rcx, [rsp + 0x20]
call fcn.180014590
mov edi, eax
test eax, eax
jne 0x1800149a9
mov eax, dword [0x180068d9c]
cmp ebx, eax
jae 0x18001492d
nop word [rax + rax]
mov ecx, ebx
imul rdx, rcx, 0x38
mov rcx, qword [0x180068d90]
test byte [rdx + rcx + 0x20], 2
jne 0x180014927
mov ecx, ebx
call fcn.1800147b0
mov edi, eax
test eax, eax
jne 0x18001492d
mov eax, dword [0x180068d9c]
inc ebx
cmp ebx, eax
jb 0x180014900
cmp qword [rsp + 0x20], 0
je 0x1800149a7
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180014993
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
mov qword [rsp + 0x48], rsi
nop
mov r8d, dword [rbx]
test r8d, r8d
je 0x18001497f
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18001497f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x180014950
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x180068d10]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop rbx
ret
Function at 0x180015140
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push r14
push r15
sub rsp, 0x98
mov rax, qword [0x1800660c0]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, rcx
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x58]
cmp rdi, 0x40000000
jbe 0x18001518a
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x180068d80]
lea r15, [rdi + 0x40000000]
cmp qword [rsp + 0x60], r15
cmovbe r15, qword [rsp + 0x60]
sub r15, 0xfff
test rsi, rsi
je 0x1800151cd
nop
cmp rsi, r14
jb 0x1800151c5
cmp rsi, r15
jae 0x1800151c5
cmp qword [rsi + 8], 0
jne 0x180015397
mov rsi, qword [rsi]
test rsi, rsi
jne 0x1800151b0
mov qword [rsp + 0xc8], rbx
mov rbx, rdi
mov qword [rsp + 0xd0], rbp
mov qword [rsp + 0x90], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x180015262
nop dword [rax]
nop word [rax + rax]
mov ebp, dword [rsp + 0x78]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x180015259
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180015259
cmp dword [rsp + 0x40], 0x10000
je 0x1800152db
mov rbx, qword [rsp + 0x28]
cmp rbx, rbp
jb 0x180015259
sub rbx, rbp
cmp rbx, r14
jae 0x180015220
test rsi, rsi
jne 0x180015340
cmp rdi, r15
ja 0x18001537f
nop dword [rax + rax]
mov ebp, dword [rsp + 0x78]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x18001537f
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18001537f
cmp dword [rsp + 0x40], 0x10000
je 0x180015311
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x38]
add rdi, qword [rsp + 0x20]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x180015292
jmp 0x18001537f
test rbx, rbx
je 0x180015259
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180015340
cmp rbx, r14
jae 0x180015200
jmp 0x180015262
test rdi, rdi
je 0x18001537f
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180015340
cmp rdi, r15
jbe 0x180015270
jmp 0x18001537f
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x180015350
mov rax, qword [0x180068d80]
mov qword [rsi], rax
mov qword [0x180068d80], rsi
mov r12, qword [rsp + 0x90]
mov rbp, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0xc8]
mov rax, rsi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1800172c0
add rsp, 0x98
pop r15
pop r14
pop rdi
pop rsi
ret
Function at 0x180015d98
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 0x180015dd2
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x180015dd7
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 0x180015e20
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1800334c0]
cmp byte [rcx + rax], 0
je 0x180015e20
dec r8
sub rdx, 1
jne 0x180015e06
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x18001d090
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 0x18001d0ff
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18001d0ff
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18001d0ff
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18001d0ff
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18001d0ff
cmp dword [rcx + 0x84], 0xe
jbe 0x18001d0ff
cmp dword [rcx + 0xf8], 0
je 0x18001d0ff
mov ecx, ebx
call fcn.18001d1a4
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.18001cf98
nop
cmp dword [rbp + 0x20], 0
jne 0x18001d160
call fcn.180022020
cmp eax, 1
jne 0x18001d150
xor dl, dl
jmp 0x18001d15a
call fcn.180021fec
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x18001d16b
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.18001d174
int3
xor r8d, r8d
xor edx, edx
jmp 0x18001d090
Function at 0x18001d234
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 0x18001d0ff
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18001d0ff
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18001d0ff
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18001d0ff
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18001d0ff
cmp dword [rcx + 0x84], 0xe
jbe 0x18001d0ff
cmp dword [rcx + 0xf8], 0
je 0x18001d0ff
mov ecx, ebx
call fcn.18001d1a4
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.18001cf98
nop
cmp dword [rbp + 0x20], 0
jne 0x18001d160
call fcn.180022020
cmp eax, 1
jne 0x18001d150
xor dl, dl
jmp 0x18001d15a
call fcn.180021fec
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x18001d16b
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.18001d174
int3
xor r8d, r8d
xor edx, edx
jmp 0x18001d090

Function at 0x180022464
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x18002247a
mov al, 1
jmp 0x1800224e6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x18002248b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1800224e4
mov ecx, dword [rcx + 0x18]
nop
call fcn.18002bb04
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1800224e4
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 0x1800224e4
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1800224e4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1800224e6
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x180026454
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 [0x18006c050]
mov ebx, r9d
mov rdi, r8
mov esi, edx
mov rbp, rcx
cmp rax, 0xffffffffffffffff
je 0x1800264b9
test rax, rax
jne 0x1800264a7
lea r9, [0x180054590]
lea r8, [0x180054588]
lea rdx, [0x180054590]
lea ecx, [rax + 0xa]
call fcn.180026128
test rax, rax
je 0x1800264b9
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call fcn.180030e80
jmp 0x1800264d3
xor edx, edx
mov rcx, rbp
call fcn.180026744
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 0x180026f3c
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.180017ee0
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.180022344
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x180026f8b
mov rax, rbp
jmp 0x180027097
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 + 0x68640]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180027f44
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x68640]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x180027093
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 0x180027093
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180027f44
test rax, rax
js 0x180027093
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x180027093
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180027085
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180027085
cmp byte [rcx], 0xd
jne 0x18002706b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18002707a
cmp byte [rcx + 1], 0xa
jne 0x18002707a
inc rcx
jmp 0x18002707a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x664f0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18002704d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x180027097
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1800172c0
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 0x18002722c
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, [0x180068640]
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 0x180027282
cmp word [rdx], r9w
jne 0x180027282
or byte [rax + rbp*8 + 0x38], 4
jmp 0x180027287
and byte [rax + rbp*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rax, rsi
mov rbx, rsi
cmp rsi, r8
jae 0x180027406
mov r11d, 0xd
lea r13d, [r11 - 0xb]
movzx edx, word [rax]
cmp dx, 0x1a
je 0x1800273d1
lea rcx, [rax + 2]
cmp dx, r11w
jne 0x1800272cf
cmp rcx, r8
jae 0x1800272ef
cmp word [rcx], r9w
jne 0x1800272cf
add rax, 4
mov edx, r9d
jmp 0x1800272d2
mov rax, rcx
mov word [rbx], dx
mov r9, r13
mov rcx, rbx
mov r9d, 0xa
lea rbx, [rbx + r13]
cmp rax, r8
jb 0x1800272a4
jmp 0x180027406
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 0x1800273ca
cmp dword [rsp + 0x80], edi
je 0x1800273ca
lea r9, [0x180068640]
mov rax, qword [r9 + r12*8]
test byte [rax + rbp*8 + 0x38], 0x48
mov ebp, 0xa
je 0x1800273a4
movzx eax, word [rsp + 0x70]
cmp ax, bp
jne 0x180027357
mov word [rbx], bp
jmp 0x180027403
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 0x180027372
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 0x180027403
cmp word [rsp + 0x70], bp
jne 0x1800273b0
cmp rbx, rsi
je 0x18002734f
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.180027f4c
cmp word [rsp + 0x70], bp
je 0x180027406
mov word [rbx], 0xd
jmp 0x180027403
mov rcx, r15
lea r9, [0x180068640]
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 0x180027400
or al, r13b
mov byte [rcx + r8*8 + 0x38], al
jmp 0x180027406
mov word [rbx], dx
add rbx, r13
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x18002b360
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 0x18002b390
xor eax, eax
jmp 0x18002b453
mov rbp, rbx
cmp word [rax], si
je 0x18002b3b5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18002b39c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18002b398
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.180029a5c
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x18002b3f6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18002b389
call fcn.1800284d0
mov rdi, rax
test rax, rax
jne 0x18002b40c
xor ecx, ecx
call fcn.1800255d0
jmp 0x18002b3eb
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.180029a5c
test eax, eax
jne 0x18002b43d
mov rcx, rdi
call fcn.1800255d0
jmp 0x18002b447
xor ecx, ecx
call fcn.1800255d0
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 0x18002e158
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, rdx
mov dword [rsp + 0x30], esi
mov rbx, rcx
test rcx, rcx
je 0x18002e1cb
cmp word [rcx], si
je 0x18002e1cb
lea rdx, [0x1800556e8]
call fcn.180030530
test eax, eax
je 0x18002e1cb
lea rdx, [0x180055700]
mov rcx, rbx
call fcn.180030530
test eax, eax
jne 0x18002e1c1
mov ecx, dword [rdi + 8]
lea r9d, [rsi + 2]
lea r8, [rsp + 0x30]
mov edx, 0x2000000b
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x18002e1e8
mov eax, dword [rsp + 0x30]
jmp 0x18002e1fa
mov rcx, rbx
call fcn.180021f0c
jmp 0x18002e1fa
mov ecx, dword [rdi + 8]
lea r8, [rsp + 0x30]
mov r9d, 2
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x18002e1ec
xor eax, eax
jmp 0x18002e1fa
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x18002e1fa
call qword [sym.imp.KERNEL32.dll_GetACP]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x18002e20c
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov ebp, edx
mov dword [rax + 8], ebx
mov edi, ecx
call fcn.180022a38
mov ecx, edi
lea r9d, [rbx + 2]
and ecx, 0x3ff
lea r8, [rsp + 0x30]
bts ecx, 0xa
mov edx, 0x20000001
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x18002e2af
cmp edi, dword [rsp + 0x30]
je 0x18002e2a8
test ebp, ebp
je 0x18002e2a8
mov r9, qword [rsi + 0x98]
mov r8d, ebx
movzx edx, word [r9]
lea rcx, [r9 + 2]
lea eax, [rdx - 0x41]
cmp ax, 0x19
jbe 0x18002e284
sub dx, 0x61
cmp dx, 0x19
ja 0x18002e290
movzx edx, word [rcx]
inc r8d
add rcx, 2
jmp 0x18002e271
or rax, 0xffffffffffffffff
inc rax
cmp word [r9 + rax*2], bx
jne 0x18002e294
cmp r8d, eax
setne bl
mov eax, ebx
jmp 0x18002e2b1
mov eax, 1
jmp 0x18002e2b1
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret