Function at 0x52f76e
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x48
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x54]
lea esi, [ebp - 0x34]
mov dword [eax], str.Basickeep_alivecloseHostHTTPTLS
mov dword [esi], eax
mov dword [eax + 4], 5
lea eax, [ebp - 0x4c]
mov dword [esi + 4], 0x41de0f
mov dword [eax], str.failed_to_write_whole_buffer
mov dword [eax + 4], 2
mov dword [eax + 8], esi
mov dword [eax + 0xc], 1
mov dword [eax + 0x10], 0
mov ecx, dword [edx + 0x14]
mov edx, dword [edx + 0x18]
push eax
call fcn.00445550
add esp, 4
mov bl, 1
test al, al
jne 0x52fda9
mov edi, dword [ebp + 8]
mov ecx, esi
mov edx, dword [edi]
push dword [edi + 8]
call fcn.0041bed0
add esp, 4
mov ebx, dword [esi + 8]
cmp ebx, dword [esi + 4]
jne 0x52f7f6
mov ecx, esi
mov edx, ebx
call fcn.004bb282
mov ebx, dword [esi + 8]
mov eax, dword [ebp - 0x34]
mov byte [eax + ebx], 0x3a
inc ebx
mov dword [ebp - 0x1c], eax
mov edx, dword [edi + 0xc]
mov dword [ebp - 0x2c], ebx
test edx, edx
je 0x52f823
mov eax, dword [edi + 0x14]
mov ecx, esi
add eax, edx
push eax
call fcn.004ba2b7
add esp, 4
mov eax, dword [esi]
mov ebx, dword [esi + 8]
mov dword [ebp - 0x1c], eax
mov ecx, ebx
mov edx, 0x555880
call fcn.0041c91c
test eax, eax
je 0x52fe7a
mov ecx, edx
call fcn.00475195
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], edx
mov edi, edx
mov ecx, ebx
mov edx, 0x555880
mov esi, eax
mov dword [ebp - 0x44], 0
call fcn.0041c91c
test eax, eax
je 0x52fe93
test edx, edx
mov dword [ebp - 0x28], ebx
je 0x52f8a2
xor ebx, ebx
cmp edi, edx
jb 0x52fdb3
lea eax, [esi + ebx]
cmp edx, 2
jb 0x52f894
lea ecx, [edx - 1]
push ecx
push 0
push eax
mov edi, edx
call sub.msvcrt.dll_memset
add esp, 0xc
lea ebx, [edi + ebx - 1]
lea eax, [esi + ebx]
inc ebx
mov dword [ebp - 0x24], esi
mov byte [eax], 0
mov edx, ebx
mov ebx, dword [ebp - 0x28]
jmp 0x52f8a5
mov dword [ebp - 0x24], esi
mov eax, ebx
xor ecx, ecx
mov esi, 0
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x44], edx
sub eax, 0x1a
cmovb eax, ecx
mov dword [ebp - 0x20], eax
jbe 0x52fb75
xor esi, esi
mov ecx, 0x20
lea eax, [esi + 0x1a]
cmp eax, ebx
ja 0x52fe19
mov eax, dword [ebp - 0x14]
test ecx, ecx
je 0x52fe24
cmp ecx, eax
ja 0x52fe32
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], esi
mov edx, dword [eax + esi]
mov eax, dword [eax + esi + 4]
mov esi, dword [ebp - 0x24]
bswap edx
bswap eax
mov edi, edx
shr edi, 0x1a
mov bl, byte [edi + 0x547ef8]
mov edi, edx
shr edi, 0x14
and edi, 0x3f
mov byte [esi + ecx - 0x20], bl
mov bl, byte [edi + 0x547ef8]
mov edi, edx
shr edi, 0xe
and edi, 0x3f
mov byte [esi + ecx - 0x1f], bl
mov bl, byte [edi + 0x547ef8]
mov edi, edx
shr edi, 8
and edi, 0x3f
mov byte [esi + ecx - 0x1e], bl
mov bl, byte [edi + 0x547ef8]
mov edi, edx
shld edx, eax, 4
shr edi, 2
and edx, 0x3f
and edi, 0x3f
mov byte [esi + ecx - 0x1d], bl
mov bl, byte [edi + 0x547ef8]
mov byte [esi + ecx - 0x1c], bl
mov ebx, dword [ebp - 0x1c]
mov dl, byte [edx + 0x547ef8]
mov byte [esi + ecx - 0x1b], dl
mov edx, eax
shr eax, 0x10
shr edx, 0x16
and eax, 0x3f
and edx, 0x3f
mov dl, byte [edx + 0x547ef8]
mov byte [esi + ecx - 0x1a], dl
mov al, byte [eax + 0x547ef8]
mov byte [esi + ecx - 0x19], al
mov eax, dword [ebp - 0x10]
mov edi, dword [ebx + eax + 6]
mov eax, dword [ebp - 0x10]
bswap edi
mov eax, dword [ebx + eax + 0xa]
mov edx, edi
shr edx, 0x1a
mov dl, byte [edx + 0x547ef8]
bswap eax
mov byte [esi + ecx - 0x18], dl
mov edx, edi
shr edx, 0x14
and edx, 0x3f
mov dl, byte [edx + 0x547ef8]
mov byte [esi + ecx - 0x17], dl
mov edx, edi
shr edx, 0xe
and edx, 0x3f
mov dl, byte [edx + 0x547ef8]
mov byte [esi + ecx - 0x16], dl
mov edx, edi
shr edx, 8
and edx, 0x3f
mov dl, byte [edx + 0x547ef8]
mov byte [esi + ecx - 0x15], dl
mov edx, edi
shld edi, eax, 4
shr edx, 2
and edi, 0x3f
and edx, 0x3f
mov dl, byte [edx + 0x547ef8]
mov byte [esi + ecx - 0x14], dl
mov dl, byte [edi + 0x547ef8]
mov byte [esi + ecx - 0x13], dl
mov edx, eax
shr eax, 0x10
shr edx, 0x16
and eax, 0x3f
and edx, 0x3f
mov dl, byte [edx + 0x547ef8]
mov byte [esi + ecx - 0x12], dl
mov al, byte [eax + 0x547ef8]
mov byte [esi + ecx - 0x11], al
mov eax, dword [ebp - 0x10]
mov edi, dword [ebx + eax + 0xc]
mov eax, dword [ebp - 0x10]
bswap edi
mov eax, dword [ebx + eax + 0x10]
mov edx, edi
shr edx, 0x1a
mov dl, byte [edx + 0x547ef8]
bswap eax
mov byte [esi + ecx - 0x10], dl
mov edx, edi
shr edx, 0x14
and edx, 0x3f
mov dl, byte [edx + 0x547ef8]
mov byte [esi + ecx - 0xf], dl
mov edx, edi
shr edx, 0xe
and edx, 0x3f
mov dl, byte [edx + 0x547ef8]
mov byte [esi + ecx - 0xe], dl
mov edx, edi
shr edx, 8
and edx, 0x3f
mov dl, byte [edx + 0x547ef8]
mov byte [esi + ecx - 0xd], dl
mov edx, edi
shld edi, eax, 4
shr edx, 2
and edi, 0x3f
and edx, 0x3f
mov dl, byte [edx + 0x547ef8]
mov byte [esi + ecx - 0xc], dl
mov dl, byte [edi + 0x547ef8]
mov byte [esi + ecx - 0xb], dl
mov edx, eax
shr eax, 0x10
shr edx, 0x16
and eax, 0x3f
and edx, 0x3f
mov dl, byte [edx + 0x547ef8]
mov byte [esi + ecx - 0xa], dl
mov al, byte [eax + 0x547ef8]
mov byte [esi + ecx - 9], al
mov eax, dword [ebp - 0x10]
mov edi, dword [ebx + eax + 0x12]
mov eax, dword [ebp - 0x10]
bswap edi
mov eax, dword [ebx + eax + 0x16]
mov ebx, dword [ebp - 0x28]
mov edx, edi
shr edx, 0x1a
mov dl, byte [edx + 0x547ef8]
bswap eax
mov byte [esi + ecx - 8], dl
mov edx, edi
shr edx, 0x14
and edx, 0x3f
mov dl, byte [edx + 0x547ef8]
mov byte [esi + ecx - 7], dl
mov edx, edi
shr edx, 0xe
and edx, 0x3f
mov dl, byte [edx + 0x547ef8]
mov byte [esi + ecx - 6], dl
mov edx, edi
shr edx, 8
and edx, 0x3f
mov dl, byte [edx + 0x547ef8]
mov byte [esi + ecx - 5], dl
mov edx, edi
shld edi, eax, 4
shr edx, 2
and edi, 0x3f
and edx, 0x3f
mov dl, byte [edx + 0x547ef8]
mov byte [esi + ecx - 4], dl
mov dl, byte [edi + 0x547ef8]
mov byte [esi + ecx - 3], dl
mov edx, eax
shr eax, 0x10
shr edx, 0x16
and eax, 0x3f
and edx, 0x3f
mov dl, byte [edx + 0x547ef8]
mov byte [esi + ecx - 2], dl
mov al, byte [eax + 0x547ef8]
mov byte [esi + ecx - 1], al
mov esi, dword [ebp - 0x10]
add ecx, 0x20
add esi, 0x18
cmp esi, dword [ebp - 0x20]
jbe 0x52f8ca
add ecx, 0xffffffe0
mov edx, 0xaaaaaaab
mov eax, ebx
mul edx
shr edx, 1
lea edx, [edx + edx*2]
cmp esi, edx
mov eax, edx
mov dword [ebp - 0x18], edx
jae 0x52fc39
lea edx, [esi + 3]
cmp esi, 0xfffffffc
ja 0x52fe3c
mov eax, dword [ebp - 0x14]
cmp edx, ebx
ja 0x52fe45
cmp ecx, 0xfffffffb
ja 0x52fe53
lea edi, [ecx + 4]
mov dword [ebp - 0x20], edx
cmp edi, eax
mov dword [ebp - 0x10], edi
ja 0x52fe65
mov ebx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x24]
movzx eax, byte [ebx + esi]
mov edx, eax
shl al, 4
shr edx, 2
mov dl, byte [edx + 0x547ef8]
mov byte [edi + ecx], dl
mov dl, byte [ebx + esi + 1]
mov dh, dl
shl dl, 2
shr dh, 4
or dh, al
movzx eax, dh
and eax, 0x3f
mov al, byte [eax + 0x547ef8]
mov byte [edi + ecx + 1], al
movzx ebx, byte [ebx + esi + 2]
mov esi, dword [ebp - 0x20]
mov eax, ebx
and ebx, 0x3f
shr al, 6
or al, dl
movzx eax, al
and eax, 0x3f
cmp esi, dword [ebp - 0x18]
mov al, byte [eax + 0x547ef8]
mov byte [edi + ecx + 2], al
mov al, byte [ebx + 0x547ef8]
mov ebx, dword [ebp - 0x28]
mov byte [edi + ecx + 3], al
mov edi, dword [ebp - 0x10]
mov ecx, edi
jb 0x52fb90
jmp 0x52fc3b
mov edi, ecx
mov dword [ebp - 0x10], edi
mov edi, ebx
sub edi, dword [ebp - 0x18]
cmp edi, 1
je 0x52fcde
mov esi, dword [ebp - 0x24]
mov edx, dword [ebp - 0x14]
cmp edi, 2
jne 0x52fd33
mov ecx, dword [ebp - 0x10]
cmp ecx, edx
jae 0x52fde2
mov eax, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
movzx eax, byte [eax + ebx]
inc ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], eax
shr eax, 2
mov al, byte [eax + 0x547ef8]
mov byte [esi + ecx], al
mov eax, dword [ebp - 0x28]
cmp ebx, eax
jae 0x52fde9
mov ebx, dword [ebp - 0x10]
lea eax, [ebx + 1]
cmp eax, edx
jae 0x52fe06
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
mov dl, byte [eax + edx]
shl cl, 4
mov eax, edx
shr al, 4
or cl, al
movzx eax, cl
lea ecx, [ebx + 2]
and eax, 0x3f
cmp ecx, dword [ebp - 0x14]
mov al, byte [eax + 0x547ef8]
mov byte [esi + ebx + 1], al
jae 0x52fe0f
shl dl, 2
mov ebx, 3
and dl, 0x3c
jmp 0x52fd1d
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x24]
cmp ecx, edx
jae 0x52fdf5
mov ebx, edx
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
movzx edx, byte [eax + edx]
mov eax, edx
shr eax, 2
mov al, byte [eax + 0x547ef8]
mov byte [esi + ecx], al
inc ecx
cmp ecx, ebx
jae 0x52fdfc
shl dl, 4
mov ebx, 2
and dl, 0x30
movzx eax, dl
mov edx, dword [ebp - 0x14]
mov al, byte [eax + 0x547ef8]
mov byte [esi + ecx], al
mov eax, dword [ebp - 0x10]
add eax, ebx
jmp 0x52fd36
mov eax, dword [ebp - 0x10]
mov ecx, edx
mov ebx, eax
sub ecx, eax
jb 0x52fea4
xor edx, edx
test edi, edi
je 0x52fd5e
xor edi, 3
je 0x52fd5e
add esi, ebx
xor edx, edx
cmp ecx, edx
je 0x52fdd1
mov byte [esi + edx], 0x3d
inc edx
cmp edi, edx
jne 0x52fd51
add ebx, edx
jb 0x52feb5
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp - 0x4c]
mov edi, dword [ebp - 0x48]
mov eax, dword [ecx + 0x18]
push dword [ebp - 0x44]
push esi
push dword [ecx + 0x14]
call dword [eax + 0xc]
add esp, 0xc
cmp dword [ebp - 0x30], 0
mov ebx, eax
je 0x52fd97
push dword [ebp - 0x34]
push 0
push dword [0x5c9128]
call sub.kernel32.dll_HeapFree
test edi, edi
je 0x52fda9
push esi
push 0
push dword [0x5c9128]
call sub.kernel32.dll_HeapFree
mov eax, ebx
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret
lea edi, [ebp - 0x4c]
mov esi, edx
xor edx, edx
mov ecx, edi
push esi
call fcn.004750d5
mov edx, esi
add esp, 4
mov esi, dword [edi]
mov ebx, dword [edi + 8]
jmp 0x52f874
mov edx, ecx
push 0x547cec
call fcn.00444440
add esp, 4
ud2
push 0x547c20
jmp 0x52fdd8
mov ecx, dword [ebp - 0x18]
mov edx, eax
push 0x547c30
jmp 0x52fdd8
push 0x547c60
jmp 0x52fdd8
mov edx, dword [ebp - 0x14]
push 0x547c70
jmp 0x52fdd8
mov ecx, eax
push 0x547c40
jmp 0x52fdd8
mov edx, dword [ebp - 0x14]
push 0x547c50
jmp 0x52fdd8
mov ecx, eax
mov edx, ebx
push 0x547ca0
jmp 0x52fe70
mov ecx, 0xffffffe0
xor edx, edx
push 0x547cb0
jmp 0x52fe5b
mov edx, dword [ebp - 0x14]
push 0x547cb0
jmp 0x52fe70
mov ecx, esi
push 0x547c80
jmp 0x52fe5b
add esi, 3
mov edx, ebx
mov ecx, esi
push 0x547c80
jmp 0x52fe70
lea edx, [ecx + 4]
push 0x547c90
call fcn.00446290
jmp 0x52fddd
mov edx, dword [ebp - 0x14]
add ecx, 4
push 0x547c90
call fcn.00445020
jmp 0x52fddd
mov ecx, str.integer_overflow_when_calculating_buffer_size_home_vi_.cargo_registry_src_index.crates.io_6f17d22bba15001f_base64_0.10.1_src_encode.rs
mov edx, 0x2d
push 0x5558e4
call fcn.004bb0d7
jmp 0x52fddd
mov ecx, str.usize_overflow_when_calculating_buffer_size
mov edx, 0x2b
push 0x5558f4
jmp 0x52fec4
mov ecx, ebx
push 0x547c00
call fcn.00444cf0
jmp 0x52fddd
mov ecx, str.usize_overflow_when_calculating_b64_length
mov edx, 0x2a
push 0x547c10
call fcn.00448d20
jmp 0x52fddd