joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100215e0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x14
mov eax, dword [esi + 0xa90]
push 4
lea ecx, [esp + 4]
push ecx
push 8
shr eax, 0xc
push 0xffff
and eax, 1
push edi
mov dword [esp + 0x14], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x1002161f
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.1001ba70
add esp, 0xc
add esp, 0x14
ret
mov edx, dword [esi + 0xa50]
push edx
mov dword [esp + 0xc], 1
call fcn.1001b620
imul eax, eax, 0x3e8
mov dword [esp + 4], eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0xa54]
push eax
call fcn.1001b620
imul eax, eax, 0x3e8
add esp, 8
push 0
push 0
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 0xc
lea edx, [esp + 0x20]
push edx
push 0x98000004
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x10021698
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.1001ba70
add esp, 0x10
add esp, 0x14
ret
Function at 0x10021e10
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x18c
mov eax, dword [0x10075610]
xor eax, esp
mov dword [esp + 0x188], eax
push ebp
mov ebp, dword [esp + 0x194]
cmp dword [ebp + 0x90], 2
push edi
mov edi, dword [ebp]
mov dword [esp + 0xc], edi
je 0x10021fcd
mov eax, dword [ebp + 0x280]
push ebx
push esi
test al, 2
jne 0x10021fc2
test eax, 0x8000000
jne 0x10021fc2
mov esi, dword [esp + 0x1a4]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x9c]
push ecx
mov ebx, 0x80
push esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x10021eb0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push ebx
lea edx, [esp + 0x11c]
mov esi, eax
push edx
push esi
call fcn.10012730
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.1001bb50
add esp, 0x1c
jmp 0x10021fcb
push ebx
lea eax, [esp + 0x1c]
push 0
push eax
mov dword [esp + 0x1c], ebx
call fcn.1004e1b0
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x10021f05
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push ebx
lea eax, [esp + 0x11c]
push eax
push esi
call fcn.10012730
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.1001bb50
add esp, 0x1c
jmp 0x10021fcb
lea edi, [ebp + 0x10a]
lea ebx, [ebp + 0x138]
lea esi, [esp + 0x98]
call fcn.10021d90
test eax, eax
jne 0x10021f5c
call fcn.1004e396
mov esi, eax
call fcn.1004e396
mov edx, dword [esi]
push 0x80
lea ecx, [esp + 0x11c]
push ecx
push edx
mov edi, eax
call fcn.10012730
mov ecx, dword [esp + 0x20]
push eax
mov eax, dword [edi]
push eax
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ecx
call fcn.1001bb50
add esp, 0x1c
jmp 0x10021fcb
lea edi, [ebp + 0x5c]
mov ecx, 0xb
lea esi, [ebp + 0x10a]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea ebx, [ebp + 0x16c]
lea edi, [ebp + 0x13c]
lea esi, [esp + 0x18]
call fcn.10021d90
test eax, eax
jne 0x10021fc2
call fcn.1004e396
mov esi, eax
call fcn.1004e396
push 0x80
lea edx, [esp + 0x11c]
mov edi, eax
mov eax, dword [esi]
push edx
push eax
call fcn.10012730
mov ecx, dword [edi]
mov edx, dword [esp + 0x20]
push eax
push ecx
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.1001bb50
add esp, 0x1c
jmp 0x10021fcb
push ebp
call fcn.10021d10
add esp, 4
pop esi
pop ebx
mov ecx, dword [esp + 0x190]
pop edi
pop ebp
xor ecx, esp
call fcn.1004ada2
add esp, 0x18c
ret
Function at 0x10021ff0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x88
mov eax, dword [0x10075610]
xor eax, esp
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x8c]
push esi
mov esi, dword [eax]
push 4
lea eax, [esp + 8]
push eax
push 1
push 6
push ecx
mov dword [esp + 0x18], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x10022067
push 0x80
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.10012730
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.1001ba70
add esp, 0x18
pop esi
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.1004ada2
add esp, 0x88
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.1001ba70
mov ecx, dword [esp + 0x90]
add esp, 8
pop esi
xor ecx, esp
call fcn.1004ada2
add esp, 0x88
ret
Function at 0x1002b740
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
push str.Connected_for_receive
push 0x10068264
push ecx
call fcn.1001ba70
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.1002a750
test eax, eax
jne 0x1002b770
mov ecx, esi
jmp fcn.1002ac00
ret
Function at 0x1002d870
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
mov edx, dword [esi + 0x1a8]
mov al, byte [esp + 8]
push edi
mov edi, dword [esi]
push 0
push 3
lea ecx, [esp + 0xc]
push ecx
push edx
mov byte [esp + 0x14], 0xff
mov byte [esp + 0x15], al
mov byte [esp + 0x16], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jge 0x1002d8b4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.1001bb50
add esp, 0xc
mov edx, dword [esp + 0xc]
mov ecx, dword [esi]
mov eax, ebx
mov edi, str.SENT
call fcn.1002d770
pop edi
pop ecx
ret
Function at 0x1002e640
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
cmp dword [esp + 0xc], 0x1f
mov eax, dword [esp + 8]
mov eax, dword [eax]
push ebp
mov ebp, dword [eax + 0x154]
mov dword [esp + 4], eax
jne 0x1002e799
push ebx
push esi
push edi
lea ebx, [ebp + 0x1cb0]
lea edi, [ebp + 0x1eb0]
mov dword [edi], ebx
cmp ebx, edi
jae 0x1002e677
mov byte [ebx], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x1002e682
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x1002e68d
mov byte [eax], 0x1f
inc dword [edi]
movzx ecx, word [ebp + 0x1ca8]
mov esi, dword [sym.imp.WS2_32.dll_htons]
push ecx
call esi
movzx edx, ax
movzx eax, word [ebp + 0x1caa]
push eax
mov dword [esp + 0x20], edx
call esi
movzx ecx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x1002e6bf
mov dl, byte [esp + 0x1c]
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x1002e6cd
mov dl, byte [esp + 0x1d]
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x1002e6d7
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x1002e6e1
mov byte [eax], ch
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x1002e6ec
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x1002e6f7
mov byte [eax], pe_nt_image_headers32
inc dword [edi]
mov eax, dword [edi]
mov esi, dword [esp + 0x10]
mov ecx, eax
sub ecx, ebx
sub ecx, 2
push ecx
mov dword [ebp + 0x1eb4], eax
lea eax, [ebp + 0x1cb2]
push 0x3e
mov dword [edi], ebx
call fcn.1002dc00
mov edi, dword [esp + 0x20]
mov edx, dword [edi + 0x1a8]
add esp, 8
push 0
push 3
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_send]
push edx
call ebx
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jge 0x1002e754
call esi
push eax
mov eax, dword [esp + 0x14]
push str.Sending_data_failed___d_
push eax
call fcn.1001bb50
add esp, 0xc
lea ecx, [ebp + 0x1cb3]
push ecx
push edi
mov eax, 4
call fcn.1002e480
mov edx, dword [edi + 0x1a8]
add esp, 8
push 0
push 2
add ebp, 0x1cb7
push ebp
push edx
call ebx
test eax, eax
jge 0x1002e796
call esi
push eax
mov eax, dword [esp + 0x14]
push str.Sending_data_failed___d_
push eax
call fcn.1001bb50
add esp, 0xc
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret
Function at 0x10032a20
Capabilities:
Check http status code

Disassembly:
push ebx
mov ebx, eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
push ebp
mov ebp, dword [esp + 0xc]
mov eax, edx
shr eax, 0x1f
push esi
add eax, edx
xor esi, esi
push edi
mov edi, dword [ebx]
cmp eax, 2
je 0x10032a5a
push str.Couldnt_set_desired_mode
push edi
call fcn.1001bb50
add esp, 8
pop edi
lea eax, [esi + 0x11]
pop esi
pop ebp
pop ebx
ret
cmp ecx, 0xc8
je 0x10032a71
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push edi
call fcn.1001ba70
add esp, 0xc
cmp ebp, 0x13
jne 0x10032a86
push ebx
call fcn.100329b0
add esp, 4
pop edi
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x14
jne 0x10032a97
call fcn.1002fe40
pop edi
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x15
jne 0x10032aaa
mov eax, ebx
call fcn.10032a00
pop edi
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x16
jne 0x10032ab8
mov eax, ebx
call fcn.10032a10
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x1003f8c0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 8
push 0
push 0
lea eax, [esp + 0xc]
push eax
push 4
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 0x4004747b
push esi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x1003f8ff
push 4
lea edx, [esp + 4]
push edx
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
add esp, 8
ret

Function at 0x1004ada2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10075610]
jne 0x1004adac
repz ret
jmp fcn.100512ce

Function at 0x1006063d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.10051446
and dword [ebp - 4], 0
cmp dword [0x10077174], 0
mov ebx, eax
jne 0x100606ee
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1006079f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1006079f
push eax
call fcn.100513d4
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10077174], eax
call esi
push eax
call fcn.100513d4
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10077178], eax
call esi
push eax
call fcn.100513d4
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1007717c], eax
call esi
push eax
call fcn.100513d4
pop ecx
mov dword [0x10077184], eax
test eax, eax
je 0x100606ee
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.100513d4
pop ecx
mov dword [0x10077180], eax
mov eax, dword [0x10077180]
cmp eax, ebx
je 0x10060746
cmp dword [0x10077184], ebx
je 0x10060746
push eax
call fcn.1005144f
push dword [0x10077184]
mov esi, eax
call fcn.1005144f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10060746
test edi, edi
je 0x10060746
call esi
test eax, eax
je 0x1006073d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1006073d
test byte [ebp - 0xc], 1
jne 0x10060746
or dword [ebp + 0x10], 0x200000
jmp 0x1006077f
mov eax, dword [0x10077178]
cmp eax, ebx
je 0x1006077f
push eax
call fcn.1005144f
pop ecx
test eax, eax
je 0x1006077f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1006077f
mov eax, dword [0x1007717c]
cmp eax, ebx
je 0x1006077f
push eax
call fcn.1005144f
pop ecx
test eax, eax
je 0x1006077f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10077174]
call fcn.1005144f
pop ecx
test eax, eax
je 0x1006079f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100607a1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10065878
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x100658a9
call fcn.1004e3a9
mov dword [eax], esi
call fcn.1004e396
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.1004b342
add esp, 0x14
push 0x16
pop eax
jmp 0x100658fe
test dword [ebp + 0xc], 0xfffffff9
jne 0x10065885
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x100658d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1004e3bc
pop ecx
call fcn.1004e396
mov eax, dword [eax]
jmp 0x100658fe
test al, 0x10
jne 0x100658fc
test al, 1
je 0x100658fc
test byte [ebp + 0xc], 2
je 0x100658fc
call fcn.1004e3a9
mov dword [eax], 5
call fcn.1004e396
mov dword [eax], 0xd
jmp 0x100658cd
xor eax, eax
pop esi
pop ebp
ret
Function at 0x404890
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x449c49
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebp
push esi
mov eax, dword [0x4630d0]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, dword [esp + 0x34]
lea eax, [esp + 0x18]
push eax
mov ecx, edi
mov dword [esp + 0x10], 0
call fcn.00415650
mov ebp, eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, edi
mov dword [esp + 0x30], 1
call fcn.00415540
push ebp
push esi
mov ecx, eax
mov byte [esp + 0x34], 2
call fcn.004011f0
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], 1
mov byte [esp + 0x2c], 1
call fcn.0040fd60
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 0
call fcn.0040fd60
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
add esp, 0x24
ret 4
Function at 0x40a780
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4498bb
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x4630d0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
lea edi, [esi + 8]
mov dword [esp + 0x20], 0
mov ecx, edi
mov dword [esi], vtable.CPBasePath.0
call fcn.0040fd30
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x28]
push ecx
mov byte [esp + 0x24], 1
lea ecx, [esp + 0x14]
mov dword [esi + 4], eax
call fcn.00401050
lea edx, [esp + 0x14]
lea ecx, [edi + 4]
push edx
mov byte [esp + 0x24], 2
call fcn.00401b00
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 1
call fcn.0040fd60
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], 0xffffffff
call fcn.0040fd60
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret 0xc
Function at 0x40c590
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x44978e
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x4630d0]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov edi, dword [esp + 0x34]
push edi
lea ecx, [esp + 0x20]
call fcn.0040c4a0
mov esi, eax
push str.CCZipperObjectFactory::MakeObject
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0
call fcn.004010e0
push esi
lea ecx, [esp + 0x10]
push ecx
mov ecx, eax
mov byte [esp + 0x34], 1
call fcn.004011f0
lea esi, [eax + 4]
mov byte [esp + 0x2c], 2
mov eax, dword [esi]
sub eax, 0x10
cmp dword [eax + 0xc], 1
jle 0x40c60b
mov edx, dword [eax + 4]
push edx
mov ecx, esi
call fcn.00401bf0
mov esi, dword [esi]
push esi
push 7
call fcn.00410660
add esp, 8
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 1
call fcn.0040fd60
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 0
call fcn.0040fd60
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0040fd60
xor eax, eax
cmp edi, 0x7a666474
je 0x40c68b
cmp edi, 0x7a666864
jne 0x40c6c1
push 0x24
call fcn.00428bd5
add esp, 4
mov dword [esp + 0x34], eax
test eax, eax
mov dword [esp + 0x2c], 4
je 0x40c6bf
push eax
call fcn.0040e280
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x24
ret 4
push 0x30
call fcn.00428bd5
add esp, 4
mov dword [esp + 0x34], eax
test eax, eax
mov dword [esp + 0x2c], 3
je 0x40c6bf
push eax
call fcn.0040c6f0
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x24
ret 4
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x24
ret 4
Function at 0x40e360
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x449400
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4630d0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
push str.CCZipperHeaderData::DoSerialProperty
lea ecx, [esp + 0x28]
call fcn.004010e0
lea edi, [eax + 4]
mov dword [esp + 0x38], 0
mov eax, dword [edi]
sub eax, 0x10
mov ebx, 1
cmp dword [eax + 0xc], ebx
jle 0x40e3c1
mov eax, dword [eax + 4]
push eax
mov ecx, edi
call fcn.00401bf0
mov edi, dword [edi]
push edi
push 7
call fcn.00410660
add esp, 8
lea ecx, [esp + 0x24]
mov dword [esp + 0x38], 0xffffffff
call fcn.0040fd60
cmp dword [ebp + 8], 0
je 0x40e3ff
mov eax, 0x68
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp byte [ebp + 0x10], 0
je 0x40e4dc
mov edi, dword [ebp + 0xc]
mov edx, dword [edi]
mov edx, dword [edx + 8]
lea eax, [esp + 0x1c]
push eax
mov ecx, edi
call edx
test eax, eax
jne 0x40e42d
cmp dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
jg 0x40e44a
mov eax, 0xc8
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edi, dword [ebp + 0xc]
mov ebx, 1
mov eax, dword [0x467d00]
mov ecx, dword [ebp + 0x14]
push eax
push ecx
push 0x7a666474
push edi
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x2c], 0
call fcn.00416e00
add esp, 0x18
test eax, eax
jne 0x40e42d
mov edi, dword [esp + 0x14]
test edi, edi
je 0x40e4c2
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x38], ebx
mov eax, dword [esi + 0x18]
lea ebx, [esi + 0x10]
call fcn.0040eb50
lea ecx, [esp + 0x24]
mov dword [esp + 0x38], 0xffffffff
call fcn.0040c470
mov eax, dword [esp + 0x18]
add eax, 1
cmp eax, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
jl 0x40e442
jmp 0x40e428
mov eax, 0x66
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [esi + 0x18]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x50]
call eax
test eax, eax
jne 0x40e42d
xor ebx, ebx
cmp dword [esi + 0x18], ebx
jle 0x40e428
xor edi, edi
test edi, edi
jl 0x40e531
cmp ebx, dword [esi + 0x18]
jge 0x40e531
mov ecx, dword [esi + 0x14]
mov edx, dword [ecx + edi]
mov eax, dword [ebp + 0xc]
mov edx, dword [edx + 0xc]
add ecx, edi
push eax
call edx
test eax, eax
jne 0x40e42d
add ebx, 1
add edi, 0x30
cmp ebx, dword [esi + 0x18]
jl 0x40e4ff
jmp 0x40e428
call fcn.00428ce4
int3
Function at 0x40ebc0
Capabilities:
Check for time delay via gettickcount
Enumerate services
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x45b078
push 0x4325b0
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push esi
push edi
mov eax, dword [0x4630d0]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], 0x7530
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push 0
push 0
push 1
mov edi, dword [ebp + 0xc]
push edi
mov ebx, dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
call ebx
test eax, eax
jne 0x40edac
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x40ec7b
mov edx, dword [ebp - 0x1c]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x28], esi
test esi, esi
je 0x40ec7b
mov dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
push esi
push 1
push edi
call ebx
test eax, eax
jne 0x40ec8f
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x4630d0
call fcn.00432748
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ebx, ebx
mov dword [ebp - 0x24], ebx
cmp ebx, dword [ebp - 0x20]
jae 0x40eda0
lea ecx, [ebx + ebx*8]
lea esi, [esi + ecx*4]
mov ecx, 9
lea edi, [ebp - 0x7c]
rep movsd dword es:[edi], dword [esi]
push 0x24
mov edx, dword [ebp - 0x7c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x34], esi
test esi, esi
jne 0x40eced
push 0xfffffffffffffffe
lea ecx, [ebp - 0x10]
push ecx
push 0x4630d0
call fcn.00432748
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, 1
mov dword [ebp - 4], edi
lea edx, [ebp - 0x58]
push edx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x40ec68
lea esp, [esp]
cmp dword [ebp - 0x54], edi
je 0x40ed70
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [ebp - 0x1c]
push edx
push 0x24
lea eax, [ebp - 0x58]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x40ecc6
cmp dword [ebp - 0x54], edi
je 0x40ed70
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x30]
jbe 0x40ed10
push 0xfffffffffffffffe
lea edx, [ebp - 0x10]
push edx
push 0x4630d0
call fcn.00432748
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
call fcn.0040ed94
add ebx, edi
mov dword [ebp - 0x24], ebx
mov esi, dword [ebp - 0x28]
jmp 0x40ec94
mov dword [ebp - 4], 0xfffffffe
call fcn.0040edc6
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ede0
Capabilities:
Delete service

Disassembly:
push 0xffffffffffffffff
push 0x446d98
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4630d0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
push 0xf003f
push 0
push 0
mov dword [esp + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x40ee5a
mov eax, dword [esp + 0x20]
cmp dword [eax - 4], 1
jle 0x40ee3a
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x24]
call fcn.00401bf0
mov eax, dword [esp + 0x20]
push 0x10000
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x40ee82
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.0040fd60
mov eax, 0x64
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x40eea1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
jmp 0x40ee5a
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.0040fd60
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret