Function at 0x40aca0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ac60b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa70
push ebx
push esi
push edi
xor edi, edi
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], edi
call fcn.004b3cd0
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 1
call fcn.004b3fa0
lea eax, [ebp - 0x14]
push edi
push eax
push edi
push 0xf003f
push edi
push 0x679a28
push edi
push 0x64fd74
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, edi
jne 0x40ad78
lea ecx, [ebp - 0xa7c]
push 0x104
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x40ad95
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x674]
mov esi, eax
call fcn.00480870
mov edx, dword [0x6754d4]
mov dword [ebp - 0x24], edx
push esi
lea eax, [ebp - 0x24]
push 0x64fd54
push eax
mov byte [ebp - 4], 3
call fcn.00593b08
mov ecx, dword [ebp - 0x24]
add esp, 0xc
push 1
push ecx
lea ecx, [ebp - 0x674]
call fcn.00480980
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.0059ad3d
lea ecx, [ebp - 0x674]
mov byte [ebp - 4], 1
call fcn.00480970
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0
call fcn.004b3d10
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x874]
lea eax, [ebp - 0x268]
push edx
lea ecx, [ebp - 0x468]
push eax
lea edx, [ebp - 0x68]
push ecx
lea eax, [ebp - 0xa7c]
push edx
push eax
call fcn.0057f69a
add esp, 0x14
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x28], edi
mov word [ebp - 0x2c], di
mov ecx, 0x64f030
mov byte [ebp - 4], 4
test ecx, ecx
je 0x40aef0
lea edx, [ebp - 0x268]
test edx, edx
je 0x40aef0
lea eax, [ebp - 0x874]
test eax, eax
je 0x40aef0
push edi
push ecx
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x34], edi
mov word [ebp - 0x38], di
call fcn.004028e0
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 5
push ecx
lea ecx, [ebp - 0x4c]
call fcn.00403bb0
lea edx, [ebp - 0x874]
lea ecx, [ebp - 0x58]
push edx
mov byte [ebp - 4], 6
call fcn.00403bb0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 7
call fcn.00401070
mov esi, dword [ebp - 0x34]
lea ecx, [ebp - 0x4c]
call fcn.00401fb0
lea ecx, [ebp - 0x58]
mov ebx, eax
call fcn.00401fb0
push eax
call fcn.0057e90a
mov edx, eax
push ebx
mov dword [ebp - 0x24], edx
call fcn.0057e90a
mov ecx, dword [ebp - 0x24]
add esi, ecx
lea ebx, [eax + esi + 3]
lea esi, [ebx + ebx]
push esi
call fcn.005970d9
mov edx, eax
add esp, 0xc
cmp edx, edi
mov dword [ebp - 0x30], edx
je 0x40aecc
mov ecx, esi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [ebp - 0x58]
call fcn.00401fb0
lea ecx, [ebp - 0x4c]
mov esi, eax
call fcn.00401fb0
lea ecx, [ebp - 0x3c]
mov edi, eax
call fcn.00401fb0
push esi
push edi
push eax
mov eax, dword [ebp - 0x30]
push ebx
push eax
call fcn.0057e89a
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.0057e90a
add esp, 0x18
mov dword [ebp - 0x28], eax
xor edi, edi
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 6
call fcn.00401070
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 5
call fcn.00401070
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 4
call fcn.00401070
xor eax, eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], eax
mov word [ebp - 0x1c], di
mov edx, 0x64f030
mov byte [ebp - 4], 8
test edx, edx
je 0x40b01d
lea ecx, [ebp - 0x68]
test ecx, ecx
je 0x40b01d
lea edx, [ebp - 0x468]
test edx, edx
je 0x40b01d
push 0x64f030
lea ecx, [ebp - 0x58]
call fcn.00401f30
xor eax, eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x34], eax
mov word [ebp - 0x38], ax
lea eax, [ebp - 0x68]
push eax
mov byte [ebp - 4], 9
call fcn.00401fc0
lea ecx, [ebp - 0x468]
mov byte [ebp - 4], 0xa
push ecx
lea ecx, [ebp - 0x4c]
call fcn.00403bb0
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xb
call fcn.00401070
mov esi, dword [ebp - 0x50]
lea ecx, [ebp - 0x3c]
call fcn.00401fb0
lea ecx, [ebp - 0x4c]
mov edi, eax
call fcn.00401fb0
push eax
call fcn.0057e90a
push edi
mov ebx, eax
call fcn.0057e90a
add esi, ebx
lea ebx, [eax + esi + 3]
lea esi, [ebx + ebx]
push esi
call fcn.005970d9
mov edi, eax
add esp, 0xc
test edi, edi
mov dword [ebp - 0x20], edi
je 0x40aff6
mov ecx, esi
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [ebp - 0x4c]
call fcn.00401fb0
lea ecx, [ebp - 0x3c]
mov esi, eax
call fcn.00401fb0
lea ecx, [ebp - 0x58]
mov edi, eax
call fcn.00401fb0
push esi
push edi
push eax
mov eax, dword [ebp - 0x20]
push ebx
push eax
call fcn.0057e89a
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.0057e90a
add esp, 0x18
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0xa
call fcn.00401070
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 9
call fcn.00401070
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 8
call fcn.00401070
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x40b024
lea eax, [ebp - 0x1c]
push eax
call fcn.0057e90a
add esp, 4
cmp eax, 1
jle 0x40b04b
mov ecx, dword [ebp - 0x20]
test ecx, ecx
jne 0x40b03c
lea ecx, [ebp - 0x1c]
cmp word [ecx + eax*2 - 2], 0x5c
jne 0x40b04b
mov word [ecx + eax*2 - 2], 0
mov edx, dword [ebp - 0x14]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
mov dword [ebp - 0x40], 3
call ebx
lea eax, [ebp - 0x14]
push 0
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push eax
push 0
push 0xf003f
push 0
push 0x679a28
push 0
push 0x64fd14
push reloc.WSOCK32.dll_accept
call edi
test eax, eax
jne 0x40b1f7
mov ecx, dword [ebp - 0x14]
push ecx
call ebx
lea edx, [ebp - 0x14]
push 0
push edx
push 0
push 0xf003f
push 0
push 0x679a28
push 0
push 0x64fcac
push reloc.WSOCK32.dll_accept
call edi
test eax, eax
jne 0x40b14b
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x40b0fb
lea eax, [ebp - 0x2c]
lea esi, [ebp - 0x2c]
push eax
call fcn.0057e90a
mov ecx, dword [ebp - 0x14]
add esp, 4
lea eax, [eax + eax + 2]
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 1
push 0
push 0x64fc9c
push ecx
call esi
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x40b0ff
lea eax, [ebp - 0x1c]
jmp 0x40b103
mov esi, eax
jmp 0x40b0cb
mov edi, eax
jmp 0x40b106
lea edi, [ebp - 0x1c]
push eax
call fcn.0057e90a
add esp, 4
lea edx, [eax + eax + 2]
mov eax, dword [ebp - 0x14]
push edx
push edi
push 1
push 0
push 0x64fc8c
push eax
call esi
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x40]
push 4
push ecx
push 4
push 0
push 0x64fc84
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x14]
push eax
call ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
jmp 0x40b151
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0x14]
push 0
push ecx
push 0
push 0xf003f
push 0
push 0x679a28
push 0
push 0x64fc1c
push reloc.WSOCK32.dll_accept
call edi
test eax, eax
jne 0x40b1fd
push 0x64fc00
call fcn.0057e90a
add esp, 4
lea edx, [eax + eax + 2]
mov eax, dword [ebp - 0x14]
push edx
push 0x64fc00
push 1
push 0
push 0x64fc9c
push eax
call esi
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x40b1f3
lea eax, [ebp - 0x1c]
lea edi, [ebp - 0x1c]
push eax
call fcn.0057e90a
mov edx, dword [ebp - 0x14]
add esp, 4
lea ecx, [eax + eax + 2]
push ecx
push edi
push 1
push 0
push 0x64fc8c
push edx
call esi
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x40]
push 4
push eax
push 4
push 0
push 0x64fc84
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x14]
push edx
call ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
jmp 0x40b1fd
mov edi, eax
jmp 0x40b1ae
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [ebp - 0x14]
push 0
push eax
push 0
push 0xf003f
push 0
push 0x679a28
push 0
push 0x64fbc4
push reloc.WSOCK32.dll_accept
call edi
test eax, eax
jne 0x40b2d2
mov ecx, dword [ebp - 0x14]
push ecx
call ebx
lea edx, [ebp - 0x14]
push 0
push edx
push 0
push 0xf003f
push 0
push 0x679a28
push 0
push 0x64fb64
push reloc.WSOCK32.dll_accept
call edi
test eax, eax
jne 0x40b2d2
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x40b28a
lea eax, [ebp - 0x2c]
lea edi, [ebp - 0x2c]
push eax
call fcn.0057e90a
mov ecx, dword [ebp - 0x14]
add esp, 4
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push 0
push 0x64fc9c
push ecx
call esi
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x40b28e
lea eax, [ebp - 0x1c]
jmp 0x40b292
mov edi, eax
jmp 0x40b260
mov edi, eax
jmp 0x40b295
lea edi, [ebp - 0x1c]
push eax
call fcn.0057e90a
add esp, 4
lea edx, [eax + eax + 2]
mov eax, dword [ebp - 0x14]
push edx
push edi
push 1
push 0
push 0x64fc8c
push eax
call esi
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x40]
push 4
push ecx
push 4
push 0
push 0x64fc84
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x14]
push eax
call ebx
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
call fcn.00401070
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.00401070
jmp 0x40ad78