Function at 0x451150
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d5558
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x511070]
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
mov ebx, ecx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xc8], esi
mov dword [ebp - 0xb8], edi
lea ecx, [ebp - 0xb4]
mov dword [ebp - 4], 0
mov eax, dword [esi]
push ecx
push 0
push 0
push 0
push esi
mov dword [ebp - 0xb4], 0
call dword [eax + 0x2c]
test eax, eax
js 0x45152f
mov dword [ebp - 0xb0], 0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0xb4]
test eax, eax
je 0x451564
nop word [eax + eax]
mov ecx, dword [eax]
lea edx, [ebp - 0xa0]
push 0
push edx
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x45151b
mov eax, dword [ebp - 0x9c]
sub eax, 1
je 0x4513aa
sub eax, 1
jne 0x451385
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 5
push ecx
push 0
push 0x10
push 0
push dword [ebp - 0xa0]
mov dword [ebp - 0xac], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x10]
mov eax, dword [ebp - 0xac]
test eax, eax
je 0x451564
mov ecx, dword [eax]
lea edx, [ebp - 0x58]
push 1
push edx
push eax
call dword [ecx + 0x30]
test eax, eax
js 0x451507
mov eax, dword [ebp - 0xac]
test eax, eax
je 0x451564
mov ecx, dword [eax]
push 0
push 0
push 0
push 0
push eax
call dword [ecx + 0x14]
test eax, eax
js 0x451507
mov edi, dword [ebp - 0x50]
push edi
mov dword [ebp - 0xbc], edi
call fcn.004a47b7
mov esi, eax
add esp, 4
mov dword [ebp - 0xcc], esi
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0xac]
test eax, eax
je 0x451564
mov ecx, dword [eax]
lea edx, [ebp - 0xbc]
push edx
push edi
push esi
push eax
call dword [ecx + 0xc]
test eax, eax
js 0x4514fa
push 0
lea eax, [ebp - 0xa4]
mov dword [ebx + 0x18], 1
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push dword [ebp - 0xb8]
mov dword [ebp - 0xa4], 0
push reloc.WS2_32.dll_closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x45133c
cmp dword [ebx + 0x14], eax
je 0x45132f
mov eax, dword [ebp - 0xa4]
test eax, eax
je 0x451335
push edi
push esi
push 3
push 0
push dword [ebp - 0xa0]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x45132f
mov eax, dword [ebp - 0xa4]
mov ecx, 1
mov dword [ebx + 0x14], ecx
jmp 0x451349
mov eax, dword [ebp - 0xa4]
xor ecx, ecx
mov dword [ebx + 0x14], ecx
jmp 0x451349
mov eax, dword [ebp - 0xa4]
mov dword [ebx + 0x14], 0
test eax, eax
je 0x451354
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0xa4], 0
test esi, esi
je 0x45136b
push esi
call fcn.004a47b2
add esp, 4
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0xac]
test eax, eax
je 0x45137f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edi, dword [ebp - 0xb8]
push dword [ebp - 0xa0]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp - 0xb4]
test eax, eax
je 0x451564
mov esi, dword [ebp - 0xc8]
jmp 0x4511e0
mov eax, dword [ebp - 0xb0]
test eax, eax
je 0x4513ba
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi]
lea ecx, [ebp - 0xb0]
push ecx
push 0
push 0
push 0x12
push 0
push dword [ebp - 0xa0]
mov dword [ebp - 0xb0], 0
push esi
call dword [eax + 0x18]
test eax, eax
js 0x45151b
push edi
lea ecx, [ebp - 0xa8]
call fcn.0041c9e0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0xa8]
cmp dword [eax - 0xc], 0
je 0x45148d
push str.0s
lea edx, [ebp - 0xa8]
lea ecx, [ebp - 0xc4]
call fcn.0041c030
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xc0]
push dword [ebp - 0xa0]
mov edx, eax
call fcn.0041c030
add esp, 8
push eax
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 4
call fcn.0041c740
mov byte [ebp - 4], 3
or eax, 0xffffffff
mov edx, dword [ebp - 0xc0]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x451469
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov edx, dword [ebp - 0xc4]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4514bc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4514bc
mov edx, dword [ebp - 0xa0]
test edx, edx
jne 0x45149b
xor eax, eax
jmp 0x4514af
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4514a0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0xa8]
call fcn.0041cd40
push dword [ebp - 0xa8]
mov ecx, ebx
push dword [ebp - 0xb0]
call fcn.00451150
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov edx, dword [ebp - 0xa8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x451385
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x451385
test esi, esi
je 0x451507
push esi
call fcn.004a47b2
add esp, 4
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0xac]
test eax, eax
je 0x45151b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0xb0]
test eax, eax
je 0x45152f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xb4]
test eax, eax
je 0x451546
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
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.004a474b
mov esp, ebp
pop ebp
ret 8
push 0x80004003
call fcn.004a57b0
int3