Function at 0x43d109
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0x34
pop eax
call fcn.004653a0
and dword [ebp - 0x1c], 0
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
cmp esi, edi
jne 0x43d13b
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
push dword [ebp + 8]
call fcn.0043cec0
add esp, 0x10
jmp 0x43d2e2
push ebx
push dword [ebp + 0x18]
call fcn.0040e49f
push dword [ebp + 0x18]
call fcn.0040e546
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
je 0x43d2d5
mov eax, dword [edi + 4]
mov ecx, dword [esi + 4]
lea esi, [eax + ecx + 4]
cmp esi, dword [ebx + 8]
jg 0x43d16b
mov eax, ebx
jmp 0x43d174
push esi
push ebx
call fcn.0040d781
pop ecx
pop ecx
test eax, eax
je 0x43d2d5
xor eax, eax
test esi, esi
mov dword [ebx + 4], esi
jle 0x43d190
mov ecx, dword [ebx]
and dword [ecx + eax*4], 0
inc eax
cmp eax, esi
jl 0x43d185
mov ecx, dword [edi + 4]
and dword [ebp - 8], 0
test ecx, ecx
jle 0x43d29d
jmp 0x43d1a4
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp - 8]
mov eax, dword [edi]
mov edx, esi
shl edx, 2
add eax, edx
mov edi, dword [eax]
inc esi
cmp esi, ecx
mov dword [ebp - 0x14], edi
jne 0x43d1c0
and dword [ebp - 0xc], 0
jmp 0x43d1c6
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
xor edi, edi
test eax, eax
mov dword [ebp - 4], edi
jle 0x43d28a
mov ecx, dword [ebp - 0xc]
xor ecx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x20], ecx
jmp 0x43d1ea
mov edi, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
lea ecx, [ecx + edi*4]
mov esi, dword [ecx]
inc edi
cmp edi, eax
jne 0x43d1fd
xor edi, edi
jmp 0x43d200
mov edi, dword [ecx + 4]
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
mov ecx, edi
call fcn.0043caf9
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
mov ecx, esi
call fcn.0043caf9
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
mov ecx, edi
xor ecx, esi
push eax
call fcn.0043caf9
mov eax, dword [ebp - 0x18]
xor eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x34]
xor ecx, dword [ebp - 0x18]
xor eax, dword [ebp - 0x2c]
xor ecx, dword [ebp - 0x24]
xor eax, dword [ebp - 0x30]
xor ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x10]
xor ecx, eax
add esp, 0x18
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], eax
xor ecx, ecx
mov eax, dword [ebx]
mov esi, dword [ebp + ecx*4 - 0x34]
add eax, edx
xor dword [eax], esi
inc ecx
add edx, 4
cmp ecx, 4
jl 0x43d260
mov eax, dword [ebp + 0xc]
add dword [ebp - 4], 2
mov eax, dword [eax + 4]
add dword [ebp - 0x10], 8
cmp dword [ebp - 4], eax
jl 0x43d1e7
mov eax, dword [ebp + 0x10]
add dword [ebp - 8], 2
mov ecx, dword [eax + 4]
cmp dword [ebp - 8], ecx
jl 0x43d1a1
mov eax, dword [ebx + 4]
test eax, eax
jle 0x43d2bb
mov ecx, dword [ebx]
lea ecx, [ecx + eax*4 - 4]
mov edx, dword [ecx]
sub ecx, 4
test edx, edx
jne 0x43d2b8
dec eax
test eax, eax
jg 0x43d2aa
mov dword [ebx + 4], eax
push dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
call fcn.0043ccf1
add esp, 0xc
test eax, eax
je 0x43d2d5
mov dword [ebp - 0x1c], 1
push dword [ebp + 0x18]
call fcn.0040e4e8
mov eax, dword [ebp - 0x1c]
pop ecx
pop ebx
pop edi
pop esi
leave
ret