Function at 0x10019c70
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x20
test ecx, ecx
jne 0x10019c81
xor eax, eax
add esp, 0x20
ret
push ebx
push ebp
mov ebp, dword [esp + 0x34]
push esi
push edi
mov edi, dword [esp + 0x34]
cmp ebp, 0x17
not edi
jb 0x10019ea6
test ebp, ebp
je 0x10019cc0
test cl, 3
je 0x10019cc0
mov eax, edi
xor edx, edx
mov dl, byte [ecx]
and eax, 0xff
xor eax, edx
dec ebp
shr edi, 8
mov eax, dword [eax*4 + 0x1001bf78]
xor edi, eax
inc ecx
test ebp, ebp
jne 0x10019c9c
mov eax, 0xcccccccd
xor ebx, ebx
mul ebp
shr edx, 4
mov eax, edx
mov esi, ecx
neg eax
shl eax, 2
sub eax, edx
lea ebp, [ebp + eax*4]
xor eax, eax
dec edx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x10], eax
je 0x10019e52
mov dword [esp + 0x1c], edx
mov ebp, dword [esi + 4]
mov edx, dword [esi]
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0xc]
xor ebp, ebx
mov ebx, dword [esp + 0x38]
xor edx, edi
mov edi, dword [esp + 0x34]
xor ecx, ebx
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x28], ecx
xor eax, edi
mov edi, dword [esi + 0x10]
and ecx, 0xff
xor edi, ebx
mov dword [esp + 0x2c], eax
mov ecx, dword [ecx*4 + 0x1001c778]
mov dword [esp + 0x18], edi
mov edi, edx
mov ebx, ebp
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x18]
and eax, 0xff
add esi, 0x14
and edi, 0xff
and ebx, 0xff
mov eax, dword [eax*4 + 0x1001c778]
and ecx, 0xff
mov edi, dword [edi*4 + 0x1001c778]
mov ebx, dword [ebx*4 + 0x1001c778]
mov dword [esp + 0x34], eax
mov eax, dword [ecx*4 + 0x1001c778]
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x14], 1
mov eax, pe_nt_image_headers32
jmp 0x10019d9e
mov edx, dword [esp + 0x20]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
shl ecx, 3
shr edx, cl
shr ebp, cl
and edx, 0xff
and ebp, 0xff
add edx, eax
add ebp, eax
xor edi, dword [edx*4 + 0x1001c778]
mov edx, dword [ebp*4 + 0x1001c778]
mov ebp, dword [esp + 0x38]
xor ebx, edx
mov edx, dword [esp + 0x28]
shr edx, cl
and edx, 0xff
add edx, eax
mov edx, dword [edx*4 + 0x1001c778]
xor ebp, edx
mov edx, dword [esp + 0x2c]
shr edx, cl
mov dword [esp + 0x38], ebp
mov ebp, dword [esp + 0x34]
and edx, 0xff
add edx, eax
mov edx, dword [edx*4 + 0x1001c778]
xor ebp, edx
mov edx, dword [esp + 0x18]
shr edx, cl
mov dword [esp + 0x34], ebp
mov ebp, dword [esp + 0x14]
and edx, 0xff
add edx, eax
add eax, 0x100
mov ecx, dword [edx*4 + 0x1001c778]
mov edx, dword [esp + 0x10]
xor edx, ecx
inc ebp
cmp eax, 0x400
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebp
jl 0x10019d96
mov eax, dword [esp + 0x1c]
dec eax
mov dword [esp + 0x1c], eax
jne 0x10019cf8
mov ebp, dword [esp + 0x3c]
mov edx, dword [esi]
xor edx, edi
push edx
call fcn.10019fd0
mov ecx, dword [esi + 4]
xor ecx, ebx
xor ecx, eax
push ecx
call fcn.10019fd0
mov edx, dword [esi + 8]
mov edi, dword [esp + 0x40]
xor edx, edi
xor edx, eax
push edx
call fcn.10019fd0
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x40]
xor ecx, edx
xor ecx, eax
push ecx
call fcn.10019fd0
mov edx, dword [esi + 0x10]
mov ecx, dword [esp + 0x20]
xor edx, ecx
xor edx, eax
push edx
call fcn.10019fd0
add esp, 0x14
add esi, 0x14
mov edi, eax
mov ecx, esi
cmp ebp, 8
jb 0x10019f99
mov esi, ebp
shr esi, 3
xor edx, edx
mov eax, edi
mov dl, byte [ecx]
and eax, 0xff
xor eax, edx
sub ebp, 8
shr edi, 8
mov eax, dword [eax*4 + 0x1001bf78]
xor ebx, ebx
mov bl, byte [ecx + 1]
xor eax, edi
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x1001bf78]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x1001bf78]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x1001bf78]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x1001bf78]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x1001bf78]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x1001bf78]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edi, dword [edx*4 + 0x1001bf78]
xor edi, eax
inc ecx
dec esi
jne 0x10019eb4
test ebp, ebp
je 0x10019fba
mov eax, edi
xor edx, edx
mov dl, byte [ecx]
and eax, 0xff
xor eax, edx
shr edi, 8
mov eax, dword [eax*4 + 0x1001bf78]
xor edi, eax
inc ecx
dec ebp
jne 0x10019f9d
mov eax, edi
pop edi
pop esi
pop ebp
not eax
pop ebx
add esp, 0x20
ret