Function at 0x1001ebd1
Capabilities:
Encode data using xor

Disassembly:
push 0xbc
mov eax, 0x1003b254
call fcn.10039131
mov esi, ecx
mov eax, dword [esi + 0x158]
cmp eax, dword [esi + 0x15c]
je 0x1001f12d
mov eax, dword [esi + 0x15c]
sub eax, dword [esi + 0x158]
push 0x68
pop ecx
cdq
idiv ecx
and dword [ebp - 0x30], 0
mov dword [ebp - 0x44], ecx
test eax, eax
jle 0x1001eec5
mov edi, dword [esi + 0x158]
mov ebx, dword [ebp + 8]
mov edx, dword [ebp - 0x30]
lea ecx, [edi + 0x18]
cmp dword [ecx], ebx
je 0x1001ec49
push 0x68
pop eax
add ecx, eax
inc edx
mov eax, dword [esi + 0x15c]
sub eax, edi
mov dword [ebp - 0x30], edx
cdq
idiv dword [ebp - 0x44]
mov edx, dword [ebp - 0x30]
cmp edx, eax
jl 0x1001ec24
jmp 0x1001eec2
mov al, byte [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
imul ecx, edx, 0x68
mov edx, dword [ebp + 0x14]
sub ebx, edx
mov dword [ebp - 0x48], 4
mov dword [ebp - 0x74], ecx
mov byte [ecx + edi + 0x65], al
lea edi, [ecx + 0x58]
mov ecx, dword [esi + 0x158]
mov ax, word [ebx + edx]
mov word [edi + ecx - 8], ax
mov ecx, dword [esi + 0x158]
mov ax, word [edx]
add edx, 2
sub dword [ebp - 0x48], 1
mov word [edi + ecx], ax
lea edi, [edi + 2]
jne 0x1001ec68
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 0x140]
jne 0x1001eec2
or dword [ebp - 0x48], 0xffffffff
lea eax, [esi + 0x84]
xor edi, edi
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], edi
lea ebx, [esi + 0xb4]
mov dword [ebp - 0x44], 4
mov ecx, dword [eax]
call fcn.1000b184
test al, al
je 0x1001eea8
mov eax, dword [esi + 0x158]
mov ecx, dword [ebp - 0x74]
cmp byte [ecx + eax + 0x65], 2
jne 0x1001ed5b
movaps xmm0, xmmword [0x10047c60]
xor ecx, ecx
movups xmmword [ebp - 0x70], xmm0
mov dword [ebp - 0x60], 0x2d2b3623
mov word [ebp - 0x5c], 0x1f2c
mov byte [ebp - 0x5a], 0
mov al, byte [ebp + ecx - 0x6f]
xor al, byte [ebp - 0x70]
mov byte [ebp + ecx - 0x6f], al
inc ecx
cmp ecx, 0x15
jb 0x1001ecfb
lea eax, [ebp - 0x6f]
mov byte [ebp - 0x5a], 0
push eax
lea ecx, [ebp - 0x94]
call fcn.1000409e
and dword [ebp - 4], 0
lea edx, [ebp - 0x94]
mov ecx, dword [esi + 0x7c]
call fcn.1000b8a4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
push 0
push 1
call fcn.10003f4a
mov ecx, dword [esi + 0x7c]
mov edx, 0xff5cb9fe
call fcn.1000b8ea
mov eax, 0xff808080
mov dword [ebp - 0x48], eax
jmp 0x1001edd2
mov dl, 0x1b
mov dword [ebp - 0x40], 0x754e401b
mov dword [ebp - 0x3c], 0x3b697e7f
xor ecx, ecx
mov dword [ebp - 0x38], 0x46627a6c
mov byte [ebp - 0x34], 0
xor byte [ebp + ecx - 0x3f], dl
inc ecx
cmp ecx, 0xb
jae 0x1001ed87
mov dl, byte [ebp - 0x40]
jmp 0x1001ed78
lea eax, [ebp - 0x3f]
mov byte [ebp - 0x34], 0
push eax
lea ecx, [ebp - 0x94]
call fcn.1000409e
mov dword [ebp - 4], 1
lea edx, [ebp - 0x94]
mov ecx, dword [esi + 0x7c]
call fcn.1000b8a4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
push 0
push 1
call fcn.10003f4a
mov ecx, dword [esi + 0x7c]
mov edx, 0xffc4fc03
call fcn.1000b8ea
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebx - 4]
mov edx, eax
call fcn.1000b8ea
imul ecx, dword [ebp - 0x30], 0x34
mov edx, dword [esi + 0x158]
lea eax, [edi + ecx]
add edi, ecx
movzx eax, word [edx + eax*2 + 0x58]
xor ecx, ecx
push eax
movzx eax, word [edx + edi*2 + 0x50]
mov dl, 0xe
push eax
mov dword [ebp - 0x54], 0x2e6a2b0e
mov dword [ebp - 0x50], 0x6a2b2e21
mov byte [ebp - 0x4c], 0
xor byte [ebp + ecx - 0x53], dl
inc ecx
cmp ecx, 7
jae 0x1001ee1c
mov dl, byte [ebp - 0x54]
jmp 0x1001ee0d
sub esp, 0x18
mov byte [ebp - 0x4c], 0
lea eax, [ebp - 0x53]
mov ecx, esp
push eax
call fcn.1000409e
lea eax, [ebp - 0x70]
push eax
call fcn.10003b83
add esp, 0x24
mov dword [ebp - 4], 2
cmp dword [eax + 0x14], 0x10
jb 0x1001ee49
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x94]
call fcn.1000409e
mov byte [ebp - 4], 3
lea edx, [ebp - 0x94]
mov ecx, dword [ebx]
call fcn.1000b8a4
push 0
push 1
lea ecx, [ebp - 0x94]
call fcn.10003f4a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
push 0
push 1
call fcn.10003f4a
mov eax, dword [esi + 0x158]
xorps xmm3, xmm3
mov ecx, dword [ebx + 4]
xorps xmm2, xmm2
movzx eax, word [eax + edi*2 + 0x50]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
call fcn.1000b747
mov edi, dword [ebp - 0x78]
mov eax, dword [ebp - 0x7c]
inc edi
add eax, 4
mov dword [ebp - 0x78], edi
add ebx, 0x14
mov dword [ebp - 0x7c], eax
sub dword [ebp - 0x44], 1
jne 0x1001ecbe
push 0x68
pop ecx
mov eax, dword [esi + 0x144]
shl eax, 2
mov dword [ebp - 0x74], eax
lea ebx, [eax - 4]
cmp ebx, eax
jge 0x1001f12d
imul edi, ebx, 0x68
lea eax, [esi + 0xc]
add eax, 0x18
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 0x15c]
sub eax, dword [esi + 0x158]
cdq
idiv ecx
dec eax
cmp ebx, eax
jg 0x1001f12d
mov eax, dword [esi + 0x158]
lea ecx, [ebp - 0x2c]
add eax, edi
mov dword [ebp - 0x44], 0xffc4fc03
push eax
call fcn.10003ae8
mov dword [ebp - 4], 4
xor ecx, ecx
mov eax, dword [esi + 0x158]
cmp byte [edi + eax + 0x65], 2
jne 0x1001ef7a
movaps xmm0, xmmword [0x10047a70]
movups xmmword [ebp - 0x70], xmm0
mov dword [ebp - 0x60], 0x25382d3f
mov dword [ebp - 0x5c], 0x112223
mov al, byte [ebp + ecx - 0x6f]
xor al, byte [ebp - 0x70]
mov byte [ebp + ecx - 0x6f], al
inc ecx
cmp ecx, 0x16
jb 0x1001ef47
lea ecx, [ebp - 0x6f]
mov byte [ebp - 0x59], 0
call fcn.10004086
push eax
lea eax, [ebp - 0x6f]
push eax
lea ecx, [ebp - 0x2c]
call fcn.100096f1
mov dword [ebp - 0x44], 0xff5cb9fe
jmp 0x1001efbf
mov dl, 0x1b
mov dword [ebp - 0x40], 0x4e403b1b
mov dword [ebp - 0x3c], 0x697e7f75
mov dword [ebp - 0x38], 0x627a6c3b
mov word [ebp - 0x34], 0x46
xor byte [ebp + ecx - 0x3f], dl
inc ecx
cmp ecx, 0xc
jae 0x1001efa6
mov dl, byte [ebp - 0x40]
jmp 0x1001ef97
lea ecx, [ebp - 0x3f]
mov byte [ebp - 0x33], 0
call fcn.10004086
push eax
lea eax, [ebp - 0x3f]
push eax
lea ecx, [ebp - 0x2c]
call fcn.100096f1
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x94]
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.1000409e
mov ecx, dword [ebp - 0x30]
lea edx, [ebp - 0x94]
mov byte [ebp - 4], 5
mov ecx, dword [ecx]
call fcn.1000b8a4
push 0
push 1
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 4
call fcn.10003f4a
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x44]
mov ecx, dword [eax]
call fcn.1000b8ea
mov ecx, dword [esi + 0x158]
movaps xmm0, xmmword [0x10047490]
movzx eax, byte [edi + ecx + 0x64]
push eax
movzx eax, byte [edi + ecx + 0x63]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x58], xmm0
mov al, byte [ebp + ecx - 0x57]
xor al, byte [ebp - 0x58]
mov byte [ebp + ecx - 0x57], al
inc ecx
cmp ecx, 0xe
jb 0x1001f029
sub esp, 0x18
mov byte [ebp - 0x49], 0
lea eax, [ebp - 0x57]
mov ecx, esp
push eax
call fcn.1000409e
lea eax, [ebp - 0xb0]
push eax
call fcn.10003b83
add esp, 0x24
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 0x10
jb 0x1001f067
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x94]
call fcn.1000409e
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x94]
mov byte [ebp - 4], 7
mov ecx, dword [eax - 4]
call fcn.1000b8a4
push 0
push 1
lea ecx, [ebp - 0x94]
call fcn.10003f4a
push 0
push 1
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 4
call fcn.10003f4a
mov eax, dword [esi + 0x158]
lea ecx, [ebp - 0xc8]
mov dx, word [eax + edi + 0x60]
call fcn.1001aba9
mov byte [ebp - 4], 8
cmp dword [eax + 0x14], 0x10
jb 0x1001f0cc
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xb0]
call fcn.1000409e
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0xb0]
mov byte [ebp - 4], 9
mov ecx, dword [eax + 8]
call fcn.1000b8a4
push 0
push 1
lea ecx, [ebp - 0xb0]
call fcn.10003f4a
push 0
push 1
lea ecx, [ebp - 0xc8]
call fcn.10003f4a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
push 0
push 1
call fcn.10003f4a
mov eax, dword [ebp - 0x30]
inc ebx
push 0x68
pop ecx
add edi, ecx
cmp ebx, dword [ebp - 0x74]
jl 0x1001eee2
call fcn.100390db
ret 0x10