Function at 0x407350
Capabilities:
Encode data using base64

Disassembly:
mov eax, 0x4e34
call fcn.00431dd0
mov eax, dword [0x4564c4]
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 0x407380
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.00431520
push 0x270f
lea ecx, [esp + 0x2d]
push esi
push ecx
mov byte [esp + 0x34], 0
call fcn.00431520
add esp, 0x18
cmp edi, esi
jle 0x4077c0
push ebp
jmp 0x4073ef
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 0x4077bf
lea ecx, [ecx]
cmp edx, 4
jge 0x407471
movsx eax, byte [esi + ebx]
lea ecx, [eax - 0x41]
add esi, 1
cmp ecx, 0x19
ja 0x407426
mov eax, ecx
cmp eax, 0xfffffffe
je 0x40746d
cmp eax, 0xffffffff
je 0x407465
mov byte [esp + edx + 0x18], al
jmp 0x40746a
lea ecx, [eax - 0x61]
cmp ecx, 0x19
ja 0x407433
add eax, 0xffffffb9
jmp 0x407416
lea ecx, [eax - 0x30]
cmp ecx, 9
ja 0x407440
add eax, 4
jmp 0x407416
cmp eax, 0x2b
jne 0x407450
mov eax, 0x3e
mov byte [esp + edx + 0x18], al
jmp 0x40746a
cmp eax, 0x2f
jne 0x407460
mov eax, 0x3f
mov byte [esp + edx + 0x18], al
jmp 0x40746a
cmp eax, 0x3d
jne 0x40746d
mov byte [esp + edx + 0x18], 0x40
add edx, 1
cmp esi, edi
jl 0x407400
cmp edx, 4
mov dword [esp + 0x10], esi
jne 0x4076c8
mov edx, esi
add edx, 3
cmp edx, dword [esp + 0x14]
jl 0x4075b6
mov al, byte [esp + 0x19]
cmp al, 0x40
je 0x4076db
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 0x44c4f8
push edx
call fcn.0042ef27
lea eax, [esp + 0x2c]
add esp, 0xc
mov esi, eax
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4074c5
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 0x4074e0
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 0x407726
movsx ebp, al
mov eax, ebp
sar eax, 2
shl ebx, 4
or eax, ebx
push eax
lea ecx, [esp + 0x24]
push 0x44c4f8
push ecx
call fcn.0042ef27
lea eax, [esp + 0x2c]
add esp, 0xc
mov ecx, eax
lea ebx, [ebx]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x407530
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 0x407547
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 0x40776c
movsx edx, al
shl ebp, 6
or ebp, edx
push ebp
lea eax, [esp + 0x24]
push 0x44c4f8
push eax
call fcn.0042ef27
lea eax, [esp + 0x2c]
add esp, 0xc
mov ecx, eax
lea esp, [esp]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x407590
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 0x4075a7
jmp 0x4076ba
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 0x44c4f8
push eax
call fcn.0042ef27
lea eax, [esp + 0x2c]
add esp, 0xc
mov esi, eax
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4075e4
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 0x407600
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 0x44c4f8
push edx
call fcn.0042ef27
lea eax, [esp + 0x2c]
add esp, 0xc
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x407640
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 0x407657
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 0x44c4f8
push ecx
call fcn.0042ef27
lea eax, [esp + 0x2c]
add esp, 0xc
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x407692
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 0x4076b0
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 0x4073e0
jmp 0x4077bf
movsx eax, byte [esp + 0x18]
add eax, eax
add eax, eax
push eax
lea ecx, [esp + 0x24]
push 0x44c4f8
push ecx
call fcn.0042ef27
lea eax, [esp + 0x2c]
add esp, 0xc
mov edx, eax
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x407700
lea edi, [esp + 0x2730]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x407715
mov esi, edx
jmp 0x4077b1
movsx edx, byte [esp + 0x19]
shl edx, 4
push edx
lea eax, [esp + 0x24]
push 0x44c4f8
push eax
call fcn.0042ef27
lea eax, [esp + 0x2c]
add esp, 0xc
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x407747
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 0x407760
jmp 0x4077b1
movsx ecx, byte [esp + 0x1a]
shl ecx, 6
push ecx
lea edx, [esp + 0x24]
push 0x44c4f8
push edx
call fcn.0042ef27
lea eax, [esp + 0x2c]
add esp, 0xc
mov ecx, eax
lea ecx, [ecx]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x407790
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 0x4077a7
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.0042dbc0
add esp, 0x4e34
ret 4