Function at 0x101bc4a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov edi, dword [esi + 0x348]
mov dword [ebp - 0x2c], edi
lea eax, [edi + ecx]
cmp eax, 0x300
jb 0x101bc514
test edi, edi
je 0x101bc514
mov eax, dword [ebp - 0x2c]
mov edi, 0x300
sub edi, eax
add eax, 8
push edi
add eax, esi
push ebx
push eax
call fcn.101c6b90
mov edx, dword [ebp + 0x10]
xor eax, eax
mov dword [ebp - 0x2c], eax
add esp, 0xc
lea eax, [edi + ebx]
sub edx, edi
mov dword [ebp - 0x64], eax
lea ebx, [esi + 8]
mov eax, 0x300
mov dword [ebp - 0x60], edx
mov dword [ebp + 0x10], eax
jmp 0x101bc590
cmp ecx, 0x21
jae 0x101bc579
lea edx, [esi + 8]
add edx, edi
cmp ecx, 4
jne 0x101bc537
mov eax, dword [ebx]
mov dword [edx], eax
lea eax, [edi + 4]
pop edi
mov dword [esi + 0x348], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ecx, 8
jne 0x101bc556
mov eax, dword [ebx]
mov dword [edx], eax
mov eax, dword [ebx + 4]
mov dword [edx + 4], eax
lea eax, [edi + 8]
pop edi
mov dword [esi + 0x348], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test ecx, ecx
je 0x101bc9ba
mov dword [esi + 0x348], eax
sub edx, ebx
mov al, byte [ebx]
lea ebx, [ebx + 1]
mov byte [edx + ebx - 1], al
dec ecx
jne 0x101bc566
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
jne 0x101bc99f
cmp ecx, 0x7f
jbe 0x101bc99f
lea ebx, [ebx]
cmp dword [esi + 0x34c], 0
je 0x101bc644
mov eax, dword [esi + 0x308]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x30c]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x310]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x44], eax
mov eax, dword [esi + 0x314]
mov edi, dword [esi + 0x328]
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x40], eax
mov eax, dword [esi + 0x318]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x4c], eax
mov eax, dword [esi + 0x31c]
mov dword [ebp - 4], eax
mov dword [ebp - 0x48], eax
mov eax, dword [esi + 0x320]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x54], eax
mov eax, dword [esi + 0x324]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x50], eax
mov eax, dword [esi + 0x32c]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x330]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0x334]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x338]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0x33c]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x340]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x344]
jmp 0x101bc75b
mov dword [esi + 0x34c], 1
mov edi, dword [esi + 0x308]
mov ecx, edi
mov edx, dword [esi + 0x30c]
and edi, 0xaaaaaaaa
mov eax, edx
lea esi, [ebp - 0x6c]
push esi
and edx, 0xaaaaaaaa
lea esi, [ebp - 0x1c]
push esi
xor edx, 0x452821e6
and eax, 0x55555555
push edx
xor eax, 0x243f6a88
mov dword [ebp - 0x20], edx
xor edi, 0x38d01377
mov dword [ebp - 0x18], eax
and ecx, 0x55555555
push edi
xor ecx, 0x85a308d3
push eax
push ecx
mov dword [ebp - 0x1c], ecx
call fcn.101bbad0
mov eax, dword [ebp - 0x20]
add esp, 0x18
add edi, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x1c]
adc eax, dword [ebp - 0x68]
xor ecx, edi
mov edx, dword [ebp - 0x18]
mov esi, ecx
xor edx, eax
mov dword [ebp - 0x5c], ecx
xor esi, 0x3707344
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x44], esi
mov dword [ebp + 0xc], edx
xor dword [ebp + 0xc], 0x13198a2e
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x40], esi
mov esi, ecx
xor ecx, 0xec4e6c89
mov dword [ebp - 4], edx
xor dword [ebp - 4], 0xa4093822
xor esi, 0x299f31d0
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x54], ecx
mov ecx, edi
xor ecx, 0x34e90c6c
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x28], ecx
mov ecx, eax
xor ecx, 0xbe5466cf
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x10], ecx
xor edx, 0x82efa98
mov ecx, edi
mov dword [ebp - 0x30], esi
xor ecx, 0xc97c50dd
mov dword [ebp - 0x4c], esi
mov esi, dword [ebp - 4]
mov dword [ebp - 0x24], ecx
mov ecx, eax
xor ecx, 0xc0ac29b7
mov dword [ebp - 0x20], eax
mov dword [ebp - 8], ecx
mov ecx, edi
xor ecx, 0xb5470917
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x3c], edx
xor eax, 0x3f84d5b5
mov dword [ebp - 0x50], edx
mov dword [ebp - 0xc], ecx
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebx + 0x20]
push eax
call fcn.101bbac0
add esp, 4
xor edx, esi
xor eax, edi
push edx
push eax
push ebx
call fcn.101bbac0
xor edx, dword [ebp - 0x58]
add esp, 4
xor eax, dword [ebp - 0x5c]
push edx
push eax
call fcn.101bbad0
add esp, 0x18
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebx + 0x28]
push eax
call fcn.101bbac0
xor edx, dword [ebp - 0x10]
add esp, 4
xor eax, dword [ebp - 0x28]
push edx
push eax
lea eax, [ebx + 8]
push eax
call fcn.101bbac0
xor edx, dword [ebp + 0xc]
add esp, 4
xor eax, dword [ebp - 0x38]
push edx
push eax
call fcn.101bbad0
add esp, 0x18
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebx + 0x30]
push eax
call fcn.101bbac0
xor edx, dword [ebp - 8]
add esp, 4
xor eax, dword [ebp - 0x24]
push edx
push eax
lea eax, [ebx + 0x10]
push eax
call fcn.101bbac0
xor edx, dword [ebp - 4]
add esp, 4
xor eax, dword [ebp - 0x30]
push edx
push eax
call fcn.101bbad0
add esp, 0x18
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebx + 0x38]
push eax
call fcn.101bbac0
xor edx, dword [ebp - 0x14]
add esp, 4
xor eax, dword [ebp - 0xc]
push edx
push eax
lea eax, [ebx + 0x18]
push eax
call fcn.101bbac0
add esp, 4
xor edx, dword [ebp - 0x3c]
xor eax, dword [ebp - 0x34]
push edx
push eax
call fcn.101bbad0
mov ecx, dword [ebp + 0x10]
add esp, 0x18
mov edx, dword [ebp - 0x28]
sub ecx, 0x40
mov eax, dword [ebp - 0x10]
add ebx, 0x40
add edi, dword [ebp - 0x74]
mov dword [ebp + 0x10], ecx
adc esi, dword [ebp - 0x70]
add edx, dword [ebp - 0x6c]
mov dword [ebp - 0x28], edx
adc eax, dword [ebp - 0x68]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x7c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 8]
adc eax, dword [ebp - 0x78]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x84]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x14]
adc eax, dword [ebp - 0x80]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x44]
xor eax, edi
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x40]
xor eax, esi
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x4c]
xor eax, edx
mov edx, dword [ebp - 0x18]
xor edx, dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x48]
xor eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x54]
xor eax, dword [ebp - 0x24]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x50]
xor eax, dword [ebp - 8]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x1c]
xor eax, dword [ebp - 0xc]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x18], edx
cmp ecx, 0x3f
ja 0x101bc761
mov dword [ebp - 0x20], esi
mov esi, dword [ebp + 8]
mov dword [esi + 0x308], eax
mov eax, dword [ebp - 0x38]
mov dword [esi + 0x310], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x314], eax
mov eax, dword [ebp - 0x30]
mov dword [esi + 0x318], eax
mov eax, dword [ebp - 4]
mov dword [esi + 0x31c], eax
mov eax, dword [ebp - 0x34]
mov dword [esi + 0x320], eax
mov eax, dword [ebp - 0x3c]
mov dword [esi + 0x324], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x32c], eax
mov eax, dword [ebp - 0x28]
mov dword [esi + 0x330], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x334], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 0x338], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x33c], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x340], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x344], eax
mov eax, dword [ebp - 0x60]
mov dword [esi + 0x30c], edx
mov dword [esi + 0x328], edi
test eax, eax
je 0x101bc9c1
mov ebx, dword [ebp - 0x64]
mov ecx, eax
mov dword [ebp + 0x10], ecx
mov dword [ebp - 0x60], 0
cmp ecx, 0x7f
ja 0x101bc590
mov edi, dword [ebp - 0x2c]
push ecx
lea eax, [esi + 8]
add eax, edi
push ebx
push eax
call fcn.101c6b90
mov eax, dword [ebp + 0x10]
add esp, 0xc
add eax, edi
mov dword [esi + 0x348], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test ecx, ecx
jne 0x101bc99c
mov al, byte [ebx - 1]
mov byte [esi + 7], al
pop edi
mov dword [esi + 0x348], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret