joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46b678
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x46b6c8]
test si, 4
je 0x46b68c
or bl, 1
test si, 8
je 0x46b696
or bl, 4
test si, 1
je 0x46b6a0
or bl, 8
test si, 2
je 0x46b6aa
or bl, 0x10
test si, 0x10
je 0x46b6b4
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x46b6c3
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x46b6cc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x46b704]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x46b6e5
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x46b6f4
or bl, 4
test esi, 0x20000000
je 0x46b6ff
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x471dcc
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x471dde
add esp, 0xfffffff0
call fcn.004037d0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0042297c
mov eax, dword [0x4fa1a0]
mov dword [eax + 4], ebx
mov dword [eax], 0x472170
mov eax, dword [0x4fa1ac]
mov dword [eax + 4], ebx
mov dword [eax], 0x47217c
mov eax, ebx
call fcn.00472188
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41740c]
call fcn.0040343c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41740c]
call fcn.0040343c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41740c]
call fcn.0040343c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41740c]
call fcn.0040343c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41740c]
call fcn.0040343c
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x46e5a4
push eax
push 0
push 0
mov eax, dword [0x4fa390]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x424400]
call fcn.00425b74
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x424400]
call fcn.00425b74
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x424400]
call fcn.00425b74
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00472638
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4724cc
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4724cc
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4724cc
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x471f1b
call fcn.00403828
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x473510
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4fbbf4]
cmp dword [eax + 0x30], 0
je 0x4735ba
cmp dword [ebx + 0x94], 0
jne 0x4735b4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4734a0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4735b4
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x47357a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4735b4
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00419cdc
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x473589
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x47411c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x474151
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404370
jmp 0x47415e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004042d4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x475258
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x475299
mov eax, esi
call fcn.0045ad44
test al, al
je 0x475299
mov eax, dword [ebx + 0x84]
call fcn.0045aa40
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x475299
push 0
mov eax, dword [ebx + 0x84]
call fcn.0045aa40
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x476440
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
mov edx, 0x40
call fcn.00407698
ret

Function at 0x47919c
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, ebx
call fcn.00404b1c
push eax
push 0x1000
lea eax, [ebp - 0x1000]
push eax
mov eax, dword [ebp + 0xc]
call fcn.00404b1c
push eax
mov eax, edi
call fcn.00404b1c
push eax
mov eax, esi
call fcn.00404b1c
push eax
call sub.kernel32.dll_GetPrivateProfileStringW
mov ecx, eax
lea edx, [ebp - 0x1000]
mov eax, dword [ebp + 8]
call fcn.00404a9c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4791fc
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff800
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, ebx
call fcn.0040475c
push eax
push 0x800
lea eax, [ebp - 0x800]
push eax
mov eax, dword [ebp + 0xc]
call fcn.0040475c
push eax
mov eax, edi
call fcn.0040475c
push eax
mov eax, esi
call fcn.0040475c
push eax
call sub.kernel32.dll_GetPrivateProfileStringA
mov ecx, eax
lea edx, [ebp - 0x800]
mov eax, dword [ebp + 8]
call fcn.00404370
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x47c66b
Capabilities:
Compare security identifiers

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov byte [esp], 0
lea eax, [esp + 4]
push eax
push 0xffffffffffffffff
push 8
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.advapi32.dll_OpenThreadToken
mov ebx, eax
test ebx, ebx
jne 0x47c618
call sub.kernel32.dll_GetLastError
cmp eax, 0x3f0
jne 0x47c618
lea eax, [esp + 4]
push eax
push 8
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
mov ebx, eax
test ebx, ebx
je 0x47c6af
mov eax, 0x400
call fcn.00402724
mov esi, eax
lea eax, [esp + 8]
push eax
push 0x400
push esi
push 2
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_GetTokenInformation
mov ebx, eax
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_CloseHandle
test ebx, ebx
je 0x47c6a8
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
push 0x4f5464
call sub.advapi32.dll_AllocateAndInitializeSid
mov ebx, dword [esi]
dec ebx
test ebx, ebx
jl 0x47c69e
inc ebx
xor edi, edi
mov eax, dword [esi + edi*8 + 4]
push eax
mov eax, dword [esp + 0x10]
push eax
call sub.advapi32.dll_EqualSid
test eax, eax
je 0x47c69a
mov byte [esp], 1
jmp 0x47c69e
inc edi
dec ebx
jne 0x47c681
mov eax, dword [esp + 0xc]
push eax
call sub.advapi32.dll_FreeSid
mov eax, esi
call fcn.00402744
mov al, byte [esp]
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x49481c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov bl, byte [0x494854]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x494832
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x494841
or bl, 4
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x494850
or bl, 2
mov eax, ebx
pop ebx
ret

Function at 0x4a3068
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x4a30cc
push dword fs:[edx]
mov dword fs:[edx], esp
push 6
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004044f0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408f34
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a30d3
lea eax, [ebp - 0xc]
call fcn.00404280
ret
Function at 0x4ba7a4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov al, byte [eax]
dec al
je 0x4ba7d5
dec al
je 0x4ba811
dec al
je 0x4ba855
dec al
je 0x4ba8c0
jmp 0x4ba94a
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x4ba94a
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
mov dl, byte [ecx + edx]
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x4ba7e5
jmp 0x4ba94a
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4ba94a
mov esi, 1
mov al, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov dl, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x4ba821
jmp 0x4ba94a
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4ba94a
mov esi, 1
mov al, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x4ba883
xor ebp, ebp
jmp 0x4ba894
mov ecx, esi
sub ecx, edx
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x4ba89d
adc eax, 0
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x4ba865
jmp 0x4ba94a
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4ba94a
mov esi, 1
mov al, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x4ba918
mov edx, esi
sub edx, dword [ebx + 0x24]
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
mov dl, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
mov cl, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.004b7d4c
add al, byte [esp]
and al, 0xff
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x4ba8d4
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4d7688
Capabilities:
Get file system object information

Disassembly:
push ebx
push esi
add esp, 0xfffffe9c
mov ebx, eax
call fcn.004d6e34
test al, al
je 0x4d76b5
cmp dword [0x4fc1a0], 0x40047
jl 0x4d76b5
cmp byte [0x4f9b24], 0
jne 0x4d76b5
call fcn.004d74cc
mov esi, ebx
and esi, 0x7f
mov eax, dword [esi*4 + 0x4f9b28]
or eax, 0x4000
push eax
push 0x160
lea eax, [esp + 0xc]
push eax
push 0
push 0x4d7718
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
jne 0x4d770d
mov word [esp], 0
mov eax, dword [esi*4 + 0x4f9b28]
or eax, 0x4000
or eax, 8
push eax
push 0x160
lea eax, [esp + 0xc]
push eax
push 0
lea eax, [esp + 0x10]
push eax
call sub.shell32.dll_SHGetFileInfoA
add esp, 0x164
pop esi
pop ebx
ret

Function at 0x4d76d1
Capabilities:
Get file system object information

Disassembly:
push ebx
push esi
add esp, 0xfffffe9c
mov ebx, eax
call fcn.004d6e34
test al, al
je 0x4d76b5
cmp dword [0x4fc1a0], 0x40047
jl 0x4d76b5
cmp byte [0x4f9b24], 0
jne 0x4d76b5
call fcn.004d74cc
mov esi, ebx
and esi, 0x7f
mov eax, dword [esi*4 + 0x4f9b28]
or eax, 0x4000
push eax
push 0x160
lea eax, [esp + 0xc]
push eax
push 0
push 0x4d7718
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
jne 0x4d770d
mov word [esp], 0
mov eax, dword [esi*4 + 0x4f9b28]
or eax, 0x4000
or eax, 8
push eax
push 0x160
lea eax, [esp + 0xc]
push eax
push 0
lea eax, [esp + 0x10]
push eax
call sub.shell32.dll_SHGetFileInfoA
add esp, 0x164
pop esi
pop ebx
ret
Function at 0x1000d460
Capabilities:
Modify service
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x100ac06c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0xf003f
push 0
push 0
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x1000d54d
push 0xf01ff
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x1000d531
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x1000d4fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
jne 0x1000d4fc
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100205ba
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [ebp - 0x20]
push eax
push edi
call ebx
test eax, eax
je 0x1000d529
nop
cmp dword [ebp - 0x1c], 2
jne 0x1000d529
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x20]
push eax
push edi
call ebx
test eax, eax
jne 0x1000d510
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebx
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100205ba
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.100205ba
mov esp, ebp
pop ebp
ret
Function at 0x1000d560
Capabilities:
Modify service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100ac06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0xf003f
push 0
push 0
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
test ebx, ebx
je 0x1000d62b
push 0xf01ff
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x1000d60f
push edi
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 4
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [ebp - 0x20]
push eax
push esi
call edi
test eax, eax
je 0x1000d607
cmp dword [ebp - 0x1c], 1
je 0x1000d607
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x1000d607
cmp dword [ebp - 0x1c], 3
jne 0x1000d607
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xa
call ebx
lea eax, [ebp - 0x20]
push eax
push esi
call edi
cmp dword [ebp - 0x1c], 3
je 0x1000d5f3
mov ebx, dword [ebp - 0x24]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100205ba
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.100205ba
mov esp, ebp
pop ebp
ret
Function at 0x1000d830
Capabilities:
Create service
Persist via windows service
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x100ac06c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0xf003f
xor esi, esi
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
push esi
push esi
mov dword [ebp - 0x224], edx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x214], ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x1000d978
push esi
push esi
push esi
push esi
push esi
push dword [ebp - 0x220]
push esi
push 2
push 0x10
push 0xf01ff
push dword [ebp - 0x224]
push dword [ebp - 0x210]
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
test esi, esi
jne 0x1000d8eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
jne 0x1000d8eb
push 0xf01ff
push dword [ebp - 0x210]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x1000d978
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
push str.SYSTEMCurrentControlSetServices_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push reloc.WS2_32.dll_bind
call dword [0x10089774]
mov edx, dword [ebp - 0x21c]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x21c], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000d930
sub ecx, dword [ebp - 0x21c]
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push edx
push 1
push 0
push str.Description
push dword [ebp - 0x214]
call dword [0x10089790]
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
mov ecx, 1
cmovne ebx, ecx
mov dword [ebp - 0x218], ebx
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x1000d989
push eax
call dword [0x10089770]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x1000d996
push esi
call ebx
test edi, edi
je 0x1000d99d
push edi
call ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x218]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.100205ba
mov esp, ebp
pop ebp
ret
Function at 0x1000e1a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, edx
test ebx, ebx
je 0x1000e1c3
cmp dword [ebx + 0x14], 0x10
mov dword [ebx + 0x10], 0
jb 0x1000e1be
mov eax, dword [ebx]
jmp 0x1000e1c0
mov eax, ebx
mov byte [eax], 0
mov ecx, 0x100af8d8
call fcn.10013450
test al, al
je 0x1000e1d8
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call fcn.10011f10
mov edi, eax
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x1000e1ef
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 0x10000
call fcn.1002093c
push edi
push 0x10000
mov esi, eax
mov dword [ebp - 8], 0
push 1
push esi
call fcn.10069030
mov edi, eax
add esp, 0x14
test edi, edi
je 0x1000e266
mov eax, dword [ebp + 8]
nop dword [eax]
test ebx, ebx
je 0x1000e23c
mov ecx, eax
mov eax, edi
sub ecx, dword [ebp - 8]
cmp ecx, edi
cmovb eax, ecx
mov ecx, ebx
push eax
push esi
call fcn.1000c140
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
sub eax, ecx
cmp eax, edi
jb 0x1000e27c
push dword [ebp - 0xc]
add ecx, edi
push 0x10000
push 1
push esi
mov dword [ebp - 8], ecx
call fcn.10069030
mov edi, eax
add esp, 0x10
mov eax, dword [ebp + 8]
test edi, edi
jne 0x1000e220
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.100684f1
add esp, 4
test eax, eax
jne 0x1000e27f
mov byte [ebp - 1], 1
jmp 0x1000e283
mov ebx, dword [ebp - 0xc]
mov byte [ebp - 1], 0
push ebx
call fcn.10068779
add esp, 4
test esi, esi
je 0x1000e299
push esi
call fcn.10020937
add esp, 4
mov al, byte [ebp - 1]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100113b0
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5f0
mov eax, dword [0x100ac06c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov esi, edx
xor ebx, ebx
push esi
sub esp, 8
mov dword [ebp - 0x2ec], esi
mov dword [ebp - 0x2e8], ebx
push ecx
lea ecx, [ebp - 0x2e4]
call fcn.10015c20
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x2e4]
call fcn.10015d90
cmp dword [ebp - 0x10], ebx
je 0x100114fb
nop
cmp byte [ebp - 0x2e4], 0
jne 0x1001143a
test bl, 1
je 0x10011422
and ebx, 0xfffffffe
lea ecx, [ebp - 0x39c]
mov dword [ebp - 0x2e8], ebx
call fcn.100168c0
push 0x250
lea eax, [ebp - 0x5ec]
push 0
push eax
call fcn.10062800
add esp, 0xc
jmp 0x10011453
mov ecx, 0x94
lea esi, [ebp - 0x2e0]
lea edi, [ebp - 0x5ec]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x2ec]
mov ebx, dword [ebp - 0x5ec]
test bl, 1
je 0x10011476
cmp dword [ebp - 0xc], 8
lea ecx, [ebp - 0x20]
mov eax, ebx
cmovae ecx, dword [ebp - 0x20]
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
shr ebx, 4
test bl, 1
je 0x100114a9
push 1
mov edx, esi
lea ecx, [ebp - 0x20]
call fcn.100113b0
add esp, 4
test al, al
je 0x10011557
cmp dword [ebp - 0xc], 8
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x100114bb
cmp dword [ebp - 0xc], 8
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x10011557
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x2e4]
call fcn.10015d90
lea ecx, [ebp - 0x20]
cmp ecx, eax
je 0x100114e3
push 0xffffffffffffffff
push 0
push eax
call fcn.1000bb10
lea ecx, [ebp - 0x38]
call fcn.1000b2d0
cmp dword [ebp - 0x10], 0
mov ebx, dword [ebp - 0x2e8]
jne 0x10011400
lea ecx, [ebp - 0x20]
call fcn.1000b2d0
mov bl, 1
mov eax, dword [ebp - 0x90]
cmp eax, 0xffffffff
je 0x10011517
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x54]
call fcn.10016250
push dword [ebp - 0x54]
call fcn.100205b5
add esp, 4
mov dword [ebp - 0x54], 0
lea ecx, [ebp - 0x6c]
call fcn.1000b2d0
lea ecx, [ebp - 0x8c]
call fcn.1000b2d0
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100205ba
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x20]
call fcn.1000b2d0
xor bl, bl
jmp 0x10011505