Function at 0x43a290
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 0x43a67d
mov ebx, dword [esp + 0x50]
mov dword [esp + 0xc], 0
xor edi, edi
mov dword [esp + 0x14], 0
jmp 0x43a316
push ecx
push ebp
push edx
call fcn.00408560
add esp, 0xc
mov edx, dword [esp]
mov dword [edi + edx], esi
mov ecx, dword [esp + 0x18]
add ecx, 4
mov eax, dword [esp + 0x3c]
mov dword [eax + 4], ecx
mov eax, dword [esp + 0x4c]
add esi, eax
dec esi
mov dword [esp + 0xc], ecx
inc esi
cmp esi, dword [esp + 0x24]
jae 0x43a67d
mov dword [esp + 4], edi
test ebx, ebx
je 0x43a369
movzx eax, byte [ebx]
mov byte [esp], al
mov word [esp + 0xa], 0xc2
xor ecx, ecx
mov dl, 1
nop
movzx edi, byte [esp + ecx + 0xa]
lea eax, [ecx + 0xa5]
or eax, edi
mov ebp, 0x5a
sub ebp, ecx
or ebp, edi
add ebp, ecx
sub eax, ebp
add al, 0x32
mov byte [esp + ecx + 0xa], al
mov ecx, 1
test dl, 1
mov edx, 0
jne 0x43a330
movzx eax, byte [esp]
cmp al, byte [esp + 0xa]
je 0x43a378
movzx eax, byte [esi]
mov ecx, dword [esp + 0x48]
cmp al, byte [ecx]
jne 0x43a450
cmp dword [esp + 0x4c], 2
jb 0x43a410
mov eax, 1
jmp 0x43a3a8
movzx ecx, byte [esi + eax]
mov edx, dword [esp + 0x48]
cmp cl, byte [edx + eax]
jne 0x43a55f
inc eax
cmp eax, dword [esp + 0x4c]
je 0x43a410
test ebx, ebx
je 0x43a390
movzx ecx, byte [ebx + eax]
mov byte [esp + 0x1c], 0xb1
lea edx, [esp + 0x1d]
mov byte [edx + 2], 0
mov word [edx], 0
mov edx, 0x5714439e
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edi, byte [esp + edx - 0x57144382]
mov ebp, edx
and ebp, edi
add ebp, ebp
sub edi, ebp
add edi, edx
mov ebp, edi
and ebp, 0xf
xor edi, 0xf
lea ebx, [edi + ebp*2]
inc bl
mov byte [esp + edx - 0x57144382], bl
inc edx
cmp edx, 0x571443a2
jne 0x43a3d0
cmp cl, byte [esp + 0x1c]
mov ebx, dword [esp + 0x50]
jne 0x43a390
jmp 0x43a3a1
mov edx, dword [esp + 0xc]
mov edi, edx
not edi
mov ecx, dword [esp + 4]
mov eax, ecx
mov dword [esp + 0x20], edi
and eax, edi
mov ebp, ecx
not ebp
and ebp, edx
sub ebp, eax
mov eax, edx
cmp edx, dword [esp + 0x14]
je 0x43a459
mov edx, eax
sub edx, ecx
mov edi, ecx
mov dword [esp + 0x18], eax
cmp edx, ebp
jae 0x43a2ef
jmp 0x43a5fd
mov edi, dword [esp + 4]
jmp 0x43a30b
mov edx, eax
mov eax, ebp
sar eax, 2
inc eax
sub edx, ecx
mov dword [esp], edx
mov ecx, edx
sar ecx, 2
mov edx, ecx
shr edx, 1
add edx, ecx
cmp edx, eax
ja 0x43a477
mov edx, eax
mov dword [esp + 0x14], edx
lea eax, [edx*4]
push eax
call fcn.004084d0
add esp, 4
mov edi, eax
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x43a5d0
mov dword [esp + 0x18], ebp
cmp edi, ecx
mov dword [esp + 0x10], edi
jbe 0x43a56b
cmp dword [esp + 0xc], edi
jbe 0x43a56b
cmp dword [esp], 0
je 0x43a5b5
mov eax, dword [esp + 4]
mov edx, dword [esp]
add eax, edx
dec eax
mov ecx, dword [esp + 0x10]
add ecx, edx
dec ecx
mov edi, edx
and edi, 7
je 0x43a4f3
neg edi
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [eax + edx]
mov byte [ecx + edx], bl
dec edx
cmp edi, edx
jne 0x43a4e0
add eax, edx
add ecx, edx
add edx, dword [esp]
mov edi, dword [esp + 4]
sub edi, dword [esp + 0xc]
cmp edi, 0xfffffff8
ja 0x43a5b5
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 0x43a510
jmp 0x43a5b5
add esi, eax
dec esi
mov edi, dword [esp + 4]
jmp 0x43a30b
mov eax, dword [esp]
mov ecx, eax
shr ecx, 2
mov edx, dword [esp + 4]
mov ebp, edx
mov ebx, edi
xchg esi, ebp
rep movsd dword es:[edi], dword [esi]
xchg esi, ebp
mov ecx, eax
not ecx
or ecx, 0xfffffffc
add ecx, eax
lea ebp, [ebx + ecx]
inc ebp
add edx, ecx
inc edx
mov ecx, eax
shr ecx, 1
and ecx, 1
mov ebx, edx
mov edi, ebp
xchg esi, ebx
rep movsw word es:[edi], word [esi]
xchg esi, ebx
test al, 1
je 0x43a5b5
mov ecx, dword [esp]
and ecx, 2
movzx edx, byte [edx + ecx]
mov byte [ebp + ecx], dl
mov edi, dword [esp + 4]
push edi
call fcn.004084e0
mov ecx, edi
add esp, 4
mov ebx, dword [esp + 0x50]
mov edi, dword [esp + 0x10]
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x3c]
mov dword [eax], edi
lea edx, [edi + ebp]
mov dword [esp + 0x18], edx
mov dword [eax + 4], edx
mov edx, dword [esp + 0x14]
lea edx, [edi + edx*4]
mov dword [esp + 0x14], edx
mov dword [eax + 8], edx
mov eax, dword [esp + 0xc]
mov edx, dword [esp]
cmp edx, ebp
jae 0x43a2ef
add ecx, ebp
xor eax, ecx
and ecx, dword [esp + 0x20]
add ecx, ecx
sub ecx, eax
lea ebp, [edi + edx]
mov dword [esp], edx
add edx, edi
add edx, 4
cmp ecx, 4
jg 0x43a2e1
mov eax, ecx
shr ecx, 2
mov ebx, ebp
mov dword [esp + 0x10], edi
mov edi, edx
xchg esi, ebx
rep movsd dword es:[edi], dword [esi]
xchg esi, ebx
mov ecx, eax
not ecx
or ecx, 0xfffffffc
add ecx, eax
add edx, ecx
inc edx
lea ebx, [ecx + ebp]
inc ebx
mov ebp, edx
mov ecx, eax
shr ecx, 1
and ecx, 1
mov dword [esp + 4], ebx
mov edi, edx
xchg esi, ebx
rep movsw word es:[edi], word [esi]
xchg esi, ebx
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x50]
test al, 1
mov edx, dword [esp]
je 0x43a2ef
and eax, 2
mov ecx, dword [esp + 4]
movzx ecx, byte [ecx + eax]
mov byte [ebp + eax], cl
jmp 0x43a2ef
mov eax, dword [esp + 0x3c]
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret