Function at 0x43c580
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 + 0x14], ecx
cmp dword [ecx + 4], 0
je 0x43c646
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
test ecx, ecx
je 0x43c646
mov dword [esp + 8], 0x5d5e5f50
mov word [esp + 0xc], 0
mov byte [esp + 0xe], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 6
ja 0x43c603
nop
nop
nop
mov eax, dword [esp + 4]
mov edx, dword [esp + 4]
movzx edx, byte [esp + edx + 8]
add eax, 0xc242a6a7
xor eax, edx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
add al, 8
mov edx, dword [esp + 4]
mov byte [esp + edx + 8], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 7
jb 0x43c5d0
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov eax, dword [esp + 8]
mov edi, dword [0x44ba98]
test edi, edi
je 0x43c6cc
xor esi, esi
mov edx, dword [0x44ba9c]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edx + esi*8], 0xc766965c
je 0x43c6ac
inc esi
cmp edi, esi
jne 0x43c630
mov esi, dword [ebp + 0x10]
jmp 0x43c6cc
mov dword [esp + 8], 0x632021de
mov word [esp + 0xc], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 5
ja 0x43c6a3
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 8]
add eax, 0xee911d5b
xor eax, ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
add al, 0x83
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 8], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 6
jb 0x43c670
mov eax, dword [esp + 8]
jmp 0x43c7f2
mov edx, dword [edx + esi*8 + 4]
cmp edx, eax
mov esi, dword [ebp + 0x10]
je 0x43c6cc
push dword [ebp + 8]
push ecx
push 2
push dword [0x44baa0]
push edx
call fcn.0043dc50
add esp, 0x14
cmp ebx, 1
mov ecx, esi
sbb ecx, 0
jl 0x43c7e1
cmp eax, 0xc000010a
jne 0x43c7e1
mov edi, esi
mov esi, ebx
and esi, 0xffffd8f0
mov eax, esi
xor eax, 0xffffd8f0
mov ecx, edi
not ecx
mov edx, ebx
and edx, 0x270f
imul ecx, edx
mul edx
mov dword [esp + 0x20], eax
add edx, ecx
mov ecx, edx
or ebx, 0xffffd8f0
imul edi, ebx
mov eax, ebx
mul esi
add edx, edi
sub edx, esi
add eax, dword [esp + 0x20]
adc edx, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
mov dword [esp + 8], 0x5d5e5f50
mov word [esp + 0xc], 0
mov byte [esp + 0xe], 0
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
cmp eax, 6
ja 0x43c793
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
movzx ecx, byte [esp + ecx + 8]
add eax, 0xc242a6a7
xor eax, ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add al, 8
mov ecx, dword [esp + 0x10]
mov byte [esp + ecx + 8], al
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, 7
jb 0x43c760
mov eax, dword [esp + 8]
mov esi, dword [0x44ba98]
test esi, esi
je 0x43c7e1
xor edi, edi
mov ecx, dword [0x44ba9c]
nop
nop
nop
nop
nop
nop
nop
cmp dword [ecx + edi*8], 0x7e28bda7
je 0x43c7c0
inc edi
cmp esi, edi
jne 0x43c7b0
jmp 0x43c7e1
mov ecx, dword [ecx + edi*8 + 4]
cmp ecx, eax
je 0x43c7e1
lea eax, [esp + 0x18]
push eax
push 0
push edx
push 3
push dword [0x44baa0]
push ecx
call fcn.0043dc50
add esp, 0x18
test eax, eax
js 0x43c7f2
mov ecx, dword [esp + 0x14]
mov esi, eax
call fcn.0043c4a0
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0xc