Function at 0x43ac80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x28
mov edi, dword [ebp + 0x18]
mov eax, dword [ebp + 0xc]
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [eax + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x43aca0
sar ecx, 1
mov edx, ecx
and edx, 0xfffd
mov esi, ecx
and esi, 2
or ecx, 2
imul ecx, esi
xor esi, 2
imul esi, edx
lea edx, [esi + ecx]
mov word [esp + 0x18], dx
add ecx, esi
add ecx, 2
mov word [esp + 0x1a], cx
mov dword [esp + 0x1c], eax
mov dword [esp + 8], 0x8a858487
mov dword [esp + 0xc], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 7
ja 0x43ad41
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 8]
lea edx, [eax - 0x3e428eeb]
add eax, 0x15
and eax, ecx
or edx, ecx
sub edx, eax
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x14]
mov ecx, eax
xor ecx, 0x6c
and eax, 0x6c
lea eax, [ecx + eax*2]
inc al
mov ecx, dword [esp]
mov byte [esp + ecx + 8], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 8
jb 0x43ad00
mov esi, dword [esp + 8]
mov eax, dword [0x446fd4]
test eax, eax
je 0x43ad9e
xor ecx, ecx
mov edx, dword [0x446fd8]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0x36e97270
je 0x43ad70
inc ecx
cmp eax, ecx
jne 0x43ad60
jmp 0x43ad9e
mov eax, dword [edx + ecx*8 + 4]
cmp eax, esi
je 0x43ad9e
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push 0
push 0
push 2
push edx
push dword [ebp + 8]
push 6
push dword [0x446fdc]
push eax
call fcn.00436e40
add esp, 0x24
mov esi, eax
cmp esi, 0xc0000023
jne 0x43aedf
push dword [esp + 0x10]
call fcn.004350e0
add esp, 4
mov dword [esp + 4], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 8], 0x8a858487
mov dword [esp + 0xc], 0
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 7
ja 0x43ae21
nop
nop
nop
mov ecx, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 8]
lea esi, [ecx - 0x3e428eeb]
add ecx, 0x15
and ecx, edx
or esi, edx
sub esi, ecx
mov dword [esp + 0x14], esi
mov ecx, dword [esp + 0x14]
mov edx, ecx
xor edx, 0x6c
and ecx, 0x6c
lea ecx, [edx + ecx*2]
inc cl
mov edx, dword [esp]
mov byte [esp + edx + 8], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 8
jb 0x43ade0
mov esi, dword [esp + 8]
mov ecx, dword [0x446fd4]
test ecx, ecx
je 0x43ae54
mov ebx, edi
xor edx, edx
mov edi, dword [0x446fd8]
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + edx*8], 0x36e97270
je 0x43aee9
inc edx
cmp ecx, edx
jne 0x43ae40
mov edi, ebx
mov edx, dword [esp + 4]
test esi, esi
js 0x43aed6
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x43ae68
mov eax, dword [edx + 4]
mov dword [ecx], eax
test edi, edi
je 0x43aed6
cmp dword [ebp + 0x14], 0
je 0x43aed1
mov eax, dword [edi]
mov ecx, dword [edx + 8]
cmp eax, ecx
jb 0x43ae7d
mov eax, ecx
mov ecx, dword [esp + 4]
lea edx, [ecx + 0xc]
mov ecx, eax
shr ecx, 2
mov ebx, dword [ebp + 0x14]
mov edi, ebx
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
mov ecx, eax
and ecx, 0xfffffffc
add ebx, ecx
mov edx, dword [esp + 4]
add edx, ecx
add edx, 0xc
mov ecx, eax
shr ecx, 1
and ecx, 1
mov dword [esp + 0x20], edx
mov edi, ebx
xchg esi, edx
rep movsw word es:[edi], word [esi]
xchg esi, edx
mov edx, dword [esp + 4]
test al, 1
mov edi, dword [ebp + 0x18]
je 0x43aed1
and eax, 2
mov ecx, dword [esp + 0x20]
movzx ecx, byte [ecx + eax]
mov byte [ebx + eax], cl
mov eax, dword [edx + 8]
mov dword [edi], eax
push edx
call fcn.00435190
add esp, 4
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [edi + edx*8 + 4]
cmp ecx, esi
mov edi, ebx
mov edx, dword [esp + 4]
je 0x43ae58
lea edx, [esp + 0x10]
lea esi, [esp + 0x18]
push edx
push eax
push dword [esp + 0xc]
push 2
push esi
push dword [ebp + 8]
push 6
push dword [0x446fdc]
push ecx
call fcn.00436e40
mov edx, dword [esp + 0x28]
add esp, 0x24
mov esi, eax
jmp 0x43ae58