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

Disassembly:
push 0xa4
mov eax, 0x4f2d4d
call fcn.004d2094
xor eax, eax
push 0x2a
mov word [ebp - 0x90], ax
xor ebx, ebx
lea eax, [ebp - 0x8e]
push ebx
push eax
call fcn.004cc1d0
add esp, 0xc
call fcn.004bc4b7
push eax
lea ecx, [ebp - 0x18]
call fcn.0042636f
mov dword [ebp - 4], ebx
mov dword [ebp - 0x30], ebx
cmp dword [0x543338], ebx
je 0x43edc7
push ecx
mov eax, esp
mov dword [ebp - 0x1c], esp
push dword [0x5432bc]
push str._s.Start.dat
push eax
call fcn.00478210
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
call fcn.004778e0
pop ecx
pop ecx
mov byte [ebp - 4], 1
jmp 0x43edf6
push ebx
push ebx
push ebx
push ecx
mov eax, esp
mov dword [ebp - 0x1c], esp
push dword [0x5432bc]
push str._s.Start.dat
push eax
call fcn.00478210
add esp, 0xc
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.00489a30
add esp, 0x18
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x18]
call fcn.00424f10
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0042201a
push ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], esp
mov ecx, esp
push eax
call fcn.00424eef
call fcn.0047ad60
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, dword [ebp - 0x18]
pop ecx
cmp eax, ebx
je 0x43eed5
push ebx
push ebx
push 3
push ebx
push 1
push 0xc0000000
push edi
mov dword [ebp - 0x14], ebx
call esi
mov dword [ebp - 0x38], eax
cmp eax, 0xffffffff
jne 0x43ee74
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
push edi
push str._TTL:_ValidateExpireTtl:_file_exists_but_cannot_open_it:__s__LE_d
push ecx
call fcn.00478210
add esp, 0x10
call fcn.0043b6e5
pop ecx
jmp 0x43f337
push ecx
mov eax, esp
mov dword [ebp - 0x1c], esp
push edi
push str.TTL:_ValidateExpireTtl:_reading_existing__s
push eax
call fcn.00478210
add esp, 0xc
call fcn.0043b6e5
pop ecx
push ebx
lea eax, [ebp - 0x14]
push eax
push 0x2c
lea eax, [ebp - 0x90]
push eax
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43ef07
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
push edi
push str._TTL:_ValidateExpireTtl:_file_opened_OK__but_cannot_be_read_from:__s__LE_d
push ecx
call fcn.00478210
add esp, 0x10
call fcn.0043b6e5
pop ecx
push dword [ebp - 0x38]
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 - 0x14], eax
cmp eax, 0xffffffff
jne 0x43f29b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push eax
push edi
push str._TTL:_ValidateExpireTtl:_file_does_not_exist__and_cannot_create_it:__s__LE_d
jmp 0x43ee60
cmp dword [ebp - 0x14], 0x2c
je 0x43ef1f
push ecx
mov eax, esp
mov dword [ebp - 0x1c], esp
push edi
push dword [ebp - 0x14]
push str._TTL:_ValidateExpireTtl:_file_opened_OK__but_could_only_read__d_bytes_from_it:__s
push eax
jmp 0x43eebe
xor edx, edx
lea eax, [ebp - 0x90]
xor ecx, ecx
lea esi, [ecx + 0x21]
xor dword [eax], esi
xor edx, dword [eax]
add eax, 4
inc ecx
cmp ecx, 0xa
jb 0x43ef29
cmp edx, dword [ebp - 0x68]
je 0x43ef57
push ebx
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]
xor eax, eax
mov word [ebp - 0xb0], ax
lea edi, [ebp - 0xae]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
push 0xffffffffffffffff
lea eax, [ebp - 0xb0]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00439bf5
push 0xffffffffffffffff
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x98]
call fcn.00439bf5
mov edi, dword [ebp - 0x5c]
sub edi, dword [ebp - 0x98]
mov eax, dword [ebp - 0x58]
sbb eax, dword [ebp - 0x94]
lea esi, [ebp - 0x54]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x2c], edi
call fcn.0043af4b
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x5c]
push eax
lea esi, [ebp - 0x50]
mov byte [ebp - 4], 3
call fcn.0043af4b
mov edx, dword [ebp - 0x34]
push ecx
mov byte [ebp - 4], 4
mov ecx, esp
mov dword [ebp - 0x1c], esp
push dword [edx]
push dword [eax]
push str.TTL:_Now_s__LastSeen_s
push ecx
call fcn.00478210
add esp, 0x10
call fcn.0043b6e5
pop ecx
mov ecx, dword [ebp - 0x50]
add ecx, 0xfffffff0
call fcn.0042201a
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x54]
add ecx, 0xfffffff0
call fcn.0042201a
push ebx
mov esi, 0x15180
push esi
push dword [ebp - 0x28]
push edi
call fcn.004d27b0
cmp edx, ebx
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], edx
jl 0x43f03e
jg 0x43f032
cmp eax, ebx
jb 0x43f03e
lea eax, [ebp - 0x2c]
call fcn.0043af1c
test eax, eax
jge 0x43f076
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x2c]
call fcn.0043af1c
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
push dword [ebp - 0x40]
push dword [ebp - 0x44]
push str._TTL:_ValidateExpireTtl:_anti_clock_hack:_Now___LastSeen___I64d_days___d_hrs
push ecx
call fcn.00478210
add esp, 0x14
call fcn.0043b6e5
inc dword [ebp - 0x70]
pop ecx
push 0xffffffffffffffff
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0xa0]
call fcn.00439bf5
mov eax, dword [ebp - 0x5c]
sub eax, dword [ebp - 0xa0]
mov ecx, dword [ebp - 0x58]
sbb ecx, dword [ebp - 0x9c]
push ebx
push esi
push ecx
push eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
call fcn.004d27b0
cmp edx, ebx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], edx
jl 0x43f0c7
jg 0x43f0bb
cmp eax, ebx
jb 0x43f0c7
lea eax, [ebp - 0x20]
call fcn.0043af1c
test eax, eax
jge 0x43f107
mov eax, dword [ebp - 0x40]
mov esi, dword [ebp - 0x44]
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x20]
call fcn.0043af1c
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
push dword [ebp - 0x60]
push esi
push str._TTL:_ValidateExpireTtl:_incorrect_now___start_date__now___started_:_Age___I64d_days___d_hrs
push ecx
call fcn.00478210
add esp, 0x14
call fcn.0043b6e5
inc dword [ebp - 0x70]
pop ecx
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov ecx, dword [ebp - 0x70]
mov eax, dword [0x543334]
xor esi, esi
add ecx, dword [ebp - 0x44]
cdq
adc esi, dword [ebp - 0x40]
cmp esi, edx
jl 0x43f12b
jg 0x43f122
cmp ecx, eax
jbe 0x43f12b
mov dword [ebp - 0x34], 1
jmp 0x43f12e
mov dword [ebp - 0x34], ebx
lea eax, [ebp - 0x5c]
push eax
lea esi, [ebp - 0x1c]
call fcn.0043afc6
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0xa0]
push eax
lea esi, [ebp - 0x50]
mov byte [ebp - 4], 5
call fcn.0043afc6
mov esi, eax
push ebx
push 0x3c
mov byte [ebp - 4], 6
push dword [ebp - 0x28]
push edi
call fcn.004d27b0
push ebx
push 0xe10
push dword [ebp - 0x28]
mov dword [ebp - 0x64], eax
push edi
mov dword [ebp - 0x60], edx
call fcn.004d27b0
mov ecx, dword [ebp - 0x4c]
mov edi, dword [ebp - 0x54]
push ecx
mov dword [ebp - 0x28], edx
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x28], esp
mov dword [ebp - 0x48], edx
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x48], edx
mov edx, esp
push dword [ebp - 0x34]
push dword [edi]
push dword [esi]
push dword [ebp - 0x64]
push eax
push ecx
push dword [ebp - 0x44]
push dword [ebp - 0x70]
push dword [0x543334]
push str.TTL:_TtlDays_d__Penalty_d__Age_d__LastSeen_d_days__d_hours__d_minutes_ago__Started_s__Now_s__JustExpired_d
push edx
call fcn.00478210
add esp, 0x2c
call fcn.0043b6e5
pop ecx
mov ecx, dword [ebp - 0x50]
add ecx, 0xfffffff0
call fcn.0042201a
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.0042201a
cmp dword [ebp - 0x34], ebx
je 0x43f1e3
mov dword [ebp - 0x6c], 1
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov edi, dword [ebp - 0x6c]
lea ecx, [ebp - 0x90]
call fcn.0043ed37
push ebx
push ebx
push ebx
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 0x30]
push eax
push 0x2c
lea eax, [ebp - 0x90]
push eax
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x43f248
call esi
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push eax
push dword [ebp - 0x18]
push str.TTL:_ValidateExpireTtl:_Create__s_:_cannot_write_to_file__LE_d
push ecx
call fcn.00478210
add esp, 0x10
call fcn.0043b6e5
pop ecx
cmp dword [ebp - 0x30], 0x2c
je 0x43f271
call esi
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push eax
push dword [ebp - 0x30]
push dword [ebp - 0x18]
push str.TTL:_ValidateExpireTtl:_Create__s_:_wrote_to_file__but_only__d_bytes__LE_d
push ecx
call fcn.00478210
add esp, 0x14
call fcn.0043b6e5
pop ecx
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x34], ebx
jne 0x43f28b
cmp edi, 0xe1f
je 0x43f334
push ebx
push str.Expiration
push str.Package_expired
jmp 0x43ef49
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0x90]
push eax
call esi
lea eax, [ebp - 0x80]
push eax
call esi
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x6c], 0xe1f
mov dword [ebp - 0x70], ebx
call fcn.0043ed37
push ebx
lea eax, [ebp - 0x30]
push eax
push 0x2c
mov eax, ecx
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x43f2fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push eax
push edi
push str.TTL:_ValidateExpireTtl:_Create__s_:_cannot_write_to_file__LE_d
push ecx
call fcn.00478210
add esp, 0x10
call fcn.0043b6e5
pop ecx
cmp dword [ebp - 0x30], 0x2c
je 0x43f329
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push eax
push dword [ebp - 0x30]
push edi
push str.TTL:_ValidateExpireTtl:_Create__s_:_wrote_to_file__but_only__d_bytes__LE_d
push ecx
call fcn.00478210
add esp, 0x14
call fcn.0043b6e5
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x43f337
mov edi, dword [ebp - 0x18]
lea ecx, [edi - 0x10]
call fcn.0042201a
call fcn.004d216c
ret