joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140017d40
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x40
mov rsi, r8
mov rbx, rdx
mov rbp, rcx
test rdx, rdx
jne 0x140017d70
or eax, 0xffffffff
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop rsi
ret
mov r10, qword [rsp + 0x70]
mov qword [rsp + 0x50], rdi
test r10, r10
je 0x140017eaa
mov r10, qword [r10]
test r10, r10
je 0x140017eaa
cmp word [r10], 0
je 0x140017eaa
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r10
repne scasw ax, word [rdi]
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x30]
not rcx
xor edi, edi
mov edx, ecx
mov rcx, r10
mov qword [rsp + 0x30], rdi
call fcn.1400100c0
test eax, eax
jne 0x140017ee7
mov rcx, qword [rsp + 0x30]
call fcn.140006e70
test eax, eax
je 0x140017e0b
call qword [sym.imp.KERNEL32.DLL_GetProcessHeap]
mov r8, qword [rsp + 0x30]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_HeapFree]
call fcn.140019be0
mov edx, 0x40000238
lea rcx, [rax + 0x60]
call fcn.140007250
or eax, 0xffffffff
jmp 0x140017eee
mov eax, dword [rsp + 0x58]
mov r9d, 7
xor r8d, r8d
add eax, eax
mov rdx, rsi
mov rcx, rbx
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x140017e87
cmp dword [rsp + 0x58], edi
je 0x140017e54
call qword [sym.imp.KERNEL32.DLL_GetProcessHeap]
mov r8, qword [rsp + 0x30]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_HeapFree]
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
call fcn.140006fd0
lea r8, str.AppEnvironment
mov edx, 0xc00003fb
mov r9, rax
mov eax, 1
mov qword [rsp + 0x20], rdi
movzx ecx, ax
call fcn.140007190
or eax, 0xffffffff
jmp 0x140017eee
cmp dword [rsp + 0x58], edi
je 0x140017ea3
call qword [sym.imp.KERNEL32.DLL_GetProcessHeap]
mov r8, qword [rsp + 0x30]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_HeapFree]
mov eax, 1
jmp 0x140017eee
mov rdx, r8
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x140017eec
cmp eax, 2
je 0x140017eec
mov ecx, eax
call fcn.140006fd0
mov rdi, rax
call fcn.140019be0
mov r9, rbp
lea rcx, [rax + 0x60]
mov r8, rsi
mov edx, 0x4000020d
mov qword [rsp + 0x20], rdi
call fcn.140007250
or eax, 0xffffffff
jmp 0x140017eee
xor eax, eax
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop rsi
ret
Function at 0x14001b45c
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, r8d
mov ebx, edx
mov r15d, ecx
mov ecx, 8
call fcn.14001c2f0
nop
cmp dword [0x14004ef20], 1
je 0x14001b408
mov dword [0x14004ef1c], 1
mov byte [0x14004ef18], r12b
test ebx, ebx
jne 0x14001b3f4
mov rcx, qword [0x140050018]
call sub.KERNEL32.DLL_DecodePointer
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14001b3e1
mov rcx, qword [0x140050010]
call sub.KERNEL32.DLL_DecodePointer
mov rdi, rax
mov qword [rsp + 0x20], rax
mov r14, rsi
mov qword [rsp + 0x28], rsi
mov r13, rax
mov qword [rsp + 0x38], rax
sub rdi, 8
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
jb 0x14001b380
call fcn.14001dea0
cmp qword [rdi], rax
jne 0x14001b380
jmp 0x14001b366
cmp rdi, rsi
jb 0x14001b3e1
mov rcx, qword [rdi]
call sub.KERNEL32.DLL_DecodePointer
mov rbx, rax
call fcn.14001dea0
mov qword [rdi], rax
call rbx
mov rcx, qword [0x140050018]
call sub.KERNEL32.DLL_DecodePointer
mov rbx, rax
mov rcx, qword [0x140050010]
call sub.KERNEL32.DLL_DecodePointer
cmp r14, rbx
jne 0x14001b3bf
cmp r13, rax
je 0x14001b3df
mov r14, rbx
mov qword [rsp + 0x28], rbx
mov rsi, rbx
mov qword [rsp + 0x30], rbx
mov r13, rax
mov qword [rsp + 0x38], rax
mov rdi, rax
mov qword [rsp + 0x20], rax
jmp 0x14001b366
lea rdx, [0x140025738]
lea rcx, [0x140025720]
call fcn.14001b1b0
lea rdx, [0x140025748]
lea rcx, [0x140025740]
call fcn.14001b1b0
nop
test r12d, r12d
je 0x14001b417
mov ecx, 8
call fcn.14001c1f0
test r12d, r12d
jne 0x14001b442
mov dword [0x14004ef20], 1
lea ecx, [r12 + 8]
call fcn.14001c1f0
mov ecx, r15d
call fcn.14001b144
mov ecx, r15d
call qword [sym.imp.KERNEL32.DLL_ExitProcess]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
xor edx, edx
jmp 0x14001b2d0

Function at 0x14001b468
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x14001b2d0
Function at 0x14001e397
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14002dda0]
jne 0x14001a4aa
rol rcx, 0x10
test cx, 0xffff
jne 0x14001a4a6
repz ret
ror rcx, 0x10
jmp 0x14001e2f0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14004f260]
call qword [sym.imp.KERNEL32.DLL_RtlCaptureContext]
mov r11, qword [0x14004f358]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.DLL_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14001e375
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x14004f260]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.DLL_RtlVirtualUnwind
jmp 0x14001e397
mov rax, qword [rsp + 0x88]
mov qword [0x14004f358], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14004f2f8], rax
mov rax, qword [0x14004f358]
mov qword [0x14004f1d0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14004f2e0], rax
mov dword [0x14004f1c0], 0xc0000409
mov dword [0x14004f1c4], 1
mov rax, qword [0x14002dda0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14002dda8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.DLL_IsDebuggerPresent]
mov dword [0x14004f258], eax
mov ecx, 1
call fcn.140021d1c
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_SetUnhandledExceptionFilter]
lea rcx, [0x140027cf0]
call qword [sym.imp.KERNEL32.DLL_UnhandledExceptionFilter]
cmp dword [0x14004f258], 0
jne 0x14001e41e
mov ecx, 1
call fcn.140021d1c
call qword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140022e88
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.14001dea0
xor ebx, ebx
mov rdi, rax
cmp qword [0x14004fcf0], rbx
jne 0x140022f8e
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x140023063
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
test rax, rax
je 0x140023063
mov rcx, rax
call sub.KERNEL32.DLL_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x14004fcf0], rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.DLL_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x14004fcf8], rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.DLL_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x14004fd00], rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.DLL_EncodePointer
mov r11, rax
mov qword [0x14004fd10], rax
test rax, rax
je 0x140022f85
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.DLL_EncodePointer
mov qword [0x14004fd08], rax
jmp 0x140022f95
mov rax, qword [0x14004fd08]
jmp 0x140022f9c
mov rax, qword [0x14004fd08]
mov r11, qword [0x14004fd10]
cmp rax, rdi
je 0x140023004
cmp r11, rdi
je 0x140023004
mov rcx, rax
call sub.KERNEL32.DLL_DecodePointer
mov rcx, qword [0x14004fd10]
mov rsi, rax
call sub.KERNEL32.DLL_DecodePointer
mov r12, rax
test rsi, rsi
je 0x140023004
test rax, rax
je 0x140023004
call rsi
test rax, rax
je 0x140022ffe
lea rcx, [rsp + 0x88]
mov r9d, 0xc
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x140022ffe
test byte [rsp + 0x38], 1
jne 0x140023004
bts ebp, 0x15
jmp 0x140023042
mov rcx, qword [0x14004fcf8]
cmp rcx, rdi
je 0x140023042
call sub.KERNEL32.DLL_DecodePointer
test rax, rax
je 0x140023042
call rax
mov rbx, rax
test rax, rax
je 0x140023042
mov rcx, qword [0x14004fd00]
cmp rcx, rdi
je 0x140023042
call sub.KERNEL32.DLL_DecodePointer
test rax, rax
je 0x140023042
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14004fcf0]
call sub.KERNEL32.DLL_DecodePointer
test rax, rax
je 0x140023063
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x140023065
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x408a30
Capabilities:
Set current directory

Disassembly:
sub rsp, 0x28
call sub.KERNEL32.DLL_SetCurrentDirectoryW_1
test eax, eax
jne 0x408a42
call fcn.004089f0
add rsp, 0x28
ret

Function at 0x408a50
Capabilities:
Get common file path
Set current directory

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x440
mov rbp, rsp
mov ebx, ecx
mov rsi, rdx
test bl, bl
je 0x408aa2
movzx ax, bl
add ax, 0x40
mov word [rbp + 0x438], ax
mov word [rbp + 0x43a], 0x3a
mov word [rbp + 0x43c], 0
mov ecx, 0x105
lea rdx, [rbp + 0x24]
call sub.KERNEL32.DLL_GetCurrentDirectoryW
lea rcx, [rbp + 0x438]
call sub.KERNEL32.DLL_SetCurrentDirectoryW_1
mov ecx, 0x105
lea rdx, [rbp + 0x22e]
call sub.KERNEL32.DLL_GetCurrentDirectoryW
test bl, bl
je 0x408ac1
lea rcx, [rbp + 0x24]
call sub.KERNEL32.DLL_SetCurrentDirectoryW_1
mov rcx, rsi
lea rdx, [rbp + 0x22e]
mov r8d, 0x105
call fcn.00410860
lea rsp, [rbp + 0x440]
pop rbx
pop rsi
pop rbp
ret

Function at 0x408b40
Capabilities:
Create directory

Disassembly:
sub rsp, 0x28
xor rdx, rdx
call sub.KERNEL32.DLL_CreateDirectoryW_1
test eax, eax
jne 0x408b55
call fcn.004089f0
add rsp, 0x28
ret

Function at 0x408e10
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.00408d20
mov rcx, rax
lea rdx, [rbp + 0x38]
call fcn.00408d20
cmp qword [rbp + 0x38], 0
je 0x408e56
mov ecx, dword [rbp + 0x2c]
add ecx, 1
mov dword [rbp + 0x2c], ecx
jmp 0x408e38
nop
nop
lea rcx, [rbp + 0x38]
call fcn.0040ef50
mov eax, dword [rbp + 0x2c]
lea rsp, [rbp + 0x40]
pop rbp
ret
Function at 0x40cb80
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.0040d120
mov esi, eax
test sil, sil
jne 0x40cd42
test ebx, ebx
je 0x40cd42
xor rdi, rdi
test r13d, r13d
jle 0x40cc67
call sub.KERNEL32.DLL_GetTickCount_1
mov r14d, eax
mov dword [rbp + 0x3c], 0
test r13d, r13d
jle 0x40cc46
cmp ebx, 0xffffffff
je 0x40cbf3
call sub.KERNEL32.DLL_GetTickCount_1
sub eax, r14d
cmp eax, ebx
jb 0x40cbf3
xor rsi, rsi
jmp 0x40cd42
mov rax, qword [rbp + 0x28]
cmp dword [rax], 1
jg 0x40cc46
mov rax, qword [rbp + 0x28]
cmp dword [rax], 0
jne 0x40cc34
xor eax, eax
mov ecx, 1
mov rdx, qword [rbp + 0x28]
lock cmpxchg dword [rdx], ecx
test eax, eax
jne 0x40cc34
call sub.KERNEL32.DLL_GetCurrentThreadId_1
mov rcx, qword [rbp + 0x28]
mov dword [rcx + 8], eax
mov dword [rcx + 4], 1
mov sil, 1
jmp 0x40cd42
lea rcx, [rbp + 0x3c]
call fcn.0040c730
sub r13d, 1
test r13d, r13d
jg 0x40cbda
nop
cmp ebx, 0xffffffff
je 0x40cc67
call sub.KERNEL32.DLL_GetTickCount_1
mov ecx, eax
sub ecx, r14d
cmp ecx, ebx
jb 0x40cc62
xor rsi, rsi
jmp 0x40cd42
sub eax, r14d
sub ebx, eax
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
test ecx, ecx
je 0x40cb9d
mov edx, ecx
add edx, 2
mov eax, ecx
mov r8, qword [rbp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x40cc67
nop
call sub.KERNEL32.DLL_GetTickCount_1
mov r14d, eax
mov rcx, qword [rbp + 0x28]
call fcn.0040cdf0
xor rcx, rcx
mov rdx, rax
mov r8d, ebx
mov rax, qword [0x008ca9a0]
call qword [rax + 0x20]
test eax, eax
sete sil
cmp ebx, 0xffffffff
je 0x40ccd1
call sub.KERNEL32.DLL_GetTickCount_1
mov ecx, eax
sub ecx, r14d
cmp ecx, ebx
jae 0x40ccce
sub eax, r14d
sub ebx, eax
jmp 0x40ccd1
xor rbx, rbx
test sil, sil
je 0x40cd03
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
mov eax, ecx
test eax, 1
jne 0x40cd00
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 0x40ccd6
mov dil, 1
nop
jmp 0x40cd20
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 0x40cd03
mov dil, 1
test dil, dil
je 0x40cc8a
nop
test sil, sil
je 0x40cd42
call sub.KERNEL32.DLL_GetCurrentThreadId_1
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 0x40e950
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
cmp byte [0x008ca0a8], 0
je 0x40e9ee
cmp word [0x008ca3b8], 0xd7b2
jne 0x40e983
cmp dword [0x008ca3c0], 0
jbe 0x40e983
lea rcx, [0x008ca3b0]
call qword [0x008ca3d8]
mov ecx, 0xfffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
mov rcx, rax
lea rdx, [0x0086f2fc]
mov r8d, 0x25
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.KERNEL32.DLL_WriteFile_1
mov ecx, 0xfffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
mov rbx, rax
lea rcx, [0x0040ea24]
call fcn.00410060
mov rcx, rbx
mov rdx, rax
mov r8d, 2
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.KERNEL32.DLL_WriteFile_1
jmp 0x40ea10
cmp byte [0x0086d052], 0
jne 0x40ea10
xor rcx, rcx
lea rdx, [0x0086f2fc]
lea r8, str.Error
xor r9, r9
call sub.user32.dll_MessageBoxA
add rsp, 0x40
pop rbx
ret

Function at 0x40ed40
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 [0x0086d058], 0
je 0x40ed71
mov rcx, rsi
mov rdx, rdi
call qword [0x0086d058]
mov r13, rax
jmp 0x40ed87
mov ecx, 0x10
call fcn.00408650
mov r13, rax
mov qword [r13], rsi
mov qword [r13 + 8], rdi
mov byte [0x008ca0a9], 1
mov rcx, qword [rsp + 0x38]
mov edx, ebx
lea r8, [0x0040ecd0]
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_1
mov rbx, rax
test rbx, rbx
jne 0x40edcc
mov rcx, r13
call fcn.00408680
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r13
ret

Function at 0x412a10
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
lea rcx, [0x008cee70]
call sub.KERNEL32.DLL_InitializeCriticalSection_1
mov word [0x008cee98], 0x7f
call sub.KERNEL32.DLL_GetVersion_1
and eax, 0xff
cmp eax, 6
setae al
mov byte [0x008cee68], al
cmp byte [0x008cee68], 0
je 0x412aaf
lea rcx, [0x00412ab4]
call sub.KERNEL32.DLL_GetModuleHandleW_1
mov rcx, rax
lea rdx, [0x00412ace]
call sub.KERNEL32.DLL_GetProcAddress_1
mov qword [0x008cee50], rax
lea rcx, [0x00412ab4]
call sub.KERNEL32.DLL_GetModuleHandleW_1
mov rcx, rax
lea rdx, [0x00412aec]
call sub.KERNEL32.DLL_GetProcAddress_1
mov qword [0x008cee58], rax
lea rcx, [0x00412ab4]
call sub.KERNEL32.DLL_GetModuleHandleW_1
mov rcx, rax
lea rdx, [0x00412b0a]
call sub.KERNEL32.DLL_GetProcAddress_1
mov qword [0x008cee60], rax
add rsp, 0x28
ret
Function at 0x412d90
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.0040ef50
movzx rax, word [rbp + 0x4e]
cmp word [0x0086fa48], ax
ja 0x412e78
movzx rax, word [rbp + 0x4e]
cmp ax, word [0x0086fe48]
mov word [rbp + 0x4e], ax
ja 0x412e78
mov ecx, 0x40
xor r8, r8
cmp ecx, r8d
jb 0x412e77
mov eax, ecx
add eax, r8d
mov r9d, 2
xor edx, edx
div r9d
lea rdx, [0x0086fa48]
mov r9d, eax
add r9, r9
movzx r10, word [rbp + 0x4e]
cmp word [rdx + r9*8], r10w
jbe 0x412e31
mov ecx, eax
sub ecx, 1
jmp 0x412e72
lea rdx, [0x0086fa48]
mov r8d, eax
add r8, r8
movzx r9, word [rbp + 0x4e]
cmp word [rdx + r8*8], r9w
jae 0x412e53
mov r8d, eax
add r8d, 1
jmp 0x412e72
mov rcx, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x40]
lea r8, [0x0086fa50]
mov eax, eax
add rax, rax
mov r8, qword [r8 + rax*8]
call fcn.00412c20
jmp 0x412e77
cmp ecx, r8d
jae 0x412e00
nop
mov rax, qword [rbp + 0x40]
cmp qword [rax], 0
jne 0x412f5a
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 2
call sub.KERNEL32.DLL_IsValidLocale_1
test eax, eax
je 0x412f5a
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 0x59
lea r8, [rbp + 0x126]
mov r9d, 0x55
call sub.KERNEL32.DLL_GetLocaleInfoW_1
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 0x5a
lea r8, [rbp + 0x7c]
mov r9d, 0x55
call sub.KERNEL32.DLL_GetLocaleInfoW_1
lea rcx, [rbp + 0x68]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.00410860
lea rcx, [rbp + 0x60]
lea rdx, [rbp + 0x7c]
mov r8d, 0x55
call fcn.00410860
lea rcx, [rbp + 0x58]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.00410860
mov rcx, qword [rbp + 0x40]
mov edx, 5
mov r8, qword [rbp + 0x68]
lea r9, [0x00412fb4]
mov rax, qword [rbp + 0x60]
mov qword [rsp + 0x20], rax
lea rax, [0x00412fc4]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.00410ce0
nop
lea rcx, [rbp + 0x58]
mov edx, 3
call fcn.0040f030
mov rax, qword [rbp + 0x40]
lea rsp, [rbp + 0x1d0]
pop rbp
ret
Function at 0x4131d0
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, [0x008cee70]
call sub.KERNEL32.DLL_EnterCriticalSection_1
movzx rax, word [rbp + 0x36]
cmp word [0x008cee98], ax
jne 0x41323b
mov rcx, qword [rbp + 0x28]
lea rdx, [0x008cee9a]
mov r8d, 0x55
call fcn.00410860
lea rcx, [0x008cee70]
call sub.KERNEL32.DLL_LeaveCriticalSection_1
jmp 0x413346
lea rcx, [0x008cee70]
call sub.KERNEL32.DLL_LeaveCriticalSection_1
mov rcx, qword [rbp + 0x28]
call fcn.0040ef50
movzx rcx, word [rbp + 0x36]
movzx ecx, cx
mov edx, 2
call sub.KERNEL32.DLL_IsValidLocale_1
test eax, eax
je 0x413300
cmp byte [0x008cee68], 0
je 0x413294
mov rcx, rbp
lea rdx, [rbp + 0x48]
movzx r8, word [rbp + 0x36]
call fcn.00413060
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x48]
call fcn.0040f580
jmp 0x413300
mov rcx, rbp
lea rdx, [rbp + 0x40]
movzx r8, word [rbp + 0x36]
call fcn.00412d90
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.0040f580
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
movzx rcx, word [rbp + 0x36]
cmp cx, ax
mov word [rbp + 0x36], cx
je 0x413300
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
je 0x4132df
mov rcx, qword [rbp + 0x28]
lea rdx, [0x00413394]
call fcn.00410ad0
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
mov rcx, rbp
lea rdx, [rbp + 0x38]
mov r8d, eax
call fcn.00412d90
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x38]
call fcn.00410ad0
lea rcx, [0x008cee70]
call sub.KERNEL32.DLL_EnterCriticalSection_1
movzx rax, word [rbp + 0x36]
mov word [0x008cee98], ax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax]
call fcn.00410760
lea rcx, [0x008cee9a]
mov edx, 0xaa
mov r8, rax
call fcn.00412b40
lea rcx, [0x008cee70]
call sub.KERNEL32.DLL_LeaveCriticalSection_1
nop
lea rcx, [rbp + 0x38]
mov edx, 3
call fcn.0040f030
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x413d70
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.0040f0e0
nop
call sub.KERNEL32.DLL_GetUserDefaultUILanguage
movzx ecx, ax
mov edx, 3
lea r8, [rbp + 0x48]
mov r9d, 4
call sub.KERNEL32.DLL_GetLocaleInfoW_1
lea rcx, [rbp + 0x38]
lea rdx, [rbp + 0x48]
mov r8d, 4
call fcn.00410860
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x38]
call fcn.00410bc0
mov rcx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax]
call fcn.00413b90
test al, al
jne 0x413e3e
mov word [rbp + 0x4c], 0
lea rcx, [rbp + 0x30]
lea rdx, [rbp + 0x48]
mov r8d, 4
call fcn.00410860
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x30]
call fcn.00410bc0
mov rcx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax]
call fcn.00413b90
test al, al
jne 0x413e3e
mov rcx, qword [rbp + 0x20]
call fcn.0040ef50
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.0040f030
lea rcx, [rbp + 0x70]
call fcn.0040ef50
mov rax, qword [rbp + 0x20]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x413eb0
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.0040f0e0
mov rcx, qword [rbp + 0x90]
call fcn.0040f0e0
nop
mov rcx, qword [rbp + 0x28]
call fcn.0040ef50
cmp qword [rbp + 0x90], 0
je 0x414076
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
call fcn.0040f600
xor rax, rax
cmp qword [rbp + 0x90], 0
je 0x413f61
mov rax, qword [rbp + 0x90]
mov eax, dword [rax - 4]
cmp eax, 1
jl 0x413f9b
mov rcx, qword [rbp + 0x90]
movsxd rdx, eax
cmp word [rcx + rdx*2 - 2], 0x2e
jne 0x413f94
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
mov r8d, 1
mov r9d, eax
call fcn.00410dd0
jmp 0x413f9b
sub eax, 1
test eax, eax
jne 0x413f66
nop
lea rcx, [rbp + 0x68]
mov rdx, qword [rbp + 0x88]
call fcn.00413a80
cmp qword [rbp + 0x68], 0
je 0x413fd9
mov rcx, rbp
lea rdx, [rbp + 0x58]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x68]
call fcn.00413c30
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x58]
call fcn.0040f580
jmp 0x414075
call sub.KERNEL32.DLL_GetUserDefaultUILanguage
lea rcx, [rbp + 0x48]
mov edx, eax
call fcn.004131d0
mov rcx, rbp
lea rdx, [rbp + 0x50]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x48]
call fcn.00413c30
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x50]
call fcn.0040f580
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x41404e
cmp byte [0x008cee68], 0
jne 0x41404e
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea rcx, [rbp + 0x38]
mov edx, eax
call fcn.004131d0
mov rcx, rbp
lea rdx, [rbp + 0x40]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x38]
call fcn.00413c30
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.0040f580
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x414075
mov rcx, rbp
lea rdx, [rbp + 0x30]
mov r8, qword [rbp + 0x60]
call fcn.00413d70
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x30]
call fcn.0040f580
nop
lea rcx, [rbp + 0x30]
mov edx, 8
call fcn.0040f030
lea rcx, [rbp + 0x88]
mov edx, 2
call fcn.0040f030
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x70]
pop rbp
ret

Function at 0x414f10
Capabilities:
Get system information on windows

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

Function at 0x414f30
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
call sub.KERNEL32.DLL_GetVersion_1
mov ecx, eax
and ecx, 0xff
and eax, 0xff00
shr eax, 8
cmp ecx, 5
jne 0x414f54
cmp eax, 1
jae 0x414f59
cmp ecx, 5
jbe 0x414f65
mov dword [0x008ca9b0], 0x7f
jmp 0x414f6f
mov dword [0x008ca9b0], 0x409
add rsp, 0x28
ret