Function at 0x402e90
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41e5a7
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x274
mov eax, dword [0x428008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x270], 0
mov dword [ebp - 0x26c], 7
mov word [ebp - 0x280], ax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x238]
push 4
push str..ime
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
call fcn.004047d0
push 0x401fd0
sub esp, 8
mov byte [ebp - 4], 1
lea edx, [ebp - 0x238]
lea ecx, [ebp - 0x280]
call fcn.00401540
mov byte [ebp - 4], 0
add esp, 0xc
mov edx, dword [ebp - 0x224]
mov esi, eax
cmp edx, 8
jb 0x402f7f
mov ecx, dword [ebp - 0x238]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402f75
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4033dd
push edx
push ecx
call fcn.00407b35
add esp, 8
mov eax, dword [0x429638]
test al, 1
jne 0x402f9a
or eax, 1
mov dword [0x429518], 0
mov dword [0x429638], eax
mov eax, dword [0x429520]
test eax, eax
je 0x403056
cmp eax, 6
ja 0x402fc1
jb 0x403056
cmp dword [0x429524], 1
ja 0x402fc1
jb 0x403056
push 4
xor eax, eax
mov dword [ebp - 0x228], 0
push str..dll
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
call fcn.004047d0
push 0x402a40
sub esp, 8
mov byte [ebp - 4], 2
lea edx, [ebp - 0x238]
lea ecx, [ebp - 0x280]
call fcn.00401540
mov byte [ebp - 4], 0
add esp, 0xc
mov edx, dword [ebp - 0x224]
add esi, eax
cmp edx, 8
jb 0x403056
mov ecx, dword [ebp - 0x238]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40304c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4033e2
push edx
push ecx
call fcn.00407b35
add esp, 8
push 0
lea eax, [ebp - 0x284]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareGSoSoftGSoInput
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jle 0x40308a
movzx eax, ax
or eax, 0x80070000
test eax, eax
jns 0x403096
mov esi, 1
jmp 0x403382
cmp dword [ebp - 0x26c], 8
lea ecx, [ebp - 0x220]
push 0
push 0
push 0
push 0
push 0x100
push ecx
push 3
lea ecx, [ebp - 0x1c]
lea eax, [ebp - 0x280]
cmovae eax, dword [ebp - 0x280]
push ecx
push eax
call fcn.0040cc33
add esp, 0x24
mov dword [ebp - 0x228], 0
xor eax, eax
mov dword [ebp - 0x224], 7
lea ecx, [ebp - 0x1c]
mov word [ebp - 0x238], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4030f0
sub ecx, edx
lea eax, [ebp - 0x1c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x238]
call fcn.004047d0
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x238]
call fcn.00404370
mov dword [ebp - 0x240], 0
xor ecx, ecx
mov dword [ebp - 0x23c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x250], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x240], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x224]
cmp edx, 8
jb 0x4031a7
mov ecx, dword [ebp - 0x238]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40319d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4033e7
push edx
push ecx
call fcn.00407b35
add esp, 8
mov ecx, dword [ebp - 0x240]
xor eax, eax
dec ecx
mov word [ebp - 0x238], ax
cmp dword [ebp - 0x23c], 8
lea eax, [ebp - 0x250]
mov dword [ebp - 0x240], ecx
cmovae eax, dword [ebp - 0x250]
xor edx, edx
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 7
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x250]
mov eax, dword [ebp - 0x240]
cmp dword [ebp - 0x23c], 8
cmovae ecx, dword [ebp - 0x250]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push edx
push str.WeaselRoot
push dword [ebp - 0x284]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jle 0x403230
movzx eax, ax
or eax, 0x80070000
test eax, eax
jns 0x40323c
mov esi, 1
jmp 0x403325
push 0x12
xor eax, eax
mov dword [ebp - 0x258], 0
push str.GSoInputServer.exe
lea ecx, [ebp - 0x268]
mov dword [ebp - 0x254], 7
mov word [ebp - 0x268], ax
call fcn.004047d0
mov eax, dword [ebp - 0x258]
lea ecx, [ebp - 0x268]
cmp dword [ebp - 0x254], 8
cmovae ecx, dword [ebp - 0x268]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push 0
push str.ServerExecutable
push dword [ebp - 0x284]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jle 0x4032b1
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x4032c3
push dword [ebp - 0x284]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x4032c8
mov esi, 1
mov edx, dword [ebp - 0x254]
cmp edx, 8
jb 0x403308
mov ecx, dword [ebp - 0x268]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4032fe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4033ec
push edx
push ecx
call fcn.00407b35
add esp, 8
xor eax, eax
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x254], 7
mov word [ebp - 0x268], ax
mov edx, dword [ebp - 0x23c]
cmp edx, 8
jb 0x403365
mov ecx, dword [ebp - 0x250]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40335b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4033f1
push edx
push ecx
call fcn.00407b35
add esp, 8
xor eax, eax
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 7
mov word [ebp - 0x250], ax
mov edx, dword [ebp - 0x26c]
cmp edx, 8
jb 0x4033be
mov ecx, dword [ebp - 0x280]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4033b4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4033f6
push edx
push ecx
call fcn.00407b35
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00407b24
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0040b64f
call fcn.0040b64f
call fcn.0040b64f
call fcn.0040b64f
call fcn.0040b64f
call fcn.0040b64f
int3