Function at 0x40ac40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x482065
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x49e400]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 4], 1
call fcn.00428b80
mov esi, eax
test esi, esi
jne 0x40ad53
movaps xmm1, xmmword [0x497bc0]
mov dword [ebp - 0x54], 0xb6b5adb9
movd xmm0, dword [ebp - 0x54]
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
psrad xmm0, 0x18
mov word [ebp - 0x50], ax
lea eax, [ebp - 0x50]
xorps xmm1, xmm0
andps xmm1, xmmword [0x497980]
push ecx
push eax
packuswb xmm1, xmm1
lea eax, [ebp - 0x54]
packuswb xmm1, xmm1
mov ecx, edi
push eax
movd dword [ebp - 0x54], xmm1
call fcn.00413a50
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0xf
jbe 0x40ad09
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40acff
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ad4d
push ecx
push edx
call fcn.00480303
add esp, 8
mov ecx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp ecx, 0xf
jbe 0x40b1fc
mov edx, dword [ebp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40b1f2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40b1f2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov byte [ebp - 4], 3
lea eax, [ebp + 0x20]
cmp dword [ebp + 0x34], 0xf
cmova eax, dword [ebp + 0x20]
push eax
push 0x2712
push esi
call fcn.0042cbe0
push 1
push 0x51
push esi
call fcn.0042cbe0
push str.keyauth.win
push 0x27c1
push esi
call fcn.0042cbe0
push 1
push 0x40
push esi
call fcn.0042cbe0
push 1
push 0xac
push esi
call fcn.0042cbe0
cmp dword [ebp + 0x1c], 0xf
lea eax, [ebp + 8]
cmova eax, dword [ebp + 8]
push eax
push 0x271f
push esi
call fcn.0042cbe0
add esp, 0x48
push 0x4090d0
push 0x4e2b
push esi
call fcn.0042cbe0
lea eax, [ebp - 0x28]
push eax
push 0x2711
push esi
call fcn.0042cbe0
push 0x409130
push 0x4e6f
push esi
call fcn.0042cbe0
lea eax, [ebp - 0x40]
push eax
push 0x272d
push esi
call fcn.0042cbe0
push esi
call fcn.00428be0
add esp, 0x34
test eax, eax
je 0x40ae7e
push eax
call fcn.004295d0
mov edi, eax
sub esp, 0x14
mov edx, esp
mov ecx, edi
xorps xmm0, xmm0
movups xmmword [edx], xmm0
lea eax, [ecx + 1]
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov dword [ebp - 0x4c], eax
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40ae60
sub ecx, dword [ebp - 0x4c]
push ecx
push edi
mov ecx, edx
call fcn.00414660
call fcn.0040b220
mov edi, dword [ebp - 0x68]
add esp, 0x18
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
mov dword [ebp - 0x4c], esp
push eax
call fcn.00410710
sub esp, 0x18
mov byte [ebp - 4], 4
lea eax, [ebp + 0x20]
mov dword [ebp - 0x6c], esp
mov ecx, esp
push eax
call fcn.00410710
sub esp, 0x18
mov byte [ebp - 4], 5
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00410710
mov byte [ebp - 4], 3
call fcn.0040b880
lea eax, [ebp - 0x44]
push eax
push 0x400022
push esi
call fcn.00428b60
add esp, 0x54
test eax, eax
jne 0x40b0f6
mov ecx, dword [ebp - 0x44]
xor dl, dl
mov byte [ebp - 0x45], dl
mov dword [ebp - 0x6c], eax
cmp dword [ecx], eax
jle 0x40b09c
mov edi, dword [sym.imp.VCRUNTIME140.dll_strstr]
xor esi, esi
movaps xmm2, xmmword [0x497980]
movaps xmm0, xmmword [0x497af0]
mov dword [ebp - 0x4c], esi
mov eax, dword [ecx + 4]
mov esi, dword [esi + eax]
test esi, esi
je 0x40b080
movd eax, xmm0
movaps xmm1, xmmword [0x497bc0]
movups xmmword [ebp - 0x88], xmm0
mov dword [ebp - 0x78], 0x8f8a8191
mov word [ebp - 0x74], 0x98
mov byte [ebp - 0x72], 1
movd xmm0, eax
mov eax, 0x10
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
psrad xmm0, 0x18
xorps xmm1, xmm0
movd xmm0, dword [ebp - 0x84]
andps xmm1, xmm2
punpcklbw xmm0, xmm0
packuswb xmm1, xmm1
punpcklwd xmm0, xmm0
packuswb xmm1, xmm1
psrad xmm0, 0x18
movd dword [ebp - 0x88], xmm1
movaps xmm1, xmmword [0x497bd0]
xorps xmm1, xmm0
movd xmm0, dword [ebp - 0x80]
punpcklbw xmm0, xmm0
andps xmm1, xmm2
punpcklwd xmm0, xmm0
packuswb xmm1, xmm1
psrad xmm0, 0x18
packuswb xmm1, xmm1
movd dword [ebp - 0x84], xmm1
movaps xmm1, xmmword [0x497be0]
xorps xmm1, xmm0
movd xmm0, dword [ebp - 0x7c]
punpcklbw xmm0, xmm0
andps xmm1, xmm2
punpcklwd xmm0, xmm0
psrad xmm0, 0x18
packuswb xmm1, xmm1
xorps xmm0, xmmword [0x497bf0]
andps xmm0, xmm2
packuswb xmm1, xmm1
packuswb xmm0, xmm0
packuswb xmm0, xmm0
movd dword [ebp - 0x80], xmm1
movd dword [ebp - 0x7c], xmm0
nop dword [eax]
lea ecx, [eax - 0x29]
xor byte [ebp + eax - 0x88], cl
inc eax
cmp eax, 0x15
jb 0x40aff0
lea eax, [ebp - 0x88]
mov byte [ebp - 0x72], 0
push eax
push dword [esi]
call edi
add esp, 8
test eax, eax
jne 0x40b04c
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x64], 0xfdadbd9b
mov dword [ebp - 0x60], 0xb098fca8
mov dword [ebp - 0x5c], 0x929892bc
mov word [ebp - 0x58], 0x97
mov byte [ebp - 0x56], 1
call fcn.0040e260
lea eax, [ebp - 0x64]
push eax
push dword [esi]
call edi
add esp, 8
test eax, eax
je 0x40b053
mov dl, 1
mov byte [ebp - 0x45], dl
jmp 0x40b056
mov dl, byte [ebp - 0x45]
mov esi, dword [esi + 4]
movaps xmm2, xmmword [0x497980]
movaps xmm0, xmmword [0x497af0]
test esi, esi
jne 0x40af13
mov ecx, dword [ebp - 0x44]
movaps xmm2, xmmword [0x497980]
movaps xmm0, xmmword [0x497af0]
mov eax, dword [ebp - 0x6c]
mov esi, dword [ebp - 0x4c]
inc eax
add esi, 4
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x4c], esi
cmp eax, dword [ecx]
jl 0x40af05
test dl, dl
jne 0x40b0f3
movaps xmm0, xmmword [0x497b30]
lea ecx, [ebp - 0x94]
sub esp, 0x18
mov dword [ebp - 0x74], 0x9e9c9191
movups xmmword [ebp - 0x94], xmm0
mov esi, esp
mov word [ebp - 0x70], 0x100
movaps xmm0, xmmword [0x497b10]
movups xmmword [ebp - 0x84], xmm0
mov dword [ebp - 0x54], esi
call fcn.0040e0c0
push ecx
lea eax, [ebp - 0x70]
mov ecx, esi
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.00413a50
call fcn.0040b220
add esp, 0x18
mov edi, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x2c]
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov eax, 0xf
mov dword [edi + 0x14], 0
movups xmm0, xmmword [ebp - 0x28]
mov byte [ebp - 0x28], 0
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], eax
cmp ecx, eax
jbe 0x40b164
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40b157
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ad4d
push ecx
push edx
call fcn.00480303
mov eax, dword [ebp - 0x14]
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
cmp eax, 0xf
jbe 0x40b1a9
mov edx, dword [ebp - 0x28]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x40b19f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ad4d
push ecx
push edx
call fcn.00480303
add esp, 8
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp ecx, 0xf
jbe 0x40ad09
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40acff
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ad4d
jmp 0x40acff
push ecx
push edx
call fcn.00480303
add esp, 8
mov eax, edi
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.0047ffc0
mov esp, ebp
pop ebp
ret