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

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

Function at 0x14000ec74
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 0x14000ece3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000ece3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000ece3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000ece3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000ece3
cmp dword [rcx + 0x84], 0xe
jbe 0x14000ece3
cmp dword [rcx + 0xf8], 0
je 0x14000ece3
mov ecx, ebx
call fcn.14000ed94
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.14000eb70
nop
cmp dword [rbp + 0x20], 0
je 0x14000ed31
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000ed3c
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000ec74

Function at 0x14000ee78
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 0x14000ece3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000ece3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000ece3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000ece3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000ece3
cmp dword [rcx + 0x84], 0xe
jbe 0x14000ece3
cmp dword [rcx + 0xf8], 0
je 0x14000ece3
mov ecx, ebx
call fcn.14000ed94
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.14000eb70
nop
cmp dword [rbp + 0x20], 0
je 0x14000ed31
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000ed3c
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000ec74
Function at 0x140018288
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 0x14001830f
mov rsi, rbx
cmp word [rax], bp
je 0x1400182ce
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400182b8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400182b4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140015ab8
mov rdi, rax
test rax, rax
je 0x1400182fc
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14001eea0
mov rbp, rdi
xor ecx, ecx
call fcn.140014bc8
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 0x14001a47c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001a492
mov al, 1
jmp 0x14001a4f2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001a4a3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001a4f0
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400185d0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001a4f0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001a4f0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001a4f0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001a4f2
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14001e710
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001e738
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001e738
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1407e541a
Capabilities:
Encode data using xor

Disassembly:
movabs al, byte [0x3168f5bccf603ef5]
invalid
push 0x22940631
call fcn.1409da1c1
mov edi, 0xc3a1a255
push rdx
pop rsi
cmp r12b, byte [rax - 0x23763286]
adc edi, dword [rcx - 0x62]
mov word [rdx], es
jae 0x1407e5421
invalid
xchg bp, ax
sub byte [0x10d02b906], 0x47
movsd dword [rdi], dword [rsi]
cmpsd dword [rsi], dword [rdi]
push rsp
pushfq
shl dword [rbx], 0x5b
add ebp, edi
or eax, edx
shl r12d, cl
and ah, cl
cwde
fild dword [rsi - 0x555ed1af]
jns 0x1407e5413
push rbx
std
add al, 0x1d
lodsb al, byte [rsi]
mov ebx, 0x3f592614
jbe 0x1407e54b0
in eax, dx
pop rdx
insb byte [rdi], dx
mov ebp, 0x14509446
cdq
push rbx
mov dh, 0xe
xor byte [rbx + 0x5764228e], bl
pop rax
cmpsb byte [rsi], byte [rdi]
push 0xffffffffffffffe2
shl dword [rcx + rsi*8 - 0x47ddd5ef], 1
or eax, ecx
out 0x98, eax
add byte [rax - 0x2b], bl
cmc
outsd dx, dword [rsi]
add al, 0xd
add dword [rdx], r12d
xlatb
loop 0x1407e5473
invalid
sub byte [rdi + 0x7f], ch
invalid
Function at 0x1400b0134
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [0x14050b628]
test rax, rax
je 0x1400b017e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400b017e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400b017e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400b017e
cmp dword [rcx + 0x84], 0xe
jbe 0x1400b017e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400b0180
xor al, al
add rsp, 0x28
ret
Function at 0x14019b290
Capabilities:
Inspect section memory permissions

Disassembly:
push rbp
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x50]
mov rbx, rcx
mov eax, dword [rbx + 0x38]
cmp eax, 0xffffffff
je 0x14019b2ad
add rsp, 0x48
pop rbx
pop rbp
ret
mov dword [rsp + 0x20], 0x10
lea r8, [rbp - 0x10]
lea rdx, [rbp - 0x20]
mov rcx, rbx
mov r9d, 4
call fcn.14024c190
mov ecx, eax
test ecx, ecx
jne 0x14019b33a
xor eax, eax
mov ecx, 0x40000000
test byte [rbp - 0x10], 0x30
cmove eax, ecx
mov ecx, eax
or ecx, 0x80000000
test byte [rbp - 0x10], 2
cmovne eax, ecx
mov ecx, eax
or ecx, 0x10000000
test dword [rbp - 0x10], 0x800
cmovne eax, ecx
mov ecx, eax
or ecx, 0x8000000
test byte [rbp - 0x10], 4
cmovne eax, ecx
mov ecx, eax
or ecx, 0x4000000
test dword [rbp - 0x10], 0x1000
cmovne eax, ecx
mov ecx, eax
or ecx, 0x20000000
test byte [rbp - 0x10], 8
cmovne eax, ecx
mov dword [rbx + 0x38], eax
add rsp, 0x48
pop rbx
pop rbp
ret
call fcn.14024c060
mov ecx, eax
lea rdx, [0x1403d9078]
call fcn.1402187c0
mov rcx, rax
call fcn.140007b70
int3
Function at 0x1401c39a0
Capabilities:
Encode data using xor

Disassembly:
cmp edx, 8
jae 0x1401c39af
cmp edx, 4
jae 0x1401c3a0c
jmp 0x1401c3a84
mov eax, edx
shr eax, 3
add r8d, dword [rcx]
mov r10d, dword [rcx + 4]
xor r9d, r8d
rol r8d, 0x14
add r8d, r9d
rol r9d, 9
xor r9d, r8d
rol r8d, 0x1b
add r8d, r9d
rol r9d, 0x13
add r10d, r8d
mov r8d, r9d
xor r8d, r10d
rol r10d, 0x14
add r10d, r8d
rol r8d, 9
xor r8d, r10d
rol r10d, 0x1b
add r10d, r8d
rol r8d, 0x13
mov r9d, r8d
add rcx, 8
dec eax
mov r8d, r10d
jne 0x1401c39b4
test dl, 4
je 0x1401c3a2b
add r8d, dword [rcx]
xor r9d, r8d
rol r8d, 0x14
add r8d, r9d
rol r9d, 9
xor r9d, r8d
rol r8d, 0x1b
add r8d, r9d
rol r9d, 0x13
mov eax, edx
and rax, 7
mov eax, dword [rcx + rax - 4]
shr eax, 8
or eax, 0x80000000
mov ecx, edx
not ecx
shl ecx, 3
shr eax, cl
add eax, r8d
mov edx, r9d
xor edx, eax
rol eax, 0x14
add eax, edx
rol edx, 9
xor edx, eax
rol eax, 0x1b
add eax, edx
rol edx, 0x13
mov r8d, edx
xor r8d, eax
rol eax, 0x14
add eax, r8d
rol r8d, 9
xor r8d, eax
rol eax, 0x1b
add eax, r8d
mov r9d, r8d
rol r9d, 0x13
xor eax, r9d
ret
mov eax, 0x80
test dl, 1
je 0x1401c3a9d
mov eax, edx
and rax, 2
movzx eax, byte [rcx + rax]
or eax, 0x8000
test dl, 2
je 0x1401c3a46
shl eax, 0x10
movzx ecx, word [rcx]
or eax, ecx
jmp 0x1401c3a46
Function at 0x1800016d0
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x1800017cc
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x30], rdi
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov rax, qword [rcx + 0x10]
mov rsi, qword [rax]
mov r11, rsi
nop dword [rax]
mov r9, qword [r11 + 0x30]
movsxd rax, dword [r9 + 0x3c]
mov ebx, dword [rax + r9 + 0x88]
add rbx, r9
cmp rbx, r9
je 0x180001784
mov r8d, dword [rbx + 0x18]
test r8d, r8d
je 0x180001784
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r8d
mov edx, 0xdb513038
lea rax, [rdi + r8*4]
mov eax, dword [rax + r9]
add rax, r9
movzx ecx, byte [rax]
inc rax
test cl, cl
je 0x18000177f
nop dword [rax]
movsx ecx, cl
lea rax, [rax + 1]
xor ecx, edx
imul edx, ecx, 0x1000193
movzx ecx, byte [rax - 1]
test cl, cl
jne 0x180001760
cmp edx, 0x5b70b204
je 0x1800017d3
test r8d, r8d
jne 0x180001740
mov rax, qword [r11]
mov r11, rax
cmp rax, rsi
je 0x18000179a
cmp qword [rax + 0x30], 0
jne 0x180001710
xor eax, eax
mov qword [rsp + 0x28], 0
lea r8, [0x180001180]
xor r9d, r9d
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call rax
mov rdi, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov al, 1
add rsp, 0x38
ret
mov ecx, dword [rbx + 0x24]
add rcx, r9
movzx edx, word [rcx + r8*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r9
mov eax, dword [rcx + rdx*4]
add rax, r9
jmp 0x18000179c

Function at 0x18000f760
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x18000f776
mov al, 1
jmp 0x18000f7e2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x18000f787
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x18000f7e0
mov ecx, dword [rcx + 0x18]
nop
call fcn.1800137a0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18000f7e0
and qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov r9d, 1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18000f7e0
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18000f7e0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x18000f7e2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1800130bc
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 0x1800130ec
xor eax, eax
jmp 0x1800131af
mov rbp, rbx
cmp word [rax], si
je 0x180013111
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800130f8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800130f4
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.180011920
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x180013152
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1800130e5
call fcn.18000d700
mov rdi, rax
test rax, rax
jne 0x180013168
xor ecx, ecx
call fcn.18000ce80
jmp 0x180013147
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.180011920
test eax, eax
jne 0x180013199
mov rcx, rdi
call fcn.18000ce80
jmp 0x1800131a3
xor ecx, ecx
call fcn.18000ce80
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 0x180017280
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1800172a8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1800172a8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x407a70
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 [0x008f80a8], 0
je 0x407b2b
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle
mov rdi, rax
mov rcx, rsi
call fcn.0040f7f0
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 [0x008910c0]
call fcn.0040f7f0
mov rcx, rsi
mov rdx, qword [0x008910c0]
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.0040f7f0
mov rcx, rsi
mov rdx, rbx
mov r8d, eax
lea r9, [rbp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x407b40
xor rcx, rcx
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 0x40cb60
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.0040d1c0
mov esi, eax
test sil, sil
jne 0x40cd22
test ebx, ebx
je 0x40cd22
xor rdi, rdi
test r13d, r13d
jle 0x40cc47
call sub.kernel32.dll_GetTickCount
mov r14d, eax
mov dword [rbp + 0x3c], 0
test r13d, r13d
jle 0x40cc26
cmp ebx, 0xffffffff
je 0x40cbd3
call sub.kernel32.dll_GetTickCount
sub eax, r14d
cmp eax, ebx
jb 0x40cbd3
xor rsi, rsi
jmp 0x40cd22
mov rax, qword [rbp + 0x28]
cmp dword [rax], 1
jg 0x40cc26
mov rax, qword [rbp + 0x28]
cmp dword [rax], 0
jne 0x40cc14
xor eax, eax
mov ecx, 1
mov rdx, qword [rbp + 0x28]
lock cmpxchg dword [rdx], ecx
test eax, eax
jne 0x40cc14
call sub.kernel32.dll_GetCurrentThreadId
mov rcx, qword [rbp + 0x28]
mov dword [rcx + 8], eax
mov dword [rcx + 4], 1
mov sil, 1
jmp 0x40cd22
lea rcx, [rbp + 0x3c]
call fcn.0040c710
sub r13d, 1
test r13d, r13d
jg 0x40cbba
nop
cmp ebx, 0xffffffff
je 0x40cc47
call sub.kernel32.dll_GetTickCount
mov ecx, eax
sub ecx, r14d
cmp ecx, ebx
jb 0x40cc42
xor rsi, rsi
jmp 0x40cd22
sub eax, r14d
sub ebx, eax
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
test ecx, ecx
je 0x40cb7d
mov edx, ecx
add edx, 2
mov eax, ecx
mov r8, qword [rbp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x40cc47
nop
call sub.kernel32.dll_GetTickCount
mov r14d, eax
mov rcx, qword [rbp + 0x28]
call fcn.0040cdd0
xor rcx, rcx
mov rdx, rax
mov r8d, ebx
mov rax, qword [0x008f89a0]
call qword [rax + 0x20]
test eax, eax
sete sil
cmp ebx, 0xffffffff
je 0x40ccb1
call sub.kernel32.dll_GetTickCount
mov ecx, eax
sub ecx, r14d
cmp ecx, ebx
jae 0x40ccae
sub eax, r14d
sub ebx, eax
jmp 0x40ccb1
xor rbx, rbx
test sil, sil
je 0x40cce3
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
mov eax, ecx
test eax, 1
jne 0x40cce0
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 0x40ccb6
mov dil, 1
nop
jmp 0x40cd00
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 0x40cce3
mov dil, 1
test dil, dil
je 0x40cc6a
nop
test sil, sil
je 0x40cd22
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 0x40ea20
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
cmp byte [0x008f80a8], 0
je 0x40eabe
cmp word [0x008f83b8], 0xd7b2
jne 0x40ea53
cmp dword [0x008f83c0], 0
jbe 0x40ea53
lea rcx, [0x008f83b0]
call qword [0x008f83d8]
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
lea rdx, [0x008933a4]
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, [0x0040eaf4]
call fcn.004101e0
mov rcx, rbx
mov rdx, rax
mov r8d, 2
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x40eae0
cmp byte [0x00891054], 0
jne 0x40eae0
xor rcx, rcx
lea rdx, [0x008933a4]
lea r8, str.Error
xor r9, r9
call sub.user32.dll_MessageBoxA
add rsp, 0x40
pop rbx
ret

Function at 0x40edc0
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 [0x00891058], 0
je 0x40edf1
mov rcx, rsi
mov rdx, rdi
call qword [0x00891058]
mov r13, rax
jmp 0x40ee07
mov ecx, 0x10
call fcn.00408d20
mov r13, rax
mov qword [r13], rsi
mov qword [r13 + 8], rdi
mov byte [0x008f80a9], 1
mov rcx, qword [rsp + 0x38]
mov edx, ebx
lea r8, [0x0040ed50]
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 0x40ee4c
mov rcx, r13
call fcn.00408d50
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r13
ret

Function at 0x412f70
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
lea rcx, [0x008fce70]
call sub.kernel32.dll_InitializeCriticalSection
mov word [0x008fce98], 0x7f
call sub.kernel32.dll_GetVersion
and eax, 0xff
cmp eax, 6
setae al
mov byte [0x008fce68], al
cmp byte [0x008fce68], 0
je 0x41300f
lea rcx, [0x00413014]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0041302e]
call sub.kernel32.dll_GetProcAddress
mov qword [0x008fce50], rax
lea rcx, [0x00413014]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0041304c]
call sub.kernel32.dll_GetProcAddress
mov qword [0x008fce58], rax
lea rcx, [0x00413014]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0041306a]
call sub.kernel32.dll_GetProcAddress
mov qword [0x008fce60], rax
add rsp, 0x28
ret
Function at 0x4132f0
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.0040efd0
movzx rax, word [rbp + 0x4e]
cmp word [0x00893b10], ax
ja 0x4133d8
movzx rax, word [rbp + 0x4e]
cmp ax, word [0x00893f10]
mov word [rbp + 0x4e], ax
ja 0x4133d8
mov ecx, 0x40
xor r8, r8
cmp ecx, r8d
jb 0x4133d7
mov eax, ecx
add eax, r8d
mov r9d, 2
xor edx, edx
div r9d
lea rdx, [0x00893b10]
mov r9d, eax
add r9, r9
movzx r10, word [rbp + 0x4e]
cmp word [rdx + r9*8], r10w
jbe 0x413391
mov ecx, eax
sub ecx, 1
jmp 0x4133d2
lea rdx, [0x00893b10]
mov r8d, eax
add r8, r8
movzx r9, word [rbp + 0x4e]
cmp word [rdx + r8*8], r9w
jae 0x4133b3
mov r8d, eax
add r8d, 1
jmp 0x4133d2
mov rcx, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x40]
lea r8, [0x00893b18]
mov eax, eax
add rax, rax
mov r8, qword [r8 + rax*8]
call fcn.00413180
jmp 0x4133d7
cmp ecx, r8d
jae 0x413360
nop
mov rax, qword [rbp + 0x40]
cmp qword [rax], 0
jne 0x4134ba
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4134ba
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.00410920
lea rcx, [rbp + 0x60]
lea rdx, [rbp + 0x7c]
mov r8d, 0x55
call fcn.00410920
lea rcx, [rbp + 0x58]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.00410920
mov rcx, qword [rbp + 0x40]
mov edx, 5
mov r8, qword [rbp + 0x68]
lea r9, [0x00413514]
mov rax, qword [rbp + 0x60]
mov qword [rsp + 0x20], rax
lea rax, [0x00413524]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.00410da0
nop
lea rcx, [rbp + 0x58]
mov edx, 3
call fcn.0040f0b0
mov rax, qword [rbp + 0x40]
lea rsp, [rbp + 0x1d0]
pop rbp
ret
Function at 0x413730
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, [0x008fce70]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
cmp word [0x008fce98], ax
jne 0x41379b
mov rcx, qword [rbp + 0x28]
lea rdx, [0x008fce9a]
mov r8d, 0x55
call fcn.00410920
lea rcx, [0x008fce70]
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4138a6
lea rcx, [0x008fce70]
call sub.kernel32.dll_LeaveCriticalSection
mov rcx, qword [rbp + 0x28]
call fcn.0040efd0
movzx rcx, word [rbp + 0x36]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x413860
cmp byte [0x008fce68], 0
je 0x4137f4
mov rcx, rbp
lea rdx, [rbp + 0x48]
movzx r8, word [rbp + 0x36]
call fcn.004135c0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x48]
call fcn.0040f600
jmp 0x413860
mov rcx, rbp
lea rdx, [rbp + 0x40]
movzx r8, word [rbp + 0x36]
call fcn.004132f0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.0040f600
call sub.kernel32.dll_GetSystemDefaultUILanguage
movzx rcx, word [rbp + 0x36]
cmp cx, ax
mov word [rbp + 0x36], cx
je 0x413860
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
je 0x41383f
mov rcx, qword [rbp + 0x28]
lea rdx, [0x004138f4]
call fcn.00410b90
call sub.kernel32.dll_GetSystemDefaultUILanguage
mov rcx, rbp
lea rdx, [rbp + 0x38]
mov r8d, eax
call fcn.004132f0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x38]
call fcn.00410b90
lea rcx, [0x008fce70]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
mov word [0x008fce98], ax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax]
call fcn.00410820
lea rcx, [0x008fce9a]
mov edx, 0xaa
mov r8, rax
call fcn.004130a0
lea rcx, [0x008fce70]
call sub.kernel32.dll_LeaveCriticalSection
nop
lea rcx, [rbp + 0x38]
mov edx, 3
call fcn.0040f0b0
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x4142d0
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.0040f160
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.00410920
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x38]
call fcn.00410c80
mov rcx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax]
call fcn.004140f0
test al, al
jne 0x41439e
mov word [rbp + 0x4c], 0
lea rcx, [rbp + 0x30]
lea rdx, [rbp + 0x48]
mov r8d, 4
call fcn.00410920
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x30]
call fcn.00410c80
mov rcx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax]
call fcn.004140f0
test al, al
jne 0x41439e
mov rcx, qword [rbp + 0x20]
call fcn.0040efd0
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.0040f0b0
lea rcx, [rbp + 0x70]
call fcn.0040efd0
mov rax, qword [rbp + 0x20]
lea rsp, [rbp + 0x50]
pop rbp
ret