joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18001d9a0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [0x1801b93f8]
mov rbx, rcx
xor ecx, ecx
mov dword [rax + 0x3044], ecx
test rbx, rbx
je 0x18001da0f
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x38], rdi
call fcn.18001da20
lea rdx, [0x18004f074]
mov rcx, rbx
mov rdi, rax
call fcn.180014730
mov rbx, rax
test rax, rax
je 0x18001da0a
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret

Function at 0x18001f550
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x20
mov rbx, qword [0x1801b93f8]
cmp byte [rbx + 0x3041], 0
jne 0x18001f6a9
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x18001f6a2
lea rdx, [0x18004f070]
mov qword [rsp + 0x38], rdi
call fcn.180014730
mov rdi, rax
test rax, rax
je 0x18001f69d
mov qword [rsp + 0x40], r14
mov rcx, rax
mov qword [rsp + 0x30], rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov r14d, eax
cmp eax, 0xffffffff
je 0x18001f68a
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x18001f68a
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rbp, eax
cmp ebp, 0xffffffff
je 0x18001f68a
xor r8d, r8d
mov edx, r14d
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x18001f68a
mov r14, rbp
cmp rbp, 0xffffffffffffffff
je 0x18001f68a
mov rax, qword [0x1801b93f8]
test rax, rax
je 0x18001f619
inc dword [rax + 0x3bc]
mov rdx, qword [0x1801b9408]
mov rcx, r14
call qword [0x1801b8730]
mov rbp, rax
test rax, rax
je 0x18001f68a
mov r9, rdi
mov r8, r14
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rdi
cmp rax, r14
je 0x18001f655
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x18001f666
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rdx, r14
mov rcx, rbp
call fcn.180016040
mov rax, qword [0x1801b93f8]
test rax, rax
je 0x18001f678
dec dword [rax + 0x3bc]
mov rdx, qword [0x1801b9408]
mov rcx, rbp
call qword [0x1801b8738]
jmp 0x18001f693
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbp, qword [rsp + 0x30]
mov r14, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x38]
mov byte [rbx + 0x3041], 1
movss xmm0, dword [rbx + 0x3044]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x18001f6ec
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x3044], xmm0
jb 0x18001f6ec
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x18001f6db
call fcn.18001d9a0
jmp 0x18001f6e2
mov byte [rbx + 0x3a4], 1
mov dword [rbx + 0x3044], 0
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
ret
Function at 0x180023850
Capabilities:
Resolve function by parsing pe exports

Disassembly:
test r9d, 0xff000000
je 0x1800239e1
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
movss xmm3, dword [rsp + 0x70]
xorps xmm0, xmm0
comiss xmm3, xmm0
mov edi, r9d
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
jbe 0x1800238c0
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x20], eax
call fcn.180026d10
mov r8d, dword [rbx + 0x80]
mov r9d, edi
mov rdx, qword [rbx + 0x88]
mov rcx, rbx
call fcn.180021600
mov dword [rbx + 0x80], 0
jmp 0x1800239cd
mov edx, 6
movaps xmmword [rsp + 0x30], xmm6
lea r8d, [rdx - 2]
call fcn.180027250
movzx edx, word [rbx + 0x48]
mov rax, qword [rbx + 0x38]
movss xmm1, dword [rsi]
movss xmm2, dword [rbp + 4]
movss xmm3, dword [rbp]
lea ecx, [rdx + 1]
movss xmm6, dword [rax + 4]
movss xmm5, dword [rax]
movss xmm4, dword [rsi + 4]
mov rax, qword [rbx + 0x58]
mov word [rax], dx
mov rax, qword [rbx + 0x58]
mov word [rax + 2], cx
lea ecx, [rdx + 2]
mov rax, qword [rbx + 0x58]
mov word [rax + 4], cx
mov rax, qword [rbx + 0x58]
mov word [rax + 6], dx
add dx, 3
mov rax, qword [rbx + 0x58]
mov word [rax + 8], cx
mov rax, qword [rbx + 0x58]
mov word [rax + 0xa], dx
movsd xmm0, qword [rbp]
mov rax, qword [rbx + 0x50]
movsd qword [rax], xmm0
mov rax, qword [rbx + 0x50]
movss dword [rax + 8], xmm5
movss dword [rax + 0xc], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x10], edi
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x14], xmm1
movss dword [rax + 0x18], xmm2
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x1c], xmm5
movss dword [rax + 0x20], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x24], edi
movsd xmm0, qword [rsi]
mov rax, qword [rbx + 0x50]
movsd qword [rax + 0x28], xmm0
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x30], xmm5
movss dword [rax + 0x34], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x38], edi
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x3c], xmm3
movss dword [rax + 0x40], xmm4
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x44], xmm5
movss dword [rax + 0x48], xmm6
mov rax, qword [rbx + 0x50]
movaps xmm6, xmmword [rsp + 0x30]
mov dword [rax + 0x4c], edi
add qword [rbx + 0x50], 0x50
add dword [rbx + 0x48], 4
add qword [rbx + 0x58], 0xc
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x180041ae0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x168
mov rax, qword [0x1801b8a28]
xor rax, rsp
mov qword [rsp + 0x150], rax
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
lea rax, [rsp + 0x40]
mov edi, 0x104
mov dword [rsp + 0x28], edi
lea r9, str._HH:mm:ss_
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, 0xc00
call qword [sym.imp.KERNEL32.dll_GetTimeFormatA]
lea esi, [rax - 1]
movsxd rbx, esi
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, edi
lea rcx, [rsp + 0x40]
sub rdx, rbx
lea r8, str._TID:_0x_X_
add rcx, rbx
mov r9d, eax
call fcn.180041c70
add esi, eax
lea rbx, [rsp + 0x40]
movsxd rax, esi
lea rbp, [rsp + 0x198]
sub rdi, rax
add rbx, rax
call fcn.18000bc30
mov r9, qword [rsp + 0x190]
mov r8, rdi
mov qword [rsp + 0x28], rbp
mov rdx, rbx
xor ebp, ebp
mov rcx, qword [rax]
or rcx, 2
mov qword [rsp + 0x20], rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vsprintf]
mov ecx, 0xffffffff
mov qword [rsp + 0x20], rbp
test eax, eax
lea rdx, [rsp + 0x40]
cmovs eax, ecx
mov rcx, qword [0x1801b9500]
xor r9d, r9d
lea r8d, [rsi + rax]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.180049c80
add rsp, 0x168
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14001116d
Capabilities:
Enumerate processes
Terminate process

Disassembly:
jmp 0x140011910
push rbp
push rsi
push rdi
sub rsp, 0x460
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xb0
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14001d008]
xor rax, rbp
mov qword [rbp + 0x438], rax
lea rcx, [0x1400230f5]
call fcn.140011398
lea rax, [rbp + 8]
lea rcx, str.uTorrent.exe
mov rdi, rax
mov rsi, rcx
mov ecx, 0x1a
rep movsb byte [rdi], byte [rsi]
xor edx, edx
mov ecx, 2
call fcn.1400111b3
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
jne 0x140011988
mov ecx, 2
call qword [sym.imp.ucrtbased.dll_exit]
mov dword [rbp + 0x70], 0x238
lea rdx, [rbp + 0x70]
mov rcx, qword [rbp + 0x48]
call fcn.14001123a
lea rax, [rbp + 0x9c]
lea rcx, [rbp + 8]
cmp rax, rcx
jne 0x1400119b1
mov eax, dword [rbp + 0x78]
jmp 0x1400119c7
lea rdx, [rbp + 0x70]
mov rcx, qword [rbp + 0x48]
call fcn.140011352
test eax, eax
jne 0x14001199c
mov eax, 1
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001ac40]
call fcn.14001132f
mov rax, rdi
mov rcx, qword [rbp + 0x438]
xor rcx, rbp
call fcn.1400111c7
lea rsp, [rbp + 0x440]
pop rdi
pop rsi
pop rbp
ret

Function at 0x14001120d
Capabilities:
Terminate process

Disassembly:
jmp 0x140012ee0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140011294
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014230
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014250
xor al, al
jmp 0x1400142d1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014263
xor al, al
jmp 0x1400142d1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001428d
xor al, al
jmp 0x1400142d1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400142a1
xor al, al
jmp 0x1400142d1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400142b3
xor al, al
jmp 0x1400142d1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400142cf
xor al, al
jmp 0x1400142d1
mov al, 1
add rsp, 0x38
ret
Function at 0x1004039e0
Capabilities:
Encode data using xor

Disassembly:
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
xor byte [rax], dh
Function at 0x140001000
Capabilities:
Connect socket
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x1e0
mov rax, qword [0x140003008]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov edx, 1
mov ebx, 2
mov ecx, ebx
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
lea rcx, str.127.0.0.1
mov word [rsp + 0x20], bx
mov qword [0x140003630], rax
call qword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, 0x7e7
mov dword [rsp + 0x24], eax
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x22], ax
nop
mov rcx, qword [0x140003630]
lea rdx, [rsp + 0x20]
mov r8d, reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x140001070
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140001160
add rsp, 0x1e0
pop rbx
ret
Function at 0x40b530
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.0040bad0
mov esi, eax
test sil, sil
jne 0x40b6f2
test ebx, ebx
je 0x40b6f2
xor rdi, rdi
test r13d, r13d
jle 0x40b60f
call sub.kernel32.dll_GetTickCount
mov r14d, eax
test r13d, r13d
jle 0x40b5ee
cmp ebx, 0xffffffff
je 0x40b59b
call sub.kernel32.dll_GetTickCount
sub eax, r14d
cmp eax, ebx
jb 0x40b59b
xor rsi, rsi
jmp 0x40b6f2
mov rax, qword [rsp + 0x28]
cmp dword [rax], 1
jg 0x40b5ee
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0
jne 0x40b5e0
xor eax, eax
mov ecx, 1
mov rdx, qword [rsp + 0x28]
lock cmpxchg dword [rdx], ecx
test eax, eax
jne 0x40b5e0
call sub.kernel32.dll_GetCurrentThreadId
mov rcx, qword [rsp + 0x28]
mov dword [rcx + 8], eax
mov dword [rcx + 4], 1
mov sil, 1
jmp 0x40b6f2
call fcn.0040bc60
sub r13d, 1
test r13d, r13d
jg 0x40b582
nop
cmp ebx, 0xffffffff
je 0x40b60f
call sub.kernel32.dll_GetTickCount
mov ecx, eax
sub ecx, r14d
cmp ecx, ebx
jb 0x40b60a
xor rsi, rsi
jmp 0x40b6f2
sub eax, r14d
sub ebx, eax
mov rax, qword [rsp + 0x28]
mov ecx, dword [rax]
test ecx, ecx
je 0x40b54b
mov edx, ecx
add edx, 2
mov eax, ecx
mov r8, qword [rsp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x40b60f
nop
call sub.kernel32.dll_GetTickCount
mov r14d, eax
mov rcx, qword [rsp + 0x28]
call fcn.0040b7a0
xor rcx, rcx
mov rdx, rax
mov r8d, ebx
mov rax, qword [0x007e29a0]
call qword [rax + 0x20]
test eax, eax
sete sil
cmp ebx, 0xffffffff
je 0x40b67c
call sub.kernel32.dll_GetTickCount
mov ecx, eax
sub ecx, r14d
cmp ecx, ebx
jae 0x40b679
sub eax, r14d
sub ebx, eax
jmp 0x40b67c
xor rbx, rbx
test sil, sil
je 0x40b6b0
mov rax, qword [rsp + 0x28]
mov ecx, dword [rax]
mov eax, ecx
test eax, 1
jne 0x40b6ad
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 0x40b681
mov dil, 1
nop
jmp 0x40b6cf
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 0x40b6b0
mov dil, 1
test dil, dil
je 0x40b634
nop
test sil, sil
je 0x40b6f2
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 0x40d3d0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
cmp byte [0x007e20a8], 0
je 0x40d46e
cmp word [0x007e23b8], 0xd7b2
jne 0x40d403
cmp dword [0x007e23c0], 0
jbe 0x40d403
lea rcx, [0x007e23b0]
call qword [0x007e23d8]
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
lea rdx, [0x00797848]
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, [0x0040d4a4]
call fcn.0040e730
mov rcx, rbx
mov rdx, rax
mov r8d, 2
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x40d490
cmp byte [0x00796052], 0
jne 0x40d490
xor rcx, rcx
lea rdx, [0x00797848]
lea r8, str.Error
xor r9, r9
call sub.user32.dll_MessageBoxA
add rsp, 0x40
pop rbx
ret

Function at 0x40d760
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 [0x00796058], 0
je 0x40d791
mov rcx, rsi
mov rdx, rdi
call qword [0x00796058]
mov r13, rax
jmp 0x40d7a7
mov ecx, 0x10
call fcn.004083c0
mov r13, rax
mov qword [r13], rsi
mov qword [r13 + 8], rdi
mov byte [0x007e20a9], 1
mov rcx, qword [rsp + 0x38]
mov edx, ebx
lea r8, [0x0040d6f0]
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 0x40d7ec
mov rcx, r13
call fcn.004083f0
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r13
ret

Function at 0x410f00
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
lea rcx, [0x007e6c90]
call sub.kernel32.dll_InitializeCriticalSection
mov word [0x007e6cb8], 0x7f
call sub.kernel32.dll_GetVersion
and eax, 0xff
cmp eax, 6
setae al
mov byte [0x007e6c88], al
cmp byte [0x007e6c88], 0
je 0x410f9f
lea rcx, [0x00410fa4]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x00410fbe]
call sub.kernel32.dll_GetProcAddress
mov qword [0x007e6c70], rax
lea rcx, [0x00410fa4]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x00410fdc]
call sub.kernel32.dll_GetProcAddress
mov qword [0x007e6c78], rax
lea rcx, [0x00410fa4]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x00410ffa]
call sub.kernel32.dll_GetProcAddress
mov qword [0x007e6c80], rax
add rsp, 0x28
ret
Function at 0x411230
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.0040d970
movzx rax, word [rbp + 0x4e]
cmp word [0x00797f60], ax
ja 0x411318
movzx rax, word [rbp + 0x4e]
cmp ax, word [0x00798360]
mov word [rbp + 0x4e], ax
ja 0x411318
mov ecx, 0x40
xor r8, r8
cmp ecx, r8d
jb 0x411317
mov eax, ecx
add eax, r8d
mov r9d, 2
xor edx, edx
div r9d
lea rdx, [0x00797f60]
mov r9d, eax
add r9, r9
movzx r10, word [rbp + 0x4e]
cmp word [rdx + r9*8], r10w
jbe 0x4112d1
mov ecx, eax
sub ecx, 1
jmp 0x411312
lea rdx, [0x00797f60]
mov r8d, eax
add r8, r8
movzx r9, word [rbp + 0x4e]
cmp word [rdx + r8*8], r9w
jae 0x4112f3
mov r8d, eax
add r8d, 1
jmp 0x411312
mov rcx, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x40]
lea r8, [0x00797f68]
mov eax, eax
add rax, rax
mov r8, qword [r8 + rax*8]
call fcn.004110d0
jmp 0x411317
cmp ecx, r8d
jae 0x4112a0
nop
mov rax, qword [rbp + 0x40]
cmp qword [rax], 0
jne 0x4113fa
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4113fa
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.0040edd0
lea rcx, [rbp + 0x60]
lea rdx, [rbp + 0x7c]
mov r8d, 0x55
call fcn.0040edd0
lea rcx, [rbp + 0x58]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.0040edd0
mov rcx, qword [rbp + 0x40]
mov edx, 5
mov r8, qword [rbp + 0x68]
lea r9, [0x00411454]
mov rax, qword [rbp + 0x60]
mov qword [rsp + 0x20], rax
lea rax, [0x00411464]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.0040f250
nop
lea rcx, [rbp + 0x58]
mov edx, 3
call fcn.0040da50
mov rax, qword [rbp + 0x40]
lea rsp, [rbp + 0x1d0]
pop rbp
ret
Function at 0x411670
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, [0x007e6c90]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
cmp word [0x007e6cb8], ax
jne 0x4116db
mov rcx, qword [rbp + 0x28]
lea rdx, [0x007e6cba]
mov r8d, 0x55
call fcn.0040edd0
lea rcx, [0x007e6c90]
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4117e7
lea rcx, [0x007e6c90]
call sub.kernel32.dll_LeaveCriticalSection
mov rcx, qword [rbp + 0x28]
call fcn.0040d970
movzx rcx, word [rbp + 0x36]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4117a0
cmp byte [0x007e6c88], 0
je 0x411734
mov rcx, rbp
lea rdx, [rbp + 0x48]
movzx r8, word [rbp + 0x36]
call fcn.00411500
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x48]
call fcn.0040dfa0
jmp 0x4117a0
mov rcx, rbp
lea rdx, [rbp + 0x40]
movzx r8, word [rbp + 0x36]
call fcn.00411230
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.0040dfa0
call sub.kernel32.dll_GetSystemDefaultUILanguage
movzx rcx, word [rbp + 0x36]
cmp cx, ax
mov word [rbp + 0x36], cx
je 0x4117a0
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
je 0x41177f
mov rcx, qword [rbp + 0x28]
lea rdx, [0x00411834]
call fcn.0040f040
call sub.kernel32.dll_GetSystemDefaultUILanguage
mov rcx, rbp
lea rdx, [rbp + 0x38]
mov r8d, eax
call fcn.00411230
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x38]
call fcn.0040f040
lea rcx, [0x007e6c90]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
mov word [0x007e6cb8], ax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax]
call fcn.0040ed00
lea rcx, [0x007e6cba]
mov rdx, rax
mov r8d, 0xaa
call sub.kernel32.dll_lstrcpynW
lea rcx, [0x007e6c90]
call sub.kernel32.dll_LeaveCriticalSection
nop
lea rcx, [rbp + 0x38]
mov edx, 3
call fcn.0040da50
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x4121f0
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.0040db00
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.0040edd0
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x38]
call fcn.0040f130
mov rcx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax]
call fcn.00412010
test al, al
jne 0x4122be
mov word [rbp + 0x4c], 0
lea rcx, [rbp + 0x30]
lea rdx, [rbp + 0x48]
mov r8d, 4
call fcn.0040edd0
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x30]
call fcn.0040f130
mov rcx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax]
call fcn.00412010
test al, al
jne 0x4122be
mov rcx, qword [rbp + 0x20]
call fcn.0040d970
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.0040da50
lea rcx, [rbp + 0x70]
call fcn.0040d970
mov rax, qword [rbp + 0x20]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x412330
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.0040db00
mov rcx, qword [rbp + 0x90]
call fcn.0040db00
nop
mov rcx, qword [rbp + 0x28]
call fcn.0040d970
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
call fcn.0040e020
xor rax, rax
cmp qword [rbp + 0x90], 0
je 0x4123d3
mov rax, qword [rbp + 0x90]
mov eax, dword [rax - 4]
cmp eax, 1
jl 0x41240d
mov rcx, qword [rbp + 0x90]
movsxd rdx, eax
cmp word [rcx + rdx*2 - 2], 0x2e
jne 0x412406
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
mov r8d, 1
movsxd r9, eax
call fcn.0040f340
jmp 0x41240d
sub eax, 1
test eax, eax
jne 0x4123d8
nop
lea rcx, [rbp + 0x68]
mov rdx, qword [rbp + 0x88]
call fcn.00411f00
cmp qword [rbp + 0x68], 0
je 0x41244b
mov rcx, rbp
lea rdx, [rbp + 0x58]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x68]
call fcn.004120b0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x58]
call fcn.0040dfa0
jmp 0x4124e7
call sub.kernel32.dll_GetUserDefaultUILanguage
lea rcx, [rbp + 0x48]
mov edx, eax
call fcn.00411670
mov rcx, rbp
lea rdx, [rbp + 0x50]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x48]
call fcn.004120b0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x50]
call fcn.0040dfa0
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x4124c0
cmp byte [0x007e6c88], 0
jne 0x4124c0
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea rcx, [rbp + 0x38]
mov edx, eax
call fcn.00411670
mov rcx, rbp
lea rdx, [rbp + 0x40]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x38]
call fcn.004120b0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.0040dfa0
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x4124e7
mov rcx, rbp
lea rdx, [rbp + 0x30]
mov r8, qword [rbp + 0x60]
call fcn.004121f0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x30]
call fcn.0040dfa0
nop
lea rcx, [rbp + 0x30]
mov edx, 8
call fcn.0040da50
lea rcx, [rbp + 0x88]
mov edx, 2
call fcn.0040da50
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x70]
pop rbp
ret

Function at 0x413220
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 0x413240
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 0x413264
cmp eax, 1
jae 0x413269
cmp ecx, 5
jbe 0x413275
mov dword [0x007e29b0], 0x7f
jmp 0x41327f
mov dword [0x007e29b0], 0x409
add rsp, 0x28
ret