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

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push esi
mov esi, ecx
mov eax, dword [esi + 0x80]
test eax, eax
je 0x4102e3
push 0
push 7
push 0x7e8
push eax
call ebx
mov ecx, esi
call fcn.0040fcf0
mov eax, dword [esi + 0x80]
test eax, eax
je 0x410300
push 0
push 8
push 0x7e8
push eax
call ebx
mov ecx, esi
call fcn.0040feb0
test eax, eax
je 0x410329
mov esi, dword [esi + 0x80]
test esi, esi
je 0x410321
push 0
push 2
push 0x7e8
push esi
call ebx
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
mov ecx, esi
call fcn.00410020
test eax, eax
je 0x410352
mov esi, dword [esi + 0x80]
test esi, esi
je 0x41034a
push 0
push 3
push 0x7e8
push esi
call ebx
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
mov ecx, esi
call fcn.0040f780
test eax, eax
je 0x41037d
mov eax, dword [esi + 0x80]
test eax, eax
je 0x410373
push 0
push 4
push 0x7e8
push eax
call ebx
mov eax, dword [esi + 0x8c]
test eax, eax
jne 0x41034a
mov eax, dword [esi + 0x80]
test eax, eax
je 0x410393
push 0
push 5
push 0x7e8
push eax
call ebx
push ebp
push edi
push 0x2001f
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push SysStringLen
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], 0
call fcn.0040ed20
test eax, eax
jne 0x41044d
mov eax, dword [0x42b1a8]
mov ecx, 0x42b1a8
call dword [eax + 0xc]
mov ecx, dword [esi + 0x9c]
mov edx, dword [esi + 0x90]
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [ecx - 0xc]
test eax, eax
lea eax, [esp + 0x14]
jne 0x4103f9
push edx
push str.__s_
push eax
call fcn.00405050
add esp, 0xc
jmp 0x41040f
mov ecx, dword [esi + 0x9c]
push ecx
push edx
push str.__s___s
push eax
call fcn.00405050
add esp, 0x10
mov edi, dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, dword [esp + 0x10]
inc eax
push eax
push edi
push 1
push 0
push str.RisDown
push ebp
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410451
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x410451
mov ebp, dword [esp + 0x10]
mov eax, dword [esi + 0x94]
push eax
mov ecx, esi
call fcn.0040ebc0
test eax, eax
je 0x4104ae
mov eax, dword [esi + 0x80]
test eax, eax
je 0x410479
push 0
push 9
push 0x7e8
push eax
call ebx
mov ecx, esi
call fcn.0040fbf0
mov esi, dword [esi + 0x80]
test esi, esi
je 0x410496
push 0
push 0xa
push 0x7e8
push esi
call ebx
test ebp, ebp
je 0x4104a1
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebp
pop esi
mov eax, 1
pop ebx
add esp, 8
ret
lea ebp, [esi + 4]
lea eax, [esi + 0x9c]
push eax
lea eax, [esp + 0x18]
push esi
push eax
call fcn.0040faf0
mov eax, dword [eax]
add esp, 0xc
push 0
push 0
push eax
mov ecx, ebp
call fcn.00407090
mov edi, eax
mov eax, dword [esp + 0x14]
cmp edi, 1
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4104fa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
jne 0x41054a
mov eax, dword [esi + 0x58]
push eax
push edi
push str.Failed_to_download_0x_.8x__hr__0x_.8x
push 0x40
call fcn.0040f6b0
add esp, 0x10
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 0x88]
test eax, eax
jne 0x410531
mov eax, dword [esi + 0x8c]
test eax, eax
je 0x4104b1
mov eax, dword [esp + 0x10]
test eax, eax
je 0x410540
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebp
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
mov ecx, ebp
call fcn.00403e20
push eax
mov ecx, esi
call fcn.00405300
lea esp, [esp]
mov eax, dword [esi + 0x94]
mov ecx, dword [esi]
push 0
push eax
push ecx
mov ecx, ebp
call fcn.00407090
mov edi, eax
test edi, edi
jne 0x41058b
mov eax, dword [esi + 0x94]
push eax
mov ecx, esi
call fcn.0040ebc0
test eax, eax
jne 0x4105d1
mov ecx, dword [esi + 0x58]
push ecx
push edi
push str.Failed_to_download_0x_.8x__hr__0x_.8x
push 0x40
call fcn.0040f6b0
add esp, 0x10
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 0x88]
test eax, eax
jne 0x4105be
mov eax, dword [esi + 0x8c]
test eax, eax
je 0x410560
lea ecx, [esp + 0x10]
call fcn.0040f290
pop edi
pop ebp
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [esi + 0x80]
test eax, eax
je 0x4105eb
push 0
push 9
push 0x7e8
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, esi
call fcn.0040fbf0
mov esi, dword [esi + 0x80]
test esi, esi
je 0x41060c
push 0
push 0xa
push 0x7e8
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x10]
call fcn.0040f290
pop edi
pop ebp
pop esi
mov eax, 1
pop ebx
add esp, 8
ret