Function at 0x411300
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60c9eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa74
push ebx
push esi
push edi
xor esi, esi
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], esi
call fcn.004e3240
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 1
call fcn.004e3510
lea eax, [ebp - 0x14]
push esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push eax
push esi
push 0xf003f
push esi
push 0x6ec0c8
push esi
push 0x6bd4d8
push reloc.WS2_32.dll_accept
call edi
cmp eax, esi
jne 0x4113da
lea ecx, [ebp - 0xa80]
push 0x104
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x4113f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x678]
mov esi, eax
call fcn.004ab420
mov edx, dword [0x6e7b6c]
mov dword [ebp - 0x40], edx
push esi
lea eax, [ebp - 0x40]
push 0x6bd4b8
push eax
mov byte [ebp - 4], 3
call fcn.005f368b
mov ecx, dword [ebp - 0x40]
add esp, 0xc
push 1
push ecx
lea ecx, [ebp - 0x678]
call fcn.004ab540
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.005fa859
lea ecx, [ebp - 0x678]
mov byte [ebp - 4], 1
call fcn.004ab530
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0
call fcn.004e3280
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 - 0x878]
lea eax, [ebp - 0x268]
push edx
lea ecx, [ebp - 0x468]
push eax
lea edx, [ebp - 0x60]
push ecx
lea eax, [ebp - 0xa80]
push edx
push eax
call fcn.005deee8
add esp, 0x14
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], esi
mov word [ebp - 0x28], si
mov ecx, 0x6bc11c
mov byte [ebp - 4], 4
test ecx, ecx
je 0x41154f
lea edx, [ebp - 0x268]
test edx, edx
je 0x41154f
lea eax, [ebp - 0x878]
test eax, eax
je 0x41154f
push esi
push ecx
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x30], esi
mov word [ebp - 0x34], si
call fcn.00402d00
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 5
push ecx
lea ecx, [ebp - 0x4c]
call fcn.0040e020
lea edx, [ebp - 0x878]
lea ecx, [ebp - 0x58]
push edx
mov byte [ebp - 4], 6
call fcn.0040e020
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 7
call fcn.00401070
mov esi, dword [ebp - 0x30]
lea ecx, [ebp - 0x58]
call fcn.004023d0
push eax
call fcn.005de123
add esp, 4
lea ecx, [ebp - 0x4c]
mov ebx, eax
call fcn.004023d0
push eax
call fcn.005de123
add esi, ebx
lea esi, [eax + esi + 3]
lea ebx, [esi + esi]
push ebx
call fcn.005f6c5c
mov edx, eax
add esp, 8
test edx, edx
mov dword [ebp - 0x2c], edx
je 0x411529
mov ecx, ebx
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.004023d0
push eax
lea ecx, [ebp - 0x4c]
call fcn.004023d0
push eax
lea ecx, [ebp - 0x38]
call fcn.004023d0
push eax
mov eax, dword [ebp - 0x2c]
push esi
push eax
call fcn.005de0b3
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.005de123
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
add esp, 0x18
mov dword [ebp - 0x24], eax
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 - 0x38]
mov byte [ebp - 4], 4
call fcn.00401070
xor esi, esi
xor eax, eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x20], eax
mov word [ebp - 0x1c], si
mov edx, 0x6bc11c
mov byte [ebp - 4], 8
test edx, edx
je 0x411681
lea ecx, [ebp - 0x60]
test ecx, ecx
je 0x411681
lea edx, [ebp - 0x468]
test edx, edx
je 0x411681
push 0x6bc11c
lea ecx, [ebp - 0x58]
call fcn.00402350
lea eax, [ebp - 0x60]
lea ecx, [ebp - 0x38]
push eax
mov byte [ebp - 4], 9
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x30], esi
mov word [ebp - 0x34], si
call fcn.004023e0
lea ecx, [ebp - 0x468]
mov byte [ebp - 4], 0xa
push ecx
lea ecx, [ebp - 0x4c]
call fcn.0040e020
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xb
call fcn.00401070
mov esi, dword [ebp - 0x50]
lea ecx, [ebp - 0x4c]
call fcn.004023d0
push eax
call fcn.005de123
add esp, 4
lea ecx, [ebp - 0x38]
mov ebx, eax
call fcn.004023d0
push eax
call fcn.005de123
add esi, ebx
lea esi, [eax + esi + 3]
lea ebx, [esi + esi]
push ebx
call fcn.005f6c5c
mov edx, eax
add esp, 8
test edx, edx
mov dword [ebp - 0x20], edx
je 0x411658
mov ecx, ebx
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 - 0x4c]
call fcn.004023d0
push eax
lea ecx, [ebp - 0x38]
call fcn.004023d0
push eax
lea ecx, [ebp - 0x58]
call fcn.004023d0
push eax
mov eax, dword [ebp - 0x20]
push esi
push eax
call fcn.005de0b3
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.005de123
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
add esp, 0x18
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0xa
call fcn.00401070
lea ecx, [ebp - 0x38]
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]
xor esi, esi
cmp eax, esi
jne 0x411688
lea eax, [ebp - 0x1c]
push eax
call fcn.005de123
add esp, 4
cmp eax, 1
jle 0x4116ad
mov ecx, dword [ebp - 0x20]
cmp ecx, esi
jne 0x4116a0
lea ecx, [ebp - 0x1c]
cmp word [ecx + eax*2 - 2], 0x5c
jne 0x4116ad
mov word [ecx + eax*2 - 2], si
mov edx, dword [ebp - 0x14]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
mov dword [ebp - 0x3c], 3
call ebx
lea eax, [ebp - 0x14]
push esi
push eax
push esi
push 0xf003f
push esi
push 0x6ec0c8
push esi
push 0x6bd478
push reloc.WS2_32.dll_accept
call edi
test eax, eax
jne 0x41184b
mov ecx, dword [ebp - 0x14]
push ecx
call ebx
lea edx, [ebp - 0x14]
push esi
push edx
push esi
push 0xf003f
push esi
push 0x6ec0c8
push esi
push 0x6bd410
push reloc.WS2_32.dll_accept
call edi
test eax, eax
jne 0x41179f
mov eax, dword [ebp - 0x2c]
cmp eax, esi
jne 0x41174f
lea eax, [ebp - 0x28]
lea esi, [ebp - 0x28]
push eax
call fcn.005de123
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 0x6bd400
push ecx
call esi
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x411753
lea eax, [ebp - 0x1c]
jmp 0x411757
mov esi, eax
jmp 0x41171f
mov edi, eax
jmp 0x41175a
lea edi, [ebp - 0x1c]
push eax
call fcn.005de123
add esp, 4
lea edx, [eax + eax + 2]
mov eax, dword [ebp - 0x14]
push edx
push edi
push 1
push 0
push 0x6bd3f0
push eax
call esi
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x3c]
push 4
push ecx
push 4
push 0
push 0x6bd3e8
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 0x4117a5
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0x14]
push 0
push ecx
push 0
push 0xf003f
push 0
push 0x6ec0c8
push 0
push 0x6bd380
push reloc.WS2_32.dll_accept
call edi
test eax, eax
jne 0x411851
push 0x6bd364
call fcn.005de123
add esp, 4
lea edx, [eax + eax + 2]
mov eax, dword [ebp - 0x14]
push edx
push 0x6bd364
push 1
push 0
push 0x6bd400
push eax
call esi
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x411847
lea eax, [ebp - 0x1c]
lea edi, [ebp - 0x1c]
push eax
call fcn.005de123
mov edx, dword [ebp - 0x14]
add esp, 4
lea ecx, [eax + eax + 2]
push ecx
push edi
push 1
push 0
push 0x6bd3f0
push edx
call esi
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x3c]
push 4
push eax
push 4
push 0
push 0x6bd3e8
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 0x411851
mov edi, eax
jmp 0x411802
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [ebp - 0x14]
push 0
push eax
push 0
push 0xf003f
push 0
push 0x6ec0c8
push 0
push 0x6bd328
push reloc.WS2_32.dll_accept
call edi
test eax, eax
jne 0x411926
mov ecx, dword [ebp - 0x14]
push ecx
call ebx
lea edx, [ebp - 0x14]
push 0
push edx
push 0
push 0xf003f
push 0
push 0x6ec0c8
push 0
push 0x6bd2c8
push reloc.WS2_32.dll_accept
call edi
test eax, eax
jne 0x411926
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x4118de
lea eax, [ebp - 0x28]
lea edi, [ebp - 0x28]
push eax
call fcn.005de123
mov ecx, dword [ebp - 0x14]
add esp, 4
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push 0
push 0x6bd400
push ecx
call esi
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x4118e2
lea eax, [ebp - 0x1c]
jmp 0x4118e6
mov edi, eax
jmp 0x4118b4
mov edi, eax
jmp 0x4118e9
lea edi, [ebp - 0x1c]
push eax
call fcn.005de123
add esp, 4
lea edx, [eax + eax + 2]
mov eax, dword [ebp - 0x14]
push edx
push edi
push 1
push 0
push 0x6bd3f0
push eax
call esi
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x3c]
push 4
push ecx
push 4
push 0
push 0x6bd3e8
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 - 0x2c]
mov byte [ebp - 4], 1
call fcn.00401070
jmp 0x4113da