joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401287
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0xe8
push ebx
push esi
mov esi, dword [ebp + 0x78]
push edi
push dword [ebp + 0x7c]
mov edi, dword [sym.imp.USER32.DLL_GetDlgItem]
push dword [esi + 0x18]
call edi
push 9
push dword [esi + 0x18]
mov dword [ebp + 0x6c], eax
call edi
mov dword [ebp + 0x78], eax
push 0x64
lea eax, [ebp - 0x78]
push eax
push dword [ebp + 0x6c]
xor ebx, ebx
mov word [ebp - 0x78], bx
call dword [sym.imp.USER32.DLL_GetWindowTextW]
lea eax, [ebp - 0x78]
push eax
push dword [ebp + 0x78]
call dword [sym.imp.USER32.DLL_SetWindowTextW]
lea eax, [ebp + 0x64]
push eax
push dword [esi + 0x18]
mov dword [ebp + 0x64], ebx
mov dword [ebp + 0x68], ebx
call dword [sym.imp.USER32.DLL_ClientToScreen]
xor eax, eax
lea edi, [ebp + 0x54]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp + 0x54]
push eax
push dword [ebp + 0x6c]
call dword [sym.imp.USER32.DLL_GetWindowRect]
mov ecx, dword [ebp + 0x58]
mov eax, dword [ebp + 0x54]
mov edi, dword [ebp + 0x60]
mov esi, dword [ebp + 0x5c]
push 4
sub edi, ecx
sub ecx, dword [ebp + 0x68]
push edi
sub esi, eax
sub eax, dword [ebp + 0x64]
push esi
push ecx
push eax
push ebx
push dword [ebp + 0x78]
mov dword [ebp + 0x54], eax
mov dword [ebp + 0x58], ecx
call dword [sym.imp.USER32.DLL_SetWindowPos]
push 1
push edi
push esi
push dword [ebp + 0x58]
push dword [ebp + 0x54]
push dword [ebp + 0x78]
call dword [sym.imp.USER32.DLL_MoveWindow]
push ebx
push dword [ebp + 0x6c]
call dword [sym.imp.USER32.DLL_ShowWindow]
pop edi
pop esi
pop ebx
add ebp, 0x70
leave
ret
Function at 0x40395f
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi]
push edi
xor edi, edi
test eax, eax
je 0x403977
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov edi, eax
lea eax, [edi + 0x2d0]
push eax
mov ecx, esi
call fcn.00443fa0
test edi, edi
jg 0x403a02
mov eax, dword [esi]
and word [eax], 0
mov eax, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
push ebp
mov ebp, 0x208
push ebp
push eax
push 0x4bcd24
call ebx
mov edi, eax
test edi, edi
jg 0x4039f1
mov eax, dword [esi]
push ebp
push eax
push 0x4bcd18
call ebx
mov edi, eax
test edi, edi
jg 0x4039f1
push 0
push 0x24
push dword [esi]
push 0
call dword [sym.imp.SHELL32.DLL_SHGetSpecialFolderPathW]
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov edi, eax
test edi, edi
jle 0x403a01
mov eax, dword [esi]
push 0x4bcd0c
lea eax, [eax + edi*2]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
add edi, 5
test edi, edi
jle 0x403a01
mov eax, dword [esi]
mov word [eax + edi*2], 0x5c
mov eax, dword [esi]
inc edi
and word [eax + edi*2], 0
pop ebp
push dword [esi]
mov ebx, 0x4d80e8
mov ecx, ebx
call fcn.0041cd41
test edi, edi
jle 0x403a20
push dword [esi]
call fcn.004a9676
test eax, eax
pop ecx
jne 0x403a4e
push 0
push 0x24
push dword [esi]
push 0
call dword [sym.imp.SHELL32.DLL_SHGetSpecialFolderPathW]
push 0x4bccfc
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_lstrcatW]
push dword [esi]
mov ecx, ebx
call fcn.0041cd41
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x403e41
Capabilities:
Get geographical location
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
and word [ebp - 0x44], 0
push 0x20
lea eax, [ebp - 0x44]
push eax
push 0x4bcf24
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
cmp word [ebp - 0x44], 0
jne 0x403e77
push 0x20
lea eax, [ebp - 0x44]
push eax
push 0xb
push 0x800
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
cmp word [ebp - 0x44], 0
lea eax, [ebp - 0x44]
jne 0x403e86
mov eax, 0x4bcf1c
push eax
mov ecx, 0x4d7c94
call fcn.0044ce38
push dword [0x4d7c94]
call fcn.00444bbe
cmp eax, 1
pop ecx
jle 0x403ea8
mov word [0x4d7c0c], ax
leave
ret

Function at 0x404002
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
mov edi, dword [sym.imp.USER32.DLL_GetLastInputInfo]
lea eax, [ebp - 8]
xor ebx, ebx
push eax
mov dword [ebp - 8], 8
mov dword [ebp - 4], ebx
call edi
mov eax, dword [ebp - 4]
mov ecx, eax
sub ecx, dword [0x4d7c48]
test ecx, ecx
jle 0x404035
mov dword [0x4d7c48], eax
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
call esi
mov dword [0x4d7c48], eax
jmp 0x40406d
lea eax, [ebp - 8]
push eax
mov dword [ebp - 4], ebx
call edi
call esi
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jb 0x404065
sub eax, dword [0x4d7c48]
cmp eax, dword [ebp + 8]
jae 0x404075
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
cmp byte [0x4d62ec], bl
jg 0x404045
mov eax, dword [ebp - 4]
mov ecx, eax
sub ecx, dword [0x4d7c48]
pop esi
test ecx, ecx
jle 0x40408a
mov dword [0x4d7c48], eax
xor eax, eax
cmp byte [0x4d62ec], bl
pop edi
setg al
pop ebx
leave
ret

Function at 0x40425f
Capabilities:
Terminate process

Disassembly:
cmp byte [0x4d62ec], 2
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_Sleep]
push 0x14
pop esi
je 0x404276
push esi
call edi
cmp dword [0x4d7c58], 0
je 0x404291
push 0x1e
pop esi
jmp 0x404291
cmp dword [0x4d7c4c], 0
je 0x404294
push 0xa
call edi
dec esi
jns 0x404284
mov eax, dword [0x4d7c4c]
test eax, eax
pop edi
pop esi
je 0x4042b2
push 0
push eax
mov dword [0x4d7c4c], 0
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
mov byte [0x4d62ec], 0xff
ret
Function at 0x4042ba
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_SetLastError]
push dword [ebp + 0xc]
mov esi, 0x8000004
push 0x64
push ebx
push esi
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingA]
mov edi, eax
cmp edi, ebx
mov byte [ebp - 1], 1
je 0x4042fb
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
jne 0x40430c
mov byte [ebp - 1], bl
jmp 0x40430c
push dword [ebp + 0xc]
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_OpenFileMappingA]
mov edi, eax
cmp edi, ebx
je 0x404348
push ebx
push ebx
push ebx
push 6
push edi
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
push edi
mov dword [0x4d7c60], eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [0x4d7c60]
cmp eax, ebx
je 0x404348
cmp byte [ebp - 1], bl
je 0x404343
push 0x64
push ebx
push eax
call fcn.004aa020
mov eax, dword [0x4d7c60]
add esp, 0xc
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405a60
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
jne 0x405a7c
lea ebx, [ebp - 0x14]
cmp dword [ebp + 0xc], edi
mov esi, dword [ebp + 0xc]
jne 0x405a9a
cmp dword [ebp + 8], edi
lea esi, [ebp - 0x10]
je 0x405c25
push dword [ebx]
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
push 0x26c
mov ecx, ebx
call fcn.00443fa0
push esi
call fcn.0040395f
mov edi, eax
lea eax, [edi + 1]
push eax
push dword [esi]
mov dword [ebp - 0x18], edi
push dword [ebx]
call fcn.004055fd
add esp, 0x10
push 0
call dword [sym.imp.KERNEL32.DLL_SetLastError]
and dword [ebp - 4], 0
and dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xc7
jmp 0x405add
mov edi, dword [ebp - 0x18]
cmp dword [ebp + 8], 0
je 0x405b88
mov eax, dword [ebx]
lea eax, [eax + edi*2]
push 0x4bd274
mov dword [ebp - 0x1c], eax
call fcn.00440118
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
add edi, eax
push edi
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
push eax
push dword [ebp + 0x14]
push 0x4bd248
push dword [ebp - 0x1c]
call dword [sym.imp.USER32.DLL_wsprintfW]
mov eax, dword [ebx]
add esp, 0x18
xor edi, edi
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
jne 0x405b47
push edi
push edi
push 5
mov ecx, 0x4d80e8
call fcn.004159e8
dec dword [ebp - 8]
jns 0x405ada
jmp 0x405c01
cmp dword [ebp + 0xc], edi
mov dword [ebp - 0xc], 1
je 0x405c25
push dword [ebx]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov edi, eax
lea eax, [edi + 1]
push eax
push dword [ebx]
mov dword [ebp + 8], eax
push dword [esi]
call fcn.004055fd
mov eax, dword [esi]
mov word [eax + edi*2], 0x5c
mov eax, dword [ebp + 8]
mov ecx, dword [esi]
add esp, 0xc
and word [ecx + eax*2], 0
jmp 0x405b8a
mov eax, edi
and dword [ebp + 8], 0
add eax, eax
mov dword [ebp + 0xc], eax
push dword [ebp + 0x18]
mov edi, dword [esi]
push dword [ebp + 8]
add edi, dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
push eax
push dword [ebp + 0x14]
push 0x4bd21c
push edi
call dword [sym.imp.USER32.DLL_wsprintfW]
mov eax, dword [esi]
add esp, 0x18
xor edi, edi
push edi
push 0x80
push 1
push edi
push edi
push 0x40000000
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], edi
call fcn.0040569f
cmp eax, edi
mov dword [ebp - 4], eax
jne 0x405bfc
push edi
push edi
push 5
mov ecx, 0x4d80e8
call fcn.004159e8
inc dword [ebp + 8]
cmp dword [ebp + 8], 0xc8
jl 0x405b93
mov eax, dword [esi]
and word [eax], di
cmp dword [ebp - 0xc], edi
jne 0x405c06
mov eax, dword [ebx]
mov word [eax], di
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x405c14
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
jmp 0x405c22
cmp dword [ebp - 4], edi
je 0x405c22
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edi, dword [ebp - 4]
lea ecx, [ebp - 0x10]
call fcn.0043db4f
lea ecx, [ebp - 0x14]
call fcn.0043db4f
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405c3c
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
push ebx
push esi
push edi
push 0x4bd388
xor ebx, ebx
push ebx
call fcn.004042ba
pop ecx
pop ecx
call fcn.00403e41
mov byte [0x4d7c3a], 1
call fcn.00404001
call fcn.0043f9ad
push 0x4bd35c
call dword [sym.imp.USER32.DLL_RegisterWindowMessageW]
push ebx
push 0x24
pop edi
mov dword [0x4d7c3c], eax
push edi
lea eax, [ebp - 0x12c]
push eax
push ebx
mov byte [ebp - 0x12c], bl
call dword [sym.imp.SHELL32.DLL_SHGetSpecialFolderPathA]
push 0x4bd348
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov esi, dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
push 0x4bd340
mov dword [0x4d7fe8], eax
mov dword [ebp - 4], eax
call esi
push 0x4bd338
mov dword [0x4d7fe4], eax
call esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x4bd324
push dword [ebp - 4]
mov dword [0x4d7fec], eax
call esi
push 7
pop ecx
mov dword [ebp - 0x28], edi
push 0x4bd310
push dword [ebp - 4]
mov dword [0x4d7be4], eax
xor eax, eax
mov dword [ebp - 0x24], ebx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
call esi
cmp eax, ebx
je 0x405d14
lea ecx, [ebp - 0x28]
push ecx
call eax
call fcn.0044085f
shrd eax, edx, 0x10
shr edx, 0x10
cmp word [ebp - 0x28], bx
je 0x405d64
cmp eax, 0x50000
jbe 0x405d64
push 0x4bd2f0
push dword [ebp - 4]
call esi
push 0x4bd2d0
push dword [ebp - 4]
mov dword [0x4d7c34], eax
call esi
cmp dword [0x4d7c34], ebx
mov dword [0x4d7c30], eax
jne 0x405d59
mov dword [0x4d7c30], ebx
mov bl, 1
mov word [0x4d7c1c], 0x100
movsx eax, bl
push 0x4bd2c4
push eax
mov esi, 0x4d80e8
push esi
mov byte [0x4d7c39], bl
call fcn.004465af
push 0x4bd2b4
push 4
push esi
call fcn.004465af
push 0x4bd280
push dword [0x4d7c3c]
push esi
call fcn.004465af
add esp, 0x24
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405da4
Capabilities:
Query environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov dword [ebp - 8], eax
lea ecx, [eax + 8]
push ebx
mov bx, word [eax]
mov dword [ebp - 8], ecx
mov ax, word [ecx]
call fcn.0043daaf
test al, al
jne 0x405dc8
inc ecx
inc ecx
mov dword [ebp - 8], ecx
push 0x63
lea eax, [ebp - 0x78]
push eax
push 0x4bcf5c
mov byte [ebp - 0x78], 0
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableA]
cmp byte [ebp - 0x78], 0x31
jne 0x405dea
mov byte [0x4d7c44], 1
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push dword [ebp - 8]
and dword [ebp - 0x10], 0
lea ecx, [ebp - 0x14]
mov dword [0x4d7c48], eax
call fcn.0044cd74
lea ecx, [ebp - 0xc]
call fcn.00443f5b
push 1
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x14]
mov ecx, 0x4d80e8
call fcn.004537c3
push dword [ebp - 0xc]
lea ecx, [ebp - 0x10]
call fcn.0044ce38
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0xc]
mov dword [ebp - 8], eax
call fcn.0043db4f
lea ecx, [ebp - 0x14]
call fcn.0043db4f
mov ecx, dword [ebp - 8]
call fcn.00404099
push 0x4bd3d8
mov edi, eax
push 0xf
pop esi
mov dword [ebp - 8], edi
call fcn.00402d6c
test al, al
pop ecx
pop edi
pop esi
je 0x405e8b
push 0x1e
push 0x4bd3b8
push dword [ebp - 8]
mov byte [ebp - 1], 0x49
call fcn.00413de4
mov ecx, dword [ebp - 8]
add esp, 0xc
add ecx, 0x1e
call fcn.00404099
mov dword [ebp - 8], eax
jmp 0x405ea6
push 8
lea eax, [ebp - 8]
push eax
push 0x4bd3ac
call fcn.00445f31
add esp, 0xc
test al, al
je 0x405f05
mov byte [ebp - 1], 0x53
cmp bx, 0x22
jne 0x405ee0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov edx, dword [ebp - 8]
lea ecx, [edx + eax*2 - 2]
cmp ecx, edx
jbe 0x405ee0
mov ax, word [ecx]
call fcn.0043daaf
test al, al
je 0x405ed2
dec ecx
dec ecx
cmp ecx, edx
ja 0x405ec0
cmp ecx, edx
jbe 0x405ee0
cmp word [ecx], 0x22
jne 0x405ee0
and word [ecx], 0
sub dword [ebp - 8], 2
movsx ax, byte [ebp - 1]
mov ecx, dword [ebp - 8]
mov word [ecx], ax
sub dword [ebp - 8], 2
mov eax, dword [ebp - 8]
mov word [eax], 0x7e
push dword [ebp - 8]
call fcn.0040f1f1
jmp 0x405f25
push 0xe
lea eax, [ebp - 8]
push eax
push 0x4bd39c
call fcn.00445f31
add esp, 0xc
test al, al
pop ebx
je 0x405f2e
push dword [ebp - 8]
call fcn.004061c1
pop ecx
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
lea ecx, [ebp - 0x10]
call fcn.0043db4f
xor eax, eax
leave
ret
Function at 0x405fc6
Capabilities:
Create service
Persist via windows service
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x828
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
mov dword [0x4d7c50], eax
cmp word [eax], 0x7e
push edi
mov dword [ebp - 0x14], 0x100
mov byte [ebp - 1], bl
jne 0x406000
inc eax
inc eax
mov dword [0x4d7c50], eax
cmp word [eax], 0x49
sete byte [ebp - 1]
inc eax
inc eax
mov dword [ebp + 8], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp + 8]
push eax
call fcn.00405615
pop ecx
mov ecx, dword [ebp + 8]
mov esi, ecx
sub esi, dword [ebp - 0x10]
mov eax, 0x400
sar esi, 1
cmp esi, eax
jle 0x406022
mov esi, eax
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0xc], ecx
call fcn.0043dae7
push 6
push dword [ebp - 0xc]
push 0x4bd41c
call fcn.0043ee93
mov edi, dword [sym.imp.KERNEL32.DLL_lstrlenW]
add esp, 0x10
test al, al
je 0x406077
mov eax, dword [ebp - 0xc]
add eax, 0xc
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
mov dword [ebp - 0x14], ebx
call fcn.0043dae7
pop ecx
push dword [ebp + 8]
call edi
inc eax
add eax, eax
push eax
push dword [ebp + 8]
push dword [ebp - 0xc]
call fcn.00413d9a
add esp, 0xc
add esi, esi
push esi
push dword [ebp - 0x10]
lea eax, [ebp - 0x828]
push eax
call fcn.00413de4
add esp, 0xc
push dword [ebp - 0x10]
mov word [ebp + esi - 0x828], bx
mov byte [0x4d7c0a], bl
call edi
mov esi, eax
inc esi
lea eax, [esi + 0x226]
push eax
lea ecx, [ebp - 8]
call fcn.00443f79
mov eax, dword [ebp - 8]
push 0x1cc
add eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
mov ecx, eax
cmp ecx, ebx
jle 0x4061b4
mov eax, dword [ebp - 8]
mov word [eax + ecx*2 + 2], bx
mov eax, dword [ebp - 8]
lea edi, [eax + ecx*2 + 2]
mov dword [ebp + 8], edi
lea edx, [eax + 2]
xor edi, edi
mov word [eax], 0x22
jmp 0x4060fd
mov ax, word [edx]
call fcn.0043daaf
test al, al
je 0x4060fb
xor edi, edi
inc edi
inc edx
inc edx
cmp edx, dword [ebp + 8]
jb 0x4060ec
cmp di, bx
mov edx, dword [ebp - 8]
lea eax, [edx + 2]
mov dword [ebp + 8], eax
je 0x40611e
dec eax
dec eax
mov word [edx + ecx*2 + 2], 0x22
inc ecx
mov dword [ebp + 8], eax
inc ecx
push 0x1e
lea edi, [eax + ecx*2]
push 0x4bd3fc
push edi
call fcn.00413de4
push esi
push dword [ebp - 0x10]
add edi, 0x1e
push edi
call fcn.004055fd
add esp, 0x18
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.DLL_OpenSCManagerW]
mov esi, dword [sym.imp.ADVAPI32.DLL_CloseServiceHandle]
mov edi, eax
cmp edi, ebx
je 0x4061b1
mov eax, dword [ebp - 0x14]
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 8]
or eax, 0x10
push ebx
push 2
push eax
push 0xf01ff
lea eax, [ebp - 0x828]
push eax
push eax
push edi
call dword [sym.imp.ADVAPI32.DLL_CreateServiceW]
cmp eax, ebx
je 0x4061b1
cmp byte [ebp - 1], bl
je 0x4061b1
push eax
call esi
push 0x20000000
lea eax, [ebp - 0x828]
push eax
push edi
call dword [sym.imp.ADVAPI32.DLL_OpenServiceW]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x4061b1
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.DLL_StartServiceW]
push dword [ebp + 8]
call esi
push edi
call esi
lea ecx, [ebp - 8]
call fcn.0043db4f
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4061c1
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edx, esi
xor ebx, ebx
jmp 0x4061e3
call fcn.0043daaf
test al, al
jne 0x4061eb
inc esi
inc esi
mov ax, word [esi]
cmp ax, bx
jne 0x4061d8
mov eax, esi
sub eax, edx
sar eax, 1
mov ecx, 0x400
cmp eax, ecx
jle 0x4061fc
mov eax, ecx
lea edi, [eax + eax]
push edi
push edx
lea eax, [ebp - 0x824]
push eax
call fcn.00413de4
add esp, 0xc
mov word [ebp + edi - 0x824], bx
jmp 0x40621c
inc esi
inc esi
mov ax, word [esi]
call fcn.0043daaf
test al, al
jne 0x40621a
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.DLL_OpenSCManagerW]
cmp eax, ebx
mov ebx, dword [sym.imp.ADVAPI32.DLL_CloseServiceHandle]
mov dword [ebp - 4], eax
je 0x40628a
push 0x10020
lea ecx, [ebp - 0x824]
push ecx
push eax
call dword [sym.imp.ADVAPI32.DLL_OpenServiceW]
test eax, eax
mov dword [ebp + 8], eax
je 0x40628a
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call dword [sym.imp.ADVAPI32.DLL_ControlService]
mov esi, dword [sym.imp.KERNEL32.DLL_Sleep]
mov edi, 0xc8
push edi
call esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.DLL_DeleteService]
push dword [ebp + 8]
call ebx
push edi
call esi
jmp 0x406290
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push dword [ebp - 4]
call ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x406380
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7f8
push ebx
push esi
push edi
mov esi, 0x4bd424
lea edi, [ebp - 0x7f8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor eax, eax
mov ecx, 0x1f9
lea edi, [ebp - 0x7e6]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 8]
call fcn.00404099
mov edx, eax
mov ecx, edx
call fcn.00404160
mov esi, eax
sub esi, edx
sar esi, 1
mov eax, 0x3e8
cmp esi, eax
jl 0x4063ce
mov esi, eax
push esi
push edx
lea eax, [ebp - 0x7e8]
push eax
call fcn.004055fd
add esp, 0xc
lea eax, [ebp - 0x7f8]
push eax
push 0x64
xor edi, edi
push edi
push 0x8000004
push edi
push 0xffffffffffffffff
mov word [ebp + esi*2 - 0x7e8], di
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingW]
mov ebx, eax
cmp ebx, edi
je 0x406443
push edi
push edi
push edi
push 6
push ebx
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp esi, edi
je 0x406443
push 0x64
push edi
push esi
call fcn.004040ac
mov dword [esi], 0xffffffff
mov dword [esi + 8], edi
lea eax, [esi + 4]
add esp, 0xc
mov dword [0x4d6128], eax
mov dword [0x4d7c58], esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4090a3
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, eax
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
push dword [esi]
mov ebx, dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [0x4d7c4c], 0
call ebx
and dword [esi], 0
test edi, edi
je 0x4090e2
mov eax, dword [edi]
test eax, eax
je 0x4090e2
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateJobObject]
push dword [edi]
call ebx
and dword [edi], 0
cmp byte [esp + 0x10], 0
je 0x4090fa
push 1
push 0
push 0x4bd7fc
call fcn.00405f3a
add esp, 0xc
push dword [0x4d7cc8]
call fcn.004041de
cmp byte [esp + 0x10], 0
pop ecx
je 0x409126
push 3
pop esi
push 0
call dword [sym.imp.ADVAPI32.DLL_AbortSystemShutdownW]
push 0x3e8
call dword [sym.imp.KERNEL32.DLL_Sleep]
dec esi
jne 0x409110
pop esi
pop ebx
ret
Function at 0x40f4f3
Capabilities:
Check os version
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push 0x4d7d50
mov dword [0x4d7d50], 0x114
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
cmp dword [0x4d7d54], 5
je 0x40f51b
xor eax, eax
leave
ret
mov eax, dword [0x4d7d58]
push ebx
push edi
xor edi, edi
sub eax, edi
je 0x40f536
dec eax
jne 0x40f5b7
mov ebx, 0x39000
jmp 0x40f53b
mov ebx, 0x30000
push esi
push 0x4be9dc
lea eax, [ebp - 8]
push eax
call dword [fcn.004d7d18]
lea eax, [ebp - 8]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
push 6
mov esi, 0x4d7e80
push esi
mov dword [ebp - 0x20], 0x18
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
call dword [fcn.004d7cf0]
cmp eax, 0xc0000022
jne 0x40f5b2
lea eax, [ebp - 0x20]
push eax
push 0x60000
push esi
call dword [fcn.004d7cf0]
push dword [0x4d7e80]
call fcn.0040f425
pop ecx
push dword [0x4d7e80]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebp - 0x20]
push eax
push 6
push esi
call dword [fcn.004d7cf0]
cmp eax, edi
pop esi
jge 0x40f5bb
xor eax, eax
jmp 0x40f5df
push 0x1000
push ebx
push edi
push 6
push dword [0x4d7e80]
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov dword [0x4d7e7c], eax
neg eax
sbb eax, eax
and eax, dword [0x4d7e80]
pop edi
pop ebx
leave
ret

