Function at 0x4232c0
Capabilities:
Access peb ldr_data
Get hostname
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x42a207
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x20], esi
lea ebp, [esi + 8]
mov ecx, ebp
call sub.MFC42.DLL_CString::CString_1
lea edi, [esi + 0x18]
xor ebx, ebx
mov ecx, edi
mov dword [esp + 0x12c], ebx
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x1c]
mov byte [esp + 0x12c], 1
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x24]
mov byte [esp + 0x12c], 2
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x30]
mov byte [esp + 0x12c], 3
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x34]
mov byte [esp + 0x12c], 4
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x38]
mov byte [esp + 0x12c], 5
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x40]
mov byte [esp + 0x12c], 6
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x94]
mov byte [esp + 0x12c], 7
call sub.MFC42.DLL_CString::CString_1
mov al, byte [esp + 0x17]
push 0xc
mov byte [esp + 0x130], 8
mov byte [esi + 0x9c], al
call sub.MFC42.DLL_operatornew
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 0xa0], eax
mov dword [esi + 0xa4], ebx
mov cl, byte [esp + 0x1b]
push 0xc
mov byte [esp + 0x134], 9
mov byte [esi + 0xa8], cl
call sub.MFC42.DLL_operatornew
mov dword [eax], eax
mov dword [eax + 4], eax
add esp, 8
mov dword [esi + 0xac], eax
mov dword [esi + 0xb0], ebx
lea ecx, [esi + 0x8b8]
mov byte [esp + 0x12c], 0xa
call fcn.0040dbf0
mov dl, byte [esp + 0x17]
push 0xc
mov byte [esp + 0x130], 0xb
mov byte [esi + 0x8d4], dl
call sub.MFC42.DLL_operatornew
mov dword [eax], eax
mov dword [eax + 4], eax
add esp, 4
mov dword [esi + 0x8d8], eax
mov dword [esi + 0x8dc], ebx
mov byte [esp + 0x12c], 0xc
push 0x433b08
lea ecx, [esi + 0x24]
mov dword [esi], 0x42c028
mov dword [esi + 0xc], ebx
call sub.MFC42.DLL_CString::operator_2
push 0x433b08
mov ecx, edi
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
call sub.MFC42.DLL_CString::operator_2
push 0x433b08
lea ecx, [esi + 0x1c]
call sub.MFC42.DLL_CString::operator_2
lea edi, [esi + 0x50]
mov ecx, 8
xor eax, eax
mov dword [esi + 0x74], ebx
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [esp + 0x24]
push pe_nt_image_headers32
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x423477
lea ecx, [esp + 0x24]
push ecx
jmp 0x42347c
push str.localhost
lea eax, [esi + 0x50]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esi + 0xb4]
mov ecx, 0x200
xor eax, eax
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], 1
mov dword [esi + 0x80], ebx
mov dword [esi + 0x98], ebx
mov dword [esi + 0x84], 2
mov dword [esi + 0x88], 0xa
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x90], ebx
add esp, 8
rep stosd dword es:[edi], eax
mov word [esi + 0x8b4], bx
mov dword [esi + 0x20], ebx
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push 0x433b08
push str.VirtualPath
lea edx, [esp + 0x18]
push 0x431ae8
push edx
mov ecx, eax
call sub.MFC42.DLL_CWinApp::GetProfileStringA
lea edi, [esi + 0x1c]
push eax
mov ecx, edi
mov byte [esp + 0x130], 0xd
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x12c], 0xc
call sub.MFC42.DLL_CString::CString
mov ecx, edi
call sub.MFC42.DLL_CString::TrimLeft
mov edi, dword [edi]
push 0x433b08
push edi
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
call edi
add esp, 8
test eax, eax
je 0x423545
lea ecx, [esi + 0x1c]
call sub.MFC42.DLL_CString::MakeLower
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push 1
push str.SaveToLocal
push 0x431ae8
mov ecx, eax
call sub.MFC42.DLL_CWinApp::GetProfileIntA
mov dword [esi + 0x28], eax
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push ebx
push str.ProxyType
push 0x431ae8
mov ecx, eax
call sub.MFC42.DLL_CWinApp::GetProfileIntA
mov dword [esi + 0x2c], eax
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push 0x433b08
push str.Username
lea ecx, [esp + 0x18]
push 0x431ae8
push ecx
mov ecx, eax
call sub.MFC42.DLL_CWinApp::GetProfileStringA
push eax
lea ecx, [esi + 0x30]
mov byte [esp + 0x130], 0xe
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x12c], 0xc
call sub.MFC42.DLL_CString::CString
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push 0x433b08
push str.Password
lea edx, [esp + 0x18]
push 0x431ae8
push edx
mov ecx, eax
call sub.MFC42.DLL_CWinApp::GetProfileStringA
push eax
lea ecx, [esi + 0x34]
mov byte [esp + 0x130], 0xf
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x12c], 0xc
call sub.MFC42.DLL_CString::CString
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push 0x433b08
push str.ProxyAddress
lea ecx, [esp + 0x18]
push 0x431ae8
push ecx
mov ecx, eax
call sub.MFC42.DLL_CWinApp::GetProfileStringA
push eax
lea ecx, [esi + 0x38]
mov byte [esp + 0x130], 0x10
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x12c], 0xc
call sub.MFC42.DLL_CString::CString
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push 0x50
push str.ProxyPort
push 0x431ae8
mov ecx, eax
call sub.MFC42.DLL_CWinApp::GetProfileIntA
mov dword [esi + 0x3c], eax
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push 0x433b08
push str.CodeFileType
push 0x431ae8
lea edx, [esp + 0x1c]
push edx
mov ecx, eax
call sub.MFC42.DLL_CWinApp::GetProfileStringA
push eax
lea ecx, [esi + 0x40]
mov byte [esp + 0x130], 0x11
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x12c], 0xc
call sub.MFC42.DLL_CString::CString
push ecx
mov dword [esi + 0x44], ebx
mov ecx, esp
mov dword [esp + 0x14], esp
push 0x433b08
mov dword [esi + 0x48], ebx
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x14]
push eax
call fcn.00422c10
add esp, 8
push eax
lea ecx, [esi + 0x94]
mov byte [esp + 0x130], 0x12
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x12c], 0xc
call sub.MFC42.DLL_CString::CString
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push 0x50
push str.DestPort
push 0x431ae8
mov ecx, eax
call sub.MFC42.DLL_CWinApp::GetProfileIntA
mov dword [esi + 4], eax
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push 0x433b08
push str.DestUrl
lea ecx, [esp + 0x18]
push 0x431ae8
push ecx
mov ecx, eax
call sub.MFC42.DLL_CWinApp::GetProfileStringA
push eax
mov ecx, ebp
mov byte [esp + 0x130], 0x13
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x12c], 0xc
call sub.MFC42.DLL_CString::CString
mov ecx, ebp
call sub.MFC42.DLL_CString::TrimLeft
mov ecx, ebp
call sub.MFC42.DLL_CString::TrimRight
push ebp
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_3
lea edx, [esp + 0x1c]
push 8
push edx
mov ecx, ebp
mov byte [esp + 0x134], 0x14
call sub.MFC42.DLL_CString::Left
lea ecx, [esp + 0x1c]
mov byte [esp + 0x12c], 0x15
call sub.MFC42.DLL_CString::MakeLower
mov eax, dword [esp + 0x1c]
push 0x433504
push eax
call edi
add esp, 8
test eax, eax
jne 0x4237df
lea ecx, [esp + 0x10]
push 8
push ecx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Mid_1
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x130], 0x16
call sub.MFC42.DLL_CString::operator_1
mov byte [esp + 0x12c], 0x15
lea ecx, [esp + 0x10]
jmp 0x423840
lea edx, [esp + 0x10]
push 7
push edx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
push 0x43201c
push eax
call edi
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
sete byte [esp + 0x17]
call sub.MFC42.DLL_CString::CString
cmp byte [esp + 0x17], bl
je 0x423845
lea eax, [esp + 0x10]
push 7
push eax
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Mid_1
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x130], 0x17
call sub.MFC42.DLL_CString::operator_1
mov byte [esp + 0x12c], 0x15
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
push 0x2f
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Find_3
cmp eax, ebx
jl 0x423886
lea ecx, [esp + 0x10]
push eax
push ecx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x130], 0x18
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x12c], 0x15
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x18]
mov ecx, ebp
push edx
call sub.MFC42.DLL_CString::operator_1
cmp dword [esi + 4], ebx
jne 0x42389e
mov dword [esi + 4], 0x50
push 0x24
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
mov byte [esp + 0x12c], 0x19
je 0x4238c8
lea edx, [esi + 0x8b8]
mov ecx, eax
push edx
call fcn.0040dc80
jmp 0x4238ca
xor eax, eax
lea ecx, [esp + 0x1c]
mov dword [esi + 0x8d0], eax
mov byte [esp + 0x12c], 0x14
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x12c], 0xc
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x124]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x120
ret