Function at 0x403d10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4240f6
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x4304f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x224], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
lea edi, [eax + 0x10]
mov dword [ebp - 0x228], edi
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x21c]
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.ealink
push 0x80000000
mov byte [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x403deb
lea eax, [edi - 0x10]
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403dc1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403de4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x403fe5
push 4
push str.URL:
push str.URL:ealink_protocol
call fcn.00413f0c
add esp, 0xc
push 0x104
neg eax
lea ecx, [ebp - 0x218]
push ecx
sbb esi, esi
push ebx
inc esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x403e20
sub eax, edx
lea edx, [ebp - 0x218]
sar eax, 1
push edx
lea ecx, [ebp - 0x224]
push ecx
mov ebx, eax
call fcn.00401850
mov edx, dword [ebp - 0x21c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x28
push str.URL:ealink_protocol
push 1
push 0
push 0
push edx
call ebx
test esi, esi
je 0x403e7d
mov eax, dword [ebp - 0x21c]
push 2
push 0x429530
push 1
push 0
push str.URL_Protocol
push eax
call ebx
mov edx, dword [ebp - 0x21c]
lea ecx, [ebp - 0x220]
push ecx
push str.DefaultIcon
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x403ee3
mov eax, dword [ebp - 0x224]
push 0x6b
push eax
push str.__s____u
lea edi, [ebp - 0x228]
call fcn.00404c80
mov edi, dword [ebp - 0x228]
mov eax, dword [edi - 0xc]
mov edx, dword [ebp - 0x220]
add esp, 0xc
lea ecx, [eax + eax + 2]
push ecx
push edi
push 1
push 0
push 0
push edx
call ebx
mov eax, dword [ebp - 0x220]
push eax
call esi
mov edx, dword [ebp - 0x21c]
lea ecx, [ebp - 0x220]
push ecx
push str.shell
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x403f91
mov ecx, dword [ebp - 0x220]
lea eax, [ebp - 0x22c]
push eax
push str.open
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x403f88
mov eax, dword [ebp - 0x22c]
lea edx, [ebp - 0x230]
push edx
push str.command
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x403f7f
mov ecx, dword [ebp - 0x224]
push ecx
push str.__s_____1___wait
lea edi, [ebp - 0x228]
call fcn.00404c80
mov edi, dword [ebp - 0x228]
mov eax, dword [edi - 0xc]
add esp, 8
lea edx, [eax + eax + 2]
mov eax, dword [ebp - 0x230]
push edx
push edi
push 1
push 0
push 0
push eax
call ebx
mov ecx, dword [ebp - 0x230]
push ecx
call esi
mov edx, dword [ebp - 0x22c]
push edx
call esi
mov eax, dword [ebp - 0x220]
push eax
call esi
mov ecx, dword [ebp - 0x21c]
push ecx
call esi
lea eax, [edi - 0x10]
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403fba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403fe3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00413430
mov esp, ebp
pop ebp
ret