Function at 0x431b70
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5606a8
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x5bf500]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x5bf500]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov ebx, edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
mov dword [esp + 0x58], 0
mov eax, ebx
mov esi, dword [esp + 0x40]
movd xmm0, ebx
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x59da70]
mulsd xmm0, qword [0x59d918]
cvttsd2si eax, xmm0
cmp esi, eax
ja 0x431c38
cmp dword [esp + 0x44], eax
je 0x431c38
push 1
push eax
lea ecx, [esp + 0x38]
call fcn.004029c0
mov ecx, dword [esp + 0x24]
test al, al
je 0x431c34
cmp dword [esp + 0x44], 0x10
lea eax, [esp + 0x30]
mov dword [esp + 0x40], esi
cmovae eax, dword [esp + 0x30]
mov byte [eax + esi], 0
mov esi, dword [esp + 0x40]
xor edi, edi
test ebx, ebx
je 0x431f2a
mov al, byte [ecx]
dec ebx
inc ecx
mov byte [esp + edi + 0x18], al
mov dl, byte [esp + 0x19]
inc edi
mov dword [esp + 0x24], ecx
mov ch, byte [esp + 0x1a]
mov cl, byte [esp + 0x18]
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x17], ch
mov byte [esp + 0x2b], dl
mov byte [esp + 0x23], cl
cmp edi, 3
jne 0x431d5d
mov al, cl
and cl, 3
shr al, 2
mov byte [esp + 0x1c], al
mov al, dl
shl cl, 4
shr al, 4
add cl, al
mov al, ch
mov byte [esp + 0x1d], cl
mov cl, dl
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
mov al, ch
and al, 0x3f
mov byte [esp + 0x1e], cl
mov byte [esp + 0x1f], al
xor ebx, ebx
jmp 0x431cb0
movzx eax, byte [esp + ebx + 0x1c]
mov cl, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
or eax, 0xffffffff
sub eax, esi
mov byte [esp + 0x2a], cl
cmp eax, 1
jbe 0x431d6a
lea edi, [esi + 1]
cmp edi, 0xfffffffe
ja 0x431d6a
cmp dword [esp + 0x44], edi
jae 0x431cf0
push esi
push edi
lea ecx, [esp + 0x38]
call fcn.00402a80
mov cl, byte [esp + 0x2a]
jmp 0x431d09
test edi, edi
jne 0x431d0f
cmp dword [esp + 0x44], 0x10
lea eax, [esp + 0x30]
mov dword [esp + 0x40], edi
cmovae eax, dword [esp + 0x30]
mov byte [eax], 0
mov esi, dword [esp + 0x40]
test edi, edi
setne al
test al, al
je 0x431d41
cmp dword [esp + 0x44], 0x10
lea eax, [esp + 0x30]
cmovae eax, dword [esp + 0x30]
mov byte [eax + esi], cl
lea eax, [esp + 0x30]
cmp dword [esp + 0x44], 0x10
mov dword [esp + 0x40], edi
cmovae eax, dword [esp + 0x30]
mov byte [eax + edi], 0
mov esi, dword [esp + 0x40]
inc ebx
cmp ebx, 4
jl 0x431cb0
mov ebx, dword [esp + 0x2c]
xor edi, edi
mov dl, byte [esp + 0x2b]
mov cl, byte [esp + 0x23]
mov ch, byte [esp + 0x17]
test ebx, ebx
je 0x431d74
mov ecx, dword [esp + 0x24]
jmp 0x431c42
push str.string_too_long
call fcn.0051a53a
test edi, edi
je 0x431f2a
mov eax, edi
cmp edi, 3
jge 0x431da3
cmp eax, 3
jae 0x431e34
mov byte [esp + eax + 0x18], 0
inc eax
cmp eax, 3
jl 0x431d86
mov ch, byte [esp + 0x1a]
mov dl, byte [esp + 0x19]
mov cl, byte [esp + 0x18]
mov al, cl
and cl, 3
shr al, 2
mov byte [esp + 0x1c], al
mov al, dl
shr al, 4
and dl, 0xf
shl cl, 4
add cl, al
shl dl, 2
mov al, ch
mov byte [esp + 0x1d], cl
shr al, 6
and ch, 0x3f
add dl, al
mov byte [esp + 0x1f], ch
xor ecx, ecx
mov byte [esp + 0x1e], dl
lea eax, [edi + 1]
mov dword [esp + 0x24], ecx
test eax, eax
jle 0x431e99
jmp 0x431df0
movzx eax, byte [esp + ecx + 0x1c]
mov dl, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
or eax, 0xffffffff
sub eax, esi
mov byte [esp + 0x17], dl
cmp eax, 1
jbe 0x431d6a
lea ebx, [esi + 1]
cmp ebx, 0xfffffffe
ja 0x431d6a
cmp dword [esp + 0x44], ebx
jae 0x431e39
push esi
push ebx
lea ecx, [esp + 0x38]
call fcn.00402a80
mov ecx, dword [esp + 0x24]
mov dl, byte [esp + 0x17]
jmp 0x431e51
call fcn.00522d33
test ebx, ebx
jne 0x431e57
cmp dword [esp + 0x44], 0x10
lea eax, [esp + 0x30]
mov dword [esp + 0x40], ebx
cmovae eax, dword [esp + 0x30]
mov byte [eax], bl
mov esi, dword [esp + 0x40]
test ebx, ebx
setne al
test al, al
je 0x431e89
cmp dword [esp + 0x44], 0x10
lea eax, [esp + 0x30]
cmovae eax, dword [esp + 0x30]
mov byte [eax + esi], dl
lea eax, [esp + 0x30]
cmp dword [esp + 0x44], 0x10
mov dword [esp + 0x40], ebx
cmovae eax, dword [esp + 0x30]
mov byte [eax + ebx], 0
mov esi, dword [esp + 0x40]
inc ecx
lea eax, [edi + 1]
mov dword [esp + 0x24], ecx
cmp ecx, eax
jl 0x431df0
cmp edi, 3
jge 0x431f2a
or eax, 0xffffffff
inc edi
sub eax, esi
cmp eax, 1
jbe 0x431d6a
lea ebx, [esi + 1]
cmp ebx, 0xfffffffe
ja 0x431d6a
cmp dword [esp + 0x44], ebx
jae 0x431ed0
push esi
push ebx
lea ecx, [esp + 0x38]
call fcn.00402a80
jmp 0x431ee8
test ebx, ebx
jne 0x431eee
cmp dword [esp + 0x44], 0x10
lea eax, [esp + 0x30]
mov dword [esp + 0x40], ebx
cmovae eax, dword [esp + 0x30]
mov byte [eax], bl
mov esi, dword [esp + 0x40]
test ebx, ebx
setne al
test al, al
je 0x431f21
cmp dword [esp + 0x44], 0x10
lea eax, [esp + 0x30]
cmovae eax, dword [esp + 0x30]
mov byte [esi + eax], 0x3d
lea eax, [esp + 0x30]
cmp dword [esp + 0x44], 0x10
mov dword [esp + 0x40], ebx
cmovae eax, dword [esp + 0x30]
mov byte [ebx + eax], 0
mov esi, dword [esp + 0x40]
cmp edi, 3
jl 0x431ea2
lea eax, [esi + 1]
push eax
call fcn.0051a596
mov ecx, dword [esp + 0x44]
mov esi, eax
inc ecx
push ecx
push 0
push esi
call fcn.00525d00
cmp dword [esp + 0x54], 0x10
lea ecx, [esp + 0x40]
push dword [esp + 0x50]
cmovae ecx, dword [esp + 0x44]
push ecx
push esi
call fcn.005256b0
add esp, 0x1c
mov dword [esp + 0x58], 0xffffffff
cmp dword [esp + 0x44], 0x10
jb 0x431f7a
push dword [esp + 0x30]
call fcn.00443e80
add esp, 4
mov dword [esp + 0x44], 0xf
mov eax, esi
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0051ece9
mov esp, ebp
pop ebp
ret