joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18005e490
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x68
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x18009c0a8], eax
je 0x18005e4ac
mov eax, 0x10dd
jmp 0x18005e5c7
mov rax, qword [0x18009c0c0]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x18005e550
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x20]
movzx edx, byte [rax + 0x3e]
lea r9, [rsp + 0x30]
mov rax, qword [rsp + 0x20]
mov r8d, dword [rax + 0x28]
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rax, qword [rsp + 0x20]
cmp dword [rax + 8], 0
jne 0x18005e520
mov rax, qword [rsp + 0x20]
cmp qword [rax + 0x20], 0
je 0x18005e520
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 0x20]
call fcn.18005e640
mov r11, qword [rsp + 0x20]
mov qword [r11 + 0x20], 0
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x48]
call fcn.1800538dc
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x20], rax
jmp 0x18005e4b8
mov qword [0x18009c0c0], 0
call fcn.18005e5d0
mov rax, qword [0x18009c0b8]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x18005e5b0
mov rcx, qword [rsp + 0x38]
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rax, qword [rsp + 0x38]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x50]
call fcn.1800538dc
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x38], rax
jmp 0x18005e56c
mov qword [0x18009c0b8], 0
mov dword [0x18009c0a8], 0
xor eax, eax
add rsp, 0x68
ret
Function at 0x18005ecd0
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x52727464
je 0x18005eced
xor eax, eax
jmp 0x18005ed86
mov rax, qword [rsp + 0x30]
mov qword [rsp], rax
mov rax, qword [rsp]
add rax, 0x10000
mov qword [rsp + 8], rax
mov rax, qword [rsp + 0x30]
add rax, 0x60
mov qword [rsp + 0x10], rax
mov dword [rsp + 0x18], 0
jmp 0x18005ed28
mov eax, dword [rsp + 0x18]
add eax, 1
mov dword [rsp + 0x18], eax
cmp dword [rsp + 0x18], 0x2a9
jae 0x18005ed81
movsxd rcx, dword [rsp + 0x18]
imul rcx, rcx, 0x60
mov rax, qword [rsp + 0x10]
cmp qword [rax + rcx + 0x48], 0
je 0x18005ed7f
movsxd rdx, dword [rsp + 0x18]
imul rdx, rdx, 0x60
mov rcx, qword [rsp + 0x10]
mov rax, qword [rsp]
cmp qword [rcx + rdx + 0x48], rax
jb 0x18005ed7b
movsxd rdx, dword [rsp + 0x18]
imul rdx, rdx, 0x60
mov rcx, qword [rsp + 0x10]
mov rax, qword [rsp + 8]
cmp qword [rcx + rdx + 0x48], rax
jb 0x18005ed7f
xor eax, eax
jmp 0x18005ed86
jmp 0x18005ed1d
mov eax, 1
add rsp, 0x28
ret

Function at 0x18005ee70
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp dword [0x18009c0ac], 0
je 0x18005ee8d
mov eax, dword [0x18009c0ac]
jmp 0x18005ef51
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp qword [rsp + 0x50], rax
jne 0x18005eea1
xor eax, eax
jmp 0x18005ef51
mov ecx, sendto
call fcn.1800539d8
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x18005ef0a
mov dword [rsp + 0x20], 8
cmp qword [rsp + 0x28], 0
je 0x18005eeef
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x38]
call fcn.1800538dc
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x20]
mov dword [0x18009c0ac], eax
mov qword [0x18009c0b0], 0
mov eax, dword [rsp + 0x20]
jmp 0x18005ef51
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x18005ef26
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
jmp 0x18005eeca
mov rcx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x50]
mov qword [rcx + 8], rax
mov rcx, qword [rsp + 0x28]
mov rax, qword [0x18009c0b8]
mov qword [rcx], rax
mov rax, qword [rsp + 0x28]
mov qword [0x18009c0b8], rax
xor eax, eax
add rsp, 0x48
ret
Function at 0x18005fff0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.180060100
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x1800600ed
mov rax, qword [0x1800980e0]
cmp qword [rsp + 0x20], rax
jb 0x18006004b
mov rax, qword [0x1800980e8]
cmp qword [rsp + 0x20], rax
ja 0x18006004b
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x18006000d
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x28]
call fcn.1800575a0
mov r8d, 0x30
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x18006007a
jmp 0x1800600ed
cmp dword [rsp + 0x48], 0x10000
jne 0x1800600d1
cmp qword [rsp + 0x40], 0x10000
jb 0x1800600d1
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x1800600bf
mov rax, qword [rsp + 0x58]
jmp 0x1800600ef
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x1800600e8
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
add rcx, rax
call fcn.180060100
mov qword [rsp + 0x20], rax
jmp 0x18006000d
xor eax, eax
add rsp, 0x68
ret

Function at 0x180060150
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x78]
sub rcx, 0x10000
call fcn.180060260
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x180060253
mov rax, qword [0x1800980e0]
cmp qword [rsp + 0x20], rax
jb 0x1800601b2
mov rax, qword [0x1800980e8]
cmp qword [rsp + 0x20], rax
ja 0x1800601b2
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x180060174
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x28]
call fcn.1800575a0
mov r8d, 0x30
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x1800601e1
jmp 0x180060253
cmp dword [rsp + 0x48], 0x10000
jne 0x180060238
cmp qword [rsp + 0x40], 0x10000
jb 0x180060238
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x180060226
mov rax, qword [rsp + 0x58]
jmp 0x180060255
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x18006024e
mov rcx, qword [rsp + 0x30]
sub rcx, 0x10000
call fcn.180060260
mov qword [rsp + 0x20], rax
jmp 0x180060174
xor eax, eax
add rsp, 0x68
ret
Function at 0x1800602a0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x2c], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x18009c0a8], eax
je 0x1800602ce
mov eax, 0x10dd
jmp 0x1800604de
cmp dword [0x18009c0ac], 0
je 0x1800602e2
mov eax, dword [0x18009c0ac]
jmp 0x1800604de
cmp qword [rsp + 0x78], 0
jne 0x1800602f4
mov eax, 0x57
jmp 0x1800604de
cmp qword [rsp + 0x70], 0
jne 0x180060306
mov eax, 6
jmp 0x1800604de
mov rax, qword [rsp + 0x70]
cmp qword [rax], 0
jne 0x180060338
mov dword [rsp + 0x2c], 6
mov eax, dword [rsp + 0x2c]
mov dword [0x18009c0ac], eax
mov rax, qword [rsp + 0x70]
mov qword [0x18009c0b0], rax
mov eax, dword [rsp + 0x2c]
jmp 0x1800604de
mov ecx, 0x30
call fcn.1800539d8
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x1800603a5
mov dword [rsp + 0x2c], 8
mov eax, dword [rsp + 0x2c]
mov dword [0x18009c0ac], eax
cmp qword [rsp + 0x40], 0
je 0x180060390
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x50]
call fcn.1800538dc
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x70]
mov qword [0x18009c0b0], rax
mov eax, dword [rsp + 0x2c]
jmp 0x1800604de
xor edx, edx
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx]
call fcn.18005e150
mov qword [rsp + 0x30], rax
xor edx, edx
mov rcx, qword [rsp + 0x78]
call fcn.18005e150
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x30]
movzx eax, byte [rax + 0x3e]
mov dword [rsp + 0x28], eax
movsxd rcx, dword [rsp + 0x28]
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x48]
sub rax, rcx
mov qword [rsp + 0x20], rax
cmp dword [rsp + 0x28], 0
je 0x1800603ff
movsxd rax, dword [rsp + 0x28]
cmp rax, 0x1e
jbe 0x18006041c
mov dword [rsp + 0x2c], 9
cmp dword [0x18009c0a0], 0
je 0x180060417
jmp 0x18006036b
jmp 0x180060361
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x78]
cmp qword [rcx + 0x50], rax
je 0x180060449
mov dword [rsp + 0x2c], 9
cmp dword [0x18009c0a0], 0
je 0x180060444
jmp 0x18006036b
jmp 0x180060361
mov dword [rsp + 0x38], 0
movsxd rdx, dword [rsp + 0x28]
lea r9, [rsp + 0x38]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18006047f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x2c], eax
jmp 0x180060361
mov rax, qword [rsp + 0x40]
mov dword [rax + 8], 1
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x70]
mov qword [rcx + 0x10], rax
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x30]
mov qword [rcx + 0x20], rax
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x20]
mov qword [rcx + 0x18], rax
mov rcx, qword [rsp + 0x40]
mov eax, dword [rsp + 0x38]
mov dword [rcx + 0x28], eax
mov rcx, qword [rsp + 0x40]
mov rax, qword [0x18009c0c0]
mov qword [rcx], rax
mov rax, qword [rsp + 0x40]
mov qword [0x18009c0c0], rax
xor eax, eax
add rsp, 0x68
ret
Function at 0x1800604f0
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x38
cmp dword [0x18009c120], 0
je 0x180060504
xor eax, eax
jmp 0x18006076f
cmp qword [0x18009c118], 0
je 0x18006051a
mov rax, qword [0x18009c118]
jmp 0x18006076f
mov r8d, 0x48
xor edx, edx
lea rcx, [0x18009c0d0]
call fcn.1800575a0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [0x18009c0d0], rax
xor r8d, r8d
xor edx, edx
lea rcx, str.dbghelp.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [0x18009c0d8], rax
cmp qword [0x18009c0d8], 0
jne 0x1800605d3
mov dword [0x18009c120], 1
cmp qword [0x18009c0d8], 0
je 0x18006057f
mov rcx, qword [0x18009c0d8]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x18009c0e0], 0
mov qword [0x18009c0e8], 0
mov qword [0x18009c0f0], 0
mov qword [0x18009c0f8], 0
mov qword [0x18009c100], 0
mov qword [0x18009c108], 0
mov qword [0x18009c110], 0
xor eax, eax
jmp 0x18006076f
lea rdx, str.ImagehlpApiVersionEx
mov rcx, qword [0x18009c0d8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18009c0e0], rax
lea rdx, str.SymInitialize
mov rcx, qword [0x18009c0d8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18009c0e8], rax
lea rdx, str.SymSetOptions
mov rcx, qword [0x18009c0d8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18009c0f0], rax
lea rdx, str.SymGetOptions
mov rcx, qword [0x18009c0d8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18009c0f8], rax
lea rdx, str.SymLoadModule64
mov rcx, qword [0x18009c0d8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18009c100], rax
lea rdx, str.SymGetModuleInfo64
mov rcx, qword [0x18009c0d8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18009c108], rax
lea rdx, str.SymFromName
mov rcx, qword [0x18009c0d8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18009c110], rax
mov r8d, 8
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.1800575a0
mov r11d, 0xb
mov word [rsp + 0x20], r11w
cmp qword [0x18009c0e0], 0
je 0x1800606e0
cmp qword [0x18009c0e8], 0
je 0x1800606e0
cmp qword [0x18009c100], 0
je 0x1800606e0
cmp qword [0x18009c108], 0
je 0x1800606e0
cmp qword [0x18009c110], 0
jne 0x1800606e5
jmp 0x18006055e
lea rcx, [rsp + 0x20]
call qword [0x18009c0e0]
movzx eax, word [rsp + 0x20]
cmp eax, 0xb
jge 0x1800606ff
jmp 0x18006055e
xor r8d, r8d
xor edx, edx
mov rcx, qword [0x18009c0d0]
call qword [0x18009c0e8]
test eax, eax
jne 0x18006071a
jmp 0x18006055e
cmp qword [0x18009c0f8], 0
je 0x18006075a
cmp qword [0x18009c0f0], 0
je 0x18006075a
call qword [0x18009c0f8]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
and eax, 0xfffffff8
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
or eax, 0x2704
mov dword [rsp + 0x28], eax
mov ecx, dword [rsp + 0x28]
call qword [0x18009c0f0]
lea rax, [0x18009c0d0]
mov qword [0x18009c118], rax
mov rax, qword [0x18009c118]
add rsp, 0x38
ret
Function at 0x409030
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.00408f40
mov rcx, rax
lea rdx, [rbp + 0x38]
call fcn.00408f40
cmp qword [rbp + 0x38], 0
je 0x409076
mov ecx, dword [rbp + 0x2c]
add ecx, 1
mov dword [rbp + 0x2c], ecx
jmp 0x409058
nop
nop
lea rcx, [rbp + 0x38]
call fcn.0040ee40
mov eax, dword [rbp + 0x2c]
lea rsp, [rbp + 0x40]
pop rbp
ret

Function at 0x40cac0
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.0040d060
mov esi, eax
test sil, sil
jne 0x40cc82
test ebx, ebx
je 0x40cc82
xor rdi, rdi
test r13d, r13d
jle 0x40cba7
call sub.kernel32.dll_GetTickCount
mov r14d, eax
mov dword [rbp + 0x3c], 0
test r13d, r13d
jle 0x40cb86
cmp ebx, 0xffffffff
je 0x40cb33
call sub.kernel32.dll_GetTickCount
sub eax, r14d
cmp eax, ebx
jb 0x40cb33
xor rsi, rsi
jmp 0x40cc82
mov rax, qword [rbp + 0x28]
cmp dword [rax], 1
jg 0x40cb86
mov rax, qword [rbp + 0x28]
cmp dword [rax], 0
jne 0x40cb74
xor eax, eax
mov ecx, 1
mov rdx, qword [rbp + 0x28]
lock cmpxchg dword [rdx], ecx
test eax, eax
jne 0x40cb74
call sub.kernel32.dll_GetCurrentThreadId
mov rcx, qword [rbp + 0x28]
mov dword [rcx + 8], eax
mov dword [rcx + 4], 1
mov sil, 1
jmp 0x40cc82
lea rcx, [rbp + 0x3c]
call fcn.0040c670
sub r13d, 1
test r13d, r13d
jg 0x40cb1a
nop
cmp ebx, 0xffffffff
je 0x40cba7
call sub.kernel32.dll_GetTickCount
mov ecx, eax
sub ecx, r14d
cmp ecx, ebx
jb 0x40cba2
xor rsi, rsi
jmp 0x40cc82
sub eax, r14d
sub ebx, eax
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
test ecx, ecx
je 0x40cadd
mov edx, ecx
add edx, 2
mov eax, ecx
mov r8, qword [rbp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x40cba7
nop
call sub.kernel32.dll_GetTickCount
mov r14d, eax
mov rcx, qword [rbp + 0x28]
call fcn.0040cd30
xor rcx, rcx
mov rdx, rax
mov r8d, ebx
mov rax, qword [0x007349a0]
call qword [rax + 0x20]
test eax, eax
sete sil
cmp ebx, 0xffffffff
je 0x40cc11
call sub.kernel32.dll_GetTickCount
mov ecx, eax
sub ecx, r14d
cmp ecx, ebx
jae 0x40cc0e
sub eax, r14d
sub ebx, eax
jmp 0x40cc11
xor rbx, rbx
test sil, sil
je 0x40cc43
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
mov eax, ecx
test eax, 1
jne 0x40cc40
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 0x40cc16
mov dil, 1
nop
jmp 0x40cc60
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 0x40cc43
mov dil, 1
test dil, dil
je 0x40cbca
nop
test sil, sil
je 0x40cc82
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 0x40e890
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
cmp byte [0x007340a8], 0
je 0x40e92e
cmp word [0x007343b8], 0xd7b2
jne 0x40e8c3
cmp dword [0x007343c0], 0
jbe 0x40e8c3
lea rcx, [0x007343b0]
call qword [0x007343d8]
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
lea rdx, [0x006f4ad0]
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, [0x0040e964]
call fcn.0040ff00
mov rcx, rbx
mov rdx, rax
mov r8d, 2
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x40e950
cmp byte [0x006f3052], 0
jne 0x40e950
xor rcx, rcx
lea rdx, [0x006f4ad0]
lea r8, str.Error
xor r9, r9
call sub.user32.dll_MessageBoxA
add rsp, 0x40
pop rbx
ret

Function at 0x40ec30
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 [0x006f3058], 0
je 0x40ec61
mov rcx, rsi
mov rdx, rdi
call qword [0x006f3058]
mov r13, rax
jmp 0x40ec77
mov ecx, 0x10
call fcn.004089b0
mov r13, rax
mov qword [r13], rsi
mov qword [r13 + 8], rdi
mov byte [0x007340a9], 1
mov rcx, qword [rsp + 0x38]
mov edx, ebx
lea r8, [0x0040ebc0]
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 0x40ecbc
mov rcx, r13
call fcn.004089e0
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r13
ret

Function at 0x412850
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
lea rcx, [0x00738e70]
call sub.kernel32.dll_InitializeCriticalSection
mov word [0x00738e98], 0x7f
call sub.kernel32.dll_GetVersion
and eax, 0xff
cmp eax, 6
setae al
mov byte [0x00738e68], al
cmp byte [0x00738e68], 0
je 0x4128ef
lea rcx, [0x004128f4]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0041290e]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00738e50], rax
lea rcx, [0x004128f4]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0041292c]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00738e58], rax
lea rcx, [0x004128f4]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0041294a]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00738e60], rax
add rsp, 0x28
ret
Function at 0x412bd0
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.0040ee40
movzx rax, word [rbp + 0x4e]
cmp word [0x006f51e0], ax
ja 0x412cb8
movzx rax, word [rbp + 0x4e]
cmp ax, word [0x006f55e0]
mov word [rbp + 0x4e], ax
ja 0x412cb8
mov ecx, 0x40
xor r8, r8
cmp ecx, r8d
jb 0x412cb7
mov eax, ecx
add eax, r8d
mov r9d, 2
xor edx, edx
div r9d
lea rdx, [0x006f51e0]
mov r9d, eax
add r9, r9
movzx r10, word [rbp + 0x4e]
cmp word [rdx + r9*8], r10w
jbe 0x412c71
mov ecx, eax
sub ecx, 1
jmp 0x412cb2
lea rdx, [0x006f51e0]
mov r8d, eax
add r8, r8
movzx r9, word [rbp + 0x4e]
cmp word [rdx + r8*8], r9w
jae 0x412c93
mov r8d, eax
add r8d, 1
jmp 0x412cb2
mov rcx, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x40]
lea r8, [0x006f51e8]
mov eax, eax
add rax, rax
mov r8, qword [r8 + rax*8]
call fcn.00412a60
jmp 0x412cb7
cmp ecx, r8d
jae 0x412c40
nop
mov rax, qword [rbp + 0x40]
cmp qword [rax], 0
jne 0x412d9a
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x412d9a
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.00410700
lea rcx, [rbp + 0x60]
lea rdx, [rbp + 0x7c]
mov r8d, 0x55
call fcn.00410700
lea rcx, [rbp + 0x58]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.00410700
mov rcx, qword [rbp + 0x40]
mov edx, 5
mov r8, qword [rbp + 0x68]
lea r9, [0x00412df4]
mov rax, qword [rbp + 0x60]
mov qword [rsp + 0x20], rax
lea rax, [0x00412e04]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.00410b80
nop
lea rcx, [rbp + 0x58]
mov edx, 3
call fcn.0040ef20
mov rax, qword [rbp + 0x40]
lea rsp, [rbp + 0x1d0]
pop rbp
ret
Function at 0x413010
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, [0x00738e70]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
cmp word [0x00738e98], ax
jne 0x41307b
mov rcx, qword [rbp + 0x28]
lea rdx, [0x00738e9a]
mov r8d, 0x55
call fcn.00410700
lea rcx, [0x00738e70]
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x413186
lea rcx, [0x00738e70]
call sub.kernel32.dll_LeaveCriticalSection
mov rcx, qword [rbp + 0x28]
call fcn.0040ee40
movzx rcx, word [rbp + 0x36]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x413140
cmp byte [0x00738e68], 0
je 0x4130d4
mov rcx, rbp
lea rdx, [rbp + 0x48]
movzx r8, word [rbp + 0x36]
call fcn.00412ea0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x48]
call fcn.0040f470
jmp 0x413140
mov rcx, rbp
lea rdx, [rbp + 0x40]
movzx r8, word [rbp + 0x36]
call fcn.00412bd0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.0040f470
call sub.kernel32.dll_GetSystemDefaultUILanguage
movzx rcx, word [rbp + 0x36]
cmp cx, ax
mov word [rbp + 0x36], cx
je 0x413140
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
je 0x41311f
mov rcx, qword [rbp + 0x28]
lea rdx, [0x004131d4]
call fcn.00410970
call sub.kernel32.dll_GetSystemDefaultUILanguage
mov rcx, rbp
lea rdx, [rbp + 0x38]
mov r8d, eax
call fcn.00412bd0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x38]
call fcn.00410970
lea rcx, [0x00738e70]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
mov word [0x00738e98], ax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax]
call fcn.00410600
lea rcx, [0x00738e9a]
mov edx, 0xaa
mov r8, rax
call fcn.00412980
lea rcx, [0x00738e70]
call sub.kernel32.dll_LeaveCriticalSection
nop
lea rcx, [rbp + 0x38]
mov edx, 3
call fcn.0040ef20
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x413bb0
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.0040efd0
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.00410700
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x38]
call fcn.00410a60
mov rcx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax]
call fcn.004139d0
test al, al
jne 0x413c7e
mov word [rbp + 0x4c], 0
lea rcx, [rbp + 0x30]
lea rdx, [rbp + 0x48]
mov r8d, 4
call fcn.00410700
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x30]
call fcn.00410a60
mov rcx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax]
call fcn.004139d0
test al, al
jne 0x413c7e
mov rcx, qword [rbp + 0x20]
call fcn.0040ee40
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.0040ef20
lea rcx, [rbp + 0x70]
call fcn.0040ee40
mov rax, qword [rbp + 0x20]
lea rsp, [rbp + 0x50]
pop rbp
ret