joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800876a0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x5b0
mov rbp, rcx
mov rcx, qword [0x1800f44e0]
mov ebx, r9d
mov rdi, r8
mov rsi, rdx
call fcn.180092ca0
test rax, rax
je 0x1800876f4
mov r10, qword [rsp + 0x5e0]
mov r9d, ebx
mov r8, rdi
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x20], r10
call rax
jmp 0x180087789
mov ecx, 2
call fcn.180092ad0
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.18008fd00
mov rax, qword [rsp + 0x5b8]
mov dword [rsp + 0x40], 0xc000000d
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x180087775
test ebx, ebx
jne 0x180087775
lea ecx, [rax + 2]
call fcn.180092ad0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc000000d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
lea r11, [rsp + 0x5b0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x1800877b0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x5b8
mov rcx, qword [0x1800f44e0]
call fcn.180092ca0
test rax, rax
je 0x1800877e5
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], 0
call rax
add rsp, 0x5b8
ret
mov ecx, 2
mov qword [rsp + 0x5b0], rbx
call fcn.180092ad0
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.18008fd00
mov rax, qword [rsp + 0x5b8]
mov dword [rsp + 0x40], 0xc000000d
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x18008786e
test ebx, ebx
jne 0x18008786e
lea ecx, [rax + 2]
call fcn.180092ad0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc000000d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rbx, qword [rsp + 0x5b0]
add rsp, 0x5b8
ret
Function at 0x180088130
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push r12
push r13
sub rsp, 0x30
xor ebx, ebx
test r8, r8
mov rbp, r9
mov rsi, r8
mov r12d, edx
mov r13, rcx
jne 0x18008817c
call fcn.18008d940
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
mov dword [rax], 0x16
call fcn.1800876a0
xor eax, eax
jmp 0x180088222
mov qword [rsp + 0x50], rdi
call fcn.1800065d0
mov edx, 0x2d8
mov ecx, 1
call fcn.18008d7d0
test rax, rax
mov rdi, rax
je 0x180088208
call fcn.180093010
mov rcx, rdi
mov rdx, qword [rax + 0xc0]
call fcn.180092df0
mov rcx, qword [rsp + 0x78]
mov eax, dword [rsp + 0x70]
test rcx, rcx
lea r8, [rsp + 0x60]
mov rdx, r12
cmovne r8, rcx
mov r9, rdi
mov rcx, r13
mov qword [rsp + 0x28], r8
lea r8, [0x180088090]
mov qword [rdi + 0x90], rsi
mov qword [rdi + 0x98], rbp
mov qword [rdi + 8], 0xffffffffffffffff
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
jne 0x18008821d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call fcn.180088bd0
test ebx, ebx
je 0x18008821b
mov ecx, ebx
call fcn.18008d9a0
xor eax, eax
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r13
pop r12
pop rsi
ret
Function at 0x18008a960
Capabilities:
Accept command line arguments

