Function at 0x576900
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x749d8e
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x8bb040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x28], 0
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 0xf
mov byte [edi], al
mov dword [ebp - 4], eax
lea eax, [esi + 0x10]
push dword [eax]
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], eax
call fcn.004945d0
xor edx, edx
cmp dword [esi + 0x14], 0xf
lea ebx, [edx - 6]
jbe 0x57697c
mov ecx, dword [esi]
mov eax, ecx
mov dword [ebp - 0x14], ecx
mov esi, ecx
jmp 0x576981
mov dword [ebp - 0x14], esi
mov eax, esi
mov ecx, dword [ebp - 0x24]
mov ecx, dword [ecx]
add ecx, eax
mov dword [ebp - 0x30], ecx
cmp esi, ecx
je 0x576be8
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax]
shl edx, 8
add edx, eax
add ebx, 8
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], ebx
js 0x576ac9
lea ecx, [ecx]
mov esi, dword [edi + 0x14]
mov ecx, ebx
mov ebx, dword [edi + 0x10]
mov eax, edx
sar eax, cl
and eax, 0x3f
mov dword [ebp - 0x2c], esi
mov cl, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp - 0xd], cl
cmp ebx, esi
jae 0x5769eb
lea eax, [ebx + 1]
mov dword [edi + 0x10], eax
mov eax, edi
cmp esi, 0xf
jbe 0x5769de
mov eax, dword [edi]
mov byte [eax + ebx], cl
mov byte [eax + ebx + 1], 0
jmp 0x576ab7
mov eax, closesocket
sub eax, ebx
cmp eax, 1
jb 0x576d0a
lea ecx, [ebx + 1]
or ecx, 0xf
cmp ecx, 0x7fffffff
jbe 0x576a10
mov ecx, closesocket
jmp 0x576a2e
mov edx, esi
mov eax, closesocket
shr edx, 1
sub eax, edx
cmp esi, eax
jbe 0x576a26
mov ecx, closesocket
jmp 0x576a2e
lea eax, [esi + edx]
cmp ecx, eax
cmovb ecx, eax
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], ecx
call fcn.00481700
mov dword [ebp - 0x1c], eax
lea ecx, [ebx + 1]
mov dword [edi + 0x10], ecx
mov ecx, dword [ebp - 0x18]
mov dword [edi + 0x14], ecx
lea ecx, [eax + ebx]
mov dword [ebp - 0x18], ecx
push ebx
cmp esi, 0xf
jbe 0x576a99
mov esi, dword [edi]
push esi
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov cl, byte [ebp - 0xd]
mov byte [eax], cl
mov byte [eax + 1], 0
mov eax, dword [ebp - 0x2c]
inc eax
cmp eax, 0x1000
jb 0x576a8d
mov ecx, dword [esi - 4]
add eax, 0x23
sub esi, ecx
add esi, 0xfffffffc
cmp esi, 0x1f
ja 0x576d04
mov esi, ecx
push eax
push esi
call fcn.00732c0f
add esp, 8
jmp 0x576aaf
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov cl, byte [ebp - 0xd]
mov byte [eax], cl
mov byte [eax + 1], 0
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
mov dword [edi], eax
mov ebx, dword [ebp - 0x24]
sub ebx, 6
mov dword [ebp - 0x24], ebx
jns 0x5769b0
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp eax, ecx
jne 0x576996
cmp ebx, 0xfffffffa
jle 0x576be8
mov esi, dword [edi + 0x14]
lea ecx, [ebx + 8]
mov ebx, dword [edi + 0x10]
shl edx, 8
sar edx, cl
and edx, 0x3f
mov dword [ebp - 0x30], esi
mov cl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp - 0xd], cl
cmp ebx, esi
jae 0x576b1e
lea eax, [ebx + 1]
mov dword [edi + 0x10], eax
mov eax, edi
cmp esi, 0xf
jbe 0x576b11
mov eax, dword [edi]
mov byte [eax + ebx], cl
mov byte [eax + ebx + 1], 0
jmp 0x576be8
mov eax, closesocket
sub eax, ebx
cmp eax, 1
jb 0x576d0a
lea ecx, [ebx + 1]
or ecx, 0xf
cmp ecx, 0x7fffffff
jbe 0x576b43
mov ecx, closesocket
jmp 0x576b61
mov edx, esi
mov eax, closesocket
shr edx, 1
sub eax, edx
cmp esi, eax
jbe 0x576b59
mov ecx, closesocket
jmp 0x576b61
lea eax, [esi + edx]
cmp ecx, eax
cmovb ecx, eax
lea edx, [ebp - 0x24]
mov dword [ebp - 0x24], ecx
call fcn.00481700
mov dword [ebp - 0x20], eax
lea ecx, [ebx + 1]
mov dword [edi + 0x10], ecx
mov ecx, dword [ebp - 0x24]
mov dword [edi + 0x14], ecx
lea ecx, [eax + ebx]
mov dword [ebp - 0x24], ecx
push ebx
cmp esi, 0xf
jbe 0x576bcd
mov esi, dword [edi]
push esi
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x24]
add esp, 0xc
mov cl, byte [ebp - 0xd]
mov byte [eax], cl
mov ecx, dword [ebp - 0x30]
inc ecx
mov byte [eax + 1], 0
cmp ecx, 0x1000
jb 0x576bc1
mov edx, dword [esi - 4]
add ecx, 0x23
sub esi, edx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x576d04
mov esi, edx
push ecx
push esi
call fcn.00732c0f
add esp, 8
jmp 0x576be3
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x24]
add esp, 0xc
mov cl, byte [ebp - 0xd]
mov byte [eax], cl
mov byte [eax + 1], 0
mov eax, dword [ebp - 0x20]
mov dword [edi], eax
mov ecx, dword [edi + 0x10]
test cl, 3
je 0x576cf0
mov esi, ecx
mov dword [ebp - 0x1c], esi
lea esp, [esp]
mov ebx, dword [edi + 0x14]
cmp ecx, ebx
jae 0x576c21
lea eax, [ecx + 1]
mov dword [edi + 0x10], eax
mov eax, edi
cmp ebx, 0xf
jbe 0x576c16
mov eax, dword [edi]
mov word [eax + ecx], 0x3d
jmp 0x576cdf
mov eax, closesocket
sub eax, esi
cmp eax, 1
jb 0x576d0a
lea ecx, [esi + 1]
or ecx, 0xf
cmp ecx, 0x7fffffff
jbe 0x576c46
mov ecx, closesocket
jmp 0x576c64
mov edx, ebx
mov eax, closesocket
shr edx, 1
sub eax, edx
cmp ebx, eax
jbe 0x576c5c
mov ecx, closesocket
jmp 0x576c64
lea eax, [ebx + edx]
cmp ecx, eax
cmovb ecx, eax
lea edx, [ebp - 0x24]
mov dword [ebp - 0x24], ecx
call fcn.00481700
mov dword [ebp - 0x20], eax
lea ecx, [esi + 1]
mov dword [edi + 0x10], ecx
mov ecx, dword [ebp - 0x24]
mov dword [edi + 0x14], ecx
lea ecx, [eax + esi]
mov dword [ebp - 0x24], ecx
cmp ebx, 0xf
jbe 0x576cc7
push dword [ebp - 0x1c]
mov esi, dword [edi]
push esi
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x24]
inc ebx
add esp, 0xc
mov word [eax], 0x3d
cmp ebx, 0x1000
jb 0x576cbb
mov ecx, dword [esi - 4]
add ebx, 0x23
sub esi, ecx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x576d04
mov esi, ecx
push ebx
push esi
call fcn.00732c0f
add esp, 8
jmp 0x576cda
push esi
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x24]
add esp, 0xc
mov word [eax], 0x3d
mov eax, dword [ebp - 0x20]
mov dword [edi], eax
mov ecx, dword [edi + 0x10]
mov esi, ecx
mov dword [ebp - 0x1c], ecx
test cl, 3
jne 0x576c00
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
call fcn.00480e80
int3