Function at 0x1016b08c
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov ebx, dword [esp + 0x18]
mov edi, ecx
test edx, edx
jne 0x1016b701
mov ebp, edx
cmp ebp, 0x44
mov dword [esp], edx
jb 0x1016b66d
mov esi, dword [esp + 0x1c]
mov edx, dword [ebx + 0x10]
mov eax, dword [ebx]
xor edx, dword [ebx + 0x3c]
mov ecx, eax
shr eax, 0x18
shl ecx, 8
xor ecx, edx
mov edx, edi
xor ecx, dword [eax*4 + 0x104396bc]
mov dword [ebx], ecx
add ecx, dword [ebx + 4]
mov eax, ecx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x10439abc]
ror ecx, 8
add ecx, dword [ebx + 8]
xor ecx, dword [ebx + 0x88]
add ecx, dword [ebx + 0x1c]
mov eax, ecx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x10439abc]
add ecx, dword [ebx + 0x38]
push esi
call fcn.1016b752
add esp, 4
mov edx, dword [ebx + 0x14]
mov eax, dword [ebx + 4]
xor edx, dword [ebx + 0x40]
mov ecx, eax
shr eax, 0x18
shl ecx, 8
xor ecx, edx
lea edx, [edi + 4]
xor ecx, dword [eax*4 + 0x104396bc]
mov dword [ebx + 4], ecx
add ecx, dword [ebx + 8]
mov eax, ecx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x10439abc]
ror ecx, 8
add ecx, dword [ebx + 0xc]
xor ecx, dword [ebx + 0x88]
add ecx, dword [ebx + 0x20]
mov eax, ecx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x10439abc]
add ecx, dword [ebx + 0x3c]
push esi
call fcn.1016b752
add esp, 4
mov edx, dword [ebx + 0x18]
mov eax, dword [ebx + 8]
xor edx, dword [ebx]
mov ecx, eax
shr eax, 0x18
shl ecx, 8
xor ecx, edx
lea edx, [edi + 8]
xor ecx, dword [eax*4 + 0x104396bc]
mov dword [ebx + 8], ecx
add ecx, dword [ebx + 0xc]
mov eax, ecx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x10439abc]
ror ecx, 8
add ecx, dword [ebx + 0x10]
xor ecx, dword [ebx + 0x88]
add ecx, dword [ebx + 0x24]
mov eax, ecx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x10439abc]
add ecx, dword [ebx + 0x40]
push esi
call fcn.1016b752
add esp, 4
mov edx, dword [ebx + 0x1c]
mov eax, dword [ebx + 0xc]
xor edx, dword [ebx + 4]
mov ecx, eax
shr eax, 0x18
shl ecx, 8
xor ecx, edx
lea edx, [edi + 0xc]
xor ecx, dword [eax*4 + 0x104396bc]
mov dword [ebx + 0xc], ecx
add ecx, dword [ebx + 0x10]
mov eax, ecx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x10439abc]
ror ecx, 8
add ecx, dword [ebx + 0x14]
xor ecx, dword [ebx + 0x88]
add ecx, dword [ebx + 0x28]
mov eax, ecx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x10439abc]
add ecx, dword [ebx]
push esi
call fcn.1016b752
add esp, 4
mov edx, dword [ebx + 0x20]
mov eax, dword [ebx + 0x10]
xor edx, dword [ebx + 8]
mov ecx, eax
shr eax, 0x18
shl ecx, 8
xor ecx, edx
lea edx, [edi + 0x10]
xor ecx, dword [eax*4 + 0x104396bc]
mov dword [ebx + 0x10], ecx
add ecx, dword [ebx + 0x14]
mov eax, ecx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x10439abc]
ror ecx, 8
add ecx, dword [ebx + 0x18]
xor ecx, dword [ebx + 0x88]
add ecx, dword [ebx + 0x2c]
mov eax, ecx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x10439abc]
add ecx, dword [ebx + 4]
push esi
call fcn.1016b752
add esp, 4
mov edx, dword [ebx + 0x24]
mov eax, dword [ebx + 0x14]
xor edx, dword [ebx + 0xc]
mov ecx, eax
shr eax, 0x18
shl ecx, 8
xor ecx, edx
lea edx, [edi + 0x14]
xor ecx, dword [eax*4 + 0x104396bc]
mov dword [ebx + 0x14], ecx
add ecx, dword [ebx + 0x18]
mov eax, ecx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x10439abc]
ror ecx, 8
add ecx, dword [ebx + 0x1c]
xor ecx, dword [ebx + 0x88]
add ecx, dword [ebx + 0x30]
mov eax, ecx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x10439abc]
add ecx, dword [ebx + 8]
push esi
call fcn.1016b752
add esp, 4
mov edx, dword [ebx + 0x28]
mov eax, dword [ebx + 0x18]
xor edx, dword [ebx + 0x10]
mov ecx, eax
shr eax, 0x18
shl ecx, 8
xor ecx, edx
lea edx, [edi + 0x18]
xor ecx, dword [eax*4 + 0x104396bc]
mov dword [ebx + 0x18], ecx
add ecx, dword [ebx + 0x1c]
mov eax, ecx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x10439abc]
ror ecx, 8
add ecx, dword [ebx + 0x20]
xor ecx, dword [ebx + 0x88]
add ecx, dword [ebx + 0x34]
mov eax, ecx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x10439abc]
add ecx, dword [ebx + 0xc]
push esi
call fcn.1016b752
add esp, 4
mov edx, dword [ebx + 0x2c]
mov eax, dword [ebx + 0x1c]
xor edx, dword [ebx + 0x14]
mov ecx, eax
shr eax, 0x18
shl ecx, 8
xor ecx, edx
lea edx, [edi + 0x1c]
xor ecx, dword [eax*4 + 0x104396bc]
mov dword [ebx + 0x1c], ecx
add ecx, dword [ebx + 0x20]
mov eax, ecx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x10439abc]
ror ecx, 8
add ecx, dword [ebx + 0x24]
xor ecx, dword [ebx + 0x88]
add ecx, dword [ebx + 0x38]
mov eax, ecx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x10439abc]
add ecx, dword [ebx + 0x10]
push esi
call fcn.1016b752
add esp, 4
mov edx, dword [ebx + 0x30]
mov eax, dword [ebx + 0x20]
xor edx, dword [ebx + 0x18]
mov ecx, eax
shr eax, 0x18
shl ecx, 8
xor ecx, edx
lea edx, [edi + 0x20]
xor ecx, dword [eax*4 + 0x104396bc]
mov dword [ebx + 0x20], ecx
add ecx, dword [ebx + 0x24]
mov eax, ecx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x10439abc]
ror ecx, 8
add ecx, dword [ebx + 0x28]
xor ecx, dword [ebx + 0x88]
add ecx, dword [ebx + 0x3c]
mov eax, ecx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x10439abc]
add ecx, dword [ebx + 0x14]
push esi
call fcn.1016b752
add esp, 4
mov edx, dword [ebx + 0x34]
mov eax, dword [ebx + 0x24]
xor edx, dword [ebx + 0x1c]
mov ecx, eax
shr eax, 0x18
shl ecx, 8
xor ecx, edx
lea edx, [edi + 0x24]
xor ecx, dword [eax*4 + 0x104396bc]
mov dword [ebx + 0x24], ecx
add ecx, dword [ebx + 0x28]
mov eax, ecx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x10439abc]
ror ecx, 8
add ecx, dword [ebx + 0x2c]
xor ecx, dword [ebx + 0x88]
add ecx, dword [ebx + 0x40]
mov eax, ecx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x10439abc]
add ecx, dword [ebx + 0x18]
push esi
call fcn.1016b752
add esp, 4
mov edx, dword [ebx + 0x38]
mov eax, dword [ebx + 0x28]
xor edx, dword [ebx + 0x20]
mov ecx, eax
shr eax, 0x18
shl ecx, 8
xor ecx, edx
lea edx, [edi + 0x28]
xor ecx, dword [eax*4 + 0x104396bc]
mov dword [ebx + 0x28], ecx
add ecx, dword [ebx + 0x2c]
mov eax, ecx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x10439abc]
ror ecx, 8
add ecx, dword [ebx + 0x30]
xor ecx, dword [ebx + 0x88]
add ecx, dword [ebx]
mov eax, ecx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x10439abc]
add ecx, dword [ebx + 0x1c]
push esi
call fcn.1016b752
add esp, 4
mov edx, dword [ebx + 0x3c]
mov eax, dword [ebx + 0x2c]
xor edx, dword [ebx + 0x24]
mov ecx, eax
shr eax, 0x18
shl ecx, 8
xor ecx, edx
lea edx, [edi + 0x2c]
xor ecx, dword [eax*4 + 0x104396bc]
mov dword [ebx + 0x2c], ecx
add ecx, dword [ebx + 0x30]
mov eax, ecx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x10439abc]
ror ecx, 8
add ecx, dword [ebx + 0x34]
xor ecx, dword [ebx + 0x88]
add ecx, dword [ebx + 4]
mov eax, ecx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x10439abc]
add ecx, dword [ebx + 0x20]
push esi
call fcn.1016b752
add esp, 4
mov edx, dword [ebx + 0x40]
mov eax, dword [ebx + 0x30]
xor edx, dword [ebx + 0x28]
mov ecx, eax
shr eax, 0x18
shl ecx, 8
xor ecx, edx
lea edx, [edi + 0x30]
xor ecx, dword [eax*4 + 0x104396bc]
mov dword [ebx + 0x30], ecx
add ecx, dword [ebx + 0x34]
mov eax, ecx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x10439abc]
ror ecx, 8
add ecx, dword [ebx + 0x38]
xor ecx, dword [ebx + 0x88]
add ecx, dword [ebx + 8]
mov eax, ecx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x10439abc]
add ecx, dword [ebx + 0x24]
push esi
call fcn.1016b752
add esp, 4
mov eax, dword [ebx]
mov edx, dword [ebx + 0x34]
xor eax, dword [ebx + 0x2c]
mov ecx, edx
shr edx, 0x18
shl ecx, 8
xor ecx, eax
xor ecx, dword [edx*4 + 0x104396bc]
lea edx, [edi + 0x34]
mov dword [ebx + 0x34], ecx
add ecx, dword [ebx + 0x38]
mov eax, ecx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x10439abc]
ror ecx, 8
add ecx, dword [ebx + 0x3c]
xor ecx, dword [ebx + 0x88]
add ecx, dword [ebx + 0xc]
mov eax, ecx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x10439abc]
add ecx, dword [ebx + 0x28]
push esi
call fcn.1016b752
add esp, 4
mov eax, dword [ebx + 4]
mov edx, dword [ebx + 0x38]
xor eax, dword [ebx + 0x30]
mov ecx, edx
shr edx, 0x18
shl ecx, 8
xor ecx, eax
xor ecx, dword [edx*4 + 0x104396bc]
lea edx, [edi + 0x38]
mov dword [ebx + 0x38], ecx
add ecx, dword [ebx + 0x3c]
mov eax, ecx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x10439abc]
ror ecx, 8
add ecx, dword [ebx + 0x40]
xor ecx, dword [ebx + 0x88]
add ecx, dword [ebx + 0x10]
mov eax, ecx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x10439abc]
add ecx, dword [ebx + 0x2c]
push esi
call fcn.1016b752
add esp, 4
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0x3c]
xor eax, dword [ebx + 0x34]
mov ecx, edx
shr edx, 0x18
shl ecx, 8
xor ecx, eax
xor ecx, dword [edx*4 + 0x104396bc]
lea edx, [edi + 0x3c]
mov dword [ebx + 0x3c], ecx
add ecx, dword [ebx + 0x40]
mov eax, ecx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x10439abc]
ror ecx, 8
add ecx, dword [ebx]
xor ecx, dword [ebx + 0x88]
add ecx, dword [ebx + 0x14]
mov eax, ecx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x10439abc]
add ecx, dword [ebx + 0x30]
push esi
call fcn.1016b752
add esp, 4
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x40]
xor eax, dword [ebx + 0x38]
mov ecx, edx
shr edx, 0x18
shl ecx, 8
xor ecx, eax
xor ecx, dword [edx*4 + 0x104396bc]
lea edx, [edi + 0x40]
mov dword [ebx + 0x40], ecx
add ecx, dword [ebx]
mov eax, ecx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x10439abc]
ror ecx, 8
add ecx, dword [ebx + 4]
xor ecx, dword [ebx + 0x88]
add ecx, dword [ebx + 0x18]
mov eax, ecx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x10439abc]
add ecx, dword [ebx + 0x34]
push esi
call fcn.1016b752
add esp, 4
add ebp, 0xffffffbc
add edi, 0x44
cmp ebp, 0x43
ja 0x1016b0b1
cmp ebp, 4
jb 0x1016b6a0
mov esi, ebp
mov ecx, ebx
call fcn.1016a9ed
mov ecx, ebx
call fcn.1016aa2b
mov ecx, eax
mov edx, edi
push dword [esp + 0x1c]
call fcn.1016b752
add esp, 4
add esi, 0xfffffffc
add edi, 4
cmp esi, 3
ja 0x1016b674
and ebp, 3
mov esi, dword [esp]
test ebp, ebp
je 0x1016b6f7
mov ecx, ebx
call fcn.1016a9ed
mov ecx, ebx
call fcn.1016aa2b
mov edx, dword [esp + 0x1c]
mov dword [ebx + 0x8c], eax
mov dword [ebx + 0x90], 0x20
test edx, edx
je 0x1016b6cf
xor al, byte [edi]
mov byte [edi], al
mov eax, dword [ebx + 0x8c]
mov ecx, dword [ebx + 0x90]
shr eax, 8
add ecx, 0xfffffff8
dec ebp
mov dword [ebx + 0x8c], eax
mov dword [ebx + 0x90], ecx
je 0x1016b6f7
inc edi
test ecx, ecx
jne 0x1016b6c9
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebx + 0x90]
test eax, eax
je 0x1016b09f
mov eax, dword [ebx + 0x8c]
mov ebp, edx
cmp dword [esp + 0x1c], 0
je 0x1016b720
xor al, byte [edi]
mov byte [edi], al
inc edi
mov eax, dword [ebx + 0x8c]
mov ecx, dword [ebx + 0x90]
shr eax, 8
add ecx, 0xfffffff8
dec ebp
mov dword [ebx + 0x8c], eax
mov dword [ebx + 0x90], ecx
je 0x1016b0a1
test ecx, ecx
je 0x1016b0a1
jmp 0x1016b717