joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140008b40
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140008b68
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x140008b8e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140008b90
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140008be9
test ecx, ecx
jle 0x140008bc9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140008be9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140008be9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x140008c10
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140008c32
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140008c48
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140008c64
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140008c66
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140008ca2
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140008d3e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140008cdd
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x140008d1e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x140008d3e
cmp rbx, rax
ja 0x140008cf0
test rbx, rbx
je 0x140008d3e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x1400091a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400091cd
xor eax, eax
jmp 0x140009339
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140009207
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140009207
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140009339
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000932c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000924a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140009275
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140009331
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400092e4
sub eax, 1
je 0x1400092e4
cmp eax, 2
jne 0x14000932c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140009331
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140009312
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14000932c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140009331
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140016570
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret

Function at 0x140009b80
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x140009bb4
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140009ba0
ret
Function at 0x14000a4c0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14000a593
cmp byte [rcx + 0x71], 0
je 0x14000a593
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000a58f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14000a554
sub eax, 1
je 0x14000a558
cmp eax, 2
jne 0x14000a58f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140016570
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14000a586
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14000a58f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000a53c
xor al, al
jmp 0x14000a53c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140016570
add rsp, 0x60
pop rbx
ret
Function at 0x140013a30
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x140013afc
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x140013afc
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x140013b15
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x140013aec
cmp byte [rax], 0x5c
jne 0x140013ae6
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x140013ae6
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x140013ad2
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x140013ae3
test r8b, 0x10
jne 0x140013ae6
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x140013ae6
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.14000f990
test edi, edi
jne 0x140013a50
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.14000f980
int3

Function at 0x140015cd0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140015d0a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140015d0f
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140015d58
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140019620]
cmp byte [rcx + rax], 0
je 0x140015d58
dec r8
sub rdx, 1
jne 0x140015d3e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140017114
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001715e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001715e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001715e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001715e
cmp dword [rcx + 0x84], 0xe
jbe 0x14001715e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140017160
xor al, al
add rsp, 0x28
ret
Function at 0x406000
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.00405f10
mov rcx, rax
lea rdx, [rbp + 0x38]
call fcn.00405f10
cmp qword [rbp + 0x38], 0
je 0x406046
mov ecx, dword [rbp + 0x2c]
add ecx, 1
mov dword [rbp + 0x2c], ecx
jmp 0x406028
nop
nop
lea rcx, [rbp + 0x38]
call fcn.0040aa40
mov eax, dword [rbp + 0x2c]
lea rsp, [rbp + 0x40]
pop rbp
ret

Function at 0x408510
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 r14d, dword [rax + 0x18]
mov rcx, qword [rsp + 0x28]
call fcn.00408af0
mov esi, eax
test sil, sil
jne 0x4086e2
test ebx, ebx
je 0x4086e2
xor rdi, rdi
test r14d, r14d
jle 0x4085f1
call sub.kernel32.dll_GetTickCount
mov r13d, eax
test r14d, r14d
jle 0x4085d0
cmp ebx, 0xffffffff
je 0x40857b
call sub.kernel32.dll_GetTickCount
sub eax, r13d
cmp eax, ebx
jb 0x40857b
xor rsi, rsi
jmp 0x4086e2
mov rax, qword [rsp + 0x28]
cmp dword [rax], 1
jg 0x4085d0
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0
jne 0x4085c2
mov rcx, qword [rsp + 0x28]
mov edx, 1
xor r8, r8
call fcn.00403210
test eax, eax
jne 0x4085c2
call sub.kernel32.dll_GetCurrentThreadId
mov rcx, qword [rsp + 0x28]
mov dword [rcx + 8], eax
mov dword [rcx + 4], 1
mov sil, 1
jmp 0x4086e2
call fcn.00408c90
sub r14d, 1
test r14d, r14d
jg 0x408562
nop
cmp ebx, 0xffffffff
je 0x4085f1
call sub.kernel32.dll_GetTickCount
mov ecx, eax
sub ecx, r13d
cmp ecx, ebx
jb 0x4085ec
xor rsi, rsi
jmp 0x4086e2
sub eax, r13d
sub ebx, eax
mov rax, qword [rsp + 0x28]
mov r13d, dword [rax]
test r13d, r13d
je 0x40852b
mov rcx, qword [rsp + 0x28]
mov edx, r13d
add edx, 2
mov r8d, r13d
call fcn.00403210
cmp eax, r13d
jne 0x4085f1
nop
call sub.kernel32.dll_GetTickCount
mov r13d, eax
mov rcx, qword [rsp + 0x28]
call fcn.004087a0
xor rcx, rcx
mov rdx, rax
mov r8d, ebx
mov rax, qword [0x005479a0]
call qword [rax + 0x20]
test eax, eax
sete sil
cmp ebx, 0xffffffff
je 0x408663
call sub.kernel32.dll_GetTickCount
mov ecx, eax
sub ecx, r13d
cmp ecx, ebx
jae 0x408660
sub eax, r13d
sub ebx, eax
jmp 0x408663
xor rbx, rbx
test sil, sil
je 0x40869c
mov rax, qword [rsp + 0x28]
mov r13d, dword [rax]
mov eax, r13d
test eax, 1
jne 0x408699
mov rcx, qword [rsp + 0x28]
mov edx, r13d
sub edx, 2
or edx, 1
mov r8d, r13d
call fcn.00403210
cmp eax, r13d
jne 0x408668
mov dil, 1
nop
jmp 0x4086bf
mov rax, qword [rsp + 0x28]
mov r13d, dword [rax]
mov rcx, qword [rsp + 0x28]
mov edx, r13d
sub edx, 2
mov r8d, r13d
call fcn.00403210
cmp eax, r13d
jne 0x40869c
mov dil, 1
test dil, dil
je 0x40861b
nop
test sil, sil
je 0x4086e2
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 0x40a410
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
cmp byte [0x005470a8], 0
je 0x40a4ae
cmp word [0x005473b8], 0xd7b2
jne 0x40a443
cmp dword [0x005473c0], 0
jbe 0x40a443
lea rcx, [0x005473b0]
call qword [0x005473d8]
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
lea rdx, [0x005297a8]
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, [0x0040a4e4]
call fcn.0040bc00
mov rcx, rbx
mov rdx, rax
mov r8d, 2
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x40a4d0
cmp byte [0x00528052], 0
jne 0x40a4d0
xor rcx, rcx
lea rdx, [0x005297a8]
lea r8, str.Error
xor r9, r9
call sub.user32.dll_MessageBoxA
add rsp, 0x40
pop rbx
ret

Function at 0x40a830
Capabilities:
Create thread

Disassembly:
push r13
push rdi
push rsi
push rbx
sub rsp, 0x48
mov qword [rsp + 0x38], rcx
mov ebx, edx
mov rsi, r8
mov rdi, r9
cmp qword [0x00528058], 0
je 0x40a861
mov rcx, rsi
mov rdx, rdi
call qword [0x00528058]
mov r13, rax
jmp 0x40a877
mov ecx, 0x10
call fcn.00405990
mov r13, rax
mov qword [r13], rsi
mov qword [r13 + 8], rdi
mov byte [0x005470a9], 1
mov rcx, qword [rsp + 0x38]
mov edx, ebx
lea r8, [0x0040a7c0]
mov r9, r13
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x28], rax
call sub.kernel32.dll_CreateThread
mov ebx, eax
test ebx, ebx
jne 0x40a8c0
mov rcx, r13
mov edx, 0x10
call fcn.004059c0
mov eax, ebx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r13
ret

Function at 0x40e530
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
lea rcx, [0x0054bc90]
call sub.kernel32.dll_InitializeCriticalSection
mov word [0x0054bcb8], 0x7f
call sub.kernel32.dll_GetVersion
and eax, 0xff
cmp eax, 6
setae al
mov byte [0x0054bc88], al
cmp byte [0x0054bc88], 0
je 0x40e5cf
lea rcx, [0x0040e5d4]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040e5ee]
call sub.kernel32.dll_GetProcAddress
mov qword [0x0054bc70], rax
lea rcx, [0x0040e5d4]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040e60c]
call sub.kernel32.dll_GetProcAddress
mov qword [0x0054bc78], rax
lea rcx, [0x0040e5d4]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040e62a]
call sub.kernel32.dll_GetProcAddress
mov qword [0x0054bc80], rax
add rsp, 0x28
ret
Function at 0x40e850
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.0040aa40
movzx rax, word [rbp + 0x4e]
cmp word [0x00529ef8], ax
ja 0x40e938
movzx rax, word [rbp + 0x4e]
cmp ax, word [0x0052a2f8]
mov word [rbp + 0x4e], ax
ja 0x40e938
mov ecx, 0x40
xor r8, r8
cmp ecx, r8d
jb 0x40e937
mov eax, ecx
add eax, r8d
mov r9d, 2
xor edx, edx
div r9d
lea rdx, [0x00529ef8]
mov r9d, eax
add r9, r9
movzx r10, word [rbp + 0x4e]
cmp word [rdx + r9*8], r10w
jbe 0x40e8f1
mov ecx, eax
sub ecx, 1
jmp 0x40e932
lea rdx, [0x00529ef8]
mov r8d, eax
add r8, r8
movzx r9, word [rbp + 0x4e]
cmp word [rdx + r8*8], r9w
jae 0x40e913
mov r8d, eax
add r8d, 1
jmp 0x40e932
mov rcx, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x40]
lea r8, [0x00529f00]
mov eax, eax
add rax, rax
mov r8, qword [r8 + rax*8]
call fcn.0040e6f0
jmp 0x40e937
cmp ecx, r8d
jae 0x40e8c0
nop
mov rax, qword [rbp + 0x40]
cmp qword [rax], 0
jne 0x40ea1a
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40ea1a
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.0040c550
lea rcx, [rbp + 0x60]
lea rdx, [rbp + 0x7c]
mov r8d, 0x55
call fcn.0040c550
lea rcx, [rbp + 0x58]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.0040c550
mov rcx, qword [rbp + 0x40]
mov edx, 5
mov r8, qword [rbp + 0x68]
lea r9, [0x0040ea74]
mov rax, qword [rbp + 0x60]
mov qword [rsp + 0x20], rax
lea rax, [0x0040ea84]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.0040c9c0
nop
lea rcx, [rbp + 0x58]
mov edx, 3
call fcn.0040ab20
mov rax, qword [rbp + 0x40]
lea rsp, [rbp + 0x1d0]
pop rbp
ret
Function at 0x40ec90
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, [0x0054bc90]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
cmp word [0x0054bcb8], ax
jne 0x40ecfb
mov rcx, qword [rbp + 0x28]
lea rdx, [0x0054bcba]
mov r8d, 0x55
call fcn.0040c550
lea rcx, [0x0054bc90]
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40ee07
lea rcx, [0x0054bc90]
call sub.kernel32.dll_LeaveCriticalSection
mov rcx, qword [rbp + 0x28]
call fcn.0040aa40
movzx rcx, word [rbp + 0x36]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40edc0
cmp byte [0x0054bc88], 0
je 0x40ed54
mov rcx, rbp
lea rdx, [rbp + 0x48]
movzx r8, word [rbp + 0x36]
call fcn.0040eb20
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x48]
call fcn.0040b090
jmp 0x40edc0
mov rcx, rbp
lea rdx, [rbp + 0x40]
movzx r8, word [rbp + 0x36]
call fcn.0040e850
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.0040b090
call sub.kernel32.dll_GetSystemDefaultUILanguage
movzx rcx, word [rbp + 0x36]
cmp cx, ax
mov word [rbp + 0x36], cx
je 0x40edc0
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
je 0x40ed9f
mov rcx, qword [rbp + 0x28]
lea rdx, [0x0040ee54]
call fcn.0040c7c0
call sub.kernel32.dll_GetSystemDefaultUILanguage
mov rcx, rbp
lea rdx, [rbp + 0x38]
mov r8d, eax
call fcn.0040e850
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x38]
call fcn.0040c7c0
lea rcx, [0x0054bc90]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
mov word [0x0054bcb8], ax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax]
call fcn.0040c470
lea rcx, [0x0054bcba]
mov rdx, rax
mov r8d, 0xaa
call sub.kernel32.dll_lstrcpynW
lea rcx, [0x0054bc90]
call sub.kernel32.dll_LeaveCriticalSection
nop
lea rcx, [rbp + 0x38]
mov edx, 3
call fcn.0040ab20
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x40f7e0
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.0040abd0
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.0040c550
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x38]
call fcn.0040c890
mov rcx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax]
call fcn.0040f610
test al, al
jne 0x40f8ae
mov word [rbp + 0x4c], 0
lea rcx, [rbp + 0x30]
lea rdx, [rbp + 0x48]
mov r8d, 4
call fcn.0040c550
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x30]
call fcn.0040c890
mov rcx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax]
call fcn.0040f610
test al, al
jne 0x40f8ae
mov rcx, qword [rbp + 0x20]
call fcn.0040aa40
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.0040ab20
lea rcx, [rbp + 0x70]
call fcn.0040aa40
mov rax, qword [rbp + 0x20]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x40f910
Capabilities:
Identify system language via api

Disassembly:
push rbp
sub rsp, 0x70
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x88], rdx
mov qword [rbp + 0x90], r8
mov rcx, qword [rbp + 0x88]
call fcn.0040abd0
mov rcx, qword [rbp + 0x90]
call fcn.0040abd0
nop
mov rcx, qword [rbp + 0x28]
call fcn.0040aa40
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
call fcn.0040b110
xor rax, rax
cmp qword [rbp + 0x90], 0
je 0x40f9b3
mov rax, qword [rbp + 0x90]
mov eax, dword [rax - 4]
cmp eax, 1
jl 0x40f9ed
mov rcx, qword [rbp + 0x90]
movsxd rdx, eax
cmp word [rcx + rdx*2 - 2], 0x2e
jne 0x40f9e6
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
mov r8d, 1
mov r9d, eax
call fcn.0040caa0
jmp 0x40f9ed
sub eax, 1
test eax, eax
jne 0x40f9b8
nop
lea rcx, [rbp + 0x68]
mov rdx, qword [rbp + 0x88]
call fcn.0040f520
cmp qword [rbp + 0x68], 0
je 0x40fa2b
mov rcx, rbp
lea rdx, [rbp + 0x58]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x68]
call fcn.0040f6b0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x58]
call fcn.0040b090
jmp 0x40fac7
call sub.kernel32.dll_GetUserDefaultUILanguage
lea rcx, [rbp + 0x48]
mov edx, eax
call fcn.0040ec90
mov rcx, rbp
lea rdx, [rbp + 0x50]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x48]
call fcn.0040f6b0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x50]
call fcn.0040b090
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x40faa0
cmp byte [0x0054bc88], 0
jne 0x40faa0
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea rcx, [rbp + 0x38]
mov edx, eax
call fcn.0040ec90
mov rcx, rbp
lea rdx, [rbp + 0x40]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x38]
call fcn.0040f6b0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.0040b090
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x40fac7
mov rcx, rbp
lea rdx, [rbp + 0x30]
mov r8, qword [rbp + 0x60]
call fcn.0040f7e0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x30]
call fcn.0040b090
nop
lea rcx, [rbp + 0x30]
mov edx, 8
call fcn.0040ab20
lea rcx, [rbp + 0x88]
mov edx, 2
call fcn.0040ab20
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x70]
pop rbp
ret

Function at 0x410aa0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
lea rcx, [rsp + 0x20]
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret

Function at 0x410ac0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
call sub.kernel32.dll_GetVersion
mov ecx, eax
and ecx, 0xff
and eax, 0xff00
shr eax, 8
cmp ecx, 5
jne 0x410ae4
cmp eax, 1
jae 0x410ae9
cmp ecx, 5
jbe 0x410af5
mov dword [0x005479b0], 0x7f
jmp 0x410aff
mov dword [0x005479b0], 0x409
add rsp, 0x28
ret