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

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [0x1400097c0]
mov rbx, rdx
mov qword [rsp + 0x38], rdi
mov edi, ecx
test rax, rax
jne 0x1400020d6
mov rcx, qword [0x1400098b8]
lea rdx, [0x140006b00]
call fcn.140003510
mov qword [0x1400097c0], rax
xor r8d, r8d
mov rdx, rbx
mov ecx, edi
call rax
mov rax, qword [0x1400097e8]
test rax, rax
jne 0x140002106
mov rcx, qword [0x1400098b8]
lea rdx, [0x140006d50]
call fcn.140003510
mov qword [0x1400097e8], rax
lea rcx, [0x140006660]
call rax
mov rbx, rax
test rax, rax
je 0x140002203
mov rax, qword [0x140009830]
mov qword [rsp + 0x30], rsi
test rax, rax
jne 0x140002146
mov rcx, qword [0x1400098b8]
lea rdx, [0x140006df0]
call fcn.140003510
mov qword [0x140009830], rax
xor r8d, r8d
lea rcx, str._MessageBox
xor edx, edx
call rax
mov rsi, qword [str._MessageBox]
mov rdi, rax
mov rax, qword [0x140009900]
test rax, rax
jne 0x140002184
mov rcx, qword [0x1400098b8]
lea rdx, [0x140006dd8]
call fcn.140003510
mov qword [0x140009900], rax
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call rax
mov rax, qword [0x140009830]
test rax, rax
jne 0x1400021b5
mov rcx, qword [0x1400098b8]
lea rdx, [0x140006df0]
call fcn.140003510
mov qword [0x140009830], rax
xor r8d, r8d
lea rcx, str._SHGetSpecialFolderPath
xor edx, edx
call rax
mov rsi, qword [str._SHGetSpecialFolderPath]
mov rdi, rax
mov rax, qword [0x140009900]
test rax, rax
jne 0x1400021f3
mov rcx, qword [0x1400098b8]
lea rdx, [0x140006dd8]
call fcn.140003510
mov qword [0x140009900], rax
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call rax
mov rsi, qword [rsp + 0x30]
call fcn.1400011c0
lea rcx, [0x1400064b0]
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x1400022a1
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rdi, rax
mov rax, qword [0x140009868]
test rax, rax
jne 0x140002251
mov rcx, qword [0x1400098b8]
lea rdx, [0x1400069f8]
call fcn.140003510
mov qword [0x140009868], rax
lea rdx, [0x1400064c0]
mov rcx, rdi
call rax
test eax, eax
je 0x1400022a1
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rdi, rax
mov rax, qword [0x140009960]
test rax, rax
jne 0x140002292
mov rcx, qword [0x1400098b8]
lea rdx, [0x140006a10]
call fcn.140003510
mov qword [0x140009960], rax
xor r8d, r8d
lea rdx, [0x1400064c0]
mov rcx, rdi
call rax
mov rax, qword [0x1400097b8]
mov rdi, qword [rsp + 0x38]
test rax, rax
jne 0x1400022cc
mov rcx, qword [0x1400098b8]
lea rdx, [0x140006a98]
call fcn.140003510
mov qword [0x1400097b8], rax
call rax
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x140003ba0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140003bea
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140003bea
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003bea
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140003bea
cmp dword [rcx + 0x84], 0xe
jbe 0x140003bea
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140003bec
xor al, al
add rsp, 0x28
ret
Function at 0x140060a40
Capabilities:
Encode data using xor

Disassembly:
sbb dword [rcx - 0x53], esi
movabs byte [0xa44d39cc78cc7a7f], al
jle 0x140060a1b
pop rsp
clc
invalid
stosb byte [rdi], al
stosd dword [rdi], eax
invalid
popfq
out dx, al
fnstsw word [rax - 8]
lodsd eax, dword [rsi]
xor byte [rdi], ch
stosd dword [rdi], eax
pushfq
in al, 0xc2
scasd eax, dword [rdi]
out 0x7c, al
xchg byte [rbx], dl
loop 0x140060a2e
in eax, dx
in eax, dx
lodsb al, byte [rsi]
jbe 0x140060a2e
add edx, dword [rsp + rbx*2 + 0x7666bee6]
push rcx
jb 0x140060a7c
push rsp
cmp dword [rbx + 0x3c], 0xffffffda
jns 0x140060a09
test al, 0x50
pop rsp
or byte [rdx], 8
cld
invalid
test byte [rsi], al
xor dl, dl
jmp [rdx - 0x5ed9dd8f]

Function at 0x140061f10
Capabilities:
Encode data using xor

Disassembly:
lodsb al, byte [rsi]
mov ebx, 0x87541a65
add eax, 0xe859cdf7
adc dword [rax - 1], ebx
sbb al, 0x37
pop rdx
enter 0x1504, 0x6d
or dword [rsi + 0x4aa9184e], eax
add eax, 0xbc0f625f
lea ecx, [rbp - 0x5c]
add eax, 0xc86e3354
sbb dh, dh
xor dword [r10 + 0x36], esp
outsb dx, byte [rsi]
enter 0xfffffffffffff61a, 0x43
xor dword [rdx + 0x36], esp
cli
je 0x140061f37
or byte [rbx + rbx*4 + 0x1427ab6], dh
xchg ah, dl
lahf
test eax, 0xd0af8a61
xor esp, dword [0x17b190cbd]
jae 0x140061fa9
cmpsd dword [rsi], dword [rdi]
adc eax, 0xccd9ea9a
fisub dword [rsi + rcx*8 + 0x5a]
test dword [rdi + 0x57d67044], ecx
cmp ebx, dword [rdi + rbx*2 + 4]
or al, 0xca
adc al, 0xe0
add esi, 0xe2fd497c
imul eax, edx, 0xffffff83
jp 0x140061f16
invalid
cwde
pop rbp
jmp 0x140061f70
Function at 0x1413b7058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1413b71df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1413b7089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1413b706f
add dl, dl
jne 0x1413b7096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1413b70f6
xor eax, eax
add dl, dl
jne 0x1413b70a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1413b71ad
add dl, dl
jne 0x1413b70b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1413b70c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1413b70d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1413b70dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1413b70ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1413b707e
mov eax, 1
add dl, dl
jne 0x1413b7106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1413b7113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1413b70fb
sub eax, ebx
mov ebx, 1
jne 0x1413b714c
mov ecx, 1
add dl, dl
jne 0x1413b712e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1413b713b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1413b7123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1413b707e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1413b7168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1413b7175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1413b715d
cmp eax, 0x7d00
jae 0x1413b719b
cmp eax, 0x500
jb 0x1413b7196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1413b707e
cmp eax, 0x7f
ja 0x1413b719e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1413b707e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1413b71d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1413b707e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x10000bae0
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r12
push r13
sub rsp, 0xb0
xor ebx, ebx
mov dword [rsp + 0x20], ebx
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
mov r12d, ebx
xor eax, eax
lock cmpxchg qword [0x100011df8], rdi
je 0x10000bb40
cmp rax, rdi
jne 0x10000bb33
mov r12d, 1
jmp 0x10000bb40
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10000bb19
mov eax, dword [0x100011df0]
cmp eax, 1
jne 0x10000bb55
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x10000bbbc
mov eax, dword [0x100011df0]
cmp eax, ebx
jne 0x10000bbb2
mov dword [0x100011df0], 1
lea r13, [0x100001448]
lea rdi, [0x100001430]
mov qword [rsp + 0x30], rdi
mov eax, ebx
mov dword [rsp + 0x24], ebx
cmp rdi, r13
jae 0x10000bba4
cmp eax, ebx
jne 0x10000bba4
mov rcx, qword [rdi]
cmp rcx, rbx
je 0x10000bb99
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x10000bb82
cmp eax, ebx
je 0x10000bbbc
mov eax, 0xff
jmp 0x10000bd04
mov dword [0x1000115d4], 1
mov eax, dword [0x100011df0]
cmp eax, 1
jne 0x10000bbe4
lea rdx, [0x100001428]
lea rcx, [0x1000013f0]
call sub.msvcrt.dll__initterm
mov dword [0x100011df0], 2
cmp r12d, ebx
jne 0x10000bbf3
mov rax, rbx
xchg qword [0x100011df8], rax
cmp qword [0x100011e10], rbx
je 0x10000bc1b
lea rcx, [0x100011e10]
call fcn.10000c0cc
cmp eax, ebx
je 0x10000bc1b
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x100011e10]
mov rcx, qword [sym.imp.msvcrt.dll__wcmdln]
cmp qword [rcx], rbx
jne 0x10000bc31
mov eax, 0xff
jmp 0x10000bd04
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
ja 0x10000bcb6
cmp word [rcx], bx
je 0x10000bc4c
cmp edx, ebx
jne 0x10000bcb6
cmp word [rcx], bx
je 0x10000bc62
cmp word [rcx], 0x20
ja 0x10000bc62
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x10000bc4c
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x100000000]
call fcn.100002d14
mov dword [0x1000115d0], eax
cmp dword [0x1000115b4], ebx
jne 0x10000bca0
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1000115d4], ebx
jne 0x10000bcb4
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1000115d0]
jmp 0x10000bd04
cmp word [rcx], 0x22
jne 0x10000bcc9
mov eax, ebx
cmp edx, ebx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x10000bc3d
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r12, qword [r11 + 0x20]
mov rsp, r11
pop r13
ret
sub rsp, 0x28
call fcn.100182000
add rsp, 0x28
jmp 0x10000bae0
Function at 0x407a40
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 [0x007030a8], 0
je 0x407afb
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle
mov rdi, rax
mov rcx, rsi
call fcn.0040edc0
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 [0x006c50c0]
call fcn.0040edc0
mov rcx, rsi
mov rdx, qword [0x006c50c0]
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.0040edc0
mov rcx, rsi
mov rdx, rbx
mov r8d, eax
lea r9, [rbp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x407b10
xor rcx, rcx
mov rdx, rbx
mov r8, rsi
mov r9d, 0x2010
call sub.user32.dll_MessageBoxA
lea rsp, [rbp + 0x48]
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x40c180
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.0040c7e0
mov esi, eax
test sil, sil
jne 0x40c342
test ebx, ebx
je 0x40c342
xor rdi, rdi
test r13d, r13d
jle 0x40c267
call sub.kernel32.dll_GetTickCount
mov r14d, eax
mov dword [rbp + 0x3c], 0
test r13d, r13d
jle 0x40c246
cmp ebx, 0xffffffff
je 0x40c1f3
call sub.kernel32.dll_GetTickCount
sub eax, r14d
cmp eax, ebx
jb 0x40c1f3
xor rsi, rsi
jmp 0x40c342
mov rax, qword [rbp + 0x28]
cmp dword [rax], 1
jg 0x40c246
mov rax, qword [rbp + 0x28]
cmp dword [rax], 0
jne 0x40c234
xor eax, eax
mov ecx, 1
mov rdx, qword [rbp + 0x28]
lock cmpxchg dword [rdx], ecx
test eax, eax
jne 0x40c234
call sub.kernel32.dll_GetCurrentThreadId
mov rcx, qword [rbp + 0x28]
mov dword [rcx + 8], eax
mov dword [rcx + 4], 1
mov sil, 1
jmp 0x40c342
lea rcx, [rbp + 0x3c]
call fcn.0040bd30
sub r13d, 1
test r13d, r13d
jg 0x40c1da
nop
cmp ebx, 0xffffffff
je 0x40c267
call sub.kernel32.dll_GetTickCount
mov ecx, eax
sub ecx, r14d
cmp ecx, ebx
jb 0x40c262
xor rsi, rsi
jmp 0x40c342
sub eax, r14d
sub ebx, eax
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
test ecx, ecx
je 0x40c19d
mov edx, ecx
add edx, 2
mov eax, ecx
mov r8, qword [rbp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x40c267
nop
call sub.kernel32.dll_GetTickCount
mov r14d, eax
mov rcx, qword [rbp + 0x28]
call fcn.0040c3f0
xor rcx, rcx
mov rdx, rax
mov r8d, ebx
mov rax, qword [0x007039a0]
call qword [rax + 0x20]
test eax, eax
sete sil
cmp ebx, 0xffffffff
je 0x40c2d1
call sub.kernel32.dll_GetTickCount
mov ecx, eax
sub ecx, r14d
cmp ecx, ebx
jae 0x40c2ce
sub eax, r14d
sub ebx, eax
jmp 0x40c2d1
xor rbx, rbx
test sil, sil
je 0x40c303
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
mov eax, ecx
test eax, 1
jne 0x40c300
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 0x40c2d6
mov dil, 1
nop
jmp 0x40c320
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 0x40c303
mov dil, 1
test dil, dil
je 0x40c28a
nop
test sil, sil
je 0x40c342
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 0x40e040
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
cmp byte [0x007030a8], 0
je 0x40e0de
cmp word [0x007033b8], 0xd7b2
jne 0x40e073
cmp dword [0x007033c0], 0
jbe 0x40e073
lea rcx, [0x007033b0]
call qword [0x007033d8]
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
lea rdx, [0x006c6a04]
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, [0x0040e114]
call fcn.0040f3a0
mov rcx, rbx
mov rdx, rax
mov r8d, 2
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x40e100
cmp byte [0x006c5052], 0
jne 0x40e100
xor rcx, rcx
lea rdx, [0x006c6a04]
lea r8, str.Error
xor r9, r9
call sub.user32.dll_MessageBoxA
add rsp, 0x40
pop rbx
ret

Function at 0x40e3e0
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 [0x006c5058], 0
je 0x40e411
mov rcx, rsi
mov rdx, rdi
call qword [0x006c5058]
mov r13, rax
jmp 0x40e427
mov ecx, 0x10
call fcn.00408cd0
mov r13, rax
mov qword [r13], rsi
mov qword [r13 + 8], rdi
mov byte [0x007030a9], 1
mov rcx, qword [rsp + 0x38]
mov edx, ebx
lea r8, [0x0040e370]
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 rbx, rax
test rbx, rbx
jne 0x40e46c
mov rcx, r13
call fcn.00408d00
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r13
ret

Function at 0x412010
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
lea rcx, [0x00707e70]
call sub.kernel32.dll_InitializeCriticalSection
mov word [0x00707e98], 0x7f
call sub.kernel32.dll_GetVersion
and eax, 0xff
cmp eax, 6
setae al
mov byte [0x00707e68], al
cmp byte [0x00707e68], 0
je 0x4120af
lea rcx, [0x004120b4]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x004120ce]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00707e50], rax
lea rcx, [0x004120b4]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x004120ec]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00707e58], rax
lea rcx, [0x004120b4]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0041210a]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00707e60], rax
add rsp, 0x28
ret
Function at 0x412390
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.0040e5f0
movzx rax, word [rbp + 0x4e]
cmp word [0x006c70e8], ax
ja 0x412478
movzx rax, word [rbp + 0x4e]
cmp ax, word [0x006c74e8]
mov word [rbp + 0x4e], ax
ja 0x412478
mov ecx, 0x40
xor r8, r8
cmp ecx, r8d
jb 0x412477
mov eax, ecx
add eax, r8d
mov r9d, 2
xor edx, edx
div r9d
lea rdx, [0x006c70e8]
mov r9d, eax
add r9, r9
movzx r10, word [rbp + 0x4e]
cmp word [rdx + r9*8], r10w
jbe 0x412431
mov ecx, eax
sub ecx, 1
jmp 0x412472
lea rdx, [0x006c70e8]
mov r8d, eax
add r8, r8
movzx r9, word [rbp + 0x4e]
cmp word [rdx + r8*8], r9w
jae 0x412453
mov r8d, eax
add r8d, 1
jmp 0x412472
mov rcx, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x40]
lea r8, [0x006c70f0]
mov eax, eax
add rax, rax
mov r8, qword [r8 + rax*8]
call fcn.00412220
jmp 0x412477
cmp ecx, r8d
jae 0x412400
nop
mov rax, qword [rbp + 0x40]
cmp qword [rax], 0
jne 0x41255a
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x41255a
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.0040fa30
lea rcx, [rbp + 0x60]
lea rdx, [rbp + 0x7c]
mov r8d, 0x55
call fcn.0040fa30
lea rcx, [rbp + 0x58]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.0040fa30
mov rcx, qword [rbp + 0x40]
mov edx, 5
mov r8, qword [rbp + 0x68]
lea r9, [0x004125b4]
mov rax, qword [rbp + 0x60]
mov qword [rsp + 0x20], rax
lea rax, [0x004125c4]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.0040feb0
nop
lea rcx, [rbp + 0x58]
mov edx, 3
call fcn.0040e6d0
mov rax, qword [rbp + 0x40]
lea rsp, [rbp + 0x1d0]
pop rbp
ret
Function at 0x4127d0
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, [0x00707e70]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
cmp word [0x00707e98], ax
jne 0x41283b
mov rcx, qword [rbp + 0x28]
lea rdx, [0x00707e9a]
mov r8d, 0x55
call fcn.0040fa30
lea rcx, [0x00707e70]
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x412946
lea rcx, [0x00707e70]
call sub.kernel32.dll_LeaveCriticalSection
mov rcx, qword [rbp + 0x28]
call fcn.0040e5f0
movzx rcx, word [rbp + 0x36]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x412900
cmp byte [0x00707e68], 0
je 0x412894
mov rcx, rbp
lea rdx, [rbp + 0x48]
movzx r8, word [rbp + 0x36]
call fcn.00412660
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x48]
call fcn.0040ec20
jmp 0x412900
mov rcx, rbp
lea rdx, [rbp + 0x40]
movzx r8, word [rbp + 0x36]
call fcn.00412390
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.0040ec20
call sub.kernel32.dll_GetSystemDefaultUILanguage
movzx rcx, word [rbp + 0x36]
cmp cx, ax
mov word [rbp + 0x36], cx
je 0x412900
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
je 0x4128df
mov rcx, qword [rbp + 0x28]
lea rdx, [0x00412994]
call fcn.0040fca0
call sub.kernel32.dll_GetSystemDefaultUILanguage
mov rcx, rbp
lea rdx, [rbp + 0x38]
mov r8d, eax
call fcn.00412390
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x38]
call fcn.0040fca0
lea rcx, [0x00707e70]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
mov word [0x00707e98], ax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax]
call fcn.0040f960
lea rcx, [0x00707e9a]
mov edx, 0xaa
mov r8, rax
call fcn.00412140
lea rcx, [0x00707e70]
call sub.kernel32.dll_LeaveCriticalSection
nop
lea rcx, [rbp + 0x38]
mov edx, 3
call fcn.0040e6d0
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x413370
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.0040e780
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.0040fa30
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x38]
call fcn.0040fd90
mov rcx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax]
call fcn.00413190
test al, al
jne 0x41343e
mov word [rbp + 0x4c], 0
lea rcx, [rbp + 0x30]
lea rdx, [rbp + 0x48]
mov r8d, 4
call fcn.0040fa30
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x30]
call fcn.0040fd90
mov rcx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax]
call fcn.00413190
test al, al
jne 0x41343e
mov rcx, qword [rbp + 0x20]
call fcn.0040e5f0
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.0040e6d0
lea rcx, [rbp + 0x70]
call fcn.0040e5f0
mov rax, qword [rbp + 0x20]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x4134b0
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.0040e780
mov rcx, qword [rbp + 0x90]
call fcn.0040e780
nop
mov rcx, qword [rbp + 0x28]
call fcn.0040e5f0
cmp qword [rbp + 0x90], 0
je 0x413676
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
call fcn.0040eca0
xor rax, rax
cmp qword [rbp + 0x90], 0
je 0x413561
mov rax, qword [rbp + 0x90]
mov eax, dword [rax - 4]
cmp eax, 1
jl 0x41359b
mov rcx, qword [rbp + 0x90]
movsxd rdx, eax
cmp word [rcx + rdx*2 - 2], 0x2e
jne 0x413594
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
mov r8d, 1
mov r9d, eax
call fcn.0040ffa0
jmp 0x41359b
sub eax, 1
test eax, eax
jne 0x413566
nop
lea rcx, [rbp + 0x68]
mov rdx, qword [rbp + 0x88]
call fcn.00413080
cmp qword [rbp + 0x68], 0
je 0x4135d9
mov rcx, rbp
lea rdx, [rbp + 0x58]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x68]
call fcn.00413230
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x58]
call fcn.0040ec20
jmp 0x413675
call sub.kernel32.dll_GetUserDefaultUILanguage
lea rcx, [rbp + 0x48]
mov edx, eax
call fcn.004127d0
mov rcx, rbp
lea rdx, [rbp + 0x50]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x48]
call fcn.00413230
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x50]
call fcn.0040ec20
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x41364e
cmp byte [0x00707e68], 0
jne 0x41364e
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea rcx, [rbp + 0x38]
mov edx, eax
call fcn.004127d0
mov rcx, rbp
lea rdx, [rbp + 0x40]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x38]
call fcn.00413230
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.0040ec20
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x413675
mov rcx, rbp
lea rdx, [rbp + 0x30]
mov r8, qword [rbp + 0x60]
call fcn.00413370
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x30]
call fcn.0040ec20
nop
lea rcx, [rbp + 0x30]
mov edx, 8
call fcn.0040e6d0
lea rcx, [rbp + 0x88]
mov edx, 2
call fcn.0040e6d0
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x70]
pop rbp
ret

Function at 0x4143f0
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 0x414410
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 0x414434
cmp eax, 1
jae 0x414439
cmp ecx, 5
jbe 0x414445
mov dword [0x007039b0], 0x7f
jmp 0x41444f
mov dword [0x007039b0], 0x409
add rsp, 0x28
ret