Function at 0x1000ffa0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
add eax, 0x29b
push ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x28]
push ebp
mov ebp, dword [esp + 0x24]
lea ebx, [ecx + 0x730]
add eax, 0x587
mov dword [esp + 0x2c], ebx
push esi
mov esi, dword [esp + 0x38]
lea edx, [ecx - 0x25f]
mov dword [esp + 0x14], eax
add ebp, 0xfffff6aa
lea eax, [ecx - 0x3c85]
mov dword [esp + 0xc], ebp
mov ecx, dword [esp + 0x20]
push edi
mov edi, dword [esp + 0x38]
add ecx, 0xffffc50e
add edi, 0x540
mov dword [esp + 0x28], eax
cmp ecx, ebx
je 0x100102b5
mov eax, dword [esi + 0xfc]
mov ecx, dword [esi + 0x150]
lea ecx, [eax + ecx*4]
mov eax, dword [esi + 0x160]
add dword [ecx], eax
mov eax, dword [esi + 0xfc]
mov ecx, dword [esi + 0x15c]
lea ecx, [eax + ecx*4]
mov eax, dword [esi + 0x168]
add dword [ecx], eax
cmp dword [esi + 0x38], 0x3708
jbe 0x1001005d
mov eax, dword [esi + 0xdc]
imul eax, dword [esi + 0x1cc]
imul eax, eax, 0x3e2e
mov dword [esi + 0x1cc], eax
mov eax, dword [esi + 8]
mov edx, dword [esi + 0x174]
mov ecx, dword [eax + 0xc]
mov eax, dword [edx + 0xc]
xor ecx, 0x84
xor eax, 0x84
cmp ecx, eax
ja 0x10010095
imul edi, dword [esi + 0xf4], 0x4396
mov dword [esi + 0x70], edi
inc ecx
mov eax, dword [edx + 0xc]
xor eax, 0x84
cmp ecx, eax
jbe 0x10010085
xor ebp, ebp
mov dword [esp + 0x2c], ebp
cmp dword [esi + 0x13c], ebp
jle 0x10010289
nop word [eax + eax]
xor ebx, ebx
cmp dword [esi + 0x14c], ebx
jle 0x10010208
lea ebp, [esi + 0x158]
nop dword [eax]
nop dword [eax + eax]
mov edx, dword [esi + 0xfc]
mov eax, dword [esi + 0x150]
lea ecx, [edx + eax*4]
mov eax, dword [esi + 0x15c]
mov eax, dword [edx + eax*4]
xor dword [ecx], eax
imul eax, dword [esi + 0x14], 0x3af2
mov ecx, dword [esi + 0x174]
or dword [ecx + 0x40], eax
mov ecx, dword [esi + 0x170]
and ecx, 0x8000001f
jns 0x1001010d
dec ecx
or ecx, 0xffffffe0
inc ecx
mov edx, dword [esi + 0xfc]
mov eax, dword [esi + 0x150]
mov edi, dword [edx + eax*4]
je 0x10010120
ror edi, cl
mov eax, dword [esi + 0x15c]
add dword [edx + eax*4], edi
mov eax, dword [esi + 4]
mov eax, dword [eax + 0xc]
xor eax, 0x7d2b
cmp eax, 0x3e1a
ja 0x10010148
imul eax, dword [esi + 8], 0x43b5
or dword [esi + 0x1cc], eax
mov eax, dword [esi + 0x28]
mov dword [esi + 0x38], ebp
mov eax, dword [eax + 0xa0]
xor eax, 0x7972
cmp eax, 0x410b
jg 0x10010185
mov edx, 0x410c
sub edx, eax
nop word [eax + eax]
mov ecx, dword [esi + 8]
imul eax, dword [ecx + 0x70], 0xffffc1e6
add dword [ecx + 0xd0], eax
sub edx, 1
jne 0x10010170
mov eax, dword [esi + 0x150]
inc eax
cdq
idiv dword [esi + 0x108]
mov dword [esi + 0x150], edx
cmp dword [esi + 0x94], 0x3c85
jne 0x100101b5
mov eax, dword [esi + 8]
imul eax, dword [esi + 0x14]
imul eax, eax, 0x3e1a
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x15c]
mov ecx, 0x43b5
inc eax
cdq
idiv dword [esi + 0x108]
mov dword [esi + 0x15c], edx
mov edx, dword [esi + 0x28]
mov eax, dword [edx + 0xc]
add eax, 0x86
cmp eax, ecx
jb 0x100101f7
nop dword [eax]
mov dword [esi + 0x8c], 0x3712
inc ecx
mov eax, dword [edx + 0xc]
add eax, 0x86
cmp ecx, eax
jbe 0x100101e0
inc ebx
cmp ebx, dword [esi + 0x14c]
jl 0x100100d0
mov ebp, dword [esp + 0x2c]
mov ecx, dword [esi + 0x150]
mov eax, dword [esi + 0xf8]
lea edx, [eax + ecx*4]
mov ecx, dword [esi + 0x15c]
mov eax, dword [esi + 0xfc]
mov eax, dword [eax + ecx*4]
add dword [edx], eax
mov ecx, dword [esi + 0x16c]
and ecx, 0x8000001f
jns 0x1001023b
dec ecx
or ecx, 0xffffffe0
inc ecx
mov eax, dword [esi + 0xfc]
je 0x10010250
mov edx, dword [esi + 0x150]
mov edx, dword [eax + edx*4]
ror edx, cl
jmp 0x10010259
mov ecx, dword [esi + 0x150]
mov edx, dword [eax + ecx*4]
mov eax, dword [esi + 0xf8]
inc ebp
mov ecx, dword [esi + 0x15c]
mov dword [esp + 0x2c], ebp
add dword [eax + ecx*4], edx
mov eax, dword [esi + 0x174]
mov dword [eax + 0xd0], 0x3e56
cmp ebp, dword [esi + 0x13c]
jl 0x100100b0
mov eax, dword [esp + 0x30]
pop edi
mov dword [esi + 0x13c], 0x52d395
mov dword [esi + 0x14c], 0xa7
or dword [esi + 0x14], 0x3af2
add eax, 0x968
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [esi + 0x58]
or eax, dword [esp + 0x28]
cmp ebp, eax
ja 0x10010371
mov eax, ecx
sub eax, dword [esp + 0x14]
cmp ebp, eax
jl 0x10010336
imul eax, dword [esi + 0x20], 0x3d52
or edi, 0x3af2
imul edi, dword [esi + 0x134]
or eax, ecx
mov ecx, dword [esp + 0x2c]
sub dword [esi + 0xf4], eax
add ecx, 0xffffbe31
mov eax, dword [esi + 0xcc]
add eax, ecx
mov dword [esi + 0x134], edi
or eax, 0x3e1a
sub dword [esi + 0x1ec], eax
mov eax, dword [esi + 0x164]
and eax, dword [esi + 0xd0]
xor eax, dword [esi + 0x188]
xor dword [esi + 0x148], eax
mov eax, dword [esp + 0x30]
pop edi
pop esi
pop ebp
add eax, 0x968
pop ebx
add esp, 0xc
ret
mov eax, dword [esi + 0x134]
add eax, ebx
or eax, dword [esi + 0x70]
cmp ebp, eax
jb 0x100103ce
mov eax, dword [esi + 0xf4]
mov ecx, dword [esi + 0x1cc]
add ecx, eax
imul ecx, eax
mov eax, dword [esp + 0x30]
pop edi
add eax, 0x968
mov dword [esi + 0xf4], ecx
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [esi + 0x1cc]
and eax, edx
sub eax, dword [esi + 0x70]
cmp ebp, eax
jb 0x100103ce
mov eax, dword [esi + 0x40]
add eax, 0x43b5
imul ebx, eax, 0x3af2
nop
mov ecx, dword [esi + 0x134]
cmp ecx, ebx
je 0x100103b8
mov edi, dword [esp + 0x34]
mov ebp, dword [esi + 0x88]
xor edi, dword [esp + 0x18]
lea eax, [edi + ebp]
add ecx, 4
sub edx, eax
cmp ecx, ebx
jne 0x100103a8
mov ebp, dword [esp + 0x10]
mov eax, dword [esi + 0x1cc]
add ebp, 2
and eax, edx
mov dword [esp + 0x10], ebp
sub eax, dword [esi + 0x70]
cmp ebp, eax
jae 0x10010390
mov eax, dword [esp + 0x30]
pop edi
pop esi
pop ebp
add eax, 0x968
pop ebx
add esp, 0xc
ret