joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003dc70
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
push 1
push 0
lea eax, [ebp - 0x150]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.1003f230
add esp, 0x10
mov byte [ebp - 1], al
movzx edx, byte [ebp - 1]
test edx, edx
je 0x1003dce7
mov eax, dword [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x64
mov ecx, dword [ebp - 0x12c]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1003dccd
push 0
mov edx, dword [ebp - 0x12c]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x12c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x1003dcf0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
cmp dword [0x100e0b6c], 0
jne 0x1003de6c
lea ecx, [ebp - 0x68]
call fcn.1004c100
lea ecx, [ebp - 0x50]
call fcn.1004c100
push 8
lea eax, [ebp - 0x18]
push eax
push 0x1007bca4
call fcn.1004ae20
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x10
lea ecx, [ebp - 0x28]
push ecx
push 0x1007bccc
call fcn.1004ae20
push eax
push 0x10
lea edx, [ebp - 0x38]
push edx
push 0x1007bcb8
call fcn.1004ae20
push eax
push str._S_S__x_S
lea eax, [ebp - 0x68]
push eax
call fcn.1004c570
add esp, 0x18
lea ecx, [ebp - 0x68]
call fcn.1004c610
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1003de5c
push 0xffffffffffffffff
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x10
lea edx, [ebp - 0x28]
push edx
push 0x1007bccc
call fcn.1004ae20
push eax
push 0x10
lea eax, [ebp - 0x38]
push eax
push 0x1007bcb8
call fcn.1004ae20
push eax
push str._S_S__x
lea ecx, [ebp - 0x50]
push ecx
call fcn.1004c570
add esp, 0x14
lea ecx, [ebp - 0x50]
call fcn.1004c610
push eax
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1003de48
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1003ddfc
mov dword [ebp - 0xc], 1
jmp 0x1003de03
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x10], edx
push 0
push 0
push 0
push 0xf001f
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x100e0b6c], eax
cmp dword [ebp - 0x10], 0
je 0x1003de3e
cmp dword [0x100e0b6c], 0
je 0x1003de3e
mov ecx, dword [0x100e0b6c]
mov dword [ecx], 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x50]
call fcn.1004c150
lea ecx, [ebp - 0x68]
call fcn.1004c150
cmp dword [0x100e0b6c], 0
je 0x1003de88
mov edx, dword [0x100e0b6c]
push edx
call fcn.1003e840
add esp, 4
jmp 0x1003de8a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1003f700
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov byte [ebp - 1], 0
push 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1003f74b
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 0x10]
jne 0x1003f734
mov byte [ebp - 1], 1
jmp 0x1003f749
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
push str.ReadFromPipe:_Error_reading_from_pipe:_Number_read_was__d__requested_was__d_n
call fcn.1004ec20
add esp, 0xc
jmp 0x1003f758
push str.ReadFromPipe:_Error_reading_from_pipe:_ReadFile_returned_False_n
call fcn.1004ec20
add esp, 4
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x10040590
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100910d8
push 0x10055d18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffe0
push ebx
push esi
push edi
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10042ef0
add esp, 0x10
mov byte [ebp - 0x19], al
movzx edx, byte [ebp - 0x19]
test edx, edx
jne 0x10040750
push 0x10000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
push 0x8000
mov eax, dword [ebp - 0x20]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x1004061f
mov dword [ebp - 0x24], 0
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
push ecx
call fcn.10055ea5
add esp, 8
mov eax, dword [ebp - 0x24]
jmp 0x10040754
push 1
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10042ef0
add esp, 0x10
mov byte [ebp - 0x19], al
movzx edx, byte [ebp - 0x19]
test edx, edx
jne 0x10040737
push 0x8000
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [0x100e0d40]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x1004067b
mov dword [ebp - 0x28], 0
push 0xffffffffffffffff
lea edx, [ebp - 0x10]
push edx
call fcn.10055ea5
add esp, 8
mov eax, dword [ebp - 0x28]
jmp 0x10040754
push 1
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10042ef0
add esp, 0x10
mov byte [ebp - 0x19], al
movzx eax, byte [ebp - 0x19]
test eax, eax
jne 0x10040737
mov ecx, dword [ebp - 0x20]
push ecx
push 0x8000
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x100406d0
mov dword [ebp - 0x2c], 0
push 0xffffffffffffffff
lea edx, [ebp - 0x10]
push edx
call fcn.10055ea5
add esp, 8
mov eax, dword [ebp - 0x2c]
jmp 0x10040754
push 0
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10042ef0
add esp, 0x10
mov byte [ebp - 0x19], al
movzx eax, byte [ebp - 0x19]
test eax, eax
jne 0x10040737
push 0x8000
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x1004071e
mov dword [ebp - 0x30], 0
push 0xffffffffffffffff
lea edx, [ebp - 0x10]
push edx
call fcn.10055ea5
add esp, 8
mov eax, dword [ebp - 0x30]
jmp 0x10040754
push 0
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10042ef0
add esp, 0x10
mov byte [ebp - 0x19], al
mov dword [ebp - 4], 0xffffffff
call fcn.10040745
jmp 0x10040750
movzx eax, byte [ebp - 0x19]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10040770
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 0xc], 0
je 0x10040804
push 2
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10043220
add esp, 0x10
test eax, eax
je 0x10040804
movzx eax, word [ebp - 8]
cmp eax, 0x5a4d
jne 0x10040804
push 4
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0xc]
add edx, 0x3c
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.10043220
add esp, 0x10
test eax, eax
je 0x10040804
push 0xf8
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.10043220
add esp, 0x10
test eax, eax
je 0x10040804
mov ecx, dword [ebp + 0x10]
cmp dword [ecx], 0x4550
jne 0x10040804
mov edx, dword [ebp + 0x10]
movzx eax, word [edx + 0x16]
and eax, 0x2000
jne 0x10040804
mov dword [ebp - 0xc], 1
jmp 0x1004080b
mov dword [ebp - 0xc], 0
mov cl, byte [ebp - 0xc]
mov byte [ebp - 1], cl
movzx edx, byte [ebp - 1]
test edx, edx
je 0x1004082d
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp + 0x10]
lea eax, [edx + ecx + 0x78]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x10040b00
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100910e8
push 0x10055d18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffd4
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0
mov ecx, dword gs:[0x60]
mov dword [ebp - 0x2c], ecx
mov ecx, dword gs:[0x64]
mov dword [ebp - 0x28], ecx
cmp dword [ebp - 0x28], 0
jne 0x10040c3f
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x34], ecx
mov edx, dword [eax + 0x1c]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x34]
xor ecx, ecx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x3c]
cmp edx, dword [ebp - 0x34]
jne 0x10040c3f
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x30]
jne 0x10040c3f
mov ecx, dword [ebp - 0x34]
add ecx, 0x20
mov edx, dword [ebp - 0x30]
adc edx, 0
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
mov ecx, 4
imul edx, ecx, 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + edx]
cmp ecx, dword [ebp - 0x20]
je 0x10040c3f
mov edx, 4
shl edx, 0
mov eax, dword [ebp - 0x1c]
cmp dword [eax + edx], 0
jne 0x10040c3f
mov ecx, 4
imul edx, ecx, 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + edx]
mov dword [ebp - 0x1c], ecx
mov edx, 4
shl edx, 4
mov eax, dword [ebp - 0x1c]
cmp dword [eax + edx], 0
je 0x10040c3a
mov ecx, 4
imul edx, ecx, 0x11
mov eax, dword [ebp - 0x1c]
cmp dword [eax + edx], 0
jne 0x10040c3a
mov ecx, 4
shl ecx, 4
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + ecx]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.1003b800
add esp, 8
movzx edx, al
test edx, edx
je 0x10040c3a
mov eax, 4
imul ecx, eax, 9
mov edx, dword [ebp - 0x1c]
cmp dword [edx + ecx], 0
jne 0x10040c38
mov eax, 4
shl eax, 3
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + eax]
mov dword [ebp - 0x24], edx
jmp 0x10040c3f
jmp 0x10040b99
mov dword [ebp - 4], 0xffffffff
jmp 0x10040c58
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10042ef0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov byte [ebp - 1], 0
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x10042f17
cmp dword [ebp + 0x10], 0
je 0x10042f17
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.100431c0
add esp, 4
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x210]
push ecx
call fcn.10043120
add esp, 0xc
lea edx, [ebp - 0x210]
push edx
call fcn.10055cec
add esp, 4
cmp eax, 6
jbe 0x10042fa6
mov eax, 2
shl eax, 0
movzx ecx, word [ebp + eax - 0x210]
cmp ecx, 0x3a
je 0x10042f81
mov edx, 2
imul eax, edx, 0
movzx ecx, word [ebp + eax - 0x210]
cmp ecx, 0x5c
jne 0x10042fa6
mov edx, 2
shl edx, 0
movzx eax, word [ebp + edx - 0x210]
cmp eax, 0x5c
jne 0x10042fa6
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10042fa6
lea edx, [ebp - 0x210]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.1004c2d0
mov byte [ebp - 1], 1
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret

Function at 0x10043dd0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
cmp dword [0x1009c6b0], 0xffffffff
jne 0x10043e31
push 0x114
push 0
lea eax, [ebp - 0x11c]
push eax
call fcn.10055aa0
add esp, 0xc
mov dword [ebp - 0x11c], 0x114
lea ecx, [ebp - 0x11c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x118], 6
jb 0x10043e21
mov dword [ebp - 8], 1
jmp 0x10043e28
mov dword [ebp - 8], 0
mov edx, dword [ebp - 8]
mov dword [0x1009c6b0], edx
cmp dword [0x1009c6b0], 1
jne 0x10043e43
mov dword [ebp - 4], 1
jmp 0x10043e4a
mov dword [ebp - 4], 0
mov al, byte [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x100471a0
Capabilities:
Modify service
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov byte [ebp - 1], 0
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x1004735e
push 0xf01ff
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10047341
mov dword [ebp - 0x10], 0
lea edx, [ebp - 0x10]
push edx
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
cmp dword [ebp - 0x10], 0
je 0x10047324
mov ecx, dword [ebp - 0x10]
shl ecx, 1
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x10]
shl eax, 1
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x10047307
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x10047253
mov dword [ebp - 0x38], 1
mov edx, dword [ebp - 0xc]
cmp dword [edx], 1
jne 0x10047287
mov eax, dword [ebp - 0xc]
cmp dword [eax + 4], 1
jne 0x10047287
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 8], 1
jne 0x10047287
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.10047370
add esp, 8
movzx edx, al
test edx, edx
jne 0x100472bc
mov eax, dword [ebp + 0x10]
push eax
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
push 1
push 1
push 1
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
je 0x100472b3
cmp dword [ebp - 0x38], 1
je 0x100472bc
mov dword [ebp - 0x1c], 0
jmp 0x100472c3
mov dword [ebp - 0x1c], 1
mov al, byte [ebp - 0x1c]
mov byte [ebp - 1], al
movzx ecx, byte [ebp + 0x14]
test ecx, ecx
je 0x10047307
movzx edx, byte [ebp - 1]
test edx, edx
je 0x100472fa
cmp dword [ebp - 0x38], 4
je 0x100472f1
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x100472fa
mov dword [ebp - 0x20], 1
jmp 0x10047301
mov dword [ebp - 0x20], 0
mov cl, byte [ebp - 0x20]
mov byte [ebp - 1], cl
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x10047540
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], 0
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x10047607
push 0
push 0
push 0
push 2
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x100475fd
push 0
push 0
push 0
push 4
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x100475f3
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp dword [ebp + 0x10], 0
je 0x100475ce
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [ebp - 8]
jae 0x100475ce
mov edx, dword [ebp + 0x10]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.10047610
add esp, 0xc
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret

Function at 0x10047660
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push 0xd0
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.10055aa0
add esp, 0xc
mov ecx, 4
imul edx, ecx, 0
mov eax, dword [ebp + 8]
mov dword [eax + edx], 0x67452301
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp + 8]
mov dword [edx + ecx], 0xefcdab89
mov eax, 4
shl eax, 1
mov ecx, dword [ebp + 8]
mov dword [ecx + eax], 0x98badcfe
mov edx, 4
imul eax, edx, 3
mov ecx, dword [ebp + 8]
mov dword [ecx + eax], 0x10325476
mov edx, 4
shl edx, 2
mov eax, dword [ebp + 8]
mov dword [eax + edx], 0xc3d2e1f0
pop ebp
ret
Function at 0x100484c0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10048533
mov dword [ebp - 8], 0
push 0x104
lea eax, [ebp - 0x214]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x10048529
lea eax, [ebp - 0x214]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.100484c0
add esp, 8
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
jmp 0x100484ed
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esp, ebp
pop ebp
ret
Function at 0x10048e70
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
cmp dword [ebp + 8], 0
je 0x10048e8f
mov eax, 2
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movzx eax, word [edx + ecx]
test eax, eax
jne 0x10048e96
xor eax, eax
jmp 0x10048f6a
mov byte [ebp - 1], 0
call fcn.100402c0
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10048ec6
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10048f66
push 0xf01ff
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x10048f49
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x10048f04
cmp dword [ebp - 0x2c], 4
je 0x10048f1f
push 0
push 0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x10048f1f
mov dword [ebp - 0x14], 0
jmp 0x10048f26
mov dword [ebp - 0x14], 1
mov al, byte [ebp - 0x14]
mov byte [ebp - 1], al
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
movzx eax, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 4
Function at 0x100493d0
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov byte [ebp - 1], 0
call fcn.100402c0
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x10049471
push 0xf01ff
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10049454
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x1004942a
mov dword [ebp - 0x14], 1
jmp 0x10049431
mov dword [ebp - 0x14], 0
mov al, byte [ebp - 0x14]
mov byte [ebp - 1], al
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
movzx eax, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 4
Function at 0x1004b160
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100911e0
push 0x10055d18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
push 2
mov eax, dword [ebp + 8]
push eax
call fcn.1003c050
test eax, eax
jne 0x1004b1d5
mov ecx, dword [ebp + 8]
movzx edx, word [ecx]
cmp edx, 0x5a4d
jne 0x1004b1d5
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x20]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
cmp dword [eax], 0x4550
je 0x1004b1d5
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xffffffff
jmp 0x1004b201
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x1004b9a0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call fcn.1003ce10
test eax, eax
je 0x1004b9b6
xor eax, eax
jmp 0x1004ba55
mov dword [ebp - 0x10], 0
push 0x10000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 4], eax
push 0x8000
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0xc], 0xffffffff
je 0x1004ba52
push 0
push 0
push 0
push 2
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1004ba48
push 0
push 0
push 0
push 4
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 4