Function at 0x566ef0
Capabilities:
Encode data using xor
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d7e18
mov eax, dword fs:[0]
push eax
sub esp, 0x20c
mov eax, dword [0x6229a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x210], edi
mov eax, dword [ebp + 8]
mov ecx, eax
mov dword [ebp - 0x1e4], eax
cmp dword [eax + 0x14], 0x10
jb 0x566f38
mov ecx, dword [eax]
push 0
push 0
push 3
push 0
push 1
push closesocket
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1ec], eax
cmp eax, 0xffffffff
je 0x566f95
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
mov esi, eax
push esi
push 0
push 2
push 0
push dword [ebp - 0x1ec]
mov dword [ebp - 0x1f8], esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x1f0], eax
test eax, eax
jne 0x566fb4
push dword [ebp - 0x1ec]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0059b734
mov esp, ebp
pop ebp
ret 8
push esi
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x566fe0
push dword [ebp - 0x1f0]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1ec]
call esi
jmp 0x566f95
xorps xmm0, xmm0
mov dword [ebp - 0x12c], 0
movlpd qword [ebp - 0x134], xmm0
movups xmmword [ebp - 0x144], xmm0
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 0xf
mov byte [ebp - 0x144], 0
cmp dword [edi + 8], 0x71c71c7
lea eax, [edi + 4]
mov ecx, dword [eax]
mov dword [ebp - 4], 0
mov dword [ebp - 0x1e8], ecx
je 0x5676f1
mov dword [ebp - 0x204], eax
push 0x24
mov byte [ebp - 4], 1
mov dword [ebp - 0x200], 0
call fcn.0059b742
movups xmm0, xmmword [ebp - 0x144]
mov edx, dword [ebp - 0x1e8]
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
movups xmmword [ecx + 8], xmm0
movq xmm0, qword [ebp - 0x134]
movq qword [ecx + 0x18], xmm0
mov dword [ecx + 0x20], 0
inc dword [edi + 8]
mov eax, dword [edx + 4]
mov dword [ecx], edx
mov dword [ecx + 4], eax
mov dword [edx + 4], ecx
mov dword [eax], ecx
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
add eax, 8
mov dword [ebp - 0x200], eax
mov eax, dword [ebp - 0x1f8]
push eax
call fcn.0059b726
mov ecx, eax
add esp, 8
cmp byte [ebp + 0xc], 0
mov eax, dword [ebp - 0x200]
mov dword [eax + 0x18], ecx
je 0x567189
mov edx, dword [ebp - 0x1f8]
xor eax, eax
test edx, edx
jle 0x5671aa
cmp edx, 0x40
jb 0x567173
lea eax, [edx - 1]
add eax, esi
cmp ecx, eax
ja 0x5670fb
lea eax, [edx - 1]
add eax, ecx
cmp eax, esi
jae 0x567171
mov eax, edx
and eax, 0x8000003f
jns 0x567109
dec eax
or eax, 0xffffffc0
inc eax
movaps xmm2, xmmword [0x5ea5f0]
mov dword [ebp - 0x1e8], edx
sub dword [ebp - 0x1e8], eax
xor eax, eax
nop
movups xmm0, xmmword [esi]
add eax, 0x40
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmm0, xmmword [esi + 0x10]
movups xmmword [ecx], xmm1
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmm0, xmmword [esi + 0x20]
movups xmmword [ecx + 0x10], xmm1
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmm0, xmmword [esi + 0x30]
add esi, 0x40
movups xmmword [ecx + 0x20], xmm1
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [ecx + 0x30], xmm1
add ecx, 0x40
cmp eax, dword [ebp - 0x1e8]
jl 0x567120
cmp eax, edx
jge 0x5671aa
jmp 0x567173
xor eax, eax
sub ecx, esi
sub edx, eax
mov al, byte [esi]
lea esi, [esi + 1]
xor al, 0xf7
mov byte [ecx + esi - 1], al
sub edx, 1
jne 0x567177
jmp 0x5671aa
mov eax, dword [ebp - 0x1f8]
test eax, eax
jle 0x5671aa
mov edx, eax
mov al, byte [esi]
lea esi, [esi + 1]
xor al, 0xeb
lea ecx, [ecx + 1]
rol al, 4
mov byte [ecx - 1], al
sub edx, 1
jne 0x567195
push dword [ebp - 0x1f0]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1ec]
call esi
push 0x2c
lea eax, [ebp - 0x154]
push 0
push eax
call fcn.0059d800
xorps xmm0, xmm0
mov dword [ebp - 0x140], 0
movups xmmword [ebp - 0x150], xmm0
mov dword [ebp - 0x13c], 0xf
mov byte [ebp - 0x150], 0
push dword [ebp - 0x1e4]
lea eax, [ebp - 0x128]
mov dword [ebp - 4], 2
push eax
call fcn.004f87c0
add esp, 0x14
lea ecx, [ebp - 0x154]
push ecx
push eax
lea ecx, [ebp - 0x198]
call fcn.00566b50
push eax
lea eax, [ebp - 0x1f4]
mov byte [ebp - 4], 4
lea ecx, [edi + 0xc]
push eax
mov dword [ebp - 0x1ec], ecx
call fcn.00566bf0
lea ecx, [ebp - 0x198]
mov esi, dword [eax]
call fcn.00566d60
mov ecx, dword [ebp - 0x114]
mov byte [ebp - 4], 2
cmp ecx, 0x10
jb 0x567289
mov edx, dword [ebp - 0x128]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x56727f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5676fb
push ecx
push edx
call fcn.0059b718
add esp, 8
mov ecx, dword [ebp - 0x13c]
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0xf
mov byte [ebp - 0x128], 0
mov dword [ebp - 4], 0xffffffff
cmp ecx, 0x10
jb 0x5672e5
mov edx, dword [ebp - 0x150]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x5672db
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5676fb
push ecx
push edx
call fcn.0059b718
add esp, 8
mov ecx, dword [ebp - 0x1e4]
lea edx, [esi + 0x2c]
mov eax, dword [ebp - 0x200]
mov dword [esi + 0x28], eax
cmp edx, ecx
je 0x567316
cmp dword [ecx + 0x14], 0x10
mov eax, ecx
jb 0x567305
mov eax, dword [ecx]
push dword [ecx + 0x10]
mov ecx, edx
push eax
call fcn.0040c5a0
mov ecx, dword [ebp - 0x1e4]
mov eax, dword [ebp - 0x1f8]
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], eax
cmp dword [ecx + 0x14], 0x10
jb 0x56732e
mov ecx, dword [ecx]
mov eax, dword [edi]
push 0x5d971c
push ecx
mov ecx, edi
mov eax, dword [eax + 4]
call eax
mov esi, eax
mov dword [ebp - 0x1e8], esi
test esi, esi
je 0x566f95
mov edx, dword [edi]
lea eax, [ebp - 0x208]
push esi
push 1
push 4
push eax
mov ecx, edi
mov dword [ebp - 0x208], 0
call dword [edx + 0x14]
cmp dword [ebp - 0x208], 0xbac04ac0
mov eax, dword [edi]
push esi
je 0x567383
mov ecx, edi
call dword [eax + 8]
jmp 0x566f95
push 1
push 4
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0x20c], 0
push ecx
mov ecx, edi
call dword [eax + 0x14]
cmp dword [ebp - 0x20c], 0
mov eax, dword [edi]
push esi
ja 0x567379
mov eax, dword [eax + 0x14]
lea ecx, [ebp - 0x1dd]
push 1
push 1
push ecx
mov ecx, edi
mov dword [ebp - 0x1f0], 0
mov byte [ebp - 0x1dd], 0
call eax
test byte [ebp - 0x1dd], 0x80
jne 0x56768c
nop dword [eax]
test eax, eax
je 0x56768c
mov eax, dword [edi]
lea ecx, [ebp - 0x1de]
push esi
push 1
push 1
push ecx
mov ecx, edi
mov byte [ebp - 0x1de], 0
call dword [eax + 0x14]
movzx eax, byte [ebp - 0x1de]
mov ecx, edi
mov edx, dword [edi]
push esi
push eax
push 1
lea eax, [ebp - 0x110]
push eax
call dword [edx + 0x14]
movzx eax, byte [ebp - 0x1de]
lea ecx, [ebp - 0x1e4]
push esi
push 1
push 4
mov byte [ebp + eax - 0x110], 0
mov eax, dword [edi]
push ecx
mov ecx, edi
mov dword [ebp - 0x1e4], 0
call dword [eax + 0x14]
mov eax, dword [edi]
lea ecx, [ebp - 0x1fc]
push esi
push 1
push 8
push ecx
mov ecx, edi
call dword [eax + 0x14]
push 0x2c
lea eax, [ebp - 0x180]
push 0
push eax
call fcn.0059d800
xorps xmm0, xmm0
mov dword [ebp - 0x118], 0
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x114], 0
add esp, 0xc
lea edx, [ecx + 1]
movups xmmword [ebp - 0x128], xmm0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x567494
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
lea ecx, [ebp - 0x128]
call fcn.00402b80
xorps xmm0, xmm0
mov dword [ebp - 4], 5
movups xmmword [ebp - 0x17c], xmm0
mov dword [ebp - 0x16c], 0
mov dword [ebp - 0x168], 0xf
mov byte [ebp - 0x17c], 0
lea eax, [ebp - 0x128]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x140]
push eax
call fcn.004f87c0
add esp, 8
lea ecx, [ebp - 0x180]
push ecx
push eax
lea ecx, [ebp - 0x1dc]
call fcn.00566b50
push eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 8
push eax
lea ecx, [edi + 0xc]
call fcn.00566bf0
lea ecx, [ebp - 0x1dc]
mov esi, dword [eax]
call fcn.00566d60
mov ecx, dword [ebp - 0x12c]
mov byte [ebp - 4], 6
cmp ecx, 0x10
jb 0x567568
mov edx, dword [ebp - 0x140]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x56755e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5676fb
push ecx
push edx
call fcn.0059b718
add esp, 8
mov ecx, dword [ebp - 0x168]
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x12c], 0xf
mov byte [ebp - 0x140], 0
mov byte [ebp - 4], 5
cmp ecx, 0x10
jb 0x5675c1
mov edx, dword [ebp - 0x17c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x5675b7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5676fb
push ecx
push edx
call fcn.0059b718
add esp, 8
mov ecx, dword [ebp - 0x114]
mov dword [ebp - 4], 0xffffffff
cmp ecx, 0x10
jb 0x567602
mov edx, dword [ebp - 0x128]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x5675f8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5676fb
push ecx
push edx
call fcn.0059b718
add esp, 8
mov eax, dword [ebp - 0x200]
lea ecx, [ebp - 0x110]
mov dword [esi + 0x28], eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x567614
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
lea ecx, [esi + 0x2c]
call fcn.0040c5a0
mov edx, dword [ebp - 0x1f0]
mov dword [esi + 0x4c], edx
mov eax, dword [ebp - 0x1e4]
mov dword [esi + 0x50], eax
mov eax, dword [ebp - 0x1fc]
mov ecx, dword [ebp - 0x1f8]
mov dword [esi + 0x48], ecx
lea ecx, [ebp - 0x1dd]
mov dword [esi + 0x44], eax
mov esi, dword [ebp - 0x1e8]
mov eax, dword [edi]
add edx, dword [ebp - 0x1e4]
push esi
push 1
mov eax, dword [eax + 0x14]
push 1
push ecx
mov ecx, edi
mov dword [ebp - 0x1f0], edx
mov byte [ebp - 0x1dd], 0
call eax
test byte [ebp - 0x1dd], 0x80
je 0x5673e0
mov eax, dword [edi]
mov ecx, edi
push esi
mov eax, dword [eax + 0x10]
call eax
mov edx, dword [edi + 0xc]
mov dword [ebp - 0x1e4], eax
mov ecx, dword [edx]
mov dword [ebp - 0x1f0], ecx
cmp ecx, edx
je 0x5676e2
mov edi, dword [ebp - 0x200]
mov esi, eax
cmp dword [ecx + 0x28], edi
jne 0x5676bb
add dword [ecx + 0x4c], esi
lea ecx, [ebp - 0x1f0]
call fcn.004e11d0
mov eax, dword [ebp - 0x1ec]
mov ecx, dword [ebp - 0x1f0]
cmp ecx, dword [eax]
jne 0x5676b3
mov edi, dword [ebp - 0x210]
mov esi, dword [ebp - 0x1e8]
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 8]
mov al, 1
jmp 0x566f97
push str.list_too_long
call fcn.00599f30
call fcn.005a17d1
int3