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

Disassembly:
push rbx
sub rsp, 0x20
cmp edx, 1
mov rbx, r8
jne 0x4121e757
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 0x4121e648
mov rcx, rax
mov dword [rax], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x4121e650
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 0x4121e695
bts edi, 0xf
mov eax, esi
mov ecx, 1
mov dword [0x41361864], r12d
shl eax, 8
mov dword [0x41361870], esi
mov dword [0x41361874], ebp
add eax, ebp
mov dword [0x41361868], edi
mov dword [0x4136186c], eax
call fcn.4122c6a0
mov r12, qword [rsp + 0x48]
test eax, eax
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
je 0x4121e648
call fcn.41223fc0
test eax, eax
je 0x4121e74a
call fcn.41235680
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov qword [0x41363f68], rax
call fcn.412362f0
mov qword [0x413618d0], rax
call fcn.41231120
test eax, eax
js 0x4121e745
call fcn.412361e0
test eax, eax
js 0x4121e740
call fcn.41235e50
test eax, eax
js 0x4121e740
xor ecx, ecx
call fcn.4121e140
test eax, eax
jne 0x4121e740
add dword [0x413618c8], 1
mov eax, 1
add rsp, 0x20
pop rbx
ret
call fcn.41231450
call fcn.41223ae0
call fcn.4122c700
xor eax, eax
add rsp, 0x20
pop rbx
ret
test edx, edx
jne 0x4121e7a0
mov eax, dword [0x413618c8]
test eax, eax
jle 0x4121e648
sub eax, 1
cmp dword [0x413618c0], edx
mov dword [0x413618c8], eax
jne 0x4121e77f
call fcn.4121e370
test rbx, rbx
jne 0x4121e819
call fcn.41231450
call fcn.41223ae0
call fcn.4122c700
lea eax, [rbx + 1]
add rsp, 0x20
pop rbx
ret
cmp edx, 2
jne 0x4121e80d
call fcn.4106ef70
mov edx, 0x2d8
mov ecx, 1
call fcn.41223100
test rax, rax
mov rbx, rax
je 0x4121e648
mov ecx, dword [0x4135a224]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_FlsSetValue]
test eax, eax
je 0x4121e7fd
xor edx, edx
mov rcx, rbx
call fcn.41223b30
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.41213d10
xor eax, eax
add rsp, 0x20
pop rbx
ret
cmp edx, 3
jne 0x4121e819
xor ecx, ecx
call fcn.41223f60
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x412243a7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x41359af8]
jne 0x41211b9a
rol rcx, 0x10
test cx, 0xffff
jne 0x41211b96
repz ret
ror rcx, 0x10
jmp 0x41224300
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x413619c0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x41361ab8]
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 0x41224385
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, [0x413619c0]
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 0x412243a7
mov rax, qword [rsp + 0x88]
mov qword [0x41361ab8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x41361a58], rax
mov rax, qword [0x41361ab8]
mov qword [0x41361930], rax
mov rax, qword [rsp + 0x90]
mov qword [0x41361a40], rax
mov dword [0x41361920], 0xc0000409
mov dword [0x41361924], 1
mov rax, qword [0x41359af8]
mov qword [rsp + 0x68], rax
mov rax, qword [0x41359b00]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x413619b8], eax
mov ecx, 1
call fcn.41224450
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x412c1458]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x413619b8], 0
jne 0x4122442e
mov ecx, 1
call fcn.41224450
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 0x41225630
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 0x4122566e
add ebx, 1
add rax, 0x10
cmp ebx, 0x17
jb 0x41225650
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
cmp ebx, 0x17
jae 0x41225855
mov ecx, 3
call fcn.41238b20
cmp eax, 1
je 0x4122580c
mov ecx, 3
call fcn.41238b20
test eax, eax
jne 0x412256a5
cmp dword [0x413618e0], 1
je 0x4122580c
cmp edi, 0xfc
je 0x41225855
mov qword [rsp + 0x50], rbp
lea rbp, [0x41361e90]
lea r8, str.Runtime_Error__n_nProgram:
mov rcx, rbp
mov edx, 0x314
call fcn.412241b0
test eax, eax
je 0x412256e9
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.41211bb0
lea rdx, [0x41361ea9]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x41361fad], sil
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41225739
lea r8, str._program_name_unknown_
lea rcx, [0x41361ea9]
mov edx, 0x2fb
call fcn.412241b0
test eax, eax
je 0x41225739
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.41211bb0
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [0x41361ea9]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 0x3c
jbe 0x41225788
lea rcx, [rcx + rbp - 0x23]
lea rdx, [0x413621a4]
lea r9d, [rax + 3]
lea r8, [0x412c1a14]
sub rdx, rcx
call fcn.4122e8b0
test eax, eax
je 0x41225788
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.41211bb0
lea r8, [0x412c1a10]
mov edx, 0x314
mov rcx, rbp
call fcn.4122e7f0
test eax, eax
je 0x412257b4
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.41211bb0
movsxd r8, ebx
mov edx, 0x314
mov rcx, rbp
add r8, r8
mov r8, qword [r12 + r8*8 + 8]
call fcn.4122e7f0
test eax, eax
je 0x412257e4
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.41211bb0
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbp
call fcn.412388c0
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 0x41225855
cmp rax, 0xffffffffffffffff
je 0x41225855
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 0x41225870
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov ecx, 3
call fcn.41238b20
cmp eax, 1
je 0x412258a2
mov ecx, 3
call fcn.41238b20
test eax, eax
jne 0x41225956
cmp dword [0x413618e0], 1
jne 0x41225956
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 0x412258ce
add edi, 1
add rax, 0x10
cmp edi, 0x17
jb 0x412258b8
jmp 0x41225942
cmp edi, 0x17
jae 0x41225942
mov ecx, 3
call fcn.41238b20
cmp eax, 1
je 0x412258f9
mov ecx, 3
call fcn.41238b20
test eax, eax
jne 0x41225942
cmp dword [0x413618e0], 1
jne 0x41225942
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x41225942
cmp rax, 0xffffffffffffffff
je 0x41225942
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.41225630
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret

Function at 0x4122eaf0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0xb0
mov rax, qword [0x41359af8]
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 0x4122ebd9
movzx ecx, byte [rsp + 0x20]
xor edx, edx
mov qword [rsp + 0xc8], rdi
test cl, cl
lea r8, [rsp + 0x20]
mov edi, edx
je 0x4122eb8a
nop
lea eax, [rcx - 0x61]
add r8, 1
cmp al, 5
ja 0x4122eb70
add cl, 0xd9
jmp 0x4122eb7a
lea eax, [rcx - 0x41]
cmp al, 5
ja 0x4122eb7a
add cl, 0xf9
movsx eax, cl
mov cl, byte [r8]
add edi, edi
test cl, cl
lea edi, [rax + rdi*8 - 0x30]
jne 0x4122eb60
cmp esi, edi
je 0x4122ebcc
test ebx, ebx
je 0x4122ebcc
mov rdi, qword [rbp]
movzx eax, byte [rdi]
lea rcx, [rdi + 1]
nop
cmp al, 0x41
jl 0x4122eba8
cmp al, 0x5a
jle 0x4122ebae
sub al, 0x61
cmp al, 0x19
ja 0x4122ebb9
mov al, byte [rcx]
add edx, 1
add rcx, 1
jmp 0x4122eba0
or rcx, 0xffffffffffffffff
xor eax, eax
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
cmp edx, ecx
je 0x4122ebd1
mov eax, 1
mov rdi, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.41211b80
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rsi
ret
Function at 0x41231ea0
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r13
sub rsp, 0x20
mov rbp, rdx
xor edi, edi
xor edx, edx
lea r8d, [rdi + 1]
mov esi, ecx
call fcn.41230f10
cmp rax, 0xffffffffffffffff
mov r13, rax
je 0x41232044
lea r8d, [rdi + 2]
xor edx, edx
mov ecx, esi
call fcn.41230f10
cmp rax, 0xffffffffffffffff
je 0x41232044
mov qword [rsp + 0x40], rbx
mov rbx, rbp
mov qword [rsp + 0x50], r14
sub rbx, rax
test rbx, rbx
jle 0x41231fc3
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r14d, 0x1000
lea edx, [rdi + 8]
mov rcx, rax
mov r8, r14
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbp, rax
jne 0x41231f49
call fcn.41219d40
mov dword [rax], 0xc
call fcn.41219d40
mov eax, dword [rax]
mov rbx, qword [rsp + 0x40]
mov r14, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r13
pop rdi
pop rsi
ret
mov edx, 0x8000
mov ecx, esi
mov qword [rsp + 0x48], r12
call fcn.41232060
mov r12d, eax
nop
mov r8d, ebx
cmp rbx, r14
mov rdx, rbp
cmovge r8d, r14d
mov ecx, esi
call fcn.412183c0
cmp eax, 0xffffffff
je 0x41231f85
cdqe
sub rbx, rax
test rbx, rbx
jg 0x41231f60
jmp 0x41231f9e
call fcn.41219d70
cmp dword [rax], 5
jne 0x41231f9a
call fcn.41219d40
mov dword [rax], 0xd
or rdi, 0xffffffffffffffff
mov edx, r12d
mov ecx, esi
call fcn.41232060
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbp
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r12, qword [rsp + 0x48]
jmp 0x4123201c
test rbx, rbx
jns 0x41232026
xor r8d, r8d
mov rdx, rbp
mov ecx, esi
call fcn.41230f10
cmp rax, 0xffffffffffffffff
je 0x41231f2a
mov ecx, esi
call fcn.41231670
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb rdi, rdi
neg rdi
sub rdi, 1
cmp rdi, 0xffffffffffffffff
jne 0x41232026
call fcn.41219d40
mov dword [rax], 0xd
call fcn.41219d70
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx], eax
cmp rdi, 0xffffffffffffffff
je 0x41231f2a
xor r8d, r8d
mov rdx, r13
mov ecx, esi
call fcn.41230f10
cmp rax, 0xffffffffffffffff
je 0x41231f2a
xor eax, eax
jmp 0x41231f31
call fcn.41219d40
mov rbp, qword [rsp + 0x58]
mov eax, dword [rax]
add rsp, 0x20
pop r13
pop rdi
pop rsi
ret
Function at 0x412362f0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov eax, dword [0x41362658]
test eax, eax
jne 0x41236343
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x41236323
mov dword [0x41362658], 1
jmp 0x4123635e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4123633d
mov dword [0x41362658], 2
jmp 0x41236439
mov eax, dword [0x41362658]
cmp eax, 1
jne 0x41236430
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x41236483
cmp word [rdi], 0
mov qword [rsp + 0x50], rbp
mov rbx, rdi
mov qword [rsp + 0x58], r12
je 0x41236385
add rbx, 2
cmp word [rbx], 0
jne 0x41236371
add rbx, 2
cmp word [rbx], 0
jne 0x41236371
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 0x41236423
mov rcx, rbp
call fcn.41223090
test rax, rax
mov rsi, rax
je 0x41236423
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 0x412363fd
mov rcx, rsi
call fcn.41213d10
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 0x41236409
cmp eax, 2
je 0x41236439
test eax, eax
jne 0x41236483
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test rax, rax
mov rbx, rax
je 0x41236483
cmp byte [rax], 0
je 0x41236462
nop
add rax, 1
cmp byte [rax], 0
jne 0x41236450
add rax, 1
cmp byte [rax], 0
jne 0x41236450
sub eax, ebx
add eax, 1
movsxd rsi, eax
mov rcx, rsi
call fcn.41223090
test rax, rax
mov rdi, rax
jne 0x41236495
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.41217500
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 0x41238320
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x38
mov rax, qword [0x41359af8]
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 0x41238367
or eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.41211b80
add rsp, 0x38
ret
lea rcx, [rsp + 0x20]
call fcn.41214370
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.41211b80
add rsp, 0x38
ret
Function at 0x412388c0
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.41223920
xor ebx, ebx
cmp qword [0x413626d8], rbx
mov rbp, rax
mov dword [rsp + 0x98], ebx
mov dword [rsp + 0x30], ebx
jne 0x412389ec
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x41238aff
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x41238aff
mov rcx, rax
call fcn.41223850
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x413626d8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.41223850
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x413626e0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.41223850
lea rcx, [rsp + 0x98]
mov qword [0x413626e8], rax
call fcn.4121e0a0
test eax, eax
je 0x4123899f
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.41211bb0
cmp dword [rsp + 0x98], 2
jne 0x412389ec
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.41223850
test rax, rax
mov qword [0x413626f8], rax
je 0x412389ec
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.41223850
mov qword [0x413626f0], rax
mov rcx, qword [0x413626f0]
mov qword [rsp + 0x80], r12
cmp rcx, rbp
je 0x41238a98
cmp qword [0x413626f8], rbp
je 0x41238a98
call fcn.41223a10
mov rcx, qword [0x413626f8]
mov rsi, rax
call fcn.41223a10
test rsi, rsi
mov r12, rax
je 0x41238a98
test rax, rax
je 0x41238a98
call rsi
test rax, rax
je 0x41238a63
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 0x41238a63
test byte [rsp + 0x40], 1
jne 0x41238a98
lea rcx, [rsp + 0x30]
call fcn.4121e0f0
test eax, eax
je 0x41238a85
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.41211bb0
cmp dword [rsp + 0x30], 4
jb 0x41238a92
bts edi, 0x15
jmp 0x41238ad6
bts edi, 0x12
jmp 0x41238ad6
mov rcx, qword [0x413626e0]
cmp rcx, rbp
je 0x41238ad6
call fcn.41223a10
test rax, rax
je 0x41238ad6
call rax
test rax, rax
mov rbx, rax
je 0x41238ad6
mov rcx, qword [0x413626e8]
cmp rcx, rbp
je 0x41238ad6
call fcn.41223a10
test rax, rax
je 0x41238ad6
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x413626d8]
call fcn.41223a10
mov r12, qword [rsp + 0x80]
test rax, rax
je 0x41238aff
mov r9d, edi
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x41238b01
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x41238b80
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 [0x41359af8]
xor rax, rbp
mov qword [rbp], rax
mov eax, dword [0x41362700]
mov r15, r9
mov r13d, r8d
test eax, eax
mov r14d, edx
mov rbx, rcx
jne 0x41238c01
lea edx, [rax + 1]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41238be4
mov dword [0x41362700], 1
jmp 0x41238c06
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x41238bfb
mov dword [0x41362700], 2
jmp 0x41238c2b
mov eax, dword [0x41362700]
cmp eax, 1
jne 0x41238c1e
mov r9d, dword [rbp + 0x60]
mov r8, r15
mov edx, r13d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x41238d32
cmp eax, 2
je 0x41238c2b
test eax, eax
jne 0x41238d30
mov esi, dword [rbp + 0x68]
xor edi, edi
test esi, esi
jne 0x41238c3a
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 0x41238d30
jle 0x41238d30
xor edx, edx
mov rax, 0xffffffffffffffe0
mov rcx, r12
div r12
cmp rax, 1
jb 0x41238d30
add rcx, 0x10
cmp rcx, 0x400
ja 0x41238cb8
lea rax, [rcx + 0xf]
cmp rax, rcx
ja 0x41238c96
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.41295c90
sub rsp, rax
lea rbx, [rsp + 0x30]
test rbx, rbx
je 0x41238d30
mov dword [rbx], 0xcccc
jmp 0x41238ccb
call fcn.41213d60
test rax, rax
mov rbx, rax
je 0x41238ccf
mov dword [rax], 0xdddd
add rbx, 0x10
test rbx, rbx
je 0x41238d30
mov r9d, r12d
mov r8, rbx
mov edx, r13d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x41238d1a
mov eax, dword [rbp + 0x60]
or r9d, 0xffffffff
mov r8, rbx
test eax, eax
lea edx, [r9 + 2]
mov ecx, esi
jne 0x41238d09
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
jmp 0x41238d12
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 0x41238d2c
call fcn.41213d10
mov eax, edi
jmp 0x41238d32
xor eax, eax
mov rcx, qword [rbp]
xor rcx, rbp
call fcn.41211b80
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 0x41238e90
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 [0x41359af8]
xor rax, rbp
mov qword [rbp], rax
mov eax, dword [0x41362704]
mov r15, r9
mov r13d, r8d
test eax, eax
mov r14d, edx
mov rbx, rcx
jne 0x41238f48
lea edx, [rax + 1]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41238ef4
mov dword [0x41362704], 1
jmp 0x41238f56
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x41238f42
mov dword [0x41362704], 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.41211b80
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 [0x41362704]
cmp eax, 2
je 0x41238f09
test eax, eax
je 0x41238f09
cmp eax, 1
jne 0x41238f7e
mov esi, dword [rbp + 0x68]
xor edi, edi
test esi, esi
jne 0x41238f65
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 0x41238f82
xor eax, eax
jmp 0x41238f1c
jle 0x41238f7e
xor edx, edx
mov rax, 0xffffffffffffffe0
div r12
cmp rax, 2
jb 0x41238f7e
lea rcx, [r12 + r12 + 0x10]
cmp rcx, 0x400
ja 0x41238fd5
lea rax, [rcx + 0xf]
cmp rax, rcx
ja 0x41238fb7
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.41295c90
sub rsp, rax
lea rbx, [rsp + 0x40]
test rbx, rbx
je 0x41238f7e
mov dword [rbx], 0xcccc
jmp 0x41238fe8
call fcn.41213d60
test rax, rax
mov rbx, rax
je 0x41238fec
mov dword [rax], 0xdddd
add rbx, 0x10
test rbx, rbx
je 0x41238f7e
mov r9d, r12d
mov r8, rbx
mov edx, r13d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4123903f
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 0x4123902e
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
jmp 0x41239037
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 0x41239051
call fcn.41213d10
mov eax, edi
jmp 0x41238f1c
Function at 0x4129520c
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x41359af8]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call fcn.412121c0
and qword [rbx + 0x50], 0
and dword [rbx + 0x58], 0
and dword [rbx + 0x5c], 0
lea rax, [0x41000000]
mov esi, 0x94
lea rcx, [rsp + 0x20]
mov r8, rsi
xor edx, edx
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rax
mov dword [rbx], 0x60
mov byte [rbx + 0x18], 0
call fcn.412121c0
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x30], 2
mov esi, 1
jne 0x4129529f
cmp dword [rsp + 0x24], 5
jb 0x412952b9
jmp 0x412952b5
cmp dword [rsp + 0x30], esi
jne 0x412952b9
cmp dword [rsp + 0x24], 4
ja 0x412952b5
jne 0x412952b9
cmp dword [rsp + 0x28], 0
jbe 0x412952b9
mov byte [rbx + 0x18], sil
lea rax, [0x412ca970]
lea rcx, [rbx + 0x28]
mov dword [rbx + 0x1c], 0x800
mov qword [rbx + 0x20], rax
call fcn.412950cc
movzx ecx, byte [0x413612c8]
test eax, eax
mov rax, rbx
cmovs ecx, esi
mov byte [0x413612c8], cl
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.41211b80
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret