Function at 0x10046780
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009deed
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x78
push esi
push edi
mov eax, dword [0x100b7040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor al, al
mov byte [ebp - 0x15], al
movaps xmm1, xmmword [0x100ae9b0]
mov ecx, 0x100b7b14
movzx esi, al
mov dword [ebp - 0x38], esi
lea eax, [esi + esi*2]
mov dword [ebp - 0x34], eax
mov eax, dword [edi + eax*8 + 0x44]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.10008a60
mov edx, dword [ebp - 0x7c]
cmp byte [edx + 0xd], 0
jne 0x10046805
mov eax, dword [ebp - 0x24]
cmp eax, dword [edx + 0x10]
jae 0x1004680b
mov edx, dword [0x100b7b14]
xor ecx, ecx
lea eax, [edx + 0x14]
cmp edx, dword [0x100b7b14]
cmovne ecx, eax
test ecx, ecx
je 0x100468ab
lea eax, [esi + 3]
lea eax, [eax + eax*2]
movzx ecx, word [edi + eax*8]
lea eax, [edi + eax*8]
mov dword [ebp - 0x24], eax
movzx eax, word [edi + esi*2 + 0x130]
push ecx
push eax
movups xmmword [ebp - 0x48], xmm1
xor ecx, ecx
mov al, byte [ebp - 0x48]
xor byte [ebp + ecx - 0x47], al
inc ecx
cmp ecx, 0xe
jb 0x10046841
sub esp, 0x18
mov byte [ebp - 0x39], 0
mov edx, esp
lea ecx, [ebp - 0x47]
xorps xmm0, xmm0
lea eax, [ecx + 1]
mov dword [ebp - 0x14], eax
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10046874
sub ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x47]
push ecx
push eax
mov ecx, edx
call fcn.10002580
lea eax, [ebp - 0x78]
push eax
call fcn.1000a310
add esp, 0x24
lea ecx, [esi + esi*2]
mov dword [ebp - 4], 0
mov ecx, dword [edi + ecx*8 + 0x50]
mov edx, eax
jmp 0x10046977
cmp dword [ebp - 0x24], 1
jne 0x10046a02
lea eax, [esi + esi*2]
cmp byte [edi + eax*8 + 0x4a], 0
je 0x10046a02
lea eax, [esi + 3]
mov byte [ebp - 0x30], 0x4f
lea eax, [eax + eax*2]
mov byte [ebp - 0x28], 0
movzx ecx, word [edi + eax*8]
lea eax, [edi + eax*8]
mov dword [ebp - 0x24], eax
mov dl, 0x6f
movzx eax, word [edi + esi*2 + 0x130]
xorps xmm0, xmm0
push ecx
push eax
mov al, 0x6a
mov byte [ebp - 0x28], 0
mov dh, al
mov cl, 0x2b
xor al, byte [ebp - 0x30]
mov ch, dl
mov byte [ebp - 0x2f], al
mov ah, 0x60
mov al, byte [ebp - 0x30]
xor dl, al
mov byte [ebp - 0x1d], cl
xor cl, al
mov byte [ebp - 0x2d], dl
xor ch, al
mov byte [ebp - 0x2e], cl
xor dh, al
mov byte [ebp - 0x2b], ch
xor ah, al
mov byte [ebp - 0x2a], dh
mov al, byte [ebp - 0x1d]
lea ecx, [ebp - 0x2f]
xor al, byte [ebp - 0x30]
sub esp, 0x18
mov edx, esp
mov byte [ebp - 0x2c], ah
mov byte [ebp - 0x29], al
lea eax, [ecx + 1]
mov dword [ebp - 0x14], eax
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10046945
sub ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x2f]
push ecx
push eax
mov ecx, edx
call fcn.10002580
lea eax, [ebp - 0x78]
push eax
call fcn.1000a310
add esp, 0x24
mov edx, eax
mov dword [ebp - 4], 1
lea eax, [esi + esi*2]
mov ecx, dword [edi + eax*8 + 0x50]
call fcn.10018260
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x64]
cmp ecx, 0xf
jbe 0x100469b7
mov edx, dword [ebp - 0x78]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100469ad
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10046b19
push ecx
push edx
call fcn.100810d6
add esp, 8
mov eax, dword [ebp - 0x34]
movzx esi, word [edi + esi*2 + 0x130]
mov eax, dword [edi + eax*8 + 0x54]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100469fa
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100469fa
mov ecx, dword [ebp - 0x14]
sub esp, 0xc
movd xmm0, esi
cvtdq2ps xmm0, xmm0
mov dword [esp + 8], eax
mov dword [esp + 4], eax
movss dword [esp], xmm0
call dword [0x100ae55c]
mov esi, dword [ebp - 0x38]
jmp 0x10046ac0
lea eax, [esi + 3]
mov word [ebp - 0x1c], 0x22
lea eax, [eax + eax*2]
mov byte [ebp - 0x1b], 0
lea eax, [edi + eax*8]
xorps xmm0, xmm0
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x1b]
movzx eax, word [eax]
push eax
sub esp, 0x18
lea eax, [ecx + 1]
mov edx, esp
mov dword [ebp - 0x14], eax
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10046a40
sub ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x1b]
push ecx
push eax
mov ecx, edx
call fcn.10002580
lea eax, [ebp - 0x60]
push eax
call fcn.1000a310
add esp, 0x20
mov edx, eax
mov dword [ebp - 4], 2
lea eax, [esi + esi*2]
mov ecx, dword [edi + eax*8 + 0x50]
call fcn.10018260
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x4c]
cmp ecx, 0xf
jbe 0x10046aae
mov edx, dword [ebp - 0x60]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10046aa4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10046b19
push ecx
push edx
call fcn.100810d6
add esp, 8
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
mov ecx, dword [ebp - 0x24]
mov ax, word [edi + esi*2 + 0x130]
cmp ax, word [ecx]
jb 0x10046af5
lea eax, [esi + esi*2]
mov esi, dword [edi + eax*8 + 0x50]
test esi, esi
je 0x10046af5
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10046af5
push 0xff80ff00
mov ecx, esi
call dword [0x100ae578]
mov al, byte [ebp - 0x15]
inc al
mov byte [ebp - 0x15], al
cmp al, 3
jb 0x100467c2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.1008626f
int3