Function at 0x10043b60
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 0x10043b8e
mov eax, 0x8000
push eax
mov eax, dword [edi + 8]
push ebx
push eax
call fcn.10059a80
mov eax, 1
add esp, 0xc
xor cl, cl
cmp esi, eax
jle 0x10043baf
xor cl, byte [eax + ebx]
inc eax
cmp eax, esi
jl 0x10043ba7
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 0x10043f58
push ebx
mov eax, esi
or edx, 0xffffffff
call fcn.100404d0
add esp, 4
xor edx, edx
not eax
xor ecx, ecx
cmp dword [ecx + 0x100d6024], eax
jne 0x10043bf5
cmp dword [ecx + 0x100d6020], esi
je 0x10043c03
add ecx, 0xc
inc edx
cmp ecx, 0x54
jb 0x10043be5
jmp 0x10043c95
lea eax, [edx + edx*2]
mov ebx, dword [eax*4 + 0x100d6028]
test ebx, ebx
je 0x10043c95
inc dword [ebp + 4]
mov esi, dword [ebp + 4]
mov ecx, dword [ebp + 8]
cmp esi, ecx
jle 0x10043c5c
mov eax, ecx
cdq
and edx, 3
add eax, edx
sar eax, 2
lea eax, [eax + ecx + 0x20]
cmp esi, eax
jg 0x10043c37
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.100590a5
add esp, 8
mov dword [ebp], eax
test eax, eax
jne 0x10043c59
call fcn.10040940
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 0x10043d98
mov edx, edi
call fcn.10044150
mov esi, dword [esp + 0x18]
mov edx, eax
inc edx
xor ebx, ebx
cmp dword [edi], esi
mov dword [esp + 0x1c], edx
jge 0x10043f58
cmp ebx, edx
jge 0x10043d9c
inc dword [ebp + 0x24]
mov esi, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x28]
cmp esi, ecx
jle 0x10043d41
mov eax, ecx
cdq
and edx, 3
add eax, edx
sar eax, 2
lea eax, [eax + ecx + 0x20]
cmp esi, eax
jg 0x10043d22
mov esi, eax
mov edx, dword [ebp + 0x20]
push esi
push edx
call fcn.100590a5
add esp, 8
mov dword [ebp + 0x20], eax
test eax, eax
je 0x10043c54
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 0x10043cf8
jmp 0x10043d9c
mov esi, dword [esp + 0x18]
cmp dword [edi], esi
jge 0x10043f58
inc dword [ebp + 4]
mov ebx, dword [ebp + 4]
mov ecx, dword [ebp + 8]
cmp ebx, ecx
jle 0x10043dea
mov eax, ecx
cdq
and edx, 3
add eax, edx
sar eax, 2
lea ecx, [eax + ecx + 0x20]
cmp ebx, ecx
jg 0x10043dc6
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.100590a5
add esp, 8
mov dword [ebp], eax
test eax, eax
je 0x10043c54
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 0x10043e3d
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 0x10043e52
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 + 0x100d3eb8], 4
je 0x10043ea6
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 0x10043eaa
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 + 0x100d3eb8]
and eax, 3
mov dword [esp + 0x1c], eax
mov eax, 0
mov dword [ebx + 0x24], eax
mov dword [ebx + 0x14], eax
jle 0x10043f47
movzx eax, byte [ebx + 4]
push eax
mov edx, edi
call fcn.10044010
cmp dword [esp + 0x1c], 2
jne 0x10043f00
movzx ecx, byte [ebx + 4]
mov esi, dword [esp + 0x14]
push ecx
call fcn.10044010
jmp 0x10043f47
cmp dword [esi], 1
jne 0x10043f47
mov edx, dword [ebx]
test byte [edx + 0x100d3eb8], 0x18
je 0x10043f47
mov eax, dword [ebx + 0xc]
cmp eax, 0x100
jl 0x10043f21
sub eax, 0x100
jmp 0x10043f44
cmp eax, 0x88
jl 0x10043f2f
sub eax, 0x108
jmp 0x10043f41
cmp eax, 0x10
jl 0x10043f39
sub eax, 8
jmp 0x10043f41
cmp eax, 8
jl 0x10043f41
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 0x10043da4
mov esi, eax
inc dword [ebp + 4]
mov edi, dword [ebp + 4]
mov ecx, dword [ebp + 8]
cmp edi, ecx
jle 0x10043f9f
mov eax, ecx
cdq
and edx, 3
add eax, edx
sar eax, 2
lea ecx, [eax + ecx + 0x20]
cmp edi, ecx
jg 0x10043f7a
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.100590a5
add esp, 8
mov dword [ebp], eax
test eax, eax
jne 0x10043f9c
call fcn.10040940
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 0x10043ffd
xor edx, edx
mov eax, dword [ebp]
add eax, edx
cmp dword [eax + 0x14], 0
jne 0x10043fe8
lea edi, [eax + 0xc]
mov dword [eax + 0x14], edi
cmp dword [eax + 0x24], 0
jne 0x10043ff4
lea edi, [eax + 0x1c]
mov dword [eax + 0x24], edi
inc ecx
add edx, 0x28
cmp ecx, dword [ebp + 0x10]
jl 0x10043fd7
test esi, esi
je 0x10044008
mov ecx, ebp
call fcn.10044300
pop edi
pop esi
pop ebp
pop ebx
ret 0xc