Function at 0x4043d0
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x298
mov rax, qword [0x00417b90]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov r9, rcx
lea r8, str.SystemCurrentControlSetControlPrintMonitors
lea rdx, str._s_sPorts
lea rcx, [rsp + 0x180]
mov qword [rsp + 0x2b0], rsi
call qword [sym.imp.USER32.dll_wsprintfA]
lea r11, [rsp + 0x60]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], r11
mov qword [rsp + 0x38], rax
xor esi, esi
mov qword [rsp + 0x30], rsi
lea rdx, [rsp + 0x180]
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4048ed
cmp dword [0x004190f8], esi
mov qword [rsp + 0x2b8], rdi
mov edi, esi
jle 0x4048da
mov qword [rsp + 0x2a8], rbx
mov rbx, rsi
nop
nop
mov rdx, qword [0x004190f0]
lea rcx, [rsp + 0x70]
mov rdx, qword [rbx + rdx]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
mov rcx, qword [rsp + 0x58]
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov rcx, qword [rsp + 0x58]
lea r11, [rsp + 0x60]
mov qword [rsp + 0x40], r11
lea rax, [rsp + 0x50]
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4048bf
mov rax, qword [0x004190f0]
lea rdx, str.PrintMode
mov rcx, qword [rbx + rax]
mov r8d, dword [rcx + 0x104]
mov rcx, qword [rsp + 0x50]
call fcn.00403d50
mov r11, qword [0x004190f0]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rbx + r11]
lea rdx, str.CmdTmout
mov r8d, dword [rax + 0x108]
call fcn.00403d50
mov r11, qword [0x004190f0]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rbx + r11]
lea rdx, str.DatTmout
mov r8d, dword [rax + 0x10c]
call fcn.00403d50
mov r11, qword [0x004190f0]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rbx + r11]
lea rdx, str.NonSpool
mov r8d, dword [rax + 0x380]
call fcn.00403d50
mov r11, qword [0x004190f0]
mov rax, qword [rbx + r11]
cmp dword [rax + 0x104], esi
jne 0x404671
mov r8d, dword [rax + 0x110]
mov rcx, qword [rsp + 0x50]
lea rdx, str.PortNum
call fcn.00403d50
mov r11, qword [0x004190f0]
mov rcx, qword [rbx + r11]
add rcx, 0x128
je 0x404600
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [0x004190f0]
mov r9d, 1
mov rdx, qword [rbx + rcx]
mov rcx, qword [rsp + 0x50]
mov dword [rsp + 0x28], eax
add rdx, 0x128
xor r8d, r8d
mov qword [rsp + 0x20], rdx
lea rdx, str.HostName
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov r11, qword [0x004190f0]
mov rcx, qword [rbx + r11]
add rcx, 0x169
je 0x404650
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [0x004190f0]
mov r9d, 1
mov rdx, qword [rbx + rcx]
mov rcx, qword [rsp + 0x50]
mov dword [rsp + 0x28], eax
add rdx, 0x169
xor r8d, r8d
mov qword [rsp + 0x20], rdx
lea rdx, str.PortName
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov r11, qword [0x004190f0]
mov rax, qword [rbx + r11]
mov rcx, qword [rsp + 0x50]
lea rdx, str.UseSCPorts
mov r8d, dword [rax + 0x384]
call fcn.00403d50
jmp 0x4048b4
mov r8d, dword [rax + 0x114]
mov rcx, qword [rsp + 0x50]
lea rdx, str.BASE64
call fcn.00403d50
mov r11, qword [0x004190f0]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rbx + r11]
lea rdx, str.Chunked
mov r8d, dword [rax + 0x118]
call fcn.00403d50
mov r11, qword [0x004190f0]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rbx + r11]
lea rdx, str.MaxChunk
mov r8d, dword [rax + 0x11c]
call fcn.00403d50
mov r11, qword [0x004190f0]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rbx + r11]
lea rdx, str.ProxyNum
mov r8d, dword [rax + 0x120]
call fcn.00403d50
mov r11, qword [0x004190f0]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rbx + r11]
lea rdx, str.UseProxy
mov r8d, dword [rax + 0x124]
call fcn.00403d50
mov r11, qword [0x004190f0]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rbx + r11]
lea rdx, str.JobSheets
mov r8d, dword [rax + 0x388]
call fcn.00403d50
mov r11, qword [0x004190f0]
mov rcx, qword [rbx + r11]
add rcx, 0x18a
je 0x40478f
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [0x004190f0]
mov r9d, 1
mov rdx, qword [rbx + rcx]
mov rcx, qword [rsp + 0x50]
mov dword [rsp + 0x28], eax
add rdx, 0x18a
xor r8d, r8d
mov qword [rsp + 0x20], rdx
lea rdx, str.Language
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov r11, qword [0x004190f0]
mov rcx, qword [rbx + r11]
add rcx, 0x193
je 0x4047df
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [0x004190f0]
mov r9d, 1
mov rdx, qword [rbx + rcx]
mov rcx, qword [rsp + 0x50]
mov dword [rsp + 0x28], eax
add rdx, 0x193
xor r8d, r8d
mov qword [rsp + 0x20], rdx
lea rdx, str.ProxyName
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov r11, qword [0x004190f0]
mov rcx, qword [rbx + r11]
add rcx, 0x298
je 0x40482f
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [0x004190f0]
mov r9d, 1
mov rdx, qword [rbx + rcx]
mov rcx, qword [rsp + 0x50]
mov dword [rsp + 0x28], eax
add rdx, 0x298
xor r8d, r8d
mov qword [rsp + 0x20], rdx
lea rdx, [0x0041296c]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov r11, qword [0x004190f0]
mov rcx, qword [rbx + r11]
add rcx, 0x2f9
je 0x40487f
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [0x004190f0]
mov r9d, 1
mov rdx, qword [rbx + rcx]
mov rcx, qword [rsp + 0x50]
mov dword [rsp + 0x28], eax
add rdx, 0x2f9
xor r8d, r8d
mov qword [rsp + 0x20], rdx
lea rdx, str.UserName
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov r11, qword [0x004190f0]
mov rax, qword [rbx + r11]
lea rdx, str.PassWord
mov r9d, 3
lea rcx, [rax + 0x33a]
mov eax, dword [rax + 0x37c]
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add edi, 1
add rbx, 8
cmp edi, dword [0x004190f8]
jl 0x404480
mov rbx, qword [rsp + 0x2a8]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x2b8]
mov eax, 1
mov rsi, qword [rsp + 0x2b0]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.00409d20
add rsp, 0x298
ret