Function at 0x43baa0
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 0x43bfb2
mov edi, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
mov ecx, eax
and ecx, 0xfffffffe
not eax
and eax, 1
sub ecx, eax
mov dword [esp + 0x24], ecx
mov dword [esp + 4], 0
xor ebp, ebp
mov dword [esp + 0x10], 0
jmp 0x43bb40
push ebp
push ebx
push eax
call fcn.00409620
add esp, 0xc
mov ebp, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov dword [ebp + eax], esi
mov ecx, dword [esp]
add ecx, 4
mov eax, dword [esp + 0x40]
mov dword [eax + 4], ecx
add esi, dword [esp + 0x24]
mov dword [esp + 4], ecx
mov edi, dword [esp + 0x54]
inc esi
cmp esi, dword [esp + 0x28]
jae 0x43bfb2
test edi, edi
je 0x43bb9e
movzx eax, byte [edi]
mov byte [esp + 0x14], 0x4b
lea ecx, [esp + 0x15]
mov word [ecx + 4], 0
mov dword [ecx], 0
mov ecx, 0xfcbf823e
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [esp + ecx + 0x3407dd6]
mov edx, ebx
and edx, ecx
add dl, dl
sub bl, dl
movzx edx, bl
add edx, ecx
add dl, 0xca
mov byte [esp + ecx + 0x3407dd6], dl
inc ecx
cmp ecx, 0xfcbf8245
jne 0x43bb70
cmp al, byte [esp + 0x14]
je 0x43bba9
movzx eax, byte [esi]
mov ecx, dword [esp + 0x4c]
cmp al, byte [ecx]
jne 0x43bb35
cmp dword [esp + 0x50], 2
jb 0x43bc40
mov eax, 1
jmp 0x43bbd8
movzx ecx, byte [esi + eax]
mov edx, dword [esp + 0x4c]
cmp cl, byte [edx + eax]
jne 0x43bd62
inc eax
cmp eax, dword [esp + 0x50]
je 0x43bc40
test edi, edi
je 0x43bbc0
movzx ecx, byte [edi + eax]
mov byte [esp + 0x14], 0xd7
lea edx, [esp + 0x15]
mov dword [edx + 3], 0
mov dword [edx], 0
mov edx, 0x40fe7ca4
nop
nop
nop
nop
nop
movzx edi, byte [esp + edx - 0x40fe7c90]
xor edi, edx
add edi, 0xbb0790cb
mov ebx, edi
and ebx, 0x37
xor edi, 0xb7
lea ebx, [edi + ebx*2]
add bl, 0x4a
mov byte [esp + edx - 0x40fe7c90], bl
inc edx
cmp edx, 0x40fe7cac
jne 0x43bc00
cmp cl, byte [esp + 0x14]
mov edi, dword [esp + 0x54]
jne 0x43bbc0
jmp 0x43bbd1
mov edi, dword [esp + 4]
mov eax, edi
not eax
and eax, ebp
mov ecx, ebp
not ecx
and ecx, edi
sub ecx, eax
cmp edi, dword [esp + 0x10]
je 0x43bc68
mov ebx, edi
sub ebx, ebp
mov dword [esp + 0xc], ebp
mov dword [esp], edi
jmp 0x43be95
mov dword [esp + 0x20], ecx
mov eax, ecx
sar eax, 2
inc eax
mov ebx, edi
sub ebx, ebp
mov ecx, ebx
sar ecx, 2
mov edx, ecx
shr edx, 1
add edx, ecx
cmp edx, eax
ja 0x43bc87
mov edx, eax
mov dword [esp + 0x10], edx
lea eax, [edx*4]
push eax
call fcn.004095a0
add esp, 4
mov edx, eax
test ebp, ebp
mov dword [esp + 0xc], eax
je 0x43be62
cmp edx, ebp
mov dword [esp + 8], ebx
jbe 0x43bd6a
cmp edi, edx
jbe 0x43bd6a
test ebx, ebx
je 0x43be4d
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
add eax, edx
dec eax
lea ecx, [edx + ebp]
dec ecx
mov edi, edx
and edi, 7
je 0x43bcf4
neg edi
xor edx, edx
nop
movzx ebx, byte [ecx + edx]
mov byte [eax + edx], bl
dec edx
cmp edi, edx
jne 0x43bce0
add ecx, edx
add eax, edx
add edx, dword [esp + 8]
mov edi, ebp
sub edi, dword [esp + 4]
cmp edi, 0xfffffff8
ja 0x43be4d
neg edx
xor edi, edi
nop
nop
nop
nop
nop
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 0x43bd10
jmp 0x43be4d
add esi, eax
dec esi
jmp 0x43bb35
mov ecx, ebx
shr ecx, 2
mov eax, ebp
mov edi, edx
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov eax, edx
mov edx, ebx
and edx, 0xfffffffc
add eax, edx
add edx, ebp
mov ecx, ebx
not ecx
or ecx, 3
add ecx, ebx
inc ecx
mov dword [esp + 0x1c], ecx
shr ecx, 1
mov dword [esp], edx
mov edi, eax
mov ebx, dword [esp]
xchg esi, ebx
rep movsw word es:[edi], word [esi]
xchg esi, ebx
mov edi, dword [esp + 0x1c]
mov ecx, edi
xor ecx, 0xfffffffe
mov ebx, edi
or ebx, 1
and ebx, ecx
je 0x43be4d
and edi, 0xfffffffe
add edx, edi
add eax, edi
mov edi, ebx
and edi, 7
je 0x43bdee
mov dword [esp], ebx
xor ecx, ecx
nop
nop
nop
nop
nop
nop
movzx ebx, byte [edx + ecx]
mov byte [eax + ecx], bl
inc ecx
cmp edi, ecx
jne 0x43bdd0
add edx, ecx
add eax, ecx
mov ebx, dword [esp]
mov edi, ebx
sub edi, ecx
cmp ebx, 8
jae 0x43bdf5
jmp 0x43be4d
mov edi, ebx
cmp ebx, 8
jb 0x43be4d
xor ecx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [edx + ecx]
mov byte [eax + ecx], bl
movzx ebx, byte [edx + ecx + 1]
mov byte [eax + ecx + 1], bl
movzx ebx, byte [edx + ecx + 2]
mov byte [eax + ecx + 2], bl
movzx ebx, byte [edx + ecx + 3]
mov byte [eax + ecx + 3], bl
movzx ebx, byte [edx + ecx + 4]
mov byte [eax + ecx + 4], bl
movzx ebx, byte [edx + ecx + 5]
mov byte [eax + ecx + 5], bl
movzx ebx, byte [edx + ecx + 6]
mov byte [eax + ecx + 6], bl
movzx ebx, byte [edx + ecx + 7]
mov byte [eax + ecx + 7], bl
add ecx, 8
cmp edi, ecx
jne 0x43be00
push ebp
call fcn.004095b0
add esp, 4
mov edi, dword [esp + 4]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 8]
mov eax, dword [esp + 0x40]
mov dword [eax], edx
mov eax, dword [esp + 0x20]
lea ecx, [edx + eax]
mov dword [esp], ecx
mov dword [esp + 4], ebp
mov ebp, dword [esp + 0x40]
mov dword [ebp + 4], ecx
mov ebp, dword [esp + 4]
mov ecx, dword [esp + 0x10]
lea ecx, [edx + ecx*4]
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x40]
mov dword [edx + 8], ecx
mov ecx, eax
mov eax, ebx
mov dword [esp + 8], ebx
cmp ebx, ecx
jae 0x43bb10
add ebp, ecx
sub ebp, edi
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
lea ebx, [eax + ecx]
add eax, ecx
add eax, 4
cmp ebp, 4
jg 0x43bb05
mov ecx, ebp
shr ecx, 2
mov edx, ebx
mov edi, eax
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
mov edx, ebp
and edx, 0xfffffffc
add eax, edx
add edx, ebx
mov ecx, ebp
not ecx
or ecx, 3
lea ebx, [ecx + ebp]
inc ebx
mov ecx, ebx
shr ecx, 1
mov ebp, edx
mov edi, eax
xchg esi, ebp
rep movsw word es:[edi], word [esi]
xchg esi, ebp
mov edi, ebx
xor edi, 0xfffffffe
mov ecx, ebx
or ecx, 1
and ecx, edi
je 0x43bb10
and ebx, 0xfffffffe
add edx, ebx
mov edi, ecx
and edi, 7
je 0x43bf44
xor ebx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx eax, byte [edx + ebx]
mov byte [edx + ebx + 4], al
inc ebx
cmp edi, ebx
jne 0x43bf20
lea eax, [edx + ebx]
add eax, 4
add edx, ebx
mov edi, ecx
sub edi, ebx
cmp ecx, 8
jb 0x43bb10
jmp 0x43bf51
add eax, ebx
mov edi, ecx
cmp ecx, 8
jb 0x43bb10
xor ecx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [edx + ecx]
mov byte [eax + ecx], bl
movzx ebx, byte [edx + ecx + 1]
mov byte [eax + ecx + 1], bl
movzx ebx, byte [edx + ecx + 2]
mov byte [eax + ecx + 2], bl
movzx ebx, byte [edx + ecx + 3]
mov byte [eax + ecx + 3], bl
movzx ebx, byte [edx + ecx + 4]
mov byte [eax + ecx + 4], bl
movzx ebx, byte [edx + ecx + 5]
mov byte [eax + ecx + 5], bl
movzx ebx, byte [edx + ecx + 6]
mov byte [eax + ecx + 6], bl
movzx ebx, byte [edx + ecx + 7]
mov byte [eax + ecx + 7], bl
add ecx, 8
cmp edi, ecx
jne 0x43bf60
jmp 0x43bb10
mov eax, dword [esp + 0x40]
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret