joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001f450
Capabilities:
Query environment variable

Disassembly:
push r15
mov eax, 0x10088
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14008a130
sub rsp, rax
xor edx, edx
mov rbp, rcx
xor ecx, ecx
mov word [rsp + 0x80], dx
lea r15, [rsp + 0x30]
movzx eax, byte [rbp]
mov word [rsp + 0x30], cx
test al, al
je 0x14001f515
xor edi, edi
lea r15, [rsp + 0x30]
lea r14, [rsp + 0x2a]
mov r12d, 0x28
lea r13, [rsp + 0x2c]
nop dword [rax]
mov rsi, r12
mov r8d, 2
mov rdx, r14
mov rcx, r13
sub rsi, rdi
mov byte [rsp + 0x2a], al
lea rbx, [r15 + rdi*2]
mov byte [rsp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x14009b042
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x14001f4f6
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x14001f4e8
test rsi, rsi
je 0x14009b042
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x14001f4a8
lea rbx, [rsp + 0x80]
mov r8d, 0x10000
mov rcx, r15
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x14001f544
mov rcx, rbx
call sub.msvcrt.dll__wcsdup
add rsp, 0x10088
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x14001f560
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
movzx eax, byte [rcx]
mov qword [rsp + 0xd8], rdx
xor edx, edx
mov rbp, rcx
lea r15, [rsp + 0x30]
mov word [rsp + 0x30], dx
test al, al
je 0x14001f61d
xor edi, edi
lea r15, [rsp + 0x30]
lea r14, [rsp + 0x2a]
mov r12d, 0x28
lea r13, [rsp + 0x2c]
nop dword [rax]
mov rsi, r12
mov r8d, 2
mov rdx, r14
mov rcx, r13
sub rsi, rdi
mov byte [rsp + 0x2a], al
lea rbx, [r15 + rdi*2]
mov byte [rsp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x14009b048
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x14001f5fe
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x14001f5f0
test rsi, rsi
je 0x14009b048
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x14001f5b0
mov rdx, qword [rsp + 0xd8]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400490b0
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
mov rbx, qword [0x1400c02c8]
mov rsi, rcx
test rbx, rbx
je 0x140049130
mov rax, qword [0x1400af600]
mov rcx, qword [rax + 0x48]
cmp rbx, rcx
je 0x140049120
mov rdx, qword [0x1400c0508]
test rdx, rdx
je 0x140049228
mov rcx, rbx
mov rbx, qword [sym.imp.python311.dll_PyNumber_InPlaceAdd]
call rbx
mov rcx, rax
mov rdx, rsi
mov rax, rbx
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp rax
mov rbx, qword [sym.imp.python311.dll_PyNumber_InPlaceAdd]
jmp 0x140049101
lea r15, str.NUITKA_ONEFILE_BINARY
mov rcx, r15
call fcn.14001f450
test rax, rax
je 0x140049248
mov rcx, rax
mov rdx, 0xffffffffffffffff
lea r14, [rsp + 0x40]
call qword [sym.imp.python311.dll_PyUnicode_FromWideChar]
xor ecx, ecx
mov r13, r14
lea r12, [r15 + 0x28]
mov word [rsp + 0x40], cx
lea rbp, [rsp + 0x3a]
lea rdi, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
mov eax, 0x4e
nop
mov rbx, r12
mov r8d, 2
mov rdx, rbp
mov rcx, rdi
sub rbx, r15
mov byte [rsp + 0x3a], al
mov byte [rsp + 0x3b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x14009b0e8
cmp word [r13], 0
movzx edx, word [rsp + 0x3c]
mov rax, r13
je 0x1400491ce
nop word [rax + rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x1400491c0
test rbx, rbx
je 0x14009b0e8
mov word [rax], dx
add r15, 1
xor edx, edx
add r13, 2
mov word [rax + 2], dx
movzx eax, byte [r15]
test al, al
jne 0x140049180
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rax, qword [sym.imp.python311.dll__PyRuntime]
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rax + 0x1f8]
call fcn.140048f60
mov rbx, rax
mov qword [0x1400c02c8], rbx
jmp 0x1400490d2
lea rcx, [0x1400abb28]
call qword [sym.imp.python311.dll_PyUnicode_FromString]
mov qword [0x1400c0508], rax
mov rdx, rax
jmp 0x1400490f2
mov rbx, qword [0x1400c02e0]
test rbx, rbx
jne 0x140049216
cmp byte [0x1400c0502], 0
je 0x140049286
mov rdx, 0xffffffffffffffff
lea rcx, [0x1400c0300]
call qword [sym.imp.python311.dll_PyUnicode_FromWideChar]
mov qword [0x1400c02e0], rax
mov rbx, rax
test rax, rax
je 0x140049292
add qword [rax], 1
jmp 0x140049216
mov ecx, 1
call fcn.140020070
jmp 0x14004925d
call qword [sym.imp.python311.dll_PyErr_Print]
call sub.msvcrt.dll_abort
nop
nop
call sub.msvcrt.dll_abort
nop
Function at 0x14004a9e0
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rsi, str.NUITKA_ONEFILE_BINARY
mov ebx, ecx
mov rcx, rsi
call fcn.14001f450
test rax, rax
je 0x14004ab38
mov rcx, rax
mov rdx, 0xffffffffffffffff
lea r14, [rsp + 0x40]
call qword [sym.imp.python311.dll_PyUnicode_FromWideChar]
xor ecx, ecx
mov r15, r14
lea r12, [rsi + 0x28]
mov word [rsp + 0x40], cx
mov r13, rax
lea rbp, [rsp + 0x3a]
mov eax, 0x4e
lea rdi, [rsp + 0x3c]
nop word [rax + rax]
mov rbx, r12
mov r8d, 2
mov rdx, rbp
mov rcx, rdi
sub rbx, rsi
mov byte [rsp + 0x3a], al
mov byte [rsp + 0x3b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x14009b106
cmp word [r15], 0
movzx edx, word [rsp + 0x3c]
mov rax, r15
je 0x14004aa96
nop dword [rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x14004aa88
test rbx, rbx
je 0x14009b106
mov word [rax], dx
add rsi, 1
xor edx, edx
add r15, 2
mov word [rax + 2], dx
movzx eax, byte [rsi]
test al, al
jne 0x14004aa48
mov rcx, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rax, qword [sym.imp.python311.dll__PyRuntime]
mov rcx, qword [0x1400c0c40]
mov rsi, qword [rax + 0x1f8]
mov rax, qword [0x1400af600]
mov rbx, qword [rax + 0x1c0]
test rcx, rcx
je 0x14004ab88
mov rdx, rbx
call fcn.140005bf0
mov r8, r13
mov rcx, rsi
mov rbx, rax
mov rdx, rax
call fcn.14003cb40
sub qword [rbx], 1
jne 0x14004ab21
mov rdx, qword [rbx + 8]
mov qword [rsp + 0x28], rax
mov rcx, rbx
call qword [rdx + 0x30]
mov rax, qword [rsp + 0x28]
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [0x1400c02d8]
lea rsi, [0x1400c02d8]
test bl, bl
je 0x14004ab58
mov rax, qword [0x1400c02e0]
lea rsi, [0x1400c02e0]
test rax, rax
jne 0x14004ab21
cmp byte [0x1400c0502], 0
je 0x14004abb2
mov rdx, 0xffffffffffffffff
lea rcx, [0x1400c0300]
call qword [sym.imp.python311.dll_PyUnicode_FromWideChar]
mov qword [rsi], rax
test rax, rax
je 0x14004abbc
add qword [rax], 1
jmp 0x14004ab21
mov rcx, qword [0x1400c0bb8]
mov rdi, qword [rax + 0x1b0]
test rcx, rcx
je 0x14004abc7
mov rdx, rdi
call fcn.140005bf0
mov qword [0x1400c0c40], rax
mov rcx, rax
jmp 0x14004aaee
movzx ecx, bl
call fcn.140020070
jmp 0x14004ab66
call qword [sym.imp.python311.dll_PyErr_Print]
call sub.msvcrt.dll_abort
lea rcx, [0x1400a6e7b]
call qword [sym.imp.python311.dll_PyImport_ImportModule]
mov qword [0x1400c0bb8], rax
mov rcx, rax
test rax, rax
je 0x14009b106
jmp 0x14004ab9b
Function at 0x1400803f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x1400c02c1], 0
mov rbp, rcx
mov rdi, rdx
mov r12, r8
je 0x140080498
lea rdx, [0x1400ab252]
mov rcx, r12
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x140080500
mov rbx, qword [0x1400c0160]
jmp 0x140080435
lea rbx, [rdx + rax + 4]
mov rdx, rbx
mov rcx, r12
call sub.msvcrt.dll_strcmp
mov rcx, rbx
mov esi, eax
call sub.msvcrt.dll_strlen
lea rdx, [rbx + rax + 1]
mov eax, dword [rdx]
test esi, esi
jne 0x140080430
movzx eax, word [rdx + 4]
lea r8, [rdx + 6]
test ax, ax
je 0x140080487
lea rbx, [rdi + rax*8]
nop word cs:[rax + rax]
mov rdx, rdi
mov rcx, rbp
add rdi, 8
call fcn.14006f7d0
mov r8, rax
cmp rdi, rbx
jne 0x140080470
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov r8d, 0xa
xor ecx, ecx
mov edx, 3
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
lea rdx, [rax + 4]
mov qword [0x1400c0160], rax
mov ebx, dword [rax]
mov qword [0x1400c0160], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x1400c0160], rdx
call fcn.14007f520
cmp eax, ebx
jne 0x140080568
mov byte [0x1400c02c1], 1
jmp 0x140080410
cmp byte [0x1400c02c0], 0
jne 0x140080427
mov rbx, qword [sym.imp.python311.dll_PyDict_New]
call rbx
mov qword [0x1400c0e68], rax
call rbx
mov qword [0x1400c0e60], rax
call rbx
mov qword [0x1400c0e58], rax
call rbx
mov qword [0x1400c0e50], rax
call rbx
mov qword [0x1400c0e48], rax
call rbx
mov qword [0x1400c0e40], rax
call rbx
mov qword [0x1400c0e38], rax
call rbx
mov byte [0x1400c02c0], 1
mov qword [0x1400c0e30], rax
jmp 0x140080427
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x140088e10
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.14009a5a0
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.14009a5a0
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
Function at 0x140089ae2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400c1328]
test eax, eax
je 0x140089b7a
lea rax, [0x1400c1300]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400c1330]
mov qword [rbp - 8], rax
jmp 0x140089b5e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140089b52
cmp qword [rbp - 0x10], 0
je 0x140089b52
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140089b18
lea rax, [0x1400c1300]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140089b7b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140089c80
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140089ca8
mov eax, 0
jmp 0x140089cf6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140089cd1
mov eax, 0
jmp 0x140089cf6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140089cf1
mov eax, 0
jmp 0x140089cf6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x140089cfc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x140089d7a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140089d71
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140089d71
mov rax, qword [rbp - 8]
jmp 0x140089d8f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140089d44
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x406670
Capabilities:
Accept command line arguments

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x38], 0
nop
xor rax, rax
mov dword [rbp + 0x2c], eax
call sub.kernel32.dll_GetCommandLineW
mov rcx, rax
lea rdx, [rbp + 0x38]
call fcn.00406580
mov rcx, rax
lea rdx, [rbp + 0x38]
call fcn.00406580
cmp qword [rbp + 0x38], 0
je 0x4066b6
mov ecx, dword [rbp + 0x2c]
add ecx, 1
mov dword [rbp + 0x2c], ecx
jmp 0x406698
nop
nop
lea rcx, [rbp + 0x38]
call fcn.0040ab70
mov eax, dword [rbp + 0x2c]
lea rsp, [rbp + 0x40]
pop rbp
ret

Function at 0x408a60
Capabilities:
Check for time delay via gettickcount

Disassembly:
push r14
push r13
push rdi
push rsi
push rbx
sub rsp, 0x30
mov qword [rsp + 0x28], rcx
mov ebx, edx
mov rax, qword [rsp + 0x28]
mov r13d, dword [rax + 0x18]
mov rcx, qword [rsp + 0x28]
call fcn.00408db0
mov esi, eax
test sil, sil
jne 0x408c22
test ebx, ebx
je 0x408c22
xor rdi, rdi
test r13d, r13d
jle 0x408b3f
call sub.kernel32.dll_GetTickCount
mov r14d, eax
test r13d, r13d
jle 0x408b1e
cmp ebx, 0xffffffff
je 0x408acb
call sub.kernel32.dll_GetTickCount
sub eax, r14d
cmp eax, ebx
jb 0x408acb
xor rsi, rsi
jmp 0x408c22
mov rax, qword [rsp + 0x28]
cmp dword [rax], 1
jg 0x408b1e
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0
jne 0x408b10
xor eax, eax
mov ecx, 1
mov rdx, qword [rsp + 0x28]
lock cmpxchg dword [rdx], ecx
test eax, eax
jne 0x408b10
call sub.kernel32.dll_GetCurrentThreadId
mov rcx, qword [rsp + 0x28]
mov dword [rcx + 8], eax
mov dword [rcx + 4], 1
mov sil, 1
jmp 0x408c22
call fcn.00408e00
sub r13d, 1
test r13d, r13d
jg 0x408ab2
nop
cmp ebx, 0xffffffff
je 0x408b3f
call sub.kernel32.dll_GetTickCount
mov ecx, eax
sub ecx, r14d
cmp ecx, ebx
jb 0x408b3a
xor rsi, rsi
jmp 0x408c22
sub eax, r14d
sub ebx, eax
mov rax, qword [rsp + 0x28]
mov ecx, dword [rax]
test ecx, ecx
je 0x408a7b
mov edx, ecx
add edx, 2
mov eax, ecx
mov r8, qword [rsp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x408b3f
nop
call sub.kernel32.dll_GetTickCount
mov r14d, eax
mov rcx, qword [rsp + 0x28]
call fcn.00408cd0
xor rcx, rcx
mov rdx, rax
mov r8d, ebx
mov rax, qword [0x005629a0]
call qword [rax + 0x20]
test eax, eax
sete sil
cmp ebx, 0xffffffff
je 0x408bac
call sub.kernel32.dll_GetTickCount
mov ecx, eax
sub ecx, r14d
cmp ecx, ebx
jae 0x408ba9
sub eax, r14d
sub ebx, eax
jmp 0x408bac
xor rbx, rbx
test sil, sil
je 0x408be0
mov rax, qword [rsp + 0x28]
mov ecx, dword [rax]
mov eax, ecx
test eax, 1
jne 0x408bdd
mov edx, ecx
sub edx, 2
or edx, 1
mov eax, ecx
mov r8, qword [rsp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x408bb1
mov dil, 1
nop
jmp 0x408bff
mov rax, qword [rsp + 0x28]
mov ecx, dword [rax]
mov edx, ecx
sub edx, 2
mov eax, ecx
mov r8, qword [rsp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x408be0
mov dil, 1
test dil, dil
je 0x408b64
nop
test sil, sil
je 0x408c22
call sub.kernel32.dll_GetCurrentThreadId
mov rcx, qword [rsp + 0x28]
mov dword [rcx + 8], eax
mov dword [rcx + 4], 1
mov eax, esi
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop r13
pop r14
ret
Function at 0x40a680
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
cmp byte [0x005620a8], 0
je 0x40a71e
cmp word [0x005623b8], 0xd7b2
jne 0x40a6b3
cmp dword [0x005623c0], 0
jbe 0x40a6b3
lea rcx, [0x005623b0]
call qword [0x005623d8]
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
lea rdx, [0x00546698]
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, [0x0040a754]
call fcn.0040bb40
mov rcx, rbx
mov rdx, rax
mov r8d, 2
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x40a740
cmp byte [0x00545052], 0
jne 0x40a740
xor rcx, rcx
lea rdx, [0x00546698]
lea r8, [0x005465a0]
xor r9, r9
call sub.user32.dll_MessageBoxA
add rsp, 0x40
pop rbx
ret

Function at 0x40e3a0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
lea rcx, [0x00566c90]
call sub.kernel32.dll_InitializeCriticalSection
mov word [0x00566cb8], 0x7f
call sub.kernel32.dll_GetVersion
and eax, 0xff
cmp eax, 6
setae al
mov byte [0x00566c88], al
cmp byte [0x00566c88], 0
je 0x40e43f
lea rcx, [0x0040e444]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040e45e]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00566c70], rax
lea rcx, [0x0040e444]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040e47c]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00566c78], rax
lea rcx, [0x0040e444]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040e49a]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00566c80], rax
add rsp, 0x28
ret
Function at 0x40e6d0
Capabilities:
Get geographical location

