Function at 0x10005af0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007e7b5
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x60
push esi
push edi
mov eax, dword [0x10091040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov dword [ebp - 0x34], edx
mov ecx, dword [edx + 8]
mov eax, dword [edx + 0x14]
mov esi, dword [edx + 0x10]
sub eax, esi
mov dword [ebp - 0x38], ecx
lea edi, [ecx + 1]
cmp edi, eax
jbe 0x10005b49
xor cl, cl
jmp 0x10005b4c
mov cl, byte [esi + ecx]
mov eax, dword [ebp - 0x38]
mov dword [edx + 8], edi
add eax, 5
mov edi, dword [edx + 0x14]
sub edi, esi
mov byte [ebp - 0x11], cl
mov dword [ebp - 0x3c], edi
cmp eax, edi
jbe 0x10005b68
xor edi, edi
jmp 0x10005b6f
mov edi, dword [ebp - 0x38]
mov edi, dword [esi + edi + 1]
mov dword [edx + 8], eax
lea edx, [eax + 4]
mov dword [ebp - 0x38], edx
cmp edx, dword [ebp - 0x3c]
jbe 0x10005b81
xor esi, esi
jmp 0x10005b84
mov esi, dword [esi + eax]
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
mov dword [edx + 8], eax
mov eax, dword [0x100933d0]
test eax, eax
je 0x10005c11
cmp cl, 1
je 0x10005ba0
cmp cl, 2
jne 0x10005bdc
mov ecx, dword [eax + 0x94]
test ecx, ecx
je 0x10005bb5
push esi
call fcn.10070250
mov eax, dword [0x100933d0]
mov ecx, dword [eax + 0x58]
test ecx, ecx
je 0x10005bc7
push esi
call fcn.1003a7d0
mov eax, dword [0x100933d0]
mov ecx, dword [0x100933d4]
test ecx, ecx
je 0x10005be2
push esi
call fcn.1001cf10
mov eax, dword [0x100933d0]
mov ecx, dword [0x100933d4]
mov dl, byte [ebp - 0x11]
cmp dl, 3
je 0x10005bef
cmp dl, 4
jne 0x10005c11
mov eax, dword [eax + 0x94]
test eax, eax
je 0x10005c07
push esi
mov ecx, eax
call fcn.100703f0
mov ecx, dword [0x100933d4]
test ecx, ecx
je 0x10005c11
push esi
call fcn.1001cfc0
movzx eax, byte [ebp - 0x11]
dec eax
cmp eax, 3
ja case.default.0x10005c1f
jmp dword [eax*4 + 0x10006068]
movaps xmm0, xmmword [0x1008a020]
xor ecx, ecx
push edi
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], 0x386c707f
mov dword [ebp - 0x1c], 0x706b795b
mov word [ebp - 0x18], 0x36
mov al, byte [ebp - 0x30]
xor byte [ebp + ecx - 0x2f], al
inc ecx
cmp ecx, 0x18
jb 0x10005c48
sub esp, 0x18
mov byte [ebp - 0x17], 0
mov edx, esp
lea ecx, [ebp - 0x2f]
xorps xmm0, xmm0
lea esi, [ecx + 1]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10005c78
sub ecx, esi
lea eax, [ebp - 0x2f]
push ecx
push eax
mov ecx, edx
call fcn.100024a0
lea eax, [ebp - 0x54]
push eax
call fcn.10006910
add esp, 0x20
mov edx, eax
mov dword [ebp - 4], 0
cmp dword [edx + 0x14], 0xf
jbe 0x10005caa
mov edx, dword [edx]
mov ecx, edx
mov dword [ebp - 0x20], 0
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10005cc4
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x30]
call fcn.100024a0
mov edx, 0xff6565ff
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.10006080
mov ecx, dword [ebp - 0x1c]
cmp ecx, 0xf
jbe 0x10005d18
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10005d0e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10005d4a
push ecx
push edx
call fcn.1007d105
add esp, 8
mov ecx, dword [ebp - 0x40]
cmp ecx, 0xf
jbe case.default.0x10005c1f
mov edx, dword [ebp - 0x54]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10006049
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10006049
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
movaps xmm0, xmmword [0x10089c80]
xor ecx, ecx
push edi
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0x1d061436
mov word [ebp - 0x18], 0x5b
nop dword [eax + eax]
mov al, byte [ebp - 0x2c]
xor byte [ebp + ecx - 0x2b], al
inc ecx
cmp ecx, 0x14
jb 0x10005d70
sub esp, 0x18
mov byte [ebp - 0x17], 0
mov edx, esp
lea ecx, [ebp - 0x2b]
xorps xmm0, xmm0
lea esi, [ecx + 1]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10005da0
sub ecx, esi
lea eax, [ebp - 0x2b]
push ecx
push eax
mov ecx, edx
call fcn.100024a0
lea eax, [ebp - 0x54]
push eax
call fcn.10006910
add esp, 0x20
mov edx, eax
mov dword [ebp - 4], 2
cmp dword [edx + 0x14], 0xf
jbe 0x10005dd2
mov edx, dword [edx]
mov ecx, edx
mov dword [ebp - 0x20], 0
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10005df0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x30]
call fcn.100024a0
mov edx, 0xffff3b3b
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x30]
call fcn.10006080
mov ecx, dword [ebp - 0x1c]
cmp ecx, 0xf
jbe 0x10005d18
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10005d0e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10005d4a
jmp 0x10005d0e
movaps xmm0, xmmword [0x100893e0]
xor ecx, ecx
push edi
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], 0x4c414c6f
mov dword [ebp - 0x1c], 0x3484e43
mov byte [ebp - 0x18], 0
nop dword [eax + eax]
mov al, byte [ebp - 0x30]
xor byte [ebp + ecx - 0x2f], al
inc ecx
cmp ecx, 0x17
jb 0x10005e70
sub esp, 0x18
mov byte [ebp - 0x18], 0
mov edx, esp
lea ecx, [ebp - 0x2f]
xorps xmm0, xmm0
lea esi, [ecx + 1]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10005ea0
sub ecx, esi
lea eax, [ebp - 0x2f]
push ecx
push eax
mov ecx, edx
call fcn.100024a0
lea eax, [ebp - 0x54]
push eax
call fcn.10006910
add esp, 0x20
mov edx, eax
mov dword [ebp - 4], 4
cmp dword [edx + 0x14], 0xf
jbe 0x10005ed2
mov edx, dword [edx]
mov ecx, edx
mov dword [ebp - 0x20], 0
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10005ef0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x30]
call fcn.100024a0
mov edx, 0xff6565ff
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x30]
call fcn.10006080
mov ecx, dword [ebp - 0x1c]
cmp ecx, 0xf
jbe 0x10005d18
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10005d0e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10005d4a
jmp 0x10005d0e
movaps xmm0, xmmword [0x10089f50]
xor ecx, ecx
push edi
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0x22696f62
mov byte [ebp - 0x18], 0
mov al, byte [ebp - 0x2c]
xor byte [ebp + ecx - 0x2b], al
inc ecx
cmp ecx, 0x13
jb 0x10005f64
sub esp, 0x18
mov byte [ebp - 0x18], 0
mov edx, esp
lea ecx, [ebp - 0x2b]
xorps xmm0, xmm0
lea esi, [ecx + 1]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10005f94
sub ecx, esi
lea eax, [ebp - 0x2b]
push ecx
push eax
mov ecx, edx
call fcn.100024a0
lea eax, [ebp - 0x6c]
push eax
call fcn.10006910
add esp, 0x20
mov edx, eax
mov dword [ebp - 4], 6
cmp dword [edx + 0x14], 0xf
jbe 0x10005fc6
mov edx, dword [edx]
mov ecx, edx
mov dword [ebp - 0x20], 0
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10005fe0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x30]
call fcn.100024a0
mov edx, 0xffff3b3b
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x30]
call fcn.10006080
mov ecx, dword [ebp - 0x1c]
cmp ecx, 0xf
jbe 0x10006038
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000602e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10005d4a
push ecx
push edx
call fcn.1007d105
add esp, 8
mov ecx, dword [ebp - 0x58]
cmp ecx, 0xf
jbe case.default.0x10005c1f
mov edx, dword [ebp - 0x6c]
inc ecx
jmp 0x10005d28
push ecx
push edx
call fcn.1007d105
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret