joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18002ca24
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x18002ca56
call fcn.18002416c
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.18001cc08
jmp 0x18002cb75
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x18002cb75
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x18002cb75
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x18002ca85
lock or dword [rcx + 0x14], 0x10
jmp 0x18002cb75
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x18002ca99
call fcn.18002db3c
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.1800280ac
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.18002e054
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x18002cb63
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x18002cb2e
mov rcx, rsi
call fcn.1800280ac
cmp eax, edi
je 0x18002cb19
mov rcx, rsi
call fcn.1800280ac
cmp eax, 0xfffffffe
je 0x18002cb19
mov rcx, rsi
call fcn.1800280ac
movsxd rbx, eax
lea r14, [0x180051eb0]
mov rcx, rsi
sar rbx, 6
call fcn.1800280ac
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x18002cb20
lea rdx, [0x18004f420]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x18002cb2e
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x18002cb52
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x18002cb52
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x18002cb52
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x18002cb78
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x18002cb90
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x18002c8b2
call fcn.18002416c
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.18001cc08
jmp 0x18002ca02
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x18002ca02
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x18002ca02
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x18002c8e1
lock or dword [rcx + 0x14], 0x10
jmp 0x18002ca02
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x18002c8f5
call fcn.18002db3c
mov ebp, dword [rbx + 0x10]
cmp ebp, 1
jne 0x18002c905
mov rax, qword [rbx]
mov r14b, byte [rax]
jmp 0x18002c908
xor r14b, r14b
mov rsi, qword [rbx + 8]
mov rcx, rbx
mov edi, dword [rbx + 0x20]
mov qword [rbx], rsi
call fcn.1800280ac
mov r8d, edi
mov rdx, rsi
mov ecx, eax
call fcn.18002e054
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x18002c9f0
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x18002c99b
mov rcx, rbx
call fcn.1800280ac
cmp eax, 0xffffffff
je 0x18002c986
mov rcx, rbx
call fcn.1800280ac
cmp eax, 0xfffffffe
je 0x18002c986
mov rcx, rbx
call fcn.1800280ac
movsxd rdi, eax
lea rsi, [0x180051eb0]
mov rcx, rbx
sar rdi, 6
call fcn.1800280ac
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [rsi + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x18002c98d
lea rdx, [0x18004f420]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x18002c99b
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x18002c9bf
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x18002c9bf
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x18002c9bf
mov dword [rbx + 0x20], 0x1000
mov rdx, qword [rbx]
cmp ebp, 1
jne 0x18002c9dd
movzx ecx, byte [rdx]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, r14b
or cx, ax
inc rdx
jmp 0x18002c9e8
movzx ecx, word [rdx]
add dword [rbx + 0x10], 0xfffffffe
add rdx, 2
mov qword [rbx], rdx
movzx eax, cx
jmp 0x18002ca07
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
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
jmp 0x18002c87c
Function at 0x18002d8bc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.180011970
sub rsp, rax
mov rax, qword [0x18004f040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1800280ac
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18002d90b
mov rax, rbp
jmp 0x18002da13
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x51eb0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18002e82c
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x51eb0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18002da0f
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18002da0f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18002e82c
test rax, rax
js 0x18002da0f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18002da0f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18002da01
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18002da01
cmp byte [rcx], 0xd
jne 0x18002d9e7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18002d9f6
cmp byte [rcx + 1], 0xa
jne 0x18002d9f6
inc rcx
jmp 0x18002d9f6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x4f470]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18002d9c9
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18002da13
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180011100
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x18002dba8
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x180051eb0]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x18002dc06
cmp word [rdx], r12w
jne 0x18002dc06
or byte [rax + r8*8 + 0x38], cl
jmp 0x18002dc0c
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x18002dd67
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x18002dd42
lea r9, [rcx + 2]
cmp ax, r13w
je 0x18002dc45
mov rcx, r9
jmp 0x18002dc68
cmp r9, rdx
jae 0x18002dc7f
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x18002dc29
jmp 0x18002dd67
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18002dd3c
cmp dword [rsp + 0x80], edi
je 0x18002dd3c
mov rdx, r14
lea r11, [0x180051eb0]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x18002dd15
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x18002dce8
mov word [rbx], r12w
jmp 0x18002dd63
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x18002dcf1
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x18002dd63
cmp word [rsp + 0x70], r12w
jne 0x18002dd22
cmp rbx, rsi
je 0x18002dce2
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.18002e834
cmp word [rsp + 0x70], r12w
je 0x18002dd67
mov word [rbx], r13w
jmp 0x18002dd63
lea r11, [0x180051eb0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x18002dd5f
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x18002dd67
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1800311e0
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x180031210
xor eax, eax
jmp 0x1800312d3
mov rbp, rbx
cmp word [rax], si
je 0x180031235
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18003121c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180031218
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.18002b2a4
movsxd r14, eax
test eax, eax
jne 0x180031273
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180031209
mov rcx, r14
call fcn.180026c58
mov rdi, rax
test rax, rax
jne 0x18003128c
xor ecx, ecx
call fcn.180026c1c
jmp 0x180031268
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.18002b2a4
test eax, eax
jne 0x1800312bd
mov rcx, rdi
call fcn.180026c1c
jmp 0x1800312c7
xor ecx, ecx
call fcn.180026c1c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x180037e80
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180037ea8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180037ea8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x4082a0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbp, rsp
mov rbx, rcx
mov rsi, rdx
cmp byte [0x005170a0], 0
je 0x408358
mov ecx, 0xfffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov rdi, rax
mov rcx, rsi
call fcn.0040fd20
mov rcx, rdi
mov rdx, rsi
mov r8d, eax
lea r9, [rbp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.KERNEL32.DLL_WriteFile
mov ecx, 0xfffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov rsi, rax
mov rcx, qword [0x005000d8]
call fcn.0040fd20
mov rcx, rsi
mov rdx, qword [0x005000d8]
mov r8d, eax
lea r9, [rbp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.KERNEL32.DLL_WriteFile
mov ecx, 0xfffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov rsi, rax
mov rcx, rbx
call fcn.0040fd20
mov rcx, rsi
mov rdx, rbx
mov r8d, eax
lea r9, [rbp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.KERNEL32.DLL_WriteFile
jmp 0x40836b
xor ecx, ecx
mov rdx, rbx
mov r8, rsi
mov r9d, 0x2010
call sub.user32.dll_MessageBoxA
lea rsp, [rbp + 0x48]
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x40d200
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.0040d830
mov esi, eax
test sil, sil
jne 0x40d3b4
test ebx, ebx
je 0x40d3b4
xor edi, edi
test r13d, r13d
jle 0x40d2e1
call sub.KERNEL32.DLL_GetTickCount
mov r14d, eax
mov dword [rbp + 0x3c], 0
test r13d, r13d
jle 0x40d2c5
cmp ebx, 0xffffffff
je 0x40d273
call sub.KERNEL32.DLL_GetTickCount
sub eax, r14d
cmp eax, ebx
jb 0x40d273
xor esi, esi
jmp 0x40d3b4
mov rax, qword [rbp + 0x28]
cmp dword [rax], 1
jg 0x40d2c5
mov rax, qword [rbp + 0x28]
cmp dword [rax], 0
jne 0x40d2b3
xor eax, eax
mov ecx, 1
mov rdx, qword [rbp + 0x28]
lock cmpxchg dword [rdx], ecx
test eax, eax
jne 0x40d2b3
call sub.KERNEL32.DLL_GetCurrentThreadId
mov rcx, qword [rbp + 0x28]
mov dword [rcx + 8], eax
mov dword [rcx + 4], 1
mov sil, 1
jmp 0x40d3b4
lea rcx, [rbp + 0x3c]
call fcn.0040cde0
sub r13d, 1
test r13d, r13d
jg 0x40d25a
nop
cmp ebx, 0xffffffff
je 0x40d2e1
call sub.KERNEL32.DLL_GetTickCount
sub eax, r14d
cmp eax, ebx
jb 0x40d2df
xor esi, esi
jmp 0x40d3b4
sub ebx, eax
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
test ecx, ecx
je 0x40d21d
mov edx, ecx
add edx, 2
mov eax, ecx
mov r8, qword [rbp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x40d2e1
nop
call sub.KERNEL32.DLL_GetTickCount
mov r14d, eax
mov rcx, qword [rbp + 0x28]
call fcn.0040d460
xor ecx, ecx
mov rdx, rax
mov r8d, ebx
mov rax, qword [0x00517998]
call qword [rax + 0x20]
test eax, eax
sete sil
cmp ebx, 0xffffffff
je 0x40d344
call sub.KERNEL32.DLL_GetTickCount
sub eax, r14d
cmp eax, ebx
jae 0x40d342
sub ebx, eax
jmp 0x40d344
xor ebx, ebx
test sil, sil
je 0x40d375
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
mov eax, ecx
test eax, 1
jne 0x40d372
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 0x40d349
mov dil, 1
nop
jmp 0x40d392
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 0x40d375
mov dil, 1
test dil, dil
je 0x40d304
nop
test sil, sil
je 0x40d3b4
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 0x40ef30
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
cmp byte [0x005170a0], 0
je 0x40efca
cmp word [0x005173b0], 0xd7b2
jne 0x40ef63
cmp dword [0x005173b8], 0
jbe 0x40ef63
lea rcx, [0x005173a8]
call qword [0x005173d0]
mov ecx, 0xfffffff5
call sub.KERNEL32.DLL_GetStdHandle
mov rcx, rax
lea rdx, [0x00501dfc]
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, [0x0040f000]
call fcn.00410250
mov rcx, rbx
mov rdx, rax
mov r8d, 2
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.KERNEL32.DLL_WriteFile
jmp 0x40efeb
cmp byte [0x0050005a], 0
jne 0x40efeb
xor ecx, ecx
lea rdx, [0x00501dfc]
lea r8, [0x00501d0c]
xor r9, r9
call sub.user32.dll_MessageBoxA
add rsp, 0x40
pop rbx
ret

Function at 0x40f2b0
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 [0x00500060], 0
je 0x40f2e1
mov rcx, rsi
mov rdx, rdi
call qword [0x00500060]
mov r13, rax
jmp 0x40f2f6
mov ecx, 0x10
call fcn.00409280
mov r13, rax
mov qword [r13], rsi
mov qword [r13 + 8], rdi
mov byte [0x005170a1], 1
mov rcx, qword [rsp + 0x38]
mov edx, ebx
lea r8, [0x0040f240]
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 0x40f33b
mov rcx, r13
call fcn.004092b0
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r13
ret

Function at 0x414470
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
lea rcx, [0x0051bf00]
call sub.KERNEL32.DLL_InitializeCriticalSection
mov word [0x0051bf28], 0x7f
call sub.KERNEL32.DLL_GetVersion
and eax, 0xff
cmp eax, 6
setae al
mov byte [0x0051bef8], al
cmp byte [0x0051bef8], 0
je 0x41450e
lea rcx, [0x00414514]
call sub.KERNEL32.DLL_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0041452e]
call sub.KERNEL32.DLL_GetProcAddress
mov qword [0x0051bee0], rax
lea rcx, [0x00414514]
call sub.KERNEL32.DLL_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0041454c]
call sub.KERNEL32.DLL_GetProcAddress
mov qword [0x0051bee8], rax
lea rcx, [0x00414514]
call sub.KERNEL32.DLL_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0041456a]
call sub.KERNEL32.DLL_GetProcAddress
mov qword [0x0051bef0], rax
add rsp, 0x28
ret
Function at 0x4147b0
Capabilities:
Get geographical location

Disassembly:
push rbp
push rbx
sub rsp, 0x1d8
mov rbp, rsp
mov qword [rbp + 0x40], rcx
mov qword [rbp + 0x48], rdx
mov word [rbp + 0x56], r8w
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x58], 0
nop
mov rcx, qword [rbp + 0x48]
call fcn.0040f4b0
movzx rax, word [rbp + 0x56]
cmp word [0x00502778], ax
ja 0x414886
movzx rax, word [rbp + 0x56]
cmp ax, word [0x00502b78]
mov word [rbp + 0x56], ax
ja 0x414886
mov eax, 0x40
xor ecx, ecx
cmp eax, ecx
jb 0x414885
mov edx, eax
add edx, ecx
shr edx, 1
mov r8d, edx
lea r9, [0x00502778]
mov r10, r8
add r10, r10
movzx r11, word [rbp + 0x56]
cmp word [r9 + r10*8], r11w
jbe 0x414844
mov eax, edx
sub eax, 1
jmp 0x414881
lea rcx, [0x00502778]
mov r9, r8
add r9, r9
movzx r10, word [rbp + 0x56]
cmp word [rcx + r9*8], r10w
jae 0x414864
mov ecx, edx
add ecx, 1
jmp 0x414881
mov rcx, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x48]
lea rax, [0x00502780]
add r8, r8
mov r8, qword [rax + r8*8]
call fcn.00414660
jmp 0x414885
cmp eax, ecx
jae 0x41481a
nop
mov rax, qword [rbp + 0x48]
cmp qword [rax], 0
jne 0x41495b
movzx rcx, word [rbp + 0x56]
movzx ecx, cx
mov edx, 2
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x41495b
movzx rbx, word [rbp + 0x56]
movzx ebx, bx
mov ecx, ebx
mov edx, 0x59
lea r8, [rbp + 0x126]
mov r9d, 0x55
call sub.KERNEL32.DLL_GetLocaleInfoW
mov ecx, ebx
mov edx, 0x5a
lea r8, [rbp + 0x7c]
mov r9d, 0x55
call sub.KERNEL32.DLL_GetLocaleInfoW
lea rcx, [rbp + 0x68]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.004107f0
lea rcx, [rbp + 0x60]
lea rdx, [rbp + 0x7c]
mov r8d, 0x55
call fcn.004107f0
lea rcx, [rbp + 0x58]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.004107f0
mov rcx, qword [rbp + 0x48]
mov edx, 5
mov r8, qword [rbp + 0x68]
lea r9, [0x004149a8]
mov rax, qword [rbp + 0x60]
mov qword [rsp + 0x20], rax
lea rax, [0x004149b8]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.00410c50
nop
lea rcx, [rbp + 0x58]
mov edx, 3
call fcn.0040f590
mov rax, qword [rbp + 0x48]
lea rsp, [rbp + 0x1d8]
pop rbx
pop rbp
ret
Function at 0x414bb0
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, [0x0051bf00]
call sub.KERNEL32.DLL_EnterCriticalSection
movzx rax, word [rbp + 0x36]
cmp word [0x0051bf28], ax
jne 0x414c1a
mov rcx, qword [rbp + 0x28]
lea rdx, [0x0051bf2a]
mov r8d, 0x55
call fcn.004107f0
lea rcx, [0x0051bf00]
call sub.KERNEL32.DLL_LeaveCriticalSection
jmp 0x414d23
lea rcx, [0x0051bf00]
call sub.KERNEL32.DLL_LeaveCriticalSection
mov rcx, qword [rbp + 0x28]
call fcn.0040f4b0
movzx rcx, word [rbp + 0x36]
movzx ecx, cx
mov edx, 2
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x414cde
cmp byte [0x0051bef8], 0
je 0x414c72
mov rcx, rbp
lea rdx, [rbp + 0x48]
movzx r8, word [rbp + 0x36]
call fcn.00414a50
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x48]
call fcn.0040fb20
jmp 0x414cde
mov rcx, rbp
lea rdx, [rbp + 0x40]
movzx r8, word [rbp + 0x36]
call fcn.004147b0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.0040fb20
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
movzx rcx, word [rbp + 0x36]
cmp cx, ax
mov word [rbp + 0x36], cx
je 0x414cde
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
je 0x414cbd
mov rcx, qword [rbp + 0x28]
lea rdx, [0x00414d68]
call fcn.00410a60
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
mov rcx, rbp
lea rdx, [rbp + 0x38]
mov r8d, eax
call fcn.004147b0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x38]
call fcn.00410a60
lea rcx, [0x0051bf00]
call sub.KERNEL32.DLL_EnterCriticalSection
movzx rax, word [rbp + 0x36]
mov word [0x0051bf28], ax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax]
call fcn.00410730
lea rcx, [0x0051bf2a]
mov edx, 0xaa
mov r8, rax
call fcn.004145a0
lea rcx, [0x0051bf00]
call sub.KERNEL32.DLL_LeaveCriticalSection
nop
lea rcx, [rbp + 0x38]
mov edx, 3
call fcn.0040f590
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x4156d0
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push rbp
sub rsp, 0x50
mov rbp, rsp
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x70], r8
mov rcx, qword [rbp + 0x70]
call fcn.0040f680
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.004107f0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x38]
call fcn.00410b20
mov rcx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x28]
mov rdx, qword [rax]
call fcn.00415520
test al, al
jne 0x41579a
mov word [rbp + 0x4c], 0
lea rcx, [rbp + 0x30]
lea rdx, [rbp + 0x48]
mov r8d, 4
call fcn.004107f0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x30]
call fcn.00410b20
mov rcx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x28]
mov rdx, qword [rax]
call fcn.00415520
test al, al
jne 0x41579a
mov rcx, qword [rbp + 0x28]
call fcn.0040f4b0
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.0040f590
lea rcx, [rbp + 0x70]
call fcn.0040f4b0
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x50]
pop rbp
ret