Function at 0x43ce60
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 0x43d181
mov esi, dword [esp + 0x4c]
mov dword [esp + 8], 0
mov dword [esp], 0
mov dword [esp + 0xc], 0
jmp 0x43cec8
add ebp, ecx
dec ebp
mov eax, dword [esp + 0x38]
inc ebp
cmp ebp, dword [esp + 0x1c]
jae 0x43d181
test esi, esi
je 0x43cf19
movzx ecx, byte [esi]
mov byte [esp + 0x10], 0x25
lea eax, [esp + 0x11]
mov word [eax + 4], 0
mov dword [eax], 0
mov edx, 0xe9
mov ebx, 0x16
nop
nop
movzx edi, byte [esp + edx - 0xd9]
mov eax, ebx
xor eax, edx
and eax, edi
xor eax, edx
add al, 0x73
mov byte [esp + edx - 0xd9], al
inc edx
dec ebx
cmp edx, 0xf0
jne 0x43cef0
cmp cl, byte [esp + 0x10]
je 0x43cf25
movzx eax, byte [ebp]
mov ecx, dword [esp + 0x44]
cmp al, byte [ecx]
jne 0x43ceb9
cmp dword [esp + 0x48], 2
jb 0x43cfd0
mov ecx, 1
mov dword [esp + 0x20], ebp
jmp 0x43cf59
movzx eax, byte [ebp + ecx]
mov edx, dword [esp + 0x44]
cmp al, byte [edx + ecx]
jne 0x43ceb6
inc ecx
cmp ecx, dword [esp + 0x48]
je 0x43cfd0
test esi, esi
je 0x43cf40
movzx edx, byte [esi + ecx]
mov byte [esp + 0x10], 0x25
lea eax, [esp + 0x11]
mov dword [eax + 3], 0
mov dword [eax], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
mov edi, eax
and edi, 5
mov esi, eax
and esi, 2
mov ebp, eax
or ebp, 2
imul ebp, esi
xor esi, 2
imul esi, edi
mov ebx, eax
xor ebx, 0xa7
add ebx, ebp
add ebx, esi
xor bl, byte [esp + eax + 0x10]
add bl, 0xbd
mov byte [esp + eax + 0x10], bl
inc eax
cmp eax, 8
jne 0x43cf80
cmp dl, byte [esp + 0x10]
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x4c]
jne 0x43cf40
jmp 0x43cf52
mov eax, dword [esp + 8]
mov edi, eax
mov ecx, dword [esp]
sub edi, ecx
cmp eax, dword [esp + 0xc]
mov eax, dword [esp + 0x38]
je 0x43cfee
mov edx, dword [esp + 8]
jmp 0x43d168
mov dword [esp + 4], edi
mov ecx, edi
sar ecx, 2
lea eax, [ecx + 1]
mov edi, ecx
shr edi, 1
add edi, ecx
cmp edi, eax
ja 0x43d006
mov edi, eax
lea eax, [edi*4]
push eax
call fcn.004083e0
add esp, 4
mov ebx, eax
mov eax, dword [esp]
test eax, eax
je 0x43d14b
mov dword [esp + 0xc], edi
cmp ebx, eax
mov eax, dword [esp + 8]
mov dword [esp + 0x18], ebx
jbe 0x43d0ef
cmp eax, ebx
jbe 0x43d0ef
cmp dword [esp + 4], 0
je 0x43d138
mov edx, dword [esp + 4]
mov eax, edx
and eax, 0xfffffffe
mov ecx, edx
not ecx
and ecx, 1
sub eax, ecx
mov ecx, dword [esp]
add ecx, eax
add eax, dword [esp + 0x18]
mov esi, edx
and esi, 7
je 0x43d084
neg esi
xor edx, edx
movzx ebx, byte [ecx + edx]
mov byte [eax + edx], bl
dec edx
cmp esi, edx
jne 0x43d070
add ecx, edx
add eax, edx
add edx, dword [esp + 4]
mov esi, dword [esp]
sub esi, dword [esp + 8]
cmp esi, 0xfffffff8
mov esi, dword [esp + 0x4c]
ja 0x43d138
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 0x43d0a0
jmp 0x43d138
mov eax, dword [esp + 4]
mov ecx, eax
mov edx, eax
shr ecx, 2
mov esi, dword [esp]
mov eax, esi
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, esi
mov ebx, ecx
shr ecx, 1
and ecx, 1
mov esi, edx
mov edi, eax
xchg esi, esi
rep movsw word es:[edi], word [esi]
xchg esi, esi
mov esi, dword [esp + 0x4c]
test bl, 1
je 0x43d138
mov ecx, dword [esp + 4]
and ecx, 2
movzx edx, byte [edx + ecx]
mov byte [eax + ecx], dl
push dword [esp]
call fcn.004083f0
add esp, 4
mov edi, dword [esp + 0xc]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x38]
mov dword [eax], ebx
lea ecx, [ebx + edi*4]
mov edx, ebx
mov edi, dword [esp + 4]
add edx, edi
mov dword [esp + 0xc], ecx
mov dword [eax + 8], ecx
mov ecx, ebx
mov dword [esp], ebx
mov dword [ecx + edi], ebp
add edx, 4
mov dword [esp + 8], edx
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x48]
add ebp, ecx
dec ebp
jmp 0x43cebd
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret