Function at 0x10045c70
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 0x100a273d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x78
push esi
push edi
mov eax, dword [0x100bd080]
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 [0x100b37a0]
mov ecx, 0x100bdb9c
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.1000afb0
mov edx, dword [ebp - 0x7c]
cmp byte [edx + 0xd], 0
jne 0x10045cf5
mov eax, dword [ebp - 0x24]
cmp eax, dword [edx + 0x10]
jae 0x10045cfb
mov edx, dword [0x100bdb9c]
xor ecx, ecx
lea eax, [edx + 0x14]
cmp edx, dword [0x100bdb9c]
cmovne ecx, eax
test ecx, ecx
je 0x10045d9b
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 0x10045d31
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 0x10045d64
sub ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x47]
push ecx
push eax
mov ecx, edx
call fcn.10002570
lea eax, [ebp - 0x78]
push eax
call fcn.1000dc10
add esp, 0x24
lea ecx, [esi + esi*2]
mov dword [ebp - 4], 0
mov ecx, dword [edi + ecx*8 + 0x50]
mov edx, eax
jmp 0x10045e67
cmp dword [ebp - 0x24], 1
jne 0x10045ef2
lea eax, [esi + esi*2]
cmp byte [edi + eax*8 + 0x4a], 0
je 0x10045ef2
lea eax, [esi + 3]
mov byte [ebp - 0x30], 0xc
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, 0x2c
movzx eax, word [edi + esi*2 + 0x130]
xorps xmm0, xmm0
push ecx
push eax
mov al, 0x29
mov byte [ebp - 0x28], 0
mov dh, al
mov cl, 0x68
xor al, byte [ebp - 0x30]
mov ch, dl
mov byte [ebp - 0x2f], al
mov ah, 0x23
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 0x10045e35
sub ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x2f]
push ecx
push eax
mov ecx, edx
call fcn.10002570
lea eax, [ebp - 0x78]
push eax
call fcn.1000dc10
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.10019550
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x64]
cmp ecx, 0xf
jbe 0x10045ea7
mov edx, dword [ebp - 0x78]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10045e9d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10046009
push ecx
push edx
call fcn.1007fa16
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 0x10045eea
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10045eea
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 [0x100b2f24]
mov esi, dword [ebp - 0x38]
jmp 0x10045fb0
lea eax, [esi + 3]
mov word [ebp - 0x1c], 0x66
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 0x10045f30
sub ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x1b]
push ecx
push eax
mov ecx, edx
call fcn.10002570
lea eax, [ebp - 0x60]
push eax
call fcn.1000dc10
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.10019550
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x4c]
cmp ecx, 0xf
jbe 0x10045f9e
mov edx, dword [ebp - 0x60]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10045f94
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10046009
push ecx
push edx
call fcn.1007fa16
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 0x10045fe5
lea eax, [esi + esi*2]
mov esi, dword [edi + eax*8 + 0x50]
test esi, esi
je 0x10045fe5
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10045fe5
push 0xff80ff00
mov ecx, esi
call dword [0x100b2f40]
mov al, byte [ebp - 0x15]
inc al
mov byte [ebp - 0x15], al
cmp al, 3
jb 0x10045cb2
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.10084b1f
int3