joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002e034
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x280
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1400781a0]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], rdx
lea r8, [rsp + 0x30]
mov rdx, qword [rdx]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov ebx, eax
test eax, eax
jne 0x14002e133
mov r9d, 0x104
lea r8, [rsp + 0x60]
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov ebx, eax
test eax, eax
jne 0x14002e10a
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x28]
call fcn.140009c00
nop
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
call fcn.14002e034
mov ebx, eax
test eax, eax
setne byte [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14002e0f1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp byte [rsp + 0x20], 0
je 0x14002e0fa
jmp 0x14002e10a
jmp 0x14002e08a
cmp ebx, 0x103
je 0x14002e11a
cmp ebx, 0x3f2
jne 0x14002e128
mov rdx, qword [rsi]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140034e40
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x14002ee54
Capabilities:
Set thread local storage value

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 r12
push r13
push r14
sub rsp, 0x20
mov esi, 1
mov r14, r8
mov rdi, rdx
cmp dword [rdx + 0x10], esi
mov r12, rcx
mov ebp, esi
jle 0x14002eee1
lea ebx, [rsi + 7]
lea r13d, [rsi + 0xf]
test r14, r14
je 0x14002eead
mov rax, qword [r12 + 0x10]
cmp qword [rax + r13 + 8], r14
je 0x14002eead
mov rax, qword [rdi + 0x18]
cmp qword [rbx + rax], 0
je 0x14002eecd
xor esi, esi
jmp 0x14002eecd
mov rax, qword [rdi + 0x18]
mov rcx, qword [rbx + rax]
test rcx, rcx
je 0x14002eec4
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov rax, qword [rdi + 0x18]
and qword [rbx + rax], 0
add ebp, 1
add r13, 0x10
add rbx, 8
cmp ebp, dword [rdi + 0x10]
jl 0x14002ee8d
test esi, esi
je 0x14002ef28
lea rcx, [r12 + 0x28]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [r12 + 0x18]
mov rdx, rdi
call fcn.14002e974
lea rcx, [r12 + 0x28]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r11, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [r11]
mov ecx, dword [r12]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop r12
ret
Function at 0x14002f1ac
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x230
mov rax, qword [0x1400781a0]
xor rax, rsp
mov qword [rsp + 0x220], rax
test rcx, rcx
mov rbx, rdx
mov rdi, rcx
jne 0x14002f1e1
call fcn.14002b5b4
int3
test rdx, rdx
jne 0x14002f1ec
call fcn.14002b5b4
int3
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
and word [rsp + 0x20], 0
lea rcx, [rsp + 0x22]
xor edx, edx
mov r8d, 0x1fe
mov esi, eax
call fcn.140038800
mov r8d, pe_nt_image_headers64
cmp esi, r8d
ja 0x14002f23e
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, esi
jne 0x14002f23e
lea rcx, [rsp + 0x20]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x14002f24a
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.140034e40
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140037280
Capabilities:
Move file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x1400372a7
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1400372a7
mov ecx, eax
call fcn.1400362c0
or eax, 0xffffffff
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret

Function at 0x1400380a0
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 [0x14007ef00]
mov ebx, r9d
mov rdi, r8
mov rsi, rdx
call fcn.14003b6b0
test rax, rax
je 0x1400380f4
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 0x140038189
mov ecx, 2
call fcn.140046ba0
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.140038800
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 0x140038175
test ebx, ebx
jne 0x140038175
lea ecx, [rax + 2]
call fcn.140046ba0
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 0x1400381b0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x5b8
mov rcx, qword [0x14007ef00]
call fcn.14003b6b0
test rax, rax
je 0x1400381e5
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.140046ba0
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.140038800
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 0x14003826e
test ebx, ebx
jne 0x14003826e
lea ecx, [rax + 2]
call fcn.140046ba0
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 0x14003a2d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
sub rsp, 0x30
lea r12, [0x1400781c0]
xor esi, esi
mov edi, ecx
mov rax, r12
mov ebx, esi
nop
cmp ecx, dword [rax]
je 0x14003a30e
add ebx, 1
add rax, 0x10
cmp ebx, 0x17
jb 0x14003a2f0
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
cmp ebx, 0x17
jae 0x14003a4f5
mov ecx, 3
call fcn.14004b4c0
cmp eax, 1
je 0x14003a4ac
mov ecx, 3
call fcn.14004b4c0
test eax, eax
jne 0x14003a345
cmp dword [0x140077f88], 1
je 0x14003a4ac
cmp edi, 0xfc
je 0x14003a4f5
mov qword [rsp + 0x50], rbp
lea rbp, [0x14007ef80]
lea r8, str.Runtime_Error__n_nProgram:
mov rcx, rbp
mov edx, 0x314
call fcn.1400355a0
test eax, eax
je 0x14003a389
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140038000
lea rdx, [0x14007ef99]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x14007f09d], sil
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x14003a3d9
lea r8, str._program_name_unknown_
lea rcx, [0x14007ef99]
mov edx, 0x2fb
call fcn.1400355a0
test eax, eax
je 0x14003a3d9
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140038000
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [0x14007ef99]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 0x3c
jbe 0x14003a428
lea rcx, [rcx + rbp - 0x23]
lea rdx, [0x14007f294]
lea r9d, [rax + 3]
lea r8, [0x1400605c4]
sub rdx, rcx
call fcn.1400376b0
test eax, eax
je 0x14003a428
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140038000
lea r8, [0x1400605c0]
mov edx, 0x314
mov rcx, rbp
call fcn.140037c10
test eax, eax
je 0x14003a454
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140038000
movsxd r8, ebx
mov edx, 0x314
mov rcx, rbp
add r8, r8
mov r8, qword [r12 + r8*8 + 8]
call fcn.140037c10
test eax, eax
je 0x14003a484
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140038000
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbp
call fcn.14004b260
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 0x14003a4f5
cmp rax, 0xffffffffffffffff
je 0x14003a4f5
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 0x14003ae10
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov eax, dword [0x14007f4ac]
xor r12d, r12d
test eax, eax
mov ebp, r12d
jne 0x14003ae6c
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x14003ae4c
mov dword [0x14007f4ac], 1
jmp 0x14003ae7f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x14003ae66
mov dword [0x14007f4ac], 2
jmp 0x14003aee9
mov eax, dword [0x14007f4ac]
cmp eax, 1
jne 0x14003aee0
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x14003aeba
cmp word [rdi], bp
mov rax, rdi
je 0x14003ae99
add rax, 2
cmp word [rax], bp
jne 0x14003ae87
add rax, 2
cmp word [rax], bp
jne 0x14003ae87
sub eax, edi
add eax, 2
movsxd rsi, eax
mov rcx, rsi
call fcn.1400416d0
test rax, rax
mov rbx, rax
jne 0x14003aec1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x14003afdb
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call fcn.140039380
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbx
jmp 0x14003afdb
cmp eax, 2
je 0x14003aee9
test eax, eax
jne 0x14003aeba
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test rax, rax
mov rsi, rax
je 0x14003aeba
cmp byte [rax], bpl
mov rbx, rax
je 0x14003af38
nop
or r9d, 0xffffffff
mov r8, rbx
xor ecx, ecx
lea edx, [r9 + 2]
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x14003aeba
or rcx, 0xffffffffffffffff
add ebp, eax
mov rdi, rbx
xor eax, eax
repne scasb al, byte [rdi]
not rcx
add rbx, rcx
cmp byte [rbx], al
jne 0x14003af00
add ebp, 1
mov edx, 2
movsxd rcx, ebp
call fcn.140041740
test rax, rax
mov r12, rax
jne 0x14003af5d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
jmp 0x14003afdb
cmp byte [rsi], 0
mov qword [rsp + 0x50], r13
mov rbx, rax
mov r13, rsi
je 0x14003afc5
nop
or r9d, 0xffffffff
mov eax, ebp
mov rcx, rbx
sub rcx, r12
lea edx, [r9 + 2]
mov r8, r13
sar rcx, 1
sub eax, ecx
xor ecx, ecx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x14003afee
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r13
repne scasb al, byte [rdi]
mov rdi, rbx
not rcx
add r13, rcx
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
cmp byte [r13], al
not rcx
lea rbx, [rbx + rcx*2]
jne 0x14003af70
mov rcx, rsi
mov word [rbx], 0
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov rax, r12
mov r13, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
mov rcx, r12
call fcn.1400373d0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
jmp 0x14003afd6
Function at 0x14003e027
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1400781a0]
jne 0x140034e5a
rol rcx, 0x10
test cx, 0xffff
jne 0x140034e56
repz ret
ror rcx, 0x10
jmp 0x14003df80
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14007f560]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x14007f658]
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 0x14003e005
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, [0x14007f560]
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 0x14003e027
mov rax, qword [rsp + 0x88]
mov qword [0x14007f658], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14007f5f8], rax
mov rax, qword [0x14007f658]
mov qword [0x14007f4d0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14007f5e0], rax
mov dword [0x14007f4c0], 0xc0000409
mov dword [0x14007f4c4], 1
mov rax, qword [0x1400781a0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1400781a8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14007f558], eax
mov ecx, 1
call fcn.140046ba0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140060638]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14007f558], 0
jne 0x14003e0ae
mov ecx, 1
call fcn.140046ba0
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 0x140045d60
Capabilities:
Get common file path

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
push rdi
sub rsp, 0x140
mov rax, qword [0x1400781a0]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov qword [r11 + 8], rbp
lea rdx, [rsp + 0x20]
xor ebx, ebx
mov ecx, 0x105
mov qword [r11 + 0x10], rsi
lea rdi, [rsp + 0x20]
mov ebp, ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
cmp eax, 0x104
mov esi, eax
jle 0x140045df8
mov qword [rsp + 0x160], r12
lea r12d, [rax + 1]
lea edx, [rbx + 1]
movsxd rcx, r12d
call fcn.140041740
test rax, rax
mov rdi, rax
jne 0x140045dd9
call fcn.140036260
mov esi, ebx
mov dword [rax], reloc.OLEAUT32.dll_VariantTimeToDosDateTime
jmp 0x140045df0
test esi, esi
mov ebp, 1
je 0x140045df0
mov rdx, rax
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
mov r12, qword [rsp + 0x160]
test esi, esi
mov rsi, qword [rsp + 0x158]
je 0x140045e17
cmp byte [rdi + 1], 0x3a
jne 0x140045e22
movzx ecx, byte [rdi]
call fcn.140037fd0
lea ebx, [rax - 0x40]
jmp 0x140045e22
call fcn.140036260
mov dword [rax], reloc.OLEAUT32.dll_VariantTimeToDosDateTime
test ebp, ebp
mov rbp, qword [rsp + 0x150]
je 0x140045e36
mov rcx, rdi
call fcn.1400373d0
mov eax, ebx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140034e40
mov rbx, qword [rsp + 0x168]
add rsp, 0x140
pop rdi
ret
Function at 0x14004b260
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.14003b5c0
xor ebx, ebx
cmp qword [0x14007fe00], rbx
mov rbp, rax
mov dword [rsp + 0x98], ebx
mov dword [rsp + 0x30], ebx
jne 0x14004b38c
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x14004b49f
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14004b49f
mov rcx, rax
call fcn.14003b4f0
lea rdx, [0x140060a50]
mov rcx, rsi
mov qword [0x14007fe00], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.14003b4f0
lea rdx, [0x140060a38]
mov rcx, rsi
mov qword [0x14007fe08], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.14003b4f0
lea rcx, [rsp + 0x98]
mov qword [0x14007fe10], rax
call fcn.140039c40
test eax, eax
je 0x14004b33f
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.140038000
cmp dword [rsp + 0x98], 2
jne 0x14004b38c
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.14003b4f0
test rax, rax
mov qword [0x14007fe20], rax
je 0x14004b38c
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.14003b4f0
mov qword [0x14007fe18], rax
mov rcx, qword [0x14007fe18]
mov qword [rsp + 0x80], r12
cmp rcx, rbp
je 0x14004b438
cmp qword [0x14007fe20], rbp
je 0x14004b438
call fcn.14003b6b0
mov rcx, qword [0x14007fe20]
mov rsi, rax
call fcn.14003b6b0
test rsi, rsi
mov r12, rax
je 0x14004b438
test rax, rax
je 0x14004b438
call rsi
test rax, rax
je 0x14004b403
lea rcx, [rsp + 0x34]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14004b403
test byte [rsp + 0x40], 1
jne 0x14004b438
lea rcx, [rsp + 0x30]
call fcn.140039c90
test eax, eax
je 0x14004b425
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.140038000
cmp dword [rsp + 0x30], 4
jb 0x14004b432
bts edi, 0x15
jmp 0x14004b476
bts edi, 0x12
jmp 0x14004b476
mov rcx, qword [0x14007fe08]
cmp rcx, rbp
je 0x14004b476
call fcn.14003b6b0
test rax, rax
je 0x14004b476
call rax
test rax, rax
mov rbx, rax
je 0x14004b476
mov rcx, qword [0x14007fe10]
cmp rcx, rbp
je 0x14004b476
call fcn.14003b6b0
test rax, rax
je 0x14004b476
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14007fe00]
call fcn.14003b6b0
mov r12, qword [rsp + 0x80]
test rax, rax
je 0x14004b49f
mov r9d, edi
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x14004b4a1
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x14004e4f0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0xb0
mov rax, qword [0x1400781a0]
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 0x14004e5d9
movzx ecx, byte [rsp + 0x20]
xor edx, edx
mov qword [rsp + 0xc8], rdi
test cl, cl
lea r8, [rsp + 0x20]
mov edi, edx
je 0x14004e58a
nop
lea eax, [rcx - 0x61]
add r8, 1
cmp al, 5
ja 0x14004e570
add cl, 0xd9
jmp 0x14004e57a
lea eax, [rcx - 0x41]
cmp al, 5
ja 0x14004e57a
add cl, 0xf9
movsx eax, cl
mov cl, byte [r8]
add edi, edi
test cl, cl
lea edi, [rax + rdi*8 - 0x30]
jne 0x14004e560
cmp esi, edi
je 0x14004e5cc
test ebx, ebx
je 0x14004e5cc
mov rdi, qword [rbp]
movzx eax, byte [rdi]
lea rcx, [rdi + 1]
nop
cmp al, 0x41
jl 0x14004e5a8
cmp al, 0x5a
jle 0x14004e5ae
sub al, 0x61
cmp al, 0x19
ja 0x14004e5b9
mov al, byte [rcx]
add edx, 1
add rcx, 1
jmp 0x14004e5a0
or rcx, 0xffffffffffffffff
xor eax, eax
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
cmp edx, ecx
je 0x14004e5d1
mov eax, 1
mov rdi, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140034e40
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rsi
ret
Function at 0x1400524c0
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1400781a0]
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 0x140052507
or eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140034e40
add rsp, 0x38
ret
lea rcx, [rsp + 0x20]
call fcn.1400535e0
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140034e40
add rsp, 0x38
ret

Function at 0x1400529e0
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 [0x1400781a0]
xor rax, rbp
mov qword [rbp], rax
mov eax, dword [0x14007fea4]
mov r15, r9
mov r13d, r8d
test eax, eax
mov r14d, edx
mov rbx, rcx
jne 0x140052a61
lea edx, [rax + 1]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x140052a44
mov dword [0x14007fea4], 1
jmp 0x140052a66
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x140052a5b
mov dword [0x14007fea4], 2
jmp 0x140052a8b
mov eax, dword [0x14007fea4]
cmp eax, 1
jne 0x140052a7e
mov r9d, dword [rbp + 0x60]
mov r8, r15
mov edx, r13d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x140052b92
cmp eax, 2
je 0x140052a8b
test eax, eax
jne 0x140052b90
mov esi, dword [rbp + 0x68]
xor edi, edi
test esi, esi
jne 0x140052a9a
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 0x140052b90
jle 0x140052b90
xor edx, edx
mov rax, 0xffffffffffffffe0
mov rcx, r12
div r12
cmp rax, 1
jb 0x140052b90
add rcx, 0x10
cmp rcx, 0x400
ja 0x140052b18
lea rax, [rcx + 0xf]
cmp rax, rcx
ja 0x140052af6
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.14005a790
sub rsp, rax
lea rbx, [rsp + 0x30]
test rbx, rbx
je 0x140052b90
mov dword [rbx], 0xcccc
jmp 0x140052b2b
call fcn.140037420
test rax, rax
mov rbx, rax
je 0x140052b2f
mov dword [rax], 0xdddd
add rbx, 0x10
test rbx, rbx
je 0x140052b90
mov r9d, r12d
mov r8, rbx
mov edx, r13d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x140052b7a
mov eax, dword [rbp + 0x60]
or r9d, 0xffffffff
mov r8, rbx
test eax, eax
lea edx, [r9 + 2]
mov ecx, esi
jne 0x140052b69
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
jmp 0x140052b72
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 0x140052b8c
call fcn.1400373d0
mov eax, edi
jmp 0x140052b92
xor eax, eax
mov rcx, qword [rbp]
xor rcx, rbp
call fcn.140034e40
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