Function at 0x403c80
Capabilities:
Accept command line arguments
Copy file
Query or enumerate registry value

Disassembly:
sub esp, 0x9f0
lea eax, [esp]
push ebx
lea ecx, [esp + 0xc]
push eax
lea edx, [esp + 0xc]
push ecx
push edx
push 0x16
mov ecx, 0x40f5e0
mov dword [esp + 0x14], 0x200
call fcn.00407790
push eax
push 6
mov ecx, 0x40f5e0
call fcn.00407790
mov ebx, dword [sym.imp.SHLWAPI.dll_SHGetValueA]
push eax
push reloc.WSOCK32.dll_accept
call ebx
test eax, eax
jne 0x403e8f
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push esi
push edi
lea eax, [esp + 0x600]
push 0x400
lea ecx, [esp + 0x1c]
push eax
push ecx
call ebp
push 0x17
mov ecx, 0x40f5e0
call fcn.00407790
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x600]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x18]
push ecx
push edx
push 0x18
mov ecx, 0x40f5e0
mov dword [esp + 0x20], 0x200
call fcn.00407790
push eax
push 6
mov ecx, 0x40f5e0
call fcn.00407790
push eax
push reloc.WSOCK32.dll_accept
call ebx
test eax, eax
jne 0x403db9
push 0x19
mov ecx, 0x40f5e0
call fcn.00407790
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x15
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x40f5e0
call fcn.00407790
push eax
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x604]
push eax
push ecx
call fcn.00403b80
add esp, 0xc
lea ebx, [esp + 0x218]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x218]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
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]
lea edi, [esp + 0x218]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x403e45
lea ecx, [esp + 0x218]
push ecx
call fcn.004076a0
mov al, byte [esp + 0x21c]
mov dl, 0x22
add esp, 4
cmp al, dl
jne 0x403e23
lea ebx, [esp + 0x219]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + ebx - 1], dl
jne 0x403e45
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [ecx + ebx - 1], al
lea edx, [esp + 0x18]
push 0x200
push edx
push ebx
call ebp
test eax, eax
jne 0x403e77
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x18]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x600]
push 0
lea edx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9f0
ret