Function at 0x100182e7
Capabilities:
Encode data using xor

Disassembly:
push 0xbc
mov eax, 0x1003ef18
call fcn.1003d3d1
mov esi, ecx
movzx eax, word [ebp + 0xc]
movzx ebx, word [ebp + 0x10]
movzx edi, word [ebp + 8]
and dword [ebp - 0x5c], 0
mov dword [ebp - 0x60], eax
movzx eax, word [ebp + 0x14]
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x68], eax
mov dword [ebp - 4], 1
test di, di
je 0x100185ff
test bx, bx
je 0x100185ff
cmp dword [esi + 0x2c], 0
ja 0x100185ff
cmp dword [ebp + 0x2c], 0xf
lea eax, [ebp + 0x18]
lea ecx, [ebp - 0x28]
cmova eax, dword [ebp + 0x18]
push eax
call fcn.10003da0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x28]
mov ecx, dword [esi + 4]
call fcn.1000d0e0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.10003b9e
cmp dword [ebp + 0x44], 0xf
lea eax, [ebp + 0x30]
lea ecx, [ebp - 0x28]
cmova eax, dword [ebp + 0x30]
push eax
call fcn.10003da0
mov byte [ebp - 4], 3
lea edx, [ebp - 0x28]
mov ecx, dword [esi + 8]
call fcn.1000d0e0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.10003b9e
mov ecx, dword [esi + 0xc]
xor edx, edx
call fcn.1000d103
mov ecx, dword [esi + 0x10]
xor edx, edx
call fcn.1000d103
or eax, 0xffffffff
cmp di, ax
je 0x100185f5
cmp bx, ax
je 0x100185f5
xor ebx, ebx
mov dword [ebp - 0x4c], 0x7e6a6013
mov cl, 0x13
mov dword [ebp - 0x48], 0x4f7f7c71
mov byte [ebp - 0x44], bl
mov eax, ebx
xor byte [ebp + eax - 0x4b], cl
inc eax
cmp eax, 7
jae 0x100183e5
mov cl, byte [ebp - 0x4c]
jmp 0x100183d6
lea eax, [ebp - 0x4b]
mov byte [ebp - 0x44], bl
push eax
mov edx, 0x10054470
lea ecx, [ebp - 0x40]
call fcn.1000c325
pop ecx
mov eax, dword [ebp - 0x60]
mov ecx, ebx
mov byte [ebp - 4], 4
test ax, ax
jne 0x10018447
movaps xmm0, xmmword [0x1004c880]
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x48], 0x763c7960
mov word [ebp - 0x44], 0x666a
mov byte [ebp - 0x42], bl
mov al, byte [ebp - 0x58]
xor byte [ebp + ecx - 0x57], al
inc ecx
cmp ecx, 0x15
jb 0x10018423
lea eax, [ebp - 0x57]
mov byte [ebp - 0x42], bl
push eax
lea ecx, [ebp - 0x98]
call fcn.10003da0
xor ebx, ebx
inc ebx
jmp 0x10018499
cmp dword [ebp - 0x2c], 0xf
movaps xmm0, xmmword [0x1004bbe0]
cwde
push eax
movsx eax, di
push eax
lea eax, [ebp - 0x40]
mov word [ebp - 0x44], 5
cmova eax, dword [ebp - 0x40]
push 1
push eax
movups xmmword [ebp - 0x54], xmm0
mov al, byte [ebp - 0x54]
xor byte [ebp + ecx - 0x53], al
inc ecx
cmp ecx, 0x10
jb 0x1001846c
sub esp, 0x18
mov byte [ebp - 0x43], bl
lea eax, [ebp - 0x53]
mov ecx, esp
push eax
call fcn.10003da0
lea eax, [ebp - 0x80]
push eax
call fcn.100039e5
add esp, 0x2c
push 2
pop ebx
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x5c], ebx
call fcn.100039ac
mov dword [ebp - 4], 6
test bl, 2
je 0x100184bf
and ebx, 0xfffffffd
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x5c], ebx
call fcn.10003b9e
mov byte [ebp - 4], 7
test bl, 1
je 0x100184d9
and ebx, 0xfffffffe
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x5c], ebx
call fcn.10003b9e
mov ecx, dword [esi + 0x14]
lea edx, [ebp - 0x28]
call fcn.1000cd56
mov ecx, dword [esi + 0x14]
sub esp, 0x1c
call fcn.1000cd9c
mov eax, dword [ebp - 0x68]
add esp, 0x1c
test ax, ax
jne 0x1001853c
movaps xmm0, xmmword [0x1004bce0]
xor ecx, ecx
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x48], 0xa40051c
mov word [ebp - 0x44], 0x1a16
mov byte [ebp - 0x42], al
mov al, byte [ebp - 0x58]
xor byte [ebp + ecx - 0x57], al
inc ecx
cmp ecx, 0x15
jb 0x10018517
lea eax, [ebp - 0x57]
mov byte [ebp - 0x42], 0
push eax
lea ecx, [ebp - 0xc8]
call fcn.10003da0
or ebx, 4
jmp 0x10018595
cmp dword [ebp - 0x2c], 0xf
movaps xmm0, xmmword [0x1004bcc0]
cwde
push eax
mov eax, dword [ebp - 0x64]
cwde
push eax
lea eax, [ebp - 0x40]
mov word [ebp - 0x44], 2
cmova eax, dword [ebp - 0x40]
xor ecx, ecx
push 1
push eax
movups xmmword [ebp - 0x54], xmm0
mov al, byte [ebp - 0x54]
xor byte [ebp + ecx - 0x53], al
inc ecx
cmp ecx, 0x10
jb 0x10018564
sub esp, 0x18
mov byte [ebp - 0x43], 0
lea eax, [ebp - 0x53]
mov ecx, esp
push eax
call fcn.10003da0
lea eax, [ebp - 0xb0]
push eax
call fcn.100039e5
add esp, 0x2c
or ebx, 8
push eax
lea ecx, [ebp - 0x28]
call fcn.10008af4
test bl, 8
je 0x100185b1
lea ecx, [ebp - 0xb0]
and ebx, 0xfffffff7
call fcn.10003b9e
mov dword [ebp - 4], 7
test bl, 4
je 0x100185c8
lea ecx, [ebp - 0xc8]
call fcn.10003b9e
mov ecx, dword [esi + 0x18]
lea edx, [ebp - 0x28]
call fcn.1000cd56
mov ecx, dword [esi + 0x18]
sub esp, 0x1c
call fcn.1000cd9c
add esp, 0x1c
lea ecx, [ebp - 0x28]
call fcn.10003b9e
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.10003b9e
mov ecx, dword [esi + 0x34]
mov dl, 1
call fcn.1000c87f
lea ecx, [ebp + 0x18]
call fcn.10003b9e
lea ecx, [ebp + 0x30]
call fcn.10003b9e
call fcn.1003d38f
ret 0x40