Function at 0x411cd2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
cmp byte [0x81f9d0], 0
jne 0x411ce6
call fcn.004127ca
mov ecx, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ecx + 0x104], 0x11
mov eax, dword [esi]
mov dword [ecx], eax
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 4]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ecx + 4], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 8]
mov dword [ecx + 8], eax
mov ebx, dword [esi + 0xc]
push 4
mov dword [ebp - 0x18], eax
shr edi, 2
pop eax
mov dword [ecx + 0xc], ebx
cmp edi, eax
jbe 0x411d27
mov eax, edi
add eax, 6
mov dword [ecx + 0x100], eax
xor edx, edx
lea eax, [eax*4 + 3]
div edi
cmp dword [ebp + 0xc], 0x10
mov edx, eax
mov dword [ebp + 0x10], edx
je 0x411f36
cmp dword [ebp + 0xc], 0x18
je 0x411e88
cmp dword [ebp + 0xc], 0x20
je 0x411d68
and dword [ecx + 0x100], 0
xor eax, eax
jmp 0x411fb5
mov edi, dword [esi + 0x10]
and dword [ebp + 0xc], 0
mov dword [ecx + 0x10], edi
mov eax, dword [esi + 0x14]
mov dword [ebp - 0xc], eax
mov dword [ecx + 0x14], eax
mov eax, dword [esi + 0x18]
mov dword [ebp - 8], eax
mov dword [ecx + 0x18], eax
mov eax, dword [esi + 0x1c]
mov dword [ecx + 0x1c], eax
test edx, edx
jbe 0x411fb2
add ecx, 0x24
movzx esi, al
movzx esi, byte [esi + 0x8255e0]
shl esi, 8
mov edx, eax
shr edx, 0x18
movzx edx, byte [edx + 0x8255e0]
or edx, esi
shl edx, 8
mov dword [ebp + 8], ebx
mov ebx, eax
shr ebx, 0x10
movzx esi, bl
movzx esi, byte [esi + 0x8255e0]
or edx, esi
shl edx, 8
mov ebx, eax
shr ebx, 8
movzx esi, bl
movzx esi, byte [esi + 0x8255e0]
or edx, esi
mov esi, dword [ebp + 0xc]
xor edx, dword [esi*4 + 0x825560]
mov ebx, dword [ebp + 8]
xor dword [ebp - 0x20], edx
mov edx, dword [ebp - 0x20]
mov dword [ecx - 4], edx
mov edx, dword [ebp - 0x1c]
xor edx, dword [ebp - 0x20]
mov dword [ebp + 8], eax
xor dword [ebp - 0x18], edx
mov dword [ecx], edx
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x18]
xor ebx, edx
mov dword [ecx + 4], edx
mov eax, ebx
shr eax, 0x10
movzx esi, al
mov dword [ecx + 8], ebx
movzx esi, byte [esi + 0x8255e0]
mov edx, ebx
shr edx, 0x18
movzx edx, byte [edx + 0x8255e0]
shl edx, 8
or edx, esi
mov eax, ebx
shr eax, 8
shl edx, 8
movzx esi, al
movzx esi, byte [esi + 0x8255e0]
mov eax, dword [ebp + 8]
or edx, esi
shl edx, 8
movzx esi, bl
movzx esi, byte [esi + 0x8255e0]
or edx, esi
xor edi, edx
mov edx, dword [ebp - 0xc]
xor edx, edi
xor dword [ebp - 8], edx
mov dword [ecx + 0x10], edx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 8]
xor eax, edx
inc dword [ebp + 0xc]
mov dword [ecx + 0x14], edx
mov edx, dword [ebp + 0xc]
mov dword [ecx + 0xc], edi
mov dword [ecx + 0x18], eax
add ecx, 0x20
cmp edx, dword [ebp + 0x10]
jb 0x411d95
jmp 0x411fb2
mov edi, dword [esi + 0x10]
and dword [ebp + 0xc], 0
mov dword [ecx + 0x10], edi
mov eax, dword [esi + 0x14]
mov dword [ecx + 0x14], eax
test edx, edx
jbe 0x411fb2
add ecx, 0x1c
movzx esi, al
movzx esi, byte [esi + 0x8255e0]
mov edx, eax
shr edx, 0x18
movzx edx, byte [edx + 0x8255e0]
shl esi, 8
or edx, esi
mov dword [ebp + 8], ebx
mov ebx, eax
shr ebx, 0x10
shl edx, 8
movzx esi, bl
movzx esi, byte [esi + 0x8255e0]
or edx, esi
mov ebx, eax
shr ebx, 8
shl edx, 8
movzx esi, bl
movzx esi, byte [esi + 0x8255e0]
mov ebx, dword [ebp + 8]
or edx, esi
mov esi, dword [ebp + 0xc]
xor edx, dword [esi*4 + 0x825560]
xor dword [ebp - 0x20], edx
mov edx, dword [ebp - 0x20]
mov dword [ecx - 4], edx
mov edx, dword [ebp - 0x1c]
xor edx, dword [ebp - 0x20]
xor dword [ebp - 0x18], edx
mov dword [ecx], edx
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x18]
xor ebx, edx
xor edi, ebx
xor eax, edi
inc dword [ebp + 0xc]
mov dword [ecx + 4], edx
mov edx, dword [ebp + 0xc]
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], edi
mov dword [ecx + 0x10], eax
add ecx, 0x18
cmp edx, dword [ebp + 0x10]
jb 0x411ea3
jmp 0x411fb2
xor esi, esi
test edx, edx
jbe 0x411fb2
mov edi, dword [ebp - 0x20]
add ecx, 0x14
movzx edx, bl
movzx edx, byte [edx + 0x8255e0]
shl edx, 8
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + 0x8255e0]
or eax, edx
mov edx, ebx
shr edx, 0x10
movzx edx, dl
movzx edx, byte [edx + 0x8255e0]
shl eax, 8
or eax, edx
mov edx, ebx
shr edx, 8
shl eax, 8
movzx edx, dl
movzx edx, byte [edx + 0x8255e0]
or eax, edx
xor eax, dword [esi*4 + 0x825560]
xor edi, eax
mov eax, dword [ebp - 0x1c]
xor eax, edi
xor dword [ebp - 0x18], eax
mov dword [ecx], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
xor ebx, eax
mov dword [ecx - 4], edi
mov dword [ecx + 4], eax
mov dword [ecx + 8], ebx
inc esi
add ecx, 0x10
cmp esi, dword [ebp + 0x10]
jb 0x411f42
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret