joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140015420
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0xc0
mov rax, qword [0x140074048]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov edi, r9d
mov rbx, rdx
test r8b, r8b
jne 0x140015512
mov rdx, rcx
lea rcx, [rsp + 0x60]
call fcn.1400122a0
mov rdx, rbx
lea rcx, [rsp + 0x80]
call fcn.1400122a0
mov dword [rsp + 0xa0], edi
mov ecx, 0x48
call fcn.1400309c4
mov rbx, rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.1400122a0
nop
lea rcx, [rbx + 0x20]
lea rdx, [rsp + 0x80]
call fcn.1400122a0
mov ecx, dword [rsp + 0xa0]
mov dword [rbx + 0x40], ecx
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, rbx
lea r8, [0x14001a630]
xor edx, edx
xor ecx, ecx
call fcn.14003b928
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140015555
lea rcx, [rsp + 0x60]
call fcn.140015580
cmp dword [rsp + 0x38], 0
je 0x140015568
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call fcn.14002ff6c
test eax, eax
jne 0x140015568
jmp 0x140015534
cmp qword [rdx + 0x18], 8
jb 0x14001551c
mov rbx, qword [rdx]
cmp qword [rcx + 0x18], 8
jb 0x140015526
mov rcx, qword [rcx]
mov r8, rbx
mov rdx, rcx
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140030970
mov rbx, qword [rsp + 0xe0]
add rsp, 0xc0
pop rdi
ret
mov dword [rsp + 0x38], 0
mov ecx, 6
call fcn.14002fed0
nop
mov ecx, 1
call fcn.14002fed0
int3

Function at 0x140015640
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x260
mov rax, qword [0x140074048]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rcx
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x1c]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1400156b0
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140002330
mov dword [rsp + 0x30], 1
mov r8d, SafeArrayDestroy
lea rdx, [0x140067c00]
mov rcx, rbx
call fcn.140002e00
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140030970
add rsp, 0x260
pop rbx
ret
Function at 0x140025040
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0xb0
mov rax, qword [0x140074048]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movzx esi, r8b
xor ebp, ebp
lea rcx, [rsp + 0x58]
call fcn.140001e20
mov r14, rax
mov qword [rsp + 0x50], rax
mov rdi, qword [0x140077330]
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.140001e20
mov byte [rsp + 0x98], sil
mov qword [rsp + 0xa0], rdi
lea ecx, [rbp + 0x30]
call fcn.1400309c4
mov rbx, rax
movups xmm0, xmmword [rsp + 0x78]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rsp + 0x88]
movups xmmword [rax + 0x10], xmm1
mov qword [rsp + 0x88], rbp
mov qword [rsp + 0x90], reloc.OLEAUT32.dll_SafeArrayDestroy
mov byte [rsp + 0x78], bpl
mov byte [rax + 0x20], sil
mov qword [rax + 0x28], rdi
mov qword [rsp + 0x30], rbp
lea rcx, [rsp + 0x30]
call fcn.140012720
mov qword [rsp + 0x30], rbx
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebp
mov r9, rbx
lea r8, [0x1400128e0]
xor edx, edx
xor ecx, ecx
call fcn.14003b928
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1400251cb
cmp dword [rsp + 0x48], ebp
je 0x1400251c0
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
call fcn.14002ff6c
test eax, eax
jne 0x1400251c0
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x40], xmm0
mov rdx, qword [r14 + 0x18]
cmp rdx, 0x10
jb 0x140025188
inc rdx
mov rcx, qword [r14]
cmp rdx, 0x1000
jb 0x140025183
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400251da
mov rcx, r8
call fcn.140030990
mov qword [r14 + 0x10], rbp
mov qword [r14 + 0x18], reloc.OLEAUT32.dll_SafeArrayDestroy
mov byte [r14], 0
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140030970
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
mov ecx, 1
call fcn.14002fed0
nop
mov dword [rsp + 0x48], ebp
mov ecx, 6
call fcn.14002fed0
nop
call fcn.1400373e4
int3
Function at 0x140025920
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xc0
mov rax, qword [0x140074048]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rbx, rcx
xor esi, esi
mov ecx, 0xfa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rbx + 0xe0]
test rcx, rcx
je 0x14002596c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, dword [rbx + 0xa0]
xor edx, edx
mov ecx, 0xc3a
call qword [0x140077250]
mov qword [rbx + 0xe0], rax
lea rcx, [rbx + 0x60]
call fcn.14002d500
mov dword [rbp - 0x29], esi
mov dword [rbp - 0x39], esi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rbp - 0x29]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x140025a0b
lea rdx, [rbp - 0x39]
mov rcx, qword [rbx + 0xe0]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x140025a0b
mov eax, dword [rbp - 0x39]
cmp dword [rbp - 0x29], eax
je 0x140025a0b
lea r8, [0x140077470]
cmp qword [0x140077488], 8
cmovae r8, qword [0x140077470]
lea rdx, [0x1400776b0]
cmp qword [0x1400776c8], 8
cmovae rdx, qword [0x1400776b0]
xor ecx, ecx
lea r9d, [rcx + 0x10]
call qword [sym.imp.USER32.dll_MessageBoxW]
xor al, al
jmp 0x140025aca
cmp qword [rbx + 0xe0], rsi
jne 0x140025ac8
lea rdx, [0x140077650]
lea rcx, [rbp - 9]
call fcn.1400122a0
lea rdx, [0x140077470]
lea rcx, [rbp + 0x17]
call fcn.1400122a0
mov dword [rbp + 0x37], 0x10
mov ecx, 0x48
call fcn.1400309c4
mov rbx, rax
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x39], rax
lea rdx, [rbp - 9]
mov rcx, rax
call fcn.1400122a0
nop
lea rcx, [rbx + 0x20]
lea rdx, [rbp + 0x17]
call fcn.1400122a0
mov ecx, dword [rbp + 0x37]
mov dword [rbx + 0x40], ecx
mov qword [rbp - 0x29], rbx
lea rax, [rbp - 0x11]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], esi
mov r9, rbx
lea r8, [0x14001a630]
xor edx, edx
xor ecx, ecx
call fcn.14003b928
mov qword [rbp - 0x19], rax
test rax, rax
je 0x140025aef
lea rcx, [rbp - 9]
call fcn.140015580
cmp dword [rbp - 0x11], 0
je 0x140025afd
movaps xmm0, xmmword [rbp - 0x19]
movdqa xmmword [rbp - 0x29], xmm0
lea rcx, [rbp - 0x29]
call fcn.14002ff6c
test eax, eax
jne 0x140025afd
jmp 0x140025aca
mov al, 1
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140030970
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
mov dword [rbp - 0x11], esi
mov ecx, 6
call fcn.14002fed0
nop
mov ecx, 1
call fcn.14002fed0
int3
Function at 0x14002d9c0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x140074048]
xor rax, rsp
mov qword [rsp + 0x88], rax
xor edi, edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], r8
mov r9, rdx
xor r8d, r8d
xor edx, edx
mov rcx, qword [rcx + 0x80]
call qword [0x140077268]
mov rbx, rax
test rax, rax
jne 0x14002db4d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x68]
call fcn.140026020
nop
lea r8, [0x140077690]
cmp qword [0x1400776a8], 8
cmovae r8, qword [0x140077690]
mov r9, qword [0x1400776a0]
mov rcx, rax
call fcn.140006d00
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], rdi
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x48], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x58], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 7
mov word [rax], di
lea r8, [0x140077470]
cmp qword [0x140077488], 8
cmovae r8, qword [0x140077470]
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rdx, qword [rsp + 0x48]
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x14002daf5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002daf0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002db96
call fcn.140030990
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], di
mov rdx, qword [rsp + 0x80]
cmp rdx, 8
jb 0x14002db49
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002db44
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002db90
call fcn.140030990
xor al, al
jmp 0x14002db6f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140030970
mov rbx, qword [rsp + 0xb8]
add rsp, 0x90
pop rdi
ret
call fcn.1400373e4
nop
call fcn.1400373e4
nop
int3
Function at 0x14002dd40
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x140074048]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rdi, rdx
mov qword [rsp + 0x50], rdx
xor r15d, r15d
lea r14, [r15 - 1]
cmp qword [rdx + 0x10], r15
jne 0x14002dd80
lea rdx, [rcx + 0x60]
mov rcx, rdi
call fcn.140012220
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14002dd8d
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002de4b
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14002dda9
mov rcx, qword [rdi]
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, r14
je 0x14002de4b
mov qword [rsp + 0x48], r15
lea rdx, [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14002de41
mov rbx, qword [rsp + 0x48]
mov rcx, rbx
call fcn.140030c50
mov rsi, rax
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.140032b00
mov dword [rsp + 0x40], r15d
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x48]
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002de39
movsxd rax, dword [rsi + 0x3c]
mov r14d, dword [rax + rsi + 8]
mov rcx, rsi
call fcn.140030990
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x14002de86
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x14002de81
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14002deba
mov rcx, r8
call fcn.140030990
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], 7
mov word [rdi], r15w
mov rax, r14
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140030970
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.1400373e4
int3
Function at 0x140031780
Capabilities:
Parse pe header

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

Function at 0x14003b49c
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14003b32f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003b32f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003b32f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003b32f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003b32f
cmp dword [rcx + 0x84], 0xe
jbe 0x14003b32f
cmp dword [rcx + 0xf8], 0
je 0x14003b32f
mov ecx, ebx
call fcn.14003b3d0
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.14003b1c0
cmp dword [rbp + 0x20], 0
je 0x14003b37c
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14003b384
int3
xor r8d, r8d
xor edx, edx
jmp 0x14003b2c8
Function at 0x140052df0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140052e18
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140052e18
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x407a40
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 [0x0074c0a8], 0
je 0x407afb
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle
mov rdi, rax
mov rcx, rsi
call fcn.0040ee00
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 [0x007080c0]
call fcn.0040ee00
mov rcx, rsi
mov rdx, qword [0x007080c0]
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.0040ee00
mov rcx, rsi
mov rdx, rbx
mov r8d, eax
lea r9, [rbp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x407b10
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 0x40c1c0
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.0040c820
mov esi, eax
test sil, sil
jne 0x40c382
test ebx, ebx
je 0x40c382
xor rdi, rdi
test r13d, r13d
jle 0x40c2a7
call sub.kernel32.dll_GetTickCount
mov r14d, eax
mov dword [rbp + 0x3c], 0
test r13d, r13d
jle 0x40c286
cmp ebx, 0xffffffff
je 0x40c233
call sub.kernel32.dll_GetTickCount
sub eax, r14d
cmp eax, ebx
jb 0x40c233
xor rsi, rsi
jmp 0x40c382
mov rax, qword [rbp + 0x28]
cmp dword [rax], 1
jg 0x40c286
mov rax, qword [rbp + 0x28]
cmp dword [rax], 0
jne 0x40c274
xor eax, eax
mov ecx, 1
mov rdx, qword [rbp + 0x28]
lock cmpxchg dword [rdx], ecx
test eax, eax
jne 0x40c274
call sub.kernel32.dll_GetCurrentThreadId
mov rcx, qword [rbp + 0x28]
mov dword [rcx + 8], eax
mov dword [rcx + 4], 1
mov sil, 1
jmp 0x40c382
lea rcx, [rbp + 0x3c]
call fcn.0040bd70
sub r13d, 1
test r13d, r13d
jg 0x40c21a
nop
cmp ebx, 0xffffffff
je 0x40c2a7
call sub.kernel32.dll_GetTickCount
mov ecx, eax
sub ecx, r14d
cmp ecx, ebx
jb 0x40c2a2
xor rsi, rsi
jmp 0x40c382
sub eax, r14d
sub ebx, eax
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
test ecx, ecx
je 0x40c1dd
mov edx, ecx
add edx, 2
mov eax, ecx
mov r8, qword [rbp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x40c2a7
nop
call sub.kernel32.dll_GetTickCount
mov r14d, eax
mov rcx, qword [rbp + 0x28]
call fcn.0040c430
xor rcx, rcx
mov rdx, rax
mov r8d, ebx
mov rax, qword [0x0074c9a0]
call qword [rax + 0x20]
test eax, eax
sete sil
cmp ebx, 0xffffffff
je 0x40c311
call sub.kernel32.dll_GetTickCount
mov ecx, eax
sub ecx, r14d
cmp ecx, ebx
jae 0x40c30e
sub eax, r14d
sub ebx, eax
jmp 0x40c311
xor rbx, rbx
test sil, sil
je 0x40c343
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
mov eax, ecx
test eax, 1
jne 0x40c340
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 0x40c316
mov dil, 1
nop
jmp 0x40c360
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 0x40c343
mov dil, 1
test dil, dil
je 0x40c2ca
nop
test sil, sil
je 0x40c382
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 0x40e080
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
cmp byte [0x0074c0a8], 0
je 0x40e11e
cmp word [0x0074c3b8], 0xd7b2
jne 0x40e0b3
cmp dword [0x0074c3c0], 0
jbe 0x40e0b3
lea rcx, [0x0074c3b0]
call qword [0x0074c3d8]
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
lea rdx, [0x00709a0c]
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, [0x0040e154]
call fcn.0040f3e0
mov rcx, rbx
mov rdx, rax
mov r8d, 2
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x40e140
cmp byte [0x00708052], 0
jne 0x40e140
xor rcx, rcx
lea rdx, [0x00709a0c]
lea r8, str.Error
xor r9, r9
call sub.user32.dll_MessageBoxA
add rsp, 0x40
pop rbx
ret

Function at 0x40e420
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 [0x00708058], 0
je 0x40e451
mov rcx, rsi
mov rdx, rdi
call qword [0x00708058]
mov r13, rax
jmp 0x40e467
mov ecx, 0x10
call fcn.00408cd0
mov r13, rax
mov qword [r13], rsi
mov qword [r13 + 8], rdi
mov byte [0x0074c0a9], 1
mov rcx, qword [rsp + 0x38]
mov edx, ebx
lea r8, [0x0040e3b0]
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 0x40e4ac
mov rcx, r13
call fcn.00408d00
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r13
ret

Function at 0x412260
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
lea rcx, [0x00750e70]
call sub.kernel32.dll_InitializeCriticalSection
mov word [0x00750e98], 0x7f
call sub.kernel32.dll_GetVersion
and eax, 0xff
cmp eax, 6
setae al
mov byte [0x00750e68], al
cmp byte [0x00750e68], 0
je 0x4122ff
lea rcx, [0x00412304]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0041231e]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00750e50], rax
lea rcx, [0x00412304]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0041233c]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00750e58], rax
lea rcx, [0x00412304]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0041235a]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00750e60], rax
add rsp, 0x28
ret
Function at 0x4125e0
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.0040e630
movzx rax, word [rbp + 0x4e]
cmp word [0x0070a0f8], ax
ja 0x4126c8
movzx rax, word [rbp + 0x4e]
cmp ax, word [0x0070a4f8]
mov word [rbp + 0x4e], ax
ja 0x4126c8
mov ecx, 0x40
xor r8, r8
cmp ecx, r8d
jb 0x4126c7
mov eax, ecx
add eax, r8d
mov r9d, 2
xor edx, edx
div r9d
lea rdx, [0x0070a0f8]
mov r9d, eax
add r9, r9
movzx r10, word [rbp + 0x4e]
cmp word [rdx + r9*8], r10w
jbe 0x412681
mov ecx, eax
sub ecx, 1
jmp 0x4126c2
lea rdx, [0x0070a0f8]
mov r8d, eax
add r8, r8
movzx r9, word [rbp + 0x4e]
cmp word [rdx + r8*8], r9w
jae 0x4126a3
mov r8d, eax
add r8d, 1
jmp 0x4126c2
mov rcx, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x40]
lea r8, [0x0070a100]
mov eax, eax
add rax, rax
mov r8, qword [r8 + rax*8]
call fcn.00412470
jmp 0x4126c7
cmp ecx, r8d
jae 0x412650
nop
mov rax, qword [rbp + 0x40]
cmp qword [rax], 0
jne 0x4127aa
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4127aa
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.0040fa70
lea rcx, [rbp + 0x60]
lea rdx, [rbp + 0x7c]
mov r8d, 0x55
call fcn.0040fa70
lea rcx, [rbp + 0x58]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.0040fa70
mov rcx, qword [rbp + 0x40]
mov edx, 5
mov r8, qword [rbp + 0x68]
lea r9, [0x00412804]
mov rax, qword [rbp + 0x60]
mov qword [rsp + 0x20], rax
lea rax, [0x00412814]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.0040fef0
nop
lea rcx, [rbp + 0x58]
mov edx, 3
call fcn.0040e710
mov rax, qword [rbp + 0x40]
lea rsp, [rbp + 0x1d0]
pop rbp
ret
Function at 0x412a20
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, [0x00750e70]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
cmp word [0x00750e98], ax
jne 0x412a8b
mov rcx, qword [rbp + 0x28]
lea rdx, [0x00750e9a]
mov r8d, 0x55
call fcn.0040fa70
lea rcx, [0x00750e70]
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x412b96
lea rcx, [0x00750e70]
call sub.kernel32.dll_LeaveCriticalSection
mov rcx, qword [rbp + 0x28]
call fcn.0040e630
movzx rcx, word [rbp + 0x36]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x412b50
cmp byte [0x00750e68], 0
je 0x412ae4
mov rcx, rbp
lea rdx, [rbp + 0x48]
movzx r8, word [rbp + 0x36]
call fcn.004128b0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x48]
call fcn.0040ec60
jmp 0x412b50
mov rcx, rbp
lea rdx, [rbp + 0x40]
movzx r8, word [rbp + 0x36]
call fcn.004125e0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.0040ec60
call sub.kernel32.dll_GetSystemDefaultUILanguage
movzx rcx, word [rbp + 0x36]
cmp cx, ax
mov word [rbp + 0x36], cx
je 0x412b50
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
je 0x412b2f
mov rcx, qword [rbp + 0x28]
lea rdx, [0x00412be4]
call fcn.0040fce0
call sub.kernel32.dll_GetSystemDefaultUILanguage
mov rcx, rbp
lea rdx, [rbp + 0x38]
mov r8d, eax
call fcn.004125e0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x38]
call fcn.0040fce0
lea rcx, [0x00750e70]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
mov word [0x00750e98], ax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax]
call fcn.0040f9a0
lea rcx, [0x00750e9a]
mov edx, 0xaa
mov r8, rax
call fcn.00412390
lea rcx, [0x00750e70]
call sub.kernel32.dll_LeaveCriticalSection
nop
lea rcx, [rbp + 0x38]
mov edx, 3
call fcn.0040e710
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x50]
pop rbp
ret