Function at 0x43c8c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
add ecx, esi
sub ecx, dword [esp + 0x4c]
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [esp + 0x24], ecx
cmp ecx, esi
jbe 0x43cc70
mov ebp, dword [esp + 0x50]
xor ebx, ebx
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0
jmp 0x43c947
mov dword [ebx + ebp], esi
add edx, 4
mov eax, dword [esp + 0x3c]
mov dword [eax + 4], edx
mov eax, dword [esp + 0x4c]
add esi, eax
dec esi
mov dword [esp + 0x10], edx
inc esi
cmp esi, dword [esp + 0x24]
mov ebp, dword [esp + 0x50]
jae 0x43cc70
mov dword [esp], ebx
test ebp, ebp
je 0x43c994
movzx eax, byte [ebp]
mov byte [esp + 0x18], 0x5b
lea ecx, [esp + 0x19]
mov byte [ecx + 4], 0
mov dword [ecx], 0
mov ecx, 0x86
mov edx, 0x79
nop
movzx edi, byte [esp + ecx - 0x6e]
mov ebx, edx
xor ebx, ecx
and ebx, edi
xor ebx, ecx
add bl, 0x62
mov byte [esp + ecx - 0x6e], bl
inc ecx
dec edx
cmp ecx, 0x8c
jne 0x43c970
cmp al, byte [esp + 0x18]
je 0x43c9a3
movzx eax, byte [esi]
mov ecx, dword [esp + 0x48]
cmp al, byte [ecx]
jne 0x43cb50
cmp dword [esp + 0x4c], 2
jb 0x43ca90
mov eax, 1
mov dword [esp + 0x14], esi
jmp 0x43c9dc
movzx ecx, byte [esi + eax]
mov edx, dword [esp + 0x48]
cmp cl, byte [edx + eax]
jne 0x43ca79
inc eax
cmp eax, dword [esp + 0x4c]
je 0x43ca90
test ebp, ebp
je 0x43c9c0
movzx ecx, byte [ebp + eax]
mov byte [esp + 0x18], 0x4d
lea edx, [esp + 0x19]
mov word [edx + 4], 0
mov dword [edx], 0
mov edx, 4
mov esi, 0x289d21fc
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [esp + edx + 0x14]
mov edi, esi
and edi, 4
mov ebp, esi
or ebp, 0xfb
add ebp, edx
or ebp, edi
mov edi, ebx
and edi, 4
or edi, 0x1a
and ebx, 0xfffffffb
xor ebx, ebp
xor ebx, edi
xor bl, 0x1e
add bl, 0xf1
mov byte [esp + edx + 0x14], bl
inc edx
dec esi
cmp edx, 0xb
jne 0x43ca10
cmp cl, byte [esp + 0x18]
jne 0x43ca60
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x50]
jmp 0x43c9d1
mov esi, dword [esp + 0x14]
movzx ecx, byte [esi + eax]
mov edx, dword [esp + 0x48]
cmp cl, byte [edx + eax]
mov ebp, dword [esp + 0x50]
je 0x43c9d1
add esi, eax
dec esi
mov ebx, dword [esp]
jmp 0x43c938
mov ebp, dword [esp + 0x10]
mov ecx, ebp
mov edi, dword [esp]
sub ecx, edi
mov edx, ebp
mov ebx, edi
cmp ebp, dword [esp + 8]
jne 0x43cc25
mov dword [esp + 4], ecx
sar ecx, 2
lea eax, [ecx + 1]
mov edx, ecx
shr edx, 1
add edx, ecx
cmp edx, eax
ja 0x43cabf
mov edx, eax
mov eax, edx
and eax, 4
mov ecx, edx
or ecx, 4
imul ecx, eax
xor eax, 4
mov edi, edx
mov dword [esp + 8], edx
and edx, 0xfffffffb
imul edx, eax
add ecx, edx
push ecx
call fcn.00408250
add esp, 4
mov ebx, eax
mov edi, dword [esp]
test edi, edi
je 0x43cbf9
cmp ebx, edi
mov eax, dword [esp + 4]
mov dword [esp + 0xc], ebx
jbe 0x43cb58
cmp ebp, ebx
jbe 0x43cb58
test eax, eax
je 0x43cbe9
mov eax, dword [esp]
mov edx, dword [esp + 4]
add eax, edx
dec eax
mov ecx, dword [esp + 0xc]
add ecx, edx
dec ecx
mov edi, edx
and edi, 3
je 0x43cba5
neg edi
xor edx, edx
nop
nop
nop
nop
nop
movzx ebx, byte [eax + edx]
mov byte [ecx + edx], bl
dec edx
cmp edi, edx
jne 0x43cb30
mov edi, esi
add eax, edx
add ecx, edx
add edx, dword [esp + 4]
jmp 0x43cba7
mov ebx, dword [esp]
jmp 0x43c938
mov ecx, eax
mov edx, eax
shr ecx, 2
mov eax, edi
mov edi, ebx
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov ecx, edx
and edx, 0xfffffffc
lea eax, [ebx + edx]
add edx, dword [esp]
shr ecx, 1
and ecx, 1
mov ebx, esi
mov esi, edx
mov dword [esp + 0x20], eax
mov edi, eax
xchg esi, esi
rep movsw word es:[edi], word [esi]
xchg esi, esi
mov esi, ebx
test byte [esp + 4], 1
je 0x43cbe9
mov ecx, dword [esp + 4]
and ecx, 2
movzx edx, byte [edx + ecx]
mov eax, dword [esp + 0x20]
mov byte [eax + ecx], dl
jmp 0x43cbe9
mov edi, esi
mov esi, dword [esp]
sub esi, ebp
cmp esi, 0xfffffffc
mov esi, edi
ja 0x43cbe9
neg edx
xor edi, edi
nop
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
add edi, 0xfffffffc
cmp edx, edi
jne 0x43cbc0
mov edi, dword [esp]
push edi
call fcn.00408260
add esp, 4
mov ebx, dword [esp + 0xc]
mov ecx, dword [esp + 0x3c]
mov dword [ecx], ebx
mov eax, dword [esp + 4]
lea edx, [ebx + eax]
mov dword [ecx + 4], edx
mov ecx, dword [esp + 8]
lea ecx, [ebx + ecx*4]
mov dword [esp + 8], ecx
mov dword [esp + 0x10], ebp
mov ebp, dword [esp + 0x3c]
mov dword [ebp + 8], ecx
mov ebp, dword [esp + 0x10]
mov ecx, eax
mov eax, ebp
not eax
and eax, edi
not edi
and edi, ebp
sub edi, eax
cmp edi, ecx
mov ebp, edi
jae 0x43c920
mov dword [esp + 0x14], esi
lea esi, [ebx + ebp]
lea eax, [ebx + ebp]
add eax, 4
mov dword [esp + 0xc], ebx
mov ebx, esi
mov edi, eax
xor ecx, ecx
xchg esi, ebx
rep movsd dword es:[edi], dword [esi]
xchg esi, ebx
mov ebx, dword [esp + 0xc]
mov edi, eax
xor ecx, ecx
xchg esi, esi
rep movsw word es:[edi], word [esi]
xchg esi, esi
mov esi, dword [esp + 0x14]
jmp 0x43c920
mov eax, dword [esp + 0x3c]
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret