joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001450
Capabilities:
Create process on windows

Disassembly:
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x80]
call fcn.1400016b0
lea rax, str.Liblib_dynloadlibloadlib.pif
mov qword [rbp + 0xf8], rax
lea rax, str.Liblib_dynloadlibloaddata.pif
mov qword [rbp + 0xf0], rax
lea rdx, [rbp + 0x80]
mov eax, 0
mov ecx, 0xd
mov rdi, rdx
rep stosq qword [rdi], rax
mov dword [rbp + 0x80], 0x68
lea rdx, [rbp + 0x10]
mov eax, 0
mov ecx, 0xd
mov rdi, rdx
rep stosq qword [rdi], rax
mov dword [rbp + 0x10], 0x68
mov rax, qword [rbp + 0xf8]
lea rdx, [rbp - 0x10]
mov qword [rsp + 0x48], rdx
lea rdx, [rbp + 0x80]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
test eax, eax
setne al
test al, al
je 0x140001557
mov rax, qword [rbp - 0x10]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp + 0xf0]
lea rdx, [rbp - 0x30]
mov qword [rsp + 0x48], rdx
lea rdx, [rbp + 0x10]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
test eax, eax
setne al
test al, al
je 0x1400015ed
mov rax, qword [rbp - 0x30]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp - 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
add rsp, 0x188
pop rdi
pop rbp
ret

Function at 0x1400018c0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call fcn.1400026a0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]
Function at 0x180001030
Capabilities:
Resolve function by parsing pe exports

Disassembly:
movdqa xmmword [rsp + 0xe0], xmm6
mov rdi, rcx
mov rcx, qword [str.KERNEL32.dll]
mov rsi, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rsi
mov r13, rax
mov rcx, qword [str.ntdll.dll]
call rsi
mov r14, rax
mov qword [rsp + 0xd8], rdi
mov rax, qword [rdi + 0x38]
mov qword [rsp + 0x38], rax
mov r12d, dword [rax + 0xf0]
movsxd rax, dword [r13 + 0x3c]
mov eax, dword [r13 + rax + 0x88]
mov ecx, dword [r13 + rax + 0x1c]
mov qword [rsp + 0x48], rcx
mov esi, dword [r13 + rax + 0x20]
add rsi, r13
mov eax, dword [r13 + rax + 0x24]
mov qword [rsp + 0x40], rax
xor r15d, r15d
nop

Function at 0x1800010d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, dword [rsi + r15*4]
add rdi, r13
mov rcx, rdi
call fcn.180002860
mov edx, 0
test eax, eax
je 0x1800010e4
mov rcx, qword [rsp + 0x38]
mov ecx, dword [rcx + 0xa4]
add byte [rax], al
add byte [rcx + 0x31db31c0], cl
ror byte [rdi], cl
invalid
add byte [rax], 0
add byte [rax], al
imul edx, ecx
movsx ebp, byte [rdi + rbx]
movzx ebp, bp
add edx, ebp
inc rbx
cmp rax, rbx
jne fcn.1800010d0
cmp edx, r12d
je 0x1800010ee
inc r15
jmp 0x1800010a0
mov rcx, qword [rsp + 0x48]
add rcx, r13
mov rax, qword [rsp + 0x40]
add rax, r13
movzx eax, word [rax + r15*2]
mov eax, dword [rcx + rax*4]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x38]
Function at 0x180002030
Capabilities:
Encode data using xor

Disassembly:
xor dword [rbx + rax], ebp
add rax, 4
cmp rax, rdi
jb sym.libcurl.dll_curl_free

Function at 0x1800023f0
Capabilities:
Encode data using xor

Disassembly:
movsxd rdx, edx
xor dword [rdi + rdx], ecx
add edx, 4
cmp edx, eax
jb fcn.1800023f0

Function at 0x180003f20
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0x280], 0
je 0x180003f3d
call fcn.180057450
test eax, eax
jne 0x180003f63
xor al, al
add rsp, 0x28
ret
mov rcx, qword [rcx + 0x1e8]
cmp rcx, 0xffffffffffffffff
je 0x180003f36
mov r9d, 2
lea rdx, [rsp + 0x30]
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x180003f36
mov al, 1
add rsp, 0x28
ret

Function at 0x1800041b0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x1c0
mov rax, qword [0x18009ddc8]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
xorps xmm0, xmm0
mov dword [rsp + 0x20], 0x80
mov rax, rdx
mov rdi, r8
mov rsi, rcx
lea r8, [rsp + 0x20]
mov rcx, rax
lea rdx, [rsp + 0x30]
mov rbx, r9
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x180004258
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, eax
mov ebx, eax
call fcn.18003d5c0
mov r8d, ebx
lea rdx, str.getsockname___failed_with_errno__d:__s
jmp 0x1800042e1
movzx eax, word [rsp + 0x30]
cmp eax, 2
je 0x180004293
cmp eax, 0x17
jne 0x18000429f
lea rdx, [rsp + 0x38]
mov ecx, eax
mov r8, rdi
mov r9d, reloc.WLDAP32.dll_Ordinal_46
call fcn.180023c70
test rax, rax
je 0x18000429f
movzx ecx, word [rsp + 0x32]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [rbx], eax
jmp 0x1800042ec
lea rdx, [rsp + 0x34]
mov ecx, 2
jmp 0x18000426e
mov byte [rdi], 0
mov dword [rbx], 0
call fcn.180063140
mov dword [rax], 0x273f
call fcn.180063140
mov ebx, dword [rax]
call fcn.180063140
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, ebx
mov rdi, rax
call fcn.18003d5c0
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.180033740
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.180058650
add rsp, 0x1c0
pop rdi
pop rsi
pop rbx
ret
Function at 0x180015ad0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, rcx
mov ebx, 1
mov edx, ebx
xor ecx, ecx
xor ebp, ebp
call qword [0x18009c020]
mov rdi, rax
test rax, rax
je 0x180015b4d
nop word [rax + rax]
mov r8d, ebx
mov rdx, rdi
mov rcx, r14
mov rbp, rdi
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebx, eax
test eax, eax
je 0x180015b78
cmp ebx, esi
je 0x180015b78
cmp ebx, 0x8000
ja 0x180015b78
cmp ebx, esi
jb 0x180015b73
mov edx, ebx
mov rcx, rdi
call qword [0x18009c020]
mov rdi, rax
test rax, rax
jne 0x180015b10
mov rcx, rbp
call qword [fcn.180065170]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rax, rdi
jmp 0x180015b58
mov rcx, rdi
jmp 0x180015b50

Function at 0x180016f70
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [fcn.180065184]
mov rdi, rax
test rax, rax
jne 0x180016fb2
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x180016ff9
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x180017052
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x180017010
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x180017093
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, str.6xn__
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x18007f0b7]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x180017060
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x180018500
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
mov rax, qword [rcx + 0x18]
cmp byte [rax + 0x3ea], 0
jne fcn.18000b860
jmp fcn.180002260
Function at 0x408ad0
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.004089e0
mov rcx, rax
lea rdx, [rbp + 0x38]
call fcn.004089e0
cmp qword [rbp + 0x38], 0
je 0x408b16
mov ecx, dword [rbp + 0x2c]
add ecx, 1
mov dword [rbp + 0x2c], ecx
jmp 0x408af8
nop
nop
lea rcx, [rbp + 0x38]
call fcn.0040e6c0
mov eax, dword [rbp + 0x2c]
lea rsp, [rbp + 0x40]
pop rbp
ret

Function at 0x40c280
Capabilities:
Check for time delay via gettickcount

Disassembly:
push r14
push r13
push rdi
push rsi
push rbx
sub rsp, 0x30
mov qword [rsp + 0x28], rcx
mov ebx, edx
mov rax, qword [rsp + 0x28]
mov r13d, dword [rax + 0x18]
mov rcx, qword [rsp + 0x28]
call fcn.0040c820
mov esi, eax
test sil, sil
jne 0x40c442
test ebx, ebx
je 0x40c442
xor rdi, rdi
test r13d, r13d
jle 0x40c35f
call sub.kernel32.dll_GetTickCount
mov r14d, eax
test r13d, r13d
jle 0x40c33e
cmp ebx, 0xffffffff
je 0x40c2eb
call sub.kernel32.dll_GetTickCount
sub eax, r14d
cmp eax, ebx
jb 0x40c2eb
xor rsi, rsi
jmp 0x40c442
mov rax, qword [rsp + 0x28]
cmp dword [rax], 1
jg 0x40c33e
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0
jne 0x40c330
xor eax, eax
mov ecx, 1
mov rdx, qword [rsp + 0x28]
lock cmpxchg dword [rdx], ecx
test eax, eax
jne 0x40c330
call sub.kernel32.dll_GetCurrentThreadId
mov rcx, qword [rsp + 0x28]
mov dword [rcx + 8], eax
mov dword [rcx + 4], 1
mov sil, 1
jmp 0x40c442
call fcn.0040c9b0
sub r13d, 1
test r13d, r13d
jg 0x40c2d2
nop
cmp ebx, 0xffffffff
je 0x40c35f
call sub.kernel32.dll_GetTickCount
mov ecx, eax
sub ecx, r14d
cmp ecx, ebx
jb 0x40c35a
xor rsi, rsi
jmp 0x40c442
sub eax, r14d
sub ebx, eax
mov rax, qword [rsp + 0x28]
mov ecx, dword [rax]
test ecx, ecx
je 0x40c29b
mov edx, ecx
add edx, 2
mov eax, ecx
mov r8, qword [rsp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x40c35f
nop
call sub.kernel32.dll_GetTickCount
mov r14d, eax
mov rcx, qword [rsp + 0x28]
call fcn.0040c4f0
xor rcx, rcx
mov rdx, rax
mov r8d, ebx
mov rax, qword [0x007009a0]
call qword [rax + 0x20]
test eax, eax
sete sil
cmp ebx, 0xffffffff
je 0x40c3cc
call sub.kernel32.dll_GetTickCount
mov ecx, eax
sub ecx, r14d
cmp ecx, ebx
jae 0x40c3c9
sub eax, r14d
sub ebx, eax
jmp 0x40c3cc
xor rbx, rbx
test sil, sil
je 0x40c400
mov rax, qword [rsp + 0x28]
mov ecx, dword [rax]
mov eax, ecx
test eax, 1
jne 0x40c3fd
mov edx, ecx
sub edx, 2
or edx, 1
mov eax, ecx
mov r8, qword [rsp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x40c3d1
mov dil, 1
nop
jmp 0x40c41f
mov rax, qword [rsp + 0x28]
mov ecx, dword [rax]
mov edx, ecx
sub edx, 2
mov eax, ecx
mov r8, qword [rsp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x40c400
mov dil, 1
test dil, dil
je 0x40c384
nop
test sil, sil
je 0x40c442
call sub.kernel32.dll_GetCurrentThreadId
mov rcx, qword [rsp + 0x28]
mov dword [rcx + 8], eax
mov dword [rcx + 4], 1
mov eax, esi
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop r13
pop r14
ret
Function at 0x40e120
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
cmp byte [0x007000a8], 0
je 0x40e1be
cmp word [0x007003b8], 0xd7b2
jne 0x40e153
cmp dword [0x007003c0], 0
jbe 0x40e153
lea rcx, [0x007003b0]
call qword [0x007003d8]
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
lea rdx, [0x006c39d0]
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, [0x0040e1f4]
call fcn.0040f490
mov rcx, rbx
mov rdx, rax
mov r8d, 2
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x40e1e0
cmp byte [0x006c2052], 0
jne 0x40e1e0
xor rcx, rcx
lea rdx, [0x006c39d0]
lea r8, str.Error
xor r9, r9
call sub.user32.dll_MessageBoxA
add rsp, 0x40
pop rbx
ret

Function at 0x40e4b0
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 [0x006c2058], 0
je 0x40e4e1
mov rcx, rsi
mov rdx, rdi
call qword [0x006c2058]
mov r13, rax
jmp 0x40e4f7
mov ecx, 0x10
call fcn.00408450
mov r13, rax
mov qword [r13], rsi
mov qword [r13 + 8], rdi
mov byte [0x007000a9], 1
mov rcx, qword [rsp + 0x38]
mov edx, ebx
lea r8, [0x0040e440]
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 0x40e53c
mov rcx, r13
call fcn.00408480
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r13
ret

Function at 0x411c90
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
lea rcx, [0x00704c90]
call sub.kernel32.dll_InitializeCriticalSection
mov word [0x00704cb8], 0x7f
call sub.kernel32.dll_GetVersion
and eax, 0xff
cmp eax, 6
setae al
mov byte [0x00704c88], al
cmp byte [0x00704c88], 0
je 0x411d2f
lea rcx, [0x00411d34]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x00411d4e]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00704c70], rax
lea rcx, [0x00411d34]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x00411d6c]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00704c78], rax
lea rcx, [0x00411d34]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x00411d8a]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00704c80], rax
add rsp, 0x28
ret
Function at 0x411fc0
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.0040e6c0
movzx rax, word [rbp + 0x4e]
cmp word [0x006c40f0], ax
ja 0x4120a8
movzx rax, word [rbp + 0x4e]
cmp ax, word [0x006c44f0]
mov word [rbp + 0x4e], ax
ja 0x4120a8
mov ecx, 0x40
xor r8, r8
cmp ecx, r8d
jb 0x4120a7
mov eax, ecx
add eax, r8d
mov r9d, 2
xor edx, edx
div r9d
lea rdx, [0x006c40f0]
mov r9d, eax
add r9, r9
movzx r10, word [rbp + 0x4e]
cmp word [rdx + r9*8], r10w
jbe 0x412061
mov ecx, eax
sub ecx, 1
jmp 0x4120a2
lea rdx, [0x006c40f0]
mov r8d, eax
add r8, r8
movzx r9, word [rbp + 0x4e]
cmp word [rdx + r8*8], r9w
jae 0x412083
mov r8d, eax
add r8d, 1
jmp 0x4120a2
mov rcx, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x40]
lea r8, [0x006c40f8]
mov eax, eax
add rax, rax
mov r8, qword [r8 + rax*8]
call fcn.00411e60
jmp 0x4120a7
cmp ecx, r8d
jae 0x412030
nop
mov rax, qword [rbp + 0x40]
cmp qword [rax], 0
jne 0x41218a
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x41218a
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.0040fb60
lea rcx, [rbp + 0x60]
lea rdx, [rbp + 0x7c]
mov r8d, 0x55
call fcn.0040fb60
lea rcx, [rbp + 0x58]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.0040fb60
mov rcx, qword [rbp + 0x40]
mov edx, 5
mov r8, qword [rbp + 0x68]
lea r9, [0x004121e4]
mov rax, qword [rbp + 0x60]
mov qword [rsp + 0x20], rax
lea rax, [0x004121f4]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.0040ffe0
nop
lea rcx, [rbp + 0x58]
mov edx, 3
call fcn.0040e7a0
mov rax, qword [rbp + 0x40]
lea rsp, [rbp + 0x1d0]
pop rbp
ret
Function at 0x412400
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, [0x00704c90]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
cmp word [0x00704cb8], ax
jne 0x41246b
mov rcx, qword [rbp + 0x28]
lea rdx, [0x00704cba]
mov r8d, 0x55
call fcn.0040fb60
lea rcx, [0x00704c90]
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x412577
lea rcx, [0x00704c90]
call sub.kernel32.dll_LeaveCriticalSection
mov rcx, qword [rbp + 0x28]
call fcn.0040e6c0
movzx rcx, word [rbp + 0x36]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x412530
cmp byte [0x00704c88], 0
je 0x4124c4
mov rcx, rbp
lea rdx, [rbp + 0x48]
movzx r8, word [rbp + 0x36]
call fcn.00412290
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x48]
call fcn.0040ecf0
jmp 0x412530
mov rcx, rbp
lea rdx, [rbp + 0x40]
movzx r8, word [rbp + 0x36]
call fcn.00411fc0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.0040ecf0
call sub.kernel32.dll_GetSystemDefaultUILanguage
movzx rcx, word [rbp + 0x36]
cmp cx, ax
mov word [rbp + 0x36], cx
je 0x412530
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
je 0x41250f
mov rcx, qword [rbp + 0x28]
lea rdx, [0x004125c4]
call fcn.0040fdd0
call sub.kernel32.dll_GetSystemDefaultUILanguage
mov rcx, rbp
lea rdx, [rbp + 0x38]
mov r8d, eax
call fcn.00411fc0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x38]
call fcn.0040fdd0
lea rcx, [0x00704c90]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
mov word [0x00704cb8], ax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax]
call fcn.0040fa60
lea rcx, [0x00704cba]
mov rdx, rax
mov r8d, 0xaa
call sub.kernel32.dll_lstrcpynW
lea rcx, [0x00704c90]
call sub.kernel32.dll_LeaveCriticalSection
nop
lea rcx, [rbp + 0x38]
mov edx, 3
call fcn.0040e7a0
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x4130c0
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.0040e850
mov rcx, qword [rbp + 0x90]
call fcn.0040e850
nop
mov rcx, qword [rbp + 0x28]
call fcn.0040e6c0
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
call fcn.0040ed70
xor rax, rax
cmp qword [rbp + 0x90], 0
je 0x413163
mov rax, qword [rbp + 0x90]
mov eax, dword [rax - 4]
cmp eax, 1
jl 0x41319d
mov rcx, qword [rbp + 0x90]
movsxd rdx, eax
cmp word [rcx + rdx*2 - 2], 0x2e
jne 0x413196
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
mov r8d, 1
movsxd r9, eax
call fcn.004100d0
jmp 0x41319d
sub eax, 1
test eax, eax
jne 0x413168
nop
lea rcx, [rbp + 0x68]
mov rdx, qword [rbp + 0x88]
call fcn.00412c90
cmp qword [rbp + 0x68], 0
je 0x4131db
mov rcx, rbp
lea rdx, [rbp + 0x58]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x68]
call fcn.00412e40
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x58]
call fcn.0040ecf0
jmp 0x413277
call sub.kernel32.dll_GetUserDefaultUILanguage
lea rcx, [rbp + 0x48]
mov edx, eax
call fcn.00412400
mov rcx, rbp
lea rdx, [rbp + 0x50]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x48]
call fcn.00412e40
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x50]
call fcn.0040ecf0
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x413250
cmp byte [0x00704c88], 0
jne 0x413250
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea rcx, [rbp + 0x38]
mov edx, eax
call fcn.00412400
mov rcx, rbp
lea rdx, [rbp + 0x40]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x38]
call fcn.00412e40
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.0040ecf0
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x413277
mov rcx, rbp
lea rdx, [rbp + 0x30]
mov r8, qword [rbp + 0x60]
call fcn.00412f80
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x30]
call fcn.0040ecf0
nop
lea rcx, [rbp + 0x30]
mov edx, 8
call fcn.0040e7a0
lea rcx, [rbp + 0x88]
mov edx, 2
call fcn.0040e7a0
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x70]
pop rbp
ret

Function at 0x413fb0
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 0x413fd0
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 0x413ff4
cmp eax, 1
jae 0x413ff9
cmp ecx, 5
jbe 0x414005
mov dword [0x007009b0], 0x7f
jmp 0x41400f
mov dword [0x007009b0], 0x409
add rsp, 0x28
ret