Function at 0x40b660
Capabilities:
Encode data using base64

Disassembly:
mov eax, 0x4e34
call fcn.0042fb60
mov eax, dword [0x455460]
xor eax, esp
mov dword [esp + 0x4e30], eax
push ebx
mov ebx, dword [esp + 0x4e3c]
push esi
mov eax, ebx
push edi
xor esi, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40b690
sub eax, edx
lea edi, [eax + 1]
push 0x270f
lea eax, [esp + 0x2731]
push esi
push eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x21], esi
mov byte [esp + 0x2738], cl
call fcn.0042dd90
push 0x270f
lea ecx, [esp + 0x2d]
push esi
push ecx
mov byte [esp + 0x34], 0
call fcn.0042dd90
add esp, 0x18
cmp edi, esi
jle 0x40bad0
push ebp
jmp 0x40b6ff
mov ebx, dword [esp + 0x4e48]
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
xor edx, edx
cmp esi, edi
mov byte [esp + 0x18], dl
jge 0x40bacf
lea ecx, [ecx]
cmp edx, 4
jge 0x40b781
movsx eax, byte [esi + ebx]
lea ecx, [eax - 0x41]
add esi, 1
cmp ecx, 0x19
ja 0x40b736
mov eax, ecx
cmp eax, 0xfffffffe
je 0x40b77d
cmp eax, 0xffffffff
je 0x40b775
mov byte [esp + edx + 0x18], al
jmp 0x40b77a
lea ecx, [eax - 0x61]
cmp ecx, 0x19
ja 0x40b743
add eax, 0xffffffb9
jmp 0x40b726
lea ecx, [eax - 0x30]
cmp ecx, 9
ja 0x40b750
add eax, 4
jmp 0x40b726
cmp eax, 0x2b
jne 0x40b760
mov eax, 0x3e
mov byte [esp + edx + 0x18], al
jmp 0x40b77a
cmp eax, 0x2f
jne 0x40b770
mov eax, 0x3f
mov byte [esp + edx + 0x18], al
jmp 0x40b77a
cmp eax, 0x3d
jne 0x40b77d
mov byte [esp + edx + 0x18], 0x40
add edx, 1
cmp esi, edi
jl 0x40b710
cmp edx, 4
mov dword [esp + 0x10], esi
jne 0x40b9d8
mov edx, esi
add edx, 3
cmp edx, dword [esp + 0x14]
jl 0x40b8c6
mov al, byte [esp + 0x19]
cmp al, 0x40
je 0x40b9eb
movsx ebx, al
movsx eax, byte [esp + 0x18]
add eax, eax
mov ecx, ebx
add eax, eax
sar ecx, 4
or eax, ecx
push eax
lea edx, [esp + 0x24]
push 0x44ab80
push edx
call fcn.0042c7dc
lea eax, [esp + 0x2c]
add esp, 0xc
mov esi, eax
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40b7d5
lea edi, [esp + 0x2730]
sub eax, esi
add edi, 0xffffffff
lea ebx, [ebx]
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x40b7f0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov al, byte [esp + 0x1a]
and ecx, 3
cmp al, 0x40
rep movsb byte es:[edi], byte [esi]
je 0x40ba36
movsx ebp, al
mov eax, ebp
sar eax, 2
shl ebx, 4
or eax, ebx
push eax
lea ecx, [esp + 0x24]
push 0x44ab80
push ecx
call fcn.0042c7dc
lea eax, [esp + 0x2c]
add esp, 0xc
mov ecx, eax
lea ebx, [ebx]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x40b840
lea edi, [esp + 0x2730]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x40b857
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov al, byte [esp + 0x1b]
and ecx, 3
cmp al, 0x40
rep movsb byte es:[edi], byte [esi]
je 0x40ba7c
movsx edx, al
shl ebp, 6
or ebp, edx
push ebp
lea eax, [esp + 0x24]
push 0x44ab80
push eax
call fcn.0042c7dc
lea eax, [esp + 0x2c]
add esp, 0xc
mov ecx, eax
lea esp, [esp]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x40b8a0
lea edi, [esp + 0x2730]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x40b8b7
jmp 0x40b9ca
movsx ebx, byte [esp + 0x19]
movsx ecx, byte [esp + 0x18]
add ecx, ecx
mov edx, ebx
add ecx, ecx
sar edx, 4
or ecx, edx
push ecx
lea eax, [esp + 0x24]
push 0x44ab80
push eax
call fcn.0042c7dc
lea eax, [esp + 0x2c]
add esp, 0xc
mov esi, eax
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40b8f4
lea edi, [esp + 0x2730]
sub eax, esi
add edi, 0xffffffff
lea esp, [esp]
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x40b910
movsx ebp, byte [esp + 0x1a]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebp
sar ecx, 2
shl ebx, 4
or ecx, ebx
push ecx
lea edx, [esp + 0x24]
push 0x44ab80
push edx
call fcn.0042c7dc
lea eax, [esp + 0x2c]
add esp, 0xc
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x40b950
lea edi, [esp + 0x2730]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x40b967
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
movsx eax, byte [esp + 0x1b]
shl ebp, 6
and ecx, 3
or ebp, eax
push ebp
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24]
push 0x44ab80
push ecx
call fcn.0042c7dc
lea eax, [esp + 0x2c]
add esp, 0xc
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x40b9a2
lea edi, [esp + 0x2730]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
lea esp, [esp]
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x40b9c0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [esp + 0x14]
cmp dword [esp + 0x10], edx
jl 0x40b6f0
jmp 0x40bacf
movsx eax, byte [esp + 0x18]
add eax, eax
add eax, eax
push eax
lea ecx, [esp + 0x24]
push 0x44ab80
push ecx
call fcn.0042c7dc
lea eax, [esp + 0x2c]
add esp, 0xc
mov edx, eax
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40ba10
lea edi, [esp + 0x2730]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x40ba25
mov esi, edx
jmp 0x40bac1
movsx edx, byte [esp + 0x19]
shl edx, 4
push edx
lea eax, [esp + 0x24]
push 0x44ab80
push eax
call fcn.0042c7dc
lea eax, [esp + 0x2c]
add esp, 0xc
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x40ba57
lea edi, [esp + 0x2730]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov edi, edi
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x40ba70
jmp 0x40bac1
movsx ecx, byte [esp + 0x1a]
shl ecx, 6
push ecx
lea edx, [esp + 0x24]
push 0x44ab80
push edx
call fcn.0042c7dc
lea eax, [esp + 0x2c]
add esp, 0xc
mov ecx, eax
lea ecx, [ecx]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x40baa0
lea edi, [esp + 0x2730]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x40bab7
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop ebp
mov ecx, dword [esp + 0x4e3c]
pop edi
pop esi
pop ebx
xor ecx, esp
lea eax, [esp + 0x2720]
call fcn.0042b796
add esp, 0x4e34
ret 4