Function at 0x101874c0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x2c
mov eax, dword [0x104fb780]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x3c]
push ebx
mov ebx, dword [esp + 0x38]
push ebp
mov ebp, dword [esp + 0x40]
push esi
mov esi, dword [esp + 0x3c]
push edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebp
mov edi, dword [esi + 0x10de4]
mov dword [esp + 0x14], eax
cmp dword [esi + 0x10de0], edi
je 0x10187533
imul ecx, edi, 0x2c
mov edx, dword [ecx + esi + 0x10dfc]
mov eax, edx
sub eax, edi
mov edi, dword [esp + 0x14]
mov dword [edi], eax
mov eax, dword [ecx + esi + 0x10e00]
pop edi
mov dword [esi + 0x10de4], edx
pop esi
mov dword [ebp], eax
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.1011f88a
add esp, 0x2c
ret
cmp dword [ebx + 0x18], 0
jne 0x101875df
cmp dword [esi + 0x10d98], 0x80
jb 0x10187552
push esi
call fcn.10185e00
add esp, 4
cmp dword [esi + 0x10ddc], 0x10
jb 0x101875df
xor eax, eax
lea ecx, [esi + 0x10d9c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], ecx
nop
mov edi, eax
mov dword [esp + 0x18], 4
xor ebp, ebp
mov ebx, 1
movzx ecx, word [esi + ebx*2 + 0x70e4]
mov edx, edi
and edx, 1
shr ecx, 4
mov eax, edx
shr edi, 1
neg eax
shr eax, 4
and eax, 0x7f
lea ebx, [edx + ebx*2]
xor ecx, eax
movzx eax, byte [ecx + 0x104a0ba8]
add ebp, eax
sub dword [esp + 0x18], 1
jne 0x10187581
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
mov dword [ecx], ebp
add ecx, 4
mov dword [esp + 0x10], ecx
cmp eax, 0x10
jb 0x10187570
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
mov dword [esi + 0x10ddc], 0
push dword [esp + 0x50]
push dword [esp + 0x18]
push ebp
push ebx
push esi
call fcn.101860a0
add esp, 0x14
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x1018773c
movups xmm0, xmmword [esi + 0x1e8]
mov edi, 1
movups xmmword [esp + 0x28], xmm0
cmp eax, edi
jbe 0x10187684
lea eax, [esi + 0x1f8]
lea ecx, [esi + 0xa88]
push eax
push ecx
push ebx
call fcn.101881b0
mov ebp, dword [ebx + 0x48]
add esp, 0xc
mov dword [esi + 0xa8c], eax
cmp eax, ebp
jae 0x10187684
mov edx, dword [ebx + 0x14]
mov eax, 0xfff
mov ecx, dword [ebx + 0x20]
sub eax, edi
sub ecx, edx
inc ecx
cmp ecx, eax
cmovae ecx, eax
mov eax, dword [esp + 0x50]
push ecx
push ebp
push edi
add eax, edi
dec edx
push eax
push dword [esp + 0x20]
mov eax, dword [ebx]
add eax, edx
push eax
lea eax, [esp + 0x40]
push eax
push esi
call fcn.101866e0
inc edi
mov dword [esp + 0x30], eax
add esp, 0x20
lea ecx, [esi + 0xa88]
cmp edi, eax
lea eax, [esi + 0x1f8]
jb 0x10187620
imul eax, edi, 0x2c
mov dword [esi + 0x10de0], edi
mov ebx, dword [eax + esi + 0x10dfc]
mov ebp, dword [eax + esi + 0x10e00]
nop dword [eax + eax]
imul edx, edi, 0x2c
add edx, esi
cmp byte [edx + 0x10dec], 0
je 0x101876f5
imul ecx, ebx, 0x2c
lea eax, [ebx - 1]
add ecx, esi
mov dword [ecx + 0x10e00], 0xffffffff
mov byte [ecx + 0x10dec], 0
mov dword [ecx + 0x10dfc], eax
cmp byte [edx + 0x10ded], 0
je 0x101876f5
mov byte [ecx + 0x10dc0], 0
mov eax, dword [edx + 0x10df0]
mov dword [ecx + 0x10dd0], eax
mov eax, dword [edx + 0x10df4]
mov dword [ecx + 0x10dd4], eax
imul eax, ebx, 0x2c
mov edx, ebx
mov ecx, ebp
mov ebx, dword [eax + esi + 0x10dfc]
mov ebp, dword [eax + esi + 0x10e00]
mov dword [eax + esi + 0x10dfc], edi
mov edi, edx
mov dword [eax + esi + 0x10e00], ecx
test edx, edx
jne 0x101876a0
mov edi, dword [esp + 0x14]
mov eax, dword [esi + 0x10dfc]
mov ecx, dword [esp + 0x20]
mov dword [esi + 0x10de4], eax
mov dword [edi], eax
mov eax, dword [esi + 0x10e00]
mov dword [ecx], eax
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1011f88a
add esp, 0x2c
ret