joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800683e0
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x100], 0
mov edi, edx
mov rbx, rcx
jne 0x18006844e
lea r8, str.K8ShellWorkEvent
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
test rax, rax
mov qword [rbx + 0x100], rax
je 0x18006847f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x180068472
mov rcx, qword [rbx + 0x100]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r8, str.K8ShellWorkEvent
xor edx, edx
mov ecx, 0x80100000
call qword [sym.imp.KERNEL32.dll_OpenMutexW]
mov qword [rbx + 0x100], rax
mov rcx, qword [rbx + 0x100]
test rcx, rcx
je 0x18006847f
mov edx, edi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
sete al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov al, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
xor al, al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1800710c0
Capabilities:
Resume thread

Disassembly:
push rbx
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbx, rcx
mov ecx, 8
call fcn.1800a2300
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1800710fa
mov r8, rbx
lea rdx, [0x180070bb0]
mov rcx, rax
call fcn.180006430
jmp 0x1800710fc
xor eax, eax
mov qword [rbx + 0xc0], rax
mov rcx, rax
add rsp, 0x30
pop rbx
jmp fcn.180006500
Function at 0x180077980
Capabilities:
Read .ini file

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x60
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rdi, rcx
mov qword [rcx + 0x20], 7
xor esi, esi
mov qword [rcx + 0x18], rsi
mov word [rcx + 8], si
mov qword [rcx + 0x48], 7
mov qword [rcx + 0x40], rsi
mov word [rcx + 0x30], si
mov qword [rcx + 0x70], 7
mov qword [rcx + 0x68], rsi
mov word [rcx + 0x58], si
mov qword [rcx + 0x98], 7
mov qword [rcx + 0x90], rsi
mov word [rcx + 0x80], si
lea rbx, [rcx + 0xb8]
mov qword [rax + 0x10], rbx
mov qword [rbx], rsi
lea rcx, [rbx + 8]
call fcn.180030340
nop
lea rcx, [rbx + 0x20]
mov rdx, qword [str.GMUsersMutexV1]
call fcn.180030460
nop
mov qword [rdi + 0xe8], rsi
mov qword [rdi + 0xf0], rsi
lea rcx, [rdi + 0xf8]
call fcn.18000ad30
nop
mov qword [rdi + 0xa0], rsi
mov qword [rdi + 0x128], rsi
mov dword [rdi + 0x130], esi
mov word [rdi + 0xe0], si
mov word [rdi + 0xe2], si
mov word [rdi + 0xe4], si
mov word [rdi + 0xe6], si
mov dword [rdi + 0xb4], 0xfffffffe
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rdi + 0xf8]
call fcn.18000adb0
lea rcx, [rsp + 0x38]
call fcn.18007d1a0
cmp qword [rax + 0x20], 8
jb 0x180077a99
mov r9, qword [rax + 8]
jmp 0x180077a9d
lea r9, [rax + 8]
xor r8d, r8d
lea rdx, [0x1800cd488]
lea rcx, str.GUEST
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov r11d, eax
mov qword [rdi + 0xa8], r11
cmp qword [rsp + 0x58], 8
jb 0x180077ad0
mov rcx, qword [rsp + 0x40]
call fcn.1800a2030
mov byte [rdi + 0x144], 0
mov qword [rdi + 0x138], rsi
mov dword [rdi + 0x140], esi
mov rax, rdi
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1800a20f0
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 [0x180102560]
mov ebx, r9d
mov rdi, r8
mov rsi, rdx
call fcn.1800ad220
test rax, rax
je 0x1800a2144
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 0x1800a21d9
mov ecx, 2
call fcn.1800ad050
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.1800a3870
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 0x1800a21c5
test ebx, ebx
jne 0x1800a21c5
lea ecx, [rax + 2]
call fcn.1800ad050
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 0x1800a2200
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x5b8
mov rcx, qword [0x180102560]
call fcn.1800ad220
test rax, rax
je 0x1800a2235
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.1800ad050
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.1800a3870
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 0x1800a22be
test ebx, ebx
jne 0x1800a22be
lea ecx, [rax + 2]
call fcn.1800ad050
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 0x1800a3cf0
Capabilities:
Accept command line arguments

Disassembly:
push rbx
sub rsp, 0x20
cmp edx, 1
mov rbx, r8
jne 0x1800a3e57
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 0x1800a3d48
mov rcx, rax
mov dword [rax], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x1800a3d50
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 0x1800a3d95
bts edi, 0xf
mov eax, esi
mov ecx, 1
mov dword [0x1801025c4], r12d
shl eax, 8
mov dword [0x1801025d0], esi
mov dword [0x1801025d4], ebp
add eax, ebp
mov dword [0x1801025c8], edi
mov dword [0x1801025cc], eax
call fcn.1800ae100
mov r12, qword [rsp + 0x48]
test eax, eax
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
je 0x1800a3d48
call fcn.1800ad800
test eax, eax
je 0x1800a3e4a
call fcn.1800b00a0
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov qword [0x180104ca8], rax
call fcn.1800afed0
mov qword [0x180102590], rax
call fcn.1800af670
test eax, eax
js 0x1800a3e45
call fcn.1800afdc0
test eax, eax
js 0x1800a3e40
call fcn.1800afa30
test eax, eax
js 0x1800a3e40
xor ecx, ecx
call fcn.1800ac910
test eax, eax
jne 0x1800a3e40
add dword [0x180102588], 1
mov eax, 1
add rsp, 0x20
pop rbx
ret
call fcn.1800af9a0
call fcn.1800ad320
call fcn.1800ae160
xor eax, eax
add rsp, 0x20
pop rbx
ret
test edx, edx
jne 0x1800a3ea0
mov eax, dword [0x180102588]
test eax, eax
jle 0x1800a3d48
sub eax, 1
cmp dword [0x180102620], edx
mov dword [0x180102588], eax
jne 0x1800a3e7f
call fcn.1800acb30
test rbx, rbx
jne 0x1800a3f19
call fcn.1800af9a0
call fcn.1800ad320
call fcn.1800ae160
lea eax, [rbx + 1]
add rsp, 0x20
pop rbx
ret
cmp edx, 2
jne 0x1800a3f0d
call fcn.180095230
mov edx, 0x2d8
mov ecx, 1
call fcn.1800abf40
test rax, rax
mov rbx, rax
je 0x1800a3d48
mov ecx, dword [0x1800fce10]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_FlsSetValue]
test eax, eax
je 0x1800a3efd
xor edx, edx
mov rcx, rbx
call fcn.1800ad370
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.1800a3430
xor eax, eax
add rsp, 0x20
pop rbx
ret
cmp edx, 3
jne 0x1800a3f19
xor ecx, ecx
call fcn.1800ad7a0
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x1800a4c20
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 0x1800a4c6c
call fcn.1800a4830
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
mov dword [rax], 0x16
call fcn.1800a20f0
xor eax, eax
jmp 0x1800a4d12
mov qword [rsp + 0x50], rdi
call fcn.180095230
mov edx, 0x2d8
mov ecx, 1
call fcn.1800abf40
test rax, rax
mov rdi, rax
je 0x1800a4cf8
call fcn.1800ad590
mov rcx, rdi
mov rdx, qword [rax + 0xc0]
call fcn.1800ad370
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, [0x1800a4b80]
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 0x1800a4d0d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call fcn.1800a3430
test ebx, ebx
je 0x1800a4d0b
mov ecx, ebx
call fcn.1800a4890
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 0x1800add27
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1800fca30]
jne 0x1800a322a
rol rcx, 0x10
test cx, 0xffff
jne 0x1800a3226
repz ret
ror rcx, 0x10
jmp 0x1800adc80
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1801026f0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x1801027e8]
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 0x1800add05
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, [0x1801026f0]
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 0x1800add27
mov rax, qword [rsp + 0x88]
mov qword [0x1801027e8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x180102788], rax
mov rax, qword [0x1801027e8]
mov qword [0x180102660], rax
mov rax, qword [rsp + 0x90]
mov qword [0x180102770], rax
mov dword [0x180102650], 0xc0000409
mov dword [0x180102654], 1
mov rax, qword [0x1800fca30]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1800fca38]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1801026e8], eax
mov ecx, 1
call fcn.1800ad050
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1800d1d68]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1801026e8], 0
jne 0x1800addae
mov ecx, 1
call fcn.1800ad050
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 0x1800addd0
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 0x1800ade0e
add ebx, 1
add rax, 0x10
cmp ebx, 0x17
jb 0x1800addf0
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
cmp ebx, 0x17
jae 0x1800adff5
mov ecx, 3
call fcn.1800c1030
cmp eax, 1
je 0x1800adfac
mov ecx, 3
call fcn.1800c1030
test eax, eax
jne 0x1800ade45
cmp dword [0x1801025a0], 1
je 0x1800adfac
cmp edi, 0xfc
je 0x1800adff5
mov qword [rsp + 0x50], rbp
lea rbp, [0x180102bc0]
lea r8, str.Runtime_Error__n_nProgram:
mov rcx, rbp
mov edx, 0x314
call fcn.1800acf00
test eax, eax
je 0x1800ade89
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1800a2050
lea rdx, [0x180102bd9]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x180102cdd], sil
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1800aded9
lea r8, str._program_name_unknown_
lea rcx, [0x180102bd9]
mov edx, 0x2fb
call fcn.1800acf00
test eax, eax
je 0x1800aded9
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1800a2050
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [0x180102bd9]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 0x3c
jbe 0x1800adf28
lea rcx, [rcx + rbp - 0x23]
lea rdx, [0x180102ed4]
lea r9d, [rax + 3]
lea r8, [0x1800d2324]
sub rdx, rcx
call fcn.1800bf1c0
test eax, eax
je 0x1800adf28
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1800a2050
lea r8, [0x1800d2320]
mov edx, 0x314
mov rcx, rbp
call fcn.1800bf100
test eax, eax
je 0x1800adf54
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1800a2050
movsxd r8, ebx
mov edx, 0x314
mov rcx, rbp
add r8, r8
mov r8, qword [r12 + r8*8 + 8]
call fcn.1800bf100
test eax, eax
je 0x1800adf84
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1800a2050
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbp
call fcn.1800c0dd0
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 0x1800adff5
cmp rax, 0xffffffffffffffff
je 0x1800adff5
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 0x1800ae010
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov ecx, 3
call fcn.1800c1030
cmp eax, 1
je 0x1800ae042
mov ecx, 3
call fcn.1800c1030
test eax, eax
jne 0x1800ae0f6
cmp dword [0x1801025a0], 1
jne 0x1800ae0f6
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 0x1800ae06e
add edi, 1
add rax, 0x10
cmp edi, 0x17
jb 0x1800ae058
jmp 0x1800ae0e2
cmp edi, 0x17
jae 0x1800ae0e2
mov ecx, 3
call fcn.1800c1030
cmp eax, 1
je 0x1800ae099
mov ecx, 3
call fcn.1800c1030
test eax, eax
jne 0x1800ae0e2
cmp dword [0x1801025a0], 1
jne 0x1800ae0e2
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x1800ae0e2
cmp rax, 0xffffffffffffffff
je 0x1800ae0e2
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.1800addd0
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret
Function at 0x1800afed0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov eax, dword [0x180103008]
test eax, eax
jne 0x1800aff23
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x1800aff03
mov dword [0x180103008], 1
jmp 0x1800aff3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1800aff1d
mov dword [0x180103008], 2
jmp 0x1800b0019
mov eax, dword [0x180103008]
cmp eax, 1
jne 0x1800b0010
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x1800b0063
cmp word [rdi], 0
mov qword [rsp + 0x50], rbp
mov rbx, rdi
mov qword [rsp + 0x58], r12
je 0x1800aff65
add rbx, 2
cmp word [rbx], 0
jne 0x1800aff51
add rbx, 2
cmp word [rbx], 0
jne 0x1800aff51
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 0x1800b0003
mov rcx, rbp
call fcn.1800abed0
test rax, rax
mov rsi, rax
je 0x1800b0003
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 0x1800affdd
mov rcx, rsi
call fcn.1800a3430
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 0x1800affe9
cmp eax, 2
je 0x1800b0019
test eax, eax
jne 0x1800b0063
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test rax, rax
mov rbx, rax
je 0x1800b0063
cmp byte [rax], 0
je 0x1800b0042
nop
add rax, 1
cmp byte [rax], 0
jne 0x1800b0030
add rax, 1
cmp byte [rax], 0
jne 0x1800b0030
sub eax, ebx
add eax, 1
movsxd rsi, eax
mov rcx, rsi
call fcn.1800abed0
test rax, rax
mov rdi, rax
jne 0x1800b0075
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.1800a2480
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 0x1800bf400
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0xb0
mov rax, qword [0x1800fca30]
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 0x1800bf4e9
movzx ecx, byte [rsp + 0x20]
xor edx, edx
mov qword [rsp + 0xc8], rdi
test cl, cl
lea r8, [rsp + 0x20]
mov edi, edx
je 0x1800bf49a
nop
lea eax, [rcx - 0x61]
add r8, 1
cmp al, 5
ja 0x1800bf480
add cl, 0xd9
jmp 0x1800bf48a
lea eax, [rcx - 0x41]
cmp al, 5
ja 0x1800bf48a
add cl, 0xf9
movsx eax, cl
mov cl, byte [r8]
add edi, edi
test cl, cl
lea edi, [rax + rdi*8 - 0x30]
jne 0x1800bf470
cmp esi, edi
je 0x1800bf4dc
test ebx, ebx
je 0x1800bf4dc
mov rdi, qword [rbp]
movzx eax, byte [rdi]
lea rcx, [rdi + 1]
nop
cmp al, 0x41
jl 0x1800bf4b8
cmp al, 0x5a
jle 0x1800bf4be
sub al, 0x61
cmp al, 0x19
ja 0x1800bf4c9
mov al, byte [rcx]
add edx, 1
add rcx, 1
jmp 0x1800bf4b0
or rcx, 0xffffffffffffffff
xor eax, eax
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
cmp edx, ecx
je 0x1800bf4e1
mov eax, 1
mov rdi, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1800a3210
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rsi
ret
Function at 0x1800c0230
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1800fca30]
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 0x1800c0277
or eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1800a3210
add rsp, 0x38
ret
lea rcx, [rsp + 0x20]
call fcn.1800a7650
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1800a3210
add rsp, 0x38
ret
Function at 0x1800c0dd0
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.1800ad130
xor ebx, ebx
cmp qword [0x180103410], rbx
mov rbp, rax
mov dword [rsp + 0x98], ebx
mov dword [rsp + 0x30], ebx
jne 0x1800c0efc
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x1800c100f
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1800c100f
mov rcx, rax
call fcn.1800ad060
lea rdx, [0x1800d39f0]
mov rcx, rsi
mov qword [0x180103410], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1800ad060
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x180103418], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1800ad060
lea rcx, [rsp + 0x98]
mov qword [0x180103420], rax
call fcn.1800ac870
test eax, eax
je 0x1800c0eaf
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.1800a2050
cmp dword [rsp + 0x98], 2
jne 0x1800c0efc
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1800ad060
test rax, rax
mov qword [0x180103430], rax
je 0x1800c0efc
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1800ad060
mov qword [0x180103428], rax
mov rcx, qword [0x180103428]
mov qword [rsp + 0x80], r12
cmp rcx, rbp
je 0x1800c0fa8
cmp qword [0x180103430], rbp
je 0x1800c0fa8
call fcn.1800ad220
mov rcx, qword [0x180103430]
mov rsi, rax
call fcn.1800ad220
test rsi, rsi
mov r12, rax
je 0x1800c0fa8
test rax, rax
je 0x1800c0fa8
call rsi
test rax, rax
je 0x1800c0f73
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 0x1800c0f73
test byte [rsp + 0x40], 1
jne 0x1800c0fa8
lea rcx, [rsp + 0x30]
call fcn.1800ac8c0
test eax, eax
je 0x1800c0f95
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.1800a2050
cmp dword [rsp + 0x30], 4
jb 0x1800c0fa2
bts edi, 0x15
jmp 0x1800c0fe6
bts edi, 0x12
jmp 0x1800c0fe6
mov rcx, qword [0x180103418]
cmp rcx, rbp
je 0x1800c0fe6
call fcn.1800ad220
test rax, rax
je 0x1800c0fe6
call rax
test rax, rax
mov rbx, rax
je 0x1800c0fe6
mov rcx, qword [0x180103420]
cmp rcx, rbp
je 0x1800c0fe6
call fcn.1800ad220
test rax, rax
je 0x1800c0fe6
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x180103410]
call fcn.1800ad220
mov r12, qword [rsp + 0x80]
test rax, rax
je 0x1800c100f
mov r9d, edi
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x1800c1011
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret