joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18009aa30
Capabilities:
Accept command line arguments

Disassembly:
push rbx
sub rsp, 0x20
cmp edx, 1
mov rbx, r8
jne 0x18009ab97
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 0x18009aa88
mov rcx, rax
mov dword [rax], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x18009aa90
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 0x18009aad5
bts edi, 0xf
mov eax, esi
mov ecx, 1
mov dword [0x1800f5b74], r12d
shl eax, 8
mov dword [0x1800f5b80], esi
mov dword [0x1800f5b84], ebp
add eax, ebp
mov dword [0x1800f5b78], edi
mov dword [0x1800f5b7c], eax
call fcn.1800a3f60
mov r12, qword [rsp + 0x48]
test eax, eax
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
je 0x18009aa88
call fcn.1800a4b70
test eax, eax
je 0x18009ab8a
call fcn.1800a6d30
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov qword [0x1800f8168], rax
call fcn.1800a6b60
mov qword [0x1800f5b48], rax
call fcn.1800a6300
test eax, eax
js 0x18009ab85
call fcn.1800a6a50
test eax, eax
js 0x18009ab80
call fcn.1800a66c0
test eax, eax
js 0x18009ab80
xor ecx, ecx
call fcn.1800a0f90
test eax, eax
jne 0x18009ab80
add dword [0x1800f5b40], 1
mov eax, 1
add rsp, 0x20
pop rbx
ret
call fcn.1800a6630
call fcn.1800a4690
call fcn.1800a3fc0
xor eax, eax
add rsp, 0x20
pop rbx
ret
test edx, edx
jne 0x18009abe0
mov eax, dword [0x1800f5b40]
test eax, eax
jle 0x18009aa88
sub eax, 1
cmp dword [0x1800f5bd0], edx
mov dword [0x1800f5b40], eax
jne 0x18009abbf
call fcn.1800a11b0
test rbx, rbx
jne 0x18009ac59
call fcn.1800a6630
call fcn.1800a4690
call fcn.1800a3fc0
lea eax, [rbx + 1]
add rsp, 0x20
pop rbx
ret
cmp edx, 2
jne 0x18009ac4d
call fcn.1800342c0
mov edx, 0x2d8
mov ecx, 1
call fcn.1800a1ea0
test rax, rax
mov rbx, rax
je 0x18009aa88
mov ecx, dword [0x1800f0e94]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_FlsSetValue]
test eax, eax
je 0x18009ac3d
xor edx, edx
mov rcx, rbx
call fcn.1800a46e0
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.180098ad0
xor eax, eax
add rsp, 0x20
pop rbx
ret
cmp edx, 3
jne 0x18009ac59
xor ecx, ecx
call fcn.1800a4b10
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x18009cde0
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 0x18009ce2c
call fcn.18009b570
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
mov dword [rax], 0x16
call fcn.18009a670
xor eax, eax
jmp 0x18009ced2
mov qword [rsp + 0x50], rdi
call fcn.1800342c0
mov edx, 0x2d8
mov ecx, 1
call fcn.1800a1ea0
test rax, rax
mov rdi, rax
je 0x18009ceb8
call fcn.1800a4900
mov rcx, rdi
mov rdx, qword [rax + 0xc0]
call fcn.1800a46e0
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, [0x18009cd40]
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 0x18009cecd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call fcn.180098ad0
test ebx, ebx
je 0x18009cecb
mov ecx, ebx
call fcn.18009b5d0
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 0x1800a3c30
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 0x1800a3c6e
add ebx, 1
add rax, 0x10
cmp ebx, 0x17
jb 0x1800a3c50
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
cmp ebx, 0x17
jae 0x1800a3e55
mov ecx, 3
call fcn.1800b7cc0
cmp eax, 1
je 0x1800a3e0c
mov ecx, 3
call fcn.1800b7cc0
test eax, eax
jne 0x1800a3ca5
cmp dword [0x1800f5b58], 1
je 0x1800a3e0c
cmp edi, 0xfc
je 0x1800a3e55
mov qword [rsp + 0x50], rbp
lea rbp, [0x1800f5bf0]
lea r8, str.Runtime_Error__n_nProgram:
mov rcx, rbp
mov edx, 0x314
call fcn.1800a4d60
test eax, eax
je 0x1800a3ce9
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.18009a5d0
lea rdx, [0x1800f5c09]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x1800f5d0d], sil
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1800a3d39
lea r8, str._program_name_unknown_
lea rcx, [0x1800f5c09]
mov edx, 0x2fb
call fcn.1800a4d60
test eax, eax
je 0x1800a3d39
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.18009a5d0
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [0x1800f5c09]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 0x3c
jbe 0x1800a3d88
lea rcx, [rcx + rbp - 0x23]
lea rdx, [0x1800f5f04]
lea r9d, [rax + 3]
lea r8, [0x1800c7b84]
sub rdx, rcx
call fcn.1800b5e50
test eax, eax
je 0x1800a3d88
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.18009a5d0
lea r8, [0x1800c7b80]
mov edx, 0x314
mov rcx, rbp
call fcn.1800b5d90
test eax, eax
je 0x1800a3db4
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.18009a5d0
movsxd r8, ebx
mov edx, 0x314
mov rcx, rbp
add r8, r8
mov r8, qword [r12 + r8*8 + 8]
call fcn.1800b5d90
test eax, eax
je 0x1800a3de4
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.18009a5d0
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbp
call fcn.1800b7a60
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 0x1800a3e55
cmp rax, 0xffffffffffffffff
je 0x1800a3e55
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 0x1800a3e70
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov ecx, 3
call fcn.1800b7cc0
cmp eax, 1
je 0x1800a3ea2
mov ecx, 3
call fcn.1800b7cc0
test eax, eax
jne 0x1800a3f56
cmp dword [0x1800f5b58], 1
jne 0x1800a3f56
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 0x1800a3ece
add edi, 1
add rax, 0x10
cmp edi, 0x17
jb 0x1800a3eb8
jmp 0x1800a3f42
cmp edi, 0x17
jae 0x1800a3f42
mov ecx, 3
call fcn.1800b7cc0
cmp eax, 1
je 0x1800a3ef9
mov ecx, 3
call fcn.1800b7cc0
test eax, eax
jne 0x1800a3f42
cmp dword [0x1800f5b58], 1
jne 0x1800a3f42
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x1800a3f42
cmp rax, 0xffffffffffffffff
je 0x1800a3f42
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.1800a3c30
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret

Function at 0x1800a40e7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1800f0938]
jne 0x18009906a
rol rcx, 0x10
test cx, 0xffff
jne 0x180099066
repz ret
ror rcx, 0x10
jmp 0x1800a4040
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1800f5fc0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x1800f60b8]
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 0x1800a40c5
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, [0x1800f5fc0]
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 0x1800a40e7
mov rax, qword [rsp + 0x88]
mov qword [0x1800f60b8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1800f6058], rax
mov rax, qword [0x1800f60b8]
mov qword [0x1800f5f30], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1800f6040], rax
mov dword [0x1800f5f20], 0xc0000409
mov dword [0x1800f5f24], 1
mov rax, qword [0x1800f0938]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1800f0940]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1800f5fb8], eax
mov ecx, 1
call fcn.1800a5000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1800c7bc0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1800f5fb8], 0
jne 0x1800a416e
mov ecx, 1
call fcn.1800a5000
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 0x1800a6b60
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov eax, dword [0x1800f65b8]
test eax, eax
jne 0x1800a6bb3
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x1800a6b93
mov dword [0x1800f65b8], 1
jmp 0x1800a6bce
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1800a6bad
mov dword [0x1800f65b8], 2
jmp 0x1800a6ca9
mov eax, dword [0x1800f65b8]
cmp eax, 1
jne 0x1800a6ca0
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x1800a6cf3
cmp word [rdi], 0
mov qword [rsp + 0x50], rbp
mov rbx, rdi
mov qword [rsp + 0x58], r12
je 0x1800a6bf5
add rbx, 2
cmp word [rbx], 0
jne 0x1800a6be1
add rbx, 2
cmp word [rbx], 0
jne 0x1800a6be1
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 0x1800a6c93
mov rcx, rbp
call fcn.1800a1e30
test rax, rax
mov rsi, rax
je 0x1800a6c93
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 0x1800a6c6d
mov rcx, rsi
call fcn.180098ad0
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 0x1800a6c79
cmp eax, 2
je 0x1800a6ca9
test eax, eax
jne 0x1800a6cf3
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test rax, rax
mov rbx, rax
je 0x1800a6cf3
cmp byte [rax], 0
je 0x1800a6cd2
nop
add rax, 1
cmp byte [rax], 0
jne 0x1800a6cc0
add rax, 1
cmp byte [rax], 0
jne 0x1800a6cc0
sub eax, ebx
add eax, 1
movsxd rsi, eax
mov rcx, rsi
call fcn.1800a1e30
test rax, rax
mov rdi, rax
jne 0x1800a6d05
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.1800999d0
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 0x1800b6090
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0xb0
mov rax, qword [0x1800f0938]
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 0x1800b6179
movzx ecx, byte [rsp + 0x20]
xor edx, edx
mov qword [rsp + 0xc8], rdi
test cl, cl
lea r8, [rsp + 0x20]
mov edi, edx
je 0x1800b612a
nop
lea eax, [rcx - 0x61]
add r8, 1
cmp al, 5
ja 0x1800b6110
add cl, 0xd9
jmp 0x1800b611a
lea eax, [rcx - 0x41]
cmp al, 5
ja 0x1800b611a
add cl, 0xf9
movsx eax, cl
mov cl, byte [r8]
add edi, edi
test cl, cl
lea edi, [rax + rdi*8 - 0x30]
jne 0x1800b6100
cmp esi, edi
je 0x1800b616c
test ebx, ebx
je 0x1800b616c
mov rdi, qword [rbp]
movzx eax, byte [rdi]
lea rcx, [rdi + 1]
nop
cmp al, 0x41
jl 0x1800b6148
cmp al, 0x5a
jle 0x1800b614e
sub al, 0x61
cmp al, 0x19
ja 0x1800b6159
mov al, byte [rcx]
add edx, 1
add rcx, 1
jmp 0x1800b6140
or rcx, 0xffffffffffffffff
xor eax, eax
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
cmp edx, ecx
je 0x1800b6171
mov eax, 1
mov rdi, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.180099050
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rsi
ret
Function at 0x1800b7670
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1800f0938]
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 0x1800b76b7
or eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180099050
add rsp, 0x38
ret
lea rcx, [rsp + 0x20]
call fcn.18009e2e0
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180099050
add rsp, 0x38
ret
Function at 0x1800b7a60
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.1800a44a0
xor ebx, ebx
cmp qword [0x1800f69c0], rbx
mov rbp, rax
mov dword [rsp + 0x98], ebx
mov dword [rsp + 0x30], ebx
jne 0x1800b7b8c
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x1800b7c9f
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1800b7c9f
mov rcx, rax
call fcn.1800a43d0
lea rdx, [0x1800c92a0]
mov rcx, rsi
mov qword [0x1800f69c0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1800a43d0
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x1800f69c8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1800a43d0
lea rcx, [rsp + 0x98]
mov qword [0x1800f69d0], rax
call fcn.1800a0ef0
test eax, eax
je 0x1800b7b3f
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.18009a5d0
cmp dword [rsp + 0x98], 2
jne 0x1800b7b8c
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1800a43d0
test rax, rax
mov qword [0x1800f69e0], rax
je 0x1800b7b8c
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1800a43d0
mov qword [0x1800f69d8], rax
mov rcx, qword [0x1800f69d8]
mov qword [rsp + 0x80], r12
cmp rcx, rbp
je 0x1800b7c38
cmp qword [0x1800f69e0], rbp
je 0x1800b7c38
call fcn.1800a4590
mov rcx, qword [0x1800f69e0]
mov rsi, rax
call fcn.1800a4590
test rsi, rsi
mov r12, rax
je 0x1800b7c38
test rax, rax
je 0x1800b7c38
call rsi
test rax, rax
je 0x1800b7c03
lea rcx, [rsp + 0x34]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x1800b7c03
test byte [rsp + 0x40], 1
jne 0x1800b7c38
lea rcx, [rsp + 0x30]
call fcn.1800a0f40
test eax, eax
je 0x1800b7c25
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.18009a5d0
cmp dword [rsp + 0x30], 4
jb 0x1800b7c32
bts edi, 0x15
jmp 0x1800b7c76
bts edi, 0x12
jmp 0x1800b7c76
mov rcx, qword [0x1800f69c8]
cmp rcx, rbp
je 0x1800b7c76
call fcn.1800a4590
test rax, rax
je 0x1800b7c76
call rax
test rax, rax
mov rbx, rax
je 0x1800b7c76
mov rcx, qword [0x1800f69d0]
cmp rcx, rbp
je 0x1800b7c76
call fcn.1800a4590
test rax, rax
je 0x1800b7c76
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1800f69c0]
call fcn.1800a4590
mov r12, qword [rsp + 0x80]
test rax, rax
je 0x1800b7c9f
mov r9d, edi
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x1800b7ca1
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800b7d20
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 [0x1800f0938]
xor rax, rbp
mov qword [rbp], rax
mov eax, dword [0x1800f69e8]
mov r15, r9
mov r13d, r8d
test eax, eax
mov r14d, edx
mov rbx, rcx
jne 0x1800b7da1
lea edx, [rax + 1]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1800b7d84
mov dword [0x1800f69e8], 1
jmp 0x1800b7da6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1800b7d9b
mov dword [0x1800f69e8], 2
jmp 0x1800b7dcb
mov eax, dword [0x1800f69e8]
cmp eax, 1
jne 0x1800b7dbe
mov r9d, dword [rbp + 0x60]
mov r8, r15
mov edx, r13d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x1800b7ed2
cmp eax, 2
je 0x1800b7dcb
test eax, eax
jne 0x1800b7ed0
mov esi, dword [rbp + 0x68]
xor edi, edi
test esi, esi
jne 0x1800b7dda
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 0x1800b7ed0
jle 0x1800b7ed0
xor edx, edx
mov rax, 0xffffffffffffffe0
mov rcx, r12
div r12
cmp rax, 1
jb 0x1800b7ed0
add rcx, 0x10
cmp rcx, 0x400
ja 0x1800b7e58
lea rax, [rcx + 0xf]
cmp rax, rcx
ja 0x1800b7e36
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.1800bfef0
sub rsp, rax
lea rbx, [rsp + 0x30]
test rbx, rbx
je 0x1800b7ed0
mov dword [rbx], 0xcccc
jmp 0x1800b7e6b
call fcn.180098a00
test rax, rax
mov rbx, rax
je 0x1800b7e6f
mov dword [rax], 0xdddd
add rbx, 0x10
test rbx, rbx
je 0x1800b7ed0
mov r9d, r12d
mov r8, rbx
mov edx, r13d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x1800b7eba
mov eax, dword [rbp + 0x60]
or r9d, 0xffffffff
mov r8, rbx
test eax, eax
lea edx, [r9 + 2]
mov ecx, esi
jne 0x1800b7ea9
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
jmp 0x1800b7eb2
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 0x1800b7ecc
call fcn.180098ad0
mov eax, edi
jmp 0x1800b7ed2
xor eax, eax
mov rcx, qword [rbp]
xor rcx, rbp
call fcn.180099050
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
Function at 0x1800b8030
Capabilities:
Get geographical location

Disassembly:
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x50
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x40], rbx
mov qword [rbp + 0x48], rsi
mov qword [rbp + 0x50], rdi
mov rax, qword [0x1800f0938]
xor rax, rbp
mov qword [rbp], rax
mov eax, dword [0x1800f69ec]
mov r15, r9
mov r13d, r8d
test eax, eax
mov r14d, edx
mov rbx, rcx
jne 0x1800b80e8
lea edx, [rax + 1]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1800b8094
mov dword [0x1800f69ec], 1
jmp 0x1800b80f6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1800b80e2
mov dword [0x1800f69ec], 2
mov r9d, dword [rbp + 0x60]
mov r8, r15
mov edx, r13d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov rcx, qword [rbp]
xor rcx, rbp
call fcn.180099050
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
mov eax, dword [0x1800f69ec]
cmp eax, 2
je 0x1800b80a9
test eax, eax
je 0x1800b80a9
cmp eax, 1
jne 0x1800b811e
mov esi, dword [rbp + 0x68]
xor edi, edi
test esi, esi
jne 0x1800b8105
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_GetLocaleInfoW]
test eax, eax
movsxd r12, eax
jne 0x1800b8122
xor eax, eax
jmp 0x1800b80bc
jle 0x1800b811e
xor edx, edx
mov rax, 0xffffffffffffffe0
div r12
cmp rax, 2
jb 0x1800b811e
lea rcx, [r12 + r12 + 0x10]
cmp rcx, 0x400
ja 0x1800b8175
lea rax, [rcx + 0xf]
cmp rax, rcx
ja 0x1800b8157
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.1800bfef0
sub rsp, rax
lea rbx, [rsp + 0x40]
test rbx, rbx
je 0x1800b811e
mov dword [rbx], 0xcccc
jmp 0x1800b8188
call fcn.180098a00
test rax, rax
mov rbx, rax
je 0x1800b818c
mov dword [rax], 0xdddd
add rbx, 0x10
test rbx, rbx
je 0x1800b811e
mov r9d, r12d
mov r8, rbx
mov edx, r13d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1800b81df
mov eax, dword [rbp + 0x60]
or r9d, 0xffffffff
xor edx, edx
test eax, eax
mov qword [rsp + 0x38], rdi
mov r8, rbx
mov ecx, esi
mov qword [rsp + 0x30], rdi
jne 0x1800b81ce
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
jmp 0x1800b81d7
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
cmp dword [rbx - 0x10], 0xdddd
lea rcx, [rbx - 0x10]
jne 0x1800b81f1
call fcn.180098ad0
mov eax, edi
jmp 0x1800b80bc