Function at 0x403c70
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41f20d
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x429040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
sub esp, 0x18
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00402aa0
lea ecx, [ebp - 0x40]
call fcn.00407040
lea eax, [ebp + 8]
mov byte [ebp - 4], 1
mov ecx, esp
push eax
call fcn.00402aa0
lea ecx, [ebp - 0x28]
call fcn.00405670
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x30]
inc eax
push eax
call fcn.004077ce
mov ecx, dword [ebp - 0x18]
add esp, 0x1c
inc ecx
mov esi, eax
mov dword [ebp - 0x48], esi
push ecx
call fcn.004077ce
add esp, 4
lea ecx, [ebp - 0x40]
cmp dword [ebp - 0x2c], 0xf
mov edx, esi
mov edi, eax
cmova ecx, dword [ebp - 0x40]
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x403d03
cmp dword [ebp - 0x14], 0xf
lea ecx, [ebp - 0x28]
mov edx, edi
cmova ecx, dword [ebp - 0x28]
sub edx, ecx
nop
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x403d20
mov ecx, edi
mov dword [0x429b65], 0
mov dword [0x429b69], 0
mov dword [0x429b61], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403d50
sub ecx, edx
mov dword [0x429b5d], 0
xor eax, eax
mov dword [0x429b6d], ecx
xor esi, esi
nop dword [eax]
cdq
idiv ecx
movzx eax, byte [edx + edi]
mov byte [esi + 0x429a5c], al
mov ecx, dword [0x429b5d]
movzx eax, cl
mov byte [ecx + 0x42995c], al
mov eax, dword [0x429b5d]
inc eax
mov dword [0x429b5d], eax
mov esi, eax
cmp eax, 0x100
jge 0x403da8
mov ecx, dword [0x429b6d]
jmp 0x403d70
xor esi, esi
xor edx, edx
xor eax, eax
mov dword [0x429b5d], esi
xor edi, edi
nop word [eax + eax]
movzx eax, byte [eax + 0x429a5c]
add eax, dword [0x429b61]
movzx ecx, byte [edx + 0x42995c]
add ecx, eax
movzx eax, cl
mov dword [0x429b61], eax
cmp edi, eax
je 0x403e25
movzx eax, byte [eax + 0x42995c]
xor byte [edx + 0x42995c], al
mov eax, dword [0x429b5d]
mov ecx, dword [0x429b61]
movzx eax, byte [eax + 0x42995c]
xor byte [ecx + 0x42995c], al
mov eax, dword [0x429b61]
mov ecx, dword [0x429b5d]
movzx eax, byte [eax + 0x42995c]
xor byte [ecx + 0x42995c], al
mov esi, dword [0x429b5d]
inc esi
mov edx, esi
mov dword [0x429b5d], esi
mov eax, edx
mov edi, edx
cmp edx, 0x100
jl 0x403dc0
mov edi, dword [ebp - 0x48]
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403e42
sub ecx, edx
xor edx, edx
mov dword [0x429b6d], ecx
mov dword [0x429b5d], edx
test ecx, ecx
jle 0x403f25
mov eax, dword [0x429b65]
inc eax
movzx esi, al
mov dword [0x429b65], esi
movzx eax, byte [esi + 0x42995c]
add eax, dword [0x429b69]
movzx eax, al
mov dword [0x429b69], eax
cmp esi, eax
je 0x403ed7
movzx eax, byte [eax + 0x42995c]
xor byte [esi + 0x42995c], al
mov eax, dword [0x429b65]
mov ecx, dword [0x429b69]
movzx eax, byte [eax + 0x42995c]
xor byte [ecx + 0x42995c], al
mov eax, dword [0x429b69]
mov ecx, dword [0x429b65]
movzx eax, byte [eax + 0x42995c]
xor byte [ecx + 0x42995c], al
mov eax, dword [0x429b69]
mov esi, dword [0x429b65]
mov edx, dword [0x429b5d]
movzx ecx, byte [eax + 0x42995c]
movzx eax, byte [esi + 0x42995c]
add ecx, eax
movzx eax, cl
mov bl, byte [eax + 0x42995c]
mov byte [0x429b5c], bl
movsx eax, byte [edx + edi]
movzx ecx, bl
cmp ecx, eax
jne 0x403f09
xor bl, bl
mov byte [0x429b5c], bl
xor byte [edx + edi], bl
mov edx, dword [0x429b5d]
inc edx
mov dword [0x429b5d], edx
cmp edx, dword [0x429b6d]
jl 0x403e61
mov ecx, edi
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403f30
sub ecx, edx
mov eax, 0xaaaaaaab
mul ecx
mov eax, ecx
shr edx, 1
lea edx, [edx + edx*2]
sub eax, edx
je 0x403f4e
lea ecx, [edx + 3]
shl ecx, 3
mov eax, 0xaaaaaaab
mul ecx
shr edx, 2
inc edx
push edx
call fcn.00410845
mov ebx, edi
mov dword [ebp - 0x44], eax
add esp, 4
lea edx, [ebx + 1]
nop dword [eax]
mov cl, byte [ebx]
inc ebx
test cl, cl
jne 0x403f70
sub ebx, edx
mov esi, eax
xor edx, edx
lea ecx, [ebx - 2]
test ecx, ecx
jle 0x40400c
dec ecx
mov eax, 0xaaaaaaab
mul ecx
add edi, 2
shr edx, 1
inc edx
lea eax, [edx + edx*2]
mov dword [ebp - 0x4c], eax
nop dword [eax]
movzx eax, byte [edi - 2]
lea edi, [edi + 3]
shr eax, 2
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], al
movsx ecx, byte [edi - 5]
movzx eax, byte [edi - 4]
and ecx, 3
shr eax, 4
shl ecx, 4
or ecx, eax
movzx eax, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
movsx eax, byte [edi - 4]
movzx ecx, byte [edi - 3]
and eax, 0xf
shl eax, 2
shr ecx, 6
or ecx, eax
movzx eax, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 2], al
movsx eax, byte [edi - 3]
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 3], al
add esi, 4
sub edx, 1
jne 0x403fa0
mov edi, dword [ebp - 0x48]
mov edx, dword [ebp - 0x4c]
sub ebx, edx
test bl, 2
je 0x40405a
movzx eax, byte [edx + edi]
shr eax, 2
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], al
movsx ecx, byte [edx + edi]
movzx eax, byte [edx + edi + 1]
and ecx, 3
shr eax, 4
shl ecx, 4
or ecx, eax
movzx eax, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
movsx eax, byte [edx + edi + 1]
and eax, 0xf
movzx eax, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 2], al
mov byte [esi + 3], 0x3d
jmp 0x404089
test bl, 1
je 0x40408c
movzx eax, byte [edx + edi]
shr eax, 2
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], al
movsx eax, byte [edx + edi]
and eax, 3
shl eax, 4
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
mov word [esi + 2], 0x3d3d
add esi, 4
mov byte [esi], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x4040c3
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4040b9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404166
push ecx
push edx
call fcn.0040779d
add esp, 8
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp ecx, 0xf
jbe 0x404105
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4040fb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404166
push ecx
push edx
call fcn.0040779d
add esp, 8
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
cmp ecx, 0xf
jbe 0x404147
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40413d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404166
push ecx
push edx
call fcn.0040779d
add esp, 8
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040730e
mov esp, ebp
pop ebp
ret
call fcn.0040b190
int3