Disassembly:
push rbx
sub rsp, 0x20
cmp edx, 1
mov rbx, r8
jne 0x18008aac7
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov r8d, 0x94
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
je 0x18008a9b8
mov rcx, rax
mov dword [rax], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x18008a9c0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov qword [rsp + 0x30], rbp
mov ebp, dword [rbx + 8]
mov qword [rsp + 0x38], rsi
mov esi, dword [rbx + 4]
mov qword [rsp + 0x40], rdi
mov edi, dword [rbx + 0xc]
mov qword [rsp + 0x48], r12
mov r12d, dword [rbx + 0x10]
and edi, 0x7fff
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp r12d, 2
je 0x18008aa05
bts edi, 0xf
mov eax, esi
mov ecx, 1
mov dword [0x1800f455c], r12d
shl eax, 8
mov dword [0x1800f4568], esi
mov dword [0x1800f456c], ebp
add eax, ebp
mov dword [0x1800f4560], edi
mov dword [0x1800f4564], eax
call fcn.180096e90
mov r12, qword [rsp + 0x48]
test eax, eax
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
je 0x18008a9b8
call fcn.180093280
test eax, eax
je 0x18008aaba
call fcn.18009b480
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov qword [0x1800f5710], rax
call fcn.18009b2b0
mov qword [0x1800f4518], rax
call fcn.180096710
test eax, eax
js 0x18008aab5
call fcn.18009b1a0
test eax, eax
js 0x18008aab0
call fcn.18009ae10
test eax, eax
js 0x18008aab0
xor ecx, ecx
call fcn.180093650
test eax, eax
jne 0x18008aab0
add dword [0x1800f4510], 1
mov eax, 1
add rsp, 0x20
pop rbx
ret
call fcn.180096a50
call fcn.180092da0
call fcn.180096ef0
xor eax, eax
add rsp, 0x20
pop rbx
ret
test edx, edx
jne 0x18008ab10
mov eax, dword [0x1800f4510]
test eax, eax
jle 0x18008a9b8
sub eax, 1
cmp dword [0x1800f45b8], edx
mov dword [0x1800f4510], eax
jne 0x18008aaef
call fcn.180093870
test rbx, rbx
jne 0x18008ab89
call fcn.180096a50
call fcn.180092da0
call fcn.180096ef0
lea eax, [rbx + 1]
add rsp, 0x20
pop rbx
ret
cmp edx, 2
jne 0x18008ab7d
call fcn.1800065d0
mov edx, 0x2d8
mov ecx, 1
call fcn.18008d7d0
test rax, rax
mov rbx, rax
je 0x18008a9b8
mov ecx, dword [0x1800f18d0]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_FlsSetValue]
test eax, eax
je 0x18008ab6d
xor edx, edx
mov rcx, rbx
call fcn.180092df0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov qword [rbx + 8], 0xffffffffffffffff
mov dword [rbx], eax
mov eax, 1
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
call fcn.180088bd0
xor eax, eax
add rsp, 0x20
pop rbx
ret
cmp edx, 3
jne 0x18008ab89
xor ecx, ecx
call fcn.180093220
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x180093b57
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1800f18c0]
jne 0x180087cda
rol rcx, 0x10
test cx, 0xffff
jne 0x180087cd6
repz ret
ror rcx, 0x10
jmp 0x180093ab0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1800f4660]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x1800f4758]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x180093b35
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1800f4660]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x180093b57
mov rax, qword [rsp + 0x88]
mov qword [0x1800f4758], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1800f46f8], rax
mov rax, qword [0x1800f4758]
mov qword [0x1800f45d0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1800f46e0], rax
mov dword [0x1800f45c0], 0xc0000409
mov dword [0x1800f45c4], 1
mov rax, qword [0x1800f18c0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1800f18c8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1800f4658], eax
mov ecx, 1
call fcn.180092ad0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1800b9888]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1800f4658], 0
jne 0x180093bde
mov ecx, 1
call fcn.180092ad0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x180097bf0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
sub rsp, 0x30
lea r12, reloc.OLEAUT32.dll_SysReAllocString
xor esi, esi
mov edi, ecx
mov rax, r12
mov ebx, esi
nop
cmp ecx, dword [rax]
je 0x180097c2e
add ebx, 1
add rax, 0x10
cmp ebx, 0x17
jb 0x180097c10
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
cmp ebx, 0x17
jae 0x180097e15
mov ecx, 3
call fcn.1800a4330
cmp eax, 1
je 0x180097dcc
mov ecx, 3
call fcn.1800a4330
test eax, eax
jne 0x180097c65
cmp dword [0x1800f4528], 1
je 0x180097dcc
cmp edi, 0xfc
je 0x180097e15
mov qword [rsp + 0x50], rbp
lea rbp, [0x1800f4dc0]
lea r8, str.Runtime_Error__n_nProgram:
mov rcx, rbp
mov edx, 0x314
call fcn.180093c00
test eax, eax
je 0x180097ca9
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.180087600
lea rdx, [0x1800f4dd9]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x1800f4edd], sil
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x180097cf9
lea r8, str._program_name_unknown_
lea rcx, [0x1800f4dd9]
mov edx, 0x2fb
call fcn.180093c00
test eax, eax
je 0x180097cf9
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.180087600
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [0x1800f4dd9]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 0x3c
jbe 0x180097d48
lea rcx, [rcx + rbp - 0x23]
lea rdx, [0x1800f50d4]
lea r9d, [rax + 3]
lea r8, [0x1800b9ee4]
sub rdx, rcx
call fcn.18009cfe0
test eax, eax
je 0x180097d48
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.180087600
lea r8, [0x1800b9ee0]
mov edx, 0x314
mov rcx, rbp
call fcn.18009cf20
test eax, eax
je 0x180097d74
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.180087600
movsxd r8, ebx
mov edx, 0x314
mov rcx, rbp
add r8, r8
mov r8, qword [r12 + r8*8 + 8]
call fcn.18009cf20
test eax, eax
je 0x180097da4
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.180087600
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbp
call fcn.1800a40d0
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x180097e15
cmp rax, 0xffffffffffffffff
je 0x180097e15
xor eax, eax
movsxd rcx, ebx
lea r9, [rsp + 0x58]
add rcx, rcx
mov qword [rsp + 0x20], rsi
mov rdx, qword [r12 + rcx*8 + 8]
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x180097e30
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov ecx, 3
call fcn.1800a4330
cmp eax, 1
je 0x180097e62
mov ecx, 3
call fcn.1800a4330
test eax, eax
jne 0x180097f16
cmp dword [0x1800f4528], 1
jne 0x180097f16
mov qword [rsp + 0x48], rbx
lea rbx, reloc.OLEAUT32.dll_SysReAllocString
mov qword [rsp + 0x30], rdi
mov rax, rbx
xor edi, edi
cmp dword [rax], 0xfc
je 0x180097e8e
add edi, 1
add rax, 0x10
cmp edi, 0x17
jb 0x180097e78
jmp 0x180097f02
cmp edi, 0x17
jae 0x180097f02
mov ecx, 3
call fcn.1800a4330
cmp eax, 1
je 0x180097eb9
mov ecx, 3
call fcn.1800a4330
test eax, eax
jne 0x180097f02
cmp dword [0x1800f4528], 1
jne 0x180097f02
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x180097f02
cmp rax, 0xffffffffffffffff
je 0x180097f02
movsxd rcx, edi
xor eax, eax
lea r9, [rsp + 0x40]
add rcx, rcx
mov qword [rsp + 0x20], rax
mov rdx, qword [rbx + rcx*8 + 8]
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 0xff
call fcn.180097bf0
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret
Function at 0x18009b2b0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov eax, dword [0x1800f5228]
test eax, eax
jne 0x18009b303
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x18009b2e3
mov dword [0x1800f5228], 1
jmp 0x18009b31e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x18009b2fd
mov dword [0x1800f5228], 2
jmp 0x18009b3f9
mov eax, dword [0x1800f5228]
cmp eax, 1
jne 0x18009b3f0
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x18009b443
cmp word [rdi], 0
mov qword [rsp + 0x50], rbp
mov rbx, rdi
mov qword [rsp + 0x58], r12
je 0x18009b345
add rbx, 2
cmp word [rbx], 0
jne 0x18009b331
add rbx, 2
cmp word [rbx], 0
jne 0x18009b331
xor r12d, r12d
sub rbx, rdi
mov r8, rdi
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
sar rbx, 1
lea r9d, [rbx + 1]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
movsxd rbp, eax
je 0x18009b3e3
mov rcx, rbp
call fcn.18008d760
test rax, rax
mov rsi, rax
je 0x18009b3e3
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
lea r9d, [rbx + 1]
mov r8, rdi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x18009b3bd
mov rcx, rsi
call fcn.180088bd0
mov rsi, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbp, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x18009b3c9
cmp eax, 2
je 0x18009b3f9
test eax, eax
jne 0x18009b443
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test rax, rax
mov rbx, rax
je 0x18009b443
cmp byte [rax], 0
je 0x18009b422
nop
add rax, 1
cmp byte [rax], 0
jne 0x18009b410
add rax, 1
cmp byte [rax], 0
jne 0x18009b410
sub eax, ebx
add eax, 1
movsxd rsi, eax
mov rcx, rsi
call fcn.18008d760
test rax, rax
mov rdi, rax
jne 0x18009b455
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1800898c0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rax, rdi
add rsp, 0x40
pop rdi
ret

Function at 0x18009b800
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1800f18c0]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x20]
mov r9d, 6
mov edx, 0x1004
mov byte [rsp + 0x26], 0
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x18009b847
or eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180087cc0
add rsp, 0x38
ret
lea rcx, [rsp + 0x20]
call fcn.180089f40
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180087cc0
add rsp, 0x38
ret
Function at 0x18009d220
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0xb0
mov rax, qword [0x1800f18c0]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov esi, ecx
mov r9d, 0x78
and ecx, 0x3ff
mov rbp, r8
mov ebx, edx
lea edx, [r9 - 0x77]
lea r8, [rsp + 0x20]
bts ecx, 0xa
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x18009d309
movzx ecx, byte [rsp + 0x20]
xor edx, edx
mov qword [rsp + 0xc8], rdi
test cl, cl
lea r8, [rsp + 0x20]
mov edi, edx
je 0x18009d2ba
nop
lea eax, [rcx - 0x61]
add r8, 1
cmp al, 5
ja 0x18009d2a0
add cl, 0xd9
jmp 0x18009d2aa
lea eax, [rcx - 0x41]
cmp al, 5
ja 0x18009d2aa
add cl, 0xf9
movsx eax, cl
mov cl, byte [r8]
add edi, edi
test cl, cl
lea edi, [rax + rdi*8 - 0x30]
jne 0x18009d290
cmp esi, edi
je 0x18009d2fc
test ebx, ebx
je 0x18009d2fc
mov rdi, qword [rbp]
movzx eax, byte [rdi]
lea rcx, [rdi + 1]
nop
cmp al, 0x41
jl 0x18009d2d8
cmp al, 0x5a
jle 0x18009d2de
sub al, 0x61
cmp al, 0x19
ja 0x18009d2e9
mov al, byte [rcx]
add edx, 1
add rcx, 1
jmp 0x18009d2d0
or rcx, 0xffffffffffffffff
xor eax, eax
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
cmp edx, ecx
je 0x18009d301
mov eax, 1
mov rdi, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.180087cc0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rsi
ret
Function at 0x1800a40d0
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x50
mov edi, r8d
mov r13, rdx
mov r14, rcx
call fcn.180092bb0
xor ebx, ebx
cmp qword [0x1800f52c8], rbx
mov rbp, rax
mov dword [rsp + 0x98], ebx
mov dword [rsp + 0x30], ebx
jne 0x1800a41fc
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x1800a430f
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1800a430f
mov rcx, rax
call fcn.180092ae0
lea rdx, [0x1800bb5d8]
mov rcx, rsi
mov qword [0x1800f52c8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.180092ae0
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x1800f52d0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.180092ae0
lea rcx, [rsp + 0x98]
mov qword [0x1800f52d8], rax
call fcn.1800935b0
test eax, eax
je 0x1800a41af
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.180087600
cmp dword [rsp + 0x98], 2
jne 0x1800a41fc
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.180092ae0
test rax, rax
mov qword [0x1800f52e8], rax
je 0x1800a41fc
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.180092ae0
mov qword [0x1800f52e0], rax
mov rcx, qword [0x1800f52e0]
mov qword [rsp + 0x80], r12
cmp rcx, rbp
je 0x1800a42a8
cmp qword [0x1800f52e8], rbp
je 0x1800a42a8
call fcn.180092ca0
mov rcx, qword [0x1800f52e8]
mov rsi, rax
call fcn.180092ca0
test rsi, rsi
mov r12, rax
je 0x1800a42a8
test rax, rax
je 0x1800a42a8
call rsi
test rax, rax
je 0x1800a4273
lea rcx, [rsp + 0x34]
mov r9d, InitCommonControls
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x1800a4273
test byte [rsp + 0x40], 1
jne 0x1800a42a8
lea rcx, [rsp + 0x30]
call fcn.180093600
test eax, eax
je 0x1800a4295
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.180087600
cmp dword [rsp + 0x30], 4
jb 0x1800a42a2
bts edi, 0x15
jmp 0x1800a42e6
bts edi, 0x12
jmp 0x1800a42e6
mov rcx, qword [0x1800f52d0]
cmp rcx, rbp
je 0x1800a42e6
call fcn.180092ca0
test rax, rax
je 0x1800a42e6
call rax
test rax, rax
mov rbx, rax
je 0x1800a42e6
mov rcx, qword [0x1800f52d8]
cmp rcx, rbp
je 0x1800a42e6
call fcn.180092ca0
test rax, rax
je 0x1800a42e6
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1800f52c8]
call fcn.180092ca0
mov r12, qword [rsp + 0x80]
test rax, rax
je 0x1800a430f
mov r9d, edi
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x1800a4311
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800a4390
Capabilities:
Get geographical location

