Function at 0x40f990
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45fe44
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x476018]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov eax, dword [ebp + 8]
mov esi, 0x4fea1c
mov dword [0x4fea44], eax
mov dword [0x4fea48], ecx
call fcn.00417650
xor eax, eax
mov dword [ebp - 0x54], 0xf
mov dword [ebp - 0x58], eax
mov byte [ebp - 0x68], al
push eax
mov ebx, 0x104
lea esi, [ebp - 0x68]
mov dword [ebp - 4], eax
call fcn.00401120
push str.Protection:_Auth2
call dword [sym.imp.VMProtectSDK32.dll_VMProtectBeginUltra]
xor ebx, ebx
cmp edi, ebx
jne 0x40fa49
push 0x100
push ebx
push 0x505dc8
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
mov edi, edi
mov dl, byte [eax + 0x477e08]
xor dl, 0xb0
mov byte [eax + 0x505dc8], dl
inc eax
cmp eax, 0xff
jl 0x40fa20
mov eax, 0x505dc8
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40fa40
jmp 0x40fa97
cmp edi, 1
jne 0x40faa8
push 0x100
push ebx
push 0x505dc8
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
jmp 0x40fa70
mov cl, byte [eax + 0x477f08]
xor cl, 0xb0
mov byte [eax + 0x505dc8], cl
inc eax
cmp eax, 0xff
jl 0x40fa70
mov eax, 0x505dc8
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40fa90
sub eax, edx
mov edi, eax
mov eax, 0x505dc8
lea esi, [ebp - 0x68]
call fcn.004013c0
push 7
mov eax, str.license
lea ecx, [ebp - 0x68]
call fcn.00405260
mov edi, 5
mov eax, 0x46d80c
lea esi, [ebp - 0x30]
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
call fcn.004013c0
mov eax, 0x479af4
mov byte [ebp - 4], 1
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40fae2
sub eax, edx
push eax
mov eax, 0x479af4
lea ecx, [ebp - 0x30]
call fcn.00405260
push 6
mov eax, 0x46f74c
lea ecx, [ebp - 0x30]
call fcn.00405260
mov eax, 0x4fea1c
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x40fb10
sub eax, ecx
push eax
mov eax, 0x4fea1c
lea ecx, [ebp - 0x30]
call fcn.00405260
push 1
sub esp, 0x1c
mov ecx, esp
mov esi, 0xf
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], esi
lea edx, [ebp - 0x30]
mov dword [ebp - 0xec], esp
mov byte [ecx], bl
push edx
or eax, 0xffffffff
xor ebx, ebx
call fcn.004012e0
sub esp, 0x1c
mov ecx, esp
mov byte [ebp - 4], 2
lea eax, [ebp - 0x68]
mov dword [ebp - 0xf0], esp
push eax
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], ebx
or eax, 0xffffffff
mov byte [ecx], bl
call fcn.004012e0
xor ecx, ecx
lea edi, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.00411de0
mov byte [ebp - 4], 3
cmp dword [ebp - 0x38], 0x10
mov eax, dword [ebp - 0x4c]
jae 0x40fb8f
mov eax, edi
lea ecx, [ebp - 0xa4]
push ecx
mov dword [ebp - 0xe8], eax
mov dword [ebp - 0xe4], eax
call fcn.00401a00
lea edx, [ebp - 0xa4]
push edx
lea edx, [ebp - 0xe8]
mov byte [ebp - 4], 4
call fcn.004023c0
xor ebx, ebx
mov eax, 0x100
mov dword [ebp - 0xbc], ebx
mov dword [ebp - 0xb8], ebx
mov dword [ebp - 0xb4], ebx
mov dword [ebp - 0xb0], ebx
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0xa8], eax
lea ecx, [ebp - 0xbc]
mov dword [ebp - 0xe0], ecx
mov dword [ebp - 0xdc], ebx
mov dword [ebp - 0xd8], ebx
mov dword [ebp - 0xd4], ebx
mov dword [ebp - 0xd0], ebx
mov dword [ebp - 0xcc], ebx
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0xc4], 0x144
mov byte [ebp - 0xc0], bl
lea edx, [ebp - 0xe0]
push edx
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 6
call fcn.00401be0
cmp dword [ebp - 0xa4], ebx
jne 0x40fd07
mov eax, dword [ebp - 0xd4]
mov esi, dword [sym.imp.MSVCR100.dll_free]
push eax
call esi
mov ecx, dword [ebp - 0xd8]
mov edi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
push ecx
call edi
mov edx, dword [ebp - 0xb4]
add esp, 4
push edx
call esi
mov eax, dword [ebp - 0xb8]
add esp, 4
push eax
call edi
mov eax, dword [ebp - 0x90]
add esp, 4
mov ebx, eax
test eax, eax
je 0x40fc9d
call fcn.00401b70
push ebx
call edi
add esp, 4
mov ecx, dword [ebp - 0x84]
push ecx
call esi
mov edx, dword [ebp - 0x88]
add esp, 4
push edx
call edi
mov esi, 0x10
add esp, 4
cmp dword [ebp - 0x38], esi
jb 0x40fcc8
mov eax, dword [ebp - 0x4c]
push eax
call edi
add esp, 4
xor ebx, ebx
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], bl
cmp dword [ebp - 0x1c], esi
jb 0x40fce5
mov ecx, dword [ebp - 0x30]
push ecx
call edi
add esp, 4
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
cmp dword [ebp - 0x54], esi
jb 0x40fd00
mov edx, dword [ebp - 0x68]
push edx
call edi
add esp, 4
xor al, al
jmp 0x40ff32
mov edx, str.success
lea esi, [ebp - 0xa4]
call fcn.00401f00
mov edi, 0xa
cmp word [eax + 0xe], di
je 0x40fd59
mov edx, str.NotFound
call fcn.00401f00
cmp word [eax + 0xe], di
jne 0x40fe65
mov eax, dword [0x4fea48]
mov ecx, dword [0x4fea44]
push ebx
push 0x40f2c0
push eax
push 0x89
push ecx
call dword [sym.imp.USER32.dll_DialogBoxParamA]
jmp 0x40fe65
mov edx, str.name
call fcn.00401f00
mov edx, 0x1000
test word [eax + 0xe], dx
jne 0x40fd71
mov eax, dword [eax + 8]
mov edi, dword [sym.imp.MSVCR100.dll_strcpy_s]
push eax
push 0x64
push 0x4fea4c
call edi
add esp, 0xc
mov ecx, 0x479af4
mov eax, 0x4fea4c
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40fdb0
test dl, dl
je 0x40fdac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40fdb0
add eax, 2
add ecx, 2
test dl, dl
jne 0x40fd90
xor eax, eax
jmp 0x40fdb5
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x40fdbe
call fcn.0040ff50
mov edx, str.hwid
lea esi, [ebp - 0xa4]
call fcn.00401f00
mov ecx, 0x1000
test word [eax + 0xe], cx
jne 0x40fddc
mov eax, dword [eax + 8]
push eax
push 0x24
push 0x4fead4
call edi
add esp, 0xc
mov ecx, 0x4fea1c
mov eax, 0x4fead4
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40fe13
test dl, dl
je 0x40fe0f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40fe13
add eax, 2
add ecx, 2
test dl, dl
jne 0x40fdf3
xor eax, eax
jmp 0x40fe18
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x40fe3a
mov edx, dword [0x4fea48]
mov eax, dword [0x4fea44]
push ebx
push 0x40f2c0
push edx
push 0x89
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
mov edx, str.expireAt
lea esi, [ebp - 0xa4]
call fcn.00401f00
mov ecx, 0x1000
test word [eax + 0xe], cx
jne 0x40fe58
mov eax, dword [eax + 8]
push eax
push 0x24
push 0x4feaf8
call edi
add esp, 0xc
mov eax, 1
mov dword [0x4feb1c], eax
mov dword [0x4feb20], eax
call dword [sym.imp.VMProtectSDK32.dll_VMProtectEnd]
mov edx, dword [ebp - 0xd4]
mov edi, dword [sym.imp.MSVCR100.dll_free]
push edx
call edi
mov eax, dword [ebp - 0xd8]
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
push eax
call esi
mov ecx, dword [ebp - 0xb4]
add esp, 4
push ecx
call edi
mov edx, dword [ebp - 0xb8]
add esp, 4
push edx
call esi
mov eax, dword [ebp - 0x90]
add esp, 4
mov ebx, eax
test eax, eax
je 0x40fecd
call fcn.00401b70
push ebx
call esi
add esp, 4
mov eax, dword [ebp - 0x84]
push eax
call edi
mov ecx, dword [ebp - 0x88]
add esp, 4
push ecx
call esi
mov edi, 0x10
add esp, 4
cmp dword [ebp - 0x38], edi
jb 0x40fef8
mov edx, dword [ebp - 0x4c]
push edx
call esi
add esp, 4
xor ebx, ebx
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], bl
cmp dword [ebp - 0x1c], edi
jb 0x40ff15
mov eax, dword [ebp - 0x30]
push eax
call esi
add esp, 4
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
cmp dword [ebp - 0x54], edi
jb 0x40ff30
mov ecx, dword [ebp - 0x68]
push ecx
call esi
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004183ef
mov esp, ebp
pop ebp
ret 4