Function at 0x402390
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x416808
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4241a4]
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
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
mov ebx, dword [esi + 0x10]
mov dword [ebp - 0x40], ebx
cmp ebx, 4
jb 0x402697
test bl, 3
jne 0x402697
cmp byte [0x4247c8], 0
jne 0x40245b
push 0x100
push 0xffffffffffffffff
push 0x4246c8
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov ecx, 0x41
nop
lea eax, [ecx - 0x41]
mov byte [ecx + 0x4246c8], al
inc ecx
cmp ecx, 0x5a
jle 0x402400
mov ecx, 0x61
lea eax, [ecx - 0x47]
mov byte [ecx + 0x4246c8], al
inc ecx
cmp ecx, 0x7a
jle 0x402414
mov ecx, 0x30
nop dword [eax + eax]
lea eax, [ecx + 4]
mov byte [ecx + 0x4246c8], al
inc ecx
cmp ecx, 0x39
jle 0x402430
mov byte [0x4246f3], 0x3e
mov byte [0x4246f7], 0x3f
mov byte [0x424705], 0
mov byte [0x4247c8], 1
cmp byte [ebp + 0x10], 0
je 0x40248f
xor ecx, ecx
test ebx, ebx
je 0x40248f
mov edx, dword [esi + 0x14]
nop word [eax + eax]
mov eax, esi
cmp edx, 0x10
jb 0x402479
mov eax, dword [esi]
movzx eax, byte [eax + ecx]
cmp byte [eax + 0x4246c8], 0xff
je 0x402697
inc ecx
cmp ecx, ebx
jb 0x402470
lea edi, [ebx + ebx*2]
mov dword [ebp - 0x18], 0
shr edi, 2
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 0
test edi, edi
jne 0x4024bf
mov dword [ebp - 0x18], edi
mov byte [ebp + edi - 0x28], 0
jmp 0x4024ca
push 0
push edi
lea ecx, [ebp - 0x28]
call fcn.00402740
mov eax, 0xaaaaaaab
mov dword [ebp - 0x2c], 0
mul edi
mov eax, edx
shr eax, 1
mov dword [ebp - 0x38], eax
je 0x4025e1
xor ebx, ebx
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x30], esi
jb 0x4024f5
mov ecx, dword [esi]
mov dword [ebp - 0x30], ecx
mov ecx, esi
jb 0x4024fb
mov ecx, dword [esi]
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
mov edi, dword [ebp - 0x2c]
cmp dword [ebp - 0x14], 0x10
movsx eax, byte [ecx + eax*4 + 1]
cmovae edx, dword [ebp - 0x28]
mov cl, byte [eax + 0x4246c8]
mov eax, dword [ebp - 0x30]
sar cl, 4
and cl, 3
mov dword [ebp - 0x30], esi
movsx eax, byte [eax + edi*4]
mov al, byte [eax + 0x4246c8]
shl al, 2
or cl, al
mov byte [ebx + edx], cl
cmp dword [esi + 0x14], 0x10
jb 0x402540
mov eax, dword [esi]
mov dword [ebp - 0x30], eax
mov eax, esi
jb 0x402546
mov eax, dword [esi]
mov ecx, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
mov edi, dword [ebp - 0x2c]
cmp dword [ebp - 0x14], 0x10
movsx eax, byte [eax + ecx*4 + 2]
cmovae edx, dword [ebp - 0x28]
mov cl, byte [eax + 0x4246c8]
mov eax, dword [ebp - 0x30]
sar cl, 2
and cl, 0xf
mov dword [ebp - 0x30], esi
movsx eax, byte [eax + edi*4 + 1]
mov al, byte [eax + 0x4246c8]
shl al, 4
or cl, al
mov byte [ebx + edx + 1], cl
cmp dword [esi + 0x14], 0x10
jb 0x40258d
mov eax, dword [esi]
mov dword [ebp - 0x30], eax
mov eax, esi
jb 0x402593
mov eax, dword [esi]
mov ecx, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
mov edi, dword [ebp - 0x2c]
cmp dword [ebp - 0x14], 0x10
movsx eax, byte [eax + ecx*4 + 3]
cmovae edx, dword [ebp - 0x28]
mov cl, byte [eax + 0x4246c8]
mov eax, dword [ebp - 0x30]
and cl, 0x3f
movsx eax, byte [eax + edi*4 + 2]
mov al, byte [eax + 0x4246c8]
shl al, 6
or cl, al
mov byte [ebx + edx + 2], cl
mov ecx, edi
inc ecx
add ebx, 3
mov dword [ebp - 0x2c], ecx
cmp ecx, dword [ebp - 0x38]
jb 0x4024e7
mov edi, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x40]
mov ecx, dword [esi + 0x14]
mov eax, esi
cmp ecx, 0x10
jb 0x4025ed
mov eax, dword [esi]
cmp byte [eax + ebx - 1], 0x3d
jne 0x402604
dec edi
cmp ecx, 0x10
jb 0x4025fc
mov esi, dword [esi]
cmp byte [esi + ebx - 2], 0x3d
jne 0x402604
dec edi
mov eax, dword [ebp - 0x34]
lea ebx, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
mov ecx, eax
cmovae ebx, dword [ebp - 0x28]
cmp dword [eax + 0x14], 0x10
mov dword [eax + 0x10], 0
jb 0x402623
mov ecx, dword [eax]
mov byte [ecx], 0
mov ecx, eax
mov edx, dword [eax + 0x14]
cmp edx, 0x10
jb 0x402632
mov ecx, dword [eax]
mov esi, dword [eax + 0x10]
add esi, ecx
mov ecx, eax
cmp edx, 0x10
jb 0x402640
mov ecx, dword [eax]
add ecx, dword [eax + 0x10]
sub esi, ecx
cmp edx, 0x10
jb 0x40264e
mov edx, dword [eax]
jmp 0x402650
mov edx, eax
push edi
push ebx
sub ecx, edx
push esi
push ecx
mov ecx, eax
call fcn.004028c0
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x402693
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402689
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402689
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0040fd80
add esp, 8
mov al, 1
jmp 0x402699
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 - 0x10]
xor ecx, ebp
call fcn.0040fd3f
mov esp, ebp
pop ebp
ret