joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001d460
Capabilities:
Get graphical window text

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x870
mov r14, rcx
mov rax, qword [0x140036010]
xor rax, rsp
mov qword [rsp + 0x868], rax
mov edx, 0x3f6
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rdi, rax
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDC]
mov rbx, rax
mov rcx, rdi
mov edx, 0x31
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.USER32.dll_SendMessageW]
test rax, rax
je 0x14001d4c5
mov rcx, rbx
mov rdx, rax
call qword [sym.imp.GDI32.dll_SelectObject]
lea rbp, [rsp + 0x38]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.USER32.dll_GetWindowRect]
xor ecx, ecx
mov rdx, r14
mov r8, rbp
mov r9d, 2
call qword [sym.imp.USER32.dll_MapWindowPoints]
lea rbp, [rsp + 0x60]
mov rcx, rdi
mov rdx, rbp
mov r8d, 0x400
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, rbp
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
lea r9, [rsp + 0x48]
mov rcx, rbx
mov rdx, rbp
mov r8d, eax
call qword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
test eax, eax
je 0x14001d55f
mov eax, dword [rsp + 0x48]
mov ebp, dword [rsp + 0x38]
mov ebx, dword [rsp + 0x40]
sub ebx, ebp
cmp eax, ebx
jl 0x14001d55f
cvtsi2ss xmm0, eax
cvtsi2ss xmm1, ebx
divss xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll_ceilf
cvttss2si eax, xmm0
imul eax, dword [rsp + 0x4c]
mov r8d, dword [rsp + 0x3c]
mov esi, r8d
sub esi, dword [rsp + 0x44]
add esi, eax
test esi, esi
jg 0x14001d582
mov rcx, qword [rsp + 0x868]
xor rcx, rsp
call fcn.140021770
nop
add rsp, 0x870
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov r12d, 1
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], eax
mov r15, qword [sym.imp.USER32.dll_MoveWindow]
mov rcx, rdi
mov edx, ebp
mov r9d, ebx
call r15
mov rdi, qword [0x1400364e0]
mov rcx, qword [rdi + 8]
call fcn.1400256d0
mov rax, qword [0x1400364e0]
mov qword [rax + 8], rdi
mov qword [rax], rdi
mov rax, qword [0x1400364e0]
mov qword [rax + 0x10], rdi
mov qword [0x1400364e8], 0
lea rdi, [rsp + 0x34]
mov dword [rdi], 0x3ed
lea rcx, [rsp + 0x50]
mov rdx, rdi
call fcn.14001e470
mov dword [rdi], 0x3f4
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0x34]
call fcn.14001e470
lea rdi, [rsp + 0x50]
mov rcx, r14
mov rdx, rdi
call qword [sym.imp.USER32.dll_GetWindowRect]
add esi, dword [rdi + 0xc]
mov dword [rdi + 0xc], esi
mov edx, dword [rdi]
mov r8d, dword [rdi + 4]
sub esi, r8d
mov r9d, dword [rdi + 8]
sub r9d, edx
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], esi
mov rcx, r14
call r15
lea rdx, [0x14002f820]
lea rsi, [rsp + 0x50]
mov rcx, rsi
call fcn.140026bc0
lea rdx, [0x14002f824]
mov rcx, rsi
call fcn.140026bc0
lea rdx, [0x14002f828]
mov rcx, rsi
call fcn.140026bc0
lea rdx, [0x14002f82c]
mov rcx, rsi
call fcn.140026bc0
lea rdx, [0x14002f830]
mov rcx, rsi
call fcn.140026bc0
lea rdx, [0x14002f834]
mov rcx, rsi
call fcn.140026bc0
lea rdx, [0x14002f838]
mov rcx, rsi
call fcn.140026bc0
lea rdx, [0x14002f83c]
mov rcx, rsi
call fcn.140026bc0
jmp 0x14001d55f
Function at 0x14001e310
Capabilities:
Get graphical window text

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
mov eax, 0x9cc0
call fcn.1400217b0
sub rsp, rax
movaps xmmword [rsp + 0x9cb0], xmm6
mov r14, rdx
mov rdi, rcx
mov rax, qword [0x140036010]
xor rax, rsp
mov qword [rsp + 0x9ca8], rax
lea rdx, [rsp + 0x4e80]
mov r8d, 0x2711
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea rbx, [rsp + 0x4c]
lea rsi, [rsp + 0x48]
mov rcx, rdi
mov edx, 0xb0
mov r8, rbx
mov r9, rsi
call qword [sym.imp.USER32.dll_SendMessageW]
mov r9d, dword [rsi]
mov eax, dword [rbx]
mov edi, 0xfffffffe
cmp r9d, eax
je 0x14001e3e8
sub r9d, eax
lea r8, [rsp + rax*2]
add r8, 0x4e80
lea rsi, [rsp + 0x50]
mov edx, 0x2711
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov eax, dword [rsp + 0x48]
sub eax, dword [rsp + 0x4c]
mov word [rsp + rax*2 + 0x50], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov ecx, 0xfde9
xor edx, edx
mov r8, rsi
mov r9d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
not edi
xorps xmm6, xmm6
movups xmmword [rsp + 0x30], xmm6
xor ebx, ebx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
mov r15, qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea r8, [rsp + 0x4e80]
mov ecx, 0xfde9
xor edx, edx
mov r9d, 0xffffffff
call r15
mov esi, eax
movups xmmword [rsp + 0x30], xmm6
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
mov ecx, 0xfde9
xor edx, edx
mov r8, r14
mov r9d, 0xffffffff
call r15
mov ebx, eax
add esi, edi
add ebx, esi
mov rcx, qword [rsp + 0x9ca8]
xor rcx, rsp
call fcn.140021770
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x9cb0]
add rsp, 0x9cc0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x14001e6f0
Capabilities:
Delete registry value
Set registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov ebx, r8d
mov r14, rdx
mov rdi, rcx
mov rax, qword [0x140036010]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea rsi, [rsp + 0x38]
mov qword [rsp + 0x20], rsi
mov rcx, 0xffffffff80000002
mov rdx, rdi
xor r8d, r8d
mov r9d, 2
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001e755
mov rcx, qword [rsp + 0x38]
lea rdx, [0x140031be0]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x20], rsi
mov rcx, 0xffffffff80000001
mov rdx, rdi
xor r8d, r8d
mov r9d, 2
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001e794
mov rcx, qword [rsp + 0x38]
lea rdx, [0x140031be0]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r8, [rsp + 0x38]
mov rcx, 0xffffffff80000001
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x14001e7e6
movzx eax, bl
lea rdx, [rsp + 0x34]
mov dword [rdx], eax
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x20], rdx
mov dword [rsp + 0x28], 4
mov rdx, r14
xor r8d, r8d
mov r9d, 4
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140021770
nop
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140023b30
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rax, qword [0x140036010]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov dil, 1
cmp qword [rcx + 0x68], 0
je 0x140023bee
mov rsi, rcx
cmp byte [rcx + 0x71], 0
je 0x140023bee
mov rax, qword [rsi]
mov rax, qword [rax + 0x18]
mov rcx, rsi
mov edx, 0xffffffff
call qword [case.0x1400209de.0]
cmp eax, 0xffffffff
je 0x140023bec
mov rcx, qword [rsi + 0x68]
lea r9, [rsp + 0x50]
lea rdx, [rsi + 0x74]
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
lea rbx, [rsp + 0x28]
mov qword [rsp + 0x20], rbx
lea rdi, [rsp + 0x30]
mov r8, rdi
call qword [case.0x1400209de.0]
cmp eax, 3
je 0x140023c05
cmp eax, 1
je 0x140023bb9
test eax, eax
jne 0x140023bec
mov byte [rsi + 0x71], 0
mov rbx, qword [rsp + 0x28]
sub rbx, rdi
je 0x140023be2
mov r9, qword [rsi + 0x80]
lea rcx, [rsp + 0x30]
mov edx, 1
mov r8, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x140023bec
cmp byte [rsi + 0x71], 0
sete dil
jmp 0x140023bee
xor edi, edi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140021770
mov eax, edi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
mov dil, 1
jmp 0x140023bee
Function at 0x140026500
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov qword [rsp + 0x30], r9
mov rbp, r8
mov rax, qword [0x140036010]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x40], rcx
mov rcx, qword [rcx]
mov rax, qword [rcx + 8]
cmp byte [rax + 0x19], 0
mov qword [rsp + 0x38], rdx
jne 0x14002667a
mov qword [rsp + 0x28], rcx
mov rcx, qword [rbp]
mov r12, qword [rbp + 0x10]
mov rdx, qword [rbp + 0x18]
mov qword [rsp + 0x48], rdx
cmp rdx, 0x10
mov rbx, rbp
mov qword [rsp + 0x50], rcx
cmovae rbx, rcx
mov rdi, rax
lea rsi, [rax + 0x20]
mov r14, qword [rax + 0x20]
mov r13, qword [rax + 0x38]
cmp r13, 0x10
mov rdx, rsi
cmovae rdx, r14
mov r15, qword [rax + 0x30]
cmp r15, r12
mov r8, r12
cmovb r8, r15
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
xor ecx, ecx
cmp r12, r15
setb cl
xor edx, edx
test eax, eax
sets dl
cmovne ecx, edx
mov eax, ecx
xor al, 1
movzx eax, al
shl rax, 4
mov rax, qword [rdi + rax]
cmp byte [rax + 0x19], 0
je 0x140026568
mov qword [rsp + 0x58], rdi
test cl, cl
jne 0x140026687
mov dword [rsp + 0x28], 0
mov rbx, rdi
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
cmp rcx, 0x10
cmovae rbp, rax
cmp r13, 0x10
cmovae rsi, r14
cmp r12, r15
mov r8, r15
cmovb r8, r12
mov rcx, rsi
mov rdx, rbp
call sub.VCRUNTIME140.dll_memcmp
xor ecx, ecx
cmp r15, r12
setb cl
xor edx, edx
test eax, eax
sets dl
cmovne ecx, edx
cmp cl, 1
je 0x1400266bb
mov rbx, qword [rsp + 0x30]
lea rsi, [rbx + 0x20]
lea rcx, [rbx + 0x40]
call fcn.140020660
mov rcx, rsi
call fcn.140020660
mov edx, 0x60
mov rcx, rbx
call fcn.14002070c
mov rax, qword [rsp + 0x38]
mov qword [rax], rdi
mov rdi, rax
xor esi, esi
mov byte [rdi + 8], sil
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140021770
mov rax, rdi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rdi, rdx
mov qword [rsp + 0x58], rcx
mov rbx, rcx
jmp 0x140026694
mov rbx, rdi
mov rdi, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x28]
cmp rbx, qword [rcx]
jne 0x1400266e7
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov sil, 1
mov rcx, qword [rsp + 0x40]
mov rdx, rdi
mov r8b, 1
mov r9, rbx
call fcn.140026360
jmp 0x140026655
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x38]
mov rdx, rdi
mov r8d, dword [rsp + 0x28]
mov r9, rbx
call fcn.140026360
mov sil, 1
jmp 0x140026655
lea rsi, [rsp + 0x58]
mov rcx, rsi
call fcn.140025c70
mov rdi, qword [rsi]
mov rax, qword [rbp]
mov r12, qword [rbp + 0x10]
mov rcx, qword [rbp + 0x18]
lea rsi, [rdi + 0x20]
mov r14, qword [rdi + 0x20]
mov r15, qword [rdi + 0x30]
mov r13, qword [rdi + 0x38]
mov dl, 1
mov dword [rsp + 0x28], edx
jmp 0x1400265e1
Function at 0x14002da80
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov r14, r9
mov rsi, r8
mov r15, rdx
mov rbx, rcx
mov rax, qword [0x140036010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rax, qword [rcx]
mov rcx, qword [rax + 8]
cmp byte [rcx + 0x19], 0
je 0x14002db2b
mov qword [rsp + 0x30], rax
mov rdi, rax
cmp rdi, qword [rax]
je 0x14002db61
lea rbp, [rsp + 0x30]
mov rcx, rbp
call fcn.14002d8d0
mov r12b, 1
mov rbp, qword [rbp]
lea rcx, [rbp + 0x20]
mov rdx, rsi
call fcn.140002750
test al, al
je 0x14002db87
mov qword [rsp + 0x20], r14
mov rcx, rbx
mov rdx, r15
mov r8d, r12d
mov r9, rdi
call fcn.140002370
mov sil, 1
mov byte [r15 + 8], sil
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140021770
mov rax, r15
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rdi, rcx
lea rdx, [rcx + 0x20]
mov rcx, rsi
call fcn.140002750
mov ecx, eax
xor cl, 1
movzx ecx, cl
shl rcx, 4
mov rcx, qword [rdi + rcx]
cmp byte [rcx + 0x19], 0
je 0x14002db2b
mov qword [rsp + 0x30], rdi
test al, al
je 0x14002db7c
mov rax, qword [rbx]
jmp 0x14002dabe
mov qword [rsp + 0x20], r14
mov sil, 1
mov rcx, rbx
mov rdx, r15
mov r8b, 1
mov r9, rdi
call fcn.140002370
jmp 0x14002db08
xor r12d, r12d
mov rbp, rdi
jmp 0x14002dadb
mov rcx, r14
call fcn.14002dba0
mov qword [r15], rbp
xor esi, esi
jmp 0x14002db08
Function at 0x4045f0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbp, rsp
mov rbx, rcx
mov rsi, rdx
cmp byte [0x00436098], 0
je 0x4046a8
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle
mov rdi, rax
mov rcx, rsi
call fcn.0040a800
mov rcx, rdi
mov rdx, rsi
mov r8d, eax
lea r9, [rbp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle
mov rsi, rax
mov rcx, qword [0x004300a8]
call fcn.0040a800
mov rcx, rsi
mov rdx, qword [0x004300a8]
mov r8d, eax
lea r9, [rbp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle
mov rsi, rax
mov rcx, rbx
call fcn.0040a800
mov rcx, rsi
mov rdx, rbx
mov r8d, eax
lea r9, [rbp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x4046bb
xor ecx, ecx
mov rdx, rbx
mov r8, rsi
mov r9d, 0x2010
call sub.user32.dll_MessageBoxA_1
lea rsp, [rbp + 0x48]
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x407f80
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rbp
push r14
push r13
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov ebx, edx
mov rax, qword [rbp + 0x28]
mov r13d, dword [rax + 0x18]
mov rcx, qword [rbp + 0x28]
call fcn.004085d0
mov esi, eax
test sil, sil
jne 0x408134
test ebx, ebx
je 0x408134
xor edi, edi
test r13d, r13d
jle 0x408061
call sub.kernel32.dll_GetTickCount
mov r14d, eax
mov dword [rbp + 0x3c], 0
test r13d, r13d
jle 0x408045
cmp ebx, 0xffffffff
je 0x407ff3
call sub.kernel32.dll_GetTickCount
sub eax, r14d
cmp eax, ebx
jb 0x407ff3
xor esi, esi
jmp 0x408134
mov rax, qword [rbp + 0x28]
cmp dword [rax], 1
jg 0x408045
mov rax, qword [rbp + 0x28]
cmp dword [rax], 0
jne 0x408033
xor eax, eax
mov ecx, 1
mov rdx, qword [rbp + 0x28]
lock cmpxchg dword [rdx], ecx
test eax, eax
jne 0x408033
call sub.kernel32.dll_GetCurrentThreadId
mov rcx, qword [rbp + 0x28]
mov dword [rcx + 8], eax
mov dword [rcx + 4], 1
mov sil, 1
jmp 0x408134
lea rcx, [rbp + 0x3c]
call fcn.00407b20
sub r13d, 1
test r13d, r13d
jg 0x407fda
nop
cmp ebx, 0xffffffff
je 0x408061
call sub.kernel32.dll_GetTickCount
sub eax, r14d
cmp eax, ebx
jb 0x40805f
xor esi, esi
jmp 0x408134
sub ebx, eax
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
test ecx, ecx
je 0x407f9d
mov edx, ecx
add edx, 2
mov eax, ecx
mov r8, qword [rbp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x408061
nop
call sub.kernel32.dll_GetTickCount
mov r14d, eax
mov rcx, qword [rbp + 0x28]
call fcn.004081e0
xor ecx, ecx
mov rdx, rax
mov r8d, ebx
mov rax, qword [0x00436990]
call qword [rax + 0x20]
test eax, eax
sete sil
cmp ebx, 0xffffffff
je 0x4080c4
call sub.kernel32.dll_GetTickCount
sub eax, r14d
cmp eax, ebx
jae 0x4080c2
sub ebx, eax
jmp 0x4080c4
xor ebx, ebx
test sil, sil
je 0x4080f5
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
mov eax, ecx
test eax, 1
jne 0x4080f2
mov edx, ecx
sub edx, 2
or edx, 1
mov eax, ecx
mov r8, qword [rbp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x4080c9
mov dil, 1
nop
jmp 0x408112
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
mov edx, ecx
sub edx, 2
mov eax, ecx
mov r8, qword [rbp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x4080f5
mov dil, 1
test dil, dil
je 0x408084
nop
test sil, sil
je 0x408134
call sub.kernel32.dll_GetCurrentThreadId
mov rcx, qword [rbp + 0x28]
mov dword [rcx + 8], eax
mov dword [rcx + 4], 1
mov eax, esi
lea rsp, [rbp + 0x48]
pop rbx
pop rsi
pop rdi
pop r13
pop r14
pop rbp
ret
Function at 0x409cd0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
cmp byte [0x00436098], 0
je 0x409d6a
cmp word [0x004363a8], 0xd7b2
jne 0x409d03
cmp dword [0x004363b0], 0
jbe 0x409d03
lea rcx, [0x004363a0]
call qword [0x004363c8]
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
lea rdx, [0x00431bd4]
mov r8d, 0x25
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rbx, rax
lea rcx, [0x00409da0]
call fcn.0040ae50
mov rcx, rbx
mov rdx, rax
mov r8d, 2
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x409d8b
cmp byte [0x00430042], 0
jne 0x409d8b
xor ecx, ecx
lea rdx, [0x00431bd4]
lea r8, str.Error
xor r9, r9
call sub.user32.dll_MessageBoxA_1
add rsp, 0x40
pop rbx
ret

Function at 0x40e1f0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
lea rcx, [0x0043aef8]
call sub.kernel32.dll_InitializeCriticalSection
mov word [0x0043af20], 0x7f
call sub.kernel32.dll_GetVersion
and eax, 0xff
cmp eax, 6
setae al
mov byte [0x0043aef0], al
cmp byte [0x0043aef0], 0
je 0x40e28e
lea rcx, [0x0040e294]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040e2ae]
call sub.kernel32.dll_GetProcAddress
mov qword [0x0043aed8], rax
lea rcx, [0x0040e294]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040e2cc]
call sub.kernel32.dll_GetProcAddress
mov qword [0x0043aee0], rax
lea rcx, [0x0040e294]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040e2ea]
call sub.kernel32.dll_GetProcAddress
mov qword [0x0043aee8], rax
add rsp, 0x28
ret
Function at 0x40e530
Capabilities:
Get geographical location

Disassembly:
push rbp
push rbx
sub rsp, 0x1d8
mov rbp, rsp
mov qword [rbp + 0x40], rcx
mov qword [rbp + 0x48], rdx
mov word [rbp + 0x56], r8w
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x58], 0
nop
mov rcx, qword [rbp + 0x48]
call fcn.0040a0e0
movzx rax, word [rbp + 0x56]
cmp word [0x00432378], ax
ja 0x40e606
movzx rax, word [rbp + 0x56]
cmp ax, word [0x00432778]
mov word [rbp + 0x56], ax
ja 0x40e606
mov eax, 0x40
xor ecx, ecx
cmp eax, ecx
jb 0x40e605
mov edx, eax
add edx, ecx
shr edx, 1
mov r8d, edx
lea r9, [0x00432378]
mov r10, r8
add r10, r10
movzx r11, word [rbp + 0x56]
cmp word [r9 + r10*8], r11w
jbe 0x40e5c4
mov eax, edx
sub eax, 1
jmp 0x40e601
lea rcx, [0x00432378]
mov r9, r8
add r9, r9
movzx r10, word [rbp + 0x56]
cmp word [rcx + r9*8], r10w
jae 0x40e5e4
mov ecx, edx
add ecx, 1
jmp 0x40e601
mov rcx, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x48]
lea rax, [0x00432380]
add r8, r8
mov r8, qword [rax + r8*8]
call fcn.0040e3e0
jmp 0x40e605
cmp eax, ecx
jae 0x40e59a
nop
mov rax, qword [rbp + 0x48]
cmp qword [rax], 0
jne 0x40e6db
movzx rcx, word [rbp + 0x56]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40e6db
movzx rbx, word [rbp + 0x56]
movzx ebx, bx
mov ecx, ebx
mov edx, 0x59
lea r8, [rbp + 0x126]
mov r9d, 0x55
call sub.kernel32.dll_GetLocaleInfoW
mov ecx, ebx
mov edx, 0x5a
lea r8, [rbp + 0x7c]
mov r9d, 0x55
call sub.kernel32.dll_GetLocaleInfoW
lea rcx, [rbp + 0x68]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.0040b150
lea rcx, [rbp + 0x60]
lea rdx, [rbp + 0x7c]
mov r8d, 0x55
call fcn.0040b150
lea rcx, [rbp + 0x58]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.0040b150
mov rcx, qword [rbp + 0x48]
mov edx, 5
mov r8, qword [rbp + 0x68]
lea r9, [0x0040e728]
mov rax, qword [rbp + 0x60]
mov qword [rsp + 0x20], rax
lea rax, [0x0040e738]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.0040b4f0
nop
lea rcx, [rbp + 0x58]
mov edx, 3
call fcn.0040a1c0
mov rax, qword [rbp + 0x48]
lea rsp, [rbp + 0x1d8]
pop rbx
pop rbp
ret
Function at 0x40e930
Capabilities:
Identify system language via api

Disassembly:
push rbp
sub rsp, 0x50
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov word [rbp + 0x36], dx
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x48], 0
nop
lea rcx, [0x0043aef8]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
cmp word [0x0043af20], ax
jne 0x40e99a
mov rcx, qword [rbp + 0x28]
lea rdx, [0x0043af22]
mov r8d, 0x55
call fcn.0040b150
lea rcx, [0x0043aef8]
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40eaa3
lea rcx, [0x0043aef8]
call sub.kernel32.dll_LeaveCriticalSection
mov rcx, qword [rbp + 0x28]
call fcn.0040a0e0
movzx rcx, word [rbp + 0x36]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40ea5e
cmp byte [0x0043aef0], 0
je 0x40e9f2
mov rcx, rbp
lea rdx, [rbp + 0x48]
movzx r8, word [rbp + 0x36]
call fcn.0040e7d0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x48]
call fcn.0040a610
jmp 0x40ea5e
mov rcx, rbp
lea rdx, [rbp + 0x40]
movzx r8, word [rbp + 0x36]
call fcn.0040e530
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.0040a610
call sub.kernel32.dll_GetSystemDefaultUILanguage
movzx rcx, word [rbp + 0x36]
cmp cx, ax
mov word [rbp + 0x36], cx
je 0x40ea5e
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
je 0x40ea3d
mov rcx, qword [rbp + 0x28]
lea rdx, [0x0040eae8]
call fcn.0040b300
call sub.kernel32.dll_GetSystemDefaultUILanguage
mov rcx, rbp
lea rdx, [rbp + 0x38]
mov r8d, eax
call fcn.0040e530
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x38]
call fcn.0040b300
lea rcx, [0x0043aef8]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
mov word [0x0043af20], ax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax]
call fcn.0040b0b0
lea rcx, [0x0043af22]
mov edx, 0xaa
mov r8, rax
call fcn.0040e320
lea rcx, [0x0043aef8]
call sub.kernel32.dll_LeaveCriticalSection
nop
lea rcx, [rbp + 0x38]
mov edx, 3
call fcn.0040a1c0
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x40f450
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push rbp
sub rsp, 0x50
mov rbp, rsp
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x70], r8
mov rcx, qword [rbp + 0x70]
call fcn.0040a2b0
nop
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx ecx, ax
mov edx, 3
lea r8, [rbp + 0x48]
mov r9d, 4
call sub.kernel32.dll_GetLocaleInfoW
lea rcx, [rbp + 0x38]
lea rdx, [rbp + 0x48]
mov r8d, 4
call fcn.0040b150
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x38]
call fcn.0040b3c0
mov rcx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x28]
mov rdx, qword [rax]
call fcn.0040f2a0
test al, al
jne 0x40f51a
mov word [rbp + 0x4c], 0
lea rcx, [rbp + 0x30]
lea rdx, [rbp + 0x48]
mov r8d, 4
call fcn.0040b150
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x30]
call fcn.0040b3c0
mov rcx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x28]
mov rdx, qword [rax]
call fcn.0040f2a0
test al, al
jne 0x40f51a
mov rcx, qword [rbp + 0x28]
call fcn.0040a0e0
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.0040a1c0
lea rcx, [rbp + 0x70]
call fcn.0040a0e0
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x50]
pop rbp
ret