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

Disassembly:
sub rsp, 0x5b8
mov rcx, qword [0x00528478]
call fcn.004b6ae0
test rax, rax
je 0x4a7e15
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.004b7200
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.004a8900
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 0x4a7e9e
test ebx, ebx
jne 0x4a7e9e
lea ecx, [rax + 2]
call fcn.004b7200
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 0x4ace40
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x30
mov rbp, rcx
mov rcx, qword [0x005284a0]
call fcn.004b6ae0
test rbp, rbp
mov rdi, rax
jne 0x4ace8e
call fcn.004b2620
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbp
mov dword [rax], 0x16
call fcn.004a7cd0
lea eax, [rbp + 0x16]
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
test rax, rax
mov qword [rsp + 0x40], rbx
mov dword [rbp], 0
mov qword [rsp + 0x48], r12
jne 0x4acf5d
lea rcx, str.ADVAPI32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov r12, rax
jne 0x4acee6
call fcn.004b2620
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], r12
mov dword [rax], 0x16
call fcn.004a7cd0
lea eax, [r12 + 0x16]
jmp 0x4acf81
lea rdx, [0x004f9cc0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov rdi, rax
jne 0x4acf38
call fcn.004b2620
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.004b25d0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
mov dword [rbx], eax
call fcn.004a7cd0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.004b25d0
jmp 0x4acf81
mov rcx, rax
call fcn.004b6920
mov rbx, rax
call fcn.004b69f0
xchg qword [0x005284a0], rbx
cmp rbx, rax
je 0x4acf5d
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, 4
mov rcx, rbp
call rdi
test eax, eax
jne 0x4acf7f
call fcn.004b2620
mov dword [rax], 0xc
call fcn.004b2620
mov eax, dword [rax]
jmp 0x4acf81
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov r12, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x4afe90
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4afeb7
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4afeb7
mov ecx, eax
call fcn.004b2680
or eax, 0xffffffff
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret
Function at 0x4b0950
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0xa0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
xor edx, edx
mov r8d, 0x94
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x4b09bd
cmp dword [0x00528580], 1
jne 0x4b099f
call fcn.006cb000
mov ecx, 0x12
call fcn.004b9770
mov ecx, 0xff
call fcn.004b5a90
mov eax, 0xff
jmp 0x4b0beb
mov dword [rax], 0x94
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x4b09ee
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, 0xff
jmp 0x4b0beb
mov r13d, dword [rbx + 0x10]
mov esi, dword [rbx + 4]
mov r12d, dword [rbx + 8]
mov edi, dword [rbx + 0xc]
and edi, 0x7fff
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp r13d, 2
je 0x4b0a20
bts edi, 0xf
mov eax, esi
shl eax, 8
add eax, r12d
mov dword [0x00528594], r13d
mov dword [0x0052859c], eax
mov dword [0x005285a0], esi
mov dword [0x005285a4], r12d
mov dword [0x00528598], edi
cmp word [0x00400000], 0x5a4d
jne 0x4b0ab2
movsxd rax, dword [0x0040003c]
lea rdi, [0x00400000]
add rax, rdi
cmp dword [rax], 0x4550
je 0x4b0a77
xor ebx, ebx
mov dword [rsp + 0xc0], ebx
jmp 0x4b0ac2
cmp word [rax + 0x18], 0x20b
je 0x4b0a8a
xor ebx, ebx
mov dword [rsp + 0xc0], ebx
jmp 0x4b0ac2
cmp dword [rax + 0x84], 0xe
ja 0x4b0a9e
xor ebx, ebx
mov dword [rsp + 0xc0], ebx
jmp 0x4b0ac2
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0xc0], ebx
jmp 0x4b0ac2
xor ebx, ebx
mov dword [rsp + 0xc0], ebx
lea rdi, [0x00400000]
mov ecx, 1
call fcn.004bf3e0
test eax, eax
jne 0x4b0af2
cmp dword [0x00528580], 1
jne 0x4b0ade
call fcn.004b99b0
mov ecx, 0x1c
call fcn.004b9770
mov ecx, 0xff
call fcn.004b5a90
call fcn.004b6fe0
test eax, eax
jne 0x4b0b1d
cmp dword [0x00528580], 1
jne 0x4b0b09
call fcn.004b99b0
mov ecx, 0x10
call fcn.004b9770
mov ecx, 0xff
call fcn.004b5a90
call fcn.004c6af0
nop
call fcn.004c0e00
test eax, eax
jns 0x4b0b36
mov ecx, 0x1b
call fcn.004b5a60
call fcn.004c69d0
mov qword [0x0052a6c8], rax
call fcn.004c5be0
mov qword [0x00528578], rax
call fcn.004c6760
test eax, eax
jns 0x4b0b61
mov ecx, 8
call fcn.004b5a60
call fcn.004c5a70
test eax, eax
jns 0x4b0b74
mov ecx, 9
call fcn.004b5a60
mov ecx, 1
call fcn.004b5bd0
test eax, eax
je 0x4b0b89
mov ecx, eax
call fcn.004b5a60
call fcn.004c6540
test byte [rsp + 0x6c], 1
je 0x4b0b9d
movzx r9d, word [rsp + 0x70]
jmp 0x4b0ba3
mov r9d, 0xa
mov r8, rax
xor edx, edx
mov rcx, rdi
call fcn.00468110
mov edi, eax
mov dword [rsp + 0x20], eax
test ebx, ebx
jne 0x4b0bc1
mov ecx, eax
call fcn.004b5de0
call fcn.004b5e00
jmp 0x4b0be2
mov eax, edi
jmp 0x4b0beb
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
sub rsp, 0x28
call fcn.004c6b70
add rsp, 0x28
jmp 0x4b0950
Function at 0x4b6877
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x00522be8]
jne 0x4a711a
rol rcx, 0x10
test cx, 0xffff
jne 0x4a7116
repz ret
ror rcx, 0x10
jmp 0x4b67d0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x005286b0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x005287a8]
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 0x4b6855
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, [0x005286b0]
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 0x4b6877
mov rax, qword [rsp + 0x88]
mov qword [0x005287a8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x00528748], rax
mov rax, qword [0x005287a8]
mov qword [0x00528620], rax
mov rax, qword [rsp + 0x90]
mov qword [0x00528730], rax
mov dword [0x00528610], 0xc0000409
mov dword [0x00528614], 1
mov rax, qword [0x00522be8]
mov qword [rsp + 0x68], rax
mov rax, qword [0x00522bf0]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x005286a8], eax
mov ecx, 1
call fcn.004b7200
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x004faf58]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x005286a8], 0
jne 0x4b68fe
mov ecx, 1
call fcn.004b7200
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 0x4b9770
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 0x4b97ae
add ebx, 1
add rax, 0x10
cmp ebx, 0x17
jb 0x4b9790
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
cmp ebx, 0x17
jae 0x4b9995
mov ecx, 3
call fcn.004cafd0
cmp eax, 1
je 0x4b994c
mov ecx, 3
call fcn.004cafd0
test eax, eax
jne 0x4b97e5
cmp dword [reloc.OLEAUT32.dll_SysReAllocString], 1
je 0x4b994c
cmp edi, 0xfc
je 0x4b9995
mov qword [rsp + 0x50], rbp
lea rbp, [0x00528b90]
lea r8, str.Runtime_Error__n_nProgram:
mov rcx, rbp
mov edx, 0x314
call fcn.004b7150
test eax, eax
je 0x4b9829
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.004a7bf0
lea rdx, [0x00528ba9]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x00528cad], sil
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4b9879
lea r8, str._program_name_unknown_
lea rcx, [0x00528ba9]
mov edx, 0x2fb
call fcn.004b7150
test eax, eax
je 0x4b9879
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.004a7bf0
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [0x00528ba9]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 0x3c
jbe 0x4b98c8
lea rcx, [rcx + rbp - 0x23]
lea rdx, [0x00528ea4]
lea r9d, [rax + 3]
lea r8, [0x004fb544]
sub rdx, rcx
call fcn.004c5630
test eax, eax
je 0x4b98c8
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.004a7bf0
lea r8, [0x004fb540]
mov edx, 0x314
mov rcx, rbp
call fcn.004c8360
test eax, eax
je 0x4b98f4
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.004a7bf0
movsxd r8, ebx
mov edx, 0x314
mov rcx, rbp
add r8, r8
mov r8, qword [r12 + r8*8 + 8]
call fcn.004c8360
test eax, eax
je 0x4b9924
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.004a7bf0
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbp
call fcn.004cad70
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 0x4b9995
cmp rax, 0xffffffffffffffff
je 0x4b9995
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 0x4b99b0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov ecx, 3
call fcn.004cafd0
cmp eax, 1
je 0x4b99e2
mov ecx, 3
call fcn.004cafd0
test eax, eax
jne 0x4b9a96
cmp dword [reloc.OLEAUT32.dll_SysReAllocString], 1
jne 0x4b9a96
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 0x4b9a0e
add edi, 1
add rax, 0x10
cmp edi, 0x17
jb 0x4b99f8
jmp 0x4b9a82
cmp edi, 0x17
jae 0x4b9a82
mov ecx, 3
call fcn.004cafd0
cmp eax, 1
je 0x4b9a39
mov ecx, 3
call fcn.004cafd0
test eax, eax
jne 0x4b9a82
cmp dword [reloc.OLEAUT32.dll_SysReAllocString], 1
jne 0x4b9a82
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x4b9a82
cmp rax, 0xffffffffffffffff
je 0x4b9a82
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.004b9770
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret
Function at 0x4c5be0
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 [0x00529150]
xor r12d, r12d
test eax, eax
mov ebp, r12d
jne 0x4c5c3c
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x4c5c1c
mov dword [0x00529150], 1
jmp 0x4c5c4f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4c5c36
mov dword [0x00529150], 2
jmp 0x4c5cb9
mov eax, dword [0x00529150]
cmp eax, 1
jne 0x4c5cb0
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x4c5c8a
cmp word [rdi], bp
mov rax, rdi
je 0x4c5c69
add rax, 2
cmp word [rax], bp
jne 0x4c5c57
add rax, 2
cmp word [rax], bp
jne 0x4c5c57
sub eax, edi
add eax, 2
movsxd rsi, eax
mov rcx, rsi
call fcn.004b23a0
test rax, rax
mov rbx, rax
jne 0x4c5c91
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4c5dab
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call fcn.004aaf50
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbx
jmp 0x4c5dab
cmp eax, 2
je 0x4c5cb9
test eax, eax
jne 0x4c5c8a
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test rax, rax
mov rsi, rax
je 0x4c5c8a
cmp byte [rax], bpl
mov rbx, rax
je 0x4c5d08
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 0x4c5c8a
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 0x4c5cd0
add ebp, 1
mov edx, 2
movsxd rcx, ebp
call fcn.004b2410
test rax, rax
mov r12, rax
jne 0x4c5d2d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
jmp 0x4c5dab
cmp byte [rsi], 0
mov qword [rsp + 0x50], r13
mov rbx, rax
mov r13, rsi
je 0x4c5d95
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 0x4c5dbe
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 0x4c5d40
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.004ab2d0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
jmp 0x4c5da6
Function at 0x4c6c30
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x38
mov rax, qword [0x00522be8]
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 0x4c6c77
or eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.004a7100
add rsp, 0x38
ret
lea rcx, [rsp + 0x20]
call fcn.004c5620
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.004a7100
add rsp, 0x38
ret

Function at 0x4c8540
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0xb0
mov rax, qword [0x00522be8]
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 0x4c8629
movzx ecx, byte [rsp + 0x20]
xor edx, edx
mov qword [rsp + 0xc8], rdi
test cl, cl
lea r8, [rsp + 0x20]
mov edi, edx
je 0x4c85da
nop
lea eax, [rcx - 0x61]
add r8, 1
cmp al, 5
ja 0x4c85c0
add cl, 0xd9
jmp 0x4c85ca
lea eax, [rcx - 0x41]
cmp al, 5
ja 0x4c85ca
add cl, 0xf9
movsx eax, cl
mov cl, byte [r8]
add edi, edi
test cl, cl
lea edi, [rax + rdi*8 - 0x30]
jne 0x4c85b0
cmp esi, edi
je 0x4c861c
test ebx, ebx
je 0x4c861c
mov rdi, qword [rbp]
movzx eax, byte [rdi]
lea rcx, [rdi + 1]
nop
cmp al, 0x41
jl 0x4c85f8
cmp al, 0x5a
jle 0x4c85fe
sub al, 0x61
cmp al, 0x19
ja 0x4c8609
mov al, byte [rcx]
add edx, 1
add rcx, 1
jmp 0x4c85f0
or rcx, 0xffffffffffffffff
xor eax, eax
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
cmp edx, ecx
je 0x4c8621
mov eax, 1
mov rdi, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.004a7100
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rsi
ret
Function at 0x4cad70
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.004b69f0
xor ebx, ebx
cmp qword [0x00529420], rbx
mov rbp, rax
mov dword [rsp + 0x98], ebx
mov dword [rsp + 0x30], ebx
jne 0x4cae9c
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x4cafaf
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x4cafaf
mov rcx, rax
call fcn.004b6920
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x00529420], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.004b6920
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x00529428], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.004b6920
lea rcx, [rsp + 0x98]
mov qword [0x00529430], rax
call fcn.004b5b30
test eax, eax
je 0x4cae4f
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.004a7bf0
cmp dword [rsp + 0x98], 2
jne 0x4cae9c
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.004b6920
test rax, rax
mov qword [0x00529440], rax
je 0x4cae9c
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.004b6920
mov qword [0x00529438], rax
mov rcx, qword [0x00529438]
mov qword [rsp + 0x80], r12
cmp rcx, rbp
je 0x4caf48
cmp qword [0x00529440], rbp
je 0x4caf48
call fcn.004b6ae0
mov rcx, qword [0x00529440]
mov rsi, rax
call fcn.004b6ae0
test rsi, rsi
mov r12, rax
je 0x4caf48
test rax, rax
je 0x4caf48
call rsi
test rax, rax
je 0x4caf13
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 0x4caf13
test byte [rsp + 0x40], 1
jne 0x4caf48
lea rcx, [rsp + 0x30]
call fcn.004b5b80
test eax, eax
je 0x4caf35
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.004a7bf0
cmp dword [rsp + 0x30], 4
jb 0x4caf42
bts edi, 0x15
jmp 0x4caf86
bts edi, 0x12
jmp 0x4caf86
mov rcx, qword [0x00529428]
cmp rcx, rbp
je 0x4caf86
call fcn.004b6ae0
test rax, rax
je 0x4caf86
call rax
test rax, rax
mov rbx, rax
je 0x4caf86
mov rcx, qword [0x00529430]
cmp rcx, rbp
je 0x4caf86
call fcn.004b6ae0
test rax, rax
je 0x4caf86
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x00529420]
call fcn.004b6ae0
mov r12, qword [rsp + 0x80]
test rax, rax
je 0x4cafaf
mov r9d, edi
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x4cafb1
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x4cb030
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 [0x00522be8]
xor rax, rbp
mov qword [rbp], rax
mov eax, dword [0x00529448]
mov r15, r9
mov r13d, r8d
test eax, eax
mov r14d, edx
mov rbx, rcx
jne 0x4cb0b1
lea edx, [rax + 1]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4cb094
mov dword [0x00529448], 1
jmp 0x4cb0b6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4cb0ab
mov dword [0x00529448], 2
jmp 0x4cb0db
mov eax, dword [0x00529448]
cmp eax, 1
jne 0x4cb0ce
mov r9d, dword [rbp + 0x60]
mov r8, r15
mov edx, r13d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x4cb1e2
cmp eax, 2
je 0x4cb0db
test eax, eax
jne 0x4cb1e0
mov esi, dword [rbp + 0x68]
xor edi, edi
test esi, esi
jne 0x4cb0ea
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 0x4cb1e0
jle 0x4cb1e0
xor edx, edx
mov rax, 0xffffffffffffffe0
mov rcx, r12
div r12
cmp rax, 1
jb 0x4cb1e0
add rcx, 0x10
cmp rcx, 0x400
ja 0x4cb168
lea rax, [rcx + 0xf]
cmp rax, rcx
ja 0x4cb146
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.004e39b0
sub rsp, rax
lea rbx, [rsp + 0x30]
test rbx, rbx
je 0x4cb1e0
mov dword [rbx], 0xcccc
jmp 0x4cb17b
call fcn.004ad5b0
test rax, rax
mov rbx, rax
je 0x4cb17f
mov dword [rax], 0xdddd
add rbx, 0x10
test rbx, rbx
je 0x4cb1e0
mov r9d, r12d
mov r8, rbx
mov edx, r13d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x4cb1ca
mov eax, dword [rbp + 0x60]
or r9d, 0xffffffff
mov r8, rbx
test eax, eax
lea edx, [r9 + 2]
mov ecx, esi
jne 0x4cb1b9
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
jmp 0x4cb1c2
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 0x4cb1dc
call fcn.004ab2d0
mov eax, edi
jmp 0x4cb1e2
xor eax, eax
mov rcx, qword [rbp]
xor rcx, rbp
call fcn.004a7100
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 0x4cb340
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 [0x00522be8]
xor rax, rbp
mov qword [rbp], rax
mov eax, dword [0x0052944c]
mov r15, r9
mov r13d, r8d
test eax, eax
mov r14d, edx
mov rbx, rcx
jne 0x4cb3f8
lea edx, [rax + 1]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4cb3a4
mov dword [0x0052944c], 1
jmp 0x4cb406
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4cb3f2
mov dword [0x0052944c], 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.004a7100
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 [0x0052944c]
cmp eax, 2
je 0x4cb3b9
test eax, eax
je 0x4cb3b9
cmp eax, 1
jne 0x4cb42e
mov esi, dword [rbp + 0x68]
xor edi, edi
test esi, esi
jne 0x4cb415
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 0x4cb432
xor eax, eax
jmp 0x4cb3cc
jle 0x4cb42e
xor edx, edx
mov rax, 0xffffffffffffffe0
div r12
cmp rax, 2
jb 0x4cb42e
lea rcx, [r12 + r12 + 0x10]
cmp rcx, 0x400
ja 0x4cb485
lea rax, [rcx + 0xf]
cmp rax, rcx
ja 0x4cb467
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.004e39b0
sub rsp, rax
lea rbx, [rsp + 0x40]
test rbx, rbx
je 0x4cb42e
mov dword [rbx], 0xcccc
jmp 0x4cb498
call fcn.004ad5b0
test rax, rax
mov rbx, rax
je 0x4cb49c
mov dword [rax], 0xdddd
add rbx, 0x10
test rbx, rbx
je 0x4cb42e
mov r9d, r12d
mov r8, rbx
mov edx, r13d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4cb4ef
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 0x4cb4de
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
jmp 0x4cb4e7
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 0x4cb501
call fcn.004ab2d0
mov eax, edi
jmp 0x4cb3cc