Function at 0x402c90
Capabilities:
Create thread
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x588
push ebx
push esi
push edi
mov ecx, 0x16
mov esi, str.http_ProxyServer_ProxyEnable_SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
lea edi, [esp + 0x490]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0x2a
xor eax, eax
lea edi, [esp + 0x4eb]
xor ebx, ebx
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x85]
mov byte [esp + 0x84], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x289]
mov byte [esp + 0x288], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x18]
mov dword [0x408820], ebx
push eax
push 0x20019
push ebx
push 0x408818
push 0x80000003
mov dword [esp + 0x28], 0xff
mov dword [esp + 0x24], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40307e
mov eax, dword [esp + 0x18]
push ebp
push ebx
push ebx
push ebx
lea ecx, [esp + 0x20]
push ebx
lea edx, [esp + 0x3a0]
push ecx
push edx
push ebx
push eax
mov dword [esp + 0x40], 1
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x403051
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x494]
lea edx, [esp + 0x28c]
push ecx
push edx
call ebp
lea eax, [esp + 0x28c]
push 0x40
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x403021
lea ecx, [esi + 1]
lea edx, [esp + 0x24]
push ecx
push edx
call ebp
lea eax, [esp + 0x24]
lea ecx, [esp + 0x390]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
lea eax, [esp + 0x390]
push edx
push 0x20019
push ebx
push eax
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x402dfe
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], 0x104
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x403021
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x18d]
mov byte [esp + 0x18c], bl
rep stosd dword es:[edi], eax
lea edx, [esp + 0x28c]
push 0x40
stosw word es:[edi], ax
push edx
mov byte [esi], bl
call dword [sym.imp.MSVCRT.dll_strrchr]
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x403021
lea eax, [esi + 1]
lea ecx, [esp + 0x24]
push eax
push ecx
call ebp
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x18]
lea eax, [esp + 0x18c]
push edx
push eax
mov byte [esi], bl
mov edx, dword [esp + 0x18]
push ebx
lea ecx, [esp + 0x30]
push ebx
push ecx
push edx
call edi
test eax, eax
je 0x402e80
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], 0x104
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x403021
mov ecx, dword [esp + 0x18c]
mov eax, 1
cmp ecx, eax
jne 0x403006
lea ecx, [esp + 0x28c]
push 0x40
push ecx
mov dword [0x408820], eax
mov dword [esp + 0x20], 0xff
call dword [sym.imp.MSVCRT.dll_strrchr]
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x403021
lea edx, [esi + 1]
lea eax, [esp + 0x24]
push edx
push eax
call ebp
lea ecx, [esp + 0x18]
lea edx, [esp + 0x18c]
push ecx
push edx
mov byte [esi], bl
mov ecx, dword [esp + 0x18]
push ebx
lea eax, [esp + 0x30]
push ebx
push eax
push ecx
call edi
test eax, eax
je 0x402f02
mov edx, dword [esp + 0x10]
mov dword [esp + 0x14], 0x104
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x403021
lea eax, [esp + 0x28c]
lea ecx, [esp + 0x18c]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_strstr]
mov edi, eax
add esp, 8
cmp edi, ebx
je 0x402f87
mov al, byte [edi + 5]
xor esi, esi
cmp al, 0x3a
je 0x402f3a
mov byte [esp + esi + 0x88], al
mov al, byte [edi + esi + 6]
inc esi
cmp al, 0x3a
jne 0x402f2a
lea edx, [esp + 0x88]
mov byte [esp + esi + 0x88], bl
push edx
push 0x408824
call ebp
mov dl, byte [edi + esi + 6]
lea eax, [edi + esi + 6]
xor ecx, ecx
cmp dl, 0x3b
je 0x402f76
cmp dl, bl
je 0x402f76
mov dl, byte [eax]
mov byte [esp + ecx + 0x88], dl
mov dl, byte [eax + 1]
inc ecx
inc eax
cmp dl, 0x3b
jne 0x402f5f
lea eax, [esp + 0x88]
mov byte [esp + ecx + 0x88], bl
push eax
jmp 0x402ff8
mov al, byte [esp + 0x18c]
xor esi, esi
cmp al, 0x3a
je 0x402fa7
mov byte [esp + esi + 0x88], al
mov al, byte [esp + esi + 0x18d]
inc esi
cmp al, 0x3a
jne 0x402f94
lea ecx, [esp + 0x88]
mov byte [esp + esi + 0x88], bl
push ecx
push 0x408824
call ebp
mov cl, byte [esp + esi + 0x18d]
lea eax, [esp + esi + 0x18d]
xor edx, edx
cmp cl, 0x3b
je 0x402fe9
cmp cl, bl
je 0x402fe9
mov cl, byte [eax]
mov byte [esp + edx + 0x88], cl
mov cl, byte [eax + 1]
inc edx
inc eax
cmp cl, 0x3b
jne 0x402fd2
mov byte [esp + edx + 0x88], bl
lea edx, [esp + 0x88]
push edx
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [0x408844], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], 0x104
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x408820], ebx
jne 0x403051
mov ecx, dword [esp + 0x20]
push ebx
mov eax, ecx
inc ecx
mov dword [esp + 0x24], ecx
push ebx
push ebx
lea ecx, [esp + 0x20]
push ebx
lea edx, [esp + 0x3a0]
push ecx
push edx
push eax
mov eax, dword [esp + 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x402d77
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x408820]
pop ebp
cmp eax, ebx
je 0x40307e
cmp dword [0x408768], ebx
je 0x40307e
push ebx
push ebx
push ebx
push 0x4054e0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
pop ebx
add esp, 0x588
ret