Function at 0x43c360
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x38
mov esi, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
xor ecx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [eax + ecx], 0
lea ecx, [ecx + 2]
jne 0x43c380
add ecx, 0xfffffffe
and ecx, 0xfffe
mov word [esp + 0x28], cx
add ecx, 2
mov word [esp + 0x2a], cx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], 0xfaf9f887
mov dword [esp + 0x1c], 0
mov word [esp + 0x20], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 9
ja 0x43c41b
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x18]
mov edx, eax
and edx, 0x17f5bf3f
xor eax, 0x97f5bf3f
lea eax, [eax + edx*2]
lea edx, [eax + ecx]
and eax, ecx
add eax, eax
sub edx, eax
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x14]
mov ecx, eax
xor ecx, 0x46
and eax, 0x46
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, 0xa
jb 0x43c3d0
mov ebx, dword [esp + 0x18]
mov eax, dword [0x447460]
test eax, eax
je 0x43c46e
xor ecx, ecx
mov edx, dword [0x447464]
cmp dword [edx + ecx*8], 0x36e97270
je 0x43c440
inc ecx
cmp eax, ecx
jne 0x43c430
jmp 0x43c46e
mov eax, dword [edx + ecx*8 + 4]
cmp eax, ebx
je 0x43c46e
lea ecx, [esp + 0x10]
lea edx, [esp + 0x28]
push ecx
push 0
push 0
push 2
push edx
push dword [ebp + 8]
push 6
push dword [0x447468]
push eax
call fcn.00438760
add esp, 0x24
mov ebx, eax
cmp ebx, 0xc0000023
jne 0x43c6a9
push dword [esp + 0x10]
call fcn.00436cd0
add esp, 4
mov dword [esp + 4], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], 0xfaf9f887
mov dword [esp + 0x1c], 0
mov word [esp + 0x20], 0
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 9
ja 0x43c50c
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0x18]
mov edi, ecx
and edi, 0x17f5bf3f
xor ecx, 0x97f5bf3f
lea ecx, [ecx + edi*2]
lea edi, [ecx + edx]
and ecx, edx
add ecx, ecx
sub edi, ecx
mov dword [esp + 0x14], edi
mov ecx, dword [esp + 0x14]
mov edx, ecx
xor edx, 0x46
and ecx, 0x46
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, 0xa
jb 0x43c4c0
mov ebx, dword [esp + 0x18]
mov ecx, dword [0x447460]
test ecx, ecx
je 0x43c56f
xor edx, edx
mov edi, dword [0x447464]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + edx*8], 0x36e97270
je 0x43c540
inc edx
cmp ecx, edx
jne 0x43c530
jmp 0x43c56f
mov ecx, dword [edi + edx*8 + 4]
cmp ecx, ebx
je 0x43c56f
lea edx, [esp + 0x10]
lea edi, [esp + 0x28]
push edx
push eax
push dword [esp + 0xc]
push 2
push edi
push dword [ebp + 8]
push 6
push dword [0x447468]
push ecx
call fcn.00438760
add esp, 0x24
mov ebx, eax
test ebx, ebx
mov edi, dword [ebp + 0x18]
js 0x43c69d
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x43c58a
mov eax, dword [esp + 4]
mov eax, dword [eax + 4]
mov dword [ecx], eax
test edi, edi
je 0x43c69d
test esi, esi
je 0x43c691
mov dword [esp + 0x30], ebx
mov eax, dword [ebp + 0x18]
mov edx, dword [eax]
mov eax, dword [esp + 4]
mov eax, dword [eax + 8]
cmp edx, eax
jb 0x43c5b0
mov edx, eax
mov eax, dword [esp + 4]
add eax, 0xc
mov ecx, edx
shr ecx, 2
mov edi, esi
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov eax, edx
and eax, 0xfffffffc
add esi, eax
mov ecx, dword [esp + 4]
add eax, ecx
add eax, 0xc
mov dword [esp + 8], edx
mov ecx, edx
and ecx, 3
mov edx, ecx
not edx
or edx, 1
add edx, ecx
shr ecx, 1
mov dword [esp + 0xc], eax
mov edi, esi
mov ebx, dword [esp + 0xc]
xchg esi, ebx
rep movsw word es:[edi], word [esi]
xchg esi, ebx
mov dword [esp + 0xc], edx
mov ecx, edx
inc ecx
mov ebx, dword [esp + 0x30]
je 0x43c691
mov edx, dword [esp + 8]
and edx, 2
add eax, edx
add esi, edx
mov edi, ecx
and edi, 7
je 0x43c636
mov dword [esp + 8], ecx
xor edx, edx
movzx ecx, byte [eax + edx]
mov byte [esi + edx], cl
inc edx
cmp edi, edx
jne 0x43c620
add eax, edx
add esi, edx
mov ecx, dword [esp + 8]
sub ecx, edx
cmp dword [esp + 0xc], 7
jb 0x43c691
xor edx, edx
nop
mov edi, ecx
movzx ecx, byte [eax + edx]
mov byte [esi + edx], cl
movzx ecx, byte [eax + edx + 1]
mov byte [esi + edx + 1], cl
movzx ecx, byte [eax + edx + 2]
mov byte [esi + edx + 2], cl
movzx ecx, byte [eax + edx + 3]
mov byte [esi + edx + 3], cl
movzx ecx, byte [eax + edx + 4]
mov byte [esi + edx + 4], cl
movzx ecx, byte [eax + edx + 5]
mov byte [esi + edx + 5], cl
movzx ecx, byte [eax + edx + 6]
mov byte [esi + edx + 6], cl
movzx ecx, byte [eax + edx + 7]
mov byte [esi + edx + 7], cl
mov ecx, edi
add edx, 8
cmp edi, edx
jne 0x43c640
mov eax, dword [esp + 4]
mov eax, dword [eax + 8]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
push dword [esp + 4]
call fcn.00436da0
add esp, 4
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret