Function at 0x100400fc
Capabilities:
Encode data using xor

Disassembly:
push 0xfc
mov eax, 0x10049b58
call fcn.10044ac9
mov esi, ecx
movzx eax, word [ebp + 0xc]
movzx ebx, word [ebp + 0x28]
movzx edi, word [ebp + 8]
and dword [ebp - 0x44], 0
mov dword [ebp - 0x5c], eax
movzx eax, word [ebp + 0x2c]
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x94], eax
mov dword [ebp - 4], 1
test di, di
je 0x100404a6
test bx, bx
je 0x100404a6
cmp dword [esi + 0x34], 0
jg 0x100404a6
lea eax, [ebp + 0x10]
push eax
push dword [esi + 8]
call fcn.1000f1a6
lea eax, [ebp + 0x30]
push eax
push dword [esi + 0xc]
call fcn.1000f1a6
push 0
push dword [esi + 0x10]
call fcn.1000f23a
push 0
push dword [esi + 0x14]
call fcn.1000f23a
or eax, 0xffffffff
add esp, 0x20
cmp di, ax
je 0x10040477
cmp bx, ax
je 0x10040477
mov cl, 0x27
mov dword [ebp - 0x50], 0x4a5e5427
mov dword [ebp - 0x4c], 0x7b4b4845
xor eax, eax
mov byte [ebp - 0x48], 0
xor byte [ebp + eax - 0x4f], cl
inc eax
cmp eax, 7
jae 0x100401b9
mov cl, byte [ebp - 0x50]
jmp 0x100401aa
lea eax, [ebp - 0x4f]
mov byte [ebp - 0x48], 0
push eax
lea eax, [ebp - 0x40]
push 0x1005a3f0
push eax
call fcn.100058b7
add esp, 0xc
mov eax, dword [ebp - 0x5c]
push 2
pop ebx
mov byte [ebp - 4], bl
test ax, ax
jne 0x10040223
movaps xmm0, xmmword [0x10050e80]
xor edx, edx
movups xmmword [ebp - 0x78], xmm0
mov dword [ebp - 0x68], 0xf450019
mov ecx, edx
mov word [ebp - 0x64], 0x1f13
mov byte [ebp - 0x62], dl
mov al, byte [ebp - 0x78]
xor byte [ebp + ecx - 0x77], al
inc ecx
cmp ecx, 0x15
jb 0x100401ff
lea eax, [ebp - 0x77]
mov byte [ebp - 0x62], dl
push eax
lea ecx, [ebp - 0xd8]
call fcn.100012e0
xor ebx, ebx
inc ebx
jmp 0x1004028a
cmp dword [ebp - 0x2c], 0x10
movaps xmm0, xmmword [0x10050f10]
cwde
push eax
movsx eax, di
push eax
lea eax, [ebp - 0x40]
mov word [ebp - 0x98], 0x7e
cmovae eax, dword [ebp - 0x40]
xor ecx, ecx
push 1
push eax
movups xmmword [ebp - 0xa8], xmm0
mov al, byte [ebp - 0xa8]
xor byte [ebp + ecx - 0xa7], al
inc ecx
cmp ecx, 0x10
jb 0x10040250
sub esp, 0x18
mov byte [ebp - 0x97], 0
lea eax, [ebp - 0xa7]
mov ecx, esp
push eax
call fcn.100012e0
lea eax, [ebp - 0xc0]
push eax
call fcn.1001b71b
add esp, 0x2c
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
push eax
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.1000285b
push 4
pop edi
mov dword [ebp - 4], edi
test bl, 2
je 0x100402c5
push 0
and ebx, 0xfffffffd
lea ecx, [ebp - 0xc0]
push 1
mov dword [ebp - 0x44], ebx
call fcn.10001cd4
mov byte [ebp - 4], 5
test bl, 1
je 0x100402e3
push 0
and ebx, 0xfffffffe
lea ecx, [ebp - 0xd8]
push 1
mov dword [ebp - 0x44], ebx
call fcn.10001cd4
lea eax, [ebp - 0x28]
push eax
push dword [esi + 0x18]
call fcn.1000ed04
and dword [esp + 4], 0
and dword [esp], 0
sub esp, 0x18
and dword [esp + 0x14], 0
and dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x3f800000
mov dword [esp + 8], 0x3f800000
and dword [esp + 4], 0
and dword [esp], 0
push dword [esi + 0x18]
call fcn.1000ee2c
mov eax, dword [ebp - 0x94]
add esp, 0x24
test ax, ax
jne 0x10040381
movaps xmm0, xmmword [0x10050ec0]
xor ecx, ecx
movups xmmword [ebp - 0x90], xmm0
mov dword [ebp - 0x80], 0x2e642138
mov word [ebp - 0x7c], 0x3e32
mov byte [ebp - 0x7a], al
mov al, byte [ebp - 0x90]
xor byte [ebp + ecx - 0x8f], al
inc ecx
cmp ecx, 0x15
jb 0x10040354
lea eax, [ebp - 0x8f]
mov byte [ebp - 0x7a], 0
push eax
lea ecx, [ebp - 0x108]
call fcn.100012e0
or ebx, edi
jmp 0x100403da
cmp dword [ebp - 0x2c], 0x10
movaps xmm0, xmmword [str.Y]
cwde
push eax
mov eax, dword [ebp - 0x60]
cwde
push eax
lea eax, [ebp - 0x40]
mov word [ebp - 0x48], 0x2d
cmovae eax, dword [ebp - 0x40]
xor ecx, ecx
push 1
push eax
movups xmmword [ebp - 0x58], xmm0
mov al, byte [ebp - 0x58]
xor byte [ebp + ecx - 0x57], al
inc ecx
cmp ecx, 0x10
jb 0x100403a9
sub esp, 0x18
mov byte [ebp - 0x47], 0
lea eax, [ebp - 0x57]
mov ecx, esp
push eax
call fcn.100012e0
lea eax, [ebp - 0xf0]
push eax
call fcn.1001b71b
add esp, 0x2c
or ebx, 8
push eax
lea ecx, [ebp - 0x28]
call fcn.10006163
test bl, 8
je 0x100403fa
push 0
push 1
lea ecx, [ebp - 0xf0]
and ebx, 0xfffffff7
call fcn.10001cd4
mov dword [ebp - 4], 5
test bl, 4
je 0x10040415
push 0
push 1
lea ecx, [ebp - 0x108]
call fcn.10001cd4
lea eax, [ebp - 0x28]
push eax
push dword [esi + 0x1c]
call fcn.1000ed04
and dword [esp + 4], 0
and dword [esp], 0
sub esp, 0x18
and dword [esp + 0x14], 0
and dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x3f800000
mov dword [esp + 8], 0x3f800000
and dword [esp + 4], 0
and dword [esp], 0
push dword [esi + 0x1c]
call fcn.1000ee2c
add esp, 0x24
lea ecx, [ebp - 0x28]
push 0
push 1
call fcn.10001cd4
push 0
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.10001cd4
push 0
push dword [esi + 0x20]
call fcn.1000e8b6
push 0
push dword [esi + 0x24]
call fcn.1000e8b6
mov al, byte [ebp + 0x48]
add esp, 0x10
mov ecx, esi
mov byte [esi + 0x30], al
call fcn.10040fbb
push 1
push dword [esi]
call fcn.1000e8b6
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp + 0x10]
call fcn.10001cd4
push 0
push 1
lea ecx, [ebp + 0x30]
call fcn.10001cd4
call fcn.10044a84
ret 0x44