Function at 0x412860
Capabilities:
Enumerate pe sections
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x520
mov eax, dword [0x452040]
xor eax, esp
mov dword [esp + 0x51c], eax
movzx eax, word [ecx + 0xe]
push esi
push edi
push eax
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xa]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 6]
push eax
movzx eax, word [ecx + 4]
push eax
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
lea eax, [esp + 0xc0]
mov dword [esp + 0x34], 0
push str._04x_04x__04x__04x__04x__04x_04x_04x
push eax
call fcn.004015f0
lea eax, [esp + 0xc8]
push eax
lea eax, [esp + 0x14c]
push str.Interface_s
push eax
call fcn.004015f0
add esp, 0x34
lea eax, [esp + 0xa0]
push 0x80
push 0
push eax
call fcn.00420da0
add esp, 0xc
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
lea eax, [esp + 0x12c]
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41292f
mov eax, 6
pop edi
pop esi
mov ecx, dword [esp + 0x51c]
xor ecx, esp
call fcn.0041f127
mov esp, ebp
pop ebp
ret 8
push dword [esp + 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x124]
push eax
push closesocket
call esi
test eax, eax
jne 0x412b2a
push dword [esp + 8]
call edi
lea eax, [esp + 0x120]
dec eax
nop dword [eax + eax]
mov cl, byte [eax + 1]
lea eax, [eax + 1]
test cl, cl
jne 0x412970
mov ecx, dword [str.ProxyStubClsid32]
mov dword [eax], ecx
mov ecx, dword [0x44e710]
mov dword [eax + 4], ecx
mov ecx, dword [0x44e714]
mov dword [eax + 8], ecx
mov ecx, dword [0x44e718]
mov dword [eax + 0xc], ecx
mov cx, word [0x44e71c]
mov word [eax + 0x10], cx
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x124]
push eax
push closesocket
call esi
test eax, eax
jne 0x412b2a
push 0x400
push eax
lea eax, [esp + 0x128]
push eax
call fcn.00420da0
add esp, 0xc
push 0
call fcn.0042f7a5
add esp, 4
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x1c], edx
push eax
call fcn.0042feb0
add esp, 4
mov edx, dword [eax + 0x10]
mov ecx, dword [eax + 0x14]
inc edx
push dword [eax + 0xc]
add ecx, 0x76c
call fcn.004167d0
add esp, 4
mov dword [esp + 0xc], 6
lea edx, [esp + 0xc]
lea ecx, [esp + 0x18]
lea esi, [eax + 0x1e]
mov dword [esp + 0x10], esi
call fcn.004132b0
push 4
lea edx, [esp + 0x14]
or ecx, 0xffffffff
call fcn.004168a0
add esp, 4
lea edx, [esp + 0x18]
mov ecx, eax
push 6
call fcn.004168a0
add esp, 4
lea edx, [esp + 0x14]
mov ecx, eax
push 4
call fcn.004168a0
movzx ecx, ax
add esp, 4
shr eax, 0x10
push 0x3bdc
push ecx
push eax
movzx eax, byte [esp + 0x28]
shl ax, 8
movzx ecx, ax
movzx eax, byte [esp + 0x29]
or ecx, eax
movzx eax, byte [esp + 0x26]
push ecx
shl ax, 8
movzx ecx, ax
movzx eax, byte [esp + 0x2b]
or ecx, eax
movzx eax, byte [esp + 0x28]
push ecx
shl ax, 8
movzx ecx, ax
movzx eax, byte [esp + 0x2d]
or ecx, eax
movzx eax, si
push ecx
push eax
sar esi, 0x10
movzx eax, si
push eax
lea eax, [esp + 0x40]
push str._04x_04x__04x__04x__04x__04x_04x_04x
push eax
call fcn.004015f0
lea ecx, [esp + 0x48]
add esp, 0x28
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x412ad0
sub ecx, edx
lea eax, [esp + 0x20]
push ecx
push eax
push 1
push 0
push 0
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0x80
mov esi, eax
lea eax, [esp + 0x24]
push 0
push eax
call fcn.00420da0
add esp, 0xc
push dword [esp + 8]
call edi
neg esi
sbb esi, esi
and esi, 9
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x51c]
xor ecx, esp
call fcn.0041f127
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esp + 0x524]
mov eax, 7
pop edi
pop esi
xor ecx, esp
call fcn.0041f127
mov esp, ebp
pop ebp
ret 8