Function at 0x43b360
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
push ebx
push ebp
mov eax, dword [esp + 0x30]
push esi
mov esi, dword [esp + 0x44]
mov ebp, dword [esp + 0x3c]
mov ebx, 1
mov ecx, esi
push edi
mov edi, dword [esp + 0x3c]
shl ebx, cl
push edi
push eax
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x38], ebx
call fcn.00428780
add esp, 8
test eax, eax
jne 0x43b39e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
cmp esi, 3
jg 0x43b409
xor eax, eax
test edi, edi
mov dword [esp + 0x48], eax
jle 0x43b59b
xor esi, esi
xor ecx, ecx
test ebx, ebx
jle 0x43b3e9
mov edx, ebp
mov edi, dword [esp + 0x44]
mov eax, ecx
xor eax, edi
lea edi, [eax - 1]
not eax
shr edi, 0x1f
shr eax, 0x1f
and edi, eax
neg edi
and edi, 1
neg edi
mov eax, dword [edx]
and edi, eax
or esi, edi
inc ecx
add edx, 4
cmp ecx, ebx
jl 0x43b3bb
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x38]
inc eax
mov dword [esp + 0x48], eax
lea ebp, [ebp + ebx*4]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x3c]
cmp eax, ecx
mov dword [edx + eax*4 - 4], esi
jl 0x43b3b1
jmp 0x43b59b
lea ecx, [esi - 2]
mov esi, dword [esp + 0x44]
mov edx, 1
mov eax, esi
shl edx, cl
sar eax, cl
lea ecx, [edx - 1]
and esi, ecx
mov ecx, eax
mov dword [esp + 0x44], esi
lea esi, [eax - 1]
not ecx
shr esi, 0x1f
shr ecx, 0x1f
and esi, ecx
mov ecx, eax
xor ecx, 1
neg esi
lea edi, [ecx - 1]
and esi, 1
not ecx
shr edi, 0x1f
shr ecx, 0x1f
and edi, ecx
mov ecx, eax
neg edi
and edi, 1
xor ecx, 2
neg edi
mov dword [esp + 0x2c], edi
lea edi, [ecx - 1]
not ecx
shr edi, 0x1f
shr ecx, 0x1f
xor eax, 3
and edi, ecx
neg edi
lea ecx, [eax - 1]
and edi, 1
not eax
shr ecx, 0x1f
shr eax, 0x1f
and ecx, eax
xor eax, eax
neg ecx
and ecx, 1
mov dword [esp + 0x48], eax
neg ecx
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x3c]
neg esi
neg edi
test ecx, ecx
mov dword [esp + 0x20], edi
jle 0x43b59b
xor ecx, ecx
mov dword [esp + 0x1c], 0
test edx, edx
jle 0x43b571
lea eax, [ebp + edx*4]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], eax
lea eax, [ebp + edx*8]
mov dword [esp + 0x10], eax
lea eax, [edx + edx*2]
lea eax, [ebp + eax*4]
mov dword [esp + 0x40], eax
jmp 0x43b4d8
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x44]
mov eax, ecx
xor eax, ebx
mov ebx, dword [esp + 0x18]
mov ebx, dword [ebx]
mov ebp, dword [esp + 0x10]
and ebx, esi
mov ebp, dword [ebp]
and ebp, edi
mov edi, dword [esp + 0x40]
or ebx, ebp
mov edi, dword [edi]
mov ebp, dword [esp + 0x28]
and edi, ebp
or ebx, edi
mov edi, dword [esp + 0x14]
mov edi, dword [edi]
mov ebp, dword [esp + 0x2c]
and edi, ebp
mov ebp, dword [esp + 0x1c]
or ebx, edi
lea edi, [eax - 1]
not eax
shr edi, 0x1f
shr eax, 0x1f
and edi, eax
mov eax, 4
neg edi
and edi, 1
neg edi
and ebx, edi
mov edi, dword [esp + 0x40]
or ebp, ebx
mov ebx, dword [esp + 0x14]
add edi, eax
mov dword [esp + 0x1c], ebp
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x40], edi
mov edi, dword [esp + 0x18]
inc ecx
add ebp, eax
add ebx, eax
add edi, eax
cmp ecx, edx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edi
jl 0x43b4d4
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 0x48]
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x38]
mov ebp, dword [esp + 0x1c]
inc eax
mov ecx, dword [ecx]
mov dword [esp + 0x48], eax
mov dword [ecx + eax*4 - 4], ebp
mov ecx, dword [esp + 0x24]
lea ebp, [ecx + ebx*4]
mov ecx, dword [esp + 0x3c]
cmp eax, ecx
mov dword [esp + 0x24], ebp
jl 0x43b4a1
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
pop edi
pop esi
mov dword [eax + 4], edx
pop ebp
mov eax, 1
pop ebx
add esp, 0x24
ret