Function at 0x403750
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x564f39
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x5d51c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x1c], 0
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
mov dword [ebp - 4], eax
xor ebx, ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], 1
test eax, eax
je 0x403a99
mov edi, edi
dec eax
mov dword [ebp + 8], eax
mov al, byte [edx]
inc edx
mov byte [ebp + ebx - 0x14], al
inc ebx
mov ah, byte [ebp - 0x12]
mov ch, byte [ebp - 0x13]
mov cl, byte [ebp - 0x14]
mov dword [ebp - 0x24], edx
mov byte [ebp - 0xf], ah
mov byte [ebp - 0xd], ch
mov byte [ebp - 0xe], cl
cmp ebx, 3
jne 0x4038c1
mov al, cl
and cl, 3
shr al, 2
mov byte [ebp - 0x18], al
mov al, ch
shl cl, 4
shr al, 4
add cl, al
mov al, ah
mov byte [ebp - 0x17], cl
mov cl, ch
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
mov al, ah
and al, 0x3f
mov byte [ebp - 0x16], cl
mov byte [ebp - 0x15], al
xor ebx, ebx
lea ecx, [ecx]
cmp dword [0x5d64a4], 8
mov ecx, 0x5d6490
movzx eax, byte [ebp + ebx - 0x18]
cmovae ecx, dword [0x5d6490]
movzx edx, word [ecx + eax*2]
or eax, 0xffffffff
mov ecx, dword [edi + 0x10]
sub eax, ecx
mov dword [ebp - 0x20], edx
cmp eax, 1
jbe 0x4038f6
lea esi, [ecx + 1]
cmp esi, 0x7ffffffe
ja 0x4038f6
mov eax, dword [edi + 0x14]
cmp eax, esi
jae 0x403873
push ecx
push esi
mov ecx, edi
call fcn.004044b0
mov edx, dword [ebp - 0x20]
test esi, esi
je 0x4038ac
cmp dword [edi + 0x14], 8
mov ecx, dword [edi + 0x10]
jb 0x403891
mov eax, dword [edi]
jmp 0x403893
test esi, esi
jne 0x403866
mov dword [edi + 0x10], esi
cmp eax, 8
jb 0x403888
mov eax, dword [edi]
xor ecx, ecx
mov word [eax], cx
jmp 0x4038ac
mov eax, edi
xor ecx, ecx
mov word [eax], cx
jmp 0x4038ac
mov eax, edi
mov word [eax + ecx*2], dx
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], esi
jb 0x4038a4
mov eax, dword [edi]
jmp 0x4038a6
mov eax, edi
xor ecx, ecx
mov word [eax + esi*2], cx
inc ebx
cmp ebx, 4
jl 0x403810
mov edx, dword [ebp - 0x24]
xor ebx, ebx
mov ch, byte [ebp - 0xd]
mov cl, byte [ebp - 0xe]
mov eax, dword [ebp + 8]
test eax, eax
jne 0x4037b0
test ebx, ebx
je 0x403a99
mov eax, ebx
cmp ebx, 3
jge 0x403905
cmp eax, 3
jae 0x403900
mov byte [ebp + eax - 0x14], 0
inc eax
cmp eax, 3
jl 0x4038de
mov dl, byte [ebp - 0x12]
mov ch, byte [ebp - 0x13]
mov cl, byte [ebp - 0x14]
jmp 0x403908
push str.string_too_long
call fcn.00564de1
call fcn.0054aead
mov dl, byte [ebp - 0xf]
mov al, cl
and cl, 3
shr al, 2
mov byte [ebp - 0x18], al
mov al, ch
shr al, 4
and ch, 0xf
shl cl, 4
add cl, al
shl ch, 2
mov al, dl
mov byte [ebp - 0x17], cl
shr al, 6
and dl, 0x3f
add ch, al
mov byte [ebp - 0x15], dl
xor edx, edx
mov byte [ebp - 0x16], ch
lea eax, [ebx + 1]
mov dword [ebp + 8], edx
test eax, eax
jle 0x403a01
jmp 0x403950
cmp dword [0x5d64a4], 8
mov ecx, 0x5d6490
movzx eax, byte [ebp + edx - 0x18]
cmovae ecx, dword [0x5d6490]
movzx eax, word [ecx + eax*2]
mov ecx, dword [edi + 0x10]
mov dword [ebp - 0x24], eax
or eax, 0xffffffff
sub eax, ecx
cmp eax, 1
jbe 0x4038f6
lea esi, [ecx + 1]
cmp esi, 0x7ffffffe
ja 0x4038f6
mov eax, dword [edi + 0x14]
cmp eax, esi
jae 0x4039b3
push ecx
push esi
mov ecx, edi
call fcn.004044b0
mov edx, dword [ebp + 8]
test esi, esi
je 0x4039f2
cmp dword [edi + 0x14], 8
mov ecx, dword [edi + 0x10]
jb 0x4039d1
mov eax, dword [edi]
jmp 0x4039d3
test esi, esi
jne 0x4039a6
mov dword [edi + 0x10], esi
cmp eax, 8
jb 0x4039c8
mov eax, dword [edi]
xor ecx, ecx
mov word [eax], cx
jmp 0x4039f2
mov eax, edi
xor ecx, ecx
mov word [eax], cx
jmp 0x4039f2
mov eax, edi
mov edx, dword [ebp - 0x24]
mov word [eax + ecx*2], dx
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], esi
jb 0x4039e7
mov eax, dword [edi]
jmp 0x4039e9
mov eax, edi
mov edx, dword [ebp + 8]
xor ecx, ecx
mov word [eax + esi*2], cx
inc edx
lea eax, [ebx + 1]
mov dword [ebp + 8], edx
cmp edx, eax
jl 0x403950
cmp ebx, 3
jge 0x403a99
mov edx, 0x3d
nop
mov ecx, dword [edi + 0x10]
or eax, 0xffffffff
sub eax, ecx
inc ebx
cmp eax, 1
jbe 0x4038f6
lea esi, [ecx + 1]
cmp esi, 0x7ffffffe
ja 0x4038f6
mov eax, dword [edi + 0x14]
cmp eax, esi
jae 0x403a57
push ecx
push esi
mov ecx, edi
call fcn.004044b0
mov edx, 0x3d
test esi, esi
je 0x403a90
cmp dword [edi + 0x14], 8
mov ecx, dword [edi + 0x10]
jb 0x403a75
mov eax, dword [edi]
jmp 0x403a77
test esi, esi
jne 0x403a4a
mov dword [edi + 0x10], esi
cmp eax, 8
jb 0x403a6c
mov eax, dword [edi]
xor ecx, ecx
mov word [eax], cx
jmp 0x403a90
mov eax, edi
xor ecx, ecx
mov word [eax], cx
jmp 0x403a90
mov eax, edi
mov word [eax + ecx*2], dx
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], esi
jb 0x403a88
mov eax, dword [edi]
jmp 0x403a8a
mov eax, edi
xor ecx, ecx
mov word [eax + esi*2], cx
cmp ebx, 3
jl 0x403a10
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret