Function at 0x10046d60
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 0x1009df90
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x88
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
mov dword [ebp - 0x44], edi
movzx eax, word [edi + 0x138]
xor ecx, ecx
movzx edx, word [edi + 0x136]
movaps xmm0, xmmword [0x100af3d0]
push eax
mov word [edi + 0x142], dx
mov word [edi + 0x144], ax
push edx
movups xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x2c], 0x1a57161b
mov byte [ebp - 0x28], 0
nop dword [eax]
mov al, byte [ebp - 0x3c]
xor byte [ebp + ecx - 0x3b], al
inc ecx
cmp ecx, 0x13
jb 0x10046de0
sub esp, 0x18
mov byte [ebp - 0x28], 0
mov edx, esp
lea ecx, [ebp - 0x3b]
xorps xmm0, xmm0
lea esi, [ecx + 1]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10046e10
sub ecx, esi
lea eax, [ebp - 0x3b]
push ecx
push eax
mov ecx, edx
call fcn.10002580
lea eax, [ebp - 0x7c]
push eax
call fcn.1000a310
add esp, 0x24
mov dword [ebp - 4], 0
mov edx, eax
mov ecx, dword [edi + 0xc]
call fcn.10018260
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x68]
cmp ecx, 0xf
jbe 0x10046e7d
mov edx, dword [ebp - 0x7c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10046e73
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10047185
push ecx
push edx
call fcn.100810d6
add esp, 8
mov edi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
xor al, al
mov byte [ebp - 0x11], al
nop dword [eax + eax]
mov ecx, dword [ebp - 0x44]
movzx edx, al
movzx esi, word [ecx + edx*2 + 0x124]
lea eax, [edx + edx*2]
lea eax, [ecx + eax*8]
mov dword [ebp - 0x18], esi
mov dword [eax + 0x44], esi
movzx ecx, word [ecx + edx*2 + 0x12a]
add edx, 3
mov dword [ebp - 0x40], eax
lea eax, [edx + edx*2]
mov edx, dword [ebp - 0x44]
lea edx, [edx + eax*8]
mov eax, ecx
mov word [edx], cx
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x4c], edx
mov cl, byte [eax + 0x13b]
mov eax, dword [ebp - 0x40]
mov byte [ebp - 0x19], cl
mov byte [eax + 0x4a], cl
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x70]
mov ecx, 0x100b7b14
push eax
call fcn.10008a60
mov edx, dword [ebp - 0x68]
cmp byte [edx + 0xd], 0
jne 0x10046efe
cmp esi, dword [edx + 0x10]
jae 0x10046f04
mov edx, dword [0x100b7b14]
xor ecx, ecx
lea eax, [edx + 0x14]
cmp edx, dword [0x100b7b14]
cmovne ecx, eax
test ecx, ecx
je 0x10046ff7
mov eax, dword [ebp - 0x48]
mov dl, 0x30
movzx eax, ax
push eax
mov dword [ebp - 0x38], 0x5e457830
xor eax, eax
mov dword [ebp - 0x34], 0x101d1044
mov dword [ebp - 0x30], 0x101f1000
mov word [ebp - 0x2c], 0x5415
mov byte [ebp - 0x2a], 0
lea ecx, [ebp - 0x37]
xor byte [ecx + eax], dl
inc eax
cmp eax, 0xd
jae 0x10046f55
mov dl, byte [ebp - 0x38]
jmp 0x10046f44
sub esp, 0x18
mov byte [ebp - 0x2a], 0
mov edx, esp
lea ecx, [ebp - 0x37]
xorps xmm0, xmm0
lea esi, [ecx + 1]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10046f78
sub ecx, esi
lea eax, [ebp - 0x37]
push ecx
push eax
mov ecx, edx
call fcn.10002580
lea eax, [ebp - 0x94]
push eax
call fcn.1000a310
add esp, 0x20
mov esi, dword [ebp - 0x40]
mov edx, eax
mov dword [ebp - 4], 1
mov ecx, dword [esi + 0x50]
call fcn.10018260
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x80]
cmp ecx, 0xf
jbe 0x100470f2
mov edx, dword [ebp - 0x94]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10046fe8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10047185
push ecx
push edx
call fcn.100810d6
add esp, 8
jmp 0x100470f2
cmp esi, 1
jne 0x10047161
cmp byte [ebp - 0x19], 0
je 0x10047161
mov eax, dword [ebp - 0x48]
mov cl, 0x38
movzx eax, ax
mov dl, 0x37
push eax
mov byte [ebp - 0x24], 0x18
mov al, 0x28
xor al, byte [ebp - 0x24]
mov ah, cl
mov ch, 0x3d
mov byte [ebp - 0x23], al
mov al, byte [ebp - 0x24]
mov dh, 0x7c
xor cl, al
mov byte [ebp - 0x1d], 0
xor dl, al
mov byte [ebp - 0x22], cl
xor ch, al
mov byte [ebp - 0x21], dl
xor dh, al
mov byte [ebp - 0x1f], ch
xor ah, al
mov byte [ebp - 0x1e], dh
sub esp, 0x18
mov byte [ebp - 0x20], ah
mov edx, esp
mov byte [ebp - 0x1d], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x23]
lea esi, [ecx + 1]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10047070
sub ecx, esi
lea eax, [ebp - 0x23]
push ecx
push eax
mov ecx, edx
call fcn.10002580
lea eax, [ebp - 0x64]
push eax
call fcn.1000a310
add esp, 0x20
mov esi, dword [ebp - 0x40]
mov edx, eax
mov dword [ebp - 4], 2
mov ecx, dword [esi + 0x50]
call fcn.10018260
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x50]
cmp ecx, 0xf
jbe 0x100470e0
mov edx, dword [ebp - 0x64]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100470d6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10047185
push ecx
push edx
call fcn.100810d6
add esp, 8
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0xf
mov byte [ebp - 0x64], 0
mov esi, dword [esi + 0x50]
test esi, esi
je 0x1004710c
push 4
push esi
call edi
test eax, eax
jne 0x1004710c
push 0xffffffffffffffff
mov ecx, esi
call dword [0x100ae578]
mov eax, dword [ebp - 0x4c]
movzx eax, word [eax]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x40]
mov esi, dword [eax + 0x54]
test esi, esi
je 0x10047161
push 4
push esi
call edi
test eax, eax
jne 0x10047161
push 4
lea eax, [esi + 0x140]
push eax
call edi
test eax, eax
jne 0x10047161
push 4
lea eax, [esi + 0x13c]
push eax
call edi
test eax, eax
jne 0x10047161
mov eax, dword [ebp - 0x18]
mov ecx, esi
mov dword [esi + 0x140], 0
mov dword [esi + 0x13c], eax
call dword [0x100ae558]
mov al, byte [ebp - 0x11]
inc al
mov byte [ebp - 0x11], al
cmp al, 3
jb 0x10046e90
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