Function at 0x130d8d40
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 0x18], 0
je 0x130c6e74
mov dword [esp + 0x18], fcn.130c7a00
jmp 0x130d8ba0
mov dword [esp + 0x18], fcn.130c87c0
jmp 0x130d8d40
mov eax, 0x14
call fcn.13020d10
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 0x130d8c1d
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 0x130d8be0
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 0x130d8bd0
mov eax, dword [esp + 0x38]
test ebx, ebx
je 0x130d8d1c
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 0x130d8c64
mov edx, dword [esp + 0x10]
cmp eax, ebx
jae 0x130d8cd2
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 0x130d8cc7
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 0x130d8cca
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 0x130d8ccf
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 0x130d8c60
jmp 0x130d8cee
inc eax
jmp 0x130d8cd2
add eax, 2
jmp 0x130d8cd2
add eax, 3
cmp eax, 0x10
jae 0x130d8cee
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 0x130d8ce3
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 0x130d8d18
sub ebx, 0x10
add esi, 0x10
add edi, 0x10
mov dword [esp + 0x30], ebx
test ebx, ebx
jne 0x130d8c25
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.13020d10
mov eax, dword [0x13147f14]
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 0x130d8de9
mov eax, esi
mov dword [esp + 0x18], eax
cmp ebx, 0x10
jb 0x130d8dd1
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 0x130d8d91
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 0x130d8e56
cmp ebx, 0x10
jb 0x130d8e56
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 0x130d8df7
test ebx, ebx
je 0x130d8fc0
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 0x130d8f76
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 0x130d8f6b
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 0x130d8f6e
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 0x130d8f73
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 0x130d8eb8
jmp 0x130d8f76
inc eax
jmp 0x130d8f76
add eax, 2
jmp 0x130d8f76
add eax, 3
mov edx, 0x10
cmp ebx, edx
jbe 0x130d8faa
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 0x130d8ea4
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.130222cb
add esp, 0x3c
ret
cmp eax, edx
jae 0x130d8fc0
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 0x130d8fb5
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.130222cb
add esp, 0x3c
ret