joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a1120
Capabilities:
Get system information on windows

Disassembly:
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0xb0
lea rbp, [rsp + 0x30]
mov qword [rbp + 0xb0], rbx
mov qword [rbp + 0xb8], rsi
mov qword [rbp + 0xc0], rdi
mov rax, qword [0x14012e6d8]
xor rax, rbp
mov qword [rbp + 0x70], rax
mov eax, dword [rsp]
xor ebx, ebx
mov dword [rbp], ebx
sub rsp, 0x10
lea r13, [rsp + 0x30]
mov eax, dword [r13]
lea r8d, [rbx + 0x30]
lea rdx, [rbp + 0x10]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400a128c
mov r14, qword [rbp + 0x18]
lea rcx, [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [rbp + 0x44]
lea rcx, [rbp]
call fcn.14009ddc0
test eax, eax
je 0x1400a11ba
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.1400a5e30
mov ecx, dword [rbp]
cmp ecx, 2
jne 0x1400a1202
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x1400a11ff
lea rdx, str.SetThreadStackGuarantee
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400a11ff
lea rcx, [rbp + 4]
mov dword [rbp + 4], ebx
call rax
cmp eax, 1
jne 0x1400a11ff
mov eax, dword [rbp + 4]
test eax, eax
cmovne ebx, eax
mov ecx, dword [rbp]
mov r15d, 1
lea r8d, [rdi - 1]
lea edx, [rbx + rdi - 1]
cmp ecx, r15d
mov eax, r8d
mov esi, 0x104
not eax
cmove esi, r15d
and edx, eax
je 0x1400a1227
add edx, edi
lea eax, [rdi + rdi]
mov ebx, r8d
cmp edx, eax
not rbx
cmovb edx, eax
and rbx, r13
mov eax, reloc.OLEAUT32.dll_SafeArrayGetElemsize
mov r12d, edx
sub rbx, r12
cmp ecx, r15d
cmove edi, eax
mov eax, edi
add rax, r14
cmp rbx, rax
jb 0x1400a128c
mov r9d, 4
mov r8d, 0x1000
mov rdx, r12
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x1400a128c
lea r9, [rbp + 8]
mov r8d, esi
mov rdx, r12
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1400a128c
mov eax, r15d
jmp 0x1400a128e
xor eax, eax
mov rcx, qword [rbp + 0x70]
xor rcx, rbp
call fcn.14009af10
mov rbx, qword [rbp + 0xb0]
mov rsi, qword [rbp + 0xb8]
mov rdi, qword [rbp + 0xc0]
lea rsp, [rbp + 0x80]
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x1400a1370
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 0x1400a13ae
add ebx, 1
add rax, 0x10
cmp ebx, 0x17
jb 0x1400a1390
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
cmp ebx, 0x17
jae 0x1400a1595
mov ecx, 3
call fcn.1400b6030
cmp eax, 1
je 0x1400a154c
mov ecx, 3
call fcn.1400b6030
test eax, eax
jne 0x1400a13e5
cmp dword [reloc.OLEAUT32.dll_SysReAllocString], 1
je 0x1400a154c
cmp edi, 0xfc
je 0x1400a1595
mov qword [rsp + 0x50], rbp
lea rbp, [0x14042a6d0]
lea r8, str.Runtime_Error__n_nProgram:
mov rcx, rbp
mov edx, 0x314
call fcn.1400b5f80
test eax, eax
je 0x1400a1429
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1400a5e30
lea rdx, [0x14042a6e9]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x14042a7ed], sil
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1400a1479
lea r8, str._program_name_unknown_
lea rcx, [0x14042a6e9]
mov edx, 0x2fb
call fcn.1400b5f80
test eax, eax
je 0x1400a1479
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1400a5e30
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [0x14042a6e9]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 0x3c
jbe 0x1400a14c8
lea rcx, [rcx + rbp - 0x23]
lea rdx, [0x14042a9e4]
lea r9d, [rax + 3]
lea r8, [0x1400fdeb4]
sub rdx, rcx
call fcn.1400b5e60
test eax, eax
je 0x1400a14c8
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1400a5e30
lea r8, [0x1400fdeb0]
mov edx, 0x314
mov rcx, rbp
call fcn.1400b5da0
test eax, eax
je 0x1400a14f4
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1400a5e30
movsxd r8, ebx
mov edx, 0x314
mov rcx, rbp
add r8, r8
mov r8, qword [r12 + r8*8 + 8]
call fcn.1400b5da0
test eax, eax
je 0x1400a1524
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1400a5e30
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbp
call fcn.1400b5b40
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 0x1400a1595
cmp rax, 0xffffffffffffffff
je 0x1400a1595
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 0x1400a15e0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov ecx, 3
call fcn.1400b6030
cmp eax, 1
je 0x1400a1612
mov ecx, 3
call fcn.1400b6030
test eax, eax
jne 0x1400a16c6
cmp dword [reloc.OLEAUT32.dll_SysReAllocString], 1
jne 0x1400a16c6
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 0x1400a163e
add edi, 1
add rax, 0x10
cmp edi, 0x17
jb 0x1400a1628
jmp 0x1400a16b2
cmp edi, 0x17
jae 0x1400a16b2
mov ecx, 3
call fcn.1400b6030
cmp eax, 1
je 0x1400a1669
mov ecx, 3
call fcn.1400b6030
test eax, eax
jne 0x1400a16b2
cmp dword [reloc.OLEAUT32.dll_SysReAllocString], 1
jne 0x1400a16b2
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x1400a16b2
cmp rax, 0xffffffffffffffff
je 0x1400a16b2
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.1400a1370
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret
Function at 0x1400a1f50
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 [0x14042abfc]
xor r12d, r12d
test eax, eax
mov ebp, r12d
jne 0x1400a1fac
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x1400a1f8c
mov dword [0x14042abfc], 1
jmp 0x1400a1fbf
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1400a1fa6
mov dword [0x14042abfc], 2
jmp 0x1400a2029
mov eax, dword [0x14042abfc]
cmp eax, 1
jne 0x1400a2020
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x1400a1ffa
cmp word [rdi], bp
mov rax, rdi
je 0x1400a1fd9
add rax, 2
cmp word [rax], bp
jne 0x1400a1fc7
add rax, 2
cmp word [rax], bp
jne 0x1400a1fc7
sub eax, edi
add eax, 2
movsxd rsi, eax
mov rcx, rsi
call fcn.1400a5bf0
test rax, rax
mov rbx, rax
jne 0x1400a2001
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1400a211b
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call fcn.14009c5e0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbx
jmp 0x1400a211b
cmp eax, 2
je 0x1400a2029
test eax, eax
jne 0x1400a1ffa
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test rax, rax
mov rsi, rax
je 0x1400a1ffa
cmp byte [rax], bpl
mov rbx, rax
je 0x1400a2078
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 0x1400a1ffa
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 0x1400a2040
add ebp, 1
mov edx, 2
movsxd rcx, ebp
call fcn.1400a5c60
test rax, rax
mov r12, rax
jne 0x1400a209d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
jmp 0x1400a211b
cmp byte [rsi], 0
mov qword [rsp + 0x50], r13
mov rbx, rax
mov r13, rsi
je 0x1400a2105
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 0x1400a212e
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 0x1400a20b0
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.14009db00
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
jmp 0x1400a2116
Function at 0x1400a5b07
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14012e6d8]
jne 0x14009af2a
rol rcx, 0x10
test cx, 0xffff
jne 0x14009af26
repz ret
ror rcx, 0x10
jmp 0x1400a5a60
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14042acd0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x14042adc8]
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 0x1400a5ae5
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, [0x14042acd0]
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 0x1400a5b07
mov rax, qword [rsp + 0x88]
mov qword [0x14042adc8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14042ad68], rax
mov rax, qword [0x14042adc8]
mov qword [0x14042ac40], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14042ad50], rax
mov dword [0x14042ac30], 0xc0000409
mov dword [0x14042ac34], 1
mov rax, qword [0x14012e6d8]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14012e6e0]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14042acc8], eax
mov ecx, 1
call fcn.1400c8f30
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1400fdf58]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14042acc8], 0
jne 0x1400a5b8e
mov ecx, 1
call fcn.1400c8f30
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 0x1400a5fc0
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 [0x14042b1a8]
mov ebx, r9d
mov rdi, r8
mov rsi, rdx
call fcn.1400a2910
test rax, rax
je 0x1400a6014
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 0x1400a60a9
mov ecx, 2
call fcn.1400c8f30
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.14009c4e0
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 0x1400a6095
test ebx, ebx
jne 0x1400a6095
lea ecx, [rax + 2]
call fcn.1400c8f30
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 0x1400b5b40
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.1400a2820
xor ebx, ebx
cmp qword [0x14042b550], rbx
mov rbp, rax
mov dword [rsp + 0x98], ebx
mov dword [rsp + 0x30], ebx
jne 0x1400b5c6c
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x1400b5d7f
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400b5d7f
mov rcx, rax
call fcn.1400a2750
lea rdx, [0x1400fe230]
mov rcx, rsi
mov qword [0x14042b550], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1400a2750
lea rdx, [0x1400fe218]
mov rcx, rsi
mov qword [0x14042b558], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1400a2750
lea rcx, [rsp + 0x98]
mov qword [0x14042b560], rax
call fcn.14009ddc0
test eax, eax
je 0x1400b5c1f
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.1400a5e30
cmp dword [rsp + 0x98], 2
jne 0x1400b5c6c
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1400a2750
test rax, rax
mov qword [0x14042b570], rax
je 0x1400b5c6c
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1400a2750
mov qword [0x14042b568], rax
mov rcx, qword [0x14042b568]
mov qword [rsp + 0x80], r12
cmp rcx, rbp
je 0x1400b5d18
cmp qword [0x14042b570], rbp
je 0x1400b5d18
call fcn.1400a2910
mov rcx, qword [0x14042b570]
mov rsi, rax
call fcn.1400a2910
test rsi, rsi
mov r12, rax
je 0x1400b5d18
test rax, rax
je 0x1400b5d18
call rsi
test rax, rax
je 0x1400b5ce3
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 0x1400b5ce3
test byte [rsp + 0x40], 1
jne 0x1400b5d18
lea rcx, [rsp + 0x30]
call fcn.14009deb0
test eax, eax
je 0x1400b5d05
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.1400a5e30
cmp dword [rsp + 0x30], 4
jb 0x1400b5d12
bts edi, 0x15
jmp 0x1400b5d56
bts edi, 0x12
jmp 0x1400b5d56
mov rcx, qword [0x14042b558]
cmp rcx, rbp
je 0x1400b5d56
call fcn.1400a2910
test rax, rax
je 0x1400b5d56
call rax
test rax, rax
mov rbx, rax
je 0x1400b5d56
mov rcx, qword [0x14042b560]
cmp rcx, rbp
je 0x1400b5d56
call fcn.1400a2910
test rax, rax
je 0x1400b5d56
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14042b550]
call fcn.1400a2910
mov r12, qword [rsp + 0x80]
test rax, rax
je 0x1400b5d7f
mov r9d, edi
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x1400b5d81
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400cd130
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0xb0
mov rax, qword [0x14012e6d8]
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 0x1400cd219
movzx ecx, byte [rsp + 0x20]
xor edx, edx
mov qword [rsp + 0xc8], rdi
test cl, cl
lea r8, [rsp + 0x20]
mov edi, edx
je 0x1400cd1ca
nop
lea eax, [rcx - 0x61]
add r8, 1
cmp al, 5
ja 0x1400cd1b0
add cl, 0xd9
jmp 0x1400cd1ba
lea eax, [rcx - 0x41]
cmp al, 5
ja 0x1400cd1ba
add cl, 0xf9
movsx eax, cl
mov cl, byte [r8]
add edi, edi
test cl, cl
lea edi, [rax + rdi*8 - 0x30]
jne 0x1400cd1a0
cmp esi, edi
je 0x1400cd20c
test ebx, ebx
je 0x1400cd20c
mov rdi, qword [rbp]
movzx eax, byte [rdi]
lea rcx, [rdi + 1]
nop
cmp al, 0x41
jl 0x1400cd1e8
cmp al, 0x5a
jle 0x1400cd1ee
sub al, 0x61
cmp al, 0x19
ja 0x1400cd1f9
mov al, byte [rcx]
add edx, 1
add rcx, 1
jmp 0x1400cd1e0
or rcx, 0xffffffffffffffff
xor eax, eax
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
cmp edx, ecx
je 0x1400cd211
mov eax, 1
mov rdi, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.14009af10
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rsi
ret
Function at 0x1400cddb0
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x38
mov rax, qword [0x14012e6d8]
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 0x1400cddf7
or eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14009af10
add rsp, 0x38
ret
lea rcx, [rsp + 0x20]
call fcn.1400d8850
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14009af10
add rsp, 0x38
ret
Function at 0x1400d7540
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 [0x14012e6d8]
xor rax, rbp
mov qword [rbp], rax
mov eax, dword [0x14042b600]
mov r15, r9
mov r13d, r8d
test eax, eax
mov r14d, edx
mov rbx, rcx
jne 0x1400d75c1
lea edx, [rax + 1]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1400d75a4
mov dword [0x14042b600], 1
jmp 0x1400d75c6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1400d75bb
mov dword [0x14042b600], 2
jmp 0x1400d75eb
mov eax, dword [0x14042b600]
cmp eax, 1
jne 0x1400d75de
mov r9d, dword [rbp + 0x60]
mov r8, r15
mov edx, r13d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x1400d76f2
cmp eax, 2
je 0x1400d75eb
test eax, eax
jne 0x1400d76f0
mov esi, dword [rbp + 0x68]
xor edi, edi
test esi, esi
jne 0x1400d75fa
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 0x1400d76f0
jle 0x1400d76f0
xor edx, edx
mov rax, 0xffffffffffffffe0
mov rcx, r12
div r12
cmp rax, 1
jb 0x1400d76f0
add rcx, 0x10
cmp rcx, 0x400
ja 0x1400d7678
lea rax, [rcx + 0xf]
cmp rax, rcx
ja 0x1400d7656
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.1400e67f0
sub rsp, rax
lea rbx, [rsp + 0x30]
test rbx, rbx
je 0x1400d76f0
mov dword [rbx], 0xcccc
jmp 0x1400d768b
call fcn.14009dba0
test rax, rax
mov rbx, rax
je 0x1400d768f
mov dword [rax], 0xdddd
add rbx, 0x10
test rbx, rbx
je 0x1400d76f0
mov r9d, r12d
mov r8, rbx
mov edx, r13d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x1400d76da
mov eax, dword [rbp + 0x60]
or r9d, 0xffffffff
mov r8, rbx
test eax, eax
lea edx, [r9 + 2]
mov ecx, esi
jne 0x1400d76c9
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
jmp 0x1400d76d2
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 0x1400d76ec
call fcn.14009db00
mov eax, edi
jmp 0x1400d76f2
xor eax, eax
mov rcx, qword [rbp]
xor rcx, rbp
call fcn.14009af10
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 0x1400d7850
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 [0x14012e6d8]
xor rax, rbp
mov qword [rbp], rax
mov eax, dword [0x14042b604]
mov r15, r9
mov r13d, r8d
test eax, eax
mov r14d, edx
mov rbx, rcx
jne 0x1400d7908
lea edx, [rax + 1]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1400d78b4
mov dword [0x14042b604], 1
jmp 0x1400d7916
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1400d7902
mov dword [0x14042b604], 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.14009af10
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 [0x14042b604]
cmp eax, 2
je 0x1400d78c9
test eax, eax
je 0x1400d78c9
cmp eax, 1
jne 0x1400d793e
mov esi, dword [rbp + 0x68]
xor edi, edi
test esi, esi
jne 0x1400d7925
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 0x1400d7942
xor eax, eax
jmp 0x1400d78dc
jle 0x1400d793e
xor edx, edx
mov rax, 0xffffffffffffffe0
div r12
cmp rax, 2
jb 0x1400d793e
lea rcx, [r12 + r12 + 0x10]
cmp rcx, 0x400
ja 0x1400d7995
lea rax, [rcx + 0xf]
cmp rax, rcx
ja 0x1400d7977
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.1400e67f0
sub rsp, rax
lea rbx, [rsp + 0x40]
test rbx, rbx
je 0x1400d793e
mov dword [rbx], 0xcccc
jmp 0x1400d79a8
call fcn.14009dba0
test rax, rax
mov rbx, rax
je 0x1400d79ac
mov dword [rax], 0xdddd
add rbx, 0x10
test rbx, rbx
je 0x1400d793e
mov r9d, r12d
mov r8, rbx
mov edx, r13d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1400d79ff
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 0x1400d79ee
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
jmp 0x1400d79f7
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 0x1400d7a11
call fcn.14009db00
mov eax, edi
jmp 0x1400d78dc
Function at 0x1400d8f30
Capabilities:
Get common file path

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
push rdi
sub rsp, 0x140
mov rax, qword [0x14012e6d8]
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 0x1400d8fc8
mov qword [rsp + 0x160], r12
lea r12d, [rax + 1]
lea edx, [rbx + 1]
movsxd rcx, r12d
call fcn.1400a5c60
test rax, rax
mov rdi, rax
jne 0x1400d8fa9
call fcn.14009e320
mov esi, ebx
mov dword [rax], reloc.OLEAUT32.dll_VariantTimeToDosDateTime
jmp 0x1400d8fc0
test esi, esi
mov ebp, 1
je 0x1400d8fc0
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 0x1400d8fe7
cmp byte [rdi + 1], 0x3a
jne 0x1400d8ff2
movzx ecx, byte [rdi]
call fcn.1400dfb00
lea ebx, [rax - 0x40]
jmp 0x1400d8ff2
call fcn.14009e320
mov dword [rax], reloc.OLEAUT32.dll_VariantTimeToDosDateTime
test ebp, ebp
mov rbp, qword [rsp + 0x150]
je 0x1400d9006
mov rcx, rdi
call fcn.14009db00
mov eax, ebx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.14009af10
mov rbx, qword [rsp + 0x168]
add rsp, 0x140
pop rdi
ret