Function at 0x417990
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a7096
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4cd00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov esi, ecx
mov dword [ebp - 0x3c], esi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x44], 0
push 0x40
mov dword [ebp - 0x34], 0
push str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
call fcn.0040a9e0
mov dword [ebp - 4], 1
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov eax, dword [ebp + 8]
xor edi, edi
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x44], 1
test eax, eax
je 0x417c0b
dec eax
mov dword [ebp + 8], eax
mov al, byte [ebx]
inc ebx
mov byte [ebp + edi - 0x18], al
inc edi
mov ah, byte [ebp - 0x16]
mov ch, byte [ebp - 0x17]
mov cl, byte [ebp - 0x18]
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x3f], ah
mov byte [ebp - 0x3d], ch
mov byte [ebp - 0x3e], cl
cmp edi, 3
jne 0x417aee
mov al, cl
and cl, 3
shr al, 2
mov byte [ebp - 0x38], al
mov al, ch
shl cl, 4
shr al, 4
add cl, al
mov al, ah
mov byte [ebp - 0x37], cl
and ah, 0x3f
mov cl, ch
shr al, 6
and cl, 0xf
mov byte [ebp - 0x35], ah
shl cl, 2
add cl, al
xor edi, edi
mov byte [ebp - 0x36], cl
nop dword [eax]
cmp dword [ebp - 0x20], 0x10
lea ecx, [ebp - 0x34]
movzx eax, byte [ebp + edi - 0x38]
cmovae ecx, edx
mov edx, dword [esi + 0x14]
mov bl, byte [eax + ecx]
mov ecx, dword [esi + 0x10]
mov byte [ebp - 0x1c], bl
cmp ecx, edx
jae 0x417ac8
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0x10
jb 0x417abe
mov eax, dword [esi]
mov byte [eax + ecx], bl
mov byte [eax + ecx + 1], 0
jmp 0x417ada
push dword [ebp - 0x1c]
mov byte [ebp - 0x48], 0
push dword [ebp - 0x48]
push ecx
mov ecx, esi
call fcn.00418640
mov edx, dword [ebp - 0x34]
inc edi
cmp edi, 4
jl 0x417a90
mov ebx, dword [ebp - 0x3c]
xor edi, edi
mov ch, byte [ebp - 0x3d]
mov cl, byte [ebp - 0x3e]
mov eax, dword [ebp + 8]
test eax, eax
jne 0x417a30
mov dword [ebp - 0x1c], edi
test edi, edi
je 0x417c0b
mov eax, edi
cmp edi, 3
jge 0x417b2a
cmp eax, 3
jae 0x417c5b
mov byte [ebp + eax - 0x18], 0
inc eax
cmp eax, 3
jl 0x417b0e
mov bl, byte [ebp - 0x16]
mov ch, byte [ebp - 0x17]
mov cl, byte [ebp - 0x18]
jmp 0x417b2d
mov bl, byte [ebp - 0x3f]
mov al, cl
and cl, 3
shr al, 2
mov byte [ebp - 0x38], al
mov al, ch
shr al, 4
and ch, 0xf
shl cl, 4
add cl, al
shl ch, 2
mov al, bl
mov byte [ebp - 0x37], cl
shr al, 6
and bl, 0x3f
add ch, al
mov byte [ebp - 0x35], bl
lea eax, [edi + 1]
mov byte [ebp - 0x36], ch
xor ebx, ebx
mov dword [ebp - 0x3c], eax
test eax, eax
jle 0x417bc8
mov edi, eax
nop dword [eax]
cmp dword [ebp - 0x20], 0x10
lea ecx, [ebp - 0x34]
movzx eax, byte [ebp + ebx - 0x38]
cmovae ecx, edx
mov edx, dword [esi + 0x14]
mov al, byte [eax + ecx]
mov ecx, dword [esi + 0x10]
mov byte [ebp - 0x18], al
cmp ecx, edx
jae 0x417bab
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0x10
jb 0x417b9e
mov eax, dword [esi]
mov dl, byte [ebp - 0x18]
mov byte [eax + ecx], dl
mov byte [eax + ecx + 1], 0
jmp 0x417bbd
push dword [ebp - 0x18]
mov byte [ebp - 0x3c], 0
push dword [ebp - 0x3c]
push ecx
mov ecx, esi
call fcn.00418640
mov edx, dword [ebp - 0x34]
inc ebx
cmp ebx, edi
jl 0x417b70
mov edi, dword [ebp - 0x1c]
cmp edi, 3
jge 0x417c0b
mov ebx, 3
sub ebx, edi
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
cmp ecx, edx
jae 0x417bf5
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0x10
jb 0x417bed
mov eax, dword [esi]
mov word [eax + ecx], 0x3d
jmp 0x417c06
push 0x3d
mov byte [ebp - 0x3c], 0
push dword [ebp - 0x3c]
push ecx
mov ecx, esi
call fcn.00418640
sub ebx, 1
jne 0x417bd4
mov eax, dword [ebp - 0x20]
cmp eax, 0x10
jb 0x417c3d
mov edx, dword [ebp - 0x34]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x417c33
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417c60
push ecx
push edx
call fcn.0044434d
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00443db6
mov esp, ebp
pop ebp
ret
call fcn.004444a0
call fcn.00447297
int3