Function at 0x100cfd80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x10415990]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x1c]
mov dword [ebp - 0x48], ecx
mov ecx, dword [ebp + 0x24]
mov dword [ebp - 0x50], edx
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x20]
lea edx, [ecx - 4]
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x54], eax
cmp edx, 0xc
ja 0x100d00a3
test cl, 1
jne 0x100d00a3
lea eax, [ebx - 7]
cmp eax, 6
ja 0x100d00a3
sub cl, 2
and cl, 0xfe
or cl, 0x10
mov al, 0xf
sub al, bl
add cl, cl
mov byte [ebp - 0x35], al
dec al
add cl, cl
or cl, al
push ebx
mov byte [ebp - 0x14], cl
lea ecx, [ebp - 0x13]
push edi
push ecx
mov byte [ebp - 0x36], al
call sub.MSVCR100.dll_memcpy
mov cl, byte [ebp - 0x35]
mov eax, dword [ebp + 0x10]
add esp, 0xc
test cl, cl
je 0x100cfe1a
lea edi, [ebp - 5]
movzx ecx, cl
mov byte [edi], al
dec edi
shr eax, 8
dec ecx
jne 0x100cfe11
test eax, eax
jne 0x100d00a3
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov edi, 0x10
mov dl, byte [ebp + eax - 0x14]
xor byte [ebp + eax - 0x24], dl
inc eax
dec edi
jne 0x100cfe33
mov edi, dword [ebp - 0x40]
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x24]
push ecx
push 0x10
mov edx, ecx
push edx
push edi
call fcn.100b7f80
add esp, 0x14
test eax, eax
jne 0x100d00a8
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, dword [esi]
mov dword [ebp - 0x12], eax
mov al, byte [esi + 0xc]
mov byte [ebp - 6], al
mov word [ebp - 0x14], 0xd00
mov dword [ebp - 0xe], ecx
mov dword [ebp - 0xa], edx
xor eax, eax
mov esi, 0x10
mov cl, byte [ebp + eax - 0x14]
xor byte [ebp + eax - 0x24], cl
inc eax
dec esi
jne 0x100cfe90
lea edx, [ebp - 0x44]
push edx
lea eax, [ebp - 0x24]
push eax
push 0x10
mov ecx, eax
push ecx
push edi
call fcn.100b7f80
add esp, 0x14
test eax, eax
jne 0x100d00a8
mov eax, dword [ebp - 0x3c]
mov dl, byte [ebp - 0x36]
push ebx
push eax
lea ecx, [ebp - 0x33]
push ecx
mov byte [ebp - 0x34], dl
call sub.MSVCR100.dll_memcpy
movzx esi, byte [ebp - 0x35]
push esi
lea edx, [ebp + ebx - 0x33]
push 0
push edx
mov dword [ebp - 0x4c], esi
call sub.MSVCR100.dll_memset
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp - 0x48]
mov edi, dword [ebp - 0x50]
add esp, 0x18
mov ecx, eax
mov byte [ebp - 0x25], 1
mov dword [ebp - 0x3c], ecx
test eax, eax
je 0x100d002f
jmp 0x100cff04
mov ecx, dword [ebp - 0x3c]
mov esi, 0x10
cmp ecx, 0x10
ja 0x100cff10
mov esi, ecx
cmp dword [ebp + 0xc], 0
jne 0x100cff6d
xor eax, eax
push esi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push ebx
push eax
call sub.MSVCR100.dll_memcpy
add esp, 0xc
xor eax, eax
mov ecx, 0x10
lea esp, [esp]
mov dl, byte [ebp + eax - 0x14]
xor byte [ebp + eax - 0x24], dl
inc eax
dec ecx
jne 0x100cff40
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x24]
push ecx
push 0x10
mov edx, ecx
push edx
push eax
call fcn.100b7f80
add esp, 0x14
test eax, eax
jne 0x100d00a8
lea ecx, [ebp - 0x44]
push ecx
mov ecx, dword [ebp - 0x40]
lea edx, [ebp - 0x14]
push edx
push 0x10
lea eax, [ebp - 0x34]
push eax
push ecx
call fcn.100b7f80
add esp, 0x14
test eax, eax
jne 0x100d00a8
xor cl, cl
test esi, esi
je 0x100cffa8
mov dl, byte [eax + ebx]
xor dl, byte [ebp + eax - 0x14]
inc cl
mov byte [eax + edi], dl
movzx eax, cl
cmp eax, esi
jb 0x100cff95
cmp dword [ebp + 0xc], 1
jne 0x100cfffe
xor eax, eax
push esi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push edi
push eax
call sub.MSVCR100.dll_memcpy
add esp, 0xc
xor eax, eax
mov ecx, 0x10
mov dl, byte [ebp + eax - 0x14]
xor byte [ebp + eax - 0x24], dl
inc eax
dec ecx
jne 0x100cffd1
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x24]
push ecx
push 0x10
mov edx, ecx
push edx
push eax
call fcn.100b7f80
add esp, 0x14
test eax, eax
jne 0x100d00a8
mov dl, byte [ebp - 0x35]
sub dword [ebp - 0x3c], esi
add edi, esi
add ebx, esi
xor al, al
test dl, dl
je 0x100d0022
mov edi, edi
movzx esi, al
lea ecx, [ebp - 0x25]
sub ecx, esi
inc byte [ecx]
jne 0x100d0022
inc al
cmp al, dl
jb 0x100d0010
cmp dword [ebp - 0x3c], 0
ja 0x100cff01
mov esi, dword [ebp - 0x4c]
cmp byte [ebp - 0x35], 0
jbe 0x100d0047
lea eax, [ebp - 0x25]
mov ecx, esi
lea ebx, [ebx]
mov byte [eax], 0
dec eax
dec ecx
jne 0x100d0040
lea ecx, [ebp - 0x44]
push ecx
mov ecx, dword [ebp - 0x40]
lea edx, [ebp - 0x14]
push edx
push 0x10
lea eax, [ebp - 0x34]
push eax
push ecx
call fcn.100b7f80
add esp, 0x14
test eax, eax
jne 0x100d00a8
mov ecx, 0x10
lea ebx, [ebx]
mov dl, byte [ebp + eax - 0x14]
xor byte [ebp + eax - 0x24], dl
inc eax
dec ecx
jne 0x100d0070
mov eax, dword [ebp + 0x24]
mov edx, dword [ebp - 0x54]
push eax
lea ecx, [ebp - 0x24]
push ecx
push edx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1015eea7
mov esp, ebp
pop ebp
ret
mov eax, 0xfffffff3
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1015eea7
mov esp, ebp
pop ebp
ret