Function at 0x415e70
Capabilities:
Encode data using base64

Disassembly:
push 0xffffffffffffffff
push 0x4c8bf8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4fcb54]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, ecx
xor ebp, ebp
cmp dword [esp + 0x38], ebp
mov dword [esp + 0x20], ebp
jne 0x415ecd
mov esi, dword [esp + 0x34]
push 0x4dfd54
mov ecx, esi
call fcn.00402520
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x10
mov ebx, dword [esp + 0x3c]
mov eax, 0xaaaaaaab
mul ebx
shr edx, 1
lea eax, [edx + edx*2]
mov edi, ebx
sub edi, eax
neg edi
sbb edi, edi
lea ecx, [ebx*4]
mov eax, 0xaaaaaaab
mul ecx
mov ecx, dword [esp + 0x40]
and edi, 4
shr edx, 1
add edi, edx
cmp ecx, ebp
je 0x415f0c
mov eax, edi
xor edx, edx
div ecx
lea edi, [edi + eax*2 + 2]
call fcn.00484590
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x415f26
push 0x80004005
call fcn.004021e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ecx, [eax + 0x10]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x2c], ebp
mov eax, dword [ecx - 8]
mov ebp, 1
mov edx, ebp
sub edx, dword [ecx - 4]
sub eax, edi
or eax, edx
jge 0x415f5b
push edi
lea ecx, [esp + 0x24]
call fcn.00402260
mov ecx, dword [esp + 0x20]
xor edx, edx
xor eax, eax
cmp ebx, edx
mov dword [esp + 0x14], edx
jbe 0x4160ed
jmp 0x415f78
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
movzx edi, byte [edx + edi]
add edx, ebp
shl edi, 8
cmp edx, ebx
mov dword [esp + 0x1c], edx
jae 0x415f9f
mov ebx, dword [esp + 0x38]
movzx ebx, byte [edx + ebx]
or edi, ebx
add edx, ebp
mov dword [esp + 0x1c], edx
jmp 0x415fa3
add dword [esp + 0x14], ebp
shl edi, 8
cmp edx, dword [esp + 0x3c]
jae 0x415fc2
mov ebx, dword [esp + 0x38]
movzx ebx, byte [edx + ebx]
or edi, ebx
add edx, ebp
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x14]
jmp 0x415fcc
mov edx, dword [esp + 0x14]
add edx, ebp
mov dword [esp + 0x14], edx
test edx, edx
je 0x415fdd
sub edx, ebp
mov byte [esp + 0x1b], 0x3d
mov dword [esp + 0x14], edx
jmp 0x415fec
mov ebx, edi
and ebx, 0x3f
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esp + 0x1b], bl
shr edi, 6
test edx, edx
je 0x416000
sub edx, ebp
mov byte [esp + 0x1a], 0x3d
mov dword [esp + 0x14], edx
jmp 0x41600f
mov ebx, edi
and ebx, 0x3f
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esp + 0x1a], bl
shr edi, 6
test edx, edx
je 0x416020
sub edx, ebp
mov bl, 0x3d
mov dword [esp + 0x14], edx
jmp 0x41602b
mov ebx, edi
and ebx, 0x3f
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
shr edi, 6
test edx, edx
je 0x41603a
sub dword [esp + 0x14], ebp
mov dl, 0x3d
jmp 0x416043
and edi, 0x3f
mov dl, byte [edi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov edi, dword [esp + 0x40]
test edi, edi
je 0x416063
cmp dword [esi + 4], edi
jb 0x416063
mov byte [eax + ecx], 0xd
add eax, ebp
mov byte [eax + ecx], 0xa
add eax, ebp
mov dword [esi + 4], 0
mov byte [eax + ecx], dl
add dword [esi + 4], ebp
mov edx, dword [esi + 4]
add eax, ebp
test edi, edi
je 0x416089
cmp edx, edi
jb 0x416089
mov byte [eax + ecx], 0xd
add eax, ebp
mov byte [eax + ecx], 0xa
add eax, ebp
mov dword [esi + 4], 0
mov byte [eax + ecx], bl
add dword [esi + 4], ebp
mov edx, dword [esi + 4]
xor ebx, ebx
add eax, ebp
cmp edi, ebx
je 0x4160ad
cmp edx, edi
jb 0x4160ad
mov byte [eax + ecx], 0xd
add eax, ebp
mov byte [eax + ecx], 0xa
add eax, ebp
mov dword [esi + 4], ebx
mov dl, byte [esp + 0x1a]
mov byte [eax + ecx], dl
add dword [esi + 4], ebp
mov edx, dword [esi + 4]
add eax, ebp
cmp edi, ebx
je 0x4160d3
cmp edx, edi
jb 0x4160d3
mov byte [eax + ecx], 0xd
add eax, ebp
mov byte [eax + ecx], 0xa
add eax, ebp
mov dword [esi + 4], ebx
mov dl, byte [esp + 0x1b]
mov byte [eax + ecx], dl
mov edx, dword [esp + 0x3c]
add dword [esi + 4], ebp
add eax, ebp
cmp dword [esp + 0x1c], edx
jb 0x415f70
cmp eax, 0xffffffff
jne 0x41610b
test ecx, ecx
jne 0x4160fa
xor eax, eax
jmp 0x41610f
mov eax, ecx
lea esi, [eax + 1]
nop
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x416100
sub eax, esi
test eax, eax
jl 0x416158
cmp eax, dword [ecx - 8]
jg 0x416158
lea esi, [ecx - 0x10]
mov dword [ecx - 0xc], eax
push esi
mov byte [eax + ecx], 0
call fcn.00402860
mov edi, dword [esp + 0x38]
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov dword [esp + 0x2c], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x416151
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, edi
jmp 0x415eb7
push 0x80070057
call fcn.004021e0
int3