Function at 0x100443b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x100ff900]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0x2c
xor edi, edi
push edi
push esi
call fcn.100c6660
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
add esp, 0xc
test ecx, ecx
jle 0x100443ef
mov edx, dword [eax + 8]
mov ebx, ecx
cmp dword [edx], 0
jle 0x100443e9
inc edi
add edx, 4
dec ebx
jne 0x100443e3
mov dword [esi + 4], ecx
mov dword [esi + 8], edi
mov ecx, dword [eax]
mov dword [esi], ecx
test edi, edi
jle 0x100448ff
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov ecx, dword [ebp + 8]
push edi
push edx
push eax
push ecx
call fcn.10043da0
mov ebx, eax
lea eax, [edi*4]
add esp, 0x10
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], eax
call fcn.100c7560
mov eax, esp
mov dword [ebp - 0x18], eax
test ebx, ebx
je 0x1004463b
test edi, edi
jle 0x100444c4
sub eax, ebx
mov edx, ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], edi
lea esp, [esp]
mov ecx, dword [edx]
rol ecx, 0x10
mov eax, ecx
mov ebx, ecx
shr eax, 8
shl ecx, 8
shl ebx, 8
xor eax, ebx
and eax, 0xff00ff
xor eax, ecx
mov ecx, eax
shr ecx, 4
mov ebx, eax
shl ebx, 4
xor ecx, ebx
and ecx, 0xf0f0f0f
shl eax, 4
xor ecx, eax
mov eax, ecx
lea ebx, [ecx*4]
add ecx, ecx
shr eax, 2
add ecx, ecx
xor eax, ebx
and eax, 0x33333333
xor eax, ecx
mov ecx, eax
shr ecx, 1
lea ebx, [eax + eax]
xor ecx, ebx
and ecx, 0x55555555
add eax, eax
xor ecx, eax
mov dword [edx], ecx
mov ecx, dword [ebp - 0xc]
mov dword [ecx + edx], edx
add edx, 4
dec dword [ebp - 0x10]
jne 0x10044450
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
push 0x10044380
push 4
push edi
push eax
call fcn.100c7be0
mov eax, dword [ebp - 8]
add esp, 0x10
call fcn.100c7560
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], esp
push edx
push eax
call fcn.100237f0
add esp, 8
mov dword [esi + 0x14], eax
test eax, eax
je 0x1004463b
xor eax, eax
test edi, edi
jle 0x10044540
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + eax*4]
mov ecx, dword [ebp - 0xc]
sub edx, ebx
sar edx, 2
mov dword [ecx + edx*4], eax
inc eax
cmp eax, edi
jl 0x10044501
test edi, edi
jle 0x10044540
mov eax, ecx
sub ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], edi
jmp 0x1004452a
mov ebx, dword [ebp - 0x10]
mov edx, dword [eax]
mov ebx, dword [ebx + eax]
mov ecx, dword [esi + 0x14]
add eax, 4
dec dword [ebp - 0x18]
mov dword [ecx + edx*4], ebx
jne 0x10044527
mov ebx, dword [ebp - 0x14]
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.100238b0
mov edx, dword [ebp - 0xc]
push edx
push edi
mov edi, dword [ebp + 0x10]
push edi
push ebx
call fcn.10044040
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 8]
push eax
push ebx
call fcn.100237f0
add esp, 0x20
mov dword [esi + 0x18], eax
test eax, eax
je 0x1004463e
xor eax, eax
xor ecx, ecx
cmp dword [edi + 4], eax
jle 0x1004459f
lea ecx, [ecx]
mov edx, dword [edi + 8]
cmp dword [edx + eax*4], 0
jle 0x10044599
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + ecx*4]
mov ebx, dword [esi + 0x18]
mov dword [ebx + edx*4], eax
mov ebx, dword [ebp + 8]
inc ecx
inc eax
cmp eax, dword [edi + 4]
jl 0x10044580
push ecx
push ebx
call fcn.100237f0
add esp, 8
mov dword [esi + 0x1c], eax
test eax, eax
je 0x1004463e
xor ecx, ecx
mov dword [ebp - 8], ecx
cmp dword [edi + 4], ecx
jle 0x100445e4
mov eax, dword [edi + 8]
cmp dword [eax + ecx*4], 0
lea eax, [eax + ecx*4]
jle 0x100445de
mov ebx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + ebx*4]
mov ebx, dword [esi + 0x1c]
mov al, byte [eax]
inc dword [ebp - 8]
mov byte [edx + ebx], al
inc ecx
cmp ecx, dword [edi + 4]
jl 0x100445be
mov ecx, dword [esi + 8]
xor eax, eax
test ecx, ecx
je 0x100445f5
lea ecx, [ecx]
inc eax
shr ecx, 1
jne 0x100445f0
add eax, 0xfffffffc
mov dword [esi + 0x24], eax
cmp eax, 5
jge 0x10044607
mov dword [esi + 0x24], 5
mov eax, 8
cmp dword [esi + 0x24], eax
jle 0x10044614
mov dword [esi + 0x24], eax
mov ecx, dword [esi + 0x24]
mov ebx, 1
shl ebx, cl
mov ecx, dword [ebp + 8]
push 4
push ebx
push ecx
mov dword [ebp - 0x18], ebx
call fcn.10023830
add esp, 0xc
mov dword [esi + 0x20], eax
test eax, eax
jne 0x100446b7
mov ebx, dword [ebp + 8]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x1004464f
push eax
push ebx
call fcn.100238b0
add esp, 8
mov eax, dword [esi + 0x14]
test eax, eax
je 0x10044660
push eax
push ebx
call fcn.100238b0
add esp, 8
mov eax, dword [esi + 0x18]
test eax, eax
je 0x10044671
push eax
push ebx
call fcn.100238b0
add esp, 8
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x10044682
push eax
push ebx
call fcn.100238b0
add esp, 8
mov eax, dword [esi + 0x20]
test eax, eax
je 0x10044693
push eax
push ebx
call fcn.100238b0
add esp, 8
push 0x2c
push 0
push esi
call fcn.100c6660
add esp, 0xc
or eax, 0xffffffff
lea esp, [ebp - 0x28]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100c5f50
mov esp, ebp
pop ebp
ret
xor edi, edi
mov dword [esi + 0x28], edi
cmp dword [ebp - 8], edi
jle 0x10044798
mov eax, dword [esi + 0x1c]
movsx ecx, byte [eax + edi]
cmp dword [esi + 0x28], ecx
jge 0x100446d4
mov dword [esi + 0x28], ecx
movsx ebx, byte [eax + edi]
cmp ebx, dword [esi + 0x24]
jg 0x10044789
mov eax, dword [esi + 0x14]
mov edx, dword [eax + edi*4]
rol edx, 0x10
mov eax, edx
mov ecx, edx
shr eax, 8
shl edx, 8
shl ecx, 8
xor eax, ecx
and eax, 0xff00ff
xor eax, edx
mov edx, eax
shr edx, 4
mov ecx, eax
shl ecx, 4
xor edx, ecx
and edx, 0xf0f0f0f
shl eax, 4
xor edx, eax
mov eax, edx
lea ecx, [edx*4]
shr eax, 2
xor eax, ecx
add edx, edx
add edx, edx
and eax, 0x33333333
xor eax, edx
mov edx, eax
shr edx, 1
lea ecx, [eax + eax]
xor edx, ecx
mov ecx, dword [esi + 0x24]
sub ecx, ebx
mov ebx, 1
add eax, eax
and edx, 0x55555555
shl ebx, cl
xor edx, eax
xor eax, eax
mov dword [ebp - 0x14], eax
test ebx, ebx
jle 0x10044789
mov ecx, dword [esi + 0x1c]
mov cl, byte [edi + ecx]
shl eax, cl
mov ecx, dword [esi + 0x20]
lea ebx, [edi + 1]
or eax, edx
mov dword [ecx + eax*4], ebx
mov ecx, dword [esi + 0x1c]
movsx ebx, byte [ecx + edi]
mov ecx, dword [esi + 0x24]
mov eax, dword [ebp - 0x14]
sub ecx, ebx
mov ebx, 1
shl ebx, cl
inc eax
mov dword [ebp - 0x14], eax
cmp eax, ebx
jl 0x10044758
inc edi
cmp edi, dword [ebp - 8]
jl 0x100446c5
mov ebx, dword [ebp - 0x18]
xor edi, edi
mov ecx, 0x1f
sub ecx, dword [esi + 0x24]
mov eax, 0xfffffffe
shl eax, cl
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x1c], eax
cmp ebx, edi
jle 0x100448ff
mov ecx, 0x20
sub ecx, dword [esi + 0x24]
shl edi, cl
mov ecx, edi
rol ecx, 0x10
mov eax, ecx
mov edx, ecx
shl edx, 8
shl ecx, 8
shr eax, 8
xor eax, edx
and eax, 0xff00ff
xor eax, ecx
mov ecx, eax
shr ecx, 4
mov edx, eax
shl edx, 4
xor ecx, edx
and ecx, 0xf0f0f0f
mov edx, eax
shl edx, 4
xor ecx, edx
mov edx, ecx
lea ebx, [ecx*4]
shr edx, 2
xor edx, ebx
add ecx, ecx
add ecx, ecx
and edx, 0x33333333
xor edx, ecx
mov ebx, edx
shr ebx, 1
lea ecx, [edx + edx]
xor ebx, ecx
mov ecx, dword [esi + 0x20]
and ebx, 0x55555555
add edx, edx
xor ebx, edx
cmp dword [ecx + ebx*4], 0
jne 0x100448ef
mov edx, dword [ebp - 0xc]
lea ecx, [edx + 1]
cmp ecx, dword [ebp - 8]
jge 0x10044856
mov ebx, dword [esi + 0x14]
lea ebx, [ebx + edx*4 + 4]
cmp dword [ebx], edi
ja 0x10044853
inc ecx
inc edx
add ebx, 4
cmp ecx, dword [ebp - 8]
jl 0x10044845
mov dword [ebp - 0xc], edx
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 8]
jge 0x1004487c
mov edx, dword [esi + 0x14]
lea edx, [edx + ecx*4]
mov ebx, dword [ebp - 0x1c]
and ebx, dword [edx]
cmp edi, ebx
jb 0x10044876
inc ecx
add edx, 4
cmp ecx, dword [ebp - 8]
jl 0x10044864
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
mov edi, dword [ebp - 8]
sub edi, ecx
cmp edx, 0x7fff
jbe 0x1004488e
mov edx, 0x7fff
cmp edi, 0x7fff
jbe 0x1004489b
mov edi, 0x7fff
mov ecx, eax
mov ebx, eax
shr ecx, 4
shl eax, 4
shl ebx, 4
xor ecx, ebx
and ecx, 0xf0f0f0f
xor ecx, eax
mov eax, ecx
lea ebx, [ecx*4]
shr eax, 2
add ecx, ecx
xor eax, ebx
add ecx, ecx
and eax, 0x33333333
xor eax, ecx
or edx, 0xffff0000
shl edx, 0xf
mov ecx, eax
or edx, edi
shr ecx, 1
lea edi, [eax + eax]
xor ecx, edi
add eax, eax
and ecx, 0x55555555
xor ecx, eax
mov eax, dword [esi + 0x20]
mov dword [eax + ecx*4], edx
mov edi, dword [ebp - 0x14]
inc edi
mov dword [ebp - 0x14], edi
cmp edi, dword [ebp - 0x18]
jl 0x100447bb
xor eax, eax
lea esp, [ebp - 0x28]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100c5f50
mov esp, ebp
pop ebp
ret