Function at 0x10005120
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
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100c1e29
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x30
push esi
mov esi, dword [ebx + 8]
push edi
mov edi, dword [0x101195f4]
push 0
lea ecx, [edi + 0x10]
mov dword [ecx], 0
push ecx
push 0
push 0x42
push 0x248
mov dword [edi + 4], 0
mov dword [edi + 8], 0x200
mov dword [edi + 0xc], 0x800
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov eax, dword [esi]
push 0x8000
push esi
call dword [eax + 0x68]
test eax, eax
js 0x100054cb
mov eax, dword [esi]
lea ecx, [edi + 0x14]
push 0
push ecx
push 0
push 0x142
push 0x248
push 0x60
push esi
call dword [eax + 0x68]
test eax, eax
js 0x100054cb
xor ecx, ecx
nop word [eax + eax]
movzx eax, cl
imul eax, eax, 0x8b
xor byte [ecx + 0x10108a40], al
inc ecx
cmp ecx, 0x3038
jb 0x100051f0
lea eax, [edi + 0x18]
push eax
push 0x3038
push 0x10108a40
push esi
call fcn.100346a0
add esp, 0x10
xor ecx, ecx
movzx eax, cl
imul eax, eax, 0x8b
xor byte [ecx + 0x10108a40], al
inc ecx
cmp ecx, 0x3038
jb 0x10005221
xor ecx, ecx
nop dword [eax + eax]
movzx eax, cl
imul eax, eax, 0x8b
xor byte [ecx + 0x10105f58], al
inc ecx
cmp ecx, 0x2ae1
jb 0x10005240
lea eax, [edi + 0x1c]
push eax
push 0x2ae1
push 0x10105f58
push esi
call fcn.100346a0
add esp, 0x10
xor ecx, ecx
movzx eax, cl
imul eax, eax, 0x8b
xor byte [ecx + 0x10105f58], al
inc ecx
cmp ecx, 0x2ae1
jb 0x10005271
xor ecx, ecx
nop dword [eax + eax]
movzx eax, cl
imul eax, eax, 0x8b
xor byte [ecx + 0x100fc778], al
inc ecx
cmp ecx, 0x97e0
jb 0x10005290
lea eax, [edi + 0x20]
push eax
push 0x97e0
push 0x100fc778
push esi
call fcn.100346a0
add esp, 0x10
xor ecx, ecx
movzx eax, cl
imul eax, eax, 0x8b
xor byte [ecx + 0x100fc778], al
inc ecx
cmp ecx, 0x97e0
jb 0x100052c1
xor ecx, ecx
nop dword [eax + eax]
movzx eax, cl
imul eax, eax, 0x8b
xor byte [ecx + 0x100ec5e8], al
inc ecx
cmp ecx, 0x10190
jb 0x100052e0
lea eax, [edi + 0x24]
push eax
push 0x10190
push 0x100ec5e8
push esi
call fcn.100346a0
add esp, 0x10
xor ecx, ecx
movzx eax, cl
imul eax, eax, 0x8b
xor byte [ecx + 0x100ec5e8], al
inc ecx
cmp ecx, 0x10190
jb 0x10005311
xor ecx, ecx
nop dword [eax + eax]
movzx eax, cl
imul eax, eax, 0x8b
xor byte [ecx + 0x100dab20], al
inc ecx
cmp ecx, 0x11ac3
jb 0x10005330
lea eax, [edi + 0x28]
push eax
push 0x11ac3
push 0x100dab20
push esi
call fcn.100346a0
add esp, 0x10
xor eax, eax
movzx ecx, al
imul ecx, ecx, 0x8b
xor byte [eax + 0x100dab20], cl
inc eax
cmp eax, 0x11ac3
jb 0x10005361
mov ecx, dword [edi + 0x1c]
lea edx, [ebp - 0x3c]
push edx
push 0
push ecx
mov eax, dword [ecx]
call dword [eax + 0x44]
mov ecx, dword [edi + 0x20]
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 0x24]
mov dword [edi + 0x2c], eax
mov eax, dword [ebp - 0x20]
push edx
mov dword [edi + 0x30], eax
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x44]
mov ecx, dword [edi + 0x24]
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 0x24]
mov dword [edi + 0x34], eax
mov eax, dword [ebp - 0x20]
push edx
mov dword [edi + 0x38], eax
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x44]
mov ecx, dword [edi + 0x28]
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 0x24]
mov dword [edi + 0x3c], eax
mov eax, dword [ebp - 0x20]
push edx
mov dword [edi + 0x40], eax
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x44]
mov eax, dword [ebp - 0x24]
mov dword [edi + 0x44], eax
mov eax, dword [ebp - 0x20]
mov dword [edi + 0x48], eax
lea eax, [edi + 0x3ac]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 0x10
push 0xb4
call fcn.1009718a
mov esi, eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0
push 0xb4
push 0
push esi
call fcn.100994f0
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, esi
push edi
mov dword [eax - 0x360], esi
call fcn.10003e40
push 0x1c
call fcn.1009718a
mov edx, dword [ebp - 0x14]
add esp, 4
xorps xmm0, xmm0
mov ecx, eax
movups xmmword [eax], xmm0
push edi
movq qword [eax + 0x10], xmm0
mov dword [eax + 0x18], 0
mov dword [edx], eax
call fcn.10006440
add edx, 4
sub dword [ebp - 0x18], 1
mov dword [ebp - 0x14], edx
jne 0x100053f4
lea eax, [edi + 0x8c]
mov dword [ebp - 0x18], 0xc8
mov dword [ebp - 0x14], eax
nop word [eax + eax]
push 0xb4
call fcn.1009718a
mov esi, eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 1
push 0xb4
push 0
push esi
call fcn.100994f0
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, esi
push edi
mov dword [eax], esi
call fcn.10005730
add dword [ebp - 0x14], 4
sub dword [ebp - 0x18], 1
jne 0x10005480
mov byte [edi], 1
xor eax, eax
jmp 0x100054d0
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4