Function at 0x412470
Capabilities:
Delete file
Encode data using xor
Enumerate files on windows
Move file
Query or enumerate registry value
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x274
mov eax, dword [0x63c00c]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push esi
push edi
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push 0x2011f
push 0
push str.SOFTWARERansompod
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], 0
mov dword [esp + 0x34], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4124df
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.0044daed
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
push str.Path_32
push dword [esp + 0x28]
call edi
mov eax, dword [esp + 0x18]
add eax, 0xa
push eax
call fcn.0045669c
mov esi, eax
add esp, 4
test esi, esi
je 0x41261f
mov eax, dword [esp + 0x18]
add eax, 0xa
push eax
push 0
push esi
call fcn.0044f970
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push esi
push 0
push 0
push str.Path_32
push dword [esp + 0x28]
call edi
test eax, eax
je 0x41256e
push esi
call fcn.004533f0
add esp, 4
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 3
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.0044daed
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x18]
xor eax, eax
test edx, edx
je 0x4125e0
cmp edx, 0x40
jb 0x4125d3
movaps xmm2, xmmword [0x636a50]
lea ecx, [esi + 0x20]
mov edi, edx
and edi, 0xffffffc0
nop dword [eax]
movups xmm0, xmmword [ecx - 0x20]
lea ecx, [ecx + 0x40]
add eax, 0x40
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [ecx - 0x60], xmm1
movaps xmm1, xmm2
movups xmm0, xmmword [ecx - 0x50]
pxor xmm1, xmm0
movups xmmword [ecx - 0x50], xmm1
movaps xmm1, xmm2
movups xmm0, xmmword [ecx - 0x40]
pxor xmm1, xmm0
movups xmmword [ecx - 0x40], xmm1
movups xmm0, xmmword [ecx - 0x30]
pxor xmm0, xmm2
movups xmmword [ecx - 0x30], xmm0
cmp eax, edi
jb 0x412590
cmp eax, edx
jae 0x4125e0
xor byte [eax + esi], 0xdf
inc eax
cmp eax, edx
jb 0x4125d7
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call ebx
mov edi, eax
test edi, edi
je 0x412675
lea eax, [edi*2 + 4]
push eax
call fcn.0045669c
mov ecx, eax
add esp, 4
mov dword [esp + 0x10], ecx
test ecx, ecx
jne 0x412643
push esi
call fcn.004533f0
add esp, 4
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.0044daed
mov esp, ebp
pop ebp
ret
lea eax, [edi*2 + 4]
push eax
push 0
push ecx
call fcn.0044f970
add esp, 0xc
push edi
mov edi, dword [esp + 0x14]
push edi
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call ebx
test eax, eax
jne 0x4126a2
push edi
call fcn.004533f0
add esp, 4
push esi
call fcn.004533f0
add esp, 4
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.0044daed
mov esp, ebp
pop ebp
ret
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.004533f0
add esp, 4
mov dword [esp + 0x14], 0
push 0x9c40
call fcn.0045669c
mov edi, eax
add esp, 4
mov dword [esp + 0x24], edi
test edi, edi
je 0x412700
push 0x9c40
push 0
push edi
call fcn.0044f970
add esp, 0xc
push 0x9c40
call fcn.0045669c
mov esi, eax
add esp, 4
test esi, esi
jne 0x412726
push edi
call fcn.004533f0
add esp, 4
push dword [esp + 0x10]
call fcn.004533f0
add esp, 4
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.0044daed
mov esp, ebp
pop ebp
ret
push 0x9c40
push 0
push esi
call fcn.0044f970
mov ebx, dword [esp + 0x1c]
add esp, 0xc
push ebx
push str._ws
push esi
call fcn.004025f0
add esp, 0xc
push 0x9c40
call fcn.0045669c
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x41278a
push edi
call fcn.004533f0
add esp, 4
push ebx
call fcn.004533f0
add esp, 4
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.0044daed
mov esp, ebp
pop ebp
ret
push 0x9c40
push 0
push eax
call fcn.0044f970
add esp, 0xc
push str.___AIN
push ebx
push 0x46d850
push dword [esp + 0x28]
call fcn.004025f0
push 0x250
lea eax, [esp + 0x3c]
push 0
push eax
call fcn.0044f970
add esp, 0x1c
lea eax, [esp + 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x412923
nop dword [eax]
mov ecx, 0x46ce0c
lea eax, [esp + 0x54]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x412816
test dx, dx
je 0x412812
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x412816
add eax, 4
add ecx, 4
test dx, dx
jne 0x4127f0
xor eax, eax
jmp 0x41281b
sbb eax, eax
or eax, 1
test eax, eax
je 0x412986
mov ecx, 0x46ce10
lea eax, [esp + 0x54]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x412856
test dx, dx
je 0x412852
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x412856
add eax, 4
add ecx, 4
test dx, dx
jne 0x412830
xor eax, eax
jmp 0x41285b
sbb eax, eax
or eax, 1
test eax, eax
je 0x412986
mov ecx, str.___AIN
lea eax, [esp + 0x54]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x412896
test dx, dx
je 0x412892
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x412896
add eax, 4
add ecx, 4
test dx, dx
jne 0x412870
xor eax, eax
jmp 0x41289b
sbb eax, eax
or eax, 1
test eax, eax
je 0x412986
push 0x9c40
push 0
push edi
call fcn.0044f970
add esp, 0xc
lea eax, [esp + 0x54]
push eax
push ebx
push 0x46c9bc
push edi
call fcn.004025f0
add esp, 0x10
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 0x250
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.0044f970
add esp, 0xc
lea eax, [esp + 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4127e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x4127e0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x250
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.0044f970
add esp, 0xc
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x412a79
mov edx, 0x46ce0c
lea ecx, [esp + 0x54]
nop word [eax + eax]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x4129ab
test ax, ax
je 0x412982
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x4129ab
add ecx, 4
add edx, 4
test ax, ax
jne 0x412960
xor eax, eax
jmp 0x4129b0
push 0x250
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.0044f970
add esp, 0xc
lea eax, [esp + 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x4127e0
sbb eax, eax
or eax, 1
test eax, eax
je 0x412a9c
mov ecx, 0x46ce10
lea eax, [esp + 0x54]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4129e7
test dx, dx
je 0x4129e3
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4129e7
add eax, 4
add ecx, 4
test dx, dx
jne 0x4129c1
xor eax, eax
jmp 0x4129ec
sbb eax, eax
or eax, 1
test eax, eax
je 0x412a9c
push 0x9c40
push 0
push edi
call fcn.0044f970
add esp, 0xc
lea eax, [esp + 0x54]
push eax
push str.___AIN
push ebx
push str._ws_ws_ws
push edi
call fcn.004025f0
add esp, 0x14
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 0x250
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.0044f970
add esp, 0xc
lea eax, [esp + 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x412951
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x412951
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [sym.imp.SHELL32.dll_SHChangeNotify]
xor esi, esi
push 0x9c40
push 0
push edi
call fcn.0044f970
add esp, 0xc
test esi, esi
jne 0x412ac1
push 0x46da70
jmp 0x412b13
push 0x250
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.0044f970
add esp, 0xc
lea eax, [esp + 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x412951
cmp esi, 1
jne 0x412acd
push str.sciter.dll
jmp 0x412b13
cmp esi, 2
jne 0x412ad9
push str.RansomLog.db
jmp 0x412b13
cmp esi, 3
jne 0x412ae5
push str.AppHelper.exe
jmp 0x412b13
cmp esi, 4
jne 0x412af1
push str.filter1.inf
jmp 0x412b13
cmp esi, 5
jne 0x412afd
push str.Filter1.sys
jmp 0x412b13
cmp esi, 6
jne 0x412b09
push str.RnspodSrv.exe
jmp 0x412b13
cmp esi, 7
jne 0x412b25
push str.filter1.cat
push dword [esp + 0x14]
push 0x46c9bc
push edi
call fcn.00402580
add esp, 0x10
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push edi
push 0x3005
push 4
call ebx
push 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
inc esi
cmp esi, 8
jl 0x412a81
mov ebx, dword [esp + 0x10]
push str.___AIN
push ebx
push 0x46c9bc
push edi
call fcn.00402580
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
add esp, 0x10
push 4
push 0
push edi
call esi
push str.___AIN
push ebx
push str._ws_ws_
push edi
call fcn.00402580
add esp, 0x10
push 4
push 0
push edi
call esi
push 4
push 0
push ebx
call esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [esp + 0x10]
push edi
call esi
push 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 0x64
call ebx
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412bc7
sub ecx, edx
mov eax, 6
sar ecx, 1
cmp eax, ecx
sbb eax, eax
and eax, dword [esp + 0x20]
mov dword [esp + 0x20], eax
cmp eax, 1
je 0x412bb0
push edi
call fcn.004533f0
mov edi, dword [esp + 0x28]
add esp, 4
push edi
call fcn.004533f0
add esp, 4
push dword [esp + 0x1c]
call fcn.004533f0
mov ecx, dword [esp + 0x280]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0044daed
mov esp, ebp
pop ebp
ret