Function at 0x40b1f0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f82e8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x672494]
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 dword [ebp - 0x38], ebx
mov esi, ecx
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x3c], eax
cmp eax, 4
jb 0x40b4c4
test al, 3
jne 0x40b4c4
cmp byte [0x67f36c], 0
jne 0x40b2be
push 0x100
push 0xffffffffffffffff
push 0x67f6a0
call fcn.0056c1d0
add esp, 0xc
mov ecx, 0x41
nop dword [eax + eax]
lea eax, [ecx - 0x41]
mov byte [ecx + 0x67f6a0], al
inc ecx
cmp ecx, 0x5a
jle 0x40b260
mov ecx, 0x61
lea eax, [ecx - 0x47]
mov byte [ecx + 0x67f6a0], al
inc ecx
cmp ecx, 0x7a
jle 0x40b274
mov ecx, 0x30
nop dword [eax + eax]
lea eax, [ecx + 4]
mov byte [ecx + 0x67f6a0], al
inc ecx
cmp ecx, 0x39
jle 0x40b290
mov eax, dword [ebp - 0x3c]
mov byte [0x67f6cb], 0x3e
mov byte [0x67f6cf], 0x3f
mov byte [0x67f6dd], 0
mov byte [0x67f36c], 1
lea edi, [eax + eax*2]
mov dword [ebp - 0x1c], 0
shr edi, 2
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov dword [ebp - 4], 0
test edi, edi
jne 0x40b2ee
mov dword [ebp - 0x1c], edi
mov byte [ebp + edi - 0x2c], 0
jmp 0x40b2f9
push 0
push edi
lea ecx, [ebp - 0x2c]
call fcn.0040b5e0
mov eax, 0xaaaaaaab
mov dword [ebp - 0x30], 0
mul edi
mov eax, edx
shr eax, 1
mov dword [ebp - 0x40], eax
je 0x40b410
xor ebx, ebx
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x34], esi
jb 0x40b324
mov ecx, dword [esi]
mov dword [ebp - 0x34], ecx
mov ecx, esi
jb 0x40b32a
mov ecx, dword [esi]
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
mov edi, dword [ebp - 0x30]
cmp dword [ebp - 0x18], 0x10
movsx eax, byte [ecx + eax*4 + 1]
cmovae edx, dword [ebp - 0x2c]
mov cl, byte [eax + 0x67f6a0]
mov eax, dword [ebp - 0x34]
sar cl, 4
and cl, 3
mov dword [ebp - 0x34], esi
movsx eax, byte [eax + edi*4]
mov al, byte [eax + 0x67f6a0]
shl al, 2
or cl, al
mov byte [ebx + edx], cl
cmp dword [esi + 0x14], 0x10
jb 0x40b36f
mov eax, dword [esi]
mov dword [ebp - 0x34], eax
mov eax, esi
jb 0x40b375
mov eax, dword [esi]
mov ecx, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
mov edi, dword [ebp - 0x30]
cmp dword [ebp - 0x18], 0x10
movsx eax, byte [eax + ecx*4 + 2]
cmovae edx, dword [ebp - 0x2c]
mov cl, byte [eax + 0x67f6a0]
mov eax, dword [ebp - 0x34]
sar cl, 2
and cl, 0xf
mov dword [ebp - 0x34], esi
movsx eax, byte [eax + edi*4 + 1]
mov al, byte [eax + 0x67f6a0]
shl al, 4
or cl, al
mov byte [ebx + edx + 1], cl
cmp dword [esi + 0x14], 0x10
jb 0x40b3bc
mov eax, dword [esi]
mov dword [ebp - 0x34], eax
mov eax, esi
jb 0x40b3c2
mov eax, dword [esi]
mov ecx, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
mov edi, dword [ebp - 0x30]
cmp dword [ebp - 0x18], 0x10
movsx eax, byte [eax + ecx*4 + 3]
cmovae edx, dword [ebp - 0x2c]
mov cl, byte [eax + 0x67f6a0]
mov eax, dword [ebp - 0x34]
and cl, 0x3f
movsx eax, byte [eax + edi*4 + 2]
mov al, byte [eax + 0x67f6a0]
shl al, 6
or cl, al
mov byte [ebx + edx + 2], cl
mov ecx, edi
inc ecx
add ebx, 3
mov dword [ebp - 0x30], ecx
cmp ecx, dword [ebp - 0x40]
jb 0x40b316
mov edi, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x38]
mov ecx, dword [esi + 0x14]
mov eax, esi
cmp ecx, 0x10
jb 0x40b41c
mov eax, dword [esi]
mov edx, dword [ebp - 0x3c]
cmp byte [eax + edx - 1], 0x3d
jne 0x40b436
dec edi
cmp ecx, 0x10
jb 0x40b42e
mov esi, dword [esi]
cmp byte [esi + edx - 2], 0x3d
jne 0x40b436
dec edi
cmp dword [ebp - 0x18], 0x10
lea esi, [ebp - 0x2c]
mov dword [ebx + 0x10], 0
mov eax, ebx
cmovae esi, dword [ebp - 0x2c]
cmp dword [ebx + 0x14], 0x10
jb 0x40b452
mov eax, dword [ebx]
mov byte [eax], 0
mov eax, ebx
mov ecx, dword [ebx + 0x14]
cmp ecx, 0x10
jb 0x40b461
mov eax, dword [ebx]
mov edx, dword [ebx + 0x10]
add edx, eax
mov eax, ebx
cmp ecx, 0x10
jb 0x40b46f
mov eax, dword [ebx]
add eax, dword [ebx + 0x10]
sub edx, eax
mov dword [ebp - 0x38], ebx
cmp ecx, 0x10
jb 0x40b480
mov ecx, dword [ebx]
jmp 0x40b483
mov ecx, dword [ebp - 0x38]
push edi
push esi
sub eax, ecx
mov ecx, ebx
push edx
push eax
call fcn.0040b9b0
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x40b4c0
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40b4b6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b4e2
push edx
push ecx
call fcn.004d0c91
add esp, 8
mov al, 1
jmp 0x40b4c6
xor al, al
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.004d0a85
mov esp, ebp
pop ebp
ret
call fcn.0056efe9
int3