Function at 0x40fd06
Capabilities:
Get hostname
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xcc0
mov eax, dword [0x41f024]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x234]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0xc4c], eax
push ecx
mov ecx, eax
call fcn.004118e0
test eax, eax
js 0x41001e
xor ecx, ecx
inc ecx
call fcn.0040a807
push 0x5c
pop eax
cmp word [ebp - 0x234], ax
jne 0x40fd62
lea edi, [ebp - 0x230]
cmp word [ebp - 0x232], ax
je 0x40fd68
lea edi, [ebp - 0x234]
push edi
call dword [sym.imp.USER32.dll_CharLowerW]
push 1
push edi
call dword [sym.imp.USER32.dll_CharUpperBuffW]
lea eax, [ebp - 0xc44]
mov dword [ebp - 0xc44], 0x10
push eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x40fdb0
lea eax, [ebp - 0x28]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40fdb0
mov ebx, 0x99
jmp 0x40fff8
push 0
push 0
push 0x110a
push dword [esi + 0x60]
mov dword [ebp - 0xcbc], 0x15
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, eax
mov dword [ebp - 0xca8], 0x104
lea eax, [ebp - 0x43c]
mov dword [ebp - 0xc40], ebx
mov dword [ebp - 0xcb8], ebx
push ebx
mov dword [ebp - 0xcac], eax
mov ebx, 0x110a
jmp 0x40fe30
lea eax, [ebp - 0xcbc]
push eax
push 0
push 0x113e
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x43c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40fe77
js 0x40fe46
mov eax, dword [ebp - 0xcb8]
mov dword [ebp - 0xc40], eax
push eax
push 1
push ebx
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0xcb8], eax
test eax, eax
jne 0x40fdf8
lea eax, [ebp - 0xc48]
push eax
push reloc.COMCTL32.dll_MenuHelp
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
xor ebx, ebx
test eax, eax
je 0x40fe92
cmp eax, 5
sete bl
lea ebx, [ebx*2 + 0x9a]
jmp 0x40fff8
push dword [ebp - 0xcb8]
push 9
push 0x110b
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x41001e
mov eax, dword [ebp - 0xc40]
and dword [ebp - 0xc68], ebx
mov dword [ebp - 0xc90], eax
xor eax, eax
inc eax
mov dword [ebp - 0xc94], 0xffff0000
mov dword [ebp - 0xc74], eax
mov dword [ebp - 0xc70], eax
mov dword [ebp - 0xc6c], eax
lea eax, [ebp - 0xc94]
push eax
push 0
push 0x1132
push dword [esi + 0x60]
mov dword [ebp - 0xc8c], 0x67
mov dword [ebp - 0xc7c], edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0xc94], eax
xor edi, edi
mov dword [ebp - 0xc74], 2
mov dword [ebp - 0xc70], 3
imul ecx, edi, 0xc
mov eax, dword [ecx + 0x401248]
mov dword [ebp - 0xc7c], eax
cmp edi, 2
jne 0x40ff28
mov eax, dword [ebp - 0xc48]
mov dword [ebp - 0xc68], eax
jmp 0x40ff61
cmp edi, 1
je 0x40ff98
cmp edi, 4
je 0x40ff98
test edi, edi
je 0x40ff98
lea eax, [ebp - 0xc68]
push eax
push dword [ecx + 0x40124c]
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
test eax, eax
je 0x40ff5b
mov ebx, 0x9b
jmp 0x40ff98
mov eax, dword [ebp - 0xc68]
push 0x400
lea ecx, [ebp - 0xc3c]
push ecx
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0xc6c], eax
lea eax, [ebp - 0xc94]
push eax
push 0
push 0x1132
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
inc edi
cmp edi, 5
jb 0x40ff06
push dword [ebp - 0xc94]
push 2
push 0x1102
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [ebp - 0xc94]
push 0
push 0x1114
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
xor ecx, ecx
call fcn.0040a807
push dword [ebp - 0xc94]
push 9
push 0x110b
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_SetFocus]
test ebx, ebx
je 0x41001e
lea eax, [ebp - 0x234]
push eax
push 0x10
push 0x98
movzx eax, bx
push eax
push dword [ebp - 0xc4c]
push dword [0x41fe14]
call fcn.0040fa08
add esp, 0x18
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041dc30
leave
ret 4