Function at 0x40a060
Capabilities:
Encode data using xor
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423eac
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x42f008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [0x42f074]
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 1
jb 0x40a5e6
cmp dword [0x42f078], 8
mov eax, 0x42f064
push 1
cmovae eax, dword [0x42f064]
push 0x428228
push ecx
push eax
push ecx
push dword [ebp - 0x98]
lea ecx, [ebp - 0xe0]
call fcn.00417ab0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xe0]
cmp dword [0x42fcb4], 8
mov eax, 0x42fca0
push dword [0x42fcb0]
cmovae eax, dword [0x42fca0]
push eax
call fcn.00413530
mov dword [ebp - 0xa0], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0xb0], xmm0
mov dword [ebp - 0x9c], 0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xb0], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xa0], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
push ecx
lea edx, [ebp - 0xb0]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.004153a0
add esp, 4
mov byte [ebp - 4], 2
mov ecx, 0x42fc58
cmp dword [0x42fc6c], 8
push dword [0x42fc68]
cmovae ecx, dword [0x42fc58]
push ecx
mov ecx, eax
call fcn.00413530
mov dword [ebp - 0x18], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x2c]
cmp ecx, 8
jb 0x40a1f7
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40a1ed
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a29e
push ecx
push edx
call fcn.004228bd
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x9c]
cmp ecx, 8
jb 0x40a24b
mov edx, dword [ebp - 0xb0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40a241
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a29e
push ecx
push edx
call fcn.004228bd
add esp, 8
xor eax, eax
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 7
mov word [ebp - 0xb0], ax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0xcc]
cmp ecx, 8
jb 0x40a2ae
mov edx, dword [ebp - 0xe0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40a2a4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40a2a4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004228bd
add esp, 8
xor eax, eax
mov dword [ebp - 0xd0], 0
push 0x50
push eax
mov word [ebp - 0xe0], ax
lea eax, [ebp - 0x90]
push eax
mov dword [ebp - 0xcc], 7
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x90]
call fcn.00410340
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
lea eax, [ecx + eax*2]
push eax
push ecx
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebp - 0x90]
call fcn.00412250
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 6
call fcn.00410280
cmp dword [ebp - 0xb4], 0x10
lea ecx, [ebp - 0x70]
lea eax, [ebp - 0xc8]
cmovae eax, dword [ebp - 0xc8]
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64i32]
mov ecx, dword [ebp - 0xb4]
add esp, 8
test eax, eax
sete al
mov byte [ebp - 0x91], al
cmp ecx, 0x10
jb 0x40a38f
mov edx, dword [ebp - 0xc8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a37f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40a37f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004228bd
mov al, byte [ebp - 0x91]
add esp, 8
test al, al
je 0x40a58f
call fcn.00408620
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x58]
call fcn.004090d0
mov dword [ebp - 0x98], eax
lea eax, [ebp - 0x148]
mov byte [ebp - 4], 8
push eax
call fcn.0040a5f0
mov edi, eax
cmp word [edi + 0x4e], 0
je 0x40a515
xor esi, esi
cmp dword [0x42fc1c], 2
jl 0x40a4f0
movaps xmm4, xmmword [0x42a410]
mov eax, 4
movaps xmm3, xmmword [0x42a4b0]
xor ecx, ecx
movaps xmm6, xmmword [0x42a430]
movd xmm5, eax
mov eax, 0x1f
movd xmm7, eax
movd xmm0, ecx
lea eax, [ecx + 4]
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm7
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, qword [str.66666666]
paddw xmm1, xmm0
movq xmm0, qword [edi + ecx*2]
pxor xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movq qword [edi + ecx*2], xmm1
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm7
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, qword [str.66666666]
paddw xmm1, xmm0
movq xmm0, qword [edi + ecx*2 + 8]
pxor xmm1, xmm0
movq qword [edi + ecx*2 + 8], xmm1
add ecx, 8
cmp ecx, 0x28
jl 0x40a402
jmp 0x40a515
mov eax, 0x4ec4ec4f
mov ecx, esi
imul esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x34
sub ecx, eax
add ecx, 0x36
xor word [edi + esi*2], cx
inc esi
cmp esi, 0x28
jl 0x40a4f0
mov edx, edi
lea ecx, [ebp - 0xf8]
call fcn.00408380
push dword [ebp - 0x98]
mov edx, eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xc8]
call fcn.00413ba0
push 0x428268
mov edx, eax
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x40]
call fcn.00413a90
add esp, 8
lea ecx, [ebp - 0xc8]
call fcn.00411040
lea ecx, [ebp - 0xf8]
call fcn.00411040
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0xe
call fcn.00411040
sub esp, 0x18
lea eax, [ebp - 0x40]
mov ecx, esp
push eax
call fcn.00411250
call fcn.00409c00
add esp, 0x18
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x40a5cb
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40a5c1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40a5c1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004228bd
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00422454
mov esp, ebp
pop ebp
ret
call fcn.004021f0
int3