Function at 0x43f570
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov edi, dword [esp + 0x34]
mov dword [esp + 8], 0xe8ebeae5
mov byte [esp + 0xc], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax + 8]
lea edx, [eax + 0x6d0adf57]
xor edx, ecx
add edx, 0x6db4ca35
mov ecx, edx
and ecx, 0x18
xor edx, 0x18
lea ecx, [edx + ecx*2]
mov byte [esp + eax + 8], cl
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
cmp eax, 5
jb 0x43f590
mov esi, dword [esp + 8]
mov eax, dword [0x449ea0]
test eax, eax
je 0x43f61e
xor ecx, ecx
mov edx, dword [0x449ea4]
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0x3602324e
je 0x43f5f0
inc ecx
cmp eax, ecx
jne 0x43f5e0
jmp 0x43f61e
mov eax, dword [edx + ecx*8 + 4]
cmp eax, esi
je 0x43f61e
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push 1
push dword [esp + 0x40]
push dword [esp + 0x40]
push 6
push eax
push dword [0x449ea8]
call fcn.0043b0a0
add esp, 0x24
mov esi, eax
cmp esi, 0xc0000023
jne 0x43f8bf
push dword [esp + 0x14]
call fcn.00437fb0
add esp, 4
mov dword [esp], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 8], 0xe8ebeae5
mov byte [esp + 0xc], 0
xor edx, edx
nop
nop
nop
nop
movzx esi, byte [esp + edx + 8]
lea ebx, [edx + 0x6d0adf57]
xor ebx, esi
add ebx, 0x6db4ca35
mov esi, ebx
and esi, 0x18
xor ebx, 0x18
lea ebx, [ebx + esi*2]
mov byte [esp + edx + 8], bl
mov esi, edx
and esi, 1
xor edx, 1
lea edx, [edx + esi*2]
cmp edx, 5
jb 0x43f650
mov esi, dword [esp + 8]
mov edx, dword [0x449ea0]
test edx, edx
je 0x43f6ea
mov ebx, esi
xor esi, esi
mov ebp, dword [0x449ea4]
nop
nop
nop
nop
nop
nop
cmp dword [ebp + esi*8], 0x3602324e
je 0x43f6b3
inc esi
cmp edx, esi
jne 0x43f6a0
mov esi, ebx
jmp 0x43f6ea
mov edx, dword [ebp + esi*8 + 4]
mov esi, ebx
cmp edx, ebx
je 0x43f6ea
lea esi, [esp + 0x14]
push esi
push ecx
push dword [esp + 8]
push 1
push dword [esp + 0x40]
push dword [esp + 0x40]
push 6
push edx
push dword [0x449ea8]
mov esi, eax
call fcn.0043b0a0
add esp, 0x24
mov ecx, eax
mov eax, esi
mov esi, ecx
test esi, esi
mov ebx, dword [esp + 0x44]
js 0x43f8b4
mov edx, dword [esp + 0x38]
test edx, edx
mov ebp, dword [esp + 0x3c]
je 0x43f7fd
test edi, edi
je 0x43f7f3
mov ecx, dword [esp]
mov ebp, dword [ecx + 0x10]
shr ebp, 1
mov ecx, dword [edx]
cmp ecx, ebp
jb 0x43f71e
mov ecx, ebp
test ecx, ecx
je 0x43f776
add eax, 0x14
mov dword [esp + 0x10], ecx
and ecx, 3
mov ebp, dword [esp + 0x3c]
mov dword [esp + 4], esi
je 0x43f77c
mov ebx, dword [esp + 0x10]
xor esi, esi
nop
nop
nop
nop
movzx ebp, word [eax]
xor edx, edx
test bp, bp
setne dl
lea eax, [eax + edx*2]
mov word [edi], bp
add edi, 2
inc esi
cmp ecx, esi
jne 0x43f740
mov ecx, ebx
sub ecx, esi
mov ebx, dword [esp + 0x44]
mov ebp, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 4]
cmp dword [esp + 0x10], 4
jae 0x43f790
jmp 0x43f7ee
mov ebp, dword [esp + 0x3c]
jmp 0x43f7ee
mov ecx, dword [esp + 0x10]
cmp dword [esp + 0x10], 4
jb 0x43f7ee
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, word [eax]
xor ebx, ebx
test dx, dx
setne bl
lea esi, [eax + ebx*2]
mov word [edi], dx
movzx eax, word [eax + ebx*2]
xor edx, edx
test ax, ax
setne dl
lea ebx, [esi + edx*2]
mov word [edi + 2], ax
movzx eax, word [esi + edx*2]
xor edx, edx
test ax, ax
setne dl
lea esi, [ebx + edx*2]
mov word [edi + 4], ax
movzx edx, word [ebx + edx*2]
xor eax, eax
test dx, dx
setne al
mov word [edi + 6], dx
add edi, 8
lea eax, [esi + eax*2]
add ecx, 0xfffffffc
jne 0x43f790
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 4]
mov ebx, dword [esp + 0x44]
mov word [edi], 0
mov eax, dword [esp]
mov eax, dword [eax + 0x10]
shr eax, 1
mov dword [edx], eax
test ebp, ebp
je 0x43f80a
mov eax, dword [esp]
mov eax, dword [eax + 4]
mov dword [ebp], eax
test ebx, ebx
je 0x43f8b4
mov dword [esp + 4], esi
cmp dword [esp + 0x40], 0
je 0x43f8a8
mov eax, dword [ebx]
mov ecx, dword [esp]
mov ecx, dword [ecx + 0xc]
cmp eax, ecx
jb 0x43f82f
mov eax, ecx
mov ecx, dword [esp]
mov esi, dword [ecx + 8]
add esi, ecx
mov ecx, eax
shr ecx, 2
mov edx, eax
and edx, 0xfffffffc
mov ebp, dword [esp + 0x40]
mov edi, ebp
add ebp, edx
add edx, esi
xchg esi, esi
rep movsd dword es:[edi], dword [esi]
xchg esi, esi
mov esi, eax
and esi, 3
mov ecx, esi
shr ecx, 1
mov ebx, edx
mov edi, ebp
xchg esi, ebx
rep movsw word es:[edi], word [esi]
xchg esi, ebx
mov ecx, eax
xor ecx, 2
and ecx, esi
mov ebx, dword [esp + 0x44]
je 0x43f8a8
and eax, 2
mov esi, ecx
not esi
movzx ebx, byte [edx + eax]
mov byte [ebp + eax], bl
mov ebx, dword [esp + 0x44]
lea edi, [ecx + ecx]
add esi, edi
je 0x43f8a8
add esi, esi
movzx ebx, byte [edx + eax + 1]
mov byte [ebp + eax + 1], bl
mov ebx, dword [esp + 0x44]
cmp esi, ecx
je 0x43f8a8
movzx ecx, byte [edx + eax + 2]
mov byte [ebp + eax + 2], cl
mov eax, dword [esp]
mov eax, dword [eax + 0xc]
mov dword [ebx], eax
mov esi, dword [esp + 4]
push dword [esp]
call fcn.00438060
add esp, 4
mov eax, esi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret