Function at 0x424200
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x463920
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x478ec8]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
lea eax, [esp + 0x14]
push eax
push 0x2001f
xor ebx, ebx
push ebx
push str.SYSTEMCurrentControlSetServicesEventLogApplication_
push closesocket
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x424485
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x42447a
mov esi, dword [esp + 0x4c]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esp + 0x18]
add eax, 1
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 1
push ebx
push str.EventMessageFile
push edx
call esi
test eax, eax
jne 0x4242c6
mov ecx, dword [esp + 0x18]
push 4
lea eax, [esp + 0x54]
push eax
push 4
push ebx
push str.TypesSupported
push ecx
call esi
test eax, eax
mov dword [esp + 0x1c], 1
je 0x4242ca
mov dword [esp + 0x1c], ebx
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
push str.Sources
lea ecx, [esp + 0x24]
mov dword [esp + 0x44], ebx
call fcn.00417f60
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x24]
push ecx
push edx
mov byte [esp + 0x4c], 1
call fcn.004240a0
mov esi, eax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 0xc
mov byte [esp + 0x40], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x424335
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, ebx
je 0x424448
mov edi, dword [esp + 0x2c]
xor esi, esi
cmp edi, dword [esp + 0x30]
jbe 0x424350
call fcn.00441c3e
mov edi, edi
mov ebp, dword [esp + 0x30]
cmp dword [esp + 0x2c], ebp
jbe 0x42435f
call fcn.00441c3e
cmp edi, ebp
je 0x4243ad
cmp esi, ebx
jne 0x424448
cmp edi, dword [esp + 0x30]
jb 0x424376
call fcn.00441c3e
mov ecx, dword [esp + 0x48]
cmp ecx, ebx
je 0x4243a3
mov eax, dword [edi]
push ecx
push eax
call fcn.00441057
add esp, 8
mov esi, eax
neg esi
sbb esi, esi
add esi, 1
cmp edi, dword [esp + 0x30]
jb 0x42439e
call fcn.00441c3e
add edi, 4
jmp 0x424350
push 0x80004005
call fcn.00401580
cmp esi, ebx
jne 0x424448
mov ecx, dword [esp + 0x48]
push ecx
lea ecx, [esp + 0x24]
call fcn.00417f60
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x44], 2
call fcn.00415d30
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x40], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4243fa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.Sources
lea ecx, [esp + 0x24]
call fcn.00417f60
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x24]
push edx
push eax
mov byte [esp + 0x4c], 3
call fcn.00423e00
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 0xc
mov byte [esp + 0x40], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x424448
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
cmp eax, ebx
mov dword [esp + 0x40], 0xffffffff
je 0x42447a
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x2c]
push edx
push ecx
push eax
call fcn.00416830
mov edx, dword [esp + 0x3c]
push edx
call fcn.00440ac8
add esp, 0x14
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret