Function at 0x4104d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4605b4
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.004181a0
xor eax, eax
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x4c], al
push eax
mov ebx, 0x104
lea esi, [ebp - 0x4c]
mov dword [ebp - 4], eax
call fcn.004010f0
push str.Protection:_Auth2
call dword [sym.imp.VMProtectSDK32.dll_VMProtectBeginUltra]
xor ebx, ebx
cmp edi, ebx
jne 0x410589
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 0x410560
mov eax, 0x505dc8
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x410580
jmp 0x4105d7
cmp edi, 1
jne 0x4105e8
push 0x100
push ebx
push 0x505dc8
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
jmp 0x4105b0
mov cl, byte [eax + 0x477f08]
xor cl, 0xb0
mov byte [eax + 0x505dc8], cl
inc eax
cmp eax, 0xff
jl 0x4105b0
mov eax, 0x505dc8
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4105d0
sub eax, edx
mov edi, eax
mov eax, 0x505dc8
lea esi, [ebp - 0x4c]
call fcn.00401390
push 7
mov eax, str.license
lea ecx, [ebp - 0x4c]
call fcn.00405880
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.00401390
mov eax, 0x479af4
mov byte [ebp - 4], 1
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x410622
sub eax, edx
push eax
mov eax, 0x479af4
lea ecx, [ebp - 0x30]
call fcn.00405880
push 6
mov eax, 0x46f7a4
lea ecx, [ebp - 0x30]
call fcn.00405880
mov eax, 0x4fea1c
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x410650
sub eax, ecx
push eax
mov eax, 0x4fea1c
lea ecx, [ebp - 0x30]
call fcn.00405880
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.004012b0
sub esp, 0x1c
mov ecx, esp
mov byte [ebp - 4], 2
lea eax, [ebp - 0x4c]
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.004012b0
xor ecx, ecx
lea edi, [ebp - 0x68]
mov byte [ebp - 4], 1
call fcn.00412930
mov byte [ebp - 4], 3
cmp dword [ebp - 0x54], 0x10
mov eax, dword [ebp - 0x68]
jae 0x4106cf
mov eax, edi
lea ecx, [ebp - 0xa4]
push ecx
mov dword [ebp - 0xe8], eax
mov dword [ebp - 0xe4], eax
call fcn.00402040
lea edx, [ebp - 0xa4]
push edx
lea edx, [ebp - 0xe8]
mov byte [ebp - 4], 4
call fcn.00402a00
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.00402220
cmp dword [ebp - 0xa4], ebx
jne 0x410847
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 0x4107dd
call fcn.004021b0
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 - 0x54], esi
jb 0x410808
mov eax, dword [ebp - 0x68]
push eax
call edi
add esp, 4
xor ebx, ebx
mov dword [ebp - 0x54], 0xf
mov dword [ebp - 0x58], ebx
mov byte [ebp - 0x68], bl
cmp dword [ebp - 0x1c], esi
jb 0x410825
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 - 0x38], esi
jb 0x410840
mov edx, dword [ebp - 0x4c]
push edx
call edi
add esp, 4
xor al, al
jmp 0x410a24
mov edx, str.success
lea esi, [ebp - 0xa4]
call fcn.00402540
mov edi, 0xa
cmp word [eax + 0xe], di
sete al
test al, al
jne 0x41089a
mov edx, str.NotFound
call fcn.00402540
cmp word [eax + 0xe], di
jne 0x410895
mov eax, dword [0x4fea48]
mov ecx, dword [0x4fea44]
push ebx
push 0x40fdd0
push eax
push 0x89
push ecx
call dword [sym.imp.USER32.dll_DialogBoxParamA]
call fcn.00410b10
mov edx, str.name
call fcn.00402540
mov edx, 0x1000
test word [eax + 0xe], dx
jne 0x4108b2
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
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4108f0
test dl, dl
je 0x4108ec
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4108f0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4108d0
xor eax, eax
jmp 0x4108f5
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x4108fe
call fcn.00410a50
mov edx, str.hwid
lea esi, [ebp - 0xa4]
call fcn.00402540
mov ecx, 0x1000
test word [eax + 0xe], cx
jne 0x41091c
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 0x410953
test dl, dl
je 0x41094f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x410953
add eax, 2
add ecx, 2
test dl, dl
jne 0x410933
xor eax, eax
jmp 0x410958
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x41097f
mov edx, dword [0x4fea48]
mov eax, dword [0x4fea44]
push ebx
push 0x40fdd0
push edx
push 0x89
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
call fcn.00410b10
mov edx, str.expireAt
lea esi, [ebp - 0xa4]
call fcn.00402540
mov ecx, 0x1000
test word [eax + 0xe], cx
jne 0x41099d
mov eax, dword [eax + 8]
push eax
push 0x24
push 0x4feaf8
call edi
mov eax, 1
add esp, 0xc
mov dword [0x4feb1c], eax
mov dword [0x4feb20], eax
call dword [sym.imp.VMProtectSDK32.dll_VMProtectEnd]
mov edx, dword [ebp - 0xd4]
mov esi, dword [sym.imp.MSVCR100.dll_free]
push edx
call esi
mov eax, dword [ebp - 0xd8]
mov edi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
push eax
call edi
mov ecx, dword [ebp - 0xb4]
add esp, 4
push ecx
call esi
mov edx, dword [ebp - 0xb8]
add esp, 4
push edx
call edi
add esp, 4
lea edi, [ebp - 0xa4]
mov byte [ebp - 4], 3
call fcn.004020f0
lea esi, [ebp - 0x68]
call fcn.0040cb60
lea esi, [ebp - 0x30]
call fcn.0040cb60
lea esi, [ebp - 0x4c]
call fcn.0040cb60
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.00418a8f
mov esp, ebp
pop ebp
ret 4