joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3dc3700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.03dc378f
jae 0x3dc370e
xor ecx, ecx
call fcn.03dc378f
jae 0x3dc373d
xor eax, eax
call fcn.03dc378f
jae 0x3dc374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.03dc378f
adc al, al
jae 0x3dc372f
jne 0x3dc3779
stosb byte es:[edi], al
jmp 0x3dc3711
call fcn.03dc379b
sub ecx, ebx
jne 0x3dc3756
call fcn.03dc3799
jmp 0x3dc3775
lodsb al, byte [esi]
shr eax, 1
je 0x3dc3783
adc ecx, ecx
jmp 0x3dc3772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.03dc3799
cmp eax, 0x7d00
jae 0x3dc3772
cmp ah, 5
jae 0x3dc3773
cmp eax, 0x7f
ja 0x3dc3774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x3dc3711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x408e60
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x47b008]
xor eax, esp
mov dword [esp + 0x114], eax
push esi
mov esi, ecx
mov dword [esp + 4], 0x114
push 0x110
lea eax, [esp + 0xc]
push 0
push eax
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov byte [esi], 0
call fcn.0043dca0
add esp, 0xc
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x408ef7
cmp dword [esp + 8], 6
jb 0x408ef7
mov byte [esi], 1
mov ecx, dword [esp + 0x118]
pop esi
xor ecx, esp
call fcn.0043bff8
add esp, 0x118
ret

Function at 0x408f10
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x459770
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x47b008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push str.wintrust.dll
lea ecx, [ebp - 0x28]
call fcn.004023d0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call fcn.0040b530
mov ecx, eax
call fcn.0040b5f0
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402370
push str.crypt32.dll
lea ecx, [ebp - 0x40]
call fcn.004023d0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x40]
push eax
call fcn.0040b530
mov ecx, eax
call fcn.0040b5f0
mov esi, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00402370
test ebx, ebx
je 0x409025
test esi, esi
je 0x409025
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptCATAdminCalcHashFromFileHandle
push ebx
call esi
push str.CryptCATAdminAcquireContext
push ebx
mov dword [edi + 4], eax
call esi
push str.CryptCATAdminEnumCatalogFromHash
push ebx
mov dword [edi + 8], eax
call esi
push str.CryptCATCatalogInfoFromContext
push ebx
mov dword [edi + 0xc], eax
call esi
push str.CryptCATAdminReleaseCatalogContext
push ebx
mov dword [edi + 0x10], eax
call esi
push str.CryptCATAdminReleaseContext
push ebx
mov dword [edi + 0x14], eax
call esi
push str.WTHelperProvDataFromStateData
push ebx
mov dword [edi + 0x18], eax
call esi
push str.WTHelperGetProvSignerFromChain
push ebx
mov dword [edi + 0x1c], eax
call esi
push str.WinVerifyTrust
push ebx
mov dword [edi + 0x20], eax
call esi
push str.CertNameToStrW
push dword [ebp - 0x10]
mov dword [edi + 0x24], eax
call esi
mov dword [edi + 0x28], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c560
Capabilities:
Check mutex on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
test eax, eax
je 0x40c576
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
mov ecx, dword [esp + 8]
mov word [esi + 4], 0
call fcn.00402420
cmp dword [eax + 0x10], 0
je 0x40c596
mov ecx, dword [esp + 8]
call fcn.00402360
jmp 0x40c598
xor eax, eax
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
je 0x40c5ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40c5ba
mov byte [esi + 5], 1
cmp dword [esi], 0
pop esi
setne al
ret 4

Function at 0x40c5d0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x459dc8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x47b008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [edi]
test eax, eax
je 0x40c616
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
lea ecx, [ebp - 0x14]
mov word [edi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.0040fc50
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x40c63f
lea ebx, [esi + 8]
jmp 0x40c641
xor ebx, ebx
mov ecx, dword [ebp - 0x18]
call fcn.00402420
mov eax, dword [eax + 0x10]
test eax, eax
je 0x40c65a
mov ecx, dword [ebp - 0x18]
call fcn.00402360
jmp 0x40c65c
xor eax, eax
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
je 0x40c67d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40c67d
mov byte [edi + 5], 1
cmp dword [edi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x40c6a6
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40c6bb
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.0043c039
add esp, 8
mov dword [ebp - 0x14], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043bff8
mov esp, ebp
pop ebp
ret 4
Function at 0x40cc80
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x459068
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x47b008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov ebx, ecx
cmp esi, 0xffffffff
jne 0x40ccba
xor al, al
jmp 0x40cd47
and esi, 0xffffb1af
push esi
call fcn.00402360
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x40ccd5
mov al, 1
jmp 0x40cd47
lea ecx, [ebp - 0x28]
call fcn.00402430
lea ecx, [ebp - 0x28]
call fcn.00402420
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push ecx
push eax
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
call fcn.004025b0
add esp, 8
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.0040d050
test al, al
je 0x40cd34
push esi
lea ecx, [ebp - 0x28]
call fcn.00402360
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x40cd34
mov bl, 1
jmp 0x40cd36
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402370
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043bff8
mov esp, ebp
pop ebp
ret

Function at 0x40cd70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x459068
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x47b008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.00402360
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40ce18
lea ecx, [ebp - 0x28]
call fcn.00402430
lea ecx, [ebp - 0x28]
call fcn.00402420
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push ecx
push eax
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
call fcn.004025b0
add esp, 8
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.0040d050
test al, al
je 0x40ce07
lea ecx, [ebp - 0x28]
call fcn.00402360
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402370
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043bff8
mov esp, ebp
pop ebp
ret
Function at 0x40ce40
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x459ef0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x47b008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00402360
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
test eax, eax
je 0x40ce86
mov al, 1
jmp 0x40cf7b
mov ecx, esi
call fcn.00402360
push eax
lea ecx, [ebp - 0x28]
call fcn.004023d0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0040cd70
mov ebx, eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402370
cmp ebx, 0xffffffff
jne 0x40cec5
xor al, al
jmp 0x40cf7b
mov ecx, esi
call fcn.00402360
push eax
lea ecx, [ebp - 0x28]
call fcn.004023d0
mov dword [ebp - 4], 1
xor edx, edx
lea ecx, [ebp - 0x28]
call fcn.0040cc80
mov bl, al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402370
test bl, bl
je 0x40cebe
mov ecx, esi
call fcn.00402360
push eax
call edi
test eax, eax
jne 0x40ce7f
lea ecx, [ebp - 0x28]
call fcn.00403590
mov dword [ebp - 4], 2
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.0040d050
test al, al
je 0x40cf3d
lea ecx, [ebp - 0x28]
call fcn.00402360
push eax
call edi
test eax, eax
je 0x40cf3d
mov bl, 1
jmp 0x40cf6a
mov ecx, esi
call fcn.00402360
push eax
lea ecx, [ebp - 0x44]
call fcn.004023d0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
mov edx, dword [ebp - 0x2c]
call fcn.0040cc80
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.00402370
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402370
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043bff8
mov esp, ebp
pop ebp
ret

Function at 0x40cfa0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x47b008]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
mov ebx, dword [esp + 0x218]
lea eax, [esp + 4]
push esi
push edi
push 0x20c
push 0
push eax
mov esi, edx
mov edi, ecx
call fcn.0043dca0
add esp, 0xc
lea eax, [esp + 0xc]
mov ecx, esi
push eax
push 0
call fcn.00402360
push eax
mov ecx, edi
call fcn.00402360
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x40d035
xor eax, eax
mov word [esp + 0x216], ax
lea eax, [esp + 0xc]
push eax
call fcn.00402610
add esp, 4
mov ecx, ebx
push eax
lea eax, [esp + 0x10]
push eax
call fcn.00402450
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.0043bff8
add esp, 0x210
ret
mov ecx, dword [esp + 0x218]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0043bff8
add esp, 0x210
ret
Function at 0x40d120
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x47b008]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 1
mov esi, ecx
call fcn.0043c009
mov dword [esi], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [esp + 0x14]
push eax
call fcn.0043dca0
add esp, 0x10
mov dword [esp + 4], 0x11c
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x40d17c
cmp dword [esp + 8], 6
mov ecx, dword [esi]
setae dl
mov byte [ecx], dl
mov ecx, dword [esp + 0x120]
pop esi
xor ecx, esp
call fcn.0043bff8
add esp, 0x120
ret
Function at 0x40fda0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x474bc8
push 0x43d5c0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x47b008]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x28], 0
xor esi, esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x2c], esi
xor ebx, ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x20], 0x100
mov eax, dword [ecx]
mov edi, dword [eax + 0x28]
mov dword [ebp - 0x40], edi
test edi, edi
jne 0x40fe09
xor eax, eax
jmp 0x40ff7f
mov dword [ebp - 4], ebx
push str.InitializeSecurityDescriptor
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40ff4a
push 1
push dword [ebp - 0x34]
call eax
test eax, eax
je 0x40ff4a
push str.AllocateAndInitializeSid
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40ff4a
lea ecx, [ebp - 0x28]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 1
lea ecx, [ebp - 0x24]
push ecx
call eax
test eax, eax
je 0x40ff4a
push str.GetLengthSid
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40ff4a
push dword [ebp - 0x28]
call eax
add eax, 0x10
mov dword [ebp - 0x30], eax
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x3c], esi
test esi, esi
je 0x40ff4a
push str.InitializeAcl
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40ff4a
push 2
push dword [ebp - 0x30]
push esi
call eax
test eax, eax
je 0x40ff4a
push str.AddAccessAllowedAce
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40ff4a
push dword [ebp - 0x28]
push 0x10000000
push 2
push esi
call eax
test eax, eax
je 0x40ff4a
push str.SetSecurityDescriptorDacl
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x40ff4a
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x40ff33
push 0
push ecx
push 1
push dword [ebp - 0x34]
call eax
test eax, eax
je 0x40ff20
mov ebx, 1
mov dword [ebp - 0x38], ebx
cmp dword [ebp - 0x2c], 0
je 0x40ff30
jmp 0x40ff4a
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x30]
push 0
push esi
push 1
push dword [ebp - 0x34]
call eax
mov ecx, 1
test eax, eax
cmovne ebx, ecx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.0040ffa6
test ebx, ebx
jne 0x40ff7d
test esi, esi
je 0x40ff6f
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x40ff7d
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0043bff8
mov esp, ebp
pop ebp
ret 0xc
Function at 0x411240
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x80
push esi
mov dword [esp + 4], 0x10d040e
xor esi, esi
mov dword [esp + 8], 0x80b0f02
mov dword [esp + 0xc], 0xc060a03
mov dword [esp + 0x10], 0x7000905
mov dword [esp + 0x14], 0xe08010f
mov dword [esp + 0x18], 0x4030b06
mov dword [esp + 0x1c], 0xd020709
mov dword [esp + 0x20], 0xa05000c
mov dword [esp + 0x24], 0xe09000a
mov dword [esp + 0x28], 0x50f0306
mov dword [esp + 0x2c], 0x70c0d01
mov dword [esp + 0x30], 0x802040b
mov dword [esp + 0x34], 0x30e0d07
mov dword [esp + 0x38], 0xa090600
mov dword [esp + 0x3c], 0x5080201
mov dword [esp + 0x40], 0xf040c0b
mov dword [esp + 0x44], 0x1040c02
mov dword [esp + 0x48], 0x60b0a07
mov dword [esp + 0x4c], 0xf030508
mov dword [esp + 0x50], 0x90e000d
mov dword [esp + 0x54], 0xf0a010c
mov dword [esp + 0x58], 0x8060209
mov dword [esp + 0x5c], 0x4030d00
mov dword [esp + 0x60], 0xb05070e
mov dword [esp + 0x64], 0xe020b04
mov dword [esp + 0x68], 0xd08000f
mov dword [esp + 0x6c], 0x7090c03
mov dword [esp + 0x70], 0x1060a05
mov dword [esp + 0x74], 0x408020d
mov dword [esp + 0x78], 0x10b0f06
mov dword [esp + 0x7c], 0xe03090a
mov dword [esp + 0x80], 0x70c0005
nop dword [eax]
mov ecx, esi
mov edx, esi
sar ecx, 4
and edx, 0xf
movzx eax, byte [esp + ecx + 4]
shl al, 4
or al, byte [esp + edx + 0x14]
mov byte [esi + 0x47d0b8], al
movzx eax, byte [esp + ecx + 0x24]
shl al, 4
or al, byte [esp + edx + 0x34]
mov byte [esi + 0x47cdb8], al
movzx eax, byte [esp + ecx + 0x44]
shl al, 4
or al, byte [esp + edx + 0x54]
mov byte [esi + 0x47cfb8], al
movzx eax, byte [esp + ecx + 0x64]
shl al, 4
or al, byte [esp + edx + 0x74]
mov byte [esi + 0x47ceb8], al
inc esi
cmp esi, 0x100
jl 0x411350
pop esi
add esp, 0x80
ret
Function at 0x412aa0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45a620
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x47b008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x28]
push eax
call fcn.004035d0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x18]
cmovae edx, dword [ebp - 0x28]
lea eax, [edx + eax*2]
lea edx, [ebp - 0x28]
mov esi, eax
cmovae edx, dword [ebp - 0x28]
xor edi, edi
sub esi, edx
xor ecx, ecx
inc esi
shr esi, 1
cmp edx, eax
cmova esi, edi
test esi, esi
je 0x412b21
lea eax, [ecx + 0x5c]
nop dword [eax]
cmp word [edx], 0x2f
jne 0x412b19
mov word [edx], ax
inc ecx
add edx, 2
cmp ecx, esi
jne 0x412b10
lea ecx, [ebp - 0x28]
call fcn.00402420
mov eax, dword [eax + 0x10]
push eax
push ecx
push 0x5c
lea ecx, [ebp - 0x28]
call fcn.00404730
inc eax
lea ecx, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00404500
push 0x1f4
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x412bd2
lea eax, [ebp - 0x30]
xorps xmm0, xmm0
push eax
push str.SeDebugPrivilege
push 0
movlpd qword [ebp - 0x30], xmm0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x412bc9
mov eax, dword [ebp - 0x30]
push 0
push 0
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x2c]
push 0x10
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x40]
push eax
push 0
push dword [ebp - 0x5c]
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x34], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x412bc9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x58]
push eax
call fcn.00413c20
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x412c19
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412c0f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412ca2
push edx
push ecx
call fcn.0043c039
add esp, 8
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov dword [ebp - 4], 6
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x412c6a
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412c60
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412ca7
push edx
push ecx
call fcn.0043c039
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043bff8
mov esp, ebp
pop ebp
ret 8
call fcn.00440186
call fcn.00440186
int3
Function at 0x412d10
Capabilities:
Check for time delay via gettickcount
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x47b008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0xf003f
push 0
push 0
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x412ef7
cmp dword [esi + 0x14], 8
jb 0x412d45
mov esi, dword [esi]
push 0xf01ff
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x412d71
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043bff8
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
push 0x24
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0xc], 0
push ecx
xorps xmm0, xmm0
push 0
push eax
movups xmmword [ebp - 0x2c], xmm0
movups xmmword [ebp - 0x1c], xmm0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x412ee7
mov eax, dword [ebp - 0x28]
cmp eax, 1
je 0x412db6
cmp eax, 3
jne 0x412ee7
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebx
push edi
call esi
cmp dword [ebp - 0x28], 3
mov ebx, eax
mov edi, dword [ebp - 0x18]
mov ecx, 0x2710
jne 0x412e3d
mov eax, 0xcccccccd
mul dword [ebp - 0x14]
shr edx, 3
cmp edx, 0x3e8
jae 0x412dea
mov edx, 0x3e8
jmp 0x412df3
cmp edx, 0x2710
cmova edx, ecx
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 8]
push eax
push 0x24
lea eax, [ebp - 0x2c]
push eax
push 0
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x412ee5
cmp dword [ebp - 0x18], edi
jbe 0x412e25
call esi
mov edi, dword [ebp - 0x18]
mov ebx, eax
jmp 0x412e32
call esi
sub eax, ebx
cmp eax, dword [ebp - 0x14]
ja 0x412ee5
cmp dword [ebp - 0x28], 3
mov ecx, 0x2710
je 0x412dd0
mov ebx, dword [ebp - 0x30]
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x412ee5
lea eax, [ebp - 8]
push eax
push 0x24
lea eax, [ebp - 0x2c]
push eax
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x412ee5
call esi
cmp dword [ebp - 0x28], 2
mov ebx, eax
mov edi, dword [ebp - 0x18]
jne 0x412ee5
nop word [eax + eax]
mov eax, 0xcccccccd
mul dword [ebp - 0x14]
shr edx, 3
cmp edx, 0x3e8
jae 0x412e9a
mov edx, 0x3e8
jmp 0x412ea8
cmp edx, 0x2710
mov eax, 0x2710
cmova edx, eax
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 8]
push eax
push 0x24
lea eax, [ebp - 0x2c]
push eax
push 0
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x412ee5
cmp dword [ebp - 0x18], edi
jbe 0x412ed6
call esi
mov edi, dword [ebp - 0x18]
mov ebx, eax
jmp 0x412edf
call esi
sub eax, ebx
cmp eax, dword [ebp - 0x14]
ja 0x412ee5
cmp dword [ebp - 0x28], 2
je 0x412e80
pop edi
pop ebx
push dword [ebp - 0x30]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [ebp - 0x34]
call esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0043bff8
mov esp, ebp
pop ebp
ret