joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002520
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
cmp byte [0x140009790], 0
je 0x140002571
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___doserrno]
mov ecx, dword [rax]
test ecx, ecx
jne 0x140002545
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
test ecx, ecx
je 0x140002571
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
cmp eax, 0x8007000e
je 0x140002560
cmp eax, 0x80070008
jne 0x140002571
call fcn.140002898
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
add rsp, 0x28
ret

Function at 0x1400025ec
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rax, rdx
mov r9, rcx
mov rcx, rax
mov edx, 1
mov rbx, r8
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, rbx
jne 0x140002614
add rsp, 0x20
pop rbx
ret
call fcn.140002520
mov ecx, 0x44f
call fcn.1400026a4
int3

Function at 0x14000266c
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rax, rdx
mov r9, rcx
mov rcx, rax
mov edx, 1
mov rbx, r8
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rax, rbx
jne 0x140002694
add rsp, 0x20
pop rbx
ret
call fcn.140002520
mov ecx, 0x452
call fcn.1400026a4
int3

Function at 0x1400026a4
Capabilities:
Delete file
Terminate process

Disassembly:
mov rax, rsp
mov dword [rax + 8], ecx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbx
sub rsp, 0x20
mov edx, ecx
lea rbx, [rax + 0x10]
lea rcx, str.CVTRES_:_fatal_error_CVT_04u:
call fcn.1400028d8
mov ecx, dword [rsp + 0x30]
call fcn.140004e14
mov rcx, rax
mov rdx, rbx
call fcn.140002978
call fcn.140002900
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fcloseall]
mov rcx, qword [0x1400097a0]
test rcx, rcx
je 0x1400026fe
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wremove]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x140003640
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov rdi, r8
mov esi, edx
mov rbp, rcx
test edx, edx
jne 0x140003668
xorps xmm0, xmm0
mov al, 1
movups xmmword [r8], xmm0
jmp 0x14000371b
mov rcx, qword [0x1400097f8]
test rcx, rcx
jne 0x1400036a1
lea r9d, [rcx + 1]
mov dword [rsp + 0x20], 0xf0000000
lea rcx, [0x1400097f8]
xor edx, edx
lea r8, str.Microsoft_Base_Cryptographic_Provider_v1.0
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1400036c0
mov rcx, qword [0x1400097f8]
lea rax, [rsp + 0x68]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x8003
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1400036c4
xor al, al
jmp 0x14000371b
mov rcx, qword [rsp + 0x68]
xor r9d, r9d
mov r8d, esi
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rsp + 0x68]
test eax, eax
jne 0x1400036e9
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x1400036c0
lea r9, [rsp + 0x58]
mov dword [rsp + 0x58], 0x10
mov r8, rdi
mov dword [rsp + 0x20], ebx
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x14000370e
mov bl, 1
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov al, bl
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
Function at 0x140004e14
Capabilities:
Extract resource via kernel32 functions
Resolve path using msvcrt

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x680
mov rax, qword [0x140009010]
xor rax, rsp
mov qword [rsp + 0x670], rax
xor ebx, ebx
mov esi, ecx
cmp byte [0x1400098c0], bl
jne 0x140004f01
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p__wpgmptr]
mov qword [rsp + 0x40], rbx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x38], rbx
lea r9, [rsp + 0x260]
mov edi, 0x100
lea r8d, [rbx + 3]
mov qword [rsp + 0x30], rdi
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rax]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wsplitpath_s]
lea r9, [rsp + 0x260]
mov qword [rsp + 0x28], rbx
lea r8, [rsp + 0x50]
mov qword [rsp + 0x20], rbx
lea edx, [rdi + 4]
lea rcx, [rsp + 0x460]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wmakepath_s]
or r9, 0xffffffffffffffff
lea r8, str.UI.DLL
mov edx, edi
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
test eax, eax
jne 0x140004eee
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x460]
call fcn.140002ea8
test eax, eax
js 0x140004eee
mov rdi, qword [0x1400098c8]
jmp 0x140004ef8
mov rdi, rbx
mov qword [0x1400098c8], rbx
mov byte [0x1400098c0], 1
jmp 0x140004f08
mov rdi, qword [0x1400098c8]
movzx r9d, word [0x1400098d0]
mov eax, esi
shr eax, 4
mov edx, 6
inc ax
mov rcx, rdi
movzx r8d, ax
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
test rax, rax
je 0x140004f68
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
test rax, rax
je 0x140004f68
and esi, 0xf
je 0x140004f58
movzx eax, word [rcx]
lea rcx, [rcx + rax*2]
add rcx, 2
add esi, 0xffffffff
jne 0x140004f48
movzx eax, word [rcx]
add rcx, 2
neg ax
sbb rbx, rbx
and rbx, rcx
mov rax, rbx
mov rcx, qword [rsp + 0x670]
xor rcx, rsp
call fcn.140005220
lea r11, [rsp + 0x680]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140007590
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10088
call fcn.140028c50
sub rsp, rax
mov rax, qword [0x14005ea58]
xor rax, rsp
mov qword [rsp + 0x10070], rax
xor eax, eax
mov rdx, rcx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x70], ax
mov word [rsp + 0x20], ax
lea r8d, [rax + 0x28]
call fcn.1400236d0
mov r8d, 0x10000
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x14000760d
lea rcx, [rsp + 0x70]
call fcn.140038084
mov rcx, qword [rsp + 0x10070]
xor rcx, rsp
call fcn.140028c20
add rsp, 0x10088
ret
xor eax, eax
mov rcx, qword [rsp + 0x10070]
xor rcx, rsp
call fcn.140028c20
add rsp, 0x10088
ret

Function at 0x1400076c0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14005ea58]
xor rax, rsp
mov qword [rsp + 0x70], rax
lea rcx, [0x1400451b0]
call fcn.140007590
xor edi, edi
mov qword [0x1400602b8], rax
lea rdx, [0x1400451b0]
mov word [rsp + 0x20], di
lea rcx, [rsp + 0x20]
lea r8d, [rdi + 0x28]
call fcn.1400236d0
lea rdx, [0x1400451b8]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea rcx, str.PYTHONHOME
call fcn.140007590
mov cl, 1
mov qword [0x1400602c0], rax
call fcn.140024880
lea r8d, [rdi + 0x28]
mov word [rsp + 0x20], di
lea rdx, str.PYTHONHOME
mov rbx, rax
lea rcx, [rsp + 0x20]
call fcn.1400236d0
mov rdx, rbx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov cl, 1
call fcn.140024880
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140028c20
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret
Function at 0x140007c50
Capabilities:
Set environment variable

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x80
mov rax, qword [0x14005ea58]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r14, r8
mov rsi, rdx
mov rbp, rcx
call fcn.140015ad0
lea rdx, str.environ
mov rcx, rax
call qword [sym.imp.python311.dll_PyObject_GetAttrString]
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.python311.dll_PyUnicode_FromString]
mov rdx, rsi
lea rcx, [rsp + 0x20]
mov rdi, rax
xor eax, eax
mov word [rsp + 0x20], ax
lea r8d, [rax + 0x28]
call fcn.1400236d0
lea rcx, [rsp + 0x20]
test r14, r14
je 0x140007d13
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, 0xffffffffffffffff
mov rcx, r14
call sub.python311.dll_PyUnicode_FromWideChar
mov r8, rax
mov rdx, rdi
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.python311.dll_PyObject_SetItem]
test eax, eax
je 0x140007d01
mov ecx, 1
call qword [sym.imp.python311.dll_PyErr_PrintEx]
mov ecx, 1
call qword [sym.imp.python311.dll_Py_Exit]
int3
sub qword [rsi], 1
jne 0x140007d33
mov rax, qword [rsi + 8]
mov rcx, rsi
call qword [rax + 0x30]
jmp 0x140007d33
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.python311.dll_PyObject_DelItem]
test eax, eax
je 0x140007d33
mov rcx, rbp
call fcn.140007150
sub qword [rdi], 1
jne 0x140007d43
mov rax, qword [rdi + 8]
mov rcx, rdi
call qword [rax + 0x30]
sub qword [rbx], 1
jne 0x140007d53
mov rax, qword [rbx + 8]
mov rcx, rbx
call qword [rax + 0x30]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140028c20
add rsp, 0x80
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140023780
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r8, rcx
mov eax, 0xffffffff
test edx, edx
je 0x140023844
mov r9d, edx
nop dword [rax]
nop word [rax + rax]
movzx edx, byte [r8]
lea r8, [r8 + 1]
xor eax, edx
mov edx, eax
and dl, 1
neg dl
sbb ecx, ecx
shr eax, 1
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
and al, 1
neg al
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
neg al
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
neg al
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
neg al
sbb eax, eax
shr ecx, 1
and eax, 0xedb88320
xor eax, ecx
sub r9, 1
jne 0x1400237a0
not eax
ret
Function at 0x140029664
Capabilities:
Parse pe header

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

Function at 0x14002c4f0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14002c383
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002c383
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002c383
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002c383
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002c383
cmp dword [rcx + 0x84], 0xe
jbe 0x14002c383
cmp dword [rcx + 0xf8], 0
je 0x14002c383
mov ecx, ebx
call fcn.14002c424
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.14002c214
cmp dword [rbp + 0x20], 0
je 0x14002c3d0
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14002c3d8
int3
xor r8d, r8d
xor edx, edx
jmp 0x14002c31c
Function at 0x408280
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 [0x005940a0], 0
je 0x408338
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle
mov rdi, rax
mov rcx, rsi
call fcn.004101b0
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 [0x0056c0e0]
call fcn.004101b0
mov rcx, rsi
mov rdx, qword [0x0056c0e0]
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.004101b0
mov rcx, rsi
mov rdx, rbx
mov r8d, eax
lea r9, [rbp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x40834b
xor ecx, ecx
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 0x40d510
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.0040db60
mov esi, eax
test sil, sil
jne 0x40d6c4
test ebx, ebx
je 0x40d6c4
xor edi, edi
test r13d, r13d
jle 0x40d5f1
call sub.kernel32.dll_GetTickCount
mov r14d, eax
mov dword [rbp + 0x3c], 0
test r13d, r13d
jle 0x40d5d5
cmp ebx, 0xffffffff
je 0x40d583
call sub.kernel32.dll_GetTickCount
sub eax, r14d
cmp eax, ebx
jb 0x40d583
xor esi, esi
jmp 0x40d6c4
mov rax, qword [rbp + 0x28]
cmp dword [rax], 1
jg 0x40d5d5
mov rax, qword [rbp + 0x28]
cmp dword [rax], 0
jne 0x40d5c3
xor eax, eax
mov ecx, 1
mov rdx, qword [rbp + 0x28]
lock cmpxchg dword [rdx], ecx
test eax, eax
jne 0x40d5c3
call sub.kernel32.dll_GetCurrentThreadId
mov rcx, qword [rbp + 0x28]
mov dword [rcx + 8], eax
mov dword [rcx + 4], 1
mov sil, 1
jmp 0x40d6c4
lea rcx, [rbp + 0x3c]
call fcn.0040d0b0
sub r13d, 1
test r13d, r13d
jg 0x40d56a
nop
cmp ebx, 0xffffffff
je 0x40d5f1
call sub.kernel32.dll_GetTickCount
sub eax, r14d
cmp eax, ebx
jb 0x40d5ef
xor esi, esi
jmp 0x40d6c4
sub ebx, eax
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
test ecx, ecx
je 0x40d52d
mov edx, ecx
add edx, 2
mov eax, ecx
mov r8, qword [rbp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x40d5f1
nop
call sub.kernel32.dll_GetTickCount
mov r14d, eax
mov rcx, qword [rbp + 0x28]
call fcn.0040d770
xor ecx, ecx
mov rdx, rax
mov r8d, ebx
mov rax, qword [0x00594998]
call qword [rax + 0x20]
test eax, eax
sete sil
cmp ebx, 0xffffffff
je 0x40d654
call sub.kernel32.dll_GetTickCount
sub eax, r14d
cmp eax, ebx
jae 0x40d652
sub ebx, eax
jmp 0x40d654
xor ebx, ebx
test sil, sil
je 0x40d685
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
mov eax, ecx
test eax, 1
jne 0x40d682
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 0x40d659
mov dil, 1
nop
jmp 0x40d6a2
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 0x40d685
mov dil, 1
test dil, dil
je 0x40d614
nop
test sil, sil
je 0x40d6c4
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 0x40f3d0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
cmp byte [0x005940a0], 0
je 0x40f46a
cmp word [0x005943b0], 0xd7b2
jne 0x40f403
cmp dword [0x005943b8], 0
jbe 0x40f403
lea rcx, [0x005943a8]
call qword [0x005943d0]
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
lea rdx, [0x0056df20]
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, [0x0040f4a0]
call fcn.004107d0
mov rcx, rbx
mov rdx, rax
mov r8d, 2
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x40f48b
cmp byte [0x0056c05a], 0
jne 0x40f48b
xor ecx, ecx
lea rdx, [0x0056df20]
lea r8, str.Error
xor r9, r9
call sub.user32.dll_MessageBoxA
add rsp, 0x40
pop rbx
ret

Function at 0x40f750
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 [0x0056c060], 0
je 0x40f781
mov rcx, rsi
mov rdx, rdi
call qword [0x0056c060]
mov r13, rax
jmp 0x40f796
mov ecx, 0x10
call fcn.00409260
mov r13, rax
mov qword [r13], rsi
mov qword [r13 + 8], rdi
mov byte [0x005940a1], 1
mov rcx, qword [rsp + 0x38]
mov edx, ebx
lea r8, [0x0040f6e0]
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 0x40f7db
mov rcx, r13
call fcn.00409290
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r13
ret

Function at 0x414970
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
lea rcx, [0x00598f00]
call sub.kernel32.dll_InitializeCriticalSection
mov word [0x00598f28], 0x7f
call sub.kernel32.dll_GetVersion
and eax, 0xff
cmp eax, 6
setae al
mov byte [0x00598ef8], al
cmp byte [0x00598ef8], 0
je 0x414a0e
lea rcx, [0x00414a14]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x00414a2e]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00598ee0], rax
lea rcx, [0x00414a14]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x00414a4c]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00598ee8], rax
lea rcx, [0x00414a14]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x00414a6a]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00598ef0], rax
add rsp, 0x28
ret
Function at 0x414cb0
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.0040f950
movzx rax, word [rbp + 0x56]
cmp word [0x0056e8a8], ax
ja 0x414d86
movzx rax, word [rbp + 0x56]
cmp ax, word [0x0056eca8]
mov word [rbp + 0x56], ax
ja 0x414d86
mov eax, 0x40
xor ecx, ecx
cmp eax, ecx
jb 0x414d85
mov edx, eax
add edx, ecx
shr edx, 1
mov r8d, edx
lea r9, [0x0056e8a8]
mov r10, r8
add r10, r10
movzx r11, word [rbp + 0x56]
cmp word [r9 + r10*8], r11w
jbe 0x414d44
mov eax, edx
sub eax, 1
jmp 0x414d81
lea rcx, [0x0056e8a8]
mov r9, r8
add r9, r9
movzx r10, word [rbp + 0x56]
cmp word [rcx + r9*8], r10w
jae 0x414d64
mov ecx, edx
add ecx, 1
jmp 0x414d81
mov rcx, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x48]
lea rax, [0x0056e8b0]
add r8, r8
mov r8, qword [rax + r8*8]
call fcn.00414b60
jmp 0x414d85
cmp eax, ecx
jae 0x414d1a
nop
mov rax, qword [rbp + 0x48]
cmp qword [rax], 0
jne 0x414e5b
movzx rcx, word [rbp + 0x56]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x414e5b
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.00410d70
lea rcx, [rbp + 0x60]
lea rdx, [rbp + 0x7c]
mov r8d, 0x55
call fcn.00410d70
lea rcx, [rbp + 0x58]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.00410d70
mov rcx, qword [rbp + 0x48]
mov edx, 5
mov r8, qword [rbp + 0x68]
lea r9, [0x00414ea8]
mov rax, qword [rbp + 0x60]
mov qword [rsp + 0x20], rax
lea rax, [0x00414eb8]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.004111d0
nop
lea rcx, [rbp + 0x58]
mov edx, 3
call fcn.0040fa30
mov rax, qword [rbp + 0x48]
lea rsp, [rbp + 0x1d8]
pop rbx
pop rbp
ret
Function at 0x4150b0
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, [0x00598f00]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
cmp word [0x00598f28], ax
jne 0x41511a
mov rcx, qword [rbp + 0x28]
lea rdx, [0x00598f2a]
mov r8d, 0x55
call fcn.00410d70
lea rcx, [0x00598f00]
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x415223
lea rcx, [0x00598f00]
call sub.kernel32.dll_LeaveCriticalSection
mov rcx, qword [rbp + 0x28]
call fcn.0040f950
movzx rcx, word [rbp + 0x36]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4151de
cmp byte [0x00598ef8], 0
je 0x415172
mov rcx, rbp
lea rdx, [rbp + 0x48]
movzx r8, word [rbp + 0x36]
call fcn.00414f50
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x48]
call fcn.0040ffc0
jmp 0x4151de
mov rcx, rbp
lea rdx, [rbp + 0x40]
movzx r8, word [rbp + 0x36]
call fcn.00414cb0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.0040ffc0
call sub.kernel32.dll_GetSystemDefaultUILanguage
movzx rcx, word [rbp + 0x36]
cmp cx, ax
mov word [rbp + 0x36], cx
je 0x4151de
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
je 0x4151bd
mov rcx, qword [rbp + 0x28]
lea rdx, [0x00415268]
call fcn.00410fe0
call sub.kernel32.dll_GetSystemDefaultUILanguage
mov rcx, rbp
lea rdx, [rbp + 0x38]
mov r8d, eax
call fcn.00414cb0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x38]
call fcn.00410fe0
lea rcx, [0x00598f00]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
mov word [0x00598f28], ax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax]
call fcn.00410cb0
lea rcx, [0x00598f2a]
mov edx, 0xaa
mov r8, rax
call fcn.00414aa0
lea rcx, [0x00598f00]
call sub.kernel32.dll_LeaveCriticalSection
nop
lea rcx, [rbp + 0x38]
mov edx, 3
call fcn.0040fa30
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x415bd0
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.0040fb20
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.00410d70
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x38]
call fcn.004110a0
mov rcx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x28]
mov rdx, qword [rax]
call fcn.00415a20
test al, al
jne 0x415c9a
mov word [rbp + 0x4c], 0
lea rcx, [rbp + 0x30]
lea rdx, [rbp + 0x48]
mov r8d, 4
call fcn.00410d70
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x30]
call fcn.004110a0
mov rcx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x28]
mov rdx, qword [rax]
call fcn.00415a20
test al, al
jne 0x415c9a
mov rcx, qword [rbp + 0x28]
call fcn.0040f950
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.0040fa30
lea rcx, [rbp + 0x70]
call fcn.0040f950
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x50]
pop rbp
ret