Function at 0x59e0a0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
xor ecx, ecx
push esi
mov esi, dword [ebp + 0x10]
mov eax, esi
mov dword [esi + 0x10], ecx
cmp dword [esi + 0x14], 0x10
jb 0x59e0b9
mov eax, dword [esi]
mov edx, dword [ebp + 8]
mov byte [eax], cl
test edx, edx
je 0x59e59d
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x59e59d
push ebx
push edi
dec eax
mov dword [ebp + 0xc], eax
mov al, byte [edx]
inc edx
mov byte [ebp + ecx - 8], al
inc ecx
mov ah, byte [ebp - 6]
mov bl, byte [ebp - 7]
mov bh, byte [ebp - 8]
mov dword [ebp + 0x10], ecx
mov dword [ebp + 8], edx
mov byte [ebp - 3], ah
mov byte [ebp - 1], bl
mov byte [ebp - 2], bh
cmp ecx, 3
jne 0x59e296
mov al, bh
mov cl, bh
shr al, 2
and cl, 3
mov byte [ebp - 0xc], al
mov al, bl
shl cl, 4
shr al, 4
add cl, al
mov al, ah
mov byte [ebp - 0xb], cl
mov cl, bl
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
mov al, ah
and al, 0x3f
mov byte [ebp - 0xa], cl
mov byte [ebp - 9], al
xor eax, eax
mov dword [ebp - 0x18], eax
nop dword [eax + eax]
movzx eax, byte [ebp + eax - 0xc]
mov ecx, dword [esi + 0x10]
mov edi, dword [esi + 0x14]
mov dword [ebp - 0x10], ecx
mov dl, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp + 0x13], dl
mov dword [ebp - 0x14], edi
cmp ecx, edi
jae 0x59e17a
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edi, 0x10
jb 0x59e16d
mov eax, dword [esi]
mov byte [eax + ecx], dl
mov byte [eax + ecx + 1], 0
jmp 0x59e278
mov eax, SysReAllocString
sub eax, ecx
cmp eax, 1
jb 0x59e5b3
lea ebx, [ecx + 1]
or ebx, 0xf
cmp ebx, 0x7fffffff
jbe 0x59e19f
mov ebx, SysReAllocString
jmp 0x59e1bd
mov edx, edi
mov eax, SysReAllocString
shr edx, 1
sub eax, edx
cmp edi, eax
jbe 0x59e1b5
mov ebx, SysReAllocString
jmp 0x59e1bd
lea eax, [edx + edi]
cmp ebx, eax
cmovb ebx, eax
lea eax, [ebx + 1]
cmp eax, 0x1000
jb 0x59e1f1
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x59e5a9
push ecx
call fcn.005b5266
add esp, 4
test eax, eax
je 0x59e5ae
mov ecx, dword [ebp - 0x10]
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x59e207
test eax, eax
je 0x59e205
push eax
call fcn.005b5266
mov ecx, dword [ebp - 0x10]
add esp, 4
mov edi, eax
jmp 0x59e207
xor edi, edi
cmp dword [ebp - 0x14], 0x10
lea eax, [ecx + 1]
mov dword [esi + 0x14], ebx
lea ebx, [edi + ecx]
mov dword [esi + 0x10], eax
mov dword [ebp - 0x10], ebx
push ecx
jb 0x59e263
mov ebx, dword [esi]
push ebx
push edi
call fcn.005b7120
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov cl, byte [ebp + 0x13]
mov byte [eax], cl
mov ecx, dword [ebp - 0x14]
inc ecx
mov byte [eax + 1], 0
cmp ecx, 0x1000
jb 0x59e257
mov edx, dword [ebx - 4]
add ecx, 0x23
sub ebx, edx
lea eax, [ebx - 4]
cmp eax, 0x1f
ja 0x59e5ae
mov ebx, edx
push ecx
push ebx
call fcn.005b5296
add esp, 8
jmp 0x59e276
push esi
push edi
call fcn.005b7120
mov cl, byte [ebp + 0x13]
add esp, 0xc
mov byte [ebx], cl
mov byte [ebx + 1], 0
mov dword [esi], edi
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp eax, 4
jl 0x59e140
mov edx, dword [ebp + 8]
xor ecx, ecx
mov bl, byte [ebp - 1]
mov bh, byte [ebp - 2]
mov dword [ebp + 0x10], ecx
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x59e0d3
test ecx, ecx
je 0x59e593
mov eax, ecx
cmp ecx, 3
jge 0x59e2cf
cmp eax, 3
jae 0x59e5a4
mov byte [ebp + eax - 8], 0
inc eax
cmp eax, 3
jl 0x59e2b3
mov dl, byte [ebp - 6]
mov bl, byte [ebp - 7]
mov bh, byte [ebp - 8]
jmp 0x59e2d2
mov dl, byte [ebp - 3]
mov al, bh
and bh, 3
shr al, 2
mov byte [ebp - 0xc], al
mov al, bl
shr al, 4
and bl, 0xf
shl bh, 4
add bh, al
shl bl, 2
mov al, dl
mov byte [ebp - 0xb], bh
and dl, 0x3f
shr al, 6
add bl, al
mov byte [ebp - 9], dl
lea edx, [ecx + 1]
mov byte [ebp - 0xa], bl
xor eax, eax
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], eax
test edx, edx
jle 0x59e45e
movzx eax, byte [ebp + eax - 0xc]
mov ecx, dword [esi + 0x10]
mov edi, dword [esi + 0x14]
mov dword [ebp - 0x18], ecx
mov dl, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp + 0xb], dl
mov dword [ebp - 0x14], edi
cmp ecx, edi
jae 0x59e34d
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edi, 0x10
jb 0x59e340
mov eax, dword [esi]
mov byte [eax + ecx], dl
mov byte [eax + ecx + 1], 0
jmp 0x59e44b
mov eax, SysReAllocString
sub eax, ecx
cmp eax, 1
jb 0x59e5b3
lea ebx, [ecx + 1]
or ebx, 0xf
cmp ebx, 0x7fffffff
jbe 0x59e372
mov ebx, SysReAllocString
jmp 0x59e390
mov edx, edi
mov eax, SysReAllocString
shr edx, 1
sub eax, edx
cmp edi, eax
jbe 0x59e388
mov ebx, SysReAllocString
jmp 0x59e390
lea eax, [edi + edx]
cmp ebx, eax
cmovb ebx, eax
lea eax, [ebx + 1]
cmp eax, 0x1000
jb 0x59e3c4
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x59e5a9
push ecx
call fcn.005b5266
add esp, 4
test eax, eax
je 0x59e5ae
mov ecx, dword [ebp - 0x18]
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x59e3da
test eax, eax
je 0x59e3d8
push eax
call fcn.005b5266
mov ecx, dword [ebp - 0x18]
add esp, 4
mov edi, eax
jmp 0x59e3da
xor edi, edi
cmp dword [ebp - 0x14], 0x10
lea eax, [ecx + 1]
mov dword [esi + 0x14], ebx
lea ebx, [edi + ecx]
mov dword [esi + 0x10], eax
mov dword [ebp - 0x18], ebx
push ecx
jb 0x59e436
mov ebx, dword [esi]
push ebx
push edi
call fcn.005b7120
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov cl, byte [ebp + 0xb]
mov byte [eax], cl
mov ecx, dword [ebp - 0x14]
inc ecx
mov byte [eax + 1], 0
cmp ecx, 0x1000
jb 0x59e42a
mov edx, dword [ebx - 4]
add ecx, 0x23
sub ebx, edx
lea eax, [ebx - 4]
cmp eax, 0x1f
ja 0x59e5ae
mov ebx, edx
push ecx
push ebx
call fcn.005b5296
add esp, 8
jmp 0x59e449
push esi
push edi
call fcn.005b7120
mov cl, byte [ebp + 0xb]
add esp, 0xc
mov byte [ebx], cl
mov byte [ebx + 1], 0
mov dword [esi], edi
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp eax, dword [ebp - 8]
jl 0x59e313
mov ecx, dword [ebp + 0x10]
cmp ecx, 3
jge 0x59e593
mov edi, dword [esi + 0x14]
inc ecx
mov dword [ebp + 0x10], ecx
mov ecx, dword [esi + 0x10]
mov dword [ebp + 8], ecx
mov dword [ebp - 0x18], edi
cmp ecx, edi
jae 0x59e495
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edi, 0x10
jb 0x59e48a
mov eax, dword [esi]
mov word [eax + ecx], 0x3d
jmp 0x59e587
mov eax, SysReAllocString
sub eax, ecx
cmp eax, 1
jb 0x59e5b3
lea ebx, [ecx + 1]
or ebx, 0xf
cmp ebx, 0x7fffffff
jbe 0x59e4ba
mov ebx, SysReAllocString
jmp 0x59e4d8
mov edx, edi
mov eax, SysReAllocString
shr edx, 1
sub eax, edx
cmp edi, eax
jbe 0x59e4d0
mov ebx, SysReAllocString
jmp 0x59e4d8
lea eax, [edi + edx]
cmp ebx, eax
cmovb ebx, eax
lea eax, [ebx + 1]
cmp eax, 0x1000
jb 0x59e50c
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x59e5a9
push ecx
call fcn.005b5266
add esp, 4
test eax, eax
je 0x59e5ae
mov ecx, dword [ebp + 8]
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x59e522
test eax, eax
je 0x59e520
push eax
call fcn.005b5266
mov ecx, dword [ebp + 8]
add esp, 4
mov edi, eax
jmp 0x59e522
xor edi, edi
cmp dword [ebp - 0x18], 0x10
lea eax, [ecx + 1]
mov dword [esi + 0x14], ebx
lea ebx, [edi + ecx]
mov dword [esi + 0x10], eax
mov dword [ebp + 8], ebx
push ecx
jb 0x59e576
mov ebx, dword [esi]
push ebx
push edi
call fcn.005b7120
mov eax, dword [ebp + 8]
add esp, 0xc
mov ecx, dword [ebp - 0x18]
inc ecx
mov word [eax], 0x3d
cmp ecx, 0x1000
jb 0x59e56a
mov edx, dword [ebx - 4]
add ecx, 0x23
sub ebx, edx
lea eax, [ebx - 4]
cmp eax, 0x1f
ja 0x59e5ae
mov ebx, edx
push ecx
push ebx
call fcn.005b5296
add esp, 8
jmp 0x59e585
push esi
push edi
call fcn.005b7120
add esp, 0xc
mov word [ebx], 0x3d
mov dword [esi], edi
mov ecx, dword [ebp + 0x10]
cmp ecx, 3
jl 0x59e467
mov eax, dword [esi + 0x10]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
call fcn.005b5624
call fcn.004461a0
call fcn.005c116d
call fcn.00446270
int3