Function at 0x43bd10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x840
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
shld edx, eax, 2
shl eax, 2
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00403e60
test eax, eax
je 0x43bf05
lea edx, [esp + 0x440]
mov ebx, eax
mov ecx, 0x100
xor eax, eax
movdqu xmm1, xmmword [0x48a220]
mov edi, edx
movd xmm4, edx
movdqu xmm2, xmmword [0x48a230]
rep stosd dword es:[edi], eax
pshufd xmm3, xmm4, 0
lea eax, [esp + 0x40]
lea esi, [esi]
movdqa xmm0, xmm1
add eax, 0x10
paddd xmm1, xmm2
pslld xmm0, 2
paddd xmm0, xmm3
movups xmmword [eax - 0x10], xmm0
cmp eax, edx
jne 0x43bd78
mov edx, dword [esi + 0x10]
mov eax, 1
cmp eax, edx
mov eax, 0
sbb eax, dword [esi + 0x14]
jae 0x43c067
mov ecx, dword [esi + 0x28]
mov edi, ebx
lea eax, [ecx + 4]
lea ecx, [ecx + edx*4]
jmp 0x43bdcc
add eax, 4
mov dword [edi], edx
add edi, 4
cmp ecx, eax
je 0x43bde2
mov edx, dword [eax]
cmp dword [edx + 0x10], 0
jne 0x43bdc0
add eax, 4
mov dword [edx + 0xc], 0
cmp ecx, eax
jne 0x43bdcc
mov dword [esp + 0x34], edi
sub edi, ebx
mov eax, edi
mov dword [esp + 0xc], 0x43b6c0
sar eax, 2
mov dword [esp + 8], 4
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.msvcrt.dll_qsort
mov dword [esp + 0x14], sub.msvcrt.dll_free
mov dword [esp + 0x10], sub.msvcrt.dll_calloc
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x43b660
mov dword [esp + 4], 0
mov dword [esp], edi
call fcn.00472970
mov dword [esp + 0x28], eax
test eax, eax
je 0x43c0c7
mov edi, dword [esp + 0x34]
cmp ebx, edi
jae 0x43bef1
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x24], ebx
mov dword [ebp + 8], esi
lea esi, [esi]
mov eax, dword [esp + 0x3c]
mov edx, dword [eax]
mov edi, dword [edx + 0xc]
mov esi, dword [edx + 4]
cmp edi, 4
jbe 0x43bfc8
lea ebx, [esi + edi - 1]
xor eax, eax
lea edi, [ebx - 4]
movzx esi, byte [ebx - 1]
sub ebx, 1
mov ecx, esi
shl ecx, 0x11
add ecx, esi
add eax, ecx
mov ecx, eax
shr ecx, 2
xor eax, ecx
cmp edi, ebx
jne 0x43be7e
mov dword [esp + 8], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0xc], 1
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [esp + 0x38], edx
call fcn.00472d20
test eax, eax
je 0x43beea
mov ecx, dword [eax]
mov edx, dword [esp + 0x38]
test ecx, ecx
je 0x43c058
mov dword [edx + 0x18], ecx
mov dword [edx + 0xc], 0
add dword [esp + 0x3c], 4
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x3c]
cmp eax, esi
jb 0x43be60
mov ebx, dword [esp + 0x24]
mov esi, dword [ebp + 8]
mov dword [esp], ebx
call sub.msvcrt.dll_free
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call fcn.00472b50
mov edx, dword [esi + 0x10]
mov eax, 1
cmp eax, edx
mov eax, 0
sbb eax, dword [esi + 0x14]
jae 0x43c0d4
mov eax, dword [esi + 0x28]
xor ecx, ecx
mov dword [ebp + 8], esi
mov esi, ecx
lea ebx, [eax + 4]
lea edi, [eax + edx*4]
mov edx, 1
mov dword [esp + 0x3c], ebx
mov eax, ebx
mov ebx, edx
lea esi, [esi]
mov edx, dword [eax]
mov ecx, dword [edx + 0x10]
test ecx, ecx
je 0x43bf5b
mov ecx, dword [edx + 0xc]
test ecx, ecx
je 0x43bf5b
mov dword [edx + 0x18], ebx
add ebx, ecx
mov dword [edx + 0x1c], esi
adc esi, 0
add eax, 4
cmp edi, eax
jne 0x43bf40
mov edx, esi
mov esi, dword [ebp + 8]
mov eax, ebx
mov ebx, dword [esp + 0x3c]
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], edx
lea esi, cs:[esi]
mov esi, dword [ebx]
mov edx, dword [esi + 0x10]
test edx, edx
je 0x43bfb6
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x43bfb6
mov eax, dword [esi + 4]
mov edx, dword [esi + 0x18]
mov dword [esp], eax
mov dword [esp + 0x3c], edx
call sub.msvcrt.dll_strlen
mov edx, dword [esp + 0x3c]
not eax
add eax, dword [edx + 0xc]
mov ecx, eax
mov eax, dword [edx + 0x18]
mov edx, dword [edx + 0x1c]
add eax, ecx
adc edx, 0
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edx
add ebx, 4
cmp edi, ebx
jne 0x43bf78
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
movzx eax, byte [esi + edi - 2]
mov ebx, dword [esp + eax*4 + 0x440]
test ebx, ebx
je 0x43c023
lea ecx, [edi - 1]
mov dword [esp + 0x30], edx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x2c], eax
mov eax, ebx
mov ebx, edi
mov edi, eax
lea esi, [esi]
mov eax, dword [edi + 0xc]
cmp ebx, eax
jae 0x43c014
mov edx, dword [esp + 0x38]
sub eax, ebx
mov dword [esp + 4], esi
mov dword [esp + 8], edx
add eax, dword [edi + 4]
mov dword [esp], eax
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x43c040
mov edi, dword [edi + 0x18]
test edi, edi
jne 0x43bff0
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + eax*4 + 0x40]
mov dword [ecx], edx
lea ecx, [edx + 0x18]
mov dword [esp + eax*4 + 0x40], ecx
mov dword [edx + 0x18], 0
jmp 0x43bed5
mov edx, dword [esp + 0x30]
mov dword [edx + 0x18], edi
mov dword [edx + 0xc], 0
jmp 0x43bed5
mov dword [eax], edx
mov eax, dword [edx + 0xc]
mov ecx, dword [edx + 4]
movzx eax, byte [ecx + eax - 2]
jmp 0x43c023
mov dword [esp + 0xc], 0x43b6c0
mov dword [esp + 8], 4
mov dword [esp + 4], 0
mov dword [esp], ebx
call sub.msvcrt.dll_qsort
mov dword [esp + 0x14], sub.msvcrt.dll_free
mov dword [esp + 0x10], sub.msvcrt.dll_calloc
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x43b660
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.00472970
mov dword [esp + 0x28], eax
test eax, eax
jne 0x43bef1
mov dword [esp], ebx
call sub.msvcrt.dll_free
jmp 0x43bf05
mov dword [esi + 0x20], 1
mov dword [esi + 0x24], 0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret