joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005dc4
Capabilities:
Create process on windows
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xe0
lea rdx, [rbp + 0x17]
mov dword [rbp - 0x59], 0x62002e
mov rbx, rcx
mov dword [rbp - 0x55], 0x680070
mov dword [rbp - 0x51], 0x72
xor esi, esi
call fcn.14000251c
mov rdx, rax
lea rcx, [rbp + 0x37]
call fcn.140007c40
lea rcx, [rbp + 0x17]
call fcn.140007b48
cmp qword [rbp + 0x4f], 7
lea rcx, [rbp + 0x37]
lea rdx, [rbp - 0x59]
cmova rcx, qword [rbp + 0x37]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x140006033
mov rdx, rbx
lea rcx, [rbp + 0x17]
call fcn.140007c40
xorps xmm0, xmm0
lea rdx, [0x140013b0c]
xorps xmm1, xmm1
lea rcx, [rbp - 0x29]
xor r8d, r8d
movups xmmword [rbp - 0x29], xmm0
movdqu xmmword [rbp - 0x19], xmm1
call fcn.140008ec8
lea rdx, [rbp - 0x29]
mov rcx, rbx
call fcn.1400021b8
mov rdx, rax
lea rcx, [rbp - 9]
call fcn.140007c40
mov rdx, qword [rbp - 0x11]
cmp rdx, 7
jbe 0x140005eb9
mov rcx, qword [rbp - 0x29]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005eb4
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006051
call fcn.14000bfec
xorps xmm0, xmm0
lea rdx, [0x140013b0c]
xorps xmm1, xmm1
lea rcx, [rbp - 0x49]
xor r8d, r8d
movups xmmword [rbp - 0x49], xmm0
movdqu xmmword [rbp - 0x39], xmm1
call fcn.140008ec8
lea rdx, [0x140013f44]
lea rcx, [rbp - 0x49]
call fcn.140008170
lea rdx, [rbp + 0x17]
lea rcx, [rbp - 0x29]
call fcn.140007c40
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x49]
call fcn.140007ac4
lea rcx, [rbp - 0x29]
call fcn.140007b48
lea rdx, [0x140013f44]
lea rcx, [rbp - 0x49]
call fcn.140008170
lea rdx, [0x140013f48]
lea rcx, [rbp - 0x49]
call fcn.140008170
lea rdx, [rbp - 9]
lea rcx, [rbp - 0x29]
call fcn.140007c40
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x49]
call fcn.140007ac4
lea rcx, [rbp - 0x29]
call fcn.140007b48
lea rdx, [0x140013f44]
lea rcx, [rbp - 0x49]
call fcn.140008170
cmp qword [rbp - 0x31], 7
lea r9, [rbp - 0x49]
mov dword [rsp + 0x28], 5
lea r8, str.expand
cmova r9, qword [rbp - 0x49]
lea rdx, str.open
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp qword [rbp + 0x2f], 7
lea rcx, [rbp + 0x17]
cmova rcx, qword [rbp + 0x17]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rax, [rbp - 9]
cmp rbx, rax
je 0x140005fd4
cmp qword [rbp + 0xf], 7
lea rdx, [rbp - 9]
mov r8, qword [rbp + 7]
mov rcx, rbx
cmova rdx, qword [rbp - 9]
call fcn.1400079a4
mov rdx, qword [rbp - 0x31]
cmp rdx, 7
jbe 0x140006010
mov rcx, qword [rbp - 0x49]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000600b
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006051
call fcn.14000bfec
movdqa xmm0, xmmword [0x140014210]
lea rcx, [rbp - 9]
movdqu xmmword [rbp - 0x39], xmm0
mov word [rbp - 0x49], si
call fcn.140007b48
lea rcx, [rbp + 0x17]
call fcn.140007b48
lea rcx, [rbp + 0x37]
call fcn.140007b48
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
call fcn.14000ce90
int3
Function at 0x14000ac3c
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov r9, qword [rcx]
mov ebx, 0x270
mov ecx, dword [r9]
cmp ecx, ebx
jne 0x14000aca7
lea r8, [r9 + 8]
mov r10d, 0x7fffffff
mov r11d, 0x9908b0df
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
and edx, r10d
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, r11d
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub rbx, 1
jne 0x14000ac6a
mov ecx, dword [r9]
jmp 0x14000ad75
cmp ecx, 0x4e0
jb 0x14000ad75
lea rbx, [r9 + 0x9c4]
mov esi, 0xe3
mov edi, dword [rbx]
mov r10d, 0x7fffffff
mov r11d, 0x9908b0df
mov eax, edi
mov edi, dword [rbx + 4]
mov edx, eax
lea rbx, [rbx + 4]
xor edx, edi
and edx, r10d
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, r11d
xor ecx, dword [rbx + 0x630]
xor ecx, edx
mov dword [rbx - 0x9c4], ecx
sub rsi, 1
jne 0x14000accd
lea rbx, [r9 + 0xd50]
mov esi, 0x18c
mov edi, dword [rbx]
mov eax, edi
mov edi, dword [rbx + 4]
mov edx, eax
lea rbx, [rbx + 4]
xor edx, edi
and edx, r10d
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, r11d
xor ecx, dword [rbx - 0xd50]
xor ecx, edx
mov dword [rbx - 0x9c4], ecx
sub rsi, 1
jne 0x14000ad0e
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
and edx, r10d
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, r11d
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
ret

Function at 0x14000aeb4
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14000aeee
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14000aef3
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14000af3c
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140012470]
cmp byte [rcx + rax], 0
je 0x14000af3c
dec r8
sub rdx, 1
jne 0x14000af22
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x14000b6d8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.14000afcc
mov ebx, eax
test eax, eax
jne 0x14000b708
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x14000b764
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000b75b
test al, 0x10
je 0x14000b75b
bt eax, 0xa
jae 0x14000b754
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.14000b77c
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x14000b750
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x14000b774
test edi, edi
jne 0x14000b75b
and dword [rsp + 0x3c], 0
jmp 0x14000b760
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call sub.msvcrt.dll_abort
int3

Function at 0x14000c678
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x4f0]
sub rsp, 0x5f0
mov rax, qword [0x140018040]
xor rax, rsp
mov qword [rbp + 0x4e0], rax
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x14000cf0c
mov ecx, 5
int 0x29
mov ecx, 2
call fcn.14000c520
xorps xmm0, xmm0
lea rcx, [rbp + 0x10]
xor eax, eax
xor edx, edx
mov r8d, 0x4d0
mov qword [rbp], rax
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rcx, [rbp + 0x10]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rbp + 0x108]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x14000cfc8
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x38], 0
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x10]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
mov rax, qword [rbp + 0x4f8]
mov qword [rbp + 0x108], rax
lea rax, [rbp + 0x4f8]
add rax, 8
mov dword [rsp + 0x70], 0xc0000417
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0x4f8]
mov qword [rbp - 0x80], rax
mov dword [rsp + 0x74], 1
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x14000d02e
test ebx, ebx
jne 0x14000d02e
lea ecx, [rax + 2]
call fcn.14000c520
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rbp + 0x4e0]
xor rcx, rsp
call fcn.14000c320
mov rbx, qword [rsp + 0x600]
add rsp, 0x5f0
pop rbp
ret
Function at 0x14000d070
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x20
mov rbp, r9
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
cmp rdx, 0xffffffffffffffff
jne 0x14000d0aa
mov r9, qword [rsp + 0x60]
mov r8, rbp
mov rdx, rsi
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
jmp 0x14000dece
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x50], r15
test rsi, rsi
je 0x14000d118
test rbp, rbp
je 0x14000d118
mov r8, rbx
xor edx, edx
call sub.msvcrt.dll_memset
mov r15, rsi
imul r15, rbp
mov rbp, rbx
cmp r15, rbx
cmovb rbp, r15
call sub.msvcrt.dll__errno
mov r9, qword [rsp + 0x60]
mov r8, rbp
mov edx, 1
mov rcx, rdi
mov dword [rax], 0
call 0x14000dece
mov r14, rax
test rax, rax
jne 0x14000d131
call sub.msvcrt.dll__errno
cmp dword [rax], r14d
je 0x14000d118
mov r8, rbx
xor edx, edx
mov rcx, rdi
call sub.msvcrt.dll_memset
xor eax, eax
mov r14, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
cmp r14, rbp
jne 0x14000d18b
cmp r15, rbp
je 0x14000d18b
call sub.msvcrt.dll__errno
mov r9, qword [rsp + 0x60]
lea rcx, [rsp + 0x48]
mov edx, 1
mov r8d, edx
mov dword [rax], 0
call 0x14000dece
test rax, rax
je 0x14000d181
mov r8, rbx
xor edx, edx
mov rcx, rdi
call sub.msvcrt.dll_memset
call sub.msvcrt.dll__errno
mov dword [rax], 0x22
call fcn.14000ce30
jmp 0x14000d118
call sub.msvcrt.dll__errno
cmp dword [rax], 0
jne 0x14000d10b
xor edx, edx
mov rax, r14
div rsi
jmp 0x14000d11a
jmp qword [sym.imp.msvcrt.dll_fread]

Function at 0x14000d5c0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov ebx, ecx
mov dword [rsp + 0x60], 0
xor ecx, ecx
mov dword [rsp + 0x68], 2
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000d622
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000d622
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
jne 0x14000d622
mov eax, 0x20b
cmp word [rdx + 0x18], ax
jne 0x14000d622
cmp dword [rdx + 0x84], 0xe
jbe 0x14000d622
cmp dword [rdx + 0xf8], 0
je 0x14000d622
mov ecx, ebx
call fcn.14000d480
lea rax, [rsp + 0x68]
mov byte [rsp + 0x58], 0
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x20]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rcx, [0x1400190e8]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.14000d300
cmp dword [rsp + 0x60], 0
jne 0x14000d665
mov ecx, ebx
call fcn.14000d430
int3
add rsp, 0x40
pop rbx
ret
Function at 0x14000d6b0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
xor eax, eax
mov ebx, ecx
xor ecx, ecx
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x68], eax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000d70c
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000d70c
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000d70c
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000d70c
cmp dword [rcx + 0x84], 0xe
jbe 0x14000d70c
cmp dword [rcx + 0xf8], 0
je 0x14000d70c
mov ecx, ebx
call fcn.14000d480
lea rax, [rsp + 0x68]
mov byte [rsp + 0x58], 0
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x20]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rcx, [0x1400190e8]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.14000d300
cmp dword [rsp + 0x60], 0
jne 0x14000d74f
mov ecx, ebx
call fcn.14000d430
int3
add rsp, 0x40
pop rbx
ret

Function at 0x14000e400
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x40
mov rbp, r9
mov r14, r8
mov rbx, rdx
mov rsi, rcx
call fcn.14000cc20
mov rdi, qword [rsp + 0x70]
mov qword [rax + 0x138], rbx
mov rbx, qword [rdi + 8]
call fcn.14000cc20
mov qword [rax + 0x128], rbx
mov rax, qword [rsi]
mov rbx, qword [rax + 0x38]
call fcn.14000cc20
mov ecx, dword [0x140018b0c]
mov r9, rdi
mov byte [rsp + 0x38], 1
mov r8, rbp
mov edx, 0x18
mov qword [rax + 0x130], rbx
xor ebx, ebx
mov rax, qword gs:[0x58]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov rcx, qword [rax + rcx*8]
mov eax, dword [rsp + 0x80]
mov dword [rdx + rcx], eax
mov rdx, r14
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsi]
mov qword [rsp + 0x20], rax
call fcn.14000fe80
call fcn.14000cc20
mov rcx, qword [rsp + 0x88]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov qword [rax + 0x138], rbx
lea eax, [rbx + 1]
mov rbx, qword [rsp + 0x50]
mov dword [rcx], 1
add rsp, 0x40
pop r14
ret
Function at 0x14000ca70
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov eax, dword [rdx + 0x10]
lea r9, [rsp + 0x30]
xor esi, esi
mov dword [rsp + 0x34], eax
mov rbx, rdx
mov dword [rsp + 0x30], esi
mov rdi, rcx
mov qword [rsp + 0x20], rsi
mov rcx, qword [rcx + 8]
lea rdx, [rsp + 0x34]
lea r8d, [rsi + 4]
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp qword [rbx + 0x18], 0x10
mov rdx, rbx
jb 0x14000cabc
mov rdx, qword [rbx]
mov r8d, dword [rbx + 0x10]
lea r9, [rsp + 0x30]
mov rcx, qword [rdi + 8]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x14000cb0a
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x14000cb05
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000cb29
mov rcx, r8
call fcn.14002e630
mov qword [rbx + 0x10], rsi
mov byte [rbx], sil
mov rsi, qword [rsp + 0x68]
mov qword [rbx + 0x18], reloc.OLEAUT32.dll_SafeArrayDestroy
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
call fcn.140034fb4
int3

Function at 0x14000cb30
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov eax, dword [rdx + 0x10]
lea r9, [rsp + 0x30]
xor esi, esi
mov rbx, rdx
mov rdi, rcx
mov dword [rsp + 0x30], esi
mov rcx, qword [rcx + 8]
lea rdx, [rsp + 0x34]
add eax, eax
mov qword [rsp + 0x20], rsi
lea r8d, [rsi + 4]
mov dword [rsp + 0x34], eax
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp qword [rbx + 0x18], 8
mov rdx, rbx
mov r8, qword [rbx + 0x10]
jb 0x14000cb82
mov rdx, qword [rbx]
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x30]
add r8d, r8d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x14000cbd4
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14000cbcf
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000cbf3
mov rcx, r8
call fcn.14002e630
mov qword [rbx + 0x10], rsi
mov word [rbx], si
mov rsi, qword [rsp + 0x68]
mov qword [rbx + 0x18], 7
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
call fcn.140034fb4
int3
Function at 0x14000eb60
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x78
mov rax, qword [0x14006e048]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r12, r9
mov r13, r8
mov rbp, rdx
mov qword [rsp + 0x38], rdx
mov r14, rcx
mov qword [rsp + 0x40], rdx
mov rdi, qword [rsp + 0xe0]
xor ebx, ebx
cmp qword [rcx + 0x18], 8
jb 0x14000ebaa
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14000ebde
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
mov qword [rbp + 0x10], rbx
mov qword [rbp + 0x18], rbx
mov r8d, 0x19
lea rdx, str.Error:_Ini_File_Not_Exist
mov rcx, rbp
call fcn.1400022e0
jmp 0x14000ed4d
mov ebp, 1
mov ecx, 0x208
call fcn.14002e8f0
mov rsi, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], bx
mov rbx, 0xffffffffffffffff
mov r15d, 0x104
nop dword [rax + rax]
mov rax, r14
cmp qword [r14 + 0x18], 8
jb 0x14000ec2d
mov rax, qword [r14]
mov r8, rdi
cmp qword [rdi + 0x18], 8
jb 0x14000ec3a
mov r8, qword [rdi]
mov rdx, r12
cmp qword [r12 + 0x18], 8
jb 0x14000ec49
mov rdx, qword [r12]
mov rcx, r13
cmp qword [r13 + 0x18], 8
jb 0x14000ec57
mov rcx, qword [r13]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [r15 - 1]
cmp eax, ecx
jb 0x14000ecd8
mov r8, rdi
cmp qword [rdi + 0x18], 8
jb 0x14000ec7f
mov r8, qword [rdi]
mov rax, rsi
sub r8, rsi
nop word [rax + rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x14000eca4
add rax, 2
test ecx, ecx
jne 0x14000ec90
test edx, edx
je 0x14000ecd8
mov rcx, rsi
call fcn.14002e630
inc ebp
imul r15d, ebp, 0x104
mov ecx, r15d
mov eax, 2
mul rcx
cmovo rax, rbx
mov rcx, rax
call fcn.14002e8f0
mov rsi, rax
jmp 0x14000ec20
mov rbp, qword [rsp + 0x38]
nop dword [rax]
inc rbx
cmp word [rsi + rbx*2], 0
jne 0x14000ece0
mov rax, qword [rsp + 0x60]
cmp rbx, rax
ja 0x14000ed23
lea rdi, [rsp + 0x48]
cmp rax, 8
cmovae rdi, qword [rsp + 0x48]
mov qword [rsp + 0x58], rbx
add rbx, rbx
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
call fcn.140030a90
xor r14d, r14d
mov word [rbx + rdi], r14w
jmp 0x14000ed33
mov r9, rsi
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.140002930
mov rcx, rsi
call fcn.14002e630
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rbp], xmm0
movups xmm1, xmmword [rsp + 0x58]
movups xmmword [rbp + 0x10], xmm1
mov rax, rbp
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14002e610
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000f7e0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rbx, rcx
xor ebp, ebp
sub rcx, 0xffffffffffffff80
call fcn.14002b130
test eax, eax
setne dl
mov byte [rbx + 0x108], dl
test eax, eax
je 0x14000f82a
cmp qword [rbx + 0xc8], 0x10000
jae 0x14000f82a
lea rcx, [rbx + 0x80]
call fcn.14002b530
mov eax, dword [rbx + 0x2e4]
cmp byte [rbx + 0x108], bpl
je 0x14000f935
cmp eax, 1
je 0x14000f912
mov dword [rbx + 0x2e4], 1
call fcn.14000de90
test al, al
je 0x14000f98e
lea rcx, [rbx + 0x10]
call fcn.140026fb0
test al, al
je 0x14000f98e
lea rcx, [rbx + 0x10]
call fcn.1400271a0
mov rcx, rbx
call fcn.140011070
add rbx, 0x4e0
cmp byte [rbx + 8], bpl
jne 0x14000f979
cmp qword [rbx + 0x18], rbp
je 0x14000f979
mov word [rbx + 8], 0x101
mov dword [rbx + 0x20], 0x32
mov ecx, 8
call fcn.14002e664
mov qword [rax], rbx
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], ebp
mov r9, rax
lea r8, [0x140013550]
xor edx, edx
xor ecx, ecx
call fcn.1400395a8
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14000f9a1
cmp dword [rsp + 0x38], 0
je 0x14000f996
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call fcn.14002dc0c
test eax, eax
jne 0x14000f996
jmp 0x14000f979
mov eax, dword [0x140071308]
inc eax
mov dword [0x140071308], eax
cmp eax, 5
jle 0x14000f979
mov dword [0x140071308], ebp
mov rcx, rbx
call fcn.14000f520
jmp 0x14000f979
test eax, eax
je 0x14000f979
mov dword [rbx + 0x2e4], ebp
mov rcx, rbx
call fcn.140011070
mov byte [rbx + 0x4e8], bpl
mov edi, 0x1388
cmp byte [rbx + 0x4e9], bpl
je 0x14000f979
nop dword [rax]
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
sub edi, 0x32
js 0x14000f979
cmp byte [rbx + 0x4e9], bpl
jne 0x14000f960
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
xor ecx, ecx
call fcn.14003911c
nop
mov ecx, 1
call fcn.14002db70
nop
mov dword [rsp + 0x38], ebp
mov ecx, 6
call fcn.14002db70
int3
Function at 0x14000fc50
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x14006e048]
xor rax, rsp
mov qword [rsp + 0x270], rax
xor ebp, ebp
mov dword [rsp + 0x24], ebp
lea rdx, [0x140071810]
lea rcx, [0x140071450]
call fcn.14000cc70
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rbp
xor r8d, r8d
lea rdx, [0x14005ef90]
lea rcx, [rsp + 0x40]
call fcn.1400022e0
mov dword [rsp + 0x24], 1
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x60]
call fcn.1400306d0
mov r8d, 0x104
lea rdx, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14000fd87
cmp eax, 0x104
je 0x14000fd87
mov dword [rsp + 0x20], ebp
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x60]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test eax, eax
je 0x14000fd87
mov ecx, esi
call fcn.14002e8f0
mov rdi, rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
mov r8d, esi
xor edx, edx
mov rcx, rax
call fcn.1400306d0
mov dword [rsp + 0x28], ebp
mov r9, rdi
mov r8d, esi
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x60]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x14000fd7f
lea r9, [rsp + 0x28]
lea r8, [rsp + 0x30]
lea rdx, str.StringFileInfo000004b0ProductVersion
mov rcx, rdi
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x14000fd7f
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.140001c30
nop
mov rcx, rdi
call fcn.14002e630
lea rdx, [rsp + 0x40]
lea rcx, [0x140071770]
call fcn.140001d20
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x14000fdd7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000fdd2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000fe00
call fcn.14002e630
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14002e610
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.140034fb4
int3
Function at 0x140011070
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
lea rcx, [0x1400718a0]
call fcn.14002dea8
test eax, eax
jne 0x14001111f
cmp dword [0x1400718ec], 0x7fffffff
je 0x14001110a
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x40], rdi
lea r8d, [rax + 4]
xor edi, edi
mov dword [rsp + 0x50], 2
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x48], edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rbx + 0xc0]
lea r9, [rsp + 0x48]
mov rcx, qword [rbx + 8]
lea r8d, [rdi + 4]
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x48], edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rcx, [0x1400718a0]
mov rdi, qword [rsp + 0x40]
add rsp, 0x30
pop rbx
jmp fcn.14002deb0
mov ecx, 6
mov dword [0x1400718ec], 0x7ffffffe
call fcn.14002db70
int3
mov ecx, 5
call fcn.14002db70
int3