Function at 0x401f0d
Capabilities:
Set registry value
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x404030]
mov ecx, dword [0x40401c]
and dword [0x404038], 0
sub esp, 0x114
push ebx
push esi
push edi
mov dword [eax], ecx
mov ecx, dword [0x40403c]
push 4
pop ebx
add eax, ebx
mov dword [eax], ecx
add eax, ebx
xor ecx, ecx
lea edx, [eax + 4]
mov esi, dword [ecx*4 + 0x404050]
test esi, esi
je 0x401f56
mov dword [edx], esi
inc ecx
add edx, ebx
cmp ecx, 0x10
jl 0x401f41
mov dword [eax], ecx
lea eax, [eax + ecx*4 + 4]
xor ecx, ecx
lea edx, [eax + 4]
mov esi, dword [ecx*4 + 0x404b97]
test esi, esi
je 0x401f76
mov dword [edx], esi
inc ecx
add edx, ebx
cmp ecx, 0x10
jl 0x401f61
and dword [ebp - 8], 0
mov dword [eax], ecx
lea edi, [eax + ecx*4 + 4]
lea eax, [edi + 4]
mov dword [ebp - 4], eax
mov esi, 0x4040f0
mov dword [ebp - 0xc], 0x40
mov ecx, dword [esi - 0x20]
test ecx, ecx
je 0x401fe6
inc dword [ebp - 8]
mov dword [eax], ecx
add dword [ebp - 4], ebx
mov ecx, dword [ebp - 4]
mov eax, dword [esi - 0x1c]
add eax, 0x100
mov dword [ecx], eax
add dword [ebp - 4], ebx
mov ecx, dword [ebp - 4]
mov eax, dword [esi]
mov dword [ecx], eax
add dword [ebp - 4], ebx
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
add dword [ebp - 4], ebx
lea eax, [esi - 0x18]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax + 1]
mov dword [ebp - 4], eax
add esi, 0x28
dec dword [ebp - 0xc]
jne 0x401f92
mov eax, dword [ebp - 8]
mov dword [edi], eax
mov ecx, dword [ebp - 4]
and dword [ecx], 0
add dword [ebp - 4], ebx
cmp byte [0x404ad7], 0
je 0x40203e
mov edx, 0x404ad7
mov al, byte [edx]
test al, al
jne 0x402015
cmp byte [edx + 1], al
je 0x402022
mov esi, dword [ebp - 4]
mov byte [esi], al
inc dword [ebp - 4]
inc dword [ecx]
inc edx
jmp 0x40200a
mov eax, dword [ebp - 4]
mov byte [eax], 0
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
mov byte [eax], 0
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
sub eax, ecx
sub eax, ebx
mov dword [ecx], eax
mov ecx, dword [ebp - 4]
and dword [ecx], 0
mov eax, dword [ebp - 4]
add eax, ebx
cmp byte [0x404090], 0
mov dword [ebp - 4], eax
je 0x40208e
mov esi, 0x404090
mov dl, byte [esi]
test dl, dl
jne 0x402065
cmp byte [esi + 1], dl
je 0x402072
mov byte [eax], dl
inc dword [ebp - 4]
inc dword [ecx]
mov eax, dword [ebp - 4]
inc esi
jmp 0x40205a
mov byte [eax], 0
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
mov byte [eax], 0
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
sub eax, ecx
sub eax, ebx
mov dword [ecx], eax
mov eax, dword [ebp - 4]
sub eax, dword [0x404030]
xor edx, edx
test eax, eax
mov dword [0x404034], eax
jle 0x4020bd
mov eax, dword [0x404030]
add eax, edx
mov cl, byte [eax]
test cl, cl
je 0x4020b4
cmp cl, 0x11
je 0x4020b4
xor byte [eax], 0x11
inc edx
cmp edx, dword [0x404034]
jl 0x40209f
lea eax, [ebp - 0x114]
push eax
call fcn.00401b84
pop ecx
xor esi, esi
push esi
push esi
push 2
push esi
push esi
push 0x40000000
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40210a
push esi
lea eax, [ebp - 4]
push eax
push dword [0x404034]
push dword [0x404030]
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebp - 0x114]
push eax
call fcn.00401c18
pop ecx
push esi
lea eax, [ebp - 0x10]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
lea eax, [ebp - 0x114]
push eax
push bind
call dword [sym.imp.ADVAPI32.DLL_RegCreateKeyExA]
test eax, eax
jne 0x40215d
push dword [0x404034]
push dword [0x404030]
push 3
push esi
push esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.DLL_RegSetValueExA]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret