Function at 0x43cae0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
add ecx, esi
sub ecx, dword [esp + 0x48]
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [esp + 0x1c], ecx
cmp ecx, esi
jbe 0x43cdf3
mov ebp, dword [esp + 0x4c]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
jmp 0x43cb48
add esi, ecx
dec esi
mov eax, dword [esp + 0x38]
inc esi
cmp esi, dword [esp + 0x1c]
jae 0x43cdf3
test ebp, ebp
je 0x43cb9d
movzx ecx, byte [ebp]
mov byte [esp + 0xc], 0x65
lea eax, [esp + 0xd]
mov byte [eax + 4], 0
mov dword [eax], 0
mov edx, 0xcaa96fb9
nop
nop
nop
nop
nop
nop
nop
nop
movzx eax, byte [esp + edx + 0x35569053]
xor eax, edx
mov ebx, eax
and ebx, 0x62
xor eax, 0x62
lea eax, [eax + ebx*2]
inc al
mov byte [esp + edx + 0x35569053], al
inc edx
cmp edx, 0xcaa96fbf
jne 0x43cb70
cmp cl, byte [esp + 0xc]
je 0x43cba8
movzx eax, byte [esi]
mov ecx, dword [esp + 0x44]
cmp al, byte [ecx]
jne 0x43cb39
cmp dword [esp + 0x48], 2
jb 0x43cc40
mov ecx, 1
mov dword [esp + 0x20], esi
jmp 0x43cbd8
movzx eax, byte [esi + ecx]
mov edx, dword [esp + 0x44]
cmp al, byte [edx + ecx]
jne 0x43cb36
inc ecx
cmp ecx, dword [esp + 0x48]
je 0x43cc40
test ebp, ebp
je 0x43cbc0
mov esi, ebp
movzx edx, byte [ebp + ecx]
mov byte [esp + 0xc], 0x7f
lea eax, [esp + 0xd]
mov dword [eax + 3], 0
mov dword [eax], 0
xor eax, eax
nop
nop
nop
nop
nop
movzx edi, byte [esp + eax + 0xc]
lea ebp, [eax + 0xe0]
mov ebx, eax
xor ebx, ebp
xor ebx, 0x1f
and ebx, edi
xor ebx, ebp
add bl, 0xa0
mov byte [esp + eax + 0xc], bl
inc eax
cmp eax, 8
jne 0x43cc00
cmp dl, byte [esp + 0xc]
mov ebp, esi
mov esi, dword [esp + 0x20]
jne 0x43cbc0
jmp 0x43cbd1
mov eax, dword [esp + 8]
mov edi, eax
mov ecx, dword [esp + 4]
sub edi, ecx
cmp eax, dword [esp]
mov eax, dword [esp + 0x38]
je 0x43cc5e
mov edx, dword [esp + 8]
jmp 0x43cdda
mov dword [esp], edi
mov ecx, edi
sar ecx, 2
lea eax, [ecx + 1]
mov edi, ecx
shr edi, 1
add edi, ecx
cmp edi, eax
ja 0x43cc75
mov edi, eax
lea eax, [edi*4]
push eax
call fcn.004084d0
add esp, 4
mov ebx, eax
mov eax, dword [esp + 4]
test eax, eax
mov edx, dword [esp]
je 0x43cdbf
mov dword [esp + 0x18], edi
cmp ebx, eax
mov eax, dword [esp + 8]
mov dword [esp + 0x14], ebx
jbe 0x43cd5f
cmp eax, ebx
jbe 0x43cd5f
test edx, edx
je 0x43cda8
mov eax, dword [esp + 4]
mov edx, dword [esp]
add eax, edx
dec eax
mov ecx, dword [esp + 0x14]
add ecx, edx
dec ecx
mov edi, edx
and edi, 7
je 0x43ccf3
neg edi
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [eax + edx]
mov byte [ecx + edx], bl
dec edx
cmp edi, edx
jne 0x43cce0
add eax, edx
add ecx, edx
add edx, dword [esp]
mov edi, dword [esp + 4]
sub edi, dword [esp + 8]
cmp edi, 0xfffffff8
ja 0x43cda8
neg edx
xor edi, edi
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [eax + edi]
mov byte [ecx + edi], bl
movzx ebx, byte [eax + edi - 1]
mov byte [ecx + edi - 1], bl
movzx ebx, byte [eax + edi - 2]
mov byte [ecx + edi - 2], bl
movzx ebx, byte [eax + edi - 3]
mov byte [ecx + edi - 3], bl
movzx ebx, byte [eax + edi - 4]
mov byte [ecx + edi - 4], bl
movzx ebx, byte [eax + edi - 5]
mov byte [ecx + edi - 5], bl
movzx ebx, byte [eax + edi - 6]
mov byte [ecx + edi - 6], bl
movzx ebx, byte [eax + edi - 7]
mov byte [ecx + edi - 7], bl
add edi, 0xfffffff8
cmp edx, edi
jne 0x43cd10
jmp 0x43cda8
mov ecx, edx
shr ecx, 2
mov eax, dword [esp + 4]
mov edi, ebx
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov eax, edx
and eax, 0xfffffffc
mov ecx, dword [esp + 4]
lea edi, [ecx + eax]
add eax, ebx
mov ecx, edx
shr ecx, 1
and ecx, 1
mov dword [esp + 8], edi
mov ebx, edi
mov edi, eax
xchg esi, ebx
rep movsw word es:[edi], word [esi]
xchg esi, ebx
test dl, 1
je 0x43cda8
mov ecx, dword [esp]
and ecx, 2
mov edx, dword [esp + 8]
movzx edx, byte [edx + ecx]
mov byte [eax + ecx], dl
push dword [esp + 4]
call fcn.004084e0
add esp, 4
mov edx, dword [esp]
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x38]
mov dword [eax], ebx
lea ecx, [ebx + edi*4]
mov edi, edx
mov edx, ebx
add edx, edi
mov dword [esp], ecx
mov dword [eax + 8], ecx
mov ecx, ebx
mov dword [esp + 4], ebx
mov dword [ecx + edi], esi
add edx, 4
mov dword [esp + 8], edx
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x48]
add esi, ecx
dec esi
jmp 0x43cb3d
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret