Function at 0x403a10
Capabilities:
Access peb ldr_data
Get common file path
Persist via run registry key
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x422324
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5a0
push ebx
push esi
push edi
mov eax, dword [str.Desktop]
mov ecx, dword [0x42b7c8]
mov edx, dword [str.Programs]
mov dword [esp + 0x20], eax
mov eax, dword [0x42b7bc]
mov dword [esp + 0x24], ecx
mov cl, byte [0x42b7c0]
mov dword [esp + 0x28], edx
mov edx, dword [str.Start_Menu]
mov dword [esp + 0x2c], eax
mov eax, dword [0x42b7b0]
mov byte [esp + 0x30], cl
mov cx, word [0x42b7b4]
mov dword [esp + 0x38], edx
mov dl, byte [0x42b7b6]
mov dword [esp + 0x3c], eax
mov eax, dword [0x42e030]
mov dword [esp + 0x5b4], 0
mov dword [esp + 0x1c], 0x104
mov word [esp + 0x40], cx
mov byte [esp + 0x42], dl
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], eax
mov byte [esp + 0x5b4], 2
mov dword [esp + 0x10], 1
call fcn.00420a51
test eax, eax
je 0x403cd3
mov ebx, dword [esp + 0x5c0]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x2a0]
test ebx, ebx
rep stosd dword es:[edi], eax
jne 0x403ae5
lea edi, [esp + 0x20]
jmp 0x403aee
cmp ebx, 2
jne 0x403b12
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x2a0]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [esp + 0x5bc]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x84]
rep stosd dword es:[edi], eax
push eax
lea ecx, [esp + 0x88]
push ebx
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x403cb0
lea eax, [esp + 0x84]
push eax
push ebx
call fcn.00404010
add esp, 8
test eax, eax
jne 0x403cb0
lea ecx, [esp + 0x18]
push ecx
push 0xf003f
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403c5f
lea edx, [esp + 0x1c]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x88]
push edx
lea ecx, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x24]
push ecx
lea edx, [esp + 0x2b0]
push 0
push edx
push eax
call ebp
test eax, eax
jne 0x403bc1
lea ecx, [esp + 0x88]
push ecx
call fcn.004045c0
add esp, 4
jmp 0x403c42
mov eax, dword [0x42b760]
mov cl, byte [0x42b764]
mov edx, dword [str.Common]
mov dword [esp + 0x4c], eax
mov byte [esp + 0x50], cl
mov ecx, 0xd
xor eax, eax
lea edi, [esp + 0x51]
mov dword [esp + 0x48], edx
lea edx, [esp + 0x48]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edi, [esp + 0x2a4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x20]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x8c]
lea edx, [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x24]
push edx
lea eax, [esp + 0x54]
push 0
push eax
push ecx
call ebp
test eax, eax
jne 0x403c4a
mov dword [esp + 0x14], 0
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
pop ebp
cmp eax, 1
jne 0x403cb0
lea eax, [esp + 0x4a8]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x4a8]
push ecx
call fcn.004045c0
lea edx, [esp + 0x2c]
lea eax, [esp + 0x3c]
push edx
push 0x42a264
push eax
lea ecx, [esp + 0x4b8]
push 0x42a264
push ecx
lea edx, [esp + 0x9c]
push str._s_s_s_s_s
push edx
call fcn.0040b8ea
add esp, 0x20
lea eax, [esp + 0x84]
push eax
call fcn.004045c0
lea ecx, [esp + 0x88]
push 0
push ecx
call fcn.0040c5e5
add esp, 0xc
test eax, eax
je 0x403d13
lea ecx, [esp + 0x14]
mov byte [esp + 0x5b4], 1
call fcn.0041e239
lea ecx, [esp + 0xc]
mov byte [esp + 0x5b4], 0
call fcn.0041e239
lea ecx, [esp + 0x5c4]
mov dword [esp + 0x5b4], 0xffffffff
call fcn.0041e239
xor eax, eax
jmp 0x403ff5
mov eax, dword [esp + 0x5c8]
test eax, eax
jne 0x403e1e
cmp ebx, 2
jne 0x403d87
mov edi, 0x42a264
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x84]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x84]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x42a5a4
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x42a264
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x84]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x5c4]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x88]
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.0041e397
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x5b8], 3
call fcn.0041e2e2
lea ecx, [esp + 0x10]
mov byte [esp + 0x5b4], 2
call fcn.0041e239
push str..lnk
lea ecx, [esp + 0x10]
call fcn.0041e46a
mov eax, dword [esp + 0xc]
push eax
call fcn.0040c3b5
add esp, 4
xor ecx, ecx
test eax, eax
setge cl
mov esi, ecx
jmp 0x403fba
mov edi, 0x42a264
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x84]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x5c4]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x88]
lea edx, [esp + 0x24]
push ecx
push edx
call fcn.0041e397
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x5b8], 4
call fcn.0041e2e2
lea ecx, [esp + 0x20]
mov byte [esp + 0x5b4], 2
call fcn.0041e239
mov eax, dword [esp + 0xc]
push 0x42a264
push eax
lea ecx, [esp + 0x3ac]
push str._s_s.
push ecx
call fcn.0040b8ea
lea edx, [esp + 0x198]
lea eax, [esp + 0x3b4]
push edx
push eax
call fcn.0040c19c
mov edi, eax
add esp, 0x18
test edi, edi
jl 0x403faa
mov al, byte [esp + 0x19c]
test al, al
je 0x403f87
mov esi, 0x42b7d0
lea eax, [esp + 0x19c]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x403f0d
test cl, cl
je 0x403f09
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x403f0d
add eax, 2
add esi, 2
test cl, cl
jne 0x403ee5
xor eax, eax
jmp 0x403f12
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x403f87
mov esi, 0x42b7cc
lea eax, [esp + 0x19c]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x403f4a
test cl, cl
je 0x403f46
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x403f4a
add eax, 2
add esi, 2
test cl, cl
jne 0x403f22
xor eax, eax
jmp 0x403f4f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x403f87
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x19c]
push eax
push 0x42a264
push ecx
lea edx, [esp + 0x3b0]
push str._s_s_s
push edx
call fcn.0040b8ea
lea eax, [esp + 0x3b8]
push eax
call fcn.0040c3b5
add esp, 0x18
lea ecx, [esp + 0x188]
push ecx
push edi
call fcn.0040c269
add esp, 8
cmp eax, 0xffffffff
jg 0x403eca
push edi
call fcn.0040c331
add esp, 4
mov edx, dword [esp + 0xc]
push edx
call fcn.0040c172
mov esi, eax
add esp, 4
inc esi
lea ecx, [esp + 0x14]
mov byte [esp + 0x5b4], 1
call fcn.0041e239
lea ecx, [esp + 0xc]
mov byte [esp + 0x5b4], 0
call fcn.0041e239
lea ecx, [esp + 0x5c4]
mov dword [esp + 0x5b4], 0xffffffff
call fcn.0041e239
mov eax, esi
mov ecx, dword [esp + 0x5ac]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x5ac
ret