Disassembly:
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x40
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x40], rbx
mov qword [rbp + 0x48], rsi
mov qword [rbp + 0x50], rdi
mov rax, qword [0x1800f18c0]
xor rax, rbp
mov qword [rbp], rax
mov eax, dword [0x1800f52f0]
mov r15, r9
mov r13d, r8d
test eax, eax
mov r14d, edx
mov rbx, rcx
jne 0x1800a4411
lea edx, [rax + 1]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1800a43f4
mov dword [0x1800f52f0], 1
jmp 0x1800a4416
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1800a440b
mov dword [0x1800f52f0], 2
jmp 0x1800a443b
mov eax, dword [0x1800f52f0]
cmp eax, 1
jne 0x1800a442e
mov r9d, dword [rbp + 0x60]
mov r8, r15
mov edx, r13d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x1800a4542
cmp eax, 2
je 0x1800a443b
test eax, eax
jne 0x1800a4540
mov esi, dword [rbp + 0x68]
xor edi, edi
test esi, esi
jne 0x1800a444a
mov rax, qword [rbx]
mov esi, dword [rax + 4]
xor r9d, r9d
xor r8d, r8d
mov edx, r13d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
movsxd r12, eax
je 0x1800a4540
jle 0x1800a4540
xor edx, edx
mov rax, 0xffffffffffffffe0
mov rcx, r12
div r12
cmp rax, 1
jb 0x1800a4540
add rcx, 0x10
cmp rcx, 0x400
ja 0x1800a44c8
lea rax, [rcx + 0xf]
cmp rax, rcx
ja 0x1800a44a6
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.1800a85f0
sub rsp, rax
lea rbx, [rsp + 0x30]
test rbx, rbx
je 0x1800a4540
mov dword [rbx], 0xcccc
jmp 0x1800a44db
call fcn.180089300
test rax, rax
mov rbx, rax
je 0x1800a44df
mov dword [rax], 0xdddd
add rbx, 0x10
test rbx, rbx
je 0x1800a4540
mov r9d, r12d
mov r8, rbx
mov edx, r13d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x1800a452a
mov eax, dword [rbp + 0x60]
or r9d, 0xffffffff
mov r8, rbx
test eax, eax
lea edx, [r9 + 2]
mov ecx, esi
jne 0x1800a4519
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
jmp 0x1800a4522
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
cmp dword [rbx - 0x10], 0xdddd
lea rcx, [rbx - 0x10]
jne 0x1800a453c
call fcn.180088bd0
mov eax, edi
jmp 0x1800a4542
xor eax, eax
mov rcx, qword [rbp]
xor rcx, rbp
call fcn.180087cc0
mov rbx, qword [rbp + 0x40]
mov rsi, qword [rbp + 0x48]
mov rdi, qword [rbp + 0x50]
lea rsp, [rbp + 0x10]
pop r15
pop r14
pop r13
pop r12
pop rbp
ret