joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e960
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x51b888]
sub esp, 0x208
cmp eax, 1
push ebx
push ebp
push esi
mov ebx, ecx
jle 0x40e991
mov cl, byte [0x518508]
test cl, cl
jne 0x40e991
mov ecx, dword [0x51b890]
mov esi, dword [ecx + eax*4 - 4]
test esi, esi
je 0x40e991
mov ebp, esi
jmp 0x40e9ad
lea esi, [esp + 0xc]
push 0x104
mov edx, esi
push edx
push 0x4ec1e8
mov ebp, 1
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push edi
mov edi, dword [ebx + 0x93c]
add edi, 0xb0
test esi, esi
jne 0x40e9c2
xor eax, eax
jmp 0x40e9cb
push esi
call fcn.004aee31
add esp, 4
push eax
push esi
mov ecx, edi
call fcn.00402240
mov eax, dword [ebx + 0x93c]
lea ecx, [eax + 0xb0]
mov eax, dword [ecx]
cmp word [eax], 0
pop edi
je 0x40ea01
cmp word [eax + 2], 0x3a
jne 0x40ea01
cmp word [eax + 4], 0
jne 0x40ea01
push 0x4ebe98
call fcn.00403bc0
mov ecx, dword [ebx + 0x938]
push 0
push 0
push ebp
call fcn.0040a330
pop esi
pop ebp
pop ebx
add esp, 0x208
ret

Function at 0x412a7a
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 0x414450
Capabilities:
Enumerate disk volumes
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd64
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
xor edi, edi
cmp eax, 0xffffffff
mov word [esp + 0x340], di
jne 0x4144cf
mov eax, dword [0x518ce0]
cmp eax, edi
jle 0x414668
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov esi, dword [eax*4 + 0x51850c]
dec eax
cmp esi, edi
mov dword [0x518ce0], eax
mov dword [eax*4 + 0x518510], edi
je 0x4144c4
push edi
lea eax, [esp + 0x10]
push eax
push edi
push edi
push edi
push edi
push 0x9001c
push esi
mov dword [esp + 0x2c], edi
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x518ce0]
cmp eax, edi
jg 0x414484
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x514
lea ecx, [esp + 0x344]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x1c], esi
je 0x414668
push 0x514
lea edx, [esp + 0x344]
push edx
push esi
mov word [esp + 0x34c], di
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
je 0x414661
jmp 0x414520
lea eax, [esp + 0x340]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
mov word [esp + eax*2 + 0x342], di
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
push 0x80
push 3
push edi
push 3
push SysReAllocStringLen
lea ecx, [esp + 0x358]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x414639
xor edx, edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x14], edx
xor eax, eax
mov ecx, 0xc7
lea edi, [esp + 0x24]
push edx
mov ebx, 0xffffff9c
rep stosd dword es:[edi], eax
mov dword [esp + 0x1c], edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push 0
lea eax, [esp + 0x24]
push eax
push 0xc
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push 0x2d1080
push esi
mov dword [esp + 0x34], 0xffffffff
call edi
test eax, eax
je 0x4145c2
movsx ebx, word [esp + 0x14]
cmp dword [ebp + 8], ebx
jne 0x41462c
mov ebx, dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
mov dword [esp + 0x10], 0
call ebx
push esi
call ebx
push esi
call ebx
push esi
call ebx
xor ebx, ebx
push 0
lea edx, [esp + 0x10]
push edx
push 0
push 0
push 0
push 0
push 0x90018
push esi
mov dword [esp + 0x2c], 0
call edi
test eax, eax
jne 0x414611
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
dec ebx
jns 0x4145e3
mov eax, dword [0x518ce0]
cmp eax, 0x1f4
jge 0x41462c
mov dword [eax*4 + 0x518510], esi
inc eax
mov dword [0x518ce0], eax
jmp 0x414637
test esi, esi
je 0x414637
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
mov esi, dword [esp + 0x1c]
push 0x514
lea eax, [esp + 0x344]
push eax
push esi
mov word [esp + 0x34c], di
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
jne 0x414520
push esi
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x415727
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push edi
xor eax, eax
cmp word [0x51e010], 0
mov byte [ebp - 0x18], 0
lea edi, [ebp - 0x17]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop edi
jne 0x415772
push 0x18
lea eax, [ebp - 0x18]
push eax
push 0xb
push 0x800
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea eax, [ebp - 0x18]
push eax
call fcn.00446fd0
cmp eax, 1
pop ecx
jle 0x415772
mov word [0x51e010], ax
leave
ret

Function at 0x4157bd
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 [0x518dec]
test ecx, ecx
jle 0x4157f0
mov dword [0x518dec], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov dword [0x518dec], eax
jmp 0x415828
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 0x415820
sub eax, dword [0x518dec]
cmp eax, dword [ebp + 8]
jae 0x415830
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x5152e8], bl
jg 0x415800
mov eax, dword [ebp - 4]
mov ecx, eax
sub ecx, dword [0x518dec]
pop esi
test ecx, ecx
jle 0x415845
mov dword [0x518dec], eax
xor eax, eax
cmp byte [0x5152e8], bl
pop edi
setg al
pop ebx
leave
ret

Function at 0x415a1a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push edi
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x10], ebx
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0xf
xor eax, eax
cmp byte [ebp + 0x10], bl
pop ecx
lea edi, [ebp - 0x4c]
mov dword [ebp - 0x54], 0x44
mov dword [ebp - 0x50], ebx
rep stosd dword es:[edi], eax
je 0x415a50
or dword [ebp - 0x28], 1
mov word [ebp - 0x24], bx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x415a8f
push esi
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
cmp byte [ebp + 0xc], bl
je 0x415a89
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x10]
call esi
pop esi
pop edi
pop ebx
leave
ret

Function at 0x415a93
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push 0x3ff
lea eax, [ebp - 0x400]
push eax
push str.SHOWEWFMSG
mov byte [ebp - 0x400], 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
cmp byte [ebp - 0x400], 0x31
jne 0x415ad5
push 0
push 0x4ef3cc
push dword [ebp + 8]
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
leave
ret
Function at 0x415ad7
Capabilities:
Terminate process

Disassembly:
cmp byte [0x5152e8], 2
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x14
pop esi
je 0x415aee
push esi
call edi
cmp dword [0x518df8], 0
je 0x415b09
push 0x1e
pop esi
jmp 0x415b09
cmp dword [0x518df0], 0
je 0x415b0c
push 0xa
call edi
dec esi
jns 0x415afc
mov eax, dword [0x518df0]
test eax, eax
pop edi
pop esi
je 0x415b2a
push 0
push eax
mov dword [0x518df0], 0
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov byte [0x5152e8], 0xff
ret

Function at 0x415b32
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 0x415b73
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x415b84
mov byte [ebp - 1], bl
jmp 0x415b84
push dword [ebp + 0xc]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov edi, eax
cmp edi, ebx
je 0x415bc0
push ebx
push ebx
push ebx
push 6
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push edi
mov dword [0x518e00], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x518e00]
cmp eax, ebx
je 0x415bc0
cmp byte [ebp - 1], bl
je 0x415bbb
push 0x64
push ebx
push eax
call fcn.004afe00
mov eax, dword [0x518e00]
add esp, 0xc
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x415ec1
Capabilities:
Get file version info

Disassembly:
mov eax, 0x4e4472
call fcn.004afe60
sub esp, 0x14
push ebx
push esi
push edi
xor esi, esi
push 0x169
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x20], esi
call fcn.00446280
mov ebx, dword [ebp - 0x10]
push 0x104
push dword [ebp + 0xc]
add ebx, 0xc8
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [ebp - 0x14]
push eax
push ebx
mov dword [ebp - 0x14], esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, esi
mov dword [ebp - 0x1c], eax
je 0x415f8a
push eax
push 2
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
push edi
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x4ec34c
push edi
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [ebp - 0x18]
mov cx, word [eax + 0x12]
mov dx, word [eax + 0x10]
mov di, word [eax + 0x16]
movzx eax, word [eax + 0x14]
push eax
movzx eax, di
push eax
movzx eax, dx
push eax
movzx eax, cx
push eax
push 0x4ef3f0
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor esi, esi
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp + 8]
mov dword [edi], eax
mov dword [ebp - 0x10], esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x20], 1
call fcn.0043f290
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x416bbb
Capabilities:
Query environment variable
Terminate process

Disassembly:
mov eax, 0x4e44f4
call fcn.004afe60
sub esp, 0x70
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
push ebx
lea ecx, [eax + 8]
push edi
mov di, word [eax]
mov dword [ebp + 8], ecx
mov ax, word [ecx]
call fcn.0041d35d
test al, al
jne 0x416bea
inc ecx
inc ecx
mov dword [ebp + 8], ecx
push 0x63
lea eax, [ebp - 0x7c]
push eax
xor ebx, ebx
push str.DEBUGMDG
mov byte [ebp - 0x7c], bl
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
cmp byte [ebp - 0x7c], 0x31
jne 0x416c0d
mov byte [0x518de8], 1
push esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x518dec], eax
mov dword [ebp - 0x14], ebx
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
call fcn.00457400
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00446250
push 1
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x18]
mov ecx, 0x519150
mov byte [ebp - 4], 2
call fcn.00451c30
push dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
call fcn.004575a0
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
mov dword [ebp + 8], eax
mov byte [ebp - 4], 1
call fcn.0043f290
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.0043f290
mov ecx, dword [ebp + 8]
call fcn.00415854
push 0x1e
push eax
push str._InstallService
mov dword [ebp + 8], eax
mov esi, eax
call fcn.004afe80
add esp, 0xc
test eax, eax
jne 0x416ccd
movzx esi, word [esi + 0x1e]
mov eax, esi
call fcn.0041d35d
test al, al
jne 0x416cab
cmp si, bx
jne 0x416ccd
push 0x1e
push 0x4ef688
push dword [ebp + 8]
call fcn.004b0040
mov ecx, dword [ebp + 8]
add esp, 0xc
add ecx, 0x1e
call fcn.00415854
mov dword [ebp + 8], eax
jmp 0x416ce4
push 8
lea eax, [ebp + 8]
push eax
push 0x4ef67c
call fcn.00448570
add esp, 0xc
test al, al
je 0x416d27
cmp di, 0x22
jne 0x416d1d
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 0x416d1d
mov ax, word [ecx]
call fcn.0041d35d
test al, al
je 0x416d10
dec ecx
dec ecx
cmp ecx, edx
ja 0x416cfe
cmp ecx, edx
jbe 0x416d1d
cmp word [ecx], 0x22
jne 0x416d1d
mov word [ecx], bx
push dword [ebp + 8]
call fcn.0041d11d
jmp 0x416d47
push 0xe
lea eax, [ebp + 8]
push eax
push 0x4ef66c
call fcn.00448570
add esp, 0xc
test al, al
pop esi
je 0x416d4f
push dword [ebp + 8]
call fcn.0041780f
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0043f290
mov ecx, dword [ebp - 0xc]
pop edi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x416d6d
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 [0x518df0], 0
call ebx
and dword [esi], 0
test edi, edi
je 0x416dac
mov eax, dword [edi]
test eax, eax
je 0x416dac
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 0x416dc4
push 1
push 0
push str.shutdown__a
call fcn.00415a1a
add esp, 0xc
push dword [0x518e78]
call fcn.00415999
cmp byte [esp + 0x10], 0
pop ecx
je 0x416df0
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 0x416dda
pop esi
pop ebx
ret
Function at 0x41764d
Capabilities:
Create service
Persist via windows service
Start service

Disassembly:
mov eax, 0x4e449e
call fcn.004afe60
sub esp, 0x820
push ebx
push esi
push edi
mov edi, ecx
xor eax, eax
mov dword [0x518df4], ecx
mov dword [ebp - 0x18], edi
xor ebx, ebx
jmp 0x41767c
call fcn.0041d35d
test al, al
jne 0x417684
inc ecx
inc ecx
mov ax, word [ecx]
cmp ax, bx
jne 0x417671
sub ecx, edi
sar ecx, 1
mov eax, 0x400
cmp ecx, eax
jle 0x417693
mov ecx, eax
lea esi, [ecx + ecx]
push esi
lea eax, [ebp - 0x82c]
push edi
push eax
call fcn.004b0040
add esp, 0xc
push edi
mov word [ebp + esi - 0x82c], bx
mov byte [0x51e003], bl
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
inc esi
lea eax, [esi + 0x226]
push eax
lea ecx, [ebp - 0x10]
call fcn.00446280
mov eax, dword [ebp - 0x10]
push 0x1cc
add eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, eax
cmp ecx, ebx
jle 0x4177f4
mov eax, dword [ebp - 0x10]
mov word [eax + ecx*2 + 2], bx
mov eax, dword [ebp - 0x10]
lea edi, [eax + ecx*2 + 2]
mov dword [ebp - 0x14], edi
lea edx, [eax + 2]
xor edi, edi
mov word [eax], 0x22
jmp 0x41771a
mov ax, word [edx]
call fcn.0041d35d
test al, al
je 0x417718
xor edi, edi
inc edi
inc edx
inc edx
cmp edx, dword [ebp - 0x14]
jb 0x417709
cmp di, bx
mov edx, dword [ebp - 0x10]
lea eax, [edx + 2]
mov dword [ebp - 0x14], eax
je 0x41773b
dec eax
dec eax
mov word [edx + ecx*2 + 2], 0x22
inc ecx
mov dword [ebp - 0x14], eax
inc ecx
push 0x1e
lea edi, [eax + ecx*2]
push 0x4ef81c
push edi
call fcn.004b0040
push esi
push dword [ebp - 0x18]
add edi, 0x1e
push edi
call fcn.004acbce
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 0x4177e6
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x14]
lea eax, [ebp - 0x82c]
push ebx
push 2
push 0x110
push 0xf01ff
push eax
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
cmp eax, ebx
je 0x4177e6
push eax
call esi
push 0x20000000
lea eax, [ebp - 0x82c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x4177df
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x4177cd
push 0x4ef810
jmp 0x4177d2
push 0x4ef804
call fcn.00415a93
pop ecx
push dword [ebp - 0x18]
call esi
jmp 0x4177f1
push 0x4ef7f8
jmp 0x4177eb
push 0x4ef7ec
call fcn.00415a93
pop ecx
push edi
call esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0043f290
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x41780f
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 0x417831
call fcn.0041d35d
test al, al
jne 0x417839
inc esi
inc esi
mov ax, word [esi]
cmp ax, bx
jne 0x417826
mov eax, esi
sub eax, edx
sar eax, 1
mov ecx, 0x400
cmp eax, ecx
jle 0x41784a
mov eax, ecx
lea edi, [eax + eax]
push edi
push edx
lea eax, [ebp - 0x824]
push eax
call fcn.004b0040
add esp, 0xc
mov word [ebp + edi - 0x824], bx
jmp 0x41786a
inc esi
inc esi
mov ax, word [esi]
call fcn.0041d35d
test al, al
jne 0x417868
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 0x4178fd
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 0x4178fd
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4178c6
push 0x4ef86c
call fcn.00415a93
pop ecx
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]
test eax, eax
je 0x4178e8
push 0x4ef860
jmp 0x4178ed
push 0x4ef854
call fcn.00415a93
pop ecx
push dword [ebp + 8]
call ebx
push edi
call esi
jmp 0x41791c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x417911
push 0x4ef848
jmp 0x417916
push 0x4ef83c
call fcn.00415a93
pop ecx
push dword [ebp - 4]
call ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x417a0c
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7f8
push ebx
push esi
push edi
mov esi, 0x4ef878
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.00415854
mov edx, eax
mov ecx, edx
call fcn.0041591b
mov esi, eax
sub esi, edx
sar esi, 1
mov eax, 0x3e8
cmp esi, eax
jl 0x417a5a
mov esi, eax
push esi
push edx
lea eax, [ebp - 0x7e8]
push eax
call fcn.004acbce
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 0x417acf
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 0x417acf
push 0x64
push edi
push esi
call fcn.00415867
mov dword [esi], 0xffffffff
mov dword [esi + 8], edi
lea eax, [esi + 4]
add esp, 0xc
mov dword [0x51516c], eax
mov dword [0x518df8], esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41d55c
Capabilities:
Check os version
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push 0x518ed8
mov dword [0x518ed8], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [0x518edc], 5
je 0x41d584
xor eax, eax
leave
ret
mov eax, dword [0x518ee0]
push ebx
push edi
xor edi, edi
sub eax, edi
je 0x41d59f
dec eax
jne 0x41d620
mov ebx, 0x39000
jmp 0x41d5a4
mov ebx, 0x30000
push esi
push str.DevicePhysicalMemory
lea eax, [ebp - 8]
push eax
call dword [0x518fec]
lea eax, [ebp - 8]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
push 6
mov esi, 0x518ffc
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 [0x518ea0]
cmp eax, 0xc0000022
jne 0x41d61b
lea eax, [ebp - 0x20]
push eax
push 0x60000
push esi
call dword [0x518ea0]
push dword [0x518ffc]
call fcn.0041d48e
pop ecx
push dword [0x518ffc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x20]
push eax
push 6
push esi
call dword [0x518ea0]
cmp eax, edi
pop esi
jge 0x41d624
xor eax, eax
jmp 0x41d648
push 0x1000
push ebx
push edi
push 6
push dword [0x518ffc]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x518ff8], eax
neg eax
sbb eax, eax
and eax, dword [0x518ffc]
pop edi
pop ebx
leave
ret

Function at 0x41d64c
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 0x41d665
xor eax, eax
pop edi
ret
test al, al
push esi
jns 0x41d678
mov esi, eax
xor esi, edi
and esi, 0x3fffff
xor esi, eax
jmp 0x41d6c0
push 0x1000
and eax, 0xfffff000
push eax
push 0
push 4
push dword [0x518ffc]
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 0x41d6ad
xor eax, eax
jmp 0x41d6c2
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 0x41d6c5
Capabilities:
Read file via mapping

Disassembly:
push esi
push dword [esp + 8]
push dword [0x518ff8]
call fcn.0041d64c
pop ecx
pop ecx
push 0x1000
mov esi, eax
and eax, 0xfffff000
push eax
push 0
push 6
push dword [0x518ffc]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
jne 0x41d6fa
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