Function at 0x4211e4
Capabilities:
Get disk information
Print debug messages
Resolve function by parsing pe exports
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x874
mov eax, dword [0x51a448]
xor eax, esp
mov dword [esp + 0x870], eax
and dword [esp + 0x14], 0
lea eax, [esp + 0x44]
push ebx
push esi
push edi
push 0x1c0
mov ebx, ecx
push 0
push eax
mov dword [esp + 0x58], ebx
call fcn.0049ef70
mov al, byte [ebx + 0x14]
add esp, 0xc
mov byte [esp + 0x17], al
lea eax, [esp + 0x230]
mov dword [esp + 0x48], 0x5c3a41
mov byte [esp + 0xf], 0
push 0x40
push 0
push eax
call fcn.0049ef70
add esp, 0xc
lea edi, [esp + 0x210]
xor eax, eax
push 8
pop ecx
push 0x14000
rep stosd dword es:[edi], eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov dword [esp + 0x38], edi
test edi, edi
je 0x421cbe
mov ecx, 0x400
lea esi, [edi + 0x104]
mov edi, esi
mov edx, 0x800
add esi, ecx
mov eax, 0x5066b0
mov dword [esp + 0x68], esi
xorps xmm0, xmm0
add esi, edx
movlpd qword [esp + 0x88], xmm0
mov dword [esp + 0x6c], esi
add esi, edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], esi
add esi, 0x1000
mov dword [esp + 0x24], esi
add esi, ecx
mov dword [esp + 0x2c], esi
add esi, ecx
mov dword [esp + 0x3c], esi
add esi, ecx
mov dword [esp + 0x40], esi
add esi, ecx
mov dword [esp + 0x44], esi
add esi, ecx
mov dword [esp + 0x1f0], esi
add esi, edx
mov dword [esp + 0x1f4], esi
add esi, ecx
mov dword [esp + 0x1f8], esi
add esi, ecx
xor ecx, ecx
mov dword [esp + 0x1c], eax
mov byte [esp + 0x90], cl
mov byte [esp + 0xd0], cl
mov byte [esp + 0x150], cl
mov dword [esp + 0x1d0], ecx
mov dword [esp + 0x1d4], ecx
mov dword [esp + 0x1dc], ecx
mov dword [esp + 0x1d8], ecx
mov dword [esp + 0x1e0], ecx
mov dword [esp + 0x1e4], eax
mov dword [esp + 0x1ec], ecx
cmp byte [0x51e6c9], cl
je 0x421360
lea eax, [ebx + 0x238]
push eax
push str.K7ARW_Info__s_n
push edi
call fcn.00402a6e
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [ebx + 0x238]
jmp 0x421374
cmp al, 0xd
je 0x421370
cmp al, 0xa
jne 0x421373
mov byte [ecx], 0x20
inc ecx
mov al, byte [ecx]
test al, al
jne 0x421368
lea eax, [esp + 0x1e0]
push eax
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
jne 0x42139b
lea ecx, [esp + 0x1e0]
call fcn.0048dd30
mov ecx, dword [esp + 0x1e0]
lea edx, [esp + 0x204]
call fcn.0048de60
test eax, eax
je 0x4213d7
cmp dword [esp + 0x204], 0
je 0x4213d7
mov ecx, dword [esp + 0x1e0]
mov edx, esi
mov dword [esp + 0x208], edx
add esi, 0x4b0
call fcn.0048df20
call fcn.0040a6a4
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x20]
mov ecx, dword [esp + 0x3c]
push edx
push ecx
mov byte [eax], 0
mov edx, eax
mov byte [ecx], 0
mov ecx, dword [ebx + 0xc]
call fcn.0041f348
pop ecx
pop ecx
mov ecx, dword [esp + 0x2c]
lea eax, [ebx + 0x134]
cmp byte [ecx], 0
jne 0x421414
push eax
push ecx
call fcn.004c99d0
pop ecx
pop ecx
mov eax, dword [ebx + 0x638]
cmp eax, dword [ebx + 0xc]
jne 0x42178b
cmp dword [ebx + 0x128], 0x44435054
jne 0x421469
mov eax, dword [0x52e6ec]
mov dword [esp + 0x1c], str.:Decoy_Trapped
test eax, eax
jne 0x421456
mov eax, str.wndClassK7SentryMngr
push eax
push eax
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [0x52e6ec], eax
test eax, eax
je 0x421469
push 0
push 0x7530
push 0x1241
push eax
call dword [sym.imp.USER32.dll_SetTimer]
lea eax, [esp + 0x230]
push eax
push ecx
mov ecx, dword [ebx + 0x678]
lea edx, [ebx + 0x638]
call fcn.00420f64
cmp byte [0x51e6c9], 0
pop ecx
pop ecx
mov ecx, eax
mov dword [esp + 0x10], ecx
je 0x4214cc
mov eax, dword [ebx + 0x678]
sub eax, dword [ebx + 0x63c]
push eax
movzx eax, byte [ebx + 0x67c]
push ecx
push dword [ebx + 0x680]
push eax
push dword [ebx + 0x130]
push str.K7ARW_TID:_d_Image:_d_CodeBlockThreadCount:_d_TreeCount:_d_DetDiff:_u_n
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp byte [esp + 0x17], 0
je 0x42175d
push dword [ebx + 0x130]
and dword [esp + 0x2c], 0
push 0
push 0x1f03ff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [esp + 0x20], eax
test eax, eax
je 0x421516
push 0xdeaddead
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esp + 0x20]
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0xf], 0x49
cmp byte [0x51e6c9], 0
je 0x42153f
push dword [esp + 0x28]
push dword [ebx + 0x130]
push str.K7ARW_TID:_d_bTerminated:_d_n
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [esp + 0x10], 0
je 0x421695
xor ecx, ecx
inc ecx
xor eax, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x34], eax
test ecx, ecx
je 0x421744
mov ecx, dword [esp + eax*8 + 0x230]
mov dword [esp + 0x20], ecx
test ecx, ecx
je 0x421744
cmp dword [esp + eax*8 + 0x234], 0
je 0x421744
push ecx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [esp + 0x30], eax
test eax, eax
je 0x421643
mov ecx, eax
call fcn.0040a7b4
test eax, eax
je 0x4215d0
cmp byte [0x51e6c9], 0
je 0x4215c8
push dword [esp + 0x20]
push str.K7ARW_PID:_d_is_CRITICAL_n
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor ecx, ecx
mov dword [esp + 0x10], ecx
jmp 0x421639
push 0x104
call fcn.004c8d06
mov dword [esp + 0x2c], eax
pop ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + ecx*4 + 0x210], eax
test eax, eax
je 0x421613
mov ecx, dword [esp + 0x30]
mov edx, eax
call fcn.0041ea6e
mov eax, dword [esp + 0x28]
inc eax
push str.:Windowsexplorer.exe
push eax
call fcn.004c8c14
neg eax
pop ecx
sbb eax, eax
and dword [esp + 0x14], eax
pop ecx
push 0xdeaddead
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [esp + 0x28], eax
test eax, eax
je 0x421639
push 0x7530
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x51e6c9], 0
je 0x421675
mov eax, dword [esp + 0x34]
push dword [esp + eax*4 + 0x210]
push dword [esp + 0x2c]
push dword [esp + 0x28]
push str.K7ARW_PID:_d_bTerminated:_d__s_n
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x10]
inc eax
mov byte [esp + 0xf], 0x53
mov dword [esp + 0x34], eax
cmp eax, 8
jb 0x421557
jmp 0x421744
cmp dword [ebx + 0x680], 4
jb 0x421744
push dword [ebx + 0xc]
and dword [esp + 0x24], 0
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [esp + 0x10], eax
test eax, eax
je 0x42171e
mov ecx, eax
call fcn.0040a7b4
test eax, eax
je 0x4216ee
cmp byte [0x51e6c9], 0
je 0x421714
push dword [ebx + 0xc]
push str.K7ARW_PID:_d_is_CRITICAL_n
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x421714
push 0xdeaddead
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [esp + 0x20], eax
test eax, eax
je 0x421714
push 0x7530
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x51e6c9], 0
je 0x421744
push dword [esp + 0x20]
push dword [ebx + 0xc]
push str.K7ARW_PID:_d_bTerminated:_d_since_multiple_injected_threads_n
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp byte [esp + 0xf], 0x53
push dword [esp + 0x1c]
jne 0x421756
push str.Generic_Ransomware__Type1_s_
jmp 0x421766
push str.Generic_Ransomware__Type2_s_
jmp 0x421766
push dword [esp + 0x1c]
push str.Generic_Ransomware__Type3_s_
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [esp + 0x24]
add esp, 0xc
push 0x800
push dword [esp + 0x30]
push eax
call fcn.004c9d56
add esp, 0xc
jmp 0x42194d
push str.Generic_Ransomware__Standalone_
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [esp + 0x20]
pop ecx
pop ecx
xor ecx, ecx
mov word [eax], cx
push dword [ebx + 0x12c]
push ecx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [esp + 0x1c], eax
push 0x800
test eax, eax
je 0x4218ed
push dword [esp + 0x70]
push eax
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x6c]
call fcn.0040cabe
mov eax, dword [esp + 0x10]
push 9
add eax, 2
push str.:WINDOWS
push eax
call fcn.004d8169
add esp, 0xc
test eax, eax
je 0x421882
mov eax, dword [esp + 0x10]
push 0xf
add eax, 2
push str.:PROGRAM_FILES
push eax
call fcn.004d8169
add esp, 0xc
test eax, eax
je 0x421882
mov ecx, dword [esp + 0x1c]
call fcn.0040a7b4
test eax, eax
je 0x421859
cmp byte [0x51e6c9], 0
je 0x42187b
push dword [ebx + 0x12c]
lea eax, [esp + 0x47c]
push str.K7ARW_PID:_d_is_CRITICAL_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x478]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x42187b
push 0xdeaddead
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x42187b
push 0x7530
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov byte [esp + 0xf], 0x53
jmp 0x4218e1
push dword [ebx + 0x130]
push 0
push 0x1f03ff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [esp + 0x10], eax
test eax, eax
je 0x4218d3
push 0xfffffffffffffff1
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x4218c4
push 0xdeaddead
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0xf], 0x49
push str.Generic_Ransomware__Injected_
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
pop ecx
pop ecx
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42194d
lea eax, [ebx + 0x134]
push eax
push dword [esp + 0x74]
call fcn.004c9d56
mov edx, dword [esp + 0x24]
add esp, 0xc
mov ecx, dword [esp + 0x6c]
call fcn.0040cabe
mov eax, dword [esp + 0x10]
push 9
add eax, 2
push str.:WINDOWS
push eax
call fcn.004d8169
add esp, 0xc
test eax, eax
je 0x421948
mov eax, dword [esp + 0x10]
push 0xf
add eax, 2
push str.:PROGRAM_FILES
push eax
call fcn.004d8169
add esp, 0xc
mov byte [esp + 0xf], 0x53
test eax, eax
jne 0x42194d
mov byte [esp + 0xf], 0x49
cmp byte [esp + 0xf], 0x49
mov ecx, dword [esp + 0x18]
mov al, byte [ecx]
mov byte [esp + 0x48], al
jne 0x42198f
push dword [ebx + 0x12c]
push ecx
push dword [ebx + 0x130]
push str.ThreadID__d____s__ProcessID__d_
push dword [esp + 0x78]
call fcn.0040cf04
add esp, 0x14
push dword [esp + 0x68]
push dword [esp + 0x1c]
call fcn.004cb981
pop ecx
pop ecx
mov ecx, dword [esp + 0x18]
xor eax, eax
push eax
push eax
push 0x400
push dword [esp + 0x30]
push 0xffffffffffffffff
push ecx
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x4219c0
push 0x400
push dword [esp + 0x1c]
push dword [esp + 0x2c]
call fcn.004cb853
add esp, 0xc
mov eax, dword [esp + 0x40]
mov edx, eax
mov ecx, dword [esp + 0x44]
push ecx
mov byte [eax], 0
mov byte [ecx], 0
mov ecx, dword [esp + 0x30]
call fcn.0041f2c0
cmp byte [esp + 0x13], 0x53
mov eax, 0x44524854
pop ecx
mov ecx, 0x454c4946
mov dword [esp + 0x54], ebx
cmove eax, ecx
mov dword [esp + 0x60], edi
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x80], eax
lea eax, [esp + 0x48]
push eax
mov dword [esp + 0x68], edi
mov word [esp + 0x74], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp byte [esp + 0xf], 0x53
mov dword [esp + 0x84], eax
jne 0x421c38
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x1d4]
push eax
lea eax, [esp + 0x1d4]
push eax
lea eax, [esp + 0x158]
push eax
lea eax, [esp + 0xdc]
push eax
lea eax, [esp + 0xa0]
push eax
lea edx, [esp + 0x9c]
call fcn.0040c63c
mov eax, dword [esp + 0x204]
xor ecx, ecx
add esp, 0x14
mov byte [eax], cl
mov eax, dword [esp + 0x1f4]
mov byte [eax], cl
mov eax, dword [esp + 0x1f8]
mov byte [eax], cl
lea ecx, [esp + 0x90]
push dword [esp + 0x1f8]
mov edx, dword [esp + 0x1f4]
push dword [esp + 0x1f8]
call fcn.0041f10d
pop ecx
pop ecx
call fcn.0040cd9c
test eax, eax
je 0x421af9
mov dword [esp + 0x20c], esi
mov edx, esi
mov esi, dword [esp + 0x24]
mov ecx, esi
call fcn.0040cdee
neg eax
sbb eax, eax
and dword [esp + 0x20c], eax
jmp 0x421afd
mov esi, dword [esp + 0x24]
cmp byte [esp + 0x17], 0
je 0x421c38
mov edx, dword [ebx + 0x678]
mov ecx, esi
call fcn.00420fd7
test eax, eax
je 0x421c38
push 0
call fcn.004c8af7
pop ecx
push dword [esp + 0x8c]
lea ecx, [esp + 0x94]
push dword [esp + 0x8c]
lea edx, [eax + 0x12c]
call fcn.0041de10
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x90]
push eax
lea eax, [esp + 0x54]
mov ecx, edx
push eax
push 1
push 0x20
push edi
call fcn.0041e70e
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
mov byte [esp + 0x71], al
xor esi, esi
mov edi, dword [esp + esi*4 + 0x210]
test edi, edi
je 0x421c15
lea eax, [esp + 0x90]
mov ecx, edi
push eax
lea edx, [esp + 0x8c]
call fcn.0040c6fe
pop ecx
test eax, eax
je 0x421c15
push 0x208
lea eax, [esp + 0x274]
push 0
push eax
call fcn.0049ef70
add esp, 0xc
lea eax, [esp + 0x270]
push 0x104
push edi
push eax
call fcn.004c9d56
add esp, 0xc
lea ecx, [esp + 0x270]
xor edx, edx
push 4
call fcn.0041ec49
cmp byte [0x51e6c9], 0
pop ecx
je 0x421c15
movzx eax, al
push eax
lea eax, [esp + 0x274]
push eax
push dword [esp + esi*8 + 0x238]
lea eax, [esp + 0x484]
push str.K7ARW_AddnFileTreePID__d_:_S_CleanStatus_d_n
push eax
call ebx
add esp, 0x14
lea eax, [esp + 0x478]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
inc esi
cmp esi, 8
jb 0x421b71
lea edx, [esp + 0x90]
lea ecx, [esp + 0x88]
call fcn.0041edba
mov ebx, dword [esp + 0x4c]
jmp 0x421c3d
mov byte [esp + 0x71], 0x78
cmp byte [0x51e6c8], 0
je 0x421c64
lea eax, [ebx + 0x238]
lea ecx, [esp + 0x50]
mov dword [esp + 0x1e4], eax
call fcn.004245d4
and dword [esp + 0x1e4], 0
cmp dword [0x51e6f4], 0
jne 0x421c76
cmp dword [0x51e9d4], 3
je 0x421c94
lea eax, [ebx + 0x238]
lea ecx, [esp + 0x50]
mov dword [esp + 0x1e8], eax
call fcn.00424819
and dword [esp + 0x1e8], 0
mov ecx, dword [esp + 0x60]
test ecx, ecx
je 0x421cba
cmp byte [ecx], 0
je 0x421cba
call fcn.0041fb11
test eax, eax
jne 0x421cba
push dword [ebx + 0xc]
lea edx, [esp + 0x54]
push 4
pop ecx
call fcn.0041f9e3
pop ecx
mov edi, dword [esp + 0x38]
xor esi, esi
mov eax, dword [esp + esi*4 + 0x210]
test eax, eax
je 0x421cd2
push eax
call fcn.004c8ceb
pop ecx
inc esi
cmp esi, 8
jb 0x421cc0
test edi, edi
je 0x421cec
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, ebx
call fcn.0041e227
mov ecx, dword [esp + 0x87c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
inc eax
call fcn.0049d307
mov esp, ebp
pop ebp
ret