joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180042e2c
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x180042e9b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180042e9b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180042e9b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180042e9b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180042e9b
cmp dword [rcx + 0x84], 0xe
jbe 0x180042e9b
cmp dword [rcx + 0xf8], 0
je 0x180042e9b
mov ecx, ebx
call fcn.180042f4c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.180042d28
nop
cmp dword [rbp + 0x20], 0
je 0x180042ee9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.180042ef4
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x180042e2c

Function at 0x180048c40
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x180048c56
mov al, 1
jmp 0x180048cb6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x180048c67
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180048cb4
mov ecx, dword [rcx + 0x18]
nop
call fcn.1800540f8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180048cb4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180048cb4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180048cb4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x180048cb6
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x18004a24c
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.1800310d0
sub rsp, rax
mov rax, qword [0x18007e090]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1800459d8
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18004a29b
mov rax, rbp
jmp 0x18004a3a3
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 + 0x81290]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180049e88
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x81290]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18004a39f
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 0x18004a39f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180049e88
test rax, rax
js 0x18004a39f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18004a39f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18004a391
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18004a391
cmp byte [rcx], 0xd
jne 0x18004a377
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18004a386
cmp byte [rcx + 1], 0xa
jne 0x18004a386
inc rcx
jmp 0x18004a386
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x7eb80]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18004a359
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18004a3a3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1800305b0
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 0x18004f30c
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 0x18004f33c
xor eax, eax
jmp 0x18004f3ff
mov rbp, rbx
cmp word [rax], si
je 0x18004f361
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18004f348
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18004f344
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.18004d304
movsxd r14, eax
test eax, eax
jne 0x18004f39f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18004f335
mov rcx, r14
call fcn.180039b58
mov rdi, rax
test rax, rax
jne 0x18004f3b8
xor ecx, ecx
call fcn.18003fcec
jmp 0x18004f394
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.18004d304
test eax, eax
jne 0x18004f3e9
mov rcx, rdi
call fcn.18003fcec
jmp 0x18004f3f3
xor ecx, ecx
call fcn.18003fcec
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 0x18004f41c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x18004f4a3
mov rsi, rbx
cmp word [rax], bp
je 0x18004f462
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x18004f44c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x18004f448
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.180039b58
mov rdi, rax
test rax, rax
je 0x18004f490
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.180032ec0
mov rbp, rdi
xor ecx, ecx
call fcn.18003fcec
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180053898
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.180045f28
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x180053939
cmp ebx, dword [rsp + 0x30]
je 0x180053932
test esi, esi
je 0x180053932
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x18005390d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x18005391a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1800538f7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x18005391e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x18005393b
mov eax, 1
jmp 0x18005393b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1800541d0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x180081290]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x180054227
cmp word [rdx], r13w
jne 0x180054227
or byte [rax + rdi*8 + 0x38], cl
jmp 0x18005422c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x180054351
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x180054372
lea r9, [rdx + 2]
cmp cx, r11w
je 0x180054265
mov rdx, r9
mov word [rbx], cx
jmp 0x18005428c
cmp r9, r8
jae 0x18005429c
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x180054246
jmp 0x180054351
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180054346
cmp dword [rsp + 0x80], esi
je 0x180054346
lea r8, [0x180081290]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18005431e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1800542ee
mov word [rbx], r13w
jmp 0x18005434e
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1800542fb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x18005434e
cmp word [rsp + 0x70], r13w
jne 0x18005432b
cmp rbx, r14
je 0x1800542e8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.180049e90
cmp word [rsp + 0x70], r13w
je 0x180054351
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x180081290]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x18005434b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x180054351
Function at 0x180058214
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.180049e90
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.180049e90
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180058364
cmp rax, 0xffffffffffffffff
je 0x180058364
xor edi, edi
test rbp, rbp
jle 0x18005830f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.180038fd4
mov rbx, rax
test rax, rax
jne 0x18005829c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x180058305
mov edx, 0x8000
mov ecx, r14d
call fcn.180058098
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1800498d4
cmp eax, 0xffffffff
je 0x1800582e5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1800582ac
mov edx, r15d
mov ecx, r14d
call fcn.180058098
jmp 0x180058305
cmp byte [rsi + 0x38], dil
je 0x1800582fc
cmp dword [rsi + 0x34], 5
jne 0x1800582fc
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x180058305
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.18003fcec
jmp 0x180058378
jns 0x180058378
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.180049e90
cmp rax, 0xffffffffffffffff
jne 0x180058330
cmp byte [rsi + 0x30], dil
je 0x180058378
mov edi, dword [rsi + 0x2c]
jmp 0x180058378
mov ecx, r14d
call fcn.1800540f8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x180058378
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x180058378
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x180058371
mov eax, dword [rsi + 0x2c]
jmp 0x180058376
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.180049e90
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
push rcx
xor rdx, rdx
push rsi
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
movzx rcx, word [rdx + 0x4a]
xor r9, r9
mov rsi, qword [rdx + 0x50]
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
push r9
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
mov r8d, dword [rax + 0x20]
mov ecx, dword [rax + 0x18]
add r8, rdx
push rax
jrcxz 0x1400040ca
xor r9, r9
dec rcx
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
lodsb al, byte [rsi]
ror r9d, 0xd
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
pop r8
add rax, rdx
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021
Function at 0x4075e0
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.00407930
mov esi, eax
test sil, sil
jne 0x4077a2
test ebx, ebx
je 0x4077a2
xor rdi, rdi
test r13d, r13d
jle 0x4076c7
call sub.kernel32.dll_GetTickCount
mov r14d, eax
mov dword [rbp + 0x3c], 0
test r13d, r13d
jle 0x4076a6
cmp ebx, 0xffffffff
je 0x407653
call sub.kernel32.dll_GetTickCount
sub eax, r14d
cmp eax, ebx
jb 0x407653
xor rsi, rsi
jmp 0x4077a2
mov rax, qword [rbp + 0x28]
cmp dword [rax], 1
jg 0x4076a6
mov rax, qword [rbp + 0x28]
cmp dword [rax], 0
jne 0x407694
xor eax, eax
mov ecx, 1
mov rdx, qword [rbp + 0x28]
lock cmpxchg dword [rdx], ecx
test eax, eax
jne 0x407694
call sub.kernel32.dll_GetCurrentThreadId
mov rcx, qword [rbp + 0x28]
mov dword [rcx + 8], eax
mov dword [rcx + 4], 1
mov sil, 1
jmp 0x4077a2
lea rcx, [rbp + 0x3c]
call fcn.004072e0
sub r13d, 1
test r13d, r13d
jg 0x40763a
nop
cmp ebx, 0xffffffff
je 0x4076c7
call sub.kernel32.dll_GetTickCount
mov ecx, eax
sub ecx, r14d
cmp ecx, ebx
jb 0x4076c2
xor rsi, rsi
jmp 0x4077a2
sub eax, r14d
sub ebx, eax
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
test ecx, ecx
je 0x4075fd
mov edx, ecx
add edx, 2
mov eax, ecx
mov r8, qword [rbp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x4076c7
nop
call sub.kernel32.dll_GetTickCount
mov r14d, eax
mov rcx, qword [rbp + 0x28]
call fcn.00407850
xor rcx, rcx
mov rdx, rax
mov r8d, ebx
mov rax, qword [0x0042c990]
call qword [rax + 0x20]
test eax, eax
sete sil
cmp ebx, 0xffffffff
je 0x407731
call sub.kernel32.dll_GetTickCount
mov ecx, eax
sub ecx, r14d
cmp ecx, ebx
jae 0x40772e
sub eax, r14d
sub ebx, eax
jmp 0x407731
xor rbx, rbx
test sil, sil
je 0x407763
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
mov eax, ecx
test eax, 1
jne 0x407760
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 0x407736
mov dil, 1
nop
jmp 0x407780
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 0x407763
mov dil, 1
test dil, dil
je 0x4076ea
nop
test sil, sil
je 0x4077a2
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 0x409120
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
cmp byte [0x0042c098], 0
je 0x4091be
cmp word [0x0042c3a8], 0xd7b2
jne 0x409153
cmp dword [0x0042c3b0], 0
jbe 0x409153
lea rcx, [0x0042c3a0]
call qword [0x0042c3c8]
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
lea rdx, [0x004286ec]
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, [0x004091f4]
call fcn.0040a0a0
mov rcx, rbx
mov rdx, rax
mov r8d, 2
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x4091e0
cmp byte [0x0042703a], 0
jne 0x4091e0
xor rcx, rcx
lea rdx, [0x004286ec]
lea r8, [0x004285fc]
xor r9, r9
call sub.user32.dll_MessageBoxA
add rsp, 0x40
pop rbx
ret

Function at 0x40b7d0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
lea rcx, [0x00430c80]
call sub.kernel32.dll_InitializeCriticalSection
mov word [0x00430ca8], 0x7f
call sub.kernel32.dll_GetVersion
and eax, 0xff
cmp eax, 6
setae al
mov byte [0x00430c78], al
cmp byte [0x00430c78], 0
je 0x40b86f
lea rcx, [0x0040b874]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040b88e]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00430c60], rax
lea rcx, [0x0040b874]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040b8ac]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00430c68], rax
lea rcx, [0x0040b874]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040b8ca]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00430c70], rax
add rsp, 0x28
ret
Function at 0x40bb40
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.004095a0
movzx rax, word [rbp + 0x4e]
cmp word [0x00428bc0], ax
ja 0x40bc28
movzx rax, word [rbp + 0x4e]
cmp ax, word [0x00428fc0]
mov word [rbp + 0x4e], ax
ja 0x40bc28
mov ecx, 0x40
xor r8, r8
cmp ecx, r8d
jb 0x40bc27
mov eax, ecx
add eax, r8d
mov r9d, 2
xor edx, edx
div r9d
lea rdx, [0x00428bc0]
mov r9d, eax
add r9, r9
movzx r10, word [rbp + 0x4e]
cmp word [rdx + r9*8], r10w
jbe 0x40bbe1
mov ecx, eax
sub ecx, 1
jmp 0x40bc22
lea rdx, [0x00428bc0]
mov r8d, eax
add r8, r8
movzx r9, word [rbp + 0x4e]
cmp word [rdx + r8*8], r9w
jae 0x40bc03
mov r8d, eax
add r8d, 1
jmp 0x40bc22
mov rcx, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x40]
lea r8, [0x00428bc8]
mov eax, eax
add rax, rax
mov r8, qword [r8 + rax*8]
call fcn.0040b9e0
jmp 0x40bc27
cmp ecx, r8d
jae 0x40bbb0
nop
mov rax, qword [rbp + 0x40]
cmp qword [rax], 0
jne 0x40bd0a
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40bd0a
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.0040a430
lea rcx, [rbp + 0x60]
lea rdx, [rbp + 0x7c]
mov r8d, 0x55
call fcn.0040a430
lea rcx, [rbp + 0x58]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.0040a430
mov rcx, qword [rbp + 0x40]
mov edx, 5
mov r8, qword [rbp + 0x68]
lea r9, [0x0040bd64]
mov rax, qword [rbp + 0x60]
mov qword [rsp + 0x20], rax
lea rax, [0x0040bd74]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.0040a7f0
nop
lea rcx, [rbp + 0x58]
mov edx, 3
call fcn.00409680
mov rax, qword [rbp + 0x40]
lea rsp, [rbp + 0x1d0]
pop rbp
ret
Function at 0x40bf80
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, [0x00430c80]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
cmp word [0x00430ca8], ax
jne 0x40bfeb
mov rcx, qword [rbp + 0x28]
lea rdx, [0x00430caa]
mov r8d, 0x55
call fcn.0040a430
lea rcx, [0x00430c80]
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40c0f6
lea rcx, [0x00430c80]
call sub.kernel32.dll_LeaveCriticalSection
mov rcx, qword [rbp + 0x28]
call fcn.004095a0
movzx rcx, word [rbp + 0x36]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c0b0
cmp byte [0x00430c78], 0
je 0x40c044
mov rcx, rbp
lea rdx, [rbp + 0x48]
movzx r8, word [rbp + 0x36]
call fcn.0040be10
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x48]
call fcn.00409ab0
jmp 0x40c0b0
mov rcx, rbp
lea rdx, [rbp + 0x40]
movzx r8, word [rbp + 0x36]
call fcn.0040bb40
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.00409ab0
call sub.kernel32.dll_GetSystemDefaultUILanguage
movzx rcx, word [rbp + 0x36]
cmp cx, ax
mov word [rbp + 0x36], cx
je 0x40c0b0
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
je 0x40c08f
mov rcx, qword [rbp + 0x28]
lea rdx, [0x0040c144]
call fcn.0040a5e0
call sub.kernel32.dll_GetSystemDefaultUILanguage
mov rcx, rbp
lea rdx, [rbp + 0x38]
mov r8d, eax
call fcn.0040bb40
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x38]
call fcn.0040a5e0
lea rcx, [0x00430c80]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
mov word [0x00430ca8], ax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax]
call fcn.0040a380
lea rcx, [0x00430caa]
mov edx, 0xaa
mov r8, rax
call fcn.0040b900
lea rcx, [0x00430c80]
call sub.kernel32.dll_LeaveCriticalSection
nop
lea rcx, [rbp + 0x38]
mov edx, 3
call fcn.00409680
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x40cb20
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.00409730
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.0040a430
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x38]
call fcn.0040a6d0
mov rcx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax]
call fcn.0040c940
test al, al
jne 0x40cbee
mov word [rbp + 0x4c], 0
lea rcx, [rbp + 0x30]
lea rdx, [rbp + 0x48]
mov r8d, 4
call fcn.0040a430
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x30]
call fcn.0040a6d0
mov rcx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax]
call fcn.0040c940
test al, al
jne 0x40cbee
mov rcx, qword [rbp + 0x20]
call fcn.004095a0
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.00409680
lea rcx, [rbp + 0x70]
call fcn.004095a0
mov rax, qword [rbp + 0x20]
lea rsp, [rbp + 0x50]
pop rbp
ret