Function at 0x43c450
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x50
mov ebx, dword [ebp + 0x18]
mov edi, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
xor ecx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [eax + ecx], 0
lea ecx, [ecx + 2]
jne 0x43c470
add ecx, 0xfffffffe
and ecx, 0xfffe
mov word [esp + 0x18], cx
add ecx, 2
mov word [esp + 0x1a], cx
mov dword [esp + 0x1c], eax
mov byte [esp + 0x34], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0x20212e2f
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0xc]
cmp eax, 0x14
ja 0x43c522
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0xc]
movzx ecx, byte [esp + ecx + 0x20]
lea edx, [eax + ecx]
add edx, 0xa79f63a6
add eax, 0xa6
and eax, ecx
add eax, eax
mov ecx, eax
xor ecx, edx
not eax
and eax, edx
add eax, eax
sub eax, ecx
add al, 0x76
mov ecx, dword [esp + 0xc]
mov byte [esp + ecx + 0x20], al
inc dword [esp + 0xc]
mov eax, dword [esp + 0xc]
cmp eax, 0x15
jb 0x43c4e0
mov esi, dword [esp + 0x20]
mov eax, dword [0x44a94c]
test eax, eax
je 0x43c57e
xor ecx, ecx
mov edx, dword [0x44a950]
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0x15bd542c
je 0x43c550
inc ecx
cmp eax, ecx
jne 0x43c540
jmp 0x43c57e
mov eax, dword [edx + ecx*8 + 4]
cmp eax, esi
je 0x43c57e
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push 0
push 0
push 2
push edx
push dword [ebp + 8]
push 6
push dword [0x44a954]
push eax
call fcn.004384a0
add esp, 0x24
mov esi, eax
cmp esi, 0xc0000023
jne 0x43c734
push dword [esp + 0x14]
call fcn.00436470
add esp, 4
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
mov byte [esp + 0x34], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0x20212e2f
mov dword [esp + 0xc], 0
mov ecx, dword [esp + 0xc]
cmp ecx, 0x14
ja 0x43c624
nop
nop
nop
nop
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0xc]
movzx edx, byte [esp + edx + 0x20]
lea esi, [ecx + edx]
add esi, 0xa79f63a6
add ecx, 0xa6
and ecx, edx
add ecx, ecx
mov edx, ecx
xor edx, esi
not ecx
and ecx, esi
add ecx, ecx
sub ecx, edx
add cl, 0x76
mov edx, dword [esp + 0xc]
mov byte [esp + edx + 0x20], cl
inc dword [esp + 0xc]
mov ecx, dword [esp + 0xc]
cmp ecx, 0x15
jb 0x43c5e0
mov esi, dword [esp + 0x20]
mov ecx, dword [0x44a94c]
test ecx, ecx
je 0x43c659
mov ebx, edi
xor edx, edx
mov edi, dword [0x44a950]
nop
nop
nop
nop
cmp dword [edi + edx*8], 0x15bd542c
je 0x43c65f
inc edx
cmp ecx, edx
jne 0x43c640
mov edi, ebx
mov edx, dword [esp + 0x10]
mov ebx, dword [ebp + 0x18]
jmp 0x43c69b
mov edx, dword [esp + 0x10]
jmp 0x43c69b
mov ecx, dword [edi + edx*8 + 4]
cmp ecx, esi
mov edi, ebx
mov edx, dword [esp + 0x10]
mov ebx, dword [ebp + 0x18]
je 0x43c69b
lea edx, [esp + 0x14]
lea esi, [esp + 0x18]
push edx
push eax
push dword [esp + 0x18]
push 2
push esi
push dword [ebp + 8]
push 6
push dword [0x44a954]
push ecx
call fcn.004384a0
mov edx, dword [esp + 0x34]
add esp, 0x24
mov esi, eax
test esi, esi
js 0x43c72b
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x43c6af
mov eax, dword [edx + 4]
mov dword [ecx], eax
test ebx, ebx
je 0x43c72b
test edi, edi
je 0x43c722
mov eax, dword [ebx]
mov edx, dword [esp + 0x10]
mov ecx, dword [edx + 8]
cmp eax, ecx
jb 0x43c6c6
mov eax, ecx
lea ebx, [edx + 0xc]
mov ecx, eax
shr ecx, 2
mov edx, edi
xchg esi, ebx
rep movsd dword es:[edi], dword [esi]
xchg esi, ebx
mov ecx, eax
and ecx, 0xfffffffc
add edx, ecx
mov edi, dword [esp + 0x10]
lea ebx, [edi + ecx]
add ebx, 0xc
mov ecx, eax
and ecx, 3
mov dword [esp + 0x44], ecx
shr ecx, 1
mov dword [esp + 0x48], ebx
mov edi, edx
xchg esi, ebx
rep movsw word es:[edi], word [esi]
xchg esi, ebx
test al, 1
mov ebx, dword [ebp + 0x18]
je 0x43c722
mov ecx, eax
and ecx, 2
mov edi, dword [esp + 0x44]
xor edi, 1
or eax, 2
and eax, edi
mov edi, dword [esp + 0x48]
movzx ecx, byte [edi + ecx]
mov byte [edx + eax], cl
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 8]
mov dword [ebx], eax
push edx
call fcn.00436510
add esp, 4
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret