joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400024a4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbx
sub rsp, 0x40
cmp qword [rcx], 0
mov rbx, rcx
je 0x1400024bd
mov eax, 1
jmp 0x140002558
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
mov qword [rbx], rax
je 0x140002556
xor ecx, ecx
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x20], 0x4e
mov qword [rsp + 0x29], rcx
mov qword [rsp + 0x21], rcx
mov byte [rsp + 0x30], cl
mov word [rsp + 0x31], cx
mov byte [rsp + 0x33], cl
mov rcx, rax
mov byte [rsp + 0x21], 0x74
mov byte [rsp + 0x2b], 0x65
mov byte [rsp + 0x2c], 0x61
mov byte [rsp + 0x26], 0x74
mov byte [rsp + 0x27], 0x65
mov byte [rsp + 0x22], 0x43
mov byte [rsp + 0x2a], 0x72
mov byte [rsp + 0x2d], 0x64
mov byte [rsp + 0x23], 0x72
mov byte [rsp + 0x2e], 0x45
mov byte [rsp + 0x2f], 0x78
mov byte [rsp + 0x24], 0x65
mov byte [rsp + 0x25], 0x61
mov byte [rsp + 0x28], 0x54
mov byte [rsp + 0x29], 0x68
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 8], rax
jmp 0x1400024b3
xor eax, eax
add rsp, 0x40
pop rbx
ret

Function at 0x140002564
Capabilities:
Check os version

Disassembly:
sub rsp, 0x148
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
xor eax, eax
cmp dword [rsp + 0x24], 6
setae al
add rsp, 0x148
ret

Function at 0x1400025d4
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0xd0
mov rsi, rdx
mov rbx, rcx
call fcn.140002564
xor edi, edi
cmp eax, edi
je 0x1400026ea
mov rcx, rbx
call fcn.1400024a4
mov rbx, qword [rbx + 8]
cmp rbx, rdi
jne 0x140002613
xor eax, eax
jmp 0x140002722
xor edx, edx
lea rcx, [rsp + 0x88]
lea r8d, [rdx + 0x40]
call sub.msvcrt.dll_memset
mov rcx, qword [rsp + 0x108]
xor eax, eax
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x70]
mov r9, rsi
mov qword [rsp + 0x98], rax
lea rax, [rsp + 0x68]
xor r8d, r8d
mov qword [rsp + 0xb8], rax
lea rax, [rsp + 0x80]
mov edx, 0x1fffff
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x100]
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x80], 0x48
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x88], 0x10003
mov qword [rsp + 0x90], InitCommonControls
mov qword [rsp + 0xa8], 0x10004
mov qword [rsp + 0xb0], 8
mov qword [rsp + 0x60], rdi
call rbx
cmp eax, edi
cmove rdi, qword [rsp + 0x60]
mov rax, rdi
jmp 0x140002722
mov rax, qword [rsp + 0x118]
mov r9, qword [rsp + 0x100]
xor r8d, r8d
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x108]
xor edx, edx
mov rcx, rsi
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140002c48
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor ebp, ebp
mov rdi, rcx
mov rcx, qword [rcx]
cmp rcx, rbp
mov rsi, rdx
mov ebx, ebp
je 0x140002c76
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov qword [rdi], rbp
xor edx, edx
mov rcx, rsi
call fcn.140013204
cmp rax, 0xffffffffffffffff
mov rsi, rax
je 0x140002cda
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov dword [rdi + 8], ecx
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov r8d, dword [rdi + 8]
lea r9, [rsp + 0x40]
mov rdx, rax
mov rcx, rsi
mov qword [rdi], rax
mov dword [rsp + 0x40], ebp
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebp
mov ebx, eax
je 0x140002cd1
mov rcx, qword [rdi]
cmp dword [rcx], 0x66676572
cmovne ebx, ebp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140003210
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov dword [r11 + 0x18], r8d
sub rsp, 0x38
lea rax, [r11 + 0x18]
mov r9d, 4
xor r8d, r8d
mov dword [r11 - 0x10], r9d
mov qword [r11 - 0x18], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x38
ret

Function at 0x140003250
Capabilities:
Set registry value

Disassembly:
push rdi
sub rsp, 0x30
mov r10, rcx
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r8
mov r9d, 1
repne scasw ax, word [rdi]
not rcx
lea eax, [rcx + rcx]
mov rcx, r10
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x30
pop rdi
ret

Function at 0x1400032d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x40
lea eax, [r9 + r9]
mov rbx, r8
lea r9, [r11 - 0x18]
mov dword [rsp + 0x68], eax
lea rax, [r11 + 0x20]
xor r8d, r8d
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x28], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140003318
cmp dword [rsp + 0x68], 2
jb 0x140003314
mov ecx, dword [rsp + 0x68]
shr rcx, 1
and word [rbx + rcx*2], ax
jmp 0x140003318
and word [rbx], 0
add rsp, 0x40
pop rbx
ret

Function at 0x140003330
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
sub rsp, 0x48
lea rax, [r11 + 0x20]
lea r9, [r11 - 0x18]
mov dword [rsp + 0x68], 4
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x28], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add rsp, 0x48
ret
Function at 0x140003810
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov dword [rsp + 0x20], r9d
sub rsp, 0x38
cmp dword [rsp + 0x60], 0
je 0x14000383b
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], r8
xor r8d, r8d
mov r9d, 3
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x140003858
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add rsp, 0x38
ret

Function at 0x140003870
Capabilities:
Read .ini file

Disassembly:
sub rsp, 0x28
mov r11, rdx
mov eax, r9d
mov r9, qword [rsp + 0x58]
test ecx, ecx
mov r10, r8
mov rdx, r8
mov rcx, r11
je 0x14000389b
mov rax, qword [rsp + 0x50]
mov r8d, dword [rax]
call fcn.1400033a0
jmp 0x1400038ab
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov rcx, qword [rsp + 0x50]
mov dword [rcx], eax
add rsp, 0x28
ret

Function at 0x1400038c0
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 8], rsi
push rdi
mov eax, 0x20030
call fcn.14001d680
sub rsp, rax
test ecx, ecx
mov r10, r9
mov rdi, r8
mov rsi, rdx
je 0x14000394a
cmp qword [rsp + 0x20060], 0
je 0x14000392c
mov rcx, qword [rsp + 0x20060]
mov dx, 0x22
call sub.msvcrt.dll_wcschr
test rax, rax
je 0x14000392c
mov r9, qword [rsp + 0x20060]
and word [rsp + 0x30], 0
lea r8, str.__s_
lea rcx, [rsp + 0x30]
mov edx, 0xfffe
call sub.msvcrt.dll__snwprintf
lea r8, [rsp + 0x30]
jmp 0x140003934
mov r8, qword [rsp + 0x20060]
mov r9, qword [rsp + 0x20070]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x140003979
mov rax, qword [rsp + 0x20070]
mov r9, qword [rsp + 0x20060]
mov r8, r10
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x20068]
mov rdx, rdi
mov rcx, rsi
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov rsi, qword [rsp + 0x20040]
add rsp, 0x20030
pop rdi
ret
Function at 0x140003b50
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
mov eax, 0x4040
call fcn.14001d680
sub rsp, rax
mov rsi, rdx
xor edx, edx
mov rdi, r8
test ecx, ecx
mov rbx, r9
lea r8d, [rax - 0x40]
lea rcx, [rsp + 0x32]
je 0x140003bc3
call sub.msvcrt.dll_memset
mov rcx, qword [rsp + 0x4070]
and word [rsp + 0x30], 0
mov edx, dword [rcx]
test edx, edx
je 0x140003ba6
lea r8, [rsp + 0x30]
mov rcx, rbx
call fcn.140011e64
mov r9, qword [rsp + 0x4078]
lea r8, [rsp + 0x30]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov esi, eax
jmp 0x140003c34
and word [rsp + 0x30], 0
call sub.msvcrt.dll_memset
mov rdx, qword [rsp + 0x4078]
mov qword [rsp + 0x28], rdx
lea r9, [rsp + 0x30]
lea r8, [0x14001e908]
mov rdx, rdi
mov rcx, rsi
mov dword [rsp + 0x20], 0x2000
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor esi, esi
lea rdi, [rsp + 0x30]
test eax, eax
setne sil
or rcx, 0xffffffffffffffff
xor eax, eax
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
test ecx, ecx
je 0x140003c34
mov rdx, qword [rsp + 0x4070]
mov r9d, ecx
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.140013714
lea r11, [rsp + 0x4040]
mov eax, esi
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x140005080
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x140026684], 0
jne 0x14000514e
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
mov rbx, rax
je 0x14000514e
lea rdx, [0x140020438]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x140025cd0], rax
je 0x14000514e
lea rdx, str.Module32First
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x140025cc0], rax
je 0x14000514e
lea rdx, str.Module32Next
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x140025cb8], rax
je 0x14000514e
lea rdx, str.Process32First
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x140025a90], rax
je 0x14000514e
lea rdx, str.Process32Next
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x140026684]
mov edx, 1
test rax, rax
mov qword [0x140025a98], rax
cmovne ecx, edx
mov dword [0x140026684], ecx
add rsp, 0x20
pop rbx
ret
Function at 0x140005480
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx], 0
mov rbx, rcx
jne 0x14000551a
lea rcx, str.psapi.dll
call fcn.140013394
lea rdx, str.GetModuleBaseNameW
mov rcx, rax
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.EnumProcessModules
mov qword [rbx + 8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.EnumProcessModulesEx
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.GetModuleFileNameExW
mov qword [rbx + 0x18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.EnumProcesses
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.GetModuleInformation
mov qword [rbx + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x20], rax
add rsp, 0x20
pop rbx
ret
Function at 0x140005590
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x6c0
mov rbp, rcx
mov rcx, qword [rcx + 0x50]
xor r12d, r12d
cmp rcx, r12
je 0x1400055b9
call sub.msvcrt.dll_free
xor edx, edx
mov qword [rbp + 0x50], r12
mov dword [rbp + 0x60], r12d
lea ecx, [rdx + 2]
mov dword [rbp + 0x58], r12d
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea rcx, [rsp + 0x274]
xor edx, edx
mov r8d, 0x234
mov rsi, rax
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x270]
mov rcx, rsi
mov dword [rsp + 0x270], 0x238
call sub.KERNEL32.dll_Process32FirstW
jmp 0x140005777
mov r8d, dword [rsp + 0x278]
mov eax, dword [rsp + 0x290]
xor edx, edx
mov ecx, 0x410
mov word [rsp + 0x34], r12w
mov dword [rsp + 0x244], r12d
mov dword [rsp + 0x30], r8d
mov dword [rsp + 0x240], eax
mov dword [rsp + 0x248], r12d
mov dword [rsp + 0x24c], r12d
mov dword [rsp + 0x250], r12d
mov dword [rsp + 0x254], r12d
mov dword [rsp + 0x258], r12d
mov dword [rsp + 0x25c], r12d
mov dword [rsp + 0x260], r12d
call qword [sym.imp.KERNEL32.dll_OpenProcess]
cmp rax, r12
mov rbx, rax
jne 0x1400056aa
call fcn.140012874
cmp dword [rax + 4], 5
jbe 0x140005769
mov r8d, dword [rsp + 0x30]
xor edx, edx
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
cmp rax, r12
mov rbx, rax
je 0x140005769
lea rcx, [rsp + 0x4b2]
xor edx, edx
mov r8d, 0x208
mov word [rsp + 0x4b0], r12w
call sub.msvcrt.dll_memset
lea r9, [rsp + 0x4b0]
xor r8d, r8d
mov rdx, rbx
mov rcx, rbp
mov dword [rsp + 0x20], 0x104
call fcn.140005530
movzx r11d, word [rsp + 0x4b0]
cmp r11w, r12w
je 0x1400056fc
cmp r11w, 0x3f
jne 0x140005721
lea r9, [rsp + 0x6e0]
lea r8, [rsp + 0x4b0]
xor edx, edx
mov rcx, rbx
mov dword [rsp + 0x6e0], 0x104
call fcn.140004f60
lea rdx, [rsp + 0x4b0]
lea rcx, [rsp + 0x34]
call fcn.140005300
lea r11, [rsp + 0x25c]
lea r9, [rsp + 0x254]
lea r8, [rsp + 0x24c]
lea rdx, [rsp + 0x244]
mov rcx, rbx
mov qword [rsp + 0x20], r11
call fcn.140004eb0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x50]
call fcn.14000110c
lea rdx, [rsp + 0x270]
mov rcx, rsi
call sub.KERNEL32.dll_Process32NextW
cmp eax, r12d
jne 0x140005607
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0x6c0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x140005ae0
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x140026688], 0
jne 0x140005bc2
lea rcx, str.psapi.dll
call fcn.140013394
test rax, rax
mov rbx, rax
je 0x140005bc2
lea rdx, str.GetModuleBaseNameW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x140025ce8], rax
je 0x140005baf
lea rdx, str.EnumProcessModules
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x140025cd8], rax
je 0x140005baf
lea rdx, str.GetModuleFileNameExW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x140025cc8], rax
je 0x140005baf
lea rdx, str.EnumProcesses
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x140025f18], rax
je 0x140005baf
lea rdx, str.GetModuleInformation
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x140026688]
mov edx, 1
test rax, rax
mov qword [0x140025ce0], rax
cmovne ecx, edx
mov dword [0x140026688], ecx
jmp 0x140005bb5
mov ecx, dword [0x140026688]
test ecx, ecx
jne 0x140005bc2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
add rsp, 0x20
pop rbx
ret

Function at 0x140008a64
Capabilities:
Delete file
Open clipboard

Disassembly:
push rbx
sub rsp, 0x240
mov rbx, rcx
call fcn.1400068f4
test eax, eax
je 0x140008a89
lea rcx, [rbx + 0x700]
xor edx, edx
call fcn.140014410
jmp 0x140008b03
lea rdx, [0x140020034]
lea rcx, [rsp + 0x30]
call fcn.140012b84
mov rdx, qword [rbx + 0x6e0]
mov eax, 1
mov dword [rsp + 0x28], eax
lea r8, [rsp + 0x30]
lea r9d, [rax + 1]
mov rcx, rbx
mov dword [rsp + 0x20], eax
call fcn.140008104
test eax, eax
je 0x140008b03
mov rcx, qword [rbx + 0x210]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x140008ae0
lea rcx, [rsp + 0x30]
call fcn.140014014
jmp 0x140008ae6
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140008af8
mov rcx, qword [rbx + 0x210]
mov edx, eax
call fcn.140014104
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
add rsp, 0x240
pop rbx
ret
Function at 0x14000ae54
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x2040
call fcn.14001d680
sub rsp, rax
mov rbx, rcx
mov rdi, rdx
lea r8d, [rax - 0x41]
lea rcx, [rsp + 0x41]
xor edx, edx
mov byte [rsp + 0x40], 0
call sub.msvcrt.dll_memset
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
lea rax, [rsp + 0x40]
or r9d, 0xffffffff
mov r8, rdi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], 0x1fff
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x40]
lea r9, [rsp + 0x2060]
and qword [rsp + 0x20], rax
repne scasb al, byte [rdi]
lea rdx, [rsp + 0x40]
not rcx
lea r8, [rcx - 1]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x2050]
add rsp, 0x2040
pop rdi
ret

Function at 0x14000af04
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x8040
call fcn.14001d680
sub rsp, rax
mov rbx, rcx
mov rdi, rdx
lea r8d, [rax - 0x41]
lea rcx, [rsp + 0x41]
xor edx, edx
mov byte [rsp + 0x40], 0
call sub.msvcrt.dll_memset
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
lea rax, [rsp + 0x40]
or r9d, 0xffffffff
mov r8, rdi
xor edx, edx
mov ecx, 0xfde9
mov dword [rsp + 0x28], 0x7fff
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x40]
lea r9, [rsp + 0x8060]
and qword [rsp + 0x20], rax
repne scasb al, byte [rdi]
lea rdx, [rsp + 0x40]
not rcx
lea r8, [rcx - 1]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x8050]
add rsp, 0x8040
pop rdi
ret
Function at 0x14000dfb4
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x20
mov r12d, r8d
mov rbp, rdx
mov r13, rcx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [r13 + 0x310]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1004
mov r14d, eax
call qword [sym.imp.USER32.dll_SendMessageW]
xor edi, edi
test eax, eax
mov rsi, rax
jle 0x14000e074
test r12d, r12d
je 0x14000e02a
mov eax, 0x51eb851f
imul edi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x64
cmp edi, edx
jne 0x14000e02a
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, r14d
cmp eax, 0x1f4
ja 0x14000e074
mov eax, dword [rbp + 0x18]
lea ebx, [rdi + rax]
cmp ebx, esi
jl 0x14000e03c
test byte [rbp + 0x20], 0x20
je 0x14000e074
sub ebx, esi
and qword [rsp + 0x50], 0
lea rdx, [rsp + 0x50]
mov r8d, ebx
mov rcx, r13
call fcn.14000d6f4
test eax, eax
je 0x14000e06d
mov rdx, qword [rsp + 0x50]
mov r9d, r12d
mov r8, rbp
mov rcx, r13
call fcn.14000b864
test eax, eax
jne 0x14000e08e
add edi, 1
cmp edi, esi
jl 0x14000dffd
or eax, 0xffffffff
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x20
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
mov eax, ebx
jmp 0x14000e077
Function at 0x14000f014
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x2040
call fcn.14001d680
sub rsp, rax
and word [rsp + 0x30], 0
mov ebx, r8d
mov rdi, rcx
mov rsi, rdx
lea r8d, [rax - 0x40]
lea rcx, [rsp + 0x32]
xor edx, edx
call sub.msvcrt.dll_memset
lea rbp, [0x140026060]
lea r9, [rsp + 0x30]
lea r8, [0x14001e908]
lea rcx, [0x140026270]
mov rdx, rdi
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], 0x1000
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [rsp + 0x30], 0
je 0x14000f090
test ebx, ebx
jne 0x14000f090
xor eax, eax
jmp 0x14000f0a6
lea rcx, [0x140026270]
mov r9, rbp
mov r8, rsi
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea r11, [rsp + 0x2040]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x14000f0d4
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x2040
call fcn.14001d680
sub rsp, rax
and word [rsp + 0x30], 0
mov rbx, rcx
mov rdi, rdx
lea rcx, [rsp + 0x32]
lea r8d, [rax - 0x40]
xor edx, edx
call sub.msvcrt.dll_memset
lea r11, [0x140026060]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], r11
lea r8, [0x14001e908]
lea rcx, [0x140026270]
mov rdx, rbx
mov dword [rsp + 0x20], 0x1000
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [rsp + 0x30], 0
je 0x14000f15f
lea rax, [rsp + 0x30]
lea rcx, [rsp + 0x30]
sub rdi, rax
movzx eax, word [rcx]
mov word [rdi + rcx], ax
add rcx, 2
test ax, ax
jne 0x14000f148
mov eax, 1
jmp 0x14000f161
xor eax, eax
mov rbx, qword [rsp + 0x2050]
add rsp, 0x2040
pop rdi
ret

Function at 0x14000f184
Capabilities:
Read .ini file

Disassembly:
push rbx
sub rsp, 0x30
and word [rdx], 0
lea rax, [0x140026060]
mov rbx, rdx
mov r9, rdx
mov qword [rsp + 0x28], rax
mov rdx, rcx
mov dword [rsp + 0x20], r8d
lea r8, [0x14001e908]
lea rcx, [0x140026270]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov rax, rbx
add rsp, 0x30
pop rbx
ret
push rbx
sub rsp, 0x20
lea r9, [0x140026060]
mov rdx, r9
sub rdx, rcx
xor ebx, ebx
movzx eax, word [rcx]
mov word [rdx + rcx], ax
add rcx, 2
cmp ax, bx
jne 0x14000f589
mov rdx, rbx
lea rcx, [0x140026270]
lea rax, str.general
movzx eax, word [rdx + rax]
mov word [rdx + rcx], ax
add rdx, 2
cmp ax, bx
jne 0x14000f5a3
lea rdx, [0x14001f4d8]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea rdx, [0x140026300]
lea rcx, str.charset
cmp eax, 1
sete bl
mov dword [0x140025f24], ebx
mov ebx, 0x3f
mov r8d, ebx
call 0x14000f184
lea rdx, [0x140026380]
lea rcx, str.TranslatorName
mov r8d, ebx
call 0x14000f184
lea rdx, [0x140026400]
lea rcx, str.TranslatorURL
mov r8d, 0xff
add rsp, 0x20
pop rbx
jmp 0x14000f184
Function at 0x14000f574
Capabilities:
Read .ini file

Disassembly:
push rbx
sub rsp, 0x30
and word [rdx], 0
lea rax, [0x140026060]
mov rbx, rdx
mov r9, rdx
mov qword [rsp + 0x28], rax
mov rdx, rcx
mov dword [rsp + 0x20], r8d
lea r8, [0x14001e908]
lea rcx, [0x140026270]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov rax, rbx
add rsp, 0x30
pop rbx
ret
push rbx
sub rsp, 0x20
lea r9, [0x140026060]
mov rdx, r9
sub rdx, rcx
xor ebx, ebx
movzx eax, word [rcx]
mov word [rdx + rcx], ax
add rcx, 2
cmp ax, bx
jne 0x14000f589
mov rdx, rbx
lea rcx, [0x140026270]
lea rax, str.general
movzx eax, word [rdx + rax]
mov word [rdx + rcx], ax
add rdx, 2
cmp ax, bx
jne 0x14000f5a3
lea rdx, [0x14001f4d8]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea rdx, [0x140026300]
lea rcx, str.charset
cmp eax, 1
sete bl
mov dword [0x140025f24], ebx
mov ebx, 0x3f
mov r8d, ebx
call 0x14000f184
lea rdx, [0x140026380]
lea rcx, str.TranslatorName
mov r8d, ebx
call 0x14000f184
lea rdx, [0x140026400]
lea rcx, str.TranslatorURL
mov r8d, 0xff
add rsp, 0x20
pop rbx
jmp 0x14000f184

Function at 0x14000fc24
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x238
and word [rsp + 0x20], 0
lea rcx, [rsp + 0x22]
xor edx, edx
mov r8d, 0x208
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x20]
call fcn.14000fbc4
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000fc67
lea rcx, [rsp + 0x20]
call fcn.14000f574
add rsp, 0x238
ret

Function at 0x140010ff8
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov rax, rdx
mov rsi, rcx
xor edx, edx
mov rcx, rax
mov rbp, r8
xor ebx, ebx
call fcn.140013204
cmp rax, 0xffffffffffffffff
mov r12, rax
je 0x140011087
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp rbp, rbx
mov edi, eax
je 0x14001103d
mov dword [rbp], eax
mov edx, dword [rsi + 8]
cmp eax, edx
jl 0x140011053
add edx, dword [rsi + 0xc]
cmp edx, eax
jle 0x140011044
mov rcx, rsi
call fcn.140010ba8
mov rdx, qword [rsi]
lea r9, [rsp + 0x68]
mov r8d, edi
mov rcx, r12
mov dword [rsp + 0x68], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
jne 0x14001107c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14001108f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret