Function at 0x43fce0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], edi
mov ecx, dword [eax + 8]
mov dword [ebp - 0xc], esi
mov ebx, dword [ebp + 0xc]
lea edx, [ecx - 5]
cmp edx, 0xc
ja 0x440084
mov eax, dword [ebp + 0x10]
test byte [eax + 0x175], 0x20
je 0x43fdec
mov eax, dword [ebp + 8]
cmp ebx, 1
mov edx, dword [eax]
je 0x4401f5
mov eax, ebx
shr eax, 0x1f
add eax, ebx
sar eax, 1
test eax, eax
jle 0x440075
mov ecx, eax
shr ecx, 0x1f
add ecx, eax
sar ecx, 1
mov dword [ebp - 0x18], ecx
test ecx, ecx
jbe 0x4401eb
mov ecx, dword [ebp + 0x14]
xor esi, esi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], edx
lea edi, [ecx + ebx]
mov dword [ebp - 0x20], edi
lea ecx, [ebx + edx]
mov eax, esi
lea esi, [esi]
mov edx, dword [ebp - 0x1c]
mov ebx, dword [ebp + 0x14]
movzx edi, byte [edx + esi*2]
movzx edx, byte [eax + ecx - 1]
xor edi, edx
mov byte [ebx + esi*2], dl
mov edx, dword [ebp - 0x20]
movzx ebx, byte [eax + ecx - 1]
xor ebx, edi
mov byte [eax + edx - 1], bl
mov ebx, dword [ebp - 0x1c]
mov edx, dword [ebp + 0x14]
movzx edi, byte [ebx + esi*2 + 1]
movzx ebx, byte [eax + ecx - 2]
xor edi, ebx
mov byte [edx + esi*2 + 1], bl
inc esi
movzx edx, byte [eax + ecx - 2]
xor edx, edi
mov edi, dword [ebp - 0x20]
mov byte [eax + edi - 2], dl
add eax, 0xfffffffe
cmp esi, dword [ebp - 0x18]
jb 0x43fd60
mov eax, dword [ebp - 0x24]
lea edi, [esi + esi + 1]
mov edx, dword [ebp - 0x1c]
mov ebx, dword [ebp + 0xc]
lea ecx, [edi - 1]
cmp eax, ecx
jbe 0x440075
mov esi, dword [ebp + 0x14]
movzx ecx, byte [edx + edi - 1]
add edx, ebx
sub edx, edi
add ebx, esi
sub ebx, edi
movzx eax, byte [edx]
xor ecx, eax
mov byte [edi + esi - 1], al
movzx edx, byte [edx]
xor edx, ecx
mov byte [ebx], dl
jmp 0x440075
cmp ebx, 1
je 0x440202
cmp ebx, 2
je 0x43ffee
cmp ebx, 4
jne 0x43fe99
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, eax
and edx, 3
jne 0x43fe17
mov edi, dword [eax]
jmp 0x43fe3b
and eax, 0xfffffffc
test edx, edx
je 0x43fe2e
lea ecx, [edx*8]
neg ecx
mov edi, dword [eax + 4]
shl edi, cl
jmp 0x43fe30
xor edi, edi
shl edx, 3
mov ecx, edx
mov eax, dword [eax]
shr eax, cl
or edi, eax
mov edx, dword [ebp + 0x14]
and edx, 3
jne 0x43fe4d
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
jmp 0x440075
mov eax, 0xffffffff
lea ebx, [edx*8]
mov ecx, ebx
mov esi, dword [ebp + 0x14]
shl eax, cl
and esi, 0xfffffffc
test edx, edx
je 0x43fe88
shl edx, 3
neg edx
mov ecx, dword [esi + 4]
and ecx, eax
mov dword [ebp - 0x24], eax
mov eax, edi
mov dword [ebp - 0x20], ecx
mov ecx, edx
shr eax, cl
mov edx, dword [ebp - 0x20]
or edx, eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 4], edx
not eax
mov ecx, ebx
and eax, dword [esi]
shl edi, cl
or eax, edi
mov dword [esi], eax
jmp 0x440075
cmp ebx, 8
jne 0x43ffd8
mov eax, dword [ebp + 8]
mov esi, dword [eax]
test esi, 3
jne 0x43feb6
mov edx, dword [esi]
mov eax, dword [esi + 4]
jmp 0x43ff1c
mov edi, esi
and edi, 0xfffffff8
and esi, 7
je 0x43feed
lea ecx, [esi*8]
neg ecx
mov eax, dword [edi + 8]
add ecx, 0x40
mov dword [ebp - 0x24], eax
cmp ecx, 0x1f
mov eax, dword [edi + 0xc]
ja 0x43fee4
mov edx, dword [ebp - 0x24]
shld eax, edx, cl
shl edx, cl
jmp 0x43fef1
mov eax, dword [ebp - 0x24]
xor edx, edx
shl eax, cl
jmp 0x43fef1
xor edx, edx
xor eax, eax
shl esi, 3
mov ebx, dword [edi]
cmp esi, 0x1f
mov edi, dword [edi + 4]
ja 0x43ff0a
mov ecx, esi
shrd ebx, edi, cl
shr edi, cl
mov dword [ebp - 0x24], edi
jmp 0x43ff17
mov ecx, esi
mov ebx, edi
mov dword [ebp - 0x24], 0
shr ebx, cl
or eax, dword [ebp - 0x24]
or edx, ebx
test byte [ebp + 0x14], 3
jne 0x43ff2f
mov ecx, dword [ebp + 0x14]
mov dword [ecx], edx
mov dword [ecx + 4], eax
jmp 0x440075
mov edi, dword [ebp + 0x14]
mov ebx, edi
and edi, 7
mov esi, 0xffffffff
and ebx, 0xfffffff8
mov dword [ebp - 0x10], ebx
lea ecx, [edi*8]
mov dword [ebp - 0x14], ecx
shl esi, cl
test edi, edi
je 0x43ffa7
mov ecx, ebx
shl edi, 3
neg edi
mov ebx, dword [ecx + 8]
add edi, 0x40
mov ecx, dword [ecx + 0xc]
and ebx, esi
mov dword [ebp - 0x1c], ecx
cmp edi, 0x1f
mov dword [ebp - 0x18], ebx
ja 0x43ff82
mov ecx, edi
mov ebx, edx
mov edi, eax
shrd ebx, eax, cl
shr edi, cl
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], edi
jmp 0x43ff92
mov ecx, edi
mov ebx, eax
shr ebx, cl
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], ebx
mov edi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
or ecx, dword [ebp - 0x20]
or ebx, dword [ebp - 0x24]
mov dword [edi + 8], ecx
mov dword [edi + 0xc], ebx
mov ecx, dword [ebp - 0x10]
not esi
and esi, dword [ecx]
cmp dword [ebp - 0x14], 0x1f
ja 0x43ffc0
mov ebx, edx
mov ecx, dword [ebp - 0x14]
shld eax, edx, cl
shl ebx, cl
jmp 0x43ffc9
mov eax, edx
xor ebx, ebx
mov ecx, dword [ebp - 0x14]
shl eax, cl
mov edx, dword [ebp - 0x10]
or esi, ebx
mov dword [edx], esi
mov dword [edx + 4], eax
jmp 0x440075
mov eax, dword [ebp + 8]
push ebx
push dword [eax]
push dword [ebp + 0x14]
call fcn.004cd000
add esp, 0xc
jmp 0x440075
mov eax, dword [ebp + 8]
mov ebx, dword [eax]
mov eax, ebx
and eax, 0xfffffffe
and ebx, 1
je 0x440011
lea ecx, [ebx*8]
neg ecx
add ecx, 0x10
movzx edx, word [eax + 2]
shl edx, cl
jmp 0x440013
xor edx, edx
shl ebx, 3
mov edi, 0xffffffff
mov ecx, ebx
movzx esi, word [eax]
shr esi, cl
mov eax, dword [ebp + 0x14]
or edx, esi
mov esi, eax
and eax, 1
and esi, 0xfffffffe
lea ebx, [eax*8]
mov ecx, ebx
shl edi, cl
test eax, eax
je 0x440065
shl eax, 3
neg eax
add eax, 0x10
movzx ecx, word [esi + 2]
and ecx, edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], ecx
mov ecx, eax
movzx edi, dx
shr edi, cl
mov eax, dword [ebp - 0x20]
or eax, edi
mov edi, dword [ebp - 0x24]
mov word [esi + 2], ax
not edi
mov ecx, ebx
movzx eax, word [esi]
shl edx, cl
and eax, edi
or eax, edx
mov word [esi], ax
xor eax, eax
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
lea eax, [ecx - 0x19]
cmp eax, 6
jbe 0x4400a0
lea eax, [ecx - 0x32]
cmp eax, 2
jbe 0x4400a0
lea eax, [ecx - 0x28]
cmp eax, 8
ja 0x4401dc
mov eax, dword [ebp + 0x10]
mov edx, dword [ecx*4 + 0x4eb3fc]
cmp edx, 0xffffffff
movsx esi, byte [eax + 0x160]
je 0x44021b
mov edi, esi
lea ecx, [esi*4]
shl edi, 5
sub edi, ecx
mov eax, dword [ebp + 8]
mov edx, dword [edi + edx*4 + 0x4eb5c0]
test edx, edx
mov eax, dword [eax]
je 0x4400fa
push dword [ebp + 0x14]
push 0
push eax
call edx
add esp, 0xc
cmp eax, 1
je 0x440123
mov eax, 0x5f
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x14]
cmp ebx, 4
mov edx, dword [eax]
mov dword [ecx], edx
je 0x440123
mov ecx, dword [ebp + 0x14]
cmp ebx, 8
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
je 0x440123
mov ecx, dword [ebp + 0x14]
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp + 0x10]
test byte [eax + 0x175], 0x20
je 0x4401dc
test esi, esi
je 0x44014b
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
cmp eax, 0x34
je 0x44014b
cmp eax, 0x32
jne 0x4401dc
mov esi, ebx
shr esi, 0x1f
add esi, ebx
sar esi, 1
test esi, esi
jle 0x4401dc
mov edi, esi
shr edi, 0x1f
add edi, esi
sar edi, 1
test edi, edi
jbe 0x440214
mov eax, dword [ebp + 0x14]
xor edx, edx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], esi
lea ecx, [eax + ebx]
xor eax, eax
mov esi, dword [ebp + 0x14]
movzx ebx, byte [eax + ecx - 1]
movzx edi, byte [esi + edx*2]
xor edi, ebx
mov byte [esi + edx*2], bl
mov ebx, edi
xor byte [eax + ecx - 1], bl
movzx ebx, byte [eax + ecx - 2]
movzx edi, byte [esi + edx*2 + 1]
xor edi, ebx
mov byte [esi + edx*2 + 1], bl
inc edx
mov ebx, edi
xor byte [eax + ecx - 2], bl
add eax, 0xfffffffe
cmp edx, dword [ebp - 0x20]
jb 0x44017d
mov esi, dword [ebp - 0x24]
lea eax, [edx + edx + 1]
mov ebx, dword [ebp + 0xc]
lea edx, [eax - 1]
cmp esi, edx
jbe 0x4401dc
mov esi, dword [ebp + 0x14]
movzx edx, byte [esi + eax - 1]
lea ecx, [ebx + esi]
sub ecx, eax
movzx ebx, byte [ecx]
xor edx, ebx
mov byte [esi + eax - 1], bl
xor byte [ecx], dl
xor eax, eax
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
mov edi, 1
jmp 0x43fdbc
movzx eax, byte [edx]
mov edx, dword [ebp + 0x14]
mov byte [edx], al
jmp 0x440075
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0x14]
mov edi, dword [esi]
movzx eax, byte [edi]
mov byte [edx], al
jmp 0x440075
mov eax, 1
jmp 0x4401bd
mov eax, 0x5f
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret