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

Disassembly:
push 0xffffffffffffffff
push 0x4209e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov eax, dword [0x429874]
push ebx
push ebp
push esi
mov dword [esp + 0x30], eax
push edi
mov esi, ecx
xor ebx, ebx
push 0x37
mov ebp, 0xf
push str.SYSTEMCurrentControlSetServicesEventLogApplication_
lea ecx, [esp + 0x20]
mov dword [esp + 0x48], 1
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
call fcn.00401480
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x4c], 2
call fcn.00410dd0
mov eax, dword [esp + 0x30]
mov edi, 0x10
cmp eax, edi
mov eax, dword [esp + 0x1c]
jae 0x412455
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push ebx
push 0x20006
push ebx
push ebx
push ebx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4124c8
cmp dword [esp + 0x30], edi
jb 0x41248b
mov eax, dword [esp + 0x1c]
push eax
call fcn.0041a20d
add esp, 4
cmp dword [esp + 0x60], edi
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
jb 0x4124aa
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.0041a20d
add esp, 4
cmp dword [esp + 0x7c], edi
jb 0x412562
mov edx, dword [esp + 0x68]
push edx
call fcn.0041a20d
add esp, 4
xor al, al
jmp 0x4125db
cmp dword [esp + 0x7c], edi
mov eax, dword [esp + 0x68]
jae 0x4124d6
lea eax, [esp + 0x68]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ecx
push eax
push 2
push ebx
push str.EventMessageFile
push edx
call ebp
test eax, eax
jne 0x41250e
mov edx, dword [esp + 0x10]
push 4
lea ecx, [esi + 0x38]
push ecx
push 4
push ebx
push str.TypesSupported
push edx
call ebp
test eax, eax
je 0x412566
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x30], edi
jb 0x41252c
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0041a20d
add esp, 4
cmp dword [esp + 0x60], edi
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
jb 0x41254f
mov edx, dword [esp + 0x4c]
push edx
call fcn.0041a20d
add esp, 4
cmp dword [esp + 0x7c], edi
jb 0x412562
mov eax, dword [esp + 0x68]
push eax
call fcn.0041a20d
add esp, 4
xor al, al
jmp 0x4125db
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x50]
push edx
mov ecx, esi
call fcn.00401390
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x6c]
push eax
lea ecx, [esi + 0x1c]
call fcn.00401390
cmp dword [esp + 0x30], edi
jb 0x4125a3
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0041a20d
add esp, 4
cmp dword [esp + 0x60], edi
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
jb 0x4125c6
mov edx, dword [esp + 0x4c]
push edx
call fcn.0041a20d
add esp, 4
cmp dword [esp + 0x7c], edi
jb 0x4125d9
mov eax, dword [esp + 0x68]
push eax
call fcn.0041a20d
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x28]
pop ebx
call fcn.0040612e
add esp, 0x34
ret 0x38