Function at 0x43e5d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x38
mov ebx, 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 0x43e5f0
sar ecx, 1
mov edx, ecx
and edx, 2
mov esi, ecx
or ecx, 2
imul ecx, edx
xor edx, 2
and esi, 0xfffd
imul esi, edx
lea edx, [esi + ecx]
mov word [esp + 0x2c], dx
add ecx, esi
add ecx, 2
mov word [esp + 0x2e], cx
mov dword [esp + 0x30], eax
mov dword [esp + 0x18], 0x82858487
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xf
ja 0x43e6a8
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x18]
lea edx, [eax + 0xc1]
add eax, ecx
and edx, ecx
add edx, edx
sub eax, edx
add eax, 0x2c7950c1
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov ecx, eax
xor ecx, 0xb8
and eax, 0x38
lea eax, [ecx + eax*2]
inc al
mov ecx, dword [esp]
mov byte [esp + ecx + 0x18], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x10
jb 0x43e660
mov esi, dword [esp + 0x18]
mov eax, dword [0x449d18]
test eax, eax
je 0x43e6fe
xor ecx, ecx
mov edx, dword [0x449d1c]
nop
nop
nop
cmp dword [edx + ecx*8], 0x36e97270
je 0x43e6d0
inc ecx
cmp eax, ecx
jne 0x43e6c0
jmp 0x43e6fe
mov eax, dword [edx + ecx*8 + 4]
cmp eax, esi
je 0x43e6fe
lea ecx, [esp + 0x10]
lea edx, [esp + 0x2c]
push ecx
push 0
push 0
push 2
push edx
push dword [ebp + 8]
push 6
push dword [0x449d20]
push eax
call fcn.0043ab10
add esp, 0x24
mov esi, eax
cmp esi, 0xc0000023
jne 0x43e8ec
push dword [esp + 0x10]
call fcn.00438aa0
add esp, 4
mov dword [esp + 4], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], 0x82858487
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 0xf
ja 0x43e799
nop
nop
nop
mov ecx, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0x18]
lea esi, [ecx + 0xc1]
add ecx, edx
and esi, edx
add esi, esi
sub ecx, esi
add ecx, 0x2c7950c1
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x14]
mov edx, ecx
xor edx, 0xb8
and ecx, 0x38
lea ecx, [edx + ecx*2]
inc cl
mov edx, dword [esp]
mov byte [esp + edx + 0x18], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 0x10
jb 0x43e750
mov esi, dword [esp + 0x18]
mov ecx, dword [0x449d18]
test ecx, ecx
je 0x43e7ff
xor edx, edx
mov ebx, dword [0x449d1c]
nop
cmp dword [ebx + edx*8], 0x36e97270
je 0x43e7cd
mov edi, edx
and edi, 1
xor edx, 1
lea edx, [edx + edi*2]
cmp edx, ecx
jb 0x43e7b0
mov ebx, dword [ebp + 0x18]
jmp 0x43e7ff
mov ecx, dword [ebx + edx*8 + 4]
cmp ecx, esi
mov ebx, dword [ebp + 0x18]
je 0x43e7ff
lea edx, [esp + 0x10]
lea esi, [esp + 0x2c]
push edx
push eax
push dword [esp + 0xc]
push 2
push esi
push dword [ebp + 8]
push 6
push dword [0x449d20]
push ecx
call fcn.0043ab10
add esp, 0x24
mov esi, eax
test esi, esi
mov edx, dword [esp + 4]
js 0x43e8e3
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x43e817
mov eax, dword [edx + 4]
mov dword [ecx], eax
test ebx, ebx
je 0x43e8e3
cmp dword [ebp + 0x14], 0
je 0x43e8da
mov eax, dword [ebx]
mov edx, dword [esp + 4]
mov ecx, dword [edx + 8]
cmp eax, ecx
jb 0x43e838
mov eax, ecx
add edx, 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 edi, eax
and edi, 0xfffffffc
add edi, ebx
mov ecx, eax
xor ecx, 3
mov edx, eax
or edx, 0xfffffffc
and edx, ecx
mov ecx, dword [esp + 4]
lea ebx, [ecx + edx]
add ebx, 0xc
mov edx, eax
and edx, 3
mov ecx, edx
shr ecx, 1
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edi
xchg esi, ebx
rep movsw word es:[edi], word [esi]
xchg esi, ebx
mov ecx, eax
xor ecx, 2
and ecx, edx
mov ebx, dword [ebp + 0x18]
je 0x43e8da
xor edx, 1
mov edi, eax
or edi, 2
and edi, edx
and eax, 2
mov edx, dword [esp + 8]
movzx edx, byte [edx + eax]
mov ebx, dword [esp + 0xc]
mov byte [ebx + edi], dl
mov ebx, dword [ebp + 0x18]
cmp ecx, 1
je 0x43e8da
mov edx, dword [esp + 8]
movzx edx, byte [edx + eax + 1]
mov ebx, dword [esp + 0xc]
mov byte [ebx + edi + 1], dl
mov ebx, dword [ebp + 0x18]
cmp ecx, 2
je 0x43e8da
mov ecx, dword [esp + 8]
movzx eax, byte [ecx + eax + 2]
mov ecx, dword [esp + 0xc]
mov byte [ecx + edi + 2], al
mov edx, dword [esp + 4]
mov eax, dword [edx + 8]
mov dword [ebx], eax
push edx
call fcn.00438bf0
add esp, 4
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret