Function at 0x43b670
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x88
mov eax, dword [esp + 0x90]
push ebp
mov ebp, dword [esp + 0x90]
push esi
push edi
lea edi, [eax + 7]
shr edi, 3
and eax, 7
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], eax
jne 0x43b6a2
mov dword [esp + 0x1c], 8
xor ecx, ecx
xor eax, eax
xor esi, esi
lea edx, [edi - 1]
test edx, edx
push ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], esi
jbe 0x43b830
mov ebx, dword [ebp]
mov edx, dword [ebp + 4]
xor ebx, eax
xor edx, ecx
test esi, esi
mov dword [ebp], ebx
mov dword [ebp + 4], edx
jne 0x43b800
cmp edi, 2
mov esi, dword [esp + 0xa4]
mov ebx, ebp
jbe 0x43b7f3
lea edi, [esp + 0x28]
call fcn.0043b5f0
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x30], eax
mov edx, 1
mov ebx, dword [esp + edx*4 + 0x2c]
lea ecx, [edi + ebx]
mov dword [esp + edx*4 + 0x30], ecx
and ebx, 0x1f
mov ecx, 0x20
sub ecx, ebx
mov esi, eax
shl esi, cl
mov ecx, eax
mov dword [esp + 0x10], ecx
mov ecx, ebx
mov ebx, eax
shr ebx, cl
or esi, ebx
xor dword [esp + 0x34], esi
mov ebx, dword [esp + edx*4 + 0x30]
lea ecx, [ebx + edi]
mov dword [esp + edx*4 + 0x34], ecx
and ebx, 0x1f
mov ecx, 0x20
sub ecx, ebx
mov esi, eax
shl esi, cl
mov ecx, eax
mov dword [esp + 0x10], ecx
mov ecx, ebx
mov ebx, eax
shr ebx, cl
or esi, ebx
xor dword [esp + 0x34], esi
mov ebx, dword [esp + edx*4 + 0x34]
lea ecx, [ebx + edi]
mov dword [esp + edx*4 + 0x38], ecx
and ebx, 0x1f
mov ecx, 0x20
sub ecx, ebx
mov esi, eax
shl esi, cl
mov ecx, eax
mov dword [esp + 0x10], ecx
mov ecx, ebx
mov ebx, eax
shr ebx, cl
or esi, ebx
xor dword [esp + 0x34], esi
mov ebx, dword [esp + edx*4 + 0x38]
lea ecx, [ebx + edi]
mov dword [esp + edx*4 + 0x3c], ecx
and ebx, 0x1f
mov ecx, 0x20
sub ecx, ebx
mov esi, eax
shl esi, cl
mov ecx, eax
mov dword [esp + 0x10], ecx
mov ecx, ebx
mov ebx, eax
shr ebx, cl
or esi, ebx
xor dword [esp + 0x34], esi
mov ebx, dword [esp + edx*4 + 0x3c]
lea ecx, [ebx + edi]
mov dword [esp + edx*4 + 0x40], ecx
and ebx, 0x1f
mov ecx, 0x20
sub ecx, ebx
mov esi, eax
shl esi, cl
mov ecx, eax
mov dword [esp + 0x10], ecx
mov ecx, ebx
mov ebx, eax
shr ebx, cl
or esi, ebx
mov ebx, dword [esp + 0x34]
xor ebx, esi
add edx, 5
cmp edx, 0x1a
mov dword [esp + 0x34], ebx
jb 0x43b704
mov edi, dword [esp + 0x1c]
jmp 0x43b80b
xor edi, edi
call fcn.0043b5f0
mov edi, dword [esp + 0x1c]
jmp 0x43b80b
lea ecx, [esp + 0x30]
mov eax, ebp
call fcn.00439390
mov eax, dword [ebp]
mov ecx, dword [ebp + 4]
mov esi, dword [esp + 0x24]
add ebp, 8
inc esi
lea edx, [edi - 1]
cmp esi, edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], esi
jb 0x43b6c0
mov edx, dword [esp + 0x20]
xor ecx, ecx
test edx, edx
jbe 0x43b850
mov esi, ebp
lea eax, [esp + 0x14]
sub esi, eax
lea eax, [esp + ecx + 0x14]
mov bl, byte [eax + esi]
xor byte [eax], bl
inc ecx
cmp ecx, edx
jb 0x43b842
cmp edi, 2
jbe 0x43b864
lea ecx, [esp + 0x30]
lea eax, [esp + 0x14]
call fcn.00439390
jmp 0x43b88d
cmp edi, 1
jne 0x43b877
mov ecx, dword [ebp]
mov edx, dword [ebp + 4]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov esi, dword [esp + 0xa4]
xor edi, edi
lea ebx, [esp + 0x14]
call fcn.0043b5f0
mov edi, dword [esp + 0x1c]
cmp edi, 1
pop ebx
jbe 0x43b8ba
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jbe 0x43b8a2
lea esi, [ebp - 8]
mov edi, ebp
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
pop ebp
add esp, 0x88
ret
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
pop edi
pop esi
mov dword [ebp], edx
mov dword [ebp + 4], eax
pop ebp
add esp, 0x88
ret