Function at 0x404351
Capabilities:
Encode data using base64
Enumerate pe sections

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x9c
mov edi, ecx
lea esi, [esp + 0x70]
mov ecx, esi
push 0x3a
push dword [esp + 0xb4]
call fcn.00404d72
pop eax
pop ecx
mov ecx, esi
mov dword [esi + 0x28], 2
call fcn.00410137
mov ecx, esi
mov ebp, eax
mov dword [esp], edx
call fcn.00410137
test ebp, ebp
je 0x4043ee
mov ebx, eax
test eax, eax
je 0x4043ee
mov dword [esp + 0xc], edi
mov edi, dword [esp]
mov esi, edx
lea ecx, [esp + 0x4c]
mov edx, ebp
push edi
call fcn.0041609a
pop eax
lea ecx, [esp + 0x58]
mov edx, ebx
push esi
call fcn.0041609a
pop eax
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], edi
xor edi, edi
mov dword [esp + 0x3c], 0x4869e4
mov dword [esp + 0x40], 1
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], esi
push 0xffffffffffffffe8
pop eax
test eax, eax
je 0x404409
add edi, dword [esp + eax + 0x50]
lea eax, [eax + 8]
jae 0x4043df
ud2
lea ecx, [edi + 4]
mov edx, str.password_is_requiredproxy_port_is_invalid:__httpinvalid_proxy_protocol:
push 0x14
call fcn.0041afd7
pop eax
mov dword [edi], 0x80000000
jmp 0x4049a6
lea esi, [esp + 0x1c]
mov edx, edi
mov ecx, esi
call fcn.004053c0
mov eax, ebp
mov ecx, esi
mov edx, ebp
add eax, dword [esp]
push eax
call fcn.0041ac12
pop eax
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
mov esi, edi
mov dword [esp + 8], eax
add eax, ecx
sub esi, ecx
push 0xfffffffffffffff0
pop ebp
test ebp, ebp
je 0x40445d
mov ecx, dword [esp + ebp + 0x50]
sub esi, ecx
jb 0x4043ec
lea ebx, [eax + ecx]
push ecx
push dword [esp + ebp + 0x50]
push eax
call fcn.0046e6e0
add esp, 0xc
add ebp, 8
mov eax, ebx
jmp 0x404439
sub edi, esi
push 3
pop ecx
mov eax, edi
xor edx, edx
div ecx
cmp edi, 0xbfffffff
ja 0x4043ec
mov ecx, dword [esp + 0x1c]
shl eax, 2
test edx, edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], ecx
je 0x404493
cmp eax, 0xfffffffc
je 0x4043ec
add eax, 4
lea esi, [esp + 0x64]
mov edx, eax
mov ecx, esi
call fcn.00430600
mov eax, dword [esi + 8]
mov ebp, dword [esi + 4]
mov ecx, edi
xor esi, esi
mov dword [esp + 0x14], edi
sub ecx, 0x1a
cmovb ecx, esi
mov dword [esp + 4], ecx
mov ecx, 0
mov dword [esp], eax
jbe 0x40475b
xor ecx, ecx
push 0x20
pop esi
lea eax, [ecx + 0x1a]
cmp eax, edi
ja 0x4043ec
mov eax, dword [esp]
test esi, esi
je 0x4043ec
cmp esi, eax
ja 0x4043ec
mov edi, dword [esp + 8]
mov eax, dword [edi + ecx]
mov edx, dword [edi + ecx + 4]
bswap eax
bswap edx
mov ebx, eax
shr ebx, 0x1a
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp + esi - 0x20], bl
mov ebx, eax
shr ebx, 0x14
and ebx, 0x3f
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp + esi - 0x1f], bl
mov ebx, eax
shr ebx, 0xe
and ebx, 0x3f
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp + esi - 0x1e], bl
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp + esi - 0x1d], bl
mov ebx, eax
shld eax, edx, 4
shr ebx, 2
and eax, 0x3f
and ebx, 0x3f
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp + esi - 0x1c], bl
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp + esi - 0x1b], al
mov eax, edx
shr edx, 0x10
shr eax, 0x16
and edx, 0x3f
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp + esi - 0x1a], al
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp + esi - 0x19], al
mov eax, dword [edi + ecx + 6]
mov edx, dword [edi + ecx + 0xa]
bswap eax
bswap edx
mov ebx, eax
shr ebx, 0x1a
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp + esi - 0x18], bl
mov ebx, eax
shr ebx, 0x14
and ebx, 0x3f
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp + esi - 0x17], bl
mov ebx, eax
shr ebx, 0xe
and ebx, 0x3f
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp + esi - 0x16], bl
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp + esi - 0x15], bl
mov ebx, eax
shld eax, edx, 4
shr ebx, 2
and eax, 0x3f
and ebx, 0x3f
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp + esi - 0x14], bl
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp + esi - 0x13], al
mov eax, edx
shr edx, 0x10
shr eax, 0x16
and edx, 0x3f
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp + esi - 0x12], al
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp + esi - 0x11], al
mov eax, dword [edi + ecx + 0xc]
mov edx, dword [edi + ecx + 0x10]
bswap eax
bswap edx
mov ebx, eax
shr ebx, 0x1a
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp + esi - 0x10], bl
mov ebx, eax
shr ebx, 0x14
and ebx, 0x3f
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp + esi - 0xf], bl
mov ebx, eax
shr ebx, 0xe
and ebx, 0x3f
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp + esi - 0xe], bl
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp + esi - 0xd], bl
mov ebx, eax
shld eax, edx, 4
shr ebx, 2
and eax, 0x3f
and ebx, 0x3f
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp + esi - 0xc], bl
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp + esi - 0xb], al
mov eax, edx
shr edx, 0x10
shr eax, 0x16
and edx, 0x3f
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp + esi - 0xa], al
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp + esi - 9], al
mov eax, dword [edi + ecx + 0x12]
mov edx, dword [edi + ecx + 0x16]
add ecx, 0x18
mov edi, dword [esp + 0x14]
bswap eax
bswap edx
mov ebx, eax
shr ebx, 0x1a
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp + esi - 8], bl
mov ebx, eax
shr ebx, 0x14
and ebx, 0x3f
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp + esi - 7], bl
mov ebx, eax
shr ebx, 0xe
and ebx, 0x3f
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp + esi - 6], bl
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp + esi - 5], bl
mov ebx, eax
shld eax, edx, 4
shr ebx, 2
and eax, 0x3f
and ebx, 0x3f
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp + esi - 4], bl
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp + esi - 3], al
mov eax, edx
shr edx, 0x10
shr eax, 0x16
and edx, 0x3f
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp + esi - 2], al
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp + esi - 1], al
add esi, 0x20
cmp ecx, dword [esp + 4]
jbe 0x4044cb
add esi, 0xffffffe0
mov eax, edi
add ecx, 3
sub eax, dword [esp + 0x10]
mov dword [esp + 4], eax
lea eax, [ecx - 3]
cmp eax, dword [esp + 4]
jae 0x40480d
cmp eax, 0xfffffffc
ja 0x4043ec
mov edx, dword [esp]
cmp ecx, edi
ja 0x4043ec
cmp esi, 0xfffffffb
ja 0x4043ec
lea eax, [esi + 4]
cmp eax, edx
ja 0x4043ec
mov edi, dword [esp + 8]
movzx ebx, byte [edi + ecx - 3]
mov edx, ebx
shl bl, 4
shr edx, 2
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp + esi], dl
mov dl, byte [edi + ecx - 2]
mov dh, dl
shl dl, 2
shr dh, 4
or dh, bl
movzx ebx, dh
and ebx, 0x3f
mov dh, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp + esi + 1], dh
movzx ebx, byte [edi + ecx - 1]
mov edi, dword [esp + 0x14]
add ecx, 3
mov dh, bl
and ebx, 0x3f
shr dh, 6
or dh, dl
movzx edx, dh
and edx, 0x3f
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp + esi + 2], dl
mov dl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp + esi + 3], dl
mov esi, eax
jmp 0x404768
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x40489b
mov ebx, dword [esp]
cmp eax, 2
jne 0x4048e4
cmp esi, ebx
jae 0x4043ec
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
movzx eax, byte [eax + edx]
inc edx
mov dword [esp + 4], edx
mov ecx, eax
shr ecx, 2
cmp edx, edi
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp + esi], cl
jae 0x4043ec
lea ecx, [esi + 1]
cmp ecx, ebx
jae 0x4043ec
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
shl al, 4
mov cl, byte [ecx + edx]
mov edx, ecx
shr dl, 4
or al, dl
movzx eax, al
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp + esi + 1], al
lea eax, [esi + 2]
cmp eax, ebx
jae 0x4043ec
shl cl, 2
and cl, 0x3c
push 3
jmp 0x4048d4
mov ebx, dword [esp]
cmp esi, ebx
jae 0x4043ec
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
movzx ecx, byte [eax + ecx]
mov eax, ecx
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp + esi], al
lea eax, [esi + 1]
cmp eax, ebx
jae 0x4043ec
shl cl, 4
and cl, 0x30
push 2
pop edx
movzx ecx, cl
add esi, edx
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp + eax], cl
cmp esi, ebx
ja 0x4043ec
mov eax, esi
mov edx, esi
neg eax
and eax, 3
mov ecx, eax
sub ecx, 1
jb 0x40490c
cmp ebx, edx
je 0x4043ec
mov byte [ebp + edx], 0x3d
inc edx
jmp 0x4048f7
add esi, eax
jb 0x4043ec
mov esi, dword [esp + 0x64]
mov ebx, dword [esp]
lea edi, [esp + 0x1c]
mov edx, ebp
mov ecx, edi
push ebx
call fcn.0041bd04
pop eax
cmp dword [edi], 0
je 0x40494a
mov edi, dword [esp + 0xc]
cmp esi, 0x80000000
jne 0x4043ec
mov esi, ebp
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp]
jmp 0x40494e
mov edi, dword [esp + 0xc]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 8]
call fcn.0041ae6b
movsd xmm0, qword [esp + 0x4c]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x60]
movsd xmm1, qword [esp + 0x58]
mov dword [esp + 0x24], eax
movsd qword [esp + 0x1c], xmm0
mov dword [esp + 0x30], ecx
movsd qword [esp + 0x28], xmm1
movsd qword [edi], xmm0
movsd xmm1, qword [esp + 0x2c]
movsd xmm2, qword [esp + 0x24]
movsd qword [edi + 0x10], xmm1
movsd qword [edi + 8], xmm2
mov dword [edi + 0x18], esi
mov dword [edi + 0x1c], ebp
mov dword [edi + 0x20], ebx
add esp, 0x9c
pop esi
pop edi
pop ebx
pop ebp
ret