Function at 0x101101a0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x20
call fcn.10057f70
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x34]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x48]
mov ecx, eax
cmp edi, 1
mov edi, dword [esp + 0x38]
mov dword [esp + 0x3c], ecx
mov esi, edx
jne 0x101102f3
cmp eax, 0x10
mov ebx, dword [esp + 0x34]
jb 0x10110284
shr eax, 4
mov dword [esp + 0x10], eax
mov edx, esi
sub edx, ebx
mov dword [esp + 0x14], edx
mov edx, edi
sub edx, ebx
lea ebp, [esi + 3]
sub esi, edi
lea ecx, [edi + 1]
mov eax, ebx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x48], 4
lea esp, [esp]
mov edx, dword [esp + 0x14]
mov dl, byte [edx + eax]
xor dl, byte [eax]
mov esi, dword [esp + 0x18]
mov byte [esi + eax], dl
mov edx, dword [esp + 0x1c]
mov dl, byte [edx + ecx]
xor dl, byte [eax + 1]
add eax, 4
mov byte [ecx], dl
mov dl, byte [eax - 2]
xor dl, byte [ebp - 1]
add ecx, 4
mov byte [ecx - 3], dl
mov dl, byte [eax - 1]
xor dl, byte [ebp]
add ebp, 4
mov byte [ecx - 2], dl
dec dword [esp + 0x48]
jne 0x10110210
mov eax, dword [esp + 0x40]
push eax
push edi
push edi
call fcn.10037cf0
mov ebp, dword [esp + 0x48]
mov eax, dword [esp + 0x1c]
mov esi, edi
sub ebp, 0x10
add esp, 0xc
add ebx, 0x10
add edi, 0x10
dec eax
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x10], eax
jne 0x101101e3
mov edx, dword [esp + 0x44]
mov ecx, ebp
test ecx, ecx
je 0x101102d5
jbe 0x101102a6
mov ebp, esi
mov eax, edi
sub ebp, ebx
sub eax, ebx
mov dword [esp + 0x3c], ecx
mov dl, byte [ebx + ebp]
xor dl, byte [ebx]
inc ebx
mov byte [ebx + eax - 1], dl
dec dword [esp + 0x3c]
jne 0x10110296
cmp ecx, 0x10
jae 0x101102c0
mov eax, 0x10
sub esi, edi
lea edx, [ecx + edi]
sub eax, ecx
mov cl, byte [esi + edx]
mov byte [edx], cl
inc edx
dec eax
jne 0x101102b7
mov edx, dword [esp + 0x40]
push edx
push edi
push edi
call fcn.10037cf0
mov edx, dword [esp + 0x50]
add esp, 0xc
mov esi, edi
mov eax, dword [esi]
mov dword [edx], eax
mov ecx, dword [esi + 4]
mov dword [edx + 4], ecx
mov eax, dword [esi + 8]
pop edi
mov dword [edx + 8], eax
mov ecx, dword [esi + 0xc]
pop esi
pop ebp
mov dword [edx + 0xc], ecx
pop ebx
add esp, 0x20
ret
mov ebp, dword [esp + 0x34]
cmp ebp, edi
je 0x101103d5
cmp eax, 0x10
jb 0x10110373
shr eax, 4
mov dword [esp + 0x48], eax
jmp 0x10110310
mov edx, dword [esp + 0x40]
push edx
push edi
push ebp
call fcn.10038270
add esp, 0xc
lea ecx, [esi + 2]
mov eax, edi
sub esi, edi
mov edx, 4
jmp 0x10110330
mov bl, byte [esi + eax]
xor byte [eax], bl
mov bl, byte [ecx - 1]
xor byte [eax + 1], bl
mov bl, byte [ecx]
xor byte [eax + 2], bl
mov bl, byte [ecx + 1]
xor byte [eax + 3], bl
add eax, 4
add ecx, 4
dec edx
jne 0x10110330
mov ebx, dword [esp + 0x3c]
mov eax, dword [esp + 0x48]
mov esi, ebp
sub ebx, 0x10
add ebp, 0x10
add edi, 0x10
dec eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x48], eax
jne 0x10110310
mov edx, dword [esp + 0x44]
mov ecx, ebx
test ecx, ecx
je 0x101103b7
mov eax, dword [esp + 0x40]
push eax
lea ecx, [esp + 0x24]
push ecx
push ebp
call fcn.10038270
mov edx, dword [esp + 0x48]
add esp, 0xc
xor ecx, ecx
test edx, edx
jbe 0x101103b1
lea eax, [esp + 0x20]
sub esi, eax
sub edi, eax
lea esp, [esp]
lea eax, [esp + ecx + 0x20]
mov bl, byte [eax + esi]
xor bl, byte [eax]
inc ecx
cmp ecx, edx
mov byte [eax + edi], bl
jb 0x101103a0
mov edx, dword [esp + 0x44]
mov esi, ebp
mov ecx, dword [esi]
mov dword [edx], ecx
mov eax, dword [esi + 4]
mov dword [edx + 4], eax
mov ecx, dword [esi + 8]
pop edi
mov dword [edx + 8], ecx
mov eax, dword [esi + 0xc]
pop esi
pop ebp
mov dword [edx + 0xc], eax
pop ebx
add esp, 0x20
ret
cmp eax, 0x10
jb 0x10110483
mov esi, edx
sub esi, edi
lea ecx, [edx + 2]
shr eax, 4
mov dword [esp + 0x48], ecx
mov ebx, eax
mov edi, edi
mov edx, ebp
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [esp + 0x20], eax
mov eax, dword [edx + 8]
mov dword [esp + 0x24], ecx
mov ecx, dword [edx + 0xc]
mov edx, dword [esp + 0x40]
push edx
push edi
push ebp
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
call fcn.10038270
mov ecx, dword [esp + 0x54]
mov eax, edi
add esp, 0xc
mov edi, 4
mov dl, byte [esi + eax]
xor byte [eax], dl
mov dl, byte [ecx - 1]
xor byte [eax + 1], dl
mov dl, byte [ecx]
xor byte [eax + 2], dl
mov dl, byte [ecx + 1]
xor byte [eax + 3], dl
add eax, 4
add ecx, 4
dec edi
jne 0x10110427
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x44]
mov edi, dword [esp + 0x3c]
mov dword [ecx], edx
mov edx, dword [esp + 0x24]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x28]
sub edi, 0x10
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x2c]
add ebp, 0x10
sub esi, 0x10
dec ebx
mov dword [esp + 0x3c], edi
mov dword [ecx + 0xc], edx
mov edi, eax
jne 0x101103f0
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x10110514
mov ecx, dword [ebp + 4]
mov edx, dword [ebp + 8]
mov eax, dword [ebp]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x40]
push ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0xc]
lea edx, [esp + 0x24]
push edi
push edx
mov dword [esp + 0x38], eax
call fcn.10038270
mov edx, dword [esp + 0x48]
mov ebx, dword [esp + 0x50]
add esp, 0xc
test edx, edx
jbe 0x101104d9
mov esi, ebx
mov eax, edi
sub esi, edi
mov ebp, edx
mov edi, edi
mov cl, byte [eax + esi]
xor byte [eax], cl
inc eax
dec ebp
jne 0x101104d0
cmp edx, 0x10
jae 0x101104f9
add edi, edx
mov ecx, 0x10
sub ecx, edx
lea esi, [esp + edx + 0x20]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [ebx], eax
mov eax, dword [esp + 0x2c]
mov dword [ebx + 4], ecx
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret