Function at 0x42ec45
Capabilities:
Encode data using xor
Read file on windows
Terminate process
Write file on windows

Disassembly:
push 0x7c
mov eax, 0x4cfd53
call fcn.004b17f0
xor eax, eax
push 0x2a
mov word [ebp - 0x88], ax
xor ebx, ebx
lea eax, [ebp - 0x86]
push ebx
push eax
call fcn.004ac220
add esp, 0xc
call fcn.0049d1fb
push eax
lea ecx, [ebp - 0x14]
call fcn.0042149e
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], ebx
cmp dword [0x50a1c0], ebx
je 0x42ecb5
push ecx
mov eax, esp
mov dword [ebp - 0x38], esp
push dword [0x50a154]
push str._s.Start.dat
push eax
call fcn.00466a00
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
call fcn.00466100
pop ecx
pop ecx
mov byte [ebp - 4], 1
jmp 0x42ece3
push ebx
push ebx
push ebx
push ecx
mov eax, esp
mov dword [ebp - 0x38], esp
push dword [0x50a154]
push str._s.Start.dat
push eax
call fcn.00466a00
add esp, 0xc
push 1
lea ecx, [ebp - 0x24]
call fcn.00479070
add esp, 0x14
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x14]
call fcn.00423aeb
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.0042101a
push ecx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x38], esp
mov ecx, esp
push eax
call fcn.00423aca
call fcn.00469380
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, dword [ebp - 0x14]
pop ecx
cmp eax, ebx
je 0x42edc2
push ebx
push ebx
push 3
push ebx
push 1
push 0xc0000000
push edi
mov dword [ebp - 0x24], ebx
call esi
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
jne 0x42ed61
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
push eax
push edi
push str._TTL:_ValidateExpireTtl:_file_exists_but_cannot_open_it:__s__LE_d
push ecx
call fcn.00466a00
add esp, 0x10
call fcn.0042c5e1
pop ecx
jmp 0x42f14e
push ecx
mov eax, esp
mov dword [ebp - 0x38], esp
push edi
push str.TTL:_ValidateExpireTtl:_reading_existing__s
push eax
call fcn.00466a00
add esp, 0xc
call fcn.0042c5e1
pop ecx
push ebx
lea eax, [ebp - 0x24]
push eax
push 0x2c
lea eax, [ebp - 0x88]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42edf4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
push eax
push edi
push str._TTL:_ValidateExpireTtl:_file_opened_OK__but_cannot_be_read_from:__s__LE_d
push ecx
call fcn.00466a00
add esp, 0x10
call fcn.0042c5e1
pop ecx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
push edi
call esi
mov dword [ebp - 0x24], eax
cmp eax, 0xffffffff
jne 0x42f0b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
mov ecx, esp
mov dword [ebp - 0x40], esp
push eax
push edi
push str._TTL:_ValidateExpireTtl:_file_does_not_exist__and_cannot_create_it:__s__LE_d
jmp 0x42ed4d
cmp dword [ebp - 0x24], 0x2c
je 0x42ee0c
push ecx
mov eax, esp
mov dword [ebp - 0x38], esp
push edi
push dword [ebp - 0x24]
push str._TTL:_ValidateExpireTtl:_file_opened_OK__but_could_only_read__d_bytes_from_it:__s
push eax
jmp 0x42edab
xor edx, edx
lea eax, [ebp - 0x88]
xor ecx, ecx
lea esi, [ecx + 0x21]
xor dword [eax], esi
xor edx, dword [eax]
add eax, 4
inc ecx
cmp ecx, 0xa
jb 0x42ee16
push ebx
cmp edx, dword [ebp - 0x60]
je 0x42ee44
push str.Expiration
push str.Package_expired_
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.004aece0
pop ecx
mov dword [ebp - 0x4c], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x48], edx
call fcn.0042c026
mov eax, dword [ebp - 0x4c]
sub eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x48]
sbb ecx, dword [ebp - 0x40]
push ebx
mov esi, 0x15180
push esi
push ecx
push eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], ecx
call fcn.004b1fa0
cmp edx, ebx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], edx
jl 0x42ee9a
jg 0x42ee8e
cmp eax, ebx
jb 0x42ee9a
lea eax, [ebp - 0x54]
call fcn.0042bf64
test eax, eax
jge 0x42eecd
mov eax, dword [ebp - 0x40]
mov edi, dword [ebp - 0x44]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x54]
call fcn.0042bf64
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
push eax
push dword [ebp - 0x30]
push edi
push str._TTL:_ValidateExpireTtl:_anti_clock_hack:_Now___LastSeen_dd__dh
push ecx
call fcn.00466a00
add esp, 0x14
call fcn.0042c5e1
inc dword [ebp - 0x68]
pop ecx
push 0xffffffffffffffff
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x5c]
call fcn.0042c026
mov eax, dword [ebp - 0x4c]
sub eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x48]
sbb ecx, dword [ebp - 0x58]
push ebx
push esi
push ecx
push eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], ecx
call fcn.004b1fa0
mov edi, edx
cmp edi, ebx
mov dword [ebp - 0x54], eax
jl 0x42ef14
jg 0x42ef08
cmp eax, ebx
jb 0x42ef14
lea eax, [ebp - 0x3c]
call fcn.0042bf64
test eax, eax
jge 0x42ef4e
mov esi, dword [ebp - 0x54]
lea eax, [ebp - 0x3c]
call fcn.0042bf64
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
push eax
mov eax, edi
push eax
push esi
push str._TTL:_ValidateExpireTtl:_incorrect_now___start_date__now___started_:_Age_dd__dh
push ecx
call fcn.00466a00
add esp, 0x14
call fcn.0042c5e1
inc dword [ebp - 0x68]
pop ecx
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov ecx, dword [ebp - 0x68]
mov eax, dword [0x50a1bc]
xor esi, esi
add ecx, dword [ebp - 0x54]
cdq
adc esi, edi
cmp esi, edx
jl 0x42ef71
jg 0x42ef68
cmp ecx, eax
jbe 0x42ef71
mov dword [ebp - 0x20], 1
jmp 0x42ef74
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x4c]
push eax
lea esi, [ebp - 0x38]
call fcn.0042c082
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x5c]
push eax
lea esi, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.0042c082
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x40]
push ecx
mov esi, esp
mov dword [ebp - 0x40], edx
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x40], esp
push dword [ebp - 0x20]
mov dword [ebp - 0x50], edi
mov edi, dword [ebp - 0x28]
push dword [edi]
push dword [eax]
push ecx
push edx
push dword [ebp - 0x68]
push dword [0x50a1bc]
push str.TTL:_TtlDays_d__Penalty_d__Age_d__LastSeen_d_days_ago__Started_s__Now_s__JustExpired_d
push esi
call fcn.00466a00
add esp, 0x24
call fcn.0042c5e1
pop ecx
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
call fcn.0042101a
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x38]
add ecx, 0xfffffff0
call fcn.0042101a
cmp dword [ebp - 0x20], ebx
je 0x42effa
mov dword [ebp - 0x64], 1
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov edi, dword [ebp - 0x64]
lea ecx, [ebp - 0x88]
call fcn.0042ec28
push ebx
push ebx
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 0x1c]
push eax
push 0x2c
lea eax, [ebp - 0x88]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x42f05f
call esi
push ecx
mov ecx, esp
mov dword [ebp - 0x40], esp
push eax
push dword [ebp - 0x14]
push str.TTL:_ValidateExpireTtl:_Create__s_:_cannot_write_to_file__LE_d
push ecx
call fcn.00466a00
add esp, 0x10
call fcn.0042c5e1
pop ecx
cmp dword [ebp - 0x1c], 0x2c
je 0x42f088
call esi
push ecx
mov ecx, esp
mov dword [ebp - 0x40], esp
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
push str.TTL:_ValidateExpireTtl:_Create__s_:_wrote_to_file__but_only__d_bytes__LE_d
push ecx
call fcn.00466a00
add esp, 0x14
call fcn.0042c5e1
pop ecx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x20], ebx
jne 0x42f0a2
cmp edi, 0xe1f
je 0x42f14b
push ebx
push str.Expiration
push str.Package_expired
jmp 0x42ee36
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0x88]
push eax
call esi
lea eax, [ebp - 0x78]
push eax
call esi
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x64], 0xe1f
mov dword [ebp - 0x68], ebx
call fcn.0042ec28
push ebx
lea eax, [ebp - 0x1c]
push eax
push 0x2c
mov eax, ecx
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x42f115
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
mov ecx, esp
mov dword [ebp - 0x40], esp
push eax
push edi
push str.TTL:_ValidateExpireTtl:_Create__s_:_cannot_write_to_file__LE_d
push ecx
call fcn.00466a00
add esp, 0x10
call fcn.0042c5e1
pop ecx
cmp dword [ebp - 0x1c], 0x2c
je 0x42f140
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
mov ecx, esp
mov dword [ebp - 0x40], esp
push eax
push dword [ebp - 0x1c]
push edi
push str.TTL:_ValidateExpireTtl:_Create__s_:_wrote_to_file__but_only__d_bytes__LE_d
push ecx
call fcn.00466a00
add esp, 0x14
call fcn.0042c5e1
pop ecx
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42f14e
mov edi, dword [ebp - 0x14]
lea ecx, [edi - 0x10]
call fcn.0042101a
call fcn.004b18c8
ret