joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d032
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x495040]
xor eax, ebp
mov dword [ebp - 4], eax
test edi, edi
jne 0x40d059
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045e86d
leave
ret 4
push esi
push dword [ebp + 8]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x210], esi
test esi, esi
je 0x40d07b
cmp esi, 0xffffffff
jne 0x40d08d
xor esi, esi
lea eax, [ebp - 0x210]
call fcn.00404434
mov eax, esi
pop esi
jmp 0x40d04b
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00460930
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
jbe 0x40d07b
push edi
lea ecx, [ebp - 0x20c]
call fcn.0040c808
xor esi, esi
inc esi
jmp 0x40d07d

Function at 0x40d153
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp + 8], eax
jne 0x40d166
xor eax, eax
inc eax
jmp 0x40d198
push esi
push dword [ebp + 8]
xor esi, esi
push esi
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp + 8], eax
cmp eax, esi
je 0x40d18d
cmp eax, 0xffffffff
je 0x40d18d
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov esi, eax
lea eax, [ebp + 8]
call fcn.00404434
mov eax, esi
pop esi
pop ebp
ret 8

Function at 0x40d4b6
Capabilities:
Check if file exists
Get file size
Read file via mapping

Disassembly:
or dword [esi], 0xffffffff
push ebx
push dword [esp + 8]
xor ebx, ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40d54b
push ebx
push 0x80
push 3
push ebx
push 1
push connect
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x40d54b
push edi
lea edi, [esi + 0x10]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x40d54a
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov edx, ecx
or edx, eax
je 0x40d54a
cmp eax, ebx
jl 0x40d51f
mov eax, 0x400000
jg 0x40d51b
cmp ecx, eax
jbe 0x40d51f
mov edi, eax
jmp 0x40d521
mov edi, ecx
push ebx
push ebx
push ebx
push 2
push ebx
push dword [esi]
mov dword [esi + 0x18], edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 4], eax
cmp eax, ebx
je 0x40d54a
push dword [esi + 0x18]
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 8], eax
pop edi
mov eax, esi
pop ebx
ret 4
Function at 0x40d5d5
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
push edi
cmp dword [ebp + 8], esi
je 0x40d670
movzx eax, ax
push 0x47fb34
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
je 0x40d670
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp ebx, esi
jbe 0x40d670
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
je 0x40d670
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, esi
je 0x40d670
push esi
push esi
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 8], eax
cmp eax, esi
je 0x40d668
cmp eax, 0xffffffff
je 0x40d668
push esi
lea ecx, [ebp - 4]
push ecx
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40d65c
cmp dword [ebp - 4], ebx
jne 0x40d65c
inc esi
lea eax, [ebp + 8]
call fcn.00404434
mov eax, esi
jmp 0x40d672
lea eax, [ebp + 8]
call fcn.00404434
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40da6b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x800
lea ebp, [esp - 4]
mov eax, dword [0x495040]
xor eax, ebp
mov dword [ebp + 0x800], eax
push 0x20
mov eax, 0x4789b4
call fcn.0045fcd1
mov eax, dword [ebp + 0x80c]
mov ebx, dword [ebp + 0x810]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x814]
xor edi, edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], ebx
mov word [esi + 4], ax
mov dword [ebp - 4], edi
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x14], edi
cmp ebx, edi
je 0x40db7d
push 0x7fe
mov word [ebp], ax
lea eax, [ebp + 2]
push edi
push eax
call fcn.00460930
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x10], edi
push ebx
push dword [ebp - 0x20]
mov ebx, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov dword [ebp - 0x18], edi
call ebx
cmp dword [ebp - 0x18], 1
je 0x40db17
cmp dword [ebp - 0x18], 2
jne 0x40db7d
mov eax, dword [ebp - 0x10]
cmp eax, edi
je 0x40db7d
cmp eax, 0x800
jbe 0x40db4b
add eax, 2
push eax
call fcn.0045f123
mov ecx, dword [ebp - 0x10]
add ecx, 2
push ecx
push edi
push eax
mov dword [ebp - 0x14], eax
call fcn.00460930
add esp, 0x10
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
jmp 0x40db53
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp]
push eax
push edi
push dword [ebp - 0x1c]
push dword [ebp - 0x24]
push dword [ebp - 0x20]
call ebx
mov ebx, dword [ebp - 0x14]
mov eax, ebx
cmp ebx, edi
jne 0x40db6b
lea eax, [ebp]
push eax
push esi
call fcn.004030f7
cmp ebx, edi
je 0x40db7d
push ebx
call fcn.0045f046
pop ecx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.0045e86d
add ebp, 0x804
leave
ret
Function at 0x40dbf0
Capabilities:
Check if file exists
Create service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
xor esi, esi
cmp dword [ebp + 0x10], 3
push edi
mov edi, eax
jbe 0x40dc0c
cmp dword [ebp + 0x10], esi
ja 0x40dcaa
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40dcaa
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov ebx, eax
cmp edi, esi
jne 0x40dc56
cmp ebx, esi
je 0x40dcaa
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x480d70
push ebx
call edi
test eax, eax
jne 0x40dc47
xor edi, edi
inc edi
jmp 0x40dc56
push 0x480d7c
push ebx
call edi
test eax, eax
jne 0x40dcaa
push 0x10
pop edi
push 0xf003f
push esi
push esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0xc], eax
cmp eax, esi
je 0x40dca2
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
push 1
push dword [ebp + 0x10]
push edi
push 0xf01ff
push dword [ebp + 0xc]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
call fcn.0040dbd0
xor eax, eax
cmp dword [ebp - 8], esi
setne al
jmp 0x40dcac
lea eax, [ebp - 0xc]
call fcn.0040dbd0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40dcb3
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x40dd12
push 0xf003f
push edi
push edi
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0xc], eax
cmp eax, edi
je 0x40dd0a
push 0x10
push dword [ebp + 8]
lea esi, [ebp - 0xc]
call fcn.0040dba2
cmp dword [ebp - 0xc], edi
je 0x40dd0a
push edi
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x40dd07
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
jne 0x40dd0a
xor edi, edi
inc edi
lea eax, [ebp - 0xc]
call fcn.0040dbd0
mov eax, edi
pop edi
pop esi
leave
ret 4

Function at 0x40dd7e
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x40ddcc
push 0xf003f
push edi
push edi
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0xc], eax
cmp eax, edi
je 0x40ddc4
push 0x10000
push dword [ebp + 8]
lea esi, [ebp - 0xc]
call fcn.0040dba2
cmp dword [ebp - 0xc], edi
je 0x40ddc4
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov edi, eax
lea eax, [ebp - 0xc]
call fcn.0040dbd0
mov eax, edi
pop edi
pop esi
leave
ret 4
Function at 0x40ddd4
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [ebp + 8], edi
je 0x40de39
push 4
push edi
push edi
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0xc], eax
cmp eax, edi
je 0x40de31
push 4
push dword [ebp + 8]
lea esi, [ebp - 0xc]
call fcn.0040dba2
cmp dword [ebp - 0xc], edi
je 0x40de31
push 6
mov dword [ebp - 0x28], edi
pop ecx
xor eax, eax
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x40de31
cmp dword [ebp - 0x24], 4
jne 0x40de31
inc ebx
lea eax, [ebp - 0xc]
call fcn.0040dbd0
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4

Function at 0x40df5d
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x495040]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40e011
push ebx
push esi
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
xor ebx, ebx
lea eax, [ebp - 0x20a]
push ebx
push eax
call fcn.00460930
add esp, 0xc
lea esi, [ebp - 0x20c]
mov ecx, edi
call fcn.0040c759
mov ecx, esi
call fcn.0040de42
test eax, eax
je 0x40dfbe
xor eax, eax
inc eax
jmp 0x40e00f
lea eax, [ebp - 0x20c]
push eax
push 0x480da0
lea eax, [ebp - 0x61c]
push 0x208
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
lea eax, [ebp - 0x61c]
push eax
call fcn.0040cdd3
mov dword [ebp - 0x620], eax
cmp eax, ebx
je 0x40dffd
cmp eax, 0xffffffff
je 0x40dffd
xor ebx, ebx
inc ebx
lea eax, [ebp - 0x620]
call fcn.00404434
xor eax, eax
test bl, bl
setne al
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045e86d
leave
ret
Function at 0x418a79
Capabilities:
Delete file
Get file size

Disassembly:
push 0x2ac
mov eax, 0x479a5c
call fcn.0045fd3a
xor edi, edi
push edi
push dword [0x499a10]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x500000
jbe 0x418af6
push 0x2d
push edi
mov esi, 0x499a14
push esi
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
xor ecx, ecx
mov word [eax], cx
inc dword [0x499c1c]
push dword [0x499c1c]
lea eax, [ebp - 0x90]
push str.__d.log
push 0x40
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
lea eax, [ebp - 0x90]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push dword [0x499a10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x499a10], 0xffffffff
xor eax, eax
push 0x206
mov word [ebp - 0x298], ax
lea eax, [ebp - 0x296]
push edi
push eax
call fcn.00460930
add esp, 0xc
lea eax, [ebp - 0x298]
push eax
call fcn.00418922
lea eax, [ebp - 0x2b0]
push eax
call fcn.00406728
push edi
push edi
lea eax, [ebp - 0x2b8]
push eax
push 0x418a05
push edi
lea eax, [ebp - 0x298]
mov dword [ebp - 4], edi
push eax
mov dword [ebp - 0x2b8], edi
mov dword [ebp - 0x2b4], edi
call fcn.0040b659
mov eax, dword [ebp - 0x2a0]
sub eax, dword [ebp - 0x2a4]
push 0x1c
cdq
pop ecx
idiv ecx
cmp eax, 0x64
ja 0x418b81
cmp dword [ebp - 0x2b4], edi
ja 0x418b81
cmp dword [ebp - 0x2b8], 0x3200000
jbe 0x418bbc
cmp eax, 0x14
jbe 0x418b8b
push 0xa
pop ebx
jmp 0x418b92
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
cmp ebx, edi
jle 0x418bbc
push edi
lea esi, [ebp - 0x2b0]
call fcn.0040e579
cmp dword [eax + 0x18], 8
jb 0x418bad
mov eax, dword [eax + 4]
jmp 0x418bb0
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc edi
cmp edi, ebx
jl 0x418b96
lea esi, [ebp - 0x2b0]
call fcn.0040ecd9
push dword [ebp - 0x2b0]
call fcn.0045e8a6
pop ecx
call fcn.0045fdbd
ret
Function at 0x418fa2
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push edi
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
je 0x418fdd
push dword [ebp + 0x10]
xor ecx, ecx
push dword [ebp - 4]
push str.thread__d_created:__s
call fcn.00418ead
add esp, 0xc
mov eax, edi
pop edi
leave
ret 0xc
Function at 0x41ae52
Capabilities:
Create thread

Disassembly:
push 4
mov eax, 0x47a478
call fcn.0045fcd1
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0xc], 0
je 0x41ae6e
xor al, al
jmp 0x41af5a
lea esi, [ebx + 0x14]
push esi
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [ebp - 4], 0
cmp byte [ebx + 4], 0
mov dword [ebx + 0xc], 1
je 0x41ae95
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x41ae67
mov edi, dword [ebp + 0xc]
lea esi, [ebx + 0x2c]
mov byte [ebx + 4], 1
call fcn.0041973a
mov eax, dword [ebp + 0xc]
xor edi, edi
cmp dword [eax + 8], edi
jne 0x41aeda
push 0x130
call fcn.0045e99a
pop ecx
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 1
cmp eax, edi
je 0x41aecc
push eax
call fcn.004198e5
jmp 0x41aece
xor eax, eax
mov byte [ebp - 4], 0
mov dword [ebx + 0x88], eax
jmp 0x41af17
push 0xf0
call fcn.0045e99a
mov esi, eax
pop ecx
mov dword [ebp + 0xc], esi
mov byte [ebp - 4], 2
cmp esi, edi
je 0x41af0b
call fcn.004190d4
mov dword [esi], vtable.CLocalScreenWatermarkPrinter.0
mov dword [esi + 0xe8], edi
mov dword [esi + 0xec], edi
jmp 0x41af0d
xor esi, esi
mov byte [ebp - 4], 0
mov dword [ebx + 0x88], esi
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push edi
push edi
push ebx
push 0x41acd9
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
push str.thread_handle:_d
mov dword [ebx + 8], eax
call fcn.004220f2
pop ecx
pop ecx
lea eax, [ebx + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0xffffffffffffffff
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebx + 0xc], edi
mov al, 1
call fcn.0045fda9
ret 8

Function at 0x41afa5
Capabilities:
Terminate thread

Disassembly:
push 4
mov eax, 0x479956
call fcn.0045fcd1
lea edi, [esi + 0x14]
push edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp byte [esi + 4], bl
jne 0x41afe2
push str.close_err1
call fcn.004220f2
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
call fcn.0045fda9
ret
mov eax, dword [esi + 0x84]
cmp eax, ebx
jne 0x41b002
push str.close_err2
call fcn.004220f2
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
jmp 0x41afdc
push ebx
push ebx
push 0x12
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
push dword [esi + 8]
push str.wait_thread:_d
call fcn.004220f2
pop ecx
pop ecx
push 0x1388
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x41b046
push str.wait_time_out
call fcn.004220f2
pop ecx
push ebx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], ebx
mov byte [esi + 4], bl
mov dword [esi + 0x88], ebx
mov bl, 1
jmp 0x41aff7
Function at 0x41bb53
Capabilities:
Check if file exists
Create service

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x495040]
xor eax, ebp
mov dword [ebp + 0x190], eax
push ebx
push esi
call fcn.0041bacc
mov ebx, eax
xor esi, esi
xor eax, eax
cmp ebx, esi
je 0x41bc88
push edi
push 0x206
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push esi
push eax
call fcn.00460930
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
push ebx
call fcn.0040c384
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x78]
push eax
call edi
test eax, eax
jne 0x41bbea
cmp word [0x499c60], si
je 0x41bbdc
push 0x104
push 0x499c60
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push ebx
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x78]
push eax
call edi
test eax, eax
je 0x41bc85
lea eax, [ebp - 0x78]
push eax
call edi
test eax, eax
je 0x41bc85
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov ebx, eax
cmp ebx, esi
je 0x41bc85
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x480d70
push ebx
call edi
test eax, eax
jne 0x41bc1f
xor edi, edi
inc edi
jmp 0x41bc2e
push 0x480d7c
push ebx
call edi
test eax, eax
jne 0x41bc85
push 0x10
pop edi
push 0xf003f
push esi
push esi
mov dword [ebp - 0x7c], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x80], eax
cmp eax, esi
je 0x41bc7d
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x78]
push eax
push 1
push 3
push edi
push 0xf01ff
mov eax, 0x483744
push eax
push eax
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x80]
call fcn.0040dbd0
xor eax, eax
cmp dword [ebp - 0x7c], esi
setne al
jmp 0x41bc87
lea eax, [ebp - 0x80]
call fcn.0040dbd0
xor eax, eax
pop edi
mov ecx, dword [ebp + 0x190]
pop esi
xor ecx, ebp
pop ebx
call fcn.0045e86d
add ebp, 0x194
leave
ret

Function at 0x41bc9f
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, 0x483744
push esi
call fcn.0040dd1a
test eax, eax
je 0x41bcdb
push esi
call fcn.0040dcb3
test eax, eax
je 0x41bcbe
xor eax, eax
inc eax
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x41bcd5
cmp eax, 3
je 0x41bcd5
cmp eax, 0x241
jne 0x41bcee
push esi
call fcn.0040dd7e
call fcn.0041bb53
test eax, eax
je 0x41bcee
push esi
call fcn.0040dcb3
test eax, eax
jne 0x41bcb9
xor eax, eax
pop esi
ret
Function at 0x41be28
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x495040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push edi
xor eax, eax
push eax
push eax
push 3
push eax
push 3
mov ebx, 0xc0000000
push ebx
mov edi, 0x483788
push edi
call esi
cmp eax, 0xffffffff
jne 0x41bf2b
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00460930
add esp, 0xc
call fcn.0041bdb0
lea ecx, [ebp - 0x210]
push ecx
push eax
mov dword [ebp - 0x214], eax
call fcn.0040c384
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41bed9
cmp word [0x499e68], ax
je 0x41bed9
push 0x499e68
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp - 0x214]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
call fcn.0040c4ac
mov dword [ebp - 0x214], 0x48000c
test eax, eax
jne 0x41bef6
mov dword [ebp - 0x214], 0x47fff4
push 0x4837a4
call fcn.0040dd1a
push dword [ebp - 0x214]
test eax, eax
lea eax, [ebp - 0x210]
push eax
call fcn.004227e0
push 0x4837a4
call fcn.0040dcb3
xor eax, eax
push eax
push eax
push 3
push eax
push 3
push ebx
push edi
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045e86d
leave
ret
Function at 0x41e4a6
Capabilities:
Check if file exists
Create service

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x495040]
xor eax, ebp
mov dword [ebp + 0x190], eax
push esi
push edi
xor eax, eax
push 0x206
mov word [ebp - 0x78], ax
xor esi, esi
lea eax, [ebp - 0x76]
push esi
push eax
call fcn.00460930
add esp, 0xc
call fcn.0041e42e
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x78]
push eax
call edi
test eax, eax
jne 0x41e546
lea eax, [ebp - 0x78]
push eax
call fcn.0041e42e
push eax
call fcn.0040c384
lea eax, [ebp - 0x78]
push eax
call edi
test eax, eax
jne 0x41e546
cmp word [0x49a078], si
je 0x41e538
push 0x104
push 0x49a078
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
call fcn.0041e42e
push eax
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x78]
push eax
call edi
test eax, eax
je 0x41e5e5
push ebx
lea eax, [ebp - 0x78]
push eax
call edi
test eax, eax
je 0x41e5e2
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov ebx, eax
cmp ebx, esi
je 0x41e5e2
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x480d70
push ebx
call edi
test eax, eax
jne 0x41e57c
xor edi, edi
inc edi
jmp 0x41e58b
push 0x480d7c
push ebx
call edi
test eax, eax
jne 0x41e5e2
push 0x10
pop edi
push 0xf003f
push esi
push esi
mov dword [ebp - 0x7c], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x80], eax
cmp eax, esi
je 0x41e5da
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x78]
push eax
push 1
push 3
push edi
push 0xf01ff
mov eax, 0x483838
push eax
push eax
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x80]
call fcn.0040dbd0
xor eax, eax
cmp dword [ebp - 0x7c], esi
setne al
jmp 0x41e5e4
lea eax, [ebp - 0x80]
call fcn.0040dbd0
xor eax, eax
pop ebx
mov ecx, dword [ebp + 0x190]
pop edi
xor ecx, ebp
pop esi
call fcn.0045e86d
add ebp, 0x194
leave
ret
Function at 0x41ee99
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xb4]
sub esp, 0x134
mov eax, dword [0x495040]
xor eax, ebp
mov dword [ebp + 0xb0], eax
push ebx
push esi
push edi
push 0x110
xor ebx, ebx
lea eax, [ebp - 0x60]
push ebx
push eax
xor edi, edi
mov dword [ebp - 0x64], 0x114
call fcn.00460930
add esp, 0xc
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp + 0xbc], 0x8000
jne 0x41eef1
mov edi, 0x100
jmp 0x41ef1a
cmp dword [ebp + 0xbc], 0x8004
je 0x41ef15
cmp dword [ebp - 0x60], 6
jb 0x41ef1a
cmp dword [ebp - 0x5c], 1
jb 0x41ef1a
cmp dword [ebp + 0xbc], 0x8003
jne 0x41ef1a
mov edi, 0x80
mov ecx, dword [ebp + 0xc0]
xor esi, esi
inc esi
shl esi, cl
cmp edi, ebx
je 0x41ef5c
xor eax, eax
inc eax
mov ecx, ebx
shl eax, cl
test esi, eax
je 0x41ef56
mov al, bl
add al, 0x41
push 0
mov byte [ebp - 0x68], al
lea eax, [ebp - 0x68]
push eax
push 5
push edi
mov byte [ebp - 0x67], 0x3a
mov byte [ebp - 0x66], 0x5c
mov byte [ebp - 0x65], 0
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
inc ebx
cmp ebx, 0x1a
jl 0x41ef29
and dword [ebp - 0x78], 0
xor ecx, ecx
cmp dword [ebp - 0x60], 6
push 2
pop eax
mov word [ebp - 0x70], cx
mov dword [ebp - 0x80], 0x14
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x74], esi
mov ecx, 0x3e8
jb 0x41ef84
push 0x64
pop ecx
mov esi, dword [sym.imp.USER32.dll_SendMessageTimeoutW]
lea edx, [ebp - 0x6c]
push edx
push ecx
push eax
lea eax, [ebp - 0x80]
push eax
push dword [ebp + 0xbc]
mov ebx, 0x219
push ebx
mov edi, 0xffff
push edi
call esi
cmp dword [ebp - 0x60], 6
jae 0x41efcf
mov eax, 0x8000
cmp dword [ebp + 0xbc], eax
jne 0x41efcf
lea ecx, [ebp - 0x6c]
push ecx
push 0xc8
push 2
lea ecx, [ebp - 0x80]
push ecx
push eax
push ebx
push edi
call esi
mov ecx, dword [ebp + 0xb0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045e86d
add ebp, 0xb4
leave
ret 8