Function at 0x4a4770
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x543020
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5bc684]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 4], 0
lea eax, [edi + 0x28]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a47b0
sub eax, edx
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 4]
push eax
mov ecx, dword [edi]
push ecx
mov esi, dword [ebp + 8]
push esi
call fcn.004fe210
add esp, 0xc
cmp dword [edi + 0x24], 0
je 0x4a4897
mov edx, dword [edi + 4]
mov byte [esi + edx], 0
push str.Content_Transfer_Encoding:
push esi
call fcn.004bef70
add esp, 8
mov ebx, eax
mov dword [ebp - 0x18], ebx
test ebx, ebx
je 0x4a4897
push 0x560e54
push ebx
call fcn.004fee10
add esp, 8
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x4a4825
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a4815
sub eax, edx
add eax, ebx
mov dword [ebp - 0x14], eax
je 0x4a4897
mov byte [eax], 0
push str.binary
push ebx
call fcn.004bef70
add esp, 8
mov ebx, eax
mov dword [ebp - 0x18], ebx
test ebx, ebx
je 0x4a4891
lea ecx, [edi + 0x10]
call fcn.00498870
test eax, eax
jne 0x4a485f
mov eax, dword [str.base64]
mov dword [ebx], eax
mov cx, word [0x56569c]
mov word [ebx + 4], cx
jmp 0x4a4891
lea edx, [ebx + 2]
mov eax, edx
lea ecx, [eax + 1]
mov dword [ebp - 0x24], ecx
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a4870
sub eax, dword [ebp - 0x24]
push eax
push edx
push ebx
call fcn.004fe580
add esp, 0xc
mov dword [ebx], 0x74696238
sub esi, 2
mov dword [ebp + 8], esi
mov edx, dword [ebp - 0x14]
mov byte [edx], 0xd
add esi, dword [edi + 4]
mov dword [ebp + 8], esi
mov eax, 0xa0d
mov word [esi], ax
add esi, 2
mov dword [ebp + 8], esi
lea ecx, [edi + 0x10]
call fcn.00498870
test eax, eax
jne 0x4a4a30
mov ecx, 0xa0d
mov word [esi], cx
add esi, 2
mov dword [ebp + 8], esi
cmp dword [edi + 0x24], eax
je 0x4a4a0d
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov eax, dword [edi + 8]
mov dword [ebp - 0x18], eax
mov edi, dword [edi + 0xc]
mov dword [ebp - 0x28], edi
cmp edi, 2
jle 0x4a497b
movzx edx, byte [eax]
shr edx, 2
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], dl
movsx edx, byte [eax]
and edx, 3
shl edx, 4
movzx ebx, byte [eax + 1]
shr ebx, 4
or edx, ebx
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], dl
movsx edx, byte [eax + 1]
and edx, 0xf
add edx, edx
add edx, edx
movzx ebx, byte [eax + 2]
shr ebx, 6
or edx, ebx
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 2], dl
movsx edx, byte [eax + 2]
and edx, 0x3f
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 3], dl
add esi, 4
mov dword [ebp + 8], esi
add eax, 3
mov dword [ebp - 0x18], eax
sub edi, 3
mov dword [ebp - 0x28], edi
add ecx, 4
mov dword [ebp - 0x20], ecx
cmp ecx, 0x48
jl 0x4a48e3
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov edx, 0xa0d
mov word [esi], dx
add esi, 2
mov dword [ebp + 8], esi
jmp 0x4a48e3
cmp edi, 1
jne 0x4a49a8
movzx ecx, byte [eax]
shr ecx, 2
mov dl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], dl
movsx eax, byte [eax]
and eax, 3
shl eax, 4
mov cl, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], cl
mov word [esi + 2], 0x3d3d
jmp 0x4a49ed
cmp edi, 2
jne 0x4a49f3
movzx edx, byte [eax]
shr edx, 2
movzx ecx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], cl
movsx edx, byte [eax]
and edx, 3
shl edx, 4
movzx ecx, byte [eax + 1]
shr ecx, 4
or edx, ecx
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], dl
movsx eax, byte [eax + 1]
and eax, 0xf
movzx ecx, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 2], cl
mov byte [esi + 3], 0x3d
add esi, 4
mov dword [ebp + 8], esi
mov edx, 0xa0d
mov word [esi], dx
add esi, 2
mov dword [ebp + 8], esi
mov dword [ebp - 4], 0xffffffff
jmp 0x4a4b27
mov eax, dword [edi + 0xc]
push eax
mov ecx, dword [edi + 8]
push ecx
push esi
call fcn.004fe210
add esp, 0xc
add esi, dword [edi + 0xc]
mov dword [ebp + 8], esi
mov dword [ebp - 4], 0xffffffff
jmp 0x4a4b27
mov edx, dword [edi + 0x78]
push edx
mov eax, dword [edi + 0x74]
push eax
push esi
call fcn.004fe210
add esp, 0xc
add esi, dword [edi + 0x78]
mov dword [ebp + 8], esi
lea ecx, [edi + 0x10]
call fcn.00498030
mov byte [ebp - 4], 1
lea ecx, [edi + 0x10]
call fcn.00498900
mov dword [ebp - 0x14], eax
mov edi, edi
test eax, eax
je 0x4a4ab4
mov ecx, eax
call fcn.00497c50
mov ebx, eax
test ebx, ebx
je 0x4a4aa3
mov ecx, dword [ebp - 0x1c]
push ecx
lea edx, [edi + 0x28]
push edx
push esi
call fcn.004fe210
add esp, 0xc
add esi, dword [ebp - 0x1c]
mov dword [ebp + 8], esi
mov eax, 0xa0d
mov word [esi], ax
add esi, 2
mov dword [ebp + 8], esi
push esi
mov ecx, ebx
call fcn.004a4770
mov esi, eax
mov dword [ebp + 8], esi
mov ecx, dword [ebp - 0x14]
push ecx
lea ecx, [edi + 0x10]
call fcn.00498910
mov dword [ebp - 0x14], eax
jmp 0x4a4a60
mov dword [ebp - 4], 0
jmp 0x4a4ad0
lea ecx, [edi + 0x10]
call fcn.004980a0
mov ebx, dword [ebp - 0x1c]
push ebx
lea edx, [edi + 0x28]
push edx
push esi
call fcn.004fe210
add esi, ebx
mov dword [esi], 0xa0d2d2d
add esi, 4
mov eax, dword [edi + 0x80]
push eax
mov ecx, dword [edi + 0x7c]
push ecx
push esi
call fcn.004fe210
add esp, 0x18
add esi, dword [edi + 0x80]
mov dword [ebp + 8], esi
mov dword [ebp - 4], 0xffffffff
jmp 0x4a4b27
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4