Function at 0x45f9b0
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x485f50]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x128], ecx
mov eax, dword [str.SYSTEMCurrentControlSetServicesEventLogApplication_]
push eax
lea ecx, [ebp - 0x110]
push ecx
call fcn.0043c650
add esp, 8
mov edx, dword [ebp - 0x128]
mov eax, dword [edx + 4]
push eax
lea ecx, [ebp - 0x110]
push ecx
call fcn.0043c660
add esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x110]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x45fa6f
mov ecx, dword [ebp + 8]
push ecx
call fcn.0043c770
add esp, 4
add eax, 1
push eax
mov edx, dword [ebp + 8]
push edx
push 2
push 0
push str.EventMessageFile
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 8], eax
push 4
lea ecx, [ebp + 0xc]
push ecx
push 4
push 0
push str.TypesSupported
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 4]
push ecx
push 0xf003f
push 0
mov edx, dword [str.SYSTEMCurrentControlSetServicesEventLogApplication_]
push edx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x45fbed
lea eax, [ebp - 0x114]
push eax
push 0
push 0
push 0
push 0x476158
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x45fbe3
mov edx, dword [ebp - 0x128]
mov eax, dword [edx + 4]
push eax
call fcn.0043c770
add esp, 4
mov ecx, dword [ebp - 0x114]
lea edx, [ecx + eax + 1]
mov dword [ebp - 0x11c], edx
mov eax, dword [ebp - 0x11c]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x120], eax
lea ecx, [ebp - 0x114]
push ecx
mov edx, dword [ebp - 0x120]
push edx
lea eax, [ebp - 0x118]
push eax
push 0
push 0x476160
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x45fbd6
mov edx, dword [ebp - 0x120]
mov dword [ebp - 0x124], edx
jmp 0x45fb59
mov eax, dword [ebp - 0x124]
push eax
call fcn.0043c770
add esp, 4
mov ecx, dword [ebp - 0x124]
lea edx, [ecx + eax + 1]
mov dword [ebp - 0x124], edx
mov eax, dword [ebp - 0x124]
movsx ecx, byte [eax]
test ecx, ecx
je 0x45fb87
mov edx, dword [ebp - 0x128]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x124]
push ecx
call fcn.004091c0
add esp, 8
test eax, eax
jne 0x45fb85
jmp 0x45fb87
jmp 0x45fb3a
mov edx, dword [ebp - 0x124]
movsx eax, byte [edx]
test eax, eax
jne 0x45fbd6
mov ecx, dword [ebp - 0x128]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp - 0x124]
push eax
call fcn.0043c650
add esp, 8
mov ecx, dword [ebp - 0x11c]
push ecx
mov edx, dword [ebp - 0x120]
push edx
mov eax, dword [ebp - 0x118]
push eax
push 0
push 0x476168
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0x120]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0043c3a4
mov esp, ebp
pop ebp
ret 8