Function at 0x1002f5c1
Capabilities:
Encode data using xor

Disassembly:
push 0x7c
mov eax, 0x10075f61
call fcn.1003d3a0
mov esi, ecx
lea eax, [ebp - 0x2b]
mov word [ebp - 0x2c], 0x5e
xor ebx, ebx
lea ecx, [ebp - 0x58]
push eax
mov byte [ebp - 0x2b], bl
call fcn.10004179
mov dword [ebp - 4], ebx
lea edx, [ebp - 0x58]
mov ecx, dword [esi + 0x1b4]
call fcn.1000de50
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
push ebx
push 1
call fcn.1000402e
lea eax, [ebp - 0x2b]
mov word [ebp - 0x2c], 1
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 0x2b], bl
call fcn.10004179
mov dword [ebp - 4], 1
lea edx, [ebp - 0x58]
mov ecx, dword [esi + 0x1b8]
call fcn.1000de50
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
push ebx
push 1
call fcn.1000402e
lea eax, [ebp - 0x2b]
mov word [ebp - 0x2c], 0x13
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 0x2b], bl
call fcn.10004179
mov dword [ebp - 4], 2
lea edx, [ebp - 0x58]
mov ecx, dword [esi + 0x1bc]
call fcn.1000dacb
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
push ebx
push 1
call fcn.1000402e
mov ecx, dword [esi + 0x198]
call fcn.10008e40
mov ebx, eax
test ebx, ebx
je 0x1002f8e4
and dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 3
mov ecx, ebx
mov edx, dword [esi + 0x198]
call fcn.10008e60
mov edi, eax
test edi, edi
je 0x1002f6c7
cmp dword [edi + 0x3c], 0
je 0x1002f6c7
push dword [esi + 0x198]
xor edx, edx
push edi
jmp 0x1002f6d1
push dword [esi + 0x198]
mov edx, ebx
push 0
lea ecx, [ebp - 0x58]
call fcn.10008f24
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.10005f9d
push 0
push 1
lea ecx, [ebp - 0x58]
call fcn.1000402e
mov ecx, dword [esi + 0x1bc]
lea edx, [ebp - 0x28]
call fcn.1000dacb
push edi
mov edx, ebx
lea ecx, [ebp - 0x58]
call fcn.10009180
pop ecx
mov byte [ebp - 4], 4
mov edx, eax
mov ecx, dword [esi + 0x1ac]
call fcn.1000de50
xor ebx, ebx
mov byte [ebp - 4], 3
push ebx
push 1
lea ecx, [ebp - 0x58]
call fcn.1000402e
mov eax, dword [esi + 0x1a4]
cmp eax, 1
jne 0x1002f7bc
mov edx, dword [esi + 0x1a0]
push ecx
lea ecx, [ebp - 0x70]
call fcn.1000bcbd
pop ecx
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 0x10
jb 0x1002f757
mov eax, dword [eax]
movaps xmm0, xmmword [0x100902d0]
mov edx, ebx
push eax
movups xmmword [ebp - 0x40], xmm0
mov word [ebp - 0x30], 0xf59
mov byte [ebp - 0x2e], bl
mov cl, byte [ebp - 0x40]
xor byte [ebp + edx - 0x3f], cl
inc edx
cmp edx, 0x11
jb 0x1002f76e
sub esp, 0x18
mov byte [ebp - 0x2e], bl
lea eax, [ebp - 0x3f]
mov ecx, esp
push eax
call fcn.10004179
lea eax, [ebp - 0x58]
push eax
call fcn.10003c43
add esp, 0x20
mov byte [ebp - 4], 6
mov edx, eax
mov ecx, dword [esi + 0x1b4]
call fcn.1000de50
push ebx
push 1
lea ecx, [ebp - 0x58]
call fcn.1000402e
lea ecx, [ebp - 0x70]
jmp 0x1002f841
cmp eax, 2
jne 0x1002f84d
mov edx, dword [esi + 0x1a0]
push ecx
lea ecx, [ebp - 0x58]
call fcn.1000bcbd
pop ecx
mov byte [ebp - 4], 7
cmp dword [eax + 0x14], 0x10
jb 0x1002f7e1
mov eax, dword [eax]
movaps xmm0, xmmword [0x1008fb50]
mov edx, ebx
push eax
movups xmmword [ebp - 0x40], xmm0
mov word [ebp - 0x30], 0x4d1b
mov byte [ebp - 0x2e], bl
mov cl, byte [ebp - 0x40]
xor byte [ebp + edx - 0x3f], cl
inc edx
cmp edx, 0x11
jb 0x1002f7f8
sub esp, 0x18
mov byte [ebp - 0x2e], bl
lea eax, [ebp - 0x3f]
mov ecx, esp
push eax
call fcn.10004179
lea eax, [ebp - 0x70]
push eax
call fcn.10003c43
add esp, 0x20
mov byte [ebp - 4], 8
mov edx, eax
mov ecx, dword [esi + 0x1b4]
call fcn.1000de50
push ebx
push 1
lea ecx, [ebp - 0x70]
call fcn.1000402e
lea ecx, [ebp - 0x58]
push ebx
push 1
mov byte [ebp - 4], 3
call fcn.1000402e
mov edx, dword [esi + 0x19c]
push ecx
lea ecx, [ebp - 0x88]
call fcn.1000bcbd
pop ecx
mov byte [ebp - 4], 9
cmp dword [eax + 0x14], 0x10
jb 0x1002f86c
mov eax, dword [eax]
movaps xmm0, xmmword [0x10090150]
mov edx, ebx
push eax
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x30], 0x1b4d48
mov cl, byte [ebp - 0x40]
xor byte [ebp + edx - 0x3f], cl
inc edx
cmp edx, 0x12
jb 0x1002f881
sub esp, 0x18
mov byte [ebp - 0x2d], bl
lea eax, [ebp - 0x3f]
mov ecx, esp
push eax
call fcn.10004179
lea eax, [ebp - 0x70]
push eax
call fcn.10003c43
add esp, 0x20
mov byte [ebp - 4], 0xa
mov edx, eax
mov ecx, dword [esi + 0x1b8]
call fcn.1000de50
push ebx
push 1
lea ecx, [ebp - 0x70]
call fcn.1000402e
push ebx
push 1
lea ecx, [ebp - 0x88]
call fcn.1000402e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
push ebx
push 1
call fcn.1000402e
mov ecx, dword [esi + 0x1a8]
mov dl, 1
call fcn.1000d5f0
call fcn.1003d34a
ret