Function at 0x43a940
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x28
mov dword [esp + 8], 0x8a858487
mov dword [esp + 0xc], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 7
ja 0x43a9b1
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 + 0x20], edx
mov eax, dword [esp + 0x20]
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 0x43a970
mov esi, dword [esp + 8]
mov eax, dword [0x446fd4]
test eax, eax
je 0x43aa0c
xor ecx, ecx
mov edx, dword [0x446fd8]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0x2286b4e
je 0x43a9e0
inc ecx
cmp eax, ecx
jne 0x43a9d0
jmp 0x43aa0c
mov eax, dword [edx + ecx*8 + 4]
cmp eax, esi
je 0x43aa0c
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
push 6
push dword [0x446fdc]
push eax
call fcn.00436e40
add esp, 0x24
mov esi, eax
cmp esi, 0xc0000023
jne 0x43ac6f
push dword [esp + 0x1c]
call fcn.004350e0
add esp, 4
mov ebx, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 8], 0x8a858487
mov dword [esp + 0xc], 0
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 7
ja 0x43aa91
nop
nop
nop
nop
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 + 0x20], esi
mov ecx, dword [esp + 0x20]
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 0x43aa50
mov esi, dword [esp + 8]
mov ecx, dword [0x446fd4]
test ecx, ecx
je 0x43aaee
mov edi, esi
xor edx, edx
mov esi, dword [0x446fd8]
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0x2286b4e
je 0x43aac2
inc edx
cmp ecx, edx
jne 0x43aab0
mov esi, edi
jmp 0x43aaee
mov ecx, dword [esi + edx*8 + 4]
mov esi, edi
cmp ecx, edi
je 0x43aaee
lea edx, [esp + 0x1c]
push edx
push eax
push ebx
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
push 6
push dword [0x446fdc]
push ecx
call fcn.00436e40
add esp, 0x24
mov esi, eax
test esi, esi
js 0x43ac66
mov ecx, dword [ebp + 0x18]
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x43abec
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x43abe5
mov eax, dword [ebx + 0x10]
shr eax, 1
mov edi, dword [edi]
cmp edi, eax
jb 0x43ab1c
mov edi, eax
test edi, edi
je 0x43abdd
mov eax, edi
mov edi, ebx
add edi, 0x14
mov dword [esp + 0x18], eax
and eax, 3
mov dword [esp + 4], ebx
mov dword [esp + 0x14], esi
je 0x43ab73
xor esi, esi
nop
nop
movzx ecx, word [edi]
xor ebx, ebx
test cx, cx
setne bl
lea edi, [edi + ebx*2]
mov word [edx], cx
add edx, 2
inc esi
cmp eax, esi
jne 0x43ab40
mov eax, dword [esp + 0x18]
sub eax, esi
mov ebx, dword [esp + 4]
mov esi, dword [esp + 0x14]
mov ecx, dword [ebp + 0x18]
cmp dword [esp + 0x18], 4
jae 0x43ab80
jmp 0x43abdd
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x18], 4
jb 0x43abdd
nop
nop
movzx ecx, word [edi]
xor ebx, ebx
test cx, cx
setne bl
mov word [edx], cx
lea ecx, [edi + ebx*2]
movzx esi, word [edi + ebx*2]
xor ebx, ebx
test si, si
setne bl
mov word [edx + 2], si
lea esi, [ecx + ebx*2]
movzx ecx, word [ecx + ebx*2]
xor ebx, ebx
test cx, cx
setne bl
mov word [edx + 4], cx
lea ecx, [esi + ebx*2]
movzx esi, word [esi + ebx*2]
xor ebx, ebx
test si, si
setne bl
lea edi, [ecx + ebx*2]
mov word [edx + 6], si
add edx, 8
add eax, 0xfffffffc
jne 0x43ab80
mov ebx, dword [esp + 4]
mov esi, dword [esp + 0x14]
mov ecx, dword [ebp + 0x18]
mov word [edx], 0
mov edi, dword [ebp + 0x14]
mov eax, dword [ebx + 0x10]
shr eax, 1
mov dword [edi], eax
mov edi, dword [ebp + 0x20]
test ecx, ecx
je 0x43abf8
mov eax, dword [ebx + 4]
mov dword [ecx], eax
test edi, edi
je 0x43ac66
mov dword [esp + 4], ebx
mov dword [esp + 0x14], esi
mov ebx, dword [ebp + 0x1c]
test ebx, ebx
je 0x43ac59
mov edx, dword [edi]
mov eax, dword [esp + 4]
mov eax, dword [eax + 0xc]
cmp edx, eax
jb 0x43ac1a
mov edx, eax
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 8]
add eax, ecx
mov ecx, edx
shr ecx, 2
mov esi, edx
and esi, 0xfffffffc
mov edi, ebx
add ebx, esi
add esi, eax
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov ecx, edx
shr ecx, 1
and ecx, 1
mov eax, esi
mov edi, ebx
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
test dl, 1
mov edi, dword [ebp + 0x20]
je 0x43ac59
and edx, 2
movzx eax, byte [esi + edx]
mov byte [ebx + edx], al
mov ebx, dword [esp + 4]
mov eax, dword [ebx + 0xc]
mov dword [edi], eax
mov esi, dword [esp + 0x14]
push ebx
call fcn.00435190
add esp, 4
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret