Function at 0x4187c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
mov eax, dword [0x5035d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x264], ecx
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x260], edi
test esi, esi
je 0x4189e0
test ebx, ebx
je 0x4189e0
mov eax, 0x6c16c16d
xor ecx, ecx
mul ebx
mov eax, ebx
sub eax, edx
shr eax, 1
add eax, edx
mov dl, bl
shr eax, 6
movsx eax, al
imul eax, eax, 0x5a
sub dl, al
add dl, 0xa
movsx eax, dl
movd xmm0, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm2, xmm0, 0
test ebx, ebx
je 0x418892
cmp ebx, 0x40
jb 0x418883
mov eax, ebx
and eax, 0xffffffc0
nop
movups xmm0, xmmword [esi + ecx]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [esi + ecx], xmm1
movups xmm0, xmmword [esi + ecx + 0x10]
movaps xmm1, xmm2
pxor xmm0, xmm2
movups xmmword [esi + ecx + 0x10], xmm0
movups xmm0, xmmword [esi + ecx + 0x20]
pxor xmm0, xmm2
movups xmmword [esi + ecx + 0x20], xmm0
movups xmm0, xmmword [esi + ecx + 0x30]
pxor xmm1, xmm0
movups xmmword [esi + ecx + 0x30], xmm1
add ecx, 0x40
cmp ecx, eax
jb 0x418840
cmp ecx, ebx
jae 0x418892
xor byte [esi + ecx], dl
lea eax, [esi + ecx]
inc ecx
cmp ecx, ebx
jb 0x418887
push 0
push ebx
push esi
call fcn.00421be0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x4189e0
lea eax, [ebp - 0x258]
push eax
push 0
push ebx
call fcn.004219d0
add esp, 0xc
test eax, eax
jne 0x4189e0
mov esi, dword [ebp - 0x2c]
push esi
mov dword [ebp - 0x26c], esi
call fcn.004a1357
mov edi, eax
add esp, 4
mov dword [ebp - 0x270], edi
test edi, edi
je 0x4189da
push esi
push edi
push 0
push ebx
call fcn.00422270
add esp, 0x10
test esi, esi
je 0x4189d1
push esi
call fcn.004a1357
add esp, 4
mov dword [ebp - 0x25c], eax
test eax, eax
je 0x4189d1
push esi
push 0
push eax
call fcn.004a4df0
mov eax, esi
mov dword [ebp - 0x10], 0x6f355278
xorps xmm0, xmm0
shr eax, 3
add esp, 0xc
movlpd qword [ebp - 0x20], xmm0
movlpd qword [ebp - 0x28], xmm0
mov ebx, edi
mov dword [ebp - 0xc], 0x5a6c306a
mov byte [ebp - 8], 0
test eax, eax
je 0x418998
mov edi, dword [ebp - 0x25c]
mov esi, eax
nop
mov eax, dword [ebx]
lea ebx, [ebx + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebx - 4]
push 1
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x10]
push 9
push eax
push 8
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00417ff0
mov eax, dword [ebp - 0x28]
lea edi, [edi + 8]
mov dword [edi - 8], eax
add esp, 0x18
mov eax, dword [ebp - 0x24]
mov dword [edi - 4], eax
sub esi, 1
jne 0x418950
mov esi, dword [ebp - 0x26c]
mov edi, dword [ebp - 0x270]
mov ecx, esi
and ecx, 7
je 0x4189ba
mov eax, esi
sub eax, ecx
add eax, edi
push ecx
push eax
mov eax, dword [ebp - 0x25c]
sub eax, ecx
add eax, esi
push eax
call fcn.004a4870
add esp, 0xc
push dword [ebp - 0x25c]
call fcn.004070b0
mov ecx, dword [ebp - 0x264]
add esp, 4
mov dword [ecx + 4], eax
push edi
call fcn.004a1360
add esp, 4
mov edi, dword [ebp - 0x260]
mov ebx, dword [ebp - 0x264]
mov eax, dword [ebx + 4]
test eax, eax
je 0x418a8c
movaps xmm0, xmmword [str.DllGetClassObjec]
lea ecx, [ebp - 0x18]
push ecx
push eax
movups xmmword [ebp - 0x18], xmm0
mov word [ebp - 8], 0x74
call fcn.00407480
add esp, 8
test eax, eax
je 0x418a57
lea ecx, [ebp - 0x25c]
mov dword [ebp - 0x25c], 0
push ecx
push 0x4e82d0
push 0x4d3ae8
call eax
mov edx, dword [ebp - 0x25c]
test edx, edx
je 0x418a57
mov ecx, dword [edx]
lea eax, [ebx + 8]
push eax
push 0x4d3ac8
push 0
push edx
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x25c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x418a8c
mov eax, dword [ecx]
push 0x1e283301
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push edi
push ecx
call dword [eax + 0x1c]
test eax, eax
js 0x418a8c
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a1365
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a1365
mov esp, ebp
pop ebp
ret 0x14