joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401ab0
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x78
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x68], rsi
mov rsi, rdx
lea rax, [rsp + 0x58]
mov rbx, r9
mov qword [rsp + 0x60], rdi
mov rdi, r8
mov r9d, 0xf003f
mov rcx, rsi
mov rdx, rdi
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x401b95
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
mov rdx, rdi
mov qword [rsp + 0x38], rax
xor eax, eax
mov rcx, rsi
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x401b6f
mov rax, qword [rsp + 0xa8]
xor r8d, r8d
mov rdx, rbx
mov ecx, dword [rax]
mov rax, qword [rsp + 0xa0]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0xb0]
mov r9d, dword [rax]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x401bf1
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x401b7f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x70]
add rsp, 0x78
ret
mov rax, qword [rsp + 0xa8]
xor r8d, r8d
mov rdx, rbx
mov ecx, dword [rax]
mov rax, qword [rsp + 0xa0]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0xb0]
mov r9d, dword [rax]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x401bf1
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x70]
add rsp, 0x78
ret
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x70]
mov eax, 1
add rsp, 0x78
ret
Function at 0x402c80
Capabilities:
Read .ini file

Disassembly:
mov r11, rsp
sub rsp, 0x7b8
mov rax, qword [0x00417b90]
xor rax, rsp
mov qword [rsp + 0x7a0], rax
mov eax, dword [0x0041761c]
mov r9, qword [str.Common_Programs]
mov r8, qword [str.Programs]
mov qword [r11 + 0x18], rbx
lea rcx, [r11 - 0x658]
mov edx, 0x104
mov dword [rsp + 0x20], eax
mov qword [r11 + 0x20], rdi
call fcn.00407640
lea r8, [0x00418e80]
lea rcx, [rsp + 0x160]
mov edx, 0x104
call fcn.00407790
lea rcx, [rsp + 0x160]
call fcn.00407a70
xor ebx, ebx
lea rdi, [0x00418d70]
nop
lea rdx, str.Icon_03d
lea rcx, [rsp + 0x38]
mov r8d, ebx
call qword [sym.imp.USER32.dll_wsprintfA]
movzx r11d, word [0x00419714]
cmp r11w, 7
je 0x402d5b
cmp r11w, 9
je 0x402d5b
lea r9, [rsp + 0x380]
lea r8, [0x00412649]
lea rdx, [rsp + 0x38]
lea rcx, str.ShortCut
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0x100
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
jmp 0x402d89
lea r9, [rsp + 0x380]
lea r8, [0x00412649]
lea rdx, [rsp + 0x38]
lea rcx, str.ShortCutX64
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0x100
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea rcx, [rsp + 0x380]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x402f1a
lea r8, [rsp + 0x30]
lea rdx, [0x004126ac]
lea rcx, [rsp + 0x380]
call fcn.00409ba0
test rax, rax
je 0x402f12
lea rcx, [rsp + 0x690]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rdx, [rsp + 0x160]
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea r8, [rsp + 0x690]
lea rcx, [rsp + 0x270]
mov edx, 0x104
call fcn.00407790
lea rdx, str..lnk
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea r8, [rsp + 0x30]
lea rdx, [0x004126ac]
xor ecx, ecx
call fcn.00409ba0
test rax, rax
je 0x402f12
lea rcx, [rsp + 0x480]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea r8, [rsp + 0x30]
lea rdx, [0x004126ac]
xor ecx, ecx
call fcn.00409ba0
test rax, rax
jne 0x402e87
lea rdx, [0x00418c60]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea r8, [rsp + 0x480]
lea rcx, [rsp + 0x50]
mov edx, 0x104
call fcn.00407790
jmp 0x402eb7
mov r9d, dword [0x0041761c]
lea rcx, [rsp + 0x50]
mov r8, rax
mov edx, 0x104
call fcn.00407970
lea r8, [rsp + 0x480]
lea rcx, [rsp + 0x50]
mov edx, 0x104
call fcn.00407790
lea r8, [rsp + 0x30]
lea rdx, [0x004126ac]
xor ecx, ecx
call fcn.00409ba0
test rax, rax
jne 0x402ed8
mov byte [rsp + 0x590], al
jmp 0x402ee9
lea rcx, [rsp + 0x590]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea r9, [0x00412649]
lea r8, [rsp + 0x590]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x270]
mov dword [rsp + 0x20], 5
call fcn.00402ad0
add ebx, 1
jmp 0x402d00
mov rdi, qword [rsp + 0x7d8]
mov rbx, qword [rsp + 0x7d0]
mov eax, 1
mov rcx, qword [rsp + 0x7a0]
xor rcx, rsp
call fcn.00409d20
add rsp, 0x7b8
ret
Function at 0x403cf0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x40
lea rax, [rsp + 0x68]
mov rbx, r8
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x34]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x68], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403d3f
cmp dword [rsp + 0x30], 4
jne 0x403d3f
mov eax, dword [rsp + 0x34]
mov dword [rbx], eax
mov eax, 1
add rsp, 0x40
pop rbx
ret
xor eax, eax
add rsp, 0x40
pop rbx
ret

Function at 0x403d50
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x18], r8d
sub rsp, 0x38
lea rax, [rsp + 0x50]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
add rsp, 0x38
ret
Function at 0x404920
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x170
mov rax, qword [0x00417b90]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rbx, rcx
mov r9, rdx
lea r8, str.SystemCurrentControlSetControlPrintMonitors
lea rdx, str._s_s
lea rcx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_wsprintfA]
lea r11, [rsp + 0x58]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], r11
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
lea rdx, [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4049e2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [rsp + 0x50]
lea rdx, str.InstallPath
mov dword [rsp + 0x28], eax
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x4049e4
xor eax, eax
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.00409d20
add rsp, 0x170
pop rbx
ret

Function at 0x404a00
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x170
mov rax, qword [0x00417b90]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rbx, rcx
mov r9, rdx
lea r8, str.SystemCurrentControlSetControlPrintMonitors
lea rdx, str._s_s
lea rcx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_wsprintfA]
lea r11, [rsp + 0x58]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], r11
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
lea rdx, [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x404ac2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [rsp + 0x50]
lea rdx, str.HostName
mov dword [rsp + 0x28], eax
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x404ac4
xor eax, eax
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.00409d20
add rsp, 0x170
pop rbx
ret
Function at 0x405390
Capabilities:
Read .ini file

Disassembly:
mov r11, rsp
sub rsp, 0x4a8
mov rax, qword [0x00417b90]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov qword [r11 + 0x10], rbp
xor ebp, ebp
cmp qword [str.JCPRIWEL_01], rbp
je 0x40557d
mov qword [r11 + 8], rbx
mov qword [r11 - 8], r12
mov qword [r11 - 0x10], r13
mov qword [r11 + 0x18], rsi
mov rax, rbp
lea rbx, str.JCPRIWEL_01
mov qword [r11 + 0x20], rdi
lea r12, [0x00400000]
lea r13, [0x00419440]
nop
nop
movsxd rcx, dword [rax + r12 + 0x179d0]
mov edx, dword [rax + r12 + 0x179d4]
mov rcx, qword [r12 + rcx*8 + 0x19108]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rdx, qword [rbx]
mov rcx, 0xffffffffffffffff
mov rsi, rax
xor eax, eax
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
cmp rcx, 1
je 0x40551c
cmp byte [rdx], 0x40
jne 0x40549f
lea rcx, [rsp + 0x80]
add rdx, 1
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea r8, [rsp + 0x30]
lea rdx, [0x00412c98]
lea rcx, [rsp + 0x80]
call fcn.00409ba0
lea r8, [rsp + 0x30]
lea rdx, [0x00412c98]
xor ecx, ecx
mov rdi, rax
call fcn.00409ba0
lea r9, [rsp + 0x80]
lea r8, [0x00412649]
mov rcx, rdi
mov rdx, rax
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], 0x400
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
jmp 0x4054dd
lea rdx, [rsp + 0x40]
mov r8d, 0x40
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetClassNameA]
mov rdx, qword [rbx]
lea r9, [rsp + 0x80]
lea r8, [0x00412649]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], 0x400
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [rsp + 0x80], 0
lea rax, [rsp + 0x80]
je 0x40550b
nop
cmp byte [rax], 0x5c
jne 0x405502
cmp byte [rax + 1], 0x6e
jne 0x405502
mov byte [rax], 0x20
mov byte [rax + 1], 0xa
add rax, 1
cmp byte [rax], 0
jne 0x4054f0
lea rdx, [rsp + 0x80]
mov rcx, rsi
call qword [sym.imp.USER32.dll_SetWindowTextA]
mov r8, qword [0x004195d0]
xor r9d, r9d
mov rcx, rsi
lea edx, [r9 + 0x30]
call qword [sym.imp.USER32.dll_SendMessageA]
add rbp, 1
mov rax, rbp
shl rax, 4
cmp qword [rax + r12 + 0x179d8], 0
lea rbx, [rax + r12 + 0x179d8]
jne 0x4053f0
mov r13, qword [rsp + 0x498]
mov r12, qword [rsp + 0x4a0]
mov rdi, qword [rsp + 0x4c8]
mov rsi, qword [rsp + 0x4c0]
mov rbx, qword [rsp + 0x4b0]
mov rbp, qword [rsp + 0x4b8]
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.00409d20
add rsp, 0x4a8
ret
Function at 0x4072a0
Capabilities:
Read .ini file

Disassembly:
mov r11, rsp
sub rsp, 0x268
mov rax, qword [0x00417b90]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov qword [r11 - 8], rbx
mov rbx, qword [rsp + 0x290]
mov qword [r11 - 0x10], rbp
mov qword [r11 - 0x18], rsi
mov rax, r9
mov rsi, r8
mov qword [rsp + 0x28], rdx
mov qword [r11 - 0x20], rdi
mov rbp, rcx
mov rdi, rdx
lea r8, [0x00412649]
lea r9, [r11 - 0x138]
mov rcx, rsi
mov rdx, rax
mov dword [rsp + 0x20], 0x100
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea r9, [rsp + 0x30]
lea r8, [0x00412649]
mov rdx, rbx
mov rcx, rsi
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0x100
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov r9d, dword [rsp + 0x298]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x130]
mov rcx, rbp
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rdi, qword [rsp + 0x248]
mov rsi, qword [rsp + 0x250]
mov rbp, qword [rsp + 0x258]
mov rbx, qword [rsp + 0x260]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.00409d20
add rsp, 0x268
ret

Function at 0x407390
Capabilities:
Read .ini file

Disassembly:
mov r11, rsp
sub rsp, 0x268
mov rax, qword [0x00417b90]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov qword [r11 - 8], rbx
mov rbx, qword [rsp + 0x298]
mov qword [r11 - 0x10], rbp
mov qword [r11 - 0x18], rsi
mov qword [r11 - 0x20], rdi
mov rdi, qword [rsp + 0x290]
mov qword [r11 - 0x28], r12
mov rbp, r9
mov r12, r8
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rbp
mov byte [rsp + 0x30], 0
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x407423
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x407423
lea r9, [rsp + 0x30]
lea r8, [0x00412649]
mov rdx, rdi
mov rcx, rbp
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], 0x200
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test rbx, rbx
mov r12, qword [rsp + 0x240]
mov rdi, qword [rsp + 0x248]
mov rbp, qword [rsp + 0x258]
je 0x407453
xor r9d, r9d
mov r8, rbx
mov rcx, rsi
lea edx, [r9 + 0x30]
call qword [sym.imp.USER32.dll_SendMessageA]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rbx, qword [rsp + 0x260]
test eax, eax
jle 0x407491
cmp byte [rsp + 0x30], 0
lea rax, [rsp + 0x30]
je 0x407491
cmp byte [rax], 0x5c
jne 0x407488
cmp byte [rax + 1], 0x6e
jne 0x407488
mov byte [rax], 0x20
mov byte [rax + 1], 0xa
add rax, 1
cmp byte [rax], 0
jne 0x407476
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.USER32.dll_SetWindowTextA]
mov rsi, qword [rsp + 0x250]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.00409d20
add rsp, 0x268
ret

Function at 0x4074f0
Capabilities:
Get graphical window text

Disassembly:
sub rsp, 0x28
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rdi
mov rdi, r8
mov ebx, r9d
call qword [sym.imp.USER32.dll_GetDlgItem]
mov r8d, ebx
mov rcx, rax
mov rdx, rdi
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
add rsp, 0x28
jmp qword [sym.imp.USER32.dll_GetWindowTextA]
Function at 0x4075a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x60], rbx
mov rbx, rcx
mov qword [rsp + 0x68], rdi
mov edi, edx
mov rdx, qword [str.SoftwareMicrosoftWindowsCurrentVersion]
lea r8, [rsp + 0x38]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x407624
mov rdx, qword [str.ProgramFilesDir]
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x30], edi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x407624
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rdi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
add rsp, 0x48
ret
mov rdi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
xor eax, eax
add rsp, 0x48
ret

Function at 0x407640
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub rsp, 0x68
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x50], rsi
test r8, r8
mov rsi, r8
mov rbp, r9
cmove rsi, qword [str.Programs]
test r9, r9
mov qword [rsp + 0x48], rdi
cmove rbp, qword [str.Common_Programs]
mov edi, edx
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x4076fd
cmp dword [rsp + 0x90], 0
je 0x4076fd
mov rdx, qword [str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders]
lea r8, [rsp + 0x30]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x407766
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x80]
lea r9, [rsp + 0x88]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rbp
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x80], edi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x407766
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
jmp 0x407768
mov rdx, qword [str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders]
lea r8, [rsp + 0x30]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x407766
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x80]
lea r9, [rsp + 0x88]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x80], edi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x407766
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
jmp 0x407768
xor eax, eax
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
add rsp, 0x68
ret
Function at 0x407970
Capabilities:
Get common file path

Disassembly:
mov r11, rsp
sub rsp, 0x388
mov rax, qword [0x00417b90]
xor rax, rsp
mov qword [rsp + 0x360], rax
mov qword [r11 - 8], rbx
mov qword [r11 - 0x10], rdi
mov rdx, r8
mov rdi, rcx
mov ebx, r9d
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rcx, [rsp + 0x140]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea rcx, [rsp + 0x30]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov r9, qword [str.Startup]
mov r8, qword [str.Startup]
lea rcx, [rsp + 0x250]
mov edx, 0x104
mov dword [rsp + 0x20], ebx
call fcn.00407640
lea r8, [rsp + 0x140]
lea rdx, str._SYSTEMDIR
mov rcx, rdi
call fcn.00407880
lea r8, [rsp + 0x30]
lea rdx, str._WINDOWSDIR
mov rcx, rdi
call fcn.00407880
lea r8, [0x004195e8]
lea rdx, str._LANGDIR
mov rcx, rdi
call fcn.00407880
lea r8, [rsp + 0x250]
lea rdx, str._STARTUPDIR
mov rcx, rdi
call fcn.00407880
mov rdi, qword [rsp + 0x378]
mov rbx, qword [rsp + 0x380]
mov eax, 1
mov rcx, qword [rsp + 0x360]
xor rcx, rsp
call fcn.00409d20
add rsp, 0x388
ret

Function at 0x407a70
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x140
mov rax, qword [0x00417b90]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rdx, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp byte [rsp + 0x20], 0
lea rbx, [rsp + 0x20]
je 0x407ad8
movsx ecx, byte [rbx]
call fcn.0040aa60
test eax, eax
je 0x407ab7
add rbx, 1
jmp 0x407acf
cmp byte [rbx], 0x5c
jne 0x407acf
lea rcx, [rsp + 0x20]
xor edx, edx
mov byte [rbx], 0
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [rbx], 0x5c
add rbx, 1
cmp byte [rbx], 0
jne 0x407aa5
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.00409d20
add rsp, 0x140
pop rbx
ret
Function at 0x407b00
Capabilities:
Read .ini file

Disassembly:
mov r11, rsp
sub rsp, 0x188
mov rax, qword [0x00417b90]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov qword [r11 - 8], rbx
mov qword [r11 - 0x10], rbp
mov qword [r11 - 0x18], rsi
mov qword [r11 - 0x20], rdi
mov rdi, rcx
mov rbp, r8
mov rsi, rdx
mov qword [r11 - 0x28], r12
lea rcx, [rsp + 0x30]
xor r8d, r8d
mov rdx, r9
mov r12, r9
xor ebx, ebx
call qword [sym.imp.USER32.dll_wsprintfA]
lea r9, [rsp + 0x50]
lea r8, [0x00412649]
lea rdx, [rsp + 0x30]
mov rcx, rbp
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], 0x100
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x407c06
nop
nop
lea rax, [rsp + 0x50]
mov r8, rdi
sub r8, rax
nop
nop
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x407bb4
add rax, 1
test ecx, ecx
jne 0x407ba0
test edx, edx
je 0x407c4b
add ebx, 1
lea rcx, [rsp + 0x30]
mov rdx, r12
mov r8d, ebx
call qword [sym.imp.USER32.dll_wsprintfA]
lea r9, [rsp + 0x50]
lea r8, [0x00412649]
lea rdx, [rsp + 0x30]
mov rcx, rbp
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], 0x100
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jg 0x407b90
mov eax, 0xffffffff
mov r12, qword [rsp + 0x160]
mov rdi, qword [rsp + 0x168]
mov rsi, qword [rsp + 0x170]
mov rbp, qword [rsp + 0x178]
mov rbx, qword [rsp + 0x180]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.00409d20
add rsp, 0x188
ret
mov eax, ebx
jmp 0x407c0b
Function at 0x408830
Capabilities:
Get file size
Read file on windows

Disassembly:
sub rsp, 0x58
mov rax, rdx
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbp
mov rbp, rcx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, rax
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
mov rbx, rax
je 0x4088f4
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x78], rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov edi, eax
je 0x4088e6
lea ecx, [rax + 1]
mov qword [rsp + 0x70], rsi
movsxd rdx, ecx
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
test rax, rax
mov rsi, rax
je 0x4088e1
lea r9, [rsp + 0x40]
mov r8d, edi
mov rdx, rax
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.USER32.dll_SetWindowTextA]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rsi, qword [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
add rsp, 0x58
ret

Function at 0x4089c0
Capabilities:
Get disk information

Disassembly:
mov r11, rsp
sub rsp, 0x1d8
mov rax, qword [0x00417b90]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
movzx eax, word [0x00412f18]
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
mov rsi, rcx
lea rcx, [r11 - 0x128]
mov qword [r11 - 8], rdi
mov word [rcx], ax
movzx eax, byte [0x00412f1a]
xor edi, edi
mov byte [rcx + 2], al
xor eax, eax
cmp rdx, 0xffffffffffff0000
mov word [rsp + 0xb3], ax
mov rbx, rdx
je 0x408a54
test rdx, rdx
je 0x408a54
mov qword [rsp + 0x28], rdx
lea r9, [rsp + 0x20]
xor r8d, r8d
mov edx, 0x110c
mov rcx, rsi
mov dword [rsp + 0x20], 8
call qword [sym.imp.USER32.dll_SendMessageA]
test byte [rsp + 0x30], 0x40
je 0x408a54
xor eax, eax
jmp 0x408b5e
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], 0xffffffffffff0003
mov dword [rsp + 0x70], 0x63
mov qword [rsp + 0x78], rdi
mov dword [rsp + 0x9c], 1
mov dword [rsp + 0x98], 2
mov dword [rsp + 0x94], 3
mov byte [rsp + 0xb0], 0x41
nop
nop
lea r8, [rsp + 0xb0]
lea rdx, [0x00412f14]
lea rcx, [rsp + 0xc0]
call qword [sym.imp.USER32.dll_wsprintfA]
lea rcx, [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x408b0e
lea rax, [rsp + 0xb0]
lea rcx, [rsp + 0xb0]
mov qword [rsp + 0x88], rax
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea r9, [rsp + 0x60]
xor r8d, r8d
mov edx, 0x1100
mov rcx, rsi
mov dword [rsp + 0x90], eax
call qword [sym.imp.USER32.dll_SendMessageA]
add edi, 1
movzx eax, byte [rsp + 0xb0]
add al, 1
cmp al, 0x5a
mov byte [rsp + 0xb0], al
jle 0x408aa0
cmp rbx, 0xffffffffffff0000
je 0x408b5c
test rbx, rbx
je 0x408b5c
lea r9, [rsp + 0x20]
xor r8d, r8d
mov edx, 0x110d
mov rcx, rsi
mov dword [rsp + 0x20], 0x40
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x4c], edi
call qword [sym.imp.USER32.dll_SendMessageA]
mov eax, edi
mov rdi, qword [rsp + 0x1d0]
mov rsi, qword [rsp + 0x1f8]
mov rbx, qword [rsp + 0x1f0]
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.00409d20
add rsp, 0x1d8
ret