Function at 0x401490
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40511d
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x409004]
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 ebx, edx
mov dword [ebp - 0x34], ebx
mov esi, ecx
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x38], eax
cmp eax, 4
jb 0x4017b5
test al, 3
jne 0x4017b5
cmp byte [0x409588], 0
jne 0x401570
push pe_nt_image_headers32
push 0xffffffffffffffff
push 0x409590
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov ecx, 0x41
nop
lea eax, [ecx - 0x41]
mov byte [ecx + 0x409590], al
inc ecx
cmp ecx, 0x5a
jle 0x401500
mov ecx, 0x61
lea eax, [ecx - 0x47]
mov byte [ecx + 0x409590], al
inc ecx
cmp ecx, 0x7a
jle 0x401514
mov ecx, 0x30
nop dword [eax + eax]
lea eax, [ecx + 4]
mov byte [ecx + 0x409590], al
inc ecx
cmp ecx, 0x39
jle 0x401530
mov eax, dword [ebp - 0x38]
mov byte [0x4095bb], 0x3e
mov byte [0x4095bf], 0x3f
mov byte [0x4095bd], 0x3e
mov byte [0x4095ef], 0x3f
mov byte [0x4095cd], 0
mov byte [0x409588], 1
nop dword [eax]
lea edi, [eax + eax*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 0x4015a0
mov dword [ebp - 0x18], edi
mov byte [ebp + edi - 0x28], 0
jmp 0x4015d0
cmp edi, 0xf
ja 0x4015be
push edi
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], edi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov byte [ebp + edi - 0x28], 0
jmp 0x4015d0
push ecx
push edi
mov byte [ebp - 0x2c], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x2c]
push edi
call fcn.00403640
mov eax, 0xaaaaaaab
mul edi
shr edx, 1
mov dword [ebp - 0x30], edx
mov edx, 0
mov dword [ebp - 0x2c], edx
je 0x4016f6
mov edi, dword [ebp - 0x30]
xor ebx, ebx
nop
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x4015fa
mov eax, dword [esi]
lea eax, [eax + edx*4]
mov dword [ebp - 0x30], eax
mov eax, esi
jb 0x401606
mov eax, dword [esi]
mov ecx, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
cmovae edx, dword [ebp - 0x28]
movsx eax, byte [eax + ecx*4 + 1]
mov cl, byte [eax + 0x409590]
mov eax, dword [ebp - 0x30]
sar cl, 4
and cl, 3
movsx eax, byte [eax]
mov al, byte [eax + 0x409590]
shl al, 2
or cl, al
mov eax, esi
mov byte [ebx + edx], cl
mov ecx, dword [esi + 0x14]
cmp ecx, 0x10
jb 0x401645
mov eax, dword [esi]
mov edx, dword [ebp - 0x2c]
lea eax, [eax + edx*4]
inc eax
mov dword [ebp - 0x30], eax
mov eax, esi
cmp ecx, 0x10
jb 0x401658
mov eax, dword [esi]
mov ecx, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
cmovae edx, dword [ebp - 0x28]
movsx eax, byte [eax + ecx*4 + 2]
mov cl, byte [eax + 0x409590]
mov eax, dword [ebp - 0x30]
sar cl, 2
and cl, 0xf
movsx eax, byte [eax]
mov al, byte [eax + 0x409590]
shl al, 4
or cl, al
mov eax, esi
mov byte [ebx + edx + 1], cl
mov ecx, dword [esi + 0x14]
cmp ecx, 0x10
jb 0x401698
mov eax, dword [esi]
mov edx, dword [ebp - 0x2c]
lea eax, [eax + edx*4]
add eax, 2
mov dword [ebp - 0x30], eax
mov eax, esi
cmp ecx, 0x10
jb 0x4016ad
mov eax, dword [esi]
mov ecx, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
cmovae edx, dword [ebp - 0x28]
movsx eax, byte [eax + ecx*4 + 3]
mov cl, byte [eax + 0x409590]
mov eax, dword [ebp - 0x30]
and cl, 0x3f
movsx eax, byte [eax]
mov al, byte [eax + 0x409590]
shl al, 6
or cl, al
mov byte [ebx + edx + 2], cl
add ebx, 3
mov edx, dword [ebp - 0x2c]
inc edx
mov dword [ebp - 0x2c], edx
cmp edx, edi
jb 0x4015f0
mov edi, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x34]
mov ecx, dword [esi + 0x14]
mov eax, esi
cmp ecx, 0x10
jb 0x401702
mov eax, dword [esi]
mov edx, dword [ebp - 0x38]
cmp byte [eax + edx - 1], 0x3d
jne 0x40171c
dec edi
cmp ecx, 0x10
jb 0x401714
mov esi, dword [esi]
cmp byte [esi + edx - 2], 0x3d
jne 0x40171c
dec edi
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
mov dword [ebx + 0x10], 0
mov eax, ebx
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebx + 0x14], 0x10
jb 0x401738
mov eax, dword [ebx]
mov byte [eax], 0
mov esi, dword [ebx + 0x14]
mov eax, esi
mov edx, dword [ebx + 0x10]
sub eax, edx
cmp edi, eax
ja 0x40176a
lea eax, [edx + edi]
mov dword [ebx + 0x10], eax
cmp esi, 0x10
jb 0x401756
mov ebx, dword [ebx]
push edi
lea esi, [ebx + edx]
push ecx
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + edi], 0
jmp 0x40177b
push edi
push ecx
mov byte [ebp - 0x34], 0
mov ecx, ebx
push dword [ebp - 0x34]
push edi
call fcn.004038e0
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x4017b1
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4017a7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4017a7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004044f5
add esp, 8
mov al, 1
jmp 0x4017b7
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.0040438d
mov esp, ebp
pop ebp
ret