joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140030580
Capabilities:
Check if file exists
Get common file path
Get startup folder

Disassembly:
sub rsp, 0x878
mov rax, qword [0x14029e8b8]
xor rax, rsp
mov qword [rsp + 0x860], rax
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.1401afc90
mov r9d, 1
lea rdx, [rsp + 0x20]
xor ecx, ecx
lea r8d, [r9 + 0x18]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor edx, edx
lea rcx, [rsp + 0x230]
mov r8d, 0x208
call fcn.1401afc90
lea r8, str.TabX_Explorer.lnk
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x230]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
lea rcx, [rsp + 0x230]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140030692
xor edx, edx
lea rcx, [rsp + 0x440]
mov r8d, 0x208
call fcn.1401afc90
mov r9d, 1
lea rdx, [rsp + 0x440]
xor ecx, ecx
lea r8d, [r9 + 0xf]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor edx, edx
lea rcx, [rsp + 0x650]
mov r8d, 0x208
call fcn.1401afc90
lea r8, str.TabX_Explorer.lnk
lea rdx, [rsp + 0x440]
lea rcx, [rsp + 0x650]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
lea rcx, [rsp + 0x650]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140030692
mov rcx, qword [rsp + 0x860]
xor rcx, rsp
call fcn.140160a40
add rsp, 0x878
ret
mov al, 1
mov rcx, qword [rsp + 0x860]
xor rcx, rsp
call fcn.140160a40
add rsp, 0x878
ret
Function at 0x140031110
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x14029e8b8]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor edx, edx
mov rsi, rcx
xor dil, dil
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400311a0
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x140031197
nop word [rax + rax]
mov rdx, rsi
lea rcx, [rsp + 0x4c]
call fcn.1401b6550
test eax, eax
je 0x140031194
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x140031170
jmp 0x140031197
mov dil, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, dil
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140160a40
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x1400311d0
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor edx, edx
mov rcx, rbx
mov edi, eax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r8d, 1
mov ecx, edi
mov edx, eax
mov ebx, eax
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov rcx, rsi
call qword [sym.imp.USER32.dll_SetForegroundWindow]
mov rcx, rsi
call qword [sym.imp.USER32.dll_BringWindowToTop]
xor r8d, r8d
mov edx, ebx
mov ecx, edi
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov rbx, qword [rsp + 0x30]
mov eax, 1
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140031260
Capabilities:
Get file size
Read file on windows

Disassembly:
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x80
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rsp + 0xc0], rbx
mov rax, qword [0x14029e8b8]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov r12, rdx
mov qword [rsp + 0x48], rdx
xor bl, bl
mov byte [rsp + 0x40], bl
cmp qword [rcx + 0x18], 0x10
jb 0x1400312a8
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
mov qword [rsp + 0x50], rax
cmp rax, 0xffffffffffffffff
jne 0x1400312e8
xor al, al
jmp 0x140031380
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r14d, eax
cmp eax, 0xffffffff
je 0x140031374
test eax, eax
jne 0x140031303
mov bl, 1
jmp 0x140031374
lea rdx, [0x1402b83a0]
mov rcx, r14
call fcn.140160c44
mov rdi, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x140031374
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x68]
mov r8d, r14d
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14003136c
cmp dword [rsp + 0x68], r14d
jne 0x14003136c
mov r8, r14
mov rdx, rdi
mov rcx, r12
call fcn.14000d6b0
mov bl, 1
mov byte [rsp + 0x40], bl
jmp 0x14003136c
mov rcx, rdi
call fcn.1401606e8
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, bl
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140160a40
mov rbx, qword [rsp + 0xc0]
add rsp, 0x80
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x1400313b0
Capabilities:
Check if file exists
Clear file content
Get file attributes
Set file attributes
Write file on windows

Disassembly:
mov r11, rsp
push rbx
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x14029e8b8]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov qword [r11 + 0x18], rbp
xor dil, dil
mov qword [r11 - 0x28], r13
mov rbx, rcx
mov qword [r11 - 0x30], r14
mov r14, rdx
mov qword [r11 - 0x38], r15
xor r15b, r15b
cmp qword [rcx + 0x18], 0x10
jb 0x1400313ef
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp eax, 0xffffffff
je 0x14003141d
test sil, 1
je 0x14003141d
cmp qword [rbx + 0x18], 0x10
mov r15b, 1
mov rcx, rbx
jb 0x140031412
mov rcx, qword [rbx]
mov edx, esi
and edx, 0xfffffffe
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp qword [rbx + 0x18], 0x10
mov rcx, rbx
jb 0x14003142a
mov rcx, qword [rbx]
mov qword [rsp + 0x30], 0
mov r13d, 1
mov r8d, r13d
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov dword [rsp + 0x20], 4
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x1400314bf
mov rcx, rax
mov qword [rsp + 0x68], r12
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp qword [r14 + 0x18], 0x10
lea r12, [r14 + 0x10]
jb 0x14003147f
mov r14, qword [r14]
mov r8d, dword [r12]
lea r9, [rsp + 0x40]
mov rdx, r14
mov qword [rsp + 0x20], 0
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400314b1
mov eax, dword [rsp + 0x40]
cmp qword [r12], rax
movzx edi, dil
cmove edi, r13d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r12, qword [rsp + 0x68]
mov r14, qword [rsp + 0x58]
test r15b, r15b
mov r15, qword [rsp + 0x50]
mov r13, qword [rsp + 0x60]
mov rbp, qword [rsp + 0xa0]
je 0x1400314f0
cmp qword [rbx + 0x18], 0x10
jb 0x1400314e5
mov rbx, qword [rbx]
mov edx, esi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
movzx eax, dil
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140160a40
add rsp, 0x70
pop rdi
pop rsi
pop rbx
ret

Function at 0x140032a50
Capabilities:
Check if file exists
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x14029e8b8]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rdx
mov qword [rsp + 0x20], rcx
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call fcn.1401afc90
xor r9d, r9d
lea rdx, [rsp + 0x30]
xor ecx, ecx
lea r8d, [r9 + 0x1a]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov rdx, qword [rbx]
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140032aca
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectory]
xor eax, eax
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rax
mov r8, 0xffffffffffffffff
mov word [rdi], ax
lea rax, [rsp + 0x30]
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140032af0
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.14000d810
mov rax, rdi
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140160a40
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
Function at 0x140032b30
Capabilities:
Check if file exists
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x14029e8b8]
xor rax, rsp
mov qword [rsp + 0x260], rax
cmp word [0x1402b7c10], 0
mov rsi, rcx
mov qword [rsp + 0x40], rcx
je 0x140032b90
xor ebp, ebp
mov qword [rcx + 0x18], 7
mov qword [rcx + 0x10], rbp
lea rdi, [0x1402b7c10]
mov word [rcx], bp
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rdi + rbx*2], bp
jne 0x140032b82
jmp 0x140032cbc
movaps xmmword [rsp + 0x270], xmm6
lea rcx, [rsp + 0x50]
movups xmm6, xmmword [rdx]
xor edx, edx
mov r8d, 0x208
call fcn.1401afc90
xor r9d, r9d
lea rdx, [rsp + 0x50]
xor ecx, ecx
lea r8d, [r9 + 0x1a]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
movq rdx, xmm6
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
movaps xmm6, xmmword [rsp + 0x270]
test eax, eax
jne 0x140032bf5
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectory]
movdqa xmm0, xmmword [0x1401f5800]
lea rax, [rsp + 0x50]
xor ebp, ebp
mov rbx, 0xffffffffffffffff
movdqu xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x20], bp
mov r8, rbx
nop dword [rax]
inc r8
cmp word [rax + r8*2], bp
jne 0x140032c20
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x20]
call fcn.14000d810
cmp qword [rsp + 0x38], 8
lea rdx, [rsp + 0x20]
lea rdi, [0x1402b7c10]
cmovae rdx, qword [rsp + 0x20]
lea r8, str.data.json
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x140032c9f
mov rcx, qword [rsp + 0x20]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140032c9a
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140032ced
call fcn.1401606e8
mov qword [rsi + 0x10], rbp
mov qword [rsi + 0x18], 7
mov word [rsi], bp
nop
inc rbx
cmp word [rdi + rbx*2], bp
jne 0x140032cb0
mov rcx, rsi
mov r8, rbx
mov rdx, rdi
call fcn.14000d810
mov rax, rsi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140160a40
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
call fcn.1401b3260
int3
Function at 0x140032fe0
Capabilities:
Get file system object information

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x550
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x580], rbx
mov rax, qword [0x14029e8b8]
xor rax, rsp
mov qword [rsp + 0x540], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x60], rcx
xor ebp, ebp
mov dword [rsp + 0x30], ebp
mov qword [rcx + 0x10], rbp
mov qword [rcx + 0x18], 7
mov word [rcx], bp
mov dword [rsp + 0x30], 1
xor edx, edx
mov r8d, 0x2b8
lea rcx, [rsp + 0x70]
call fcn.1401afc90
mov dword [rsp + 0x20], 0x208
mov r9d, 0x2b8
lea r8, [rsp + 0x70]
mov edx, 0xffffffff
mov rcx, rsi
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
lea rbx, [rbp - 1]
test eax, eax
js 0x14003309b
lea rax, [rsp + 0x80]
mov r8, rbx
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140033080
lea rdx, [rsp + 0x80]
mov rcx, rdi
call fcn.14000d810
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x330]
call fcn.1401afc90
lea rdx, [rsp + 0x330]
mov rcx, rsi
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], 7
mov word [rsp + 0x38], bp
lea rax, [rsp + 0x330]
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1400330e0
mov r8, rbx
lea rdx, [rsp + 0x330]
lea rcx, [rsp + 0x38]
call fcn.14000d810
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.140038710
mov rax, rdi
mov rcx, qword [rsp + 0x540]
xor rcx, rsp
call fcn.140160a40
mov rbx, qword [rsp + 0x580]
add rsp, 0x550
pop rdi
pop rsi
pop rbp
ret
Function at 0x140033ce0
Capabilities:
Check if file exists
Get common file path
Read .ini file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x480
mov rax, qword [0x14029e8b8]
xor rax, rsp
mov qword [rsp + 0x470], rax
xor edx, edx
lea rcx, [rsp + 0x260]
mov r8d, 0x208
call fcn.1401afc90
xor ebx, ebx
lea rsi, [0x1402b7a00]
cmp word [0x1402b7a00], bx
lea rdi, [rbx - 1]
jne 0x140033e31
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x208
call fcn.1401afc90
xor r9d, r9d
lea r8d, [rbx + 0x1a]
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea rdx, [0x1401f5368]
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140033d87
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectory]
movdqa xmm0, xmmword [0x1401f5800]
lea rax, [rsp + 0x50]
movdqu xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x30], bx
mov r8, rdi
inc r8
cmp word [rax + r8*2], bx
jne 0x140033da2
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.14000d810
cmp qword [rsp + 0x48], 8
lea rdx, [rsp + 0x30]
lea r8, [0x1401fa690]
mov rcx, rsi
cmovae rdx, qword [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x140033e1e
mov rcx, qword [rsp + 0x30]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140033e19
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140033eeb
call fcn.1401606e8
movdqa xmm0, xmmword [0x1401f5800]
movdqu xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x30], bx
mov qword [rsp + 0x28], rsi
lea r9, [rsp + 0x260]
lea r8, [0x1401f8430]
mov dword [rsp + 0x20], 0x104
lea rdx, [0x1401fb4a8]
lea rcx, str.update
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rcx, [rsp + 0x260]
lea rdx, str.TabxUpdate
movzx eax, word [rcx + rdi*2 + 2]
cmp ax, word [rdx + rdi*2 + 2]
jne 0x140033e90
add rdi, 2
cmp rdi, 0xb
je 0x140033ec0
movzx eax, word [rcx + rdi*2]
cmp ax, word [rdx + rdi*2]
je 0x140033e70
lea rcx, [rsp + 0x260]
lea rdx, str.bigupdate
nop
movzx eax, word [rcx + rbx*2]
cmp ax, word [rdx + rbx*2]
jne 0x140033ec4
movzx eax, word [rcx + rbx*2 + 2]
cmp ax, word [rdx + rbx*2 + 2]
jne 0x140033ec4
add rbx, 2
cmp rbx, 0xa
jne 0x140033ea0
mov al, 1
jmp 0x140033ec6
xor al, al
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140160a40
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
call fcn.1401b3260
int3

Function at 0x1400344d0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jne 0x1400344eb
shr ax, 8
cmp al, 1
jne 0x1400344eb
add rsp, 0x28
ret
xor al, al
add rsp, 0x28
ret
Function at 0x1400385c0
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x14029e8b8]
xor rax, rsp
mov qword [rsp + 0x70], rax
movdqa xmm0, xmmword [0x1401f5800]
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionThemesPersonalize
xor ebx, ebx
lea rcx, [rsp + 0x50]
movdqu xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x50], bx
lea r8d, [rbx + 0x3c]
call fcn.14000d810
cmp qword [rsp + 0x68], 8
lea rax, [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x20], rax
cmovae rdx, qword [rsp + 0x50]
mov r9d, 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400386a4
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x48]
mov dword [rsp + 0x28], 4
lea r9d, [rbx + 4]
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.AppsUseLightTheme
mov dword [rsp + 0x48], 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x30], rbx
lea r9, str.Environment
mov dword [rsp + 0x28], 0x3e8
lea edx, [rbx + 0x1a]
xor r8d, r8d
mov dword [rsp + 0x20], 2
mov ecx, 0xffff
call qword [sym.imp.USER32.dll_SendMessageTimeoutW]
mov bl, 1
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x1400386e2
mov rcx, qword [rsp + 0x50]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400386dd
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400386fb
call fcn.1401606e8
movzx eax, bl
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140160a40
add rsp, 0x80
pop rbx
ret
call fcn.1401b3260
int3

Function at 0x140038c30
Capabilities:
Create process on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0xa0
mov rax, qword [0x14029e8b8]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rdi, rdx
mov rbx, r8
xor edx, edx
mov rsi, rcx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x70]
call fcn.1401afc90
mov rax, qword [rbx]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x40], rax
mov rax, qword [rdi]
mov qword [rsp + 0x38], rax
mov rax, qword [rsi]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x20], 0x70
mov dword [rsp + 0x50], 1
mov dword [rsp + 0x24], 0x100
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
setne al
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140160a40
add rsp, 0xa0
pop rdi
pop rsi
pop rbx
ret
Function at 0x14003c260
Capabilities:
Read .ini file

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xe8]
sub rsp, 0x1e8
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x14029e8b8]
xor rax, rsp
mov qword [rbp + 0xd0], rax
mov r14, r9
mov rsi, r8
mov r12, rdx
mov rdi, rcx
mov rbx, qword [rbp + 0x150]
xor r13d, r13d
mov dword [rsp + 0x58], r13d
xor r15b, r15b
xor edx, edx
mov r8d, 0x80
lea rcx, [rbp + 0x50]
call fcn.1401afc90
mov rax, qword [rdi]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], SHGetSetSettings
lea r9, [rbp + 0x50]
mov r8, r14
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [rbp + 0x50], r13w
je 0x14003c422
xor edx, edx
mov r8d, 0xf0
lea rcx, [rsp + 0x60]
call fcn.1401afc90
movdqa xmm0, xmmword [0x1401f5800]
movdqu xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x30], r13w
lea rax, [rbp + 0x50]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r13w
jne 0x14003c324
lea rdx, [rbp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.14000d810
nop
lea rax, [0x1401fc6d0]
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x58], 1
lea rax, vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp - 0x10], rax
mov dword [rbp - 0x14], 0x78
mov qword [rsp + 0x68], r13
xor r8d, r8d
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x10]
call fcn.140043690
nop
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_istringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rsp + rcx + 0x60], rax
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x90]
mov dword [rsp + rcx + 0x5c], edx
mov r8d, 1
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x70]
call fcn.14003d690
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x14003c3f6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003c3f1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003c449
call fcn.1401606e8
mov eax, dword [r12]
mov dword [rsp + 0x58], eax
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x60]
call fcn.14003cb50
mov eax, dword [rsp + 0x58]
mov dword [r12], eax
mov r15b, 1
lea rcx, [rsp + 0x60]
call fcn.14003db40
movzx eax, r15b
mov rcx, qword [rbp + 0xd0]
xor rcx, rsp
call fcn.140160a40
add rsp, 0x1e8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.1401b3260
nop
int3
Function at 0x14003c450
Capabilities:
Read .ini file

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xe8]
sub rsp, 0x1e8
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x14029e8b8]
xor rax, rsp
mov qword [rbp + 0xd0], rax
mov r14, r9
mov rsi, r8
mov r12, rdx
mov rdi, rcx
mov rbx, qword [rbp + 0x150]
xor r13d, r13d
mov dword [rsp + 0x30], r13d
xor r15b, r15b
xor edx, edx
mov r8d, 0x80
lea rcx, [rbp + 0x50]
call fcn.1401afc90
mov rax, qword [rdi]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], SHGetSetSettings
lea r9, [rbp + 0x50]
mov r8, r14
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [rbp + 0x50], r13w
je 0x14003c600
xor edx, edx
mov r8d, 0xf0
lea rcx, [rsp + 0x60]
call fcn.1401afc90
movdqa xmm0, xmmword [0x1401f5800]
movdqu xmmword [rsp + 0x48], xmm0
mov word [rsp + 0x38], r13w
lea rax, [rbp + 0x50]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r13w
jne 0x14003c514
lea rdx, [rbp + 0x50]
lea rcx, [rsp + 0x38]
call fcn.14000d810
nop
lea rax, [0x1401fc6d0]
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x30], 1
lea rax, vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp - 0x10], rax
mov dword [rbp - 0x14], 0x78
mov qword [rsp + 0x68], r13
xor r8d, r8d
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x10]
call fcn.140043690
nop
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_istringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rsp + rcx + 0x60], rax
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x90]
mov dword [rsp + rcx + 0x5c], edx
mov r8d, 1
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x70]
call fcn.14003d690
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x14003c5e6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003c5e1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003c627
call fcn.1401606e8
mov rdx, r12
lea rcx, [rsp + 0x60]
call fcn.14003cd00
mov r15b, 1
lea rcx, [rsp + 0x60]
call fcn.14003db40
movzx eax, r15b
mov rcx, qword [rbp + 0xd0]
xor rcx, rsp
call fcn.140160a40
add rsp, 0x1e8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.1401b3260
nop
int3
Function at 0x14003c630
Capabilities:
Check if file exists

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x160
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x14029e8b8]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rbp, r9
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
mov rcx, qword [rcx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14003c682
mov rcx, rbx
call fcn.14003ded0
xor edx, edx
mov r8d, 0xf8
lea rcx, [rsp + 0x50]
call fcn.1401afc90
mov edx, 3
lea r8d, [rdx - 2]
lea rcx, [rsp + 0x50]
call fcn.14003d870
nop
mov edx, dword [rdi]
lea rcx, [rsp + 0x60]
call fcn.14002dd50
mov rbx, qword [rbx]
movdqa xmm0, xmmword [0x1401f5800]
movdqu xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x28], r14w
mov dword [rsp + 0x20], 2
mov rcx, qword [rsp + 0xd8]
test cl, 2
jne 0x14003c711
mov rax, qword [rsp + 0xa8]
mov r8, qword [rax]
test r8, r8
je 0x14003c711
mov rax, qword [rsp + 0x88]
mov rdx, qword [rax]
cmp r8, qword [rsp + 0xd0]
cmovb r8, qword [rsp + 0xd0]
sub r8, rdx
jmp 0x14003c745
test cl, 4
jne 0x14003c753
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rax]
test rcx, rcx
je 0x14003c753
mov rax, qword [rsp + 0x80]
mov rdx, qword [rax]
mov rax, qword [rsp + 0xb8]
movsxd r8, dword [rax]
add r8, r8
sub r8, rdx
add r8, rcx
sar r8, 1
lea rcx, [rsp + 0x28]
call fcn.14000d810
nop
lea r8, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae r8, qword [rsp + 0x28]
mov r9, rbx
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x14003c7b2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003c7ac
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003c7da
call fcn.1401606e8
nop
lea rcx, [rsp + 0x50]
call fcn.14003dbe0
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140160a40
add rsp, 0x160
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.1401b3260
nop