joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6d2000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x6d2131
push esi
call fcn.006d5145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.006c4080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x6d2131
push 0
push ebp
call fcn.006c43a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.006c4260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x6d208b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.006c42f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x6d2121
push 0x6ea918
push edi
call fcn.006d33f0
push eax
push ebx
push esi
call fcn.006d1f60
push 0x6ea8f8
push edi
call fcn.006d33f0
push eax
push ebx
push esi
call fcn.006d1f60
push 0x6ea8d8
push edi
call fcn.006d33f0
push eax
push ebx
push esi
call fcn.006d1f60
push 0x6ea8c0
push edi
call fcn.006d33f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.006d1f60
push 0x6ea8a0
push edi
call fcn.006d33f0
push eax
push ebx
push esi
call fcn.006d1f60
push 0x6ea888
push edi
call fcn.006d33f0
push eax
push ebx
push esi
call fcn.006d1f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x6d31b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.006d3140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.006d3140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.006d3140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.006d3140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x6d3bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x6d3c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x6e587c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x6d3c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x6d3c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x5d887c97
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
mov eax, section..data
nop
nop
mov ebx, 0x42cd70
mov ecx, 0x6bd729e9
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e06c
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x403263
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
cmp eax, esi
jl 0x40328e
mov ecx, dword [0x47af98]
push esi
add eax, ecx
push esi
push eax
mov dword [0x43c234], eax
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.0040336b
cmp eax, esi
jl 0x403365
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40a01c]
call fcn.00405ff8
test eax, eax
je 0x403355
push dword [ebp + 8]
add dword [0x43c234], 4
call fcn.0040336b
mov ebx, eax
cmp ebx, esi
jl 0x403363
cmp dword [ebp + 0x10], esi
jne 0x403331
cmp dword [ebp + 8], esi
jle 0x403363
mov esi, 0x430230
cmp dword [ebp + 8], 0x4000
mov eax, dword [ebp + 8]
jl 0x4032f3
mov eax, 0x4000
push eax
push esi
push dword [0x40a01c]
mov dword [ebp - 4], eax
call fcn.00405ff8
test eax, eax
je 0x403355
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call fcn.00406027
test eax, eax
je 0x40332d
mov eax, dword [ebp - 4]
sub dword [ebp + 8], eax
add dword [0x43c234], eax
add ebx, eax
cmp dword [ebp + 8], 0
jg 0x4032e2
jmp 0x403363
push 0xfffffffffffffffe
jmp 0x403357
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x40333c
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40335a
push 0xfffffffffffffffd
pop eax
jmp 0x403365
mov ebx, dword [ebp - 4]
add dword [0x43c234], ebx
mov eax, ebx
pop esi
pop ebx
leave
ret 0x10
Function at 0x4059b6
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x4083f8
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x4083e8
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x405a07
xor eax, eax
jmp 0x405a2e
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x405a2e
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x405a03
call esi
pop esi
leave
ret 4

Function at 0x405a68
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x468290], 0x44
push eax
xor eax, eax
push 0x468290
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x405aa7
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405aab
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
ret 4

Function at 0x405b49
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405f50
mov edi, eax
cmp edi, 0xffffffff
je 0x405b8a
test byte [esp + 0x10], 1
push esi
je 0x405b6c
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x405b72
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x405b7b
xor eax, eax
inc eax
jmp 0x405b8c
test byte [esp + 0x10], 4
jne 0x405b8a
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405b91
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405e5c
test bl, 8
mov dword [ebp - 8], eax
je 0x405bd0
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x47afc8], eax
jmp 0x405d4d
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405bea
test eax, eax
je 0x405cfb
test bl, 2
je 0x405cfb
mov esi, 0x460290
push edi
push esi
call fcn.0040647f
cmp dword [ebp + 8], 0
je 0x405c09
push 0x40a57c
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x405c0f
push edi
call fcn.00405da0
cmp word [edi], 0
jne 0x405c1f
cmp word [0x460290], 0x5c
jne 0x405c2a
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405cf0
cmp word [ebp - 0x22c], 0x2e
jne 0x405c74
cmp word [ebp - 0x22a], 0
je 0x405cd3
cmp word [ebp - 0x22a], 0x2e
jne 0x405c74
cmp word [ebp - 0x228], 0
je 0x405cd3
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.0040647f
test byte [ebp - 0x258], 0x10
je 0x405c9f
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405cd3
push dword [ebp + 0xc]
push edi
call fcn.00405b91
jmp 0x405cd3
push dword [ebp - 4]
push edi
call fcn.00405b49
test eax, eax
jne 0x405ccb
cmp dword [ebp - 4], eax
je 0x405cc3
push edi
push 0xfffffffffffffff1
call fcn.004054e7
push 0
push edi
call fcn.00406245
jmp 0x405cd3
inc dword [0x47afc8]
jmp 0x405cd3
push edi
push 0xfffffffffffffff2
call fcn.004054e7
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405c4c
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405cfb
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405d4d
cmp dword [ebp - 8], esi
jne 0x405d0f
inc dword [0x47afc8]
jmp 0x405d4d
push edi
call fcn.004067c2
test eax, eax
je 0x405d4d
push edi
call fcn.00405d54
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405b49
test eax, eax
jne 0x405d45
cmp dword [ebp - 4], esi
je 0x405d07
push edi
push 0xfffffffffffffff1
call fcn.004054e7
push esi
push edi
call fcn.00406245
jmp 0x405d4d
push edi
push 0xffffffffffffffe5
call fcn.004054e7
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405e5c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x464290
push esi
call fcn.0040647f
push esi
call fcn.00405dff
mov edi, eax
test edi, edi
jne 0x405e7d
xor eax, eax
jmp 0x405ed5
push edi
call fcn.00406713
test byte [0x47af3c], 0x80
je 0x405e9a
mov ax, word [edi]
test ax, ax
je 0x405e79
cmp ax, 0x5c
je 0x405e79
sub edi, esi
sar edi, 1
jmp 0x405eb4
call fcn.004067c2
test eax, eax
je 0x405eae
test byte [eax], 0x10
je 0x405e79
push esi
call fcn.00405da0
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405ea0
call fcn.00405d54
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405f50
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405f6f
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x405f75
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x405fa4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a588]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40a58c]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x405ff4
test edi, edi
jne 0x405fb1
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x405fee
Function at 0x4060cb
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
mov dword [0x468928], 0x55004e
mov dword [0x46892c], 0x4c
mov edi, 0x400
mov ebp, 0x468928
je 0x406121
push 1
push 0
push esi
call fcn.00405f75
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x406240
cmp eax, edi
jg 0x406240
mov esi, 0x469128
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x406240
cmp eax, edi
jg 0x406240
push esi
push ebp
push str._ls_ls_r_n
push 0x468528
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x47af34]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.004064a1
push 4
push 0xc0000000
push esi
call fcn.00405f75
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x406240
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x406239
push edi
push esi
push ebp
call fcn.00405ff8
test eax, eax
je 0x406239
push str._Rename__r_n
push esi
call fcn.00405eda
test eax, eax
jne 0x4061d7
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x40620c
add eax, 0xa
push 0x40a590
push eax
call fcn.00405eda
mov ebp, eax
test ebp, ebp
je 0x406208
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x4061f9
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x4061f3
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x40620e
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x468528
push eax
call fcn.00405f30
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00406027
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x406245
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x406268
push dword [esp + 8]
push dword [esp + 8]
call fcn.004060cb
pop ecx
pop ecx
inc dword [0x47afd0]
ret 8
Function at 0x40634d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
mov dword [ebp - 4], 0x4000
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004062ec
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x4063bd
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp + 0xc]
push esi
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and word [esi + 0x3ffe], 0
test edi, edi
pop edi
jne 0x4063bd
cmp dword [ebp + 0xc], 1
je 0x4063c1
cmp dword [ebp + 0xc], 2
je 0x4063c1
and word [esi], 0
pop esi
leave
ret 0x14
Function at 0x4067e9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x40680d
xor eax, eax
test eax, eax
je 0x406820
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406820
xor ecx, ecx
jmp 0x406823
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x40694c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x46992c], 0
push esi
jne 0x406983
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40695d
mov dword [ecx*4 + 0x469928], eax
inc ecx
cmp ecx, 0x100
jl 0x406958
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4069b4
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x469928]
xor eax, esi
inc ecx
dec edx
jne 0x406996
pop edi
not eax
pop esi
ret 0xc
Function at 0x1027c01
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1027c5a
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1027c4c
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x1027c48
cmp esi, eax
jae 0x1027c4c
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x1027c3a
cmp esi, eax
jb 0x1027c50
xor eax, eax
jmp 0x1027c59
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret 0xc
Function at 0x1029531
Capabilities:
Check for time delay via gettickcount
Query service status

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov eax, dword [0x10ed030]
mov esi, 0x10ed030
mov edi, 0x10029d4
cmp eax, esi
je 0x1029579
test byte [eax + 0x1c], 1
je 0x1029579
cmp byte [eax + 0x19], 5
jb 0x1029579
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
push 0x33
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0105c312
mov eax, dword [0x10ed030]
and dword [ebp - 8], 0
and dword [ebp - 4], 0
cmp eax, esi
je 0x10295a4
test byte [eax + 0x1c], 2
je 0x10295a4
cmp byte [eax + 0x19], 5
jb 0x10295a4
push edi
push 0x34
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027e15
mov eax, dword [0x10ed030]
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 4], 1
je 0x10296e1
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx + 0x18]
mov edx, dword [ebp + 0x14]
cmp ecx, edx
jae 0x10295c0
mov edx, ecx
mov ebx, 0x1f4
cmp edx, ebx
jb 0x10295d2
mov ebx, dword [ebp + 0x14]
cmp ecx, ebx
jae 0x10295d2
mov ebx, ecx
cmp eax, esi
je 0x10295f1
test byte [eax + 0x1c], 2
je 0x10295f1
cmp byte [eax + 0x19], 5
jb 0x10295f1
push ebx
push edi
push 0x35
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027ecb
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
push 0x24
push ebx
push 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x102963e
cmp dword [ebx + 4], 1
je 0x1029677
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
sub eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 0x14]
ja 0x10296a4
mov eax, dword [ebp + 0xc]
cmp dword [eax + 4], 1
mov eax, dword [0x10ed030]
jne 0x10295b1
jmp 0x10296e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [0x10ed030]
cmp eax, esi
je 0x1029711
test byte [eax + 0x1c], 2
je 0x10296e1
cmp byte [eax + 0x19], 2
jb 0x10296e1
push dword [ebp - 4]
push edi
push 0x36
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027ecb
jmp 0x10296dc
and dword [ebp - 4], 0
mov eax, dword [0x10ed030]
cmp eax, esi
je 0x1029711
test byte [eax + 0x1c], 2
je 0x10296e1
cmp byte [eax + 0x19], 5
jb 0x10296e1
push edi
push 0x37
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027e15
jmp 0x10296dc
mov dword [ebp - 4], 0x5b4
mov eax, dword [0x10ed030]
cmp eax, esi
je 0x1029711
test byte [eax + 0x1c], 2
je 0x10296e1
cmp byte [eax + 0x19], 2
jb 0x10296e1
push dword [ebp + 0x14]
call ebx
push eax
push dword [ebp + 0x10]
mov eax, dword [0x10ed030]
push edi
push 0x38
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01047210
mov eax, dword [0x10ed030]
cmp eax, esi
je 0x1029711
test byte [eax + 0x1c], 1
je 0x1029711
mov edx, dword [ebp - 4]
movzx ecx, byte [eax + 0x19]
neg edx
sbb edx, edx
and edx, 0xfffffffd
add edx, 5
cmp ecx, edx
jl 0x1029711
push dword [ebp - 4]
push edi
push 0x39
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027ecb
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x1029720
Capabilities:
Query service status
Stop service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x10ed030]
mov esi, 0x10ed030
mov ebx, 0x10029d4
cmp eax, esi
je 0x1029761
test byte [eax + 0x1c], 1
je 0x1029761
cmp byte [eax + 0x19], 5
jb 0x1029761
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
push 0x3a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01047210
and dword [ebp - 0x28], 0
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp + 8], eax
lea eax, [ebp - 4]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
xor edi, edi
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x10297cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x10ed030]
cmp eax, esi
je 0x102986d
test byte [eax + 0x1c], 2
je 0x1029840
cmp byte [eax + 0x19], 2
jb 0x1029840
push edi
push ebx
push 0x3b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027ecb
jmp 0x102983b
cmp dword [ebp - 0x24], 1
jne 0x10297fe
mov eax, dword [0x10ed030]
cmp eax, esi
je 0x102986d
test byte [eax + 0x1c], 2
je 0x1029840
cmp byte [eax + 0x19], 5
jb 0x1029840
push ebx
push 0x3c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027e15
jmp 0x102983b
cmp dword [ebp - 0x24], 3
jne 0x1029876
mov eax, dword [0x10ed030]
cmp eax, esi
je 0x1029827
test byte [eax + 0x1c], 2
je 0x1029827
cmp byte [eax + 0x19], 5
jb 0x1029827
push ebx
push 0x3d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027e15
push dword [ebp + 0x10]
lea eax, [ebp - 0x28]
push dword [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.01029531
mov edi, eax
mov eax, dword [0x10ed030]
cmp eax, esi
je 0x102986d
test byte [eax + 0x1c], 1
je 0x102986d
movzx ecx, byte [eax + 0x19]
mov edx, edi
neg edx
sbb edx, edx
and edx, 0xfffffffd
add edx, 5
cmp ecx, edx
jl 0x102986d
push edi
push ebx
push 0x3f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027ecb
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
mov eax, dword [0x10ed030]
cmp eax, esi
je 0x1029899
test byte [eax + 0x1c], 2
je 0x1029899
cmp byte [eax + 0x19], 5
jb 0x1029899
push ebx
push 0x3e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027e15
lea eax, [ebp - 0x28]
push eax
push 1
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x1029827
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1029839