Function at 0x468540
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 0x479388
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2d0
mov eax, dword [0x4902d4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x284], edi
mov eax, ecx
mov dword [ebp - 0x29c], eax
push 0x485b2c
mov edx, eax
lea ecx, [ebp - 0x2c4]
call fcn.0046e800
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x4685ae
mov eax, dword [eax]
lea ecx, [ebp - 0x280]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [ebp - 0x2b0]
mov dword [ebp - 0x288], eax
cmp ecx, 8
jb 0x468604
mov edx, dword [ebp - 0x2c4]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4685fa
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4685fa
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0047421c
add esp, 8
movq xmm0, qword [0x485e9c]
xor eax, eax
mov word [ebp - 0x2c4], ax
xor esi, esi
mov ax, word [0x485ea4]
mov word [ebp - 0x290], ax
movq qword [ebp - 0x298], xmm0
mov dword [ebp - 0x2b0], 7
mov dword [ebp - 0x2b4], 0
mov eax, 0x1f7047dd
mov ecx, esi
mul esi
mov eax, esi
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
imul eax, eax, 0x39
sub ecx, eax
add ecx, 0x38
xor word [ebp + esi*2 - 0x298], cx
inc esi
cmp esi, 5
jl 0x468640
cmp dword [ebp - 0x288], 0xffffffff
je 0x46891a
mov eax, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
mov dword [ebp - 0x2a8], eax
mov eax, dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov dword [ebp - 0x2a4], eax
mov eax, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x2ac], eax
mov eax, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [ebp - 0x28c], eax
mov edx, dword [ebp - 0x29c]
lea ecx, [ebp - 0x2dc]
push 0x485b34
call fcn.0046e800
add esp, 4
mov esi, eax
lea edx, [ebp - 0x254]
mov dword [ebp - 4], 0
lea ecx, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4686d0
mov eax, dword [esi + 0x14]
sub edx, ecx
mov ecx, dword [esi + 0x10]
sub eax, ecx
sar edx, 1
cmp edx, eax
ja 0x46872c
cmp dword [esi + 0x14], 8
lea eax, [ecx + edx]
mov dword [ebp - 0x2a0], eax
mov edi, esi
mov dword [esi + 0x10], eax
jb 0x468701
mov edi, dword [esi]
lea eax, [edx + edx]
push eax
lea eax, [ebp - 0x254]
lea ecx, [edi + ecx*2]
push eax
push ecx
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x2a0]
add esp, 0xc
xor ecx, ecx
mov word [edi + eax*2], cx
mov edi, dword [ebp - 0x284]
jmp 0x468744
push edx
lea eax, [ebp - 0x254]
mov ecx, esi
push eax
push dword [ebp - 0x284]
push edx
call fcn.0046f100
mov esi, eax
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x1c], xmm0
mov byte [ebp - 4], 2
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ecx, dword [ebp - 0x2c8]
cmp ecx, 8
jb 0x4687c1
mov edx, dword [ebp - 0x2dc]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4687b7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4685f4
push ecx
push edx
call fcn.0047421c
add esp, 8
xor eax, eax
mov dword [ebp - 0x2cc], 0
test byte [ebp - 0x280], 0x10
mov dword [ebp - 0x2c8], 7
mov word [ebp - 0x2dc], ax
je 0x46886f
mov ecx, 0x485ab4
lea eax, [ebp - 0x254]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x46881c
test dx, dx
je 0x468818
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x46881c
add eax, 4
add ecx, 4
test dx, dx
jne 0x4687f6
xor eax, eax
jmp 0x468821
sbb eax, eax
or eax, 1
test eax, eax
je 0x4688b6
mov ecx, 0x485ab8
lea eax, [ebp - 0x254]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x46885a
test dx, dx
je 0x468856
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x46885a
add eax, 4
add ecx, 4
test dx, dx
jne 0x468834
xor eax, eax
jmp 0x46885f
sbb eax, eax
or eax, 1
test eax, eax
je 0x4688b6
mov edx, edi
lea ecx, [ebp - 0x2c]
call fcn.00468540
jmp 0x4688b6
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x298]
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push ecx
push eax
call dword [ebp - 0x2a4]
push eax
call dword [ebp - 0x2a8]
add esp, 8
test eax, eax
jne 0x4688b6
mov edx, edi
lea ecx, [ebp - 0x2c]
call fcn.004681c0
test al, al
je 0x4688b6
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [ebp - 0x2ac]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
cmp ecx, 8
jb 0x4688f7
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4688ed
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4685f4
push ecx
push edx
call fcn.0047421c
add esp, 8
mov esi, dword [ebp - 0x288]
lea eax, [ebp - 0x280]
push eax
push esi
call dword [ebp - 0x28c]
test eax, eax
jne 0x4686a3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00473fd7
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret