Function at 0x43b7e0
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 + 0x20], ecx
cmp ecx, ebp
jbe 0x43bba2
mov esi, dword [esp + 0x4c]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp + 0x1c], 0
jmp 0x43b849
add ebp, edx
dec ebp
mov eax, dword [esp + 0x38]
inc ebp
cmp ebp, dword [esp + 0x20]
jae 0x43bba2
test esi, esi
mov dword [esp + 0x18], ebp
je 0x43b8e0
movzx eax, byte [esi]
mov byte [esp], al
mov byte [esp + 0x10], 0x8b
lea eax, [esp + 0x11]
mov word [eax + 4], 0
mov dword [eax], 0
mov ebx, 0x16ad2e92
mov edi, 0x952d16d
nop
nop
nop
nop
nop
nop
movzx ebp, byte [esp + ebx - 0x16ad2e82]
mov eax, edi
or eax, ebp
lea edx, [edi - 0x952d100]
and edx, ebp
xor edx, eax
and edx, ebx
mov eax, edx
or al, 0xfd
inc al
mov ecx, edx
and cl, 0x9d
mul cl
mov ecx, eax
mov eax, ebp
add cl, al
mov eax, edx
shr al, 1
and al, 1
or dl, 2
mul dl
add al, al
sub cl, al
movzx eax, cl
add eax, ebx
add al, 0x26
mov byte [esp + ebx - 0x16ad2e82], al
inc ebx
dec edi
cmp ebx, 0x16ad2e99
jne 0x43b880
movzx eax, byte [esp]
cmp al, byte [esp + 0x10]
mov ebp, dword [esp + 0x18]
je 0x43b8f0
movzx eax, byte [ebp]
mov ecx, dword [esp + 0x44]
cmp al, byte [ecx]
jne 0x43b83a
cmp dword [esp + 0x48], 2
jb 0x43ba00
mov edx, 1
jmp 0x43b92d
movzx eax, byte [ebp + edx]
mov ecx, dword [esp + 0x44]
cmp al, byte [ecx + edx]
jne 0x43b837
inc edx
cmp edx, dword [esp + 0x48]
je 0x43ba00
test esi, esi
je 0x43b910
mov dword [esp], edx
movzx eax, byte [esi + edx]
mov byte [esp + 0xc], al
mov byte [esp + 0x10], 0xa5
lea eax, [esp + 0x11]
mov dword [eax + 3], 0
mov dword [eax], 0
mov ebx, 0x945f9356
mov edx, 0x6ba06ca8
nop
nop
nop
nop
movzx ebp, byte [esp + ebx + 0x6ba06cba]
lea ecx, [ebx + 1]
lea esi, [ebp*2]
not esi
add esi, ebp
or esi, edx
mov eax, edx
and eax, 0x69800827
mov edi, ecx
and edi, 0x4468218
or edi, eax
xor edi, 0xf9991967
or edi, ebp
and edi, esi
mov eax, edi
and eax, 0x4c
add eax, eax
xor edi, 0xb3
sub eax, edi
mov byte [esp + ebx + 0x6ba06cba], al
dec edx
mov ebx, ecx
cmp ecx, 0x945f935e
jne 0x43b960
movzx eax, byte [esp + 0xc]
cmp al, byte [esp + 0x10]
jne 0x43b9d0
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x4c]
mov edx, dword [esp]
jmp 0x43b922
mov ebp, dword [esp + 0x18]
mov edx, dword [esp]
movzx eax, byte [ebp + edx]
mov ecx, dword [esp + 0x44]
cmp al, byte [ecx + edx]
mov esi, dword [esp + 0x4c]
je 0x43b922
jmp 0x43b837
mov eax, dword [esp + 4]
mov ebx, eax
mov ecx, dword [esp + 8]
sub ebx, ecx
cmp eax, dword [esp + 0x1c]
mov eax, dword [esp + 0x38]
je 0x43ba1f
mov edx, dword [esp + 4]
jmp 0x43bb89
mov ecx, ebx
sar ecx, 2
lea eax, [ecx + 1]
mov edi, ecx
shr edi, 1
add edi, ecx
cmp edi, eax
ja 0x43ba33
mov edi, eax
mov eax, edi
and eax, 0xfffffffb
mov ecx, edi
and ecx, 4
mov edx, edi
or edx, 4
imul edx, ecx
xor ecx, 4
imul ecx, eax
add edx, ecx
push edx
call fcn.00408730
add esp, 4
mov ecx, eax
mov edx, dword [esp + 8]
test edx, edx
mov dword [esp], eax
je 0x43bb67
cmp ecx, edx
mov eax, dword [esp + 4]
mov dword [esp + 0xc], ebx
jbe 0x43bb0b
cmp eax, ecx
jbe 0x43bb0b
test ebx, ebx
je 0x43bb50
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
add eax, edx
dec eax
mov ecx, dword [esp]
add ecx, edx
dec ecx
mov esi, edx
and esi, 3
je 0x43bac4
neg esi
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [eax + edx]
mov byte [ecx + edx], bl
dec edx
cmp esi, edx
jne 0x43bab0
add eax, edx
add ecx, edx
add edx, dword [esp + 0xc]
mov esi, dword [esp + 8]
sub esi, dword [esp + 4]
cmp esi, 0xfffffffc
ja 0x43bb50
neg edx
xor esi, esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [eax + esi]
mov byte [ecx + esi], bl
movzx ebx, byte [eax + esi - 1]
mov byte [ecx + esi - 1], bl
movzx ebx, byte [eax + esi - 2]
mov byte [ecx + esi - 2], bl
movzx ebx, byte [eax + esi - 3]
mov byte [ecx + esi - 3], bl
add esi, 0xfffffffc
cmp edx, esi
jne 0x43bae0
jmp 0x43bb50
mov esi, ecx
mov ecx, ebx
shr ecx, 2
mov eax, edx
mov dword [esp + 4], edi
mov edi, esi
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov eax, ebx
and eax, 0xfffffffc
mov ecx, ebx
shr ecx, 1
and ecx, 1
add edx, eax
add eax, esi
mov esi, edx
mov edi, eax
xchg esi, esi
rep movsw word es:[edi], word [esi]
xchg esi, esi
mov edi, dword [esp + 4]
test bl, 1
je 0x43bb50
mov ecx, dword [esp + 0xc]
and ecx, 2
movzx edx, byte [edx + ecx]
mov byte [eax + ecx], dl
push dword [esp + 8]
call fcn.00408740
add esp, 4
mov esi, dword [esp + 0x4c]
mov ebx, dword [esp + 0xc]
mov ecx, dword [esp]
mov eax, dword [esp + 0x38]
mov dword [eax], ecx
mov ecx, dword [esp]
lea ecx, [ecx + edi*4]
mov edx, dword [esp]
add edx, ebx
mov dword [esp + 0x1c], ecx
mov dword [eax + 8], ecx
mov ecx, dword [esp]
mov dword [esp + 8], ecx
mov ecx, dword [esp]
mov dword [ecx + ebx], ebp
add edx, 4
mov dword [esp + 4], edx
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x48]
add ebp, ecx
dec ebp
jmp 0x43b83e
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret