Function at 0x43e6c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [esp + 0x38]
mov ebp, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
add ecx, ebp
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, ebp
jbe 0x43e9f9
mov esi, dword [esp + 0x4c]
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 0xc], 0
jmp 0x43e728
add ebp, ecx
dec ebp
mov eax, dword [esp + 0x38]
inc ebp
cmp ebp, dword [esp + 0x1c]
jae 0x43e9f9
test esi, esi
je 0x43e77e
movzx eax, byte [esi]
mov byte [esp + 0x10], 0x3d
lea ecx, [esp + 0x11]
mov word [ecx + 4], 0
mov dword [ecx], 0
mov ecx, 0x986dca2b
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + ecx + 0x679235e5]
mov ebx, edx
and ebx, ecx
add bl, bl
sub dl, bl
movzx edx, dl
add edx, ecx
add dl, 0x29
mov byte [esp + ecx + 0x679235e5], dl
inc ecx
cmp ecx, 0x986dca32
jne 0x43e750
cmp al, byte [esp + 0x10]
je 0x43e78a
movzx eax, byte [ebp]
mov ecx, dword [esp + 0x44]
cmp al, byte [ecx]
jne 0x43e719
cmp dword [esp + 0x48], 2
jb 0x43e850
mov ecx, 1
mov dword [esp + 0x20], ebp
jmp 0x43e7bd
movzx eax, byte [ebp + ecx]
mov edx, dword [esp + 0x44]
cmp al, byte [edx + ecx]
jne 0x43e716
inc ecx
cmp ecx, dword [esp + 0x48]
je 0x43e850
test esi, esi
je 0x43e7a0
movzx eax, byte [esi + ecx]
mov byte [esp + 8], al
mov byte [esp + 0x10], 0xe5
mov dword [esp + 0x11], 0
mov ebp, 0xcc93d719
mov esi, 0x9927ae32
movzx edx, byte [esp + ebp + 0x336c28f7]
mov edi, edx
not edi
mov eax, esi
and eax, 0x3c
mov ebx, ebp
xor ebx, 0x5e
add ebx, eax
and edi, 0x79
mov eax, edx
xor eax, 0x79
or edx, 0x86
and edx, eax
or edx, edi
xor edx, ebx
xor dl, 0x79
add dl, 0xad
mov byte [esp + ebp + 0x336c28f7], dl
inc ebp
add esi, 2
cmp ebp, 0xcc93d71e
jne 0x43e7e0
movzx eax, byte [esp + 8]
cmp al, byte [esp + 0x10]
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x4c]
jne 0x43e7a0
jmp 0x43e7b2
mov ecx, dword [esp + 4]
mov ebx, ecx
mov edx, dword [esp]
sub ebx, edx
cmp ecx, dword [esp + 0xc]
je 0x43e86a
mov eax, dword [esp + 0x38]
jmp 0x43e9e0
mov ecx, ebx
sar ecx, 2
lea eax, [ecx + 1]
mov edi, ecx
shr edi, 1
add edi, ecx
cmp edi, eax
ja 0x43e87e
mov edi, eax
lea eax, [edi*4]
push eax
call fcn.00408640
add esp, 4
mov edx, eax
mov eax, dword [esp]
test eax, eax
je 0x43e9c5
mov dword [esp + 0xc], edi
cmp edx, eax
mov ecx, dword [esp + 4]
mov dword [esp + 8], ebx
mov dword [esp + 0x18], edx
jbe 0x43e95f
cmp ecx, edx
jbe 0x43e95f
test ebx, ebx
je 0x43e9ae
mov edx, dword [esp + 8]
mov eax, dword [esp + 0x18]
add eax, edx
dec eax
mov ecx, dword [esp]
add ecx, edx
dec ecx
mov esi, edx
and esi, 7
je 0x43e8f4
neg esi
xor edx, edx
nop
movzx ebx, byte [ecx + edx]
mov byte [eax + edx], bl
dec edx
cmp esi, edx
jne 0x43e8e0
add ecx, edx
add eax, edx
add edx, dword [esp + 8]
mov esi, dword [esp]
sub esi, dword [esp + 4]
cmp esi, 0xfffffff8
mov esi, dword [esp + 0x4c]
ja 0x43e9ae
neg edx
xor edi, edi
nop
nop
nop
nop
movzx ebx, byte [ecx + edi]
mov byte [eax + edi], bl
movzx ebx, byte [ecx + edi - 1]
mov byte [eax + edi - 1], bl
movzx ebx, byte [ecx + edi - 2]
mov byte [eax + edi - 2], bl
movzx ebx, byte [ecx + edi - 3]
mov byte [eax + edi - 3], bl
movzx ebx, byte [ecx + edi - 4]
mov byte [eax + edi - 4], bl
movzx ebx, byte [ecx + edi - 5]
mov byte [eax + edi - 5], bl
movzx ebx, byte [ecx + edi - 6]
mov byte [eax + edi - 6], bl
movzx ebx, byte [ecx + edi - 7]
mov byte [eax + edi - 7], bl
add edi, 0xfffffff8
cmp edx, edi
jne 0x43e910
jmp 0x43e9ae
mov ecx, ebx
shr ecx, 2
mov dword [esp], eax
mov esi, edx
mov edi, edx
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov edx, ebx
and edx, 0xfffffffc
lea edi, [esi + edx]
add edx, dword [esp]
mov ecx, ebx
xor ecx, 0xfffffffc
mov eax, ebx
or eax, 3
and eax, ecx
mov ecx, eax
shr ecx, 1
mov esi, edx
mov dword [esp + 4], edi
xchg esi, esi
rep movsw word es:[edi], word [esi]
xchg esi, esi
mov esi, dword [esp + 0x4c]
test bl, 1
je 0x43e9ae
and eax, 0xfffffffe
movzx ecx, byte [edx + eax]
mov edx, dword [esp + 4]
mov byte [edx + eax], cl
push dword [esp]
call fcn.00408650
add esp, 4
mov ebx, dword [esp + 8]
mov edi, dword [esp + 0xc]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x38]
mov dword [eax], edx
lea ecx, [edx + edi*4]
mov edi, edx
add edi, ebx
mov dword [esp + 0xc], ecx
mov dword [eax + 8], ecx
mov ecx, edx
mov dword [esp], edx
mov ecx, edi
mov dword [edx + ebx], ebp
add ecx, 4
mov dword [esp + 4], ecx
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x48]
add ebp, ecx
dec ebp
jmp 0x43e71d
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret