Function at 0x130d9de0
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 0x18], 0
je 0x130d9df4
mov dword [esp + 0x18], fcn.130da980
jmp 0x130ebb60
mov dword [esp + 0x18], fcn.130db740
jmp 0x130ebd00
mov eax, 0x14
call fcn.13031f00
mov eax, dword [esp + 0x28]
push ebx
mov ebx, dword [esp + 0x24]
push ebp
push esi
mov esi, dword [esp + 0x24]
push edi
mov edi, dword [esp + 0x2c]
mov ebp, eax
cmp ebx, 0x10
jb 0x130ebbdd
shr ebx, 4
mov dword [esp + 0x10], ebx
lea esp, [esp]
mov ecx, edi
sub ebp, esi
mov eax, esi
sub ecx, esi
mov edx, 4
lea ecx, [ecx]
mov ebx, dword [eax + ebp]
xor ebx, dword [eax]
add eax, 4
sub edx, 1
mov dword [ecx + eax - 4], ebx
jne 0x130ebba0
mov eax, dword [esp + 0x34]
push eax
push edi
push edi
call dword [esp + 0x48]
mov ebx, dword [esp + 0x3c]
mov ebp, edi
sub ebx, 0x10
add esp, 0xc
add esi, 0x10
add edi, 0x10
sub dword [esp + 0x10], 1
mov dword [esp + 0x30], ebx
jne 0x130ebb90
mov eax, dword [esp + 0x38]
test ebx, ebx
je 0x130ebcdc
mov ecx, edi
sub ecx, esi
mov dword [esp + 0x14], ecx
mov ecx, 1
sub ecx, esi
mov dword [esp + 0x18], ecx
mov ecx, 2
sub ecx, esi
mov dword [esp + 0x1c], ecx
mov edx, ebp
sub edx, esi
mov ecx, 3
xor eax, eax
sub ecx, esi
mov dword [esp + 0x10], edx
mov dword [esp + 0x20], ecx
jmp 0x130ebc24
mov edx, dword [esp + 0x10]
cmp eax, ebx
jae 0x130ebc92
mov ebx, dword [esp + 0x14]
lea ecx, [eax + esi]
mov dl, byte [edx + ecx]
xor dl, byte [ecx]
mov byte [ebx + ecx], dl
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x30]
add edx, ecx
cmp edx, ebx
jae 0x130ebc87
mov dl, byte [eax + ebp + 1]
xor dl, byte [eax + esi + 1]
mov byte [eax + edi + 1], dl
mov edx, dword [esp + 0x1c]
add edx, ecx
cmp edx, ebx
jae 0x130ebc8a
mov dl, byte [eax + esi + 2]
xor dl, byte [eax + ebp + 2]
mov byte [eax + edi + 2], dl
mov edx, dword [esp + 0x20]
add edx, ecx
cmp edx, ebx
jae 0x130ebc8f
mov cl, byte [eax + ebp + 3]
xor cl, byte [eax + esi + 3]
add eax, 4
mov byte [eax + edi - 1], cl
cmp eax, 0x10
jb 0x130ebc20
jmp 0x130ebcae
inc eax
jmp 0x130ebc92
add eax, 2
jmp 0x130ebc92
add eax, 3
cmp eax, 0x10
jae 0x130ebcae
mov edx, 0x10
sub ebp, edi
lea ecx, [eax + edi]
sub edx, eax
mov al, byte [ecx + ebp]
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x130ebca3
mov ecx, dword [esp + 0x34]
push ecx
push edi
push edi
call dword [esp + 0x48]
add esp, 0xc
mov ebp, edi
cmp ebx, 0x10
jbe 0x130ebcd8
sub ebx, 0x10
add esi, 0x10
add edi, 0x10
mov dword [esp + 0x30], ebx
test ebx, ebx
jne 0x130ebbe5
mov eax, dword [esp + 0x38]
mov edx, dword [ebp]
mov dword [eax], edx
mov ecx, dword [ebp + 4]
mov dword [eax + 4], ecx
mov edx, dword [ebp + 8]
pop edi
mov dword [eax + 8], edx
mov ecx, dword [ebp + 0xc]
pop esi
pop ebp
mov dword [eax + 0xc], ecx
pop ebx
add esp, 0x14
ret
mov eax, 0x3c
call fcn.13031f00
mov eax, dword [0x1315d264]
xor eax, esp
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x54]
push ebx
mov ebx, dword [esp + 0x4c]
push ebp
mov ebp, dword [esp + 0x48]
push esi
mov esi, dword [esp + 0x5c]
push edi
mov edi, dword [esp + 0x54]
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], ecx
cmp ebp, edi
je 0x130ebda9
mov eax, esi
mov dword [esp + 0x18], eax
cmp ebx, 0x10
jb 0x130ebd91
mov eax, ebx
shr eax, 4
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x24]
push edx
push edi
push ebp
call dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
xor dword [edi], ecx
mov edx, dword [eax + 4]
xor dword [edi + 4], edx
mov ecx, dword [eax + 8]
xor dword [edi + 8], ecx
mov edx, dword [eax + 0xc]
xor dword [edi + 0xc], edx
mov dword [esp + 0x24], ebp
add esp, 0xc
sub ebx, 0x10
add ebp, 0x10
add edi, 0x10
sub dword [esp + 0x14], 1
jne 0x130ebd51
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov dword [esi], ecx
mov edx, dword [eax + 4]
mov dword [esi + 4], edx
mov ecx, dword [eax + 8]
mov dword [esi + 8], ecx
mov edx, dword [eax + 0xc]
mov dword [esi + 0xc], edx
jmp 0x130ebe16
cmp ebx, 0x10
jb 0x130ebe16
mov eax, ebx
shr eax, 4
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x3c]
push ecx
push ebp
call dword [esp + 0x28]
mov eax, dword [ebp]
mov edx, dword [esi]
xor edx, dword [esp + 0x44]
add esp, 0xc
mov dword [edi], edx
mov ecx, dword [esi + 4]
xor ecx, dword [esp + 0x3c]
mov dword [esi], eax
mov eax, dword [ebp + 4]
mov dword [edi + 4], ecx
mov edx, dword [esi + 8]
xor edx, dword [esp + 0x40]
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [edi + 8], edx
mov ecx, dword [esi + 0xc]
xor ecx, dword [esp + 0x44]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 0xc], ecx
sub ebx, 0x10
add ebp, 0x10
add edi, 0x10
sub dword [esp + 0x14], 1
mov dword [esi + 0xc], eax
jne 0x130ebdb7
test ebx, ebx
je 0x130ebf80
lea edx, [esp + 0x38]
mov eax, esi
sub eax, edx
mov dword [esp + 0x28], eax
mov ecx, edx
mov eax, 1
sub eax, ecx
mov dword [esp + 0x34], eax
mov eax, 2
sub eax, edx
mov dword [esp + 0x2c], eax
mov eax, 3
sub eax, ecx
mov dword [esp + 0x30], eax
mov eax, ecx
lea edx, [edi + 2]
sub edi, eax
mov eax, ebp
sub eax, ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x24]
push edx
lea eax, [esp + 0x3c]
push eax
push ebp
call dword [esp + 0x28]
add esp, 0xc
xor eax, eax
cmp eax, ebx
jae 0x130ebf36
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x28]
lea ecx, [esp + eax + 0x38]
movzx edx, byte [ecx + edx]
mov byte [esp + 0x13], dl
movzx edx, byte [ecx]
xor dl, byte [ecx + edi]
mov edi, dword [esp + 0x14]
mov byte [ecx + edi], dl
movzx edx, byte [esp + 0x13]
mov edi, dword [esp + 0x28]
mov byte [ecx + edi], dl
mov edx, dword [esp + 0x34]
add edx, ecx
cmp edx, ebx
jae 0x130ebf2b
movzx edx, byte [eax + ebp + 1]
mov edi, dword [esp + 0x18]
mov byte [esp + 0x13], dl
movzx edx, byte [ecx + 1]
xor dl, byte [esi + eax + 1]
mov byte [edi + eax - 1], dl
movzx edx, byte [esp + 0x13]
mov byte [esi + eax + 1], dl
mov edx, dword [esp + 0x2c]
add edx, ecx
cmp edx, ebx
jae 0x130ebf2e
movzx edx, byte [eax + ebp + 2]
mov byte [esp + 0x13], dl
movzx edx, byte [ecx + 2]
xor dl, byte [esi + eax + 2]
mov byte [edi + eax], dl
movzx edx, byte [esp + 0x13]
mov byte [esi + eax + 2], dl
mov edx, dword [esp + 0x30]
add edx, ecx
cmp edx, ebx
jae 0x130ebf33
mov cl, byte [ecx + 3]
xor cl, byte [esi + eax + 3]
mov dl, byte [eax + ebp + 3]
mov byte [edi + eax + 1], cl
mov byte [esi + eax + 3], dl
add eax, 4
cmp eax, 0x10
jb 0x130ebe78
jmp 0x130ebf36
inc eax
jmp 0x130ebf36
add eax, 2
jmp 0x130ebf36
add eax, 3
mov edx, 0x10
cmp ebx, edx
jbe 0x130ebf6a
add dword [esp + 0x20], edx
add dword [esp + 0x14], edx
add dword [esp + 0x18], edx
sub ebx, edx
add ebp, edx
test ebx, ebx
jne 0x130ebe64
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.1303468b
add esp, 0x3c
ret
cmp eax, edx
jae 0x130ebf80
sub ebp, esi
lea ecx, [esi + eax]
sub edx, eax
mov al, byte [ecx + ebp]
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x130ebf75
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1303468b
add esp, 0x3c
ret