joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003760
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x2a0
mov rsi, rcx
xor ebp, ebp
xor edx, edx
lea ecx, [rbp + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
xor edx, edx
lea rcx, [rsp + 0x64]
mov r8d, 0x234
mov r15, rax
call fcn.140021760
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x60], 0x238
mov rcx, r15
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x14000392b
nop dword [rax]
xorps xmm0, xmm0
mov qword [rsp + 0x50], rbp
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x58], rbp
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rsi + r8*2], bp
jne 0x1400037e0
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.140001180
xorps xmm0, xmm0
mov qword [rsp + 0x30], rbp
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x38], rbp
lea rax, [rsp + 0x8c]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], bp
jne 0x140003820
lea rdx, [rsp + 0x8c]
lea rcx, [rsp + 0x20]
call fcn.140001180
mov r14, qword [rsp + 0x58]
lea rcx, [rsp + 0x40]
mov rdi, qword [rsp + 0x40]
lea r8, [rsp + 0x20]
mov r10, qword [rsp + 0x38]
cmp r14, 7
mov r9, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x30]
cmova rcx, rdi
cmp r10, 7
cmova r8, r9
cmp rdx, qword [rsp + 0x50]
jne 0x140003898
test rdx, rdx
je 0x140003894
sub r8, rcx
nop
movzx eax, word [r8 + rcx]
cmp ax, word [rcx]
jne 0x140003898
add rcx, 2
sub rdx, 1
jne 0x140003880
mov bl, 1
jmp 0x14000389a
xor bl, bl
cmp r10, 7
jbe 0x1400038d5
lea rdx, [r10*2 + 2]
mov rax, r9
cmp rdx, 0x1000
jb 0x1400038cd
mov r9, qword [r9 - 8]
add rdx, 0x27
sub rax, r9
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003953
mov rcx, r9
call fcn.140005fc0
cmp r14, 7
jbe 0x14000390c
lea rdx, [r14*2 + 2]
mov rax, rdi
cmp rdx, 0x1000
jb 0x140003904
mov rdi, qword [rdi - 8]
add rdx, 0x27
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003953
mov rcx, rdi
call fcn.140005fc0
test bl, bl
jne 0x140003927
lea rdx, [rsp + 0x60]
mov rcx, r15
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1400037c0
jmp 0x14000392b
mov ebp, dword [rsp + 0x68]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0x2a0]
mov eax, ebp
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
call fcn.14000a93c
int3
Function at 0x140006988
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400069d2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400069d2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400069d2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400069d2
cmp dword [rcx + 0x84], 0xe
jbe 0x1400069d2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400069d4
xor al, al
add rsp, 0x28
ret

Function at 0x14000d768
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000d564
Function at 0x140015ea4
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 0x140015ed4
xor eax, eax
jmp 0x140015f97
mov rbp, rbx
cmp word [rax], si
je 0x140015ef9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140015ee0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140015edc
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.140015dc4
movsxd r14, eax
test eax, eax
jne 0x140015f37
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140015ecd
mov rcx, r14
call fcn.140011144
mov rdi, rax
test rax, rax
jne 0x140015f50
xor ecx, ecx
call fcn.140011108
jmp 0x140015f2c
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.140015dc4
test eax, eax
jne 0x140015f81
mov rcx, rdi
call fcn.140011108
jmp 0x140015f8b
xor ecx, ecx
call fcn.140011108
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 0x140019a14
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.140010cb4
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 0x140019ab5
cmp ebx, dword [rsp + 0x30]
je 0x140019aae
test esi, esi
je 0x140019aae
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140019a89
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140019a96
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140019a73
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140019a9a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140019ab7
mov eax, 1
jmp 0x140019ab7
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001bb6c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001bb82
mov al, 1
jmp 0x14001bbe2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001bb93
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001bbe0
mov ecx, dword [rcx + 0x18]
nop
call fcn.140016ccc
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001bbe0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001bbe0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001bbe0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001bbe2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14001de90
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000cc1c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001df1a
cmp byte [rbp - 0x21], r15b
je 0x14001df15
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14001df50
call fcn.140012e28
test eax, eax
jne 0x14001df3c
cmp byte [rbp - 0x21], r15b
je 0x14001df34
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14001df50
cmp byte [rbp - 0x21], r15b
je 0x14001df4d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140014510
test eax, eax
jne 0x14001dff0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000cc1c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001df8f
cmp byte [rbp - 0x21], r15b
je 0x14001dfc4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14001dfc4
call fcn.140012e28
test eax, eax
jne 0x14001dfb0
cmp byte [rbp - 0x21], r15b
je 0x14001dfa9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14001dfc4
cmp byte [rbp - 0x21], r15b
je 0x14001dfc1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140014510
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14001dff0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14001dff3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14001e001
mov rcx, rdi
call fcn.140011108
cmp byte [rbp + 0x3f], r15b
je 0x14001e010
mov rcx, qword [rbp + 0x27]
call fcn.140011108
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x140020cc0
Capabilities:
Parse pe header

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

Disassembly:
push rbx
push rbp
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r14, rdx
mov rbp, rcx
test rcx, rcx
je 0x140002bce
test rdx, rdx
je 0x140002bce
movsxd r13, dword [rdx + 4]
xor ecx, ecx
mov r15, qword [rdx + 0x28]
mov ebx, 1
mov r12d, dword [rdx + 8]
mov rsi, qword [rdx + 0x10]
mov r9, qword [rdx + 0x18]
lea r8d, [r13 + 1]
mov r10, qword [rdx + 0x20]
mov eax, r8d
cdq
mov dword [rsp + 0x98], r13d
sub eax, edx
mov qword [rsp + 0x30], r9
sar eax, 1
test r15, r15
mov qword [rsp + 0x28], r10
mov qword [rsp + 0x38], r15
cmovne ecx, r12d
mov dword [rsp + 0x90], eax
mov dword [rsp + 0x20], ecx
test rsi, rsi
je 0x140002bce
test r9, r9
je 0x140002bce
test r10, r10
je 0x140002bce
lea eax, [r12 + 1]
mov qword [rsp + 0x88], rdi
cdq
and r8d, 0xfffffffe
sub eax, edx
lea rdx, str.P5_n_d__d_n255_n
sar eax, 1
mov dword [rsp + 0x80], eax
lea r9d, [rcx + rax]
mov rcx, rbp
add r9d, r12d
call fcn.1400011b0
xor edi, edi
nop dword [rax]
cmp edi, r12d
jge 0x140002ad3
mov rdx, r13
mov r9, rbp
mov r8d, 1
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
xor ecx, ecx
cmp rax, 1
cmove ecx, ebx
mov ebx, ecx
test r13b, 1
je 0x140002ac6
mov rdx, rbp
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
movsxd rax, dword [r14 + 0x30]
inc edi
add rsi, rax
test ebx, ebx
jne 0x140002a90
xor r12d, r12d
test ebx, ebx
je 0x140002b68
mov r15d, dword [rsp + 0x80]
mov r13, qword [rsp + 0x30]
nop dword [rax + rax]
cmp r12d, r15d
jge 0x140002b5b
movsxd rdi, dword [rsp + 0x90]
mov r9, rbp
mov rdx, rdi
mov r8d, 1
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
xor esi, esi
mov rdx, rdi
mov rdi, qword [rsp + 0x28]
cmp rax, 1
mov r9, rbp
mov r8d, 1
sete sil
mov rcx, rdi
and esi, ebx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
xor ebx, ebx
cmp rax, 1
movsxd rax, dword [r14 + 0x34]
cmove ebx, esi
add r13, rax
movsxd rax, dword [r14 + 0x38]
inc r12d
add rdi, rax
mov qword [rsp + 0x28], rdi
test ebx, ebx
jne 0x140002af0
mov r15, qword [rsp + 0x38]
mov r13d, dword [rsp + 0x98]
xor edi, edi
test ebx, ebx
je 0x140002bb4
mov esi, dword [rsp + 0x20]
cmp edi, esi
jge 0x140002bb4
movsxd rdx, r13d
mov r9, rbp
mov r8d, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
xor ecx, ecx
cmp rax, 1
sete cl
and ebx, ecx
test r13b, 1
je 0x140002ba7
mov rdx, rbp
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
movsxd rax, dword [r14 + 0x3c]
inc edi
add r15, rax
test ebx, ebx
jne 0x140002b72
mov rdi, qword [rsp + 0x88]
mov eax, ebx
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rsi
pop rbp
pop rbx
ret
xor eax, eax
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rsi
pop rbp
pop rbx
ret
Function at 0x140002ef0
Capabilities:
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rsi, rdx
mov rbp, rcx
test rcx, rcx
je 0x1400030c0
test rdx, rdx
je 0x1400030c0
mov eax, dword [rdx + 4]
mov ebx, 1
mov ecx, dword [rdx + 8]
mov r12, qword [rdx + 0x28]
mov r8, qword [rdx + 0x10]
mov r13, qword [rdx + 0x20]
mov r15, qword [rdx + 0x18]
mov dword [rsp + 0x90], eax
inc eax
cdq
mov qword [rsp + 0x38], r13
sub eax, edx
mov qword [rsp + 0x28], r12
sar eax, 1
mov dword [rsp + 0x80], eax
lea eax, [rcx + 1]
cdq
sub eax, edx
sar eax, 1
mov dword [rsp + 0x20], eax
xor eax, eax
test r12, r12
cmovne eax, ecx
mov dword [rsp + 0x24], eax
test r8, r8
je 0x1400030c0
test r15, r15
je 0x1400030c0
test r13, r13
je 0x1400030c0
movsxd r14, dword [rsp + 0x90]
mov r12d, ecx
mov qword [rsp + 0x88], rdi
mov r13, r8
xor edi, edi
nop dword [rax]
cmp edi, r12d
jge 0x140002fd2
mov rdx, r14
mov r9, rbp
mov r8d, 1
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
xor ecx, ecx
cmp rax, 1
movsxd rax, dword [rsi + 0x30]
cmove ecx, ebx
add r13, rax
inc edi
mov ebx, ecx
test ecx, ecx
jne 0x140002fa0
mov r14d, dword [rsp + 0x20]
xor edi, edi
mov r12, qword [rsp + 0x28]
mov r13, qword [rsp + 0x38]
test ebx, ebx
je 0x140003025
movsxd r12, dword [rsp + 0x80]
nop
cmp edi, r14d
jge 0x140003020
mov rdx, r12
mov r9, rbp
mov r8d, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
xor ecx, ecx
cmp rax, 1
movsxd rax, dword [rsi + 0x34]
sete cl
add r15, rax
inc edi
and ebx, ecx
jne 0x140002ff0
mov r12, qword [rsp + 0x28]
xor edi, edi
test ebx, ebx
je 0x140003063
movsxd r15, dword [rsp + 0x80]
cmp edi, r14d
jge 0x140003063
mov rdx, r15
mov r9, rbp
mov r8d, 1
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
xor ecx, ecx
cmp rax, 1
movsxd rax, dword [rsi + 0x38]
sete cl
add r13, rax
inc edi
and ebx, ecx
jne 0x140003033
xor edi, edi
test ebx, ebx
je 0x1400030a6
mov r14d, dword [rsp + 0x24]
movsxd r15, dword [rsp + 0x90]
cmp edi, r14d
jge 0x1400030a6
mov rdx, r15
mov r9, rbp
mov r8d, 1
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
xor ecx, ecx
cmp rax, 1
movsxd rax, dword [rsi + 0x3c]
sete cl
add r12, rax
inc edi
and ebx, ecx
jne 0x140003076
mov rdi, qword [rsp + 0x88]
mov eax, ebx
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rsi
pop rbp
pop rbx
ret
xor eax, eax
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rsi
pop rbp
pop rbx
ret
Function at 0x4079c0
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.00407d10
mov esi, eax
test sil, sil
jne 0x407b82
test ebx, ebx
je 0x407b82
xor rdi, rdi
test r13d, r13d
jle 0x407aa7
call sub.kernel32.dll_GetTickCount
mov r14d, eax
mov dword [rbp + 0x3c], 0
test r13d, r13d
jle 0x407a86
cmp ebx, 0xffffffff
je 0x407a33
call sub.kernel32.dll_GetTickCount
sub eax, r14d
cmp eax, ebx
jb 0x407a33
xor rsi, rsi
jmp 0x407b82
mov rax, qword [rbp + 0x28]
cmp dword [rax], 1
jg 0x407a86
mov rax, qword [rbp + 0x28]
cmp dword [rax], 0
jne 0x407a74
xor eax, eax
mov ecx, 1
mov rdx, qword [rbp + 0x28]
lock cmpxchg dword [rdx], ecx
test eax, eax
jne 0x407a74
call sub.kernel32.dll_GetCurrentThreadId
mov rcx, qword [rbp + 0x28]
mov dword [rcx + 8], eax
mov dword [rcx + 4], 1
mov sil, 1
jmp 0x407b82
lea rcx, [rbp + 0x3c]
call fcn.00407690
sub r13d, 1
test r13d, r13d
jg 0x407a1a
nop
cmp ebx, 0xffffffff
je 0x407aa7
call sub.kernel32.dll_GetTickCount
mov ecx, eax
sub ecx, r14d
cmp ecx, ebx
jb 0x407aa2
xor rsi, rsi
jmp 0x407b82
sub eax, r14d
sub ebx, eax
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
test ecx, ecx
je 0x4079dd
mov edx, ecx
add edx, 2
mov eax, ecx
mov r8, qword [rbp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x407aa7
nop
call sub.kernel32.dll_GetTickCount
mov r14d, eax
mov rcx, qword [rbp + 0x28]
call fcn.00407c30
xor rcx, rcx
mov rdx, rax
mov r8d, ebx
mov rax, qword [0x00786990]
call qword [rax + 0x20]
test eax, eax
sete sil
cmp ebx, 0xffffffff
je 0x407b11
call sub.kernel32.dll_GetTickCount
mov ecx, eax
sub ecx, r14d
cmp ecx, ebx
jae 0x407b0e
sub eax, r14d
sub ebx, eax
jmp 0x407b11
xor rbx, rbx
test sil, sil
je 0x407b43
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
mov eax, ecx
test eax, 1
jne 0x407b40
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 0x407b16
mov dil, 1
nop
jmp 0x407b60
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 0x407b43
mov dil, 1
test dil, dil
je 0x407aca
nop
test sil, sil
je 0x407b82
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 0x4095b0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
cmp byte [0x00786098], 0
je 0x40964e
cmp word [0x007863a8], 0xd7b2
jne 0x4095e3
cmp dword [0x007863b0], 0
jbe 0x4095e3
lea rcx, [0x007863a0]
call qword [0x007863c8]
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
lea rdx, [0x007115a4]
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, [0x00409684]
call fcn.0040a480
mov rcx, rbx
mov rdx, rax
mov r8d, 2
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x409670
cmp byte [0x00710052], 0
jne 0x409670
xor rcx, rcx
lea rdx, [0x007115a4]
lea r8, str.Error
xor r9, r9
call sub.user32.dll_MessageBoxA
add rsp, 0x40
pop rbx
ret

Function at 0x40bfb0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
lea rcx, [0x0078ae60]
call sub.kernel32.dll_InitializeCriticalSection
mov word [0x0078ae88], 0x7f
call sub.kernel32.dll_GetVersion
and eax, 0xff
cmp eax, 6
setae al
mov byte [0x0078ae58], al
cmp byte [0x0078ae58], 0
je 0x40c04f
lea rcx, [0x0040c054]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040c06e]
call sub.kernel32.dll_GetProcAddress
mov qword [0x0078ae40], rax
lea rcx, [0x0040c054]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040c08c]
call sub.kernel32.dll_GetProcAddress
mov qword [0x0078ae48], rax
lea rcx, [0x0040c054]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040c0aa]
call sub.kernel32.dll_GetProcAddress
mov qword [0x0078ae50], rax
add rsp, 0x28
ret
Function at 0x40c330
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.004099d0
movzx rax, word [rbp + 0x4e]
cmp word [0x00711aa0], ax
ja 0x40c418
movzx rax, word [rbp + 0x4e]
cmp ax, word [0x00711ea0]
mov word [rbp + 0x4e], ax
ja 0x40c418
mov ecx, 0x40
xor r8, r8
cmp ecx, r8d
jb 0x40c417
mov eax, ecx
add eax, r8d
mov r9d, 2
xor edx, edx
div r9d
lea rdx, [0x00711aa0]
mov r9d, eax
add r9, r9
movzx r10, word [rbp + 0x4e]
cmp word [rdx + r9*8], r10w
jbe 0x40c3d1
mov ecx, eax
sub ecx, 1
jmp 0x40c412
lea rdx, [0x00711aa0]
mov r8d, eax
add r8, r8
movzx r9, word [rbp + 0x4e]
cmp word [rdx + r8*8], r9w
jae 0x40c3f3
mov r8d, eax
add r8d, 1
jmp 0x40c412
mov rcx, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x40]
lea r8, [0x00711aa8]
mov eax, eax
add rax, rax
mov r8, qword [r8 + rax*8]
call fcn.0040c1c0
jmp 0x40c417
cmp ecx, r8d
jae 0x40c3a0
nop
mov rax, qword [rbp + 0x40]
cmp qword [rax], 0
jne 0x40c4fa
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c4fa
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.0040a9a0
lea rcx, [rbp + 0x60]
lea rdx, [rbp + 0x7c]
mov r8d, 0x55
call fcn.0040a9a0
lea rcx, [rbp + 0x58]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.0040a9a0
mov rcx, qword [rbp + 0x40]
mov edx, 5
mov r8, qword [rbp + 0x68]
lea r9, [0x0040c554]
mov rax, qword [rbp + 0x60]
mov qword [rsp + 0x20], rax
lea rax, [0x0040c564]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.0040ad90
nop
lea rcx, [rbp + 0x58]
mov edx, 3
call fcn.00409ab0
mov rax, qword [rbp + 0x40]
lea rsp, [rbp + 0x1d0]
pop rbp
ret
Function at 0x40c770
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, [0x0078ae60]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
cmp word [0x0078ae88], ax
jne 0x40c7db
mov rcx, qword [rbp + 0x28]
lea rdx, [0x0078ae8a]
mov r8d, 0x55
call fcn.0040a9a0
lea rcx, [0x0078ae60]
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40c8e6
lea rcx, [0x0078ae60]
call sub.kernel32.dll_LeaveCriticalSection
mov rcx, qword [rbp + 0x28]
call fcn.004099d0
movzx rcx, word [rbp + 0x36]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c8a0
cmp byte [0x0078ae58], 0
je 0x40c834
mov rcx, rbp
lea rdx, [rbp + 0x48]
movzx r8, word [rbp + 0x36]
call fcn.0040c600
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x48]
call fcn.00409f90
jmp 0x40c8a0
mov rcx, rbp
lea rdx, [rbp + 0x40]
movzx r8, word [rbp + 0x36]
call fcn.0040c330
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.00409f90
call sub.kernel32.dll_GetSystemDefaultUILanguage
movzx rcx, word [rbp + 0x36]
cmp cx, ax
mov word [rbp + 0x36], cx
je 0x40c8a0
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
je 0x40c87f
mov rcx, qword [rbp + 0x28]
lea rdx, [0x0040c934]
call fcn.0040ab80
call sub.kernel32.dll_GetSystemDefaultUILanguage
mov rcx, rbp
lea rdx, [rbp + 0x38]
mov r8d, eax
call fcn.0040c330
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x38]
call fcn.0040ab80
lea rcx, [0x0078ae60]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
mov word [0x0078ae88], ax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax]
call fcn.0040a8f0
lea rcx, [0x0078ae8a]
mov edx, 0xaa
mov r8, rax
call fcn.0040c0e0
lea rcx, [0x0078ae60]
call sub.kernel32.dll_LeaveCriticalSection
nop
lea rcx, [rbp + 0x38]
mov edx, 3
call fcn.00409ab0
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x40d310
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.00409b60
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.0040a9a0
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x38]
call fcn.0040ac70
mov rcx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax]
call fcn.0040d130
test al, al
jne 0x40d3de
mov word [rbp + 0x4c], 0
lea rcx, [rbp + 0x30]
lea rdx, [rbp + 0x48]
mov r8d, 4
call fcn.0040a9a0
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x30]
call fcn.0040ac70
mov rcx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax]
call fcn.0040d130
test al, al
jne 0x40d3de
mov rcx, qword [rbp + 0x20]
call fcn.004099d0
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.00409ab0
lea rcx, [rbp + 0x70]
call fcn.004099d0
mov rax, qword [rbp + 0x20]
lea rsp, [rbp + 0x50]
pop rbp
ret