Function at 0x403860
Capabilities:
Encode data using base64

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x407734
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xe8
mov eax, dword [0x40a008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x44], edx
mov edi, ecx
mov dword [ebp - 0x40], edi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0xf4], edi
lea edx, [ecx + 1]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0xa0], 0xd11a0fde
mov dword [ebp - 0x9c], 0x701c725d
mov dword [ebp - 0x98], 0xebe683ad
mov dword [ebp - 0x94], 0xc301594c
movaps xmm1, xmmword [ebp - 0xa0]
mov dword [ebp - 0xf0], 0x95594d9f
mov dword [ebp - 0xec], 0x385b3418
mov dword [ebp - 0xe8], 0xa7adc9e4
mov dword [ebp - 0xe4], 0x934e1701
pxor xmm1, xmmword [ebp - 0xf0]
movaps xmmword [ebp - 0xa0], xmm1
mov dword [ebp - 0x90], 0xf5de85f0
mov dword [ebp - 0x8c], 0x1ef37f3
mov dword [ebp - 0x88], 0x10e09287
mov dword [ebp - 0x84], 0xa92f254c
movaps xmm1, xmmword [ebp - 0x90]
mov dword [ebp - 0xe0], 0xa18dd7a1
mov dword [ebp - 0xdc], 0x59b861a6
mov dword [ebp - 0xd8], 0x7281c8de
mov dword [ebp - 0xd4], 0xcf4a412f
pxor xmm1, xmmword [ebp - 0xe0]
movaps xmmword [ebp - 0x90], xmm1
mov dword [ebp - 0x80], 0x6fa8bd94
mov dword [ebp - 0x7c], 0xfe596ab7
mov dword [ebp - 0x78], 0x90001b17
mov dword [ebp - 0x74], 0xda1fef16
movaps xmm1, xmmword [ebp - 0x80]
mov dword [ebp - 0xd0], 0x5c1d5f3
mov dword [ebp - 0xcc], 0x903406dc
mov dword [ebp - 0xc8], 0xe2716b78
mov dword [ebp - 0xc4], 0xac6a9b65
pxor xmm1, xmmword [ebp - 0xd0]
movaps xmmword [ebp - 0x80], xmm1
mov dword [ebp - 0x70], 0x268692b2
mov dword [ebp - 0x6c], 0xec6c06da
mov dword [ebp - 0x68], 0x5af2a5e6
mov dword [ebp - 0x64], 0xc76e207b
movaps xmm1, xmmword [ebp - 0x70]
mov dword [ebp - 0xc0], 0x5cffeac5
mov dword [ebp - 0xbc], 0xdf5e37ea
mov dword [ebp - 0xb8], 0x6dc490d2
mov dword [ebp - 0xb4], 0xe8451943
pxor xmm1, xmmword [ebp - 0xc0]
mov dword [ebp - 0x60], 0x237afce7
mov dword [ebp - 0x5c], 0x14ba2a70
mov dword [ebp - 0x58], 0x154390c
mov dword [ebp - 0x54], 0xbf9517d9
movaps xmmword [ebp - 0x70], xmm1
movaps xmm1, xmmword [ebp - 0x60]
mov dword [ebp - 0xb0], 0x237afce7
mov dword [ebp - 0xac], 0x14ba2a70
mov dword [ebp - 0xa8], 0x154390c
mov dword [ebp - 0xa4], 0xbf9517d9
pxor xmm1, xmmword [ebp - 0xb0]
movaps xmmword [ebp - 0x60], xmm1
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403aa0
sub ecx, edx
lea eax, [ebp - 0xa0]
push ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.00405c90
mov dword [ebp - 4], 1
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov eax, dword [ebx + 8]
xor esi, esi
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x48], 1
test eax, eax
je 0x403ccf
mov ecx, dword [ebp - 0x44]
dec eax
mov dword [ebx + 8], eax
mov al, byte [ecx]
inc ecx
mov byte [ebp + esi - 0x34], al
inc esi
mov ah, byte [ebp - 0x32]
mov dword [ebp - 0x44], ecx
mov ch, byte [ebp - 0x33]
mov cl, byte [ebp - 0x34]
mov byte [ebp - 0x3b], ah
mov byte [ebp - 0x39], ch
mov byte [ebp - 0x3a], cl
cmp esi, 3
jne 0x403bae
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
mov cl, ch
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
mov al, ah
and al, 0x3f
mov byte [ebp - 0x36], cl
mov byte [ebp - 0x35], al
xor esi, esi
nop dword [eax + eax]
cmp dword [ebp - 0x1c], 0x10
lea ecx, [ebp - 0x30]
movzx eax, byte [ebp + esi - 0x38]
cmovae ecx, edx
mov edx, dword [edi + 0x14]
mov al, byte [eax + ecx]
mov ecx, dword [edi + 0x10]
mov byte [ebp - 0x18], al
cmp ecx, edx
jae 0x403b8b
lea eax, [ecx + 1]
mov dword [edi + 0x10], eax
mov eax, edi
cmp edx, 0x10
jb 0x403b7e
mov eax, dword [edi]
add eax, ecx
mov cl, byte [ebp - 0x18]
mov byte [eax + 1], 0
mov byte [eax], cl
jmp 0x403b9d
push dword [ebp - 0x18]
mov byte [ebp - 0x40], 0
push dword [ebp - 0x40]
push ecx
mov ecx, edi
call fcn.004060c0
mov edx, dword [ebp - 0x30]
inc esi
cmp esi, 4
jl 0x403b50
mov ch, byte [ebp - 0x39]
xor esi, esi
mov cl, byte [ebp - 0x3a]
mov eax, dword [ebx + 8]
test eax, eax
jne 0x403ae8
mov dword [ebp - 0x44], esi
test esi, esi
je 0x403ccf
mov eax, esi
cmp esi, 3
jge 0x403bea
cmp eax, 3
jae 0x403d27
mov byte [ebp + eax - 0x34], 0
inc eax
cmp eax, 3
jl 0x403bce
mov ah, byte [ebp - 0x32]
mov ch, byte [ebp - 0x33]
mov cl, byte [ebp - 0x34]
jmp 0x403bed
mov ah, byte [ebp - 0x3b]
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, ah
mov byte [ebp - 0x37], cl
shr al, 6
and ah, 0x3f
add ch, al
mov byte [ebp - 0x35], ah
lea eax, [esi + 1]
mov byte [ebp - 0x36], ch
mov dword [ebp - 0x34], eax
test eax, eax
jle 0x403c88
xor esi, esi
nop word [eax + eax]
cmp dword [ebp - 0x1c], 0x10
lea ecx, [ebp - 0x30]
movzx eax, byte [ebp + esi - 0x38]
cmovae ecx, edx
mov al, byte [eax + ecx]
mov ecx, dword [edi + 0x10]
mov byte [ebp - 0x18], al
cmp ecx, dword [edi + 0x14]
jae 0x403c6a
cmp dword [edi + 0x14], 0x10
lea eax, [ecx + 1]
mov dword [edi + 0x10], eax
mov eax, edi
jb 0x403c5d
mov eax, dword [edi]
add eax, ecx
mov cl, byte [ebp - 0x18]
mov byte [eax + 1], 0
mov byte [eax], cl
jmp 0x403c7f
push dword [ebp - 0x18]
mov byte [ebp - 0x40], 0
push dword [ebp - 0x40]
push ecx
mov ecx, edi
call fcn.004060c0
mov edx, dword [ebp - 0x30]
inc esi
cmp esi, dword [ebp - 0x34]
jl 0x403c30
mov esi, dword [ebp - 0x44]
cmp esi, 3
jge 0x403ccf
mov eax, 3
sub eax, esi
mov dword [ebp - 0x18], eax
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0x14]
cmp ecx, edx
jae 0x403cb8
lea eax, [ecx + 1]
mov dword [edi + 0x10], eax
mov eax, edi
cmp edx, 0x10
jb 0x403cb0
mov eax, dword [edi]
mov word [eax + ecx], 0x3d
jmp 0x403cc9
push 0x3d
mov byte [ebp - 0x40], 0
push dword [ebp - 0x40]
push ecx
mov ecx, edi
call fcn.004060c0
sub dword [ebp - 0x18], 1
jne 0x403c97
mov eax, dword [ebp - 0x1c]
cmp eax, 0x10
jb 0x403d07
mov ecx, dword [ebp - 0x30]
lea edx, [eax + 1]
mov eax, ecx
cmp edx, 0x1000
jb 0x403cfd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x403cfd
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00406c0e
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040677c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004068b3
int3