Function at 0x505c30
Capabilities:
Encode data using base64
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xfb8
mov eax, dword [0x7e4788]
xor eax, esp
mov dword [esp + 0xfb4], eax
movups xmm0, xmmword [0x7efa58]
push ebx
push ebp
lea eax, [esp + 0x64]
mov dword [esp + 0x1c], 0xfffffffe
push esi
lea edx, [esp + 0xd28]
mov dword [esp + 0x3c], eax
mov ebx, eax
mov dword [esp + 0x34], edx
xor esi, esi
mov ecx, 0xc8
xor eax, eax
mov dword [esp + 0x38], ecx
push edi
mov edi, dword [esp + 0xfcc]
mov ebp, edx
mov dword [esp + 0x48], edi
movups xmmword [esp + 0x5c], xmm0
mov dword [esp + 0x30], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x34], ebp
add ecx, ecx
mov word [ebp], si
lea eax, [edx - 2]
add eax, ecx
cmp eax, ebp
ja 0x505dad
sub ebp, edx
sar ebp, 1
inc ebp
cmp dword [esp + 0x3c], 0x186a0
jae 0x508992
mov eax, ecx
mov dword [esp + 0x44], edx
cmp eax, 0x186a0
mov ecx, 0x186a0
cmova eax, ecx
mov dword [esp + 0x3c], eax
lea eax, [eax + eax*8]
lea eax, [eax*2 + 0xf]
push eax
call fcn.0047f870
mov edx, eax
add esp, 4
mov dword [esp + 0x20], edx
test edx, edx
je 0x508992
test ebp, ebp
je 0x505d1b
mov edi, dword [esp + 0x38]
mov ecx, edx
sub edi, edx
mov edx, ebp
mov ax, word [edi + ecx]
lea ecx, [ecx + 2]
mov word [ecx - 2], ax
sub edx, 1
jne 0x505d03
mov edi, dword [esp + 0x48]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x3c]
mov ebx, edx
mov dword [esp + 0x38], ebx
lea eax, [eax*2 + 0xf]
and eax, 0xfffffff0
add edx, eax
mov dword [esp + 0x20], edx
test ebp, ebp
je 0x505d65
sub dword [esp + 0x40], edx
mov eax, edx
mov edi, dword [esp + 0x40]
mov ecx, ebp
nop word [eax + eax]
lea eax, [eax + 0x10]
movups xmm0, xmmword [edi + eax - 0x10]
movups xmmword [eax - 0x10], xmm0
sub ecx, 1
jne 0x505d50
mov edi, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0xd2c]
mov dword [esp + 0x40], edx
cmp eax, ecx
je 0x505d85
push eax
call fcn.0047f840
mov edx, dword [esp + 0x24]
add esp, 4
mov eax, dword [esp + 0x38]
lea ecx, [ebx - 2]
lea ebx, [edx - 0x10]
mov edx, dword [esp + 0x3c]
lea ecx, [ecx + ebp*2]
shl ebp, 4
add ebx, ebp
mov dword [esp + 0x34], ecx
lea eax, [eax + edx*2]
add eax, 0xfffffffe
cmp eax, ecx
jbe 0x505f02
cmp esi, 0x119
je 0x5089a7
movsx ebp, word [esi*2 + 0x731908]
cmp ebp, 0xfffffd5a
je 0x505ea8
mov eax, dword [esp + 0x24]
cmp eax, 0xfffffffe
jne 0x505de8
lea eax, [esp + 0x5c]
push edi
push eax
call fcn.00509e40
add esp, 8
mov dword [esp + 0x24], eax
test eax, eax
jg 0x505df4
xor ecx, ecx
mov dword [esp + 0x24], ecx
jmp 0x505e09
cmp eax, 0x16f
ja 0x505e04
movzx ecx, byte [eax + 0x731798]
jmp 0x505e09
mov ecx, 2
add ebp, ecx
cmp ebp, 0x201d
ja 0x505ea8
movsx eax, word [ebp*2 + 0x736ca8]
cmp eax, ecx
jne 0x505ea8
movsx esi, word [ebp*2 + 0x732c68]
test esi, esi
jg 0x505e71
neg esi
mov edx, esi
mov dword [esp + 0x44], edx
movzx ecx, byte [edx + 0x73b9d0]
mov eax, ebx
mov dword [esp + 0x54], ecx
shl ecx, 4
sub eax, ecx
add eax, 0x10
mov dword [esp + 0x58], eax
movups xmm0, xmmword [eax]
lea eax, [edx - 9]
movups xmmword [esp + 0x10], xmm0
cmp eax, 0x286
ja 0x508917
jmp dword [eax*4 + 0x508a60]
mov ecx, dword [esp + 0x30]
add ebx, 0x10
movups xmm0, xmmword [esp + 0x5c]
mov ebp, dword [esp + 0x34]
test ecx, ecx
mov edx, dword [esp + 0x38]
lea eax, [ecx - 1]
mov dword [esp + 0x24], 0xfffffffe
cmove eax, ecx
add ebp, 2
mov ecx, dword [esp + 0x3c]
movups xmmword [ebx], xmm0
mov dword [esp + 0x30], eax
jmp 0x505c93
movzx edx, word [esi*2 + 0x7320c8]
mov dword [esp + 0x44], edx
test edx, edx
jne 0x505e3b
mov edx, dword [esp + 0x24]
cmp edx, 0xfffffffe
jne 0x505ec5
mov eax, edx
jmp 0x505edb
cmp edx, 0x16f
ja 0x505ed6
movzx eax, byte [edx + 0x731798]
jmp 0x505edb
mov eax, 2
mov ecx, dword [esp + 0x30]
test ecx, ecx
jne 0x505ef7
inc dword [esp + 0x4c]
push str.syntax_error
push edi
call fcn.00505ad0
add esp, 8
jmp 0x505f3c
cmp ecx, 3
jne 0x505f3c
test edx, edx
jg 0x505f0c
jne 0x505f3c
mov esi, 1
jmp 0x5089a9
cmp eax, 0x11
je 0x505f21
cmp eax, 0x61
jne 0x505f34
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x505f34
push eax
jmp 0x505f2c
cmp dword [esp + 0x64], 0
je 0x505f34
push dword [esp + 0x5c]
call fcn.0047f840
add esp, 4
mov dword [esp + 0x24], 0xfffffffe
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x30], 3
nop dword [eax + eax]
lea ecx, [esi + esi]
movsx eax, word [ecx + 0x731908]
cmp eax, 0xfffffd5a
je 0x505f80
inc eax
cmp eax, 0x201d
ja 0x505f80
cmp word [eax*2 + 0x736ca8], 1
jne 0x505f80
movsx esi, word [eax*2 + 0x732c68]
test esi, esi
jg 0x505fb1
cmp ebp, dword [esp + 0x38]
je 0x505f02
movzx eax, word [ecx + 0x73ace8]
push edi
push ebx
push eax
push str.Error:_popping
call fcn.00509480
movsx esi, word [ebp - 2]
add esp, 0x10
sub ebx, 0x10
sub ebp, 2
mov dword [esp + 0x34], ebp
jmp 0x505f50
movups xmm0, xmmword [esp + 0x5c]
mov edx, dword [esp + 0x38]
add ebx, 0x10
mov ecx, dword [esp + 0x3c]
add ebp, 2
movups xmmword [ebx], xmm0
jmp 0x505c93
mov eax, dword [esp + 0x54]
mov ebp, dword [esp + 0x34]
neg eax
mov ebx, dword [esp + 0x58]
lea ebp, [ebp + eax*2]
mov eax, dword [esp + 0x44]
movups xmm0, xmmword [esp + 0x10]
movzx esi, word [eax*2 + 0x73b4a8]
movups xmmword [ebx], xmm0
movzx edx, word [ebp]
movsx eax, dx
movsx ecx, word [esi*2 + 0x73277a]
add ecx, eax
js 0x50897a
cmp ecx, 0x201d
jg 0x50897a
cmp word [ecx*2 + 0x736ca8], dx
jne 0x50897a
movsx esi, word [ecx*2 + 0x732c68]
add ebp, 2
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
jmp 0x505c93
movsx esi, word [esi*2 + 0x73296a]
mov edx, dword [esp + 0x38]
add ebp, 2
mov ecx, dword [esp + 0x3c]
jmp 0x505c93
push str.memory_exhausted
push edi
call fcn.00505ad0
add esp, 8
mov esi, 2
jmp 0x5089a9
xor esi, esi
mov eax, dword [esp + 0x24]
cmp eax, 0xfffffffe
je 0x5089e5
cmp eax, 0x16f
ja 0x5089e5
mov al, byte [eax + 0x731798]
cmp al, 0x11
je 0x5089d2
cmp al, 0x61
jne 0x5089e5
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x5089e5
push eax
jmp 0x5089dd
cmp dword [esp + 0x64], 0
je 0x5089e5
push dword [esp + 0x5c]
call fcn.0047f840
add esp, 4
mov edi, dword [esp + 0x34]
mov ebp, dword [esp + 0x38]
cmp edi, ebp
je 0x508a29
movsx eax, word [edi]
movzx eax, word [eax*2 + 0x73ace8]
cmp eax, 0x11
je 0x508a0f
cmp eax, 0x61
jne 0x508a1f
mov eax, dword [ebx]
test eax, eax
je 0x508a1f
push eax
jmp 0x508a17
cmp dword [ebx + 8], 0
je 0x508a1f
push dword [ebx]
call fcn.0047f840
add esp, 4
sub edi, 2
sub ebx, 0x10
cmp edi, ebp
jne 0x5089f1
lea eax, [esp + 0xd2c]
cmp ebp, eax
je 0x508a3d
push ebp
call fcn.0047f840
add esp, 4
mov ecx, dword [esp + 0xfc4]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00529c8c
add esp, 0xfb8
ret