Function at 0x10043fb0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x14]
cmp esi, 0x8000
push edi
mov edi, eax
mov dword [edi + 4], 0
mov dword [edi], 0
mov eax, esi
jl 0x10043fde
mov eax, 0x8000
push eax
mov eax, dword [edi + 8]
push ebx
push eax
call fcn.10064ea0
mov eax, 1
add esp, 0xc
xor cl, cl
cmp esi, eax
jle 0x10043fff
xor cl, byte [eax + ebx]
inc eax
cmp eax, esi
jl 0x10043ff7
mov eax, dword [edi + 4]
add eax, 8
mov edx, eax
sar edx, 3
add dword [edi], edx
and eax, 7
mov dword [edi + 4], eax
mov dword [ebp + 0x10], 0
cmp cl, byte [ebx]
jne 0x100443a8
push ebx
mov eax, esi
or edx, 0xffffffff
call fcn.10040860
add esp, 4
xor edx, edx
not eax
xor ecx, ecx
cmp dword [ecx + 0x100e3134], eax
jne 0x10044045
cmp dword [ecx + 0x100e3130], esi
je 0x10044053
add ecx, 0xc
inc edx
cmp ecx, 0x54
jb 0x10044035
jmp 0x100440e5
lea eax, [edx + edx*2]
mov ebx, dword [eax*4 + 0x100e3138]
test ebx, ebx
je 0x100440e5
inc dword [ebp + 4]
mov esi, dword [ebp + 4]
mov ecx, dword [ebp + 8]
cmp esi, ecx
jle 0x100440ac
mov eax, ecx
cdq
and edx, 3
add eax, edx
sar eax, 2
lea eax, [eax + ecx + 0x20]
cmp esi, eax
jg 0x10044087
mov esi, eax
mov edx, dword [ebp]
lea ecx, [esi + esi*4]
add ecx, ecx
add ecx, ecx
add ecx, ecx
push ecx
push edx
call fcn.100641d5
add esp, 8
mov dword [ebp], eax
test eax, eax
jne 0x100440a9
call fcn.10040cd0
mov dword [ebp + 8], esi
mov eax, dword [ebp + 0x10]
lea ecx, [eax + 1]
mov dword [ebp + 0x10], ecx
lea edx, [eax + eax*4]
mov eax, dword [ebp]
lea eax, [eax + edx*8]
lea ecx, [eax + 0xc]
mov dword [ecx], ebx
mov dword [eax + 0x14], ecx
lea ecx, [eax + 0x1c]
mov dword [eax + 0x24], ecx
mov ecx, 3
mov dword [eax], 0x36
mov dword [eax + 0x18], ecx
mov dword [eax + 8], ecx
mov dword [esp + 0x18], 0
mov edx, dword [edi]
mov eax, dword [edi + 8]
movzx esi, byte [edx + eax]
mov ebx, dword [edi + 4]
lea ecx, [edx + eax]
movzx eax, byte [ecx + 1]
movzx ecx, byte [ecx + 2]
shl esi, 8
or eax, esi
shl eax, 8
or eax, ecx
mov ecx, 8
sub ecx, ebx
shr eax, cl
lea ecx, [ebx + 1]
mov esi, ecx
sar esi, 3
add esi, edx
and ecx, 7
mov dword [edi], esi
mov dword [edi + 4], ecx
test eax, 0x8000
je 0x100441e8
mov edx, edi
call fcn.100445a0
mov esi, dword [esp + 0x18]
mov edx, eax
inc edx
xor ebx, ebx
cmp dword [edi], esi
mov dword [esp + 0x1c], edx
jge 0x100443a8
cmp ebx, edx
jge 0x100441ec
inc dword [ebp + 0x24]
mov esi, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x28]
cmp esi, ecx
jle 0x10044191
mov eax, ecx
cdq
and edx, 3
add eax, edx
sar eax, 2
lea eax, [eax + ecx + 0x20]
cmp esi, eax
jg 0x10044172
mov esi, eax
mov edx, dword [ebp + 0x20]
push esi
push edx
call fcn.100641d5
add esp, 8
mov dword [ebp + 0x20], eax
test eax, eax
je 0x100440a4
mov edx, dword [esp + 0x1c]
mov dword [ebp + 0x28], esi
mov eax, dword [edi]
mov ecx, dword [edi + 8]
movzx esi, byte [eax + ecx]
add eax, ecx
movzx ecx, byte [eax + 1]
movzx eax, byte [eax + 2]
shl esi, 8
or ecx, esi
shl ecx, 8
or ecx, eax
mov eax, ecx
mov ecx, 8
sub ecx, dword [edi + 4]
inc ebx
shr eax, cl
mov ecx, dword [ebp + 0x20]
shr eax, 8
mov byte [ebx + ecx - 1], al
mov eax, dword [edi + 4]
add eax, 8
mov ecx, eax
and eax, 7
sar ecx, 3
add dword [edi], ecx
mov dword [edi + 4], eax
mov eax, dword [esp + 0x18]
cmp dword [edi], eax
mov esi, eax
jl 0x10044148
jmp 0x100441ec
mov esi, dword [esp + 0x18]
cmp dword [edi], esi
jge 0x100443a8
inc dword [ebp + 4]
mov ebx, dword [ebp + 4]
mov ecx, dword [ebp + 8]
cmp ebx, ecx
jle 0x1004423a
mov eax, ecx
cdq
and edx, 3
add eax, edx
sar eax, 2
lea ecx, [eax + ecx + 0x20]
cmp ebx, ecx
jg 0x10044216
mov ebx, ecx
mov edx, dword [ebp]
lea ecx, [ebx + ebx*4]
add ecx, ecx
add ecx, ecx
add ecx, ecx
push ecx
push edx
call fcn.100641d5
add esp, 8
mov dword [ebp], eax
test eax, eax
je 0x100440a4
mov dword [ebp + 8], ebx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp]
mov edx, dword [edi]
lea eax, [eax + eax*4]
lea ebx, [ecx + eax*8]
mov eax, dword [edi + 8]
lea ecx, [edx + eax]
movzx edx, byte [ecx]
movzx eax, byte [ecx + 1]
movzx ecx, byte [ecx + 2]
shl edx, 8
or eax, edx
shl eax, 8
or eax, ecx
mov ecx, 8
sub ecx, dword [edi + 4]
shr eax, cl
and eax, 0xffff
test eax, 0x8000
jne 0x1004428d
shr eax, 0xc
mov dword [ebx], eax
mov eax, dword [edi + 4]
add eax, 4
mov edx, eax
sar edx, 3
add dword [edi], edx
jmp 0x100442a2
shr eax, 0xa
sub eax, 0x18
mov dword [ebx], eax
mov eax, dword [edi + 4]
add eax, 6
mov ecx, eax
sar ecx, 3
add dword [edi], ecx
and eax, 7
mov dword [edi + 4], eax
mov edx, dword [ebx]
test byte [edx + 0x100e16e8], 4
je 0x100442f6
mov eax, dword [edi]
mov ecx, dword [edi + 8]
movzx edx, byte [eax + ecx + 1]
add eax, ecx
movzx ecx, byte [eax]
movzx eax, byte [eax + 2]
shl ecx, 8
or edx, ecx
shl edx, 8
or edx, eax
mov ecx, 8
sub ecx, dword [edi + 4]
shr edx, cl
shr edx, 0xf
and dl, 1
mov byte [ebx + 4], dl
mov eax, dword [edi + 4]
inc eax
mov ecx, eax
sar ecx, 3
add dword [edi], ecx
and eax, 7
mov dword [edi + 4], eax
jmp 0x100442fa
mov byte [ebx + 4], 0
mov edx, dword [ebx]
lea eax, [ebx + 0x18]
mov dword [esp + 0x14], eax
mov dword [eax], 3
lea esi, [ebx + 8]
mov dword [esi], 3
movzx eax, byte [edx + 0x100e16e8]
and eax, 3
mov dword [esp + 0x1c], eax
mov eax, 0
mov dword [ebx + 0x24], eax
mov dword [ebx + 0x14], eax
jle 0x10044397
movzx eax, byte [ebx + 4]
push eax
mov edx, edi
call fcn.10044460
cmp dword [esp + 0x1c], 2
jne 0x10044350
movzx ecx, byte [ebx + 4]
mov esi, dword [esp + 0x14]
push ecx
call fcn.10044460
jmp 0x10044397
cmp dword [esi], 1
jne 0x10044397
mov edx, dword [ebx]
test byte [edx + 0x100e16e8], 0x18
je 0x10044397
mov eax, dword [ebx + 0xc]
cmp eax, 0x100
jl 0x10044371
sub eax, 0x100
jmp 0x10044394
cmp eax, 0x88
jl 0x1004437f
sub eax, 0x108
jmp 0x10044391
cmp eax, 0x10
jl 0x10044389
sub eax, 8
jmp 0x10044391
cmp eax, 8
jl 0x10044391
sub eax, 0x10
add eax, dword [ebp + 0x10]
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0x18]
inc dword [ebp + 0x10]
cmp dword [edi], eax
jl 0x100441f4
mov esi, eax
inc dword [ebp + 4]
mov edi, dword [ebp + 4]
mov ecx, dword [ebp + 8]
cmp edi, ecx
jle 0x100443ef
mov eax, ecx
cdq
and edx, 3
add eax, edx
sar eax, 2
lea ecx, [eax + ecx + 0x20]
cmp edi, ecx
jg 0x100443ca
mov edi, ecx
mov edx, dword [ebp]
lea ecx, [edi + edi*4]
add ecx, ecx
add ecx, ecx
add ecx, ecx
push ecx
push edx
call fcn.100641d5
add esp, 8
mov dword [ebp], eax
test eax, eax
jne 0x100443ec
call fcn.10040cd0
mov dword [ebp + 8], edi
mov eax, dword [ebp + 0x10]
lea ecx, [eax + 1]
mov dword [ebp + 0x10], ecx
lea edx, [eax + eax*4]
mov eax, dword [ebp]
lea eax, [eax + edx*8]
lea ecx, [eax + 0xc]
mov dword [eax + 0x14], ecx
mov ecx, 3
mov dword [eax + 0x18], ecx
mov dword [eax + 8], ecx
lea edx, [eax + 0x1c]
xor ecx, ecx
mov dword [eax], 0x16
mov dword [eax + 0x24], edx
cmp dword [ebp + 0x10], ecx
jle 0x1004444d
xor edx, edx
mov eax, dword [ebp]
add eax, edx
cmp dword [eax + 0x14], 0
jne 0x10044438
lea edi, [eax + 0xc]
mov dword [eax + 0x14], edi
cmp dword [eax + 0x24], 0
jne 0x10044444
lea edi, [eax + 0x1c]
mov dword [eax + 0x24], edi
inc ecx
add edx, 0x28
cmp ecx, dword [ebp + 0x10]
jl 0x10044427
test esi, esi
je 0x10044458
mov ecx, ebp
call fcn.10044750
pop edi
pop esi
pop ebp
pop ebx
ret 0xc