Disassembly:
push rbp
sub rsp, 0x1d0
mov rbp, rsp
mov qword [rbp + 0x50], rcx
mov qword [rbp + 0x40], rdx
mov word [rbp + 0x4e], r8w
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x58], 0
nop
mov rcx, qword [rbp + 0x40]
call fcn.0040ab70
movzx rax, word [rbp + 0x4e]
cmp word [0x00546d70], ax
ja 0x40e7b8
movzx rax, word [rbp + 0x4e]
cmp ax, word [0x00547170]
mov word [rbp + 0x4e], ax
ja 0x40e7b8
mov ecx, 0x40
xor r8, r8
cmp ecx, r8d
jb 0x40e7b7
mov eax, ecx
add eax, r8d
mov r9d, 2
xor edx, edx
div r9d
lea rdx, [0x00546d70]
mov r9d, eax
add r9, r9
movzx r10, word [rbp + 0x4e]
cmp word [rdx + r9*8], r10w
jbe 0x40e771
mov ecx, eax
sub ecx, 1
jmp 0x40e7b2
lea rdx, [0x00546d70]
mov r8d, eax
add r8, r8
movzx r9, word [rbp + 0x4e]
cmp word [rdx + r8*8], r9w
jae 0x40e793
mov r8d, eax
add r8d, 1
jmp 0x40e7b2
mov rcx, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x40]
lea r8, [0x00546d78]
mov eax, eax
add rax, rax
mov r8, qword [r8 + rax*8]
call fcn.0040e570
jmp 0x40e7b7
cmp ecx, r8d
jae 0x40e740
nop
mov rax, qword [rbp + 0x40]
cmp qword [rax], 0
jne 0x40e89a
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40e89a
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 0x59
lea r8, [rbp + 0x126]
mov r9d, 0x55
call sub.kernel32.dll_GetLocaleInfoW
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
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.0040c290
lea rcx, [rbp + 0x60]
lea rdx, [rbp + 0x7c]
mov r8d, 0x55
call fcn.0040c290
lea rcx, [rbp + 0x58]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.0040c290
mov rcx, qword [rbp + 0x40]
mov edx, 5
mov r8, qword [rbp + 0x68]
lea r9, [0x0040e8f4]
mov rax, qword [rbp + 0x60]
mov qword [rsp + 0x20], rax
lea rax, [0x0040e904]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.0040c710
nop
lea rcx, [rbp + 0x58]
mov edx, 3
call fcn.0040ac50
mov rax, qword [rbp + 0x40]
lea rsp, [rbp + 0x1d0]
pop rbp
ret
Function at 0x40eb10
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, [0x00566c90]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
cmp word [0x00566cb8], ax
jne 0x40eb7b
mov rcx, qword [rbp + 0x28]
lea rdx, [0x00566cba]
mov r8d, 0x55
call fcn.0040c290
lea rcx, [0x00566c90]
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40ec87
lea rcx, [0x00566c90]
call sub.kernel32.dll_LeaveCriticalSection
mov rcx, qword [rbp + 0x28]
call fcn.0040ab70
movzx rcx, word [rbp + 0x36]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40ec40
cmp byte [0x00566c88], 0
je 0x40ebd4
mov rcx, rbp
lea rdx, [rbp + 0x48]
movzx r8, word [rbp + 0x36]
call fcn.0040e9a0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x48]
call fcn.0040b1a0
jmp 0x40ec40
mov rcx, rbp
lea rdx, [rbp + 0x40]
movzx r8, word [rbp + 0x36]
call fcn.0040e6d0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.0040b1a0
call sub.kernel32.dll_GetSystemDefaultUILanguage
movzx rcx, word [rbp + 0x36]
cmp cx, ax
mov word [rbp + 0x36], cx
je 0x40ec40
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
je 0x40ec1f
mov rcx, qword [rbp + 0x28]
lea rdx, [0x0040ecd4]
call fcn.0040c500
call sub.kernel32.dll_GetSystemDefaultUILanguage
mov rcx, rbp
lea rdx, [rbp + 0x38]
mov r8d, eax
call fcn.0040e6d0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x38]
call fcn.0040c500
lea rcx, [0x00566c90]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
mov word [0x00566cb8], ax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax]
call fcn.0040c190
lea rcx, [0x00566cba]
mov rdx, rax
mov r8d, 0xaa
call sub.kernel32.dll_lstrcpynW
lea rcx, [0x00566c90]
call sub.kernel32.dll_LeaveCriticalSection
nop
lea rcx, [rbp + 0x38]
mov edx, 3
call fcn.0040ac50
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x40f690
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push rbp
sub rsp, 0x50
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov qword [rbp + 0x20], rdx
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x70], r8
mov rcx, qword [rbp + 0x70]
call fcn.0040ad00
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.0040c290
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x38]
call fcn.0040c5f0
mov rcx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax]
call fcn.0040f4b0
test al, al
jne 0x40f75e
mov word [rbp + 0x4c], 0
lea rcx, [rbp + 0x30]
lea rdx, [rbp + 0x48]
mov r8d, 4
call fcn.0040c290
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x30]
call fcn.0040c5f0
mov rcx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax]
call fcn.0040f4b0
test al, al
jne 0x40f75e
mov rcx, qword [rbp + 0x20]
call fcn.0040ab70
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.0040ac50
lea rcx, [rbp + 0x70]
call fcn.0040ab70
mov rax, qword [rbp + 0x20]
lea rsp, [rbp + 0x50]
pop rbp
ret