Function at 0x40f5e3
Capabilities:
Read file via mapping

Disassembly:
mov ecx, dword [esp + 4]
push edi
mov edi, dword [esp + 0xc]
mov eax, edi
shr eax, 0x16
mov eax, dword [ecx + eax*4]
test al, 1
jne 0x40f5fc
xor eax, eax
pop edi
ret
test al, al
push esi
jns 0x40f60f
mov esi, eax
xor esi, edi
and esi, 0x3fffff
xor esi, eax
jmp 0x40f657
push 0x1000
and eax, 0xfffff000
push eax
push 0
push 4
push dword [0x4d7e80]
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov ecx, edi
shr ecx, 0xc
and ecx, 0x3ff
mov ecx, dword [eax + ecx*4]
test ecx, 1
jne 0x40f644
xor eax, eax
jmp 0x40f659
mov esi, ecx
xor esi, edi
and esi, 0xfff
push eax
xor esi, ecx
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
mov eax, esi
pop esi
pop edi
ret

Function at 0x40f65c
Capabilities:
Read file via mapping

Disassembly:
push esi
push dword [esp + 8]
push dword [0x4d7e7c]
call fcn.0040f5e3
pop ecx
pop ecx
push 0x1000
mov esi, eax
and eax, 0xfffff000
push eax
push 0
push 6
push dword [0x4d7e80]
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
test eax, eax
jne 0x40f691
pop esi
ret
shr esi, 2
and esi, 0x3ff
mov esi, dword [eax + esi*4]
push eax
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
mov eax, esi
pop esi
ret

Function at 0x40f77f
Capabilities:
Check mutex on windows

Disassembly:
push esi
push dword [esp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
mov esi, eax
test esi, esi
je 0x40f79d
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov eax, esi
pop esi
ret