Function at 0x5ba860
Capabilities:
Create process on windows
Create process suspended
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xb44]
sub esp, 0xb44
push 0xffffffffffffffff
push 0x665680
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x758898]
xor eax, ebp
mov dword [ebp + 0xb40], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 0xb4c]
mov eax, dword [ebp + 0xb50]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0xb54]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0x208
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp + 0x30]
push eax
push 0
push 0
push str.VScannerProgram
mov ecx, dword [0x75dbe4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x5bad09
lea eax, [ebp + 0x30]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5ba8f1
sub eax, edx
sar eax, 1
cmp eax, 5
jb 0x5bad09
push 0x100
lea edx, [ebp + 0x440]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp + 0x30]
push eax
call fcn.006231d7
add esp, 0x24
test eax, eax
jne 0x5ba965
push 0x67db18
lea ecx, [ebp + 0x440]
push ecx
call fcn.0062574a
add esp, 8
test eax, eax
je 0x5ba965
push str..com
lea edx, [ebp + 0x440]
push edx
call fcn.0062574a
add esp, 8
test eax, eax
jne 0x5bad09
mov dword [ebp - 0x1c], pe_nt_image_headers32
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp + 0xa50]
push ecx
push 0
push 0
push str.VScannerParameters
mov edx, dword [0x75dbe4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x5ba9a8
mov eax, dword [str.__File_]
mov dword [ebp + 0xa50], eax
mov ecx, dword [0x6b54d4]
mov dword [ebp + 0xa54], ecx
lea edx, [ebp + 0xa50]
push edx
lea ecx, [ebp + 0x18]
call fcn.00406fb0
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0x18]
test eax, eax
jne 0x5ba9c5
lea eax, [ebp + 0x1c]
push 0x6b54c0
push eax
call fcn.0062254b
add esp, 8
mov edi, eax
mov dword [ebp - 0x18], edi
test edi, edi
je 0x5bacfd
push 0x410
push 0
lea eax, [ebp + 0x640]
push eax
call fcn.00620920
add esp, 0xc
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x5baa01
mov ecx, eax
jmp 0x5baa06
lea ecx, [ebp + 0x1c]
mov eax, ecx
sub edi, ecx
sar edi, 1
push edi
push eax
lea ecx, [ebp + 0x640]
push ecx
call fcn.00623bbd
add esp, 0xc
lea edi, [ebp + 0x640]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x5baa24
mov ebx, dword [0x6b54bc]
mov dword [edi], ebx
mov eax, esi
mov edx, esi
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5baa40
sub eax, edx
lea edi, [ebp + 0x640]
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x5baa56
mov ecx, eax
mov esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp + 0x640]
add edi, 0xfffffffe
jmp 0x5baa80
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x5baa80
mov dword [edi], ebx
mov eax, dword [ebp - 0x18]
add eax, 0xc
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5baa96
sub eax, edx
lea edi, [ebp + 0x640]
add edi, 0xfffffffe
lea esp, [esp]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x5baab0
mov ecx, eax
mov esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edx, [ebp + 0x30]
push edx
lea ecx, [ebp]
call fcn.00402190
mov byte [ebp - 4], 2
push 0x6b54bc
lea ecx, [ebp + 0x24]
call fcn.00402190
mov byte [ebp - 4], 3
mov eax, dword [ebp]
xor ebx, ebx
cmp eax, ebx
jne 0x5baaf9
lea eax, [ebp + 4]
push eax
lea ecx, [ebp + 0x24]
call fcn.00405330
push 0x6b54b4
lea ecx, [ebp + 0x24]
call fcn.00405330
lea eax, [ebp + 0x640]
push eax
lea ecx, [ebp + 0x24]
call fcn.00405330
mov edi, dword [ebp - 0x14]
cmp edi, ebx
je 0x5bab3d
mov ecx, dword [0x75eef8]
push ecx
push 0x1476
push 0x111
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x44
push ebx
cmp dword [0x752d28], ebx
je 0x5bab94
lea edx, [ebp - 0x74]
push edx
call fcn.00620920
add esp, 0xc
mov dword [ebp - 0x74], 0x44
mov dword [ebp - 0x48], 1
mov eax, 6
mov word [ebp - 0x44], ax
mov eax, dword [ebp + 0x24]
cmp eax, ebx
jne 0x5bab75
lea eax, [ebp + 0x28]
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x74]
push edx
push ebx
push ebx
push 0x30
push 1
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
jmp 0x5bac0b
lea eax, [ebp - 0xb8]
push eax
call fcn.00620920
add esp, 0xc
mov dword [ebp - 0xb8], 0x44
mov dword [ebp - 0x8c], 1
mov ecx, 6
mov word [ebp - 0x88], cx
mov eax, dword [ebp + 0x24]
cmp eax, ebx
jne 0x5babcd
lea eax, [ebp + 0x28]
push ebx
push eax
lea edx, [ebp - 0x14]
push edx
call fcn.00402a80
add esp, 0xc
mov byte [ebp - 4], 4
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0xb8]
push ecx
push ebx
push ebx
push 0x30
push 1
push ebx
push ebx
mov edx, dword [ebp - 0x14]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
call fcn.00402580
cmp esi, ebx
jne 0x5bad2e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 0x14]
call fcn.00402510
mov byte [ebp - 4], 5
push esi
push str.CreateProcess_error__ld_in_SM::VirusChecking___r_n
lea eax, [ebp - 0x14]
push eax
call fcn.00402f80
add esp, 0xc
mov ecx, dword [ebp - 0x20]
cmp ecx, ebx
je 0x5bac49
mov edx, dword [ebp - 0x14]
push edx
call fcn.0056a780
push ebx
push ebx
lea eax, [ebp - 0x18]
push eax
push 0x400
push esi
push ebx
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov dword [ebp + 0xc], ebx
mov dword [ebp + 0x14], ebx
xor ecx, ecx
mov word [ebp + 0x10], cx
mov byte [ebp - 4], 6
mov edx, dword [0x75dd28]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [0x75ec80]
push ecx
lea ecx, [ebp + 0xc]
call fcn.004021c0
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp + 0xc]
cmp eax, ebx
jne 0x5bac9f
lea eax, [ebp + 0x10]
push 0x50030
push 0x678d88
push eax
push ebx
call fcn.00473140
add esp, 0x10
cmp edi, ebx
je 0x5baccd
push str.Download_complete.
push 0x1476
push 0x111
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
mov byte [ebp - 4], 5
lea ecx, [ebp + 0xc]
call fcn.00401210
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
call fcn.00402580
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x24]
call fcn.00401210
mov byte [ebp - 4], 1
lea ecx, [ebp]
call fcn.00401210
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x18]
call fcn.00401210
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xb40]
xor ecx, ebp
call fcn.0062023e
add ebp, 0xb44
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x2c]
push ecx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov edx, dword [ebp - 0x30]
push edx
call esi
cmp edi, ebx
je 0x5bad66
push str.Download_complete.
push 0x1476
push 0x111
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x24]
call fcn.00401210
mov byte [ebp - 4], 1
lea ecx, [ebp]
call fcn.00401210
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x18]
call fcn.00401210
mov dword [ebp - 4], 0xffffffff
jmp 0x5bad09