Function at 0x1000b183
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
mov esi, ecx
mov ecx, dword [eax + 8]
push edi
mov edi, dword [eax]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0xc], eax
movzx eax, byte [edi + 4]
mov dword [ebp - 0x20], eax
movzx eax, byte [edi + 5]
and dword [ebp - 4], 0
mov dword [ebp - 0x10], ecx
mov ecx, eax
mov ebx, dword [esi + 0x24]
and ecx, 1
mov dword [ebp - 0x24], ecx
mov ecx, eax
and eax, 4
mov dword [ebp - 0x28], eax
mov eax, dword [edi + 6]
mov dword [ebp - 0x30], eax
mov eax, dword [edi + 0xa]
mov dword [ebp - 0x2c], eax
mov eax, dword [edi + 0xe]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 0x12]
mov dword [ebp - 0x18], eax
movzx eax, byte [edi + 0x1a]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0xc]
and ecx, 2
mov dword [ebp - 0x14], ecx
test eax, eax
je 0x1000b198
sub dword [esi + 8], eax
mov edx, dword [esi + 8]
je 0x1000b194
mov ecx, dword [esi]
push edx
add eax, ecx
push eax
push ecx
call dword [sym.imp.msvcrt.dll_memmove]
add esp, 0xc
and dword [esi + 0xc], 0
test ebx, ebx
je 0x1000b1d9
mov ecx, dword [esi + 0x1c]
sub ecx, ebx
je 0x1000b1cf
mov eax, dword [esi + 0x10]
shl ecx, 2
push ecx
lea ecx, [eax + ebx*4]
push ecx
push eax
call dword [sym.imp.msvcrt.dll_memmove]
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x14]
sub ecx, ebx
shl ecx, 3
push ecx
lea ecx, [eax + ebx*8]
push ecx
push eax
call dword [sym.imp.msvcrt.dll_memmove]
add esp, 0x18
sub dword [esi + 0x1c], ebx
sub dword [esi + 0x20], ebx
and dword [esi + 0x24], 0
mov eax, dword [ebp - 0x1c]
cmp eax, dword [esi + 0x150]
je 0x1000b1ec
or eax, 0xffffffff
jmp 0x1000b364
cmp dword [ebp - 0x20], 0
jg 0x1000b1e4
mov ecx, dword [ebp - 8]
inc ecx
call fcn.1000af54
mov eax, dword [esi + 0x154]
cmp dword [ebp - 0x18], eax
je 0x1000b24c
mov eax, dword [esi + 0x20]
cmp eax, dword [esi + 0x1c]
jge 0x1000b230
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 8]
lea edx, [edx + eax*4]
mov ebx, dword [edx]
and ebx, 0xff
sub ecx, ebx
inc eax
mov dword [esi + 8], ecx
add edx, 4
cmp eax, dword [esi + 0x1c]
jl 0x1000b217
mov eax, dword [esi + 0x20]
cmp dword [esi + 0x154], 0xffffffff
mov dword [esi + 0x1c], eax
je 0x1000b24c
mov ecx, dword [esi + 0x10]
mov dword [ecx + eax*4], 0x400
inc dword [esi + 0x1c]
inc dword [esi + 0x20]
cmp dword [ebp - 0x24], 0
je 0x1000b28f
mov eax, dword [esi + 0x1c]
cmp eax, 1
jl 0x1000b267
mov ecx, dword [esi + 0x10]
cmp dword [ecx + eax*4 - 4], 0x400
jne 0x1000b28f
mov ecx, dword [ebp - 8]
and dword [ebp - 0x14], 0
test ecx, ecx
jle 0x1000b28f
mov eax, dword [ebp - 4]
movzx eax, byte [edi + eax + 0x1b]
add dword [ebp - 0x10], eax
sub dword [ebp - 0xc], eax
inc dword [ebp - 4]
cmp eax, 0xff
jl 0x1000b28f
cmp dword [ebp - 4], ecx
jl 0x1000b272
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x1000b2b2
mov eax, ebx
call fcn.1000af3b
mov eax, dword [esi + 8]
add eax, dword [esi]
push ebx
push dword [ebp - 0x10]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
add dword [esi + 8], ebx
mov eax, dword [ebp - 4]
or ebx, 0xffffffff
cmp eax, dword [ebp - 8]
jge 0x1000b334
jmp 0x1000b2c2
mov eax, dword [ebp - 4]
movzx edx, byte [edi + eax + 0x1b]
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x10]
mov dword [ecx + eax*4], edx
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x1c]
or dword [eax + ecx*8], 0xffffffff
or dword [eax + ecx*8 + 4], 0xffffffff
cmp dword [ebp - 0x14], 0
je 0x1000b2f8
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x10]
lea eax, [ecx + eax*4]
or dword [eax], 0x100
and dword [ebp - 0x14], 0
cmp edx, 0xff
jge 0x1000b303
mov ebx, dword [esi + 0x1c]
inc dword [esi + 0x1c]
inc dword [ebp - 4]
mov eax, dword [esi + 0x1c]
cmp edx, 0xff
jge 0x1000b317
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jl 0x1000b2bf
cmp ebx, 0xffffffff
je 0x1000b334
mov eax, dword [esi + 0x14]
mov ecx, dword [ebp - 0x30]
mov dword [eax + ebx*8], ecx
mov ecx, dword [ebp - 0x2c]
mov dword [eax + ebx*8 + 4], ecx
cmp dword [ebp - 0x28], 0
je 0x1000b358
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x148], 1
test eax, eax
jle 0x1000b358
mov ecx, dword [esi + 0x10]
lea eax, [ecx + eax*4 - 4]
or dword [eax], 0x200
mov eax, dword [ebp - 0x18]
inc eax
mov dword [esi + 0x154], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret