Function at 0x43ba50
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [esp + 0x40]
mov esi, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
add ecx, esi
sub ecx, dword [esp + 0x50]
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [esp + 0x28], ecx
cmp ecx, esi
jbe 0x43bea0
mov ebp, dword [esp + 0x54]
mov dword [esp + 4], 0
xor eax, eax
mov dword [esp + 0x10], 0
jmp 0x43bae1
push ecx
push ebp
push ebx
call fcn.00409650
add esp, 0xc
mov ebx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [ecx + ebx], esi
mov edx, dword [esp + 0x14]
add edx, 4
mov eax, dword [esp + 0x40]
mov dword [eax + 4], edx
mov eax, dword [esp + 0x50]
add esi, eax
dec esi
mov dword [esp + 4], edx
mov ebp, dword [esp + 0x54]
inc esi
mov eax, ecx
cmp esi, dword [esp + 0x28]
jae 0x43bea0
mov dword [esp], eax
test ebp, ebp
je 0x43bb4a
movzx eax, byte [ebp]
mov byte [esp + 0x18], 0xd7
lea ecx, [esp + 0x19]
mov byte [ecx + 2], 0
mov word [ecx], 0
mov ecx, 0x9cca3e1c
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + ecx + 0x6335c1fc]
xor edx, ecx
mov edi, edx
xor edi, 0x8c
mov ebx, edx
or ebx, 0x73
and ebx, edi
and edx, 0x8c
add edx, ebx
add dl, 0x74
mov byte [esp + ecx + 0x6335c1fc], dl
inc ecx
cmp ecx, 0x9cca3e20
jne 0x43bb10
cmp al, byte [esp + 0x18]
je 0x43bb59
movzx eax, byte [esi]
mov ecx, dword [esp + 0x4c]
cmp al, byte [ecx]
jne 0x43bc20
cmp dword [esp + 0x50], 2
jb 0x43bbe0
mov eax, 1
jmp 0x43bb88
movzx ecx, byte [esi + eax]
mov edx, dword [esp + 0x4c]
cmp cl, byte [edx + eax]
jne 0x43bd2f
inc eax
cmp eax, dword [esp + 0x50]
je 0x43bbe0
test ebp, ebp
je 0x43bb70
movzx ecx, byte [ebp + eax]
mov byte [esp + 0x1c], 0x8d
mov dword [esp + 0x1d], 0
mov edx, 0xcd
mov edi, 0x32
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebp, byte [esp + edx - 0xb1]
mov ebx, edi
xor ebx, edx
and ebx, ebp
xor ebx, edx
dec bl
mov byte [esp + edx - 0xb1], bl
inc edx
dec edi
cmp edx, 0xd2
jne 0x43bbb0
cmp cl, byte [esp + 0x1c]
mov ebp, dword [esp + 0x54]
jne 0x43bb70
jmp 0x43bb81
mov ecx, dword [esp]
mov eax, ecx
mov edx, dword [esp + 4]
xor eax, edx
mov ebp, ecx
not ebp
and ebp, edx
add ebp, ebp
sub ebp, eax
mov eax, edx
cmp edx, dword [esp + 0x10]
je 0x43bc28
mov ebx, eax
sub ebx, ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], eax
cmp ebx, ebp
jae 0x43bab0
jmp 0x43bdf6
mov ecx, dword [esp]
jmp 0x43bad4
mov ebx, eax
mov eax, ebp
sar eax, 2
inc eax
sub ebx, ecx
mov ecx, ebx
sar ecx, 2
mov edi, ecx
shr edi, 1
add edi, ecx
cmp edi, eax
ja 0x43bc43
mov edi, eax
lea eax, [edi*4]
push eax
call fcn.004095c0
add esp, 4
mov edx, eax
mov ecx, dword [esp]
test ecx, ecx
mov dword [esp + 0xc], eax
je 0x43bdc0
mov dword [esp + 0x14], edi
cmp edx, ecx
mov dword [esp + 8], ebx
jbe 0x43bd3a
cmp dword [esp + 4], edx
jbe 0x43bd3a
test ebx, ebx
je 0x43bda6
mov eax, dword [esp]
mov edx, dword [esp + 8]
add eax, edx
dec eax
mov ecx, dword [esp + 0xc]
add ecx, edx
dec ecx
mov edi, edx
and edi, 7
je 0x43bcc4
neg edi
xor edx, edx
nop
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 edi, edx
jne 0x43bcb0
add eax, edx
add ecx, edx
add edx, dword [esp + 8]
mov edi, dword [esp]
sub edi, dword [esp + 4]
cmp edi, 0xfffffff8
ja 0x43bda6
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 0x43bce0
jmp 0x43bda6
add esi, eax
dec esi
mov ecx, dword [esp]
jmp 0x43bad4
mov ecx, ebx
shr ecx, 2
mov eax, dword [esp]
mov edi, edx
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov edx, ebx
and edx, 0xfffffffc
mov eax, dword [esp + 0xc]
add eax, edx
mov dword [esp + 0x10], eax
add edx, dword [esp]
and ebx, 3
mov ecx, ebx
shr ecx, 1
mov eax, edx
mov edi, dword [esp + 0x10]
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
mov edi, dword [esp + 0x10]
mov eax, ebx
xor eax, 0xfffffffe
or ebx, 1
and ebx, eax
je 0x43bda6
mov ecx, dword [esp + 8]
and ecx, 2
movzx eax, byte [edx + ecx]
mov byte [edi + ecx], al
cmp ebx, 1
je 0x43bda6
movzx eax, byte [edx + ecx + 1]
mov byte [edi + ecx + 1], al
cmp ebx, 2
je 0x43bda6
movzx eax, byte [edx + ecx + 2]
mov byte [edi + ecx + 2], al
mov edi, dword [esp]
push edi
call fcn.004095d0
mov ecx, edi
add esp, 4
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 8]
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x40]
mov dword [eax], edx
lea eax, [edx + ebp]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x24], ebp
mov ebp, dword [esp + 0x14]
mov dword [eax + 4], ebp
mov ebp, dword [esp + 0x24]
lea edx, [edx + edi*4]
mov dword [esp + 0x10], edx
mov dword [eax + 8], edx
mov eax, dword [esp + 4]
cmp ebx, ebp
jae 0x43bab0
add ecx, ebp
sub ecx, eax
mov eax, dword [esp + 0xc]
lea ebp, [eax + ebx]
mov dword [esp + 8], ebx
add ebx, eax
add ebx, 4
cmp ecx, 4
jg 0x43baa1
mov dword [esp], ecx
mov ecx, dword [esp]
shr ecx, 2
mov edx, ebp
mov edi, ebx
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
mov edx, dword [esp]
and edx, 0xfffffffc
add ebx, edx
add edx, ebp
mov eax, dword [esp]
and eax, 3
mov ecx, eax
shr ecx, 1
mov ebp, edx
mov dword [esp + 4], ebx
mov edi, ebx
xchg esi, ebp
rep movsw word es:[edi], word [esi]
xchg esi, ebp
mov ecx, eax
xor ecx, 0xfffffffe
or eax, 1
and eax, ecx
mov edi, dword [esp]
mov ebx, dword [esp + 8]
je 0x43bab0
and edi, 2
movzx ecx, byte [edx + edi]
mov ebp, dword [esp + 4]
mov byte [ebp + edi], cl
cmp eax, 1
je 0x43bab0
movzx ecx, byte [edx + edi + 1]
mov ebp, dword [esp + 4]
mov byte [ebp + edi + 1], cl
cmp eax, 2
je 0x43bab0
movzx ecx, byte [edx + edi + 2]
mov eax, dword [esp + 4]
mov byte [eax + edi + 2], cl
jmp 0x43bab0
mov eax, dword [esp + 0x40]
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret