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

Disassembly:
push 0xffffffffffffffff
push 0x434c0d
mov eax, dword fs:[0]
push eax
sub esp, 0x17c
mov eax, dword [0x444424]
xor eax, esp
mov dword [esp + 0x174], eax
push ebx
push esi
push edi
mov eax, dword [0x444424]
xor eax, esp
push eax
lea eax, [esp + 0x18c]
mov dword fs:[0], eax
push 0
call fcn.0041fd6a
push eax
call fcn.0041f9e3
add esp, 8
call fcn.0041f9f0
cdq
mov ecx, 0x2328
idiv ecx
push 0x43b6f8
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.00402700
push 0x43b6f8
lea ecx, [esp + 0x14]
mov dword [esp + 0x198], 0
call fcn.00402700
push esi
lea eax, [esp + 0x1c]
push 0x43b4ec
push eax
mov byte [esp + 0x1a0], 1
call fcn.00401ba0
push ebx
lea ecx, [esp + 0x20]
push 0x43b4ec
push ecx
call fcn.00401ba0
add esp, 0x18
push 0x43b6f8
lea ecx, [esp + 0x18]
lea edi, [edi + edi*2 - 0x763]
call fcn.00402700
push edi
lea edx, [esp + 0x18]
push 0x43b4ec
push edx
mov byte [esp + 0x1a0], 2
call fcn.00401ba0
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 0x403b48
push esi
lea ecx, [esp + 0x1c]
call fcn.00401ab0
mov edx, dword [esp + 0x18]
test esi, esi
jle 0x403b5f
add edx, 0xffffffff
nop
add byte [edx + esi], 0x1e
sub esi, 1
test esi, esi
jg 0x403b50
mov edx, dword [esp + 0x18]
test edx, edx
jne 0x403b67
xor eax, eax
jmp 0x403b81
mov eax, edx
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x403b70
sub eax, esi
js 0x40401d
cmp eax, dword [edx - 8]
jg 0x40401d
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 0x403bbb
push esi
lea ecx, [esp + 0x14]
call fcn.00401ab0
mov ecx, dword [esp + 0x10]
test esi, esi
jle 0x403bd1
add ecx, 0xffffffff
add byte [ecx + esi], 0xd3
sub esi, 1
test esi, esi
jg 0x403bc2
mov ecx, dword [esp + 0x10]
test ecx, ecx
jne 0x403bd9
xor eax, eax
jmp 0x403bf1
mov eax, ecx
lea esi, [eax + 1]
mov edi, edi
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x403be0
sub eax, esi
js 0x40401d
cmp eax, dword [ecx - 8]
jg 0x40401d
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 0x403c2b
push esi
lea ecx, [esp + 0x18]
call fcn.00401ab0
mov ecx, dword [esp + 0x14]
test esi, esi
jle 0x403c41
lea eax, [ecx - 1]
add byte [eax + esi], 0x20
sub esi, 1
test esi, esi
jg 0x403c32
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x403c49
xor eax, eax
jmp 0x403c61
mov eax, ecx
lea esi, [eax + 1]
mov edi, edi
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x403c50
sub eax, esi
js 0x40401d
cmp eax, dword [ecx - 8]
jg 0x40401d
mov dword [ecx - 0xc], eax
mov ecx, dword [esp + 0x14]
mov byte [eax + ecx], 0
push str.SoftwareWindowsApps
lea ecx, [esp + 0x28]
call fcn.00402700
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 0x403cc0
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 0x403ce5
push 0
lea ecx, [esp + 0x14]
call fcn.00401ab0
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 0x403d17
push 0
push 0
push 0x43b98c
call fcn.0040b2d5
push 0
call fcn.0041fc8e
push pe_nt_image_headers32
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 0x403d34
mov ecx, dword [str.xunleisr.dat]
mov edx, dword [0x43b7a4]
mov dword [eax], ecx
mov ecx, dword [0x43b7a8]
mov dword [eax + 4], edx
mov dx, word [0x43b7ac]
mov dword [eax + 8], ecx
mov word [eax + 0xc], dx
call fcn.00404b5b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x403d7d
push 0x80004005
call fcn.004018e0
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 0x43b7b0
push edx
mov byte [esp + 0x1a0], 4
call fcn.00401ba0
add esp, 0xc
call fcn.0041f9f0
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.0040dd99
push 0
mov byte [esp + 0x198], 5
mov esi, dword [esp + 0x20]
push 0x9001
push esi
lea ecx, [esp + 0x80]
call fcn.0040e1ca
test eax, eax
je 0x403f17
push 0
push 0x1000
push 0
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x3c]
call fcn.0040ea61
mov byte [esp + 0x194], 6
mov ecx, dword [esp + 0x44]
not ecx
test cl, 1
jne 0x403e43
mov edx, dword [esp + 0x40]
push edx
push 2
call fcn.0040ec90
mov eax, dword [esp + 0x54]
add eax, 4
cmp eax, dword [esp + 0x58]
jbe 0x403e59
lea ecx, [esp + 0x2c]
call fcn.0040e4dc
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 0x403e7e
mov ecx, dword [esp + 0x40]
push ecx
push 2
call fcn.0040ec90
mov edx, dword [esp + 0x54]
add edx, 1
cmp edx, dword [esp + 0x58]
jbe 0x403e94
lea ecx, [esp + 0x2c]
call fcn.0040e4dc
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.0040e778
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x34]
call fcn.0040e8ca
mov eax, dword [esp + 0x14]
mov eax, dword [eax - 0xc]
push 0
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.0040e778
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x34]
call fcn.0040e8ca
lea ecx, [esp + 0x2c]
call fcn.0040e4dc
lea ecx, [esp + 0x2c]
call fcn.0040e8bc
lea ecx, [esp + 0x74]
call fcn.0040dd37
lea ecx, [esp + 0x2c]
mov byte [esp + 0x194], 5
call fcn.0040ea23
lea ecx, [esp + 0x74]
mov byte [esp + 0x194], 4
call fcn.0040de95
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 0x403f4c
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 0x403f74
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 0x403f9c
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 0x403fc4
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 0x403fef
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.0041f0b7
add esp, 0x188
ret 4
push 0x80070057
call fcn.004018e0
int3