joyce8/EMBER2024-capa huggingface dataset:
Function at 0x55e14c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push 0x200
lea eax, [ebp - 0x200]
push eax
push 0x1001
mov edx, dword [ebx + 4]
push edx
call sub.kernel32.dll_GetLocaleInfoA_1
push 0x59e693
lea ecx, [ebp - 0x200]
push ecx
call fcn.0055bd48
add esp, 8
lea eax, [ebp - 0x200]
push eax
call fcn.0055bd08
pop ecx
mov edx, 0x200
sub edx, eax
push edx
lea ecx, [ebp - 0x200]
push ecx
call fcn.0055bd08
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
push 0x1002
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
push 0x59e695
lea ecx, [ebp - 0x200]
push ecx
call fcn.0055bd48
add esp, 8
push 0xa
lea eax, [ebp - 0x200]
push eax
call fcn.0055bd08
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
mov ecx, dword [ebx]
push ecx
call fcn.0055fb74
add esp, 0xc
cmp dword [ebx + 0x24], 0
jne 0x55e25d
push esi
call fcn.0055bd08
pop ecx
mov edi, eax
lea eax, [ebp - 0x200]
push eax
call fcn.0055bd08
pop ecx
add edi, eax
add edi, 3
push edi
call fcn.0055bc40
pop ecx
mov edi, eax
mov dword [ebx + 0x24], edi
test edi, edi
jne 0x55e234
xor eax, eax
jmp 0x55e2e4
push esi
call fcn.0055bd08
pop ecx
push eax
lea edx, [ebp - 0x200]
push edx
call fcn.0055bd08
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push 0
push edi
call fcn.0055bcd4
add esp, 0xc
jmp 0x55e29d
mov edi, dword [ebx + 0x24]
push edi
call fcn.0055bd08
pop ecx
push eax
push esi
call fcn.0055bd08
pop ecx
pop edx
add edx, eax
push edx
lea eax, [ebp - 0x200]
push eax
call fcn.0055bd08
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push edi
call fcn.0055bc7c
add esp, 8
mov dword [ebx + 0x24], eax
cmp dword [ebx + 0x24], 0
jne 0x55e29d
xor eax, eax
jmp 0x55e2e4
push esi
mov edx, dword [ebx + 0x24]
push edx
call fcn.0055bd48
add esp, 8
push 0x59e697
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.0055bd48
add esp, 8
lea eax, [ebp - 0x200]
push eax
mov edx, dword [ebx + 0x24]
push edx
call fcn.0055bd48
add esp, 8
push 0x59e699
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.0055bd48
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x560cea
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
lea edx, [ebp - 8]
push edx
lea ecx, [ebp - 4]
push ecx
push 0
push 0x4001f
push 0
push 0
push 0
push eax
push 0x80000000
call sub.advapi32.dll_RegCreateKeyExA
mov ebx, eax
test ebx, ebx
jne 0x560d3e
push esi
call fcn.0055bd08
pop ecx
inc eax
push eax
push esi
push 1
push 0
push edi
push dword [ebp - 4]
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey_1
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x5968f4
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, eax
cmp byte [ebx + 0x87], 0
je 0x59692f
cmp dword [ebx + 0x5c], 0
je 0x59692f
mov eax, dword [ebx + 0x5c]
push eax
mov esi, dword [ebx + 0x68]
mov eax, dword [esi + 0x1a8]
push eax
mov eax, dword [eax]
call dword [eax + 0xb8]
mov edx, eax
mov eax, esi
call fcn.0058efc4
xor eax, eax
mov dword [ebx + 0x5c], eax
mov byte [ebx + 0x87], 0
cmp dword [ebx + 0x5c], 0
jne 0x596a7a
cmp dword [ebx + 0x7c], 0
jne 0x596955
mov dl, 1
mov eax, dword [0x41cadc]
call fcn.00403934
mov dword [ebx + 0x7c], eax
cmp dword [ebx + 0xc], 0
je 0x596a53
mov eax, dword [ebx + 0xc]
push eax
mov al, byte [0x596a80]
push eax
mov al, byte [0x596a84]
push eax
push 0
mov eax, dword [ebx + 0x7c]
push eax
mov eax, dword [0x5a1e7c]
push eax
mov ecx, dword [ebx + 0x68]
mov dl, 1
mov eax, dword [0x54e4fc]
call fcn.00550368
mov dword [ebp - 4], eax
xor edx, edx
push ebp
push 0x596a4c
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebx + 0x5c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x50]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
push eax
mov eax, dword [ebx + 0x64]
push eax
mov esi, dword [ebx + 0x68]
mov eax, dword [esi + 0x1a8]
push eax
mov eax, dword [eax]
call dword [eax + 0xb4]
mov edx, eax
mov eax, esi
call fcn.0058efc4
lea eax, [ebx + 0x10]
push eax
mov eax, dword [ebx + 0x5c]
push eax
mov esi, dword [ebx + 0x68]
mov eax, dword [esi + 0x1a8]
push eax
mov eax, dword [eax]
call dword [eax + 0xc0]
mov edx, eax
mov eax, esi
call fcn.0058efc4
mov eax, dword [ebx + 0x40]
push eax
lea eax, [ebx + 0x70]
mov ecx, 1
mov edx, dword [0x58ca08]
call fcn.004060cc
add esp, 4
mov eax, dword [ebx + 0x30]
cmp eax, 0x1a
jge 0x596a1f
mov edx, dword [0x5a2194]
mov al, byte [edx + eax]
mov byte [ebx + 0x74], al
jmp 0x596a30
cmp eax, 0x1007
jne 0x596a2c
mov byte [ebx + 0x74], 0x18
jmp 0x596a30
mov byte [ebx + 0x74], 0
mov eax, dword [ebx + 0x40]
mov dword [ebx + 0x78], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x596a7a
mov eax, dword [ebp - 4]
call fcn.00403964
ret
lea eax, [ebx + 0x5c]
push eax
push 0
push 0
mov eax, dword [ebx + 0x64]
push eax
mov esi, dword [ebx + 0x68]
mov eax, dword [esi + 0x1a8]
push eax
mov eax, dword [eax]
call dword [eax + 0xb4]
mov edx, eax
mov eax, esi
call fcn.0058efc4
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x597078
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff84
push ebx
xor edx, edx
mov dword [ebp - 0x6c], edx
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x60], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5971e1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404834
mov dword [ebp - 8], 0x50
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x5971f0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x5971c6
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x59]
push eax
push 0
push 0
push 0x597224
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x5971c6
cmp dword [ebp - 8], 0x50
ja 0x5971c6
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
lea eax, [ebp - 0x60]
lea edx, [ebp - 0x59]
mov ecx, 0x51
call fcn.00404a9c
mov edx, dword [ebp - 0x60]
mov eax, 0x597238
call fcn.00409294
test al, al
je 0x59712c
mov eax, ebx
mov edx, 0x597248
call fcn.00404888
lea eax, [ebp - 0x64]
lea edx, [ebp - 0x59]
mov ecx, 0x51
call fcn.00404a9c
mov edx, dword [ebp - 0x64]
mov eax, 0x59725c
call fcn.00409294
test al, al
je 0x597159
mov eax, ebx
mov edx, 0x597270
call fcn.00404888
lea eax, [ebp - 0x68]
lea edx, [ebp - 0x59]
mov ecx, 0x51
call fcn.00404a9c
mov edx, dword [ebp - 0x68]
mov eax, 0x597280
call fcn.00409294
test al, al
je 0x597186
mov eax, ebx
mov edx, 0x597294
call fcn.00404888
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x98]
mov dword [ebp - 0x7c], eax
mov byte [ebp - 0x78], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x94]
mov dword [ebp - 0x74], eax
mov byte [ebp - 0x70], 0
lea edx, [ebp - 0x7c]
mov ecx, 1
mov eax, 0x5972b0
call fcn.0040a834
mov edx, dword [ebp - 0x6c]
mov eax, ebx
call fcn.00404af4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5971e8
lea eax, [ebp - 0x6c]
mov edx, 4
call fcn.00404858
ret
Function at 0x597a98
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov eax, esp
xor ecx, ecx
mov edx, 0x20
call fcn.0040318c
mov dword [esp], 0x20
push esp
call sub.kernel32.dll_GlobalMemoryStatus
mov eax, dword [esp + 8]
add esp, 0x20
ret

Function at 0x597ac0
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov eax, esp
xor ecx, ecx
mov edx, 0x20
call fcn.0040318c
mov dword [esp], 0x20
push esp
call sub.kernel32.dll_GlobalMemoryStatus
mov eax, dword [esp + 0xc]
add esp, 0x20
ret
Function at 0x402254
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4566c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x14]
push eax
xor ebx, ebx
push 8
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x402375
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push 2
push dword [ebp - 0x14]
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x402369
mov eax, dword [ebp - 0x10]
add eax, 8
cmp eax, 0x400
ja 0x4022d3
call fcn.00421760
mov esi, esp
cmp esi, ebx
je 0x402369
mov dword [esi], 0xcccc
add esi, 8
jmp 0x4022e9
push eax
call fcn.0042159d
pop ecx
cmp eax, ebx
je 0x4022e7
mov dword [eax], 0xdddd
add eax, 8
mov esi, eax
cmp esi, ebx
je 0x402369
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push esi
push 2
push dword [ebp - 0x14]
call edi
test eax, eax
je 0x402369
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x402369
xor edi, edi
cmp dword [esi], ebx
jbe 0x402360
lea ebx, [esi + 4]
push dword [ebx]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x402359
inc edi
add ebx, 8
cmp edi, dword [esi]
jb 0x402340
jmp 0x402360
mov dword [ebp - 0x1c], 1
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x28]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042090d
leave
ret
Function at 0x40499d
Capabilities:
Write file on windows

Disassembly:
push 0x48
mov eax, 0x43bab1
call fcn.0042130d
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x3c], ebx
je 0x404aaf
cmp byte [esi + 0x42], bl
je 0x404aaf
mov eax, dword [esi]
mov edi, 0xffff
push edi
call dword [eax + 4]
movzx eax, ax
cmp di, ax
jne 0x4049d9
xor al, al
jmp 0x404ab1
push ebx
push 8
lea ecx, [ebp - 0x2c]
call fcn.00404953
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040434c
mov ecx, eax
call fcn.00402e8a
mov edi, dword [ebp - 0x18]
mov ebx, eax
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040434c
mov ecx, eax
call fcn.00402e8a
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x30]
push eax
add edi, ebx
push edi
push dword [ebp - 0x34]
lea eax, [esi + 0x44]
push eax
call dword [edx + 0x18]
sub eax, 0
je 0x404a49
dec eax
je 0x404a4d
dec eax
dec eax
je 0x404aab
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401b4d
mov al, bl
jmp 0x404ab1
mov byte [esi + 0x42], 0
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040434c
mov ecx, eax
call fcn.00402e8a
mov edi, dword [ebp - 0x30]
sub edi, eax
je 0x404a8d
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040434c
mov ecx, eax
call fcn.00402e8a
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004228bd
add esp, 0x10
cmp edi, eax
jne 0x404a37
cmp byte [esi + 0x42], 0
je 0x404aab
test edi, edi
jne 0x4049e7
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00404521
jmp 0x4049e7
mov bl, 1
jmp 0x404a39
mov al, 1
call fcn.00421390
ret
Function at 0x404db1
Capabilities:
Write file on windows

Disassembly:
push 0x54
mov eax, 0x43bb1f
call fcn.0042130d
mov edi, dword [ebp + 8]
mov eax, 0xffff
mov esi, ecx
cmp ax, di
jne 0x404ddb
lea eax, [ebp + 8]
push eax
call fcn.004036e1
pop ecx
jmp 0x404f56
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
xor ebx, ebx
cmp ecx, ebx
je 0x404e09
mov eax, dword [esi + 0x34]
mov edx, dword [eax]
lea edx, [ecx + edx*2]
cmp ecx, edx
jae 0x404e09
dec dword [eax]
mov esi, dword [esi + 0x24]
mov eax, dword [esi]
lea ecx, [eax + 2]
mov dword [esi], ecx
mov word [eax], di
mov ax, di
jmp 0x404f56
mov eax, dword [esi + 0x4c]
cmp eax, ebx
je 0x404f51
cmp dword [esi + 0x3c], ebx
jne 0x404e32
push eax
push edi
call fcn.00403fa9
pop ecx
test al, al
pop ecx
movzx eax, di
jne 0x404f56
jmp 0x404f51
movzx eax, di
push ebx
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], eax
call fcn.00404953
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.0040434c
mov ecx, eax
call fcn.00402e8a
mov edi, dword [ebp - 0x18]
mov ebx, eax
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040434c
mov ecx, eax
call fcn.00402e8a
lea edx, [ebp - 0x38]
add edi, ebx
push edx
lea ebx, [esi + 0x44]
jmp 0x404f23
cmp eax, 1
jg 0x404f5e
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040434c
mov ecx, eax
call fcn.00402e8a
mov edi, dword [ebp - 0x38]
sub edi, eax
je 0x404ec8
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040434c
mov ecx, eax
call fcn.00402e8a
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004228bd
add esp, 0x10
cmp edi, eax
jne 0x404f45
lea eax, [ebp - 0x30]
mov byte [esi + 0x42], 1
cmp dword [ebp - 0x3c], eax
jne 0x404f8e
test edi, edi
ja 0x404eee
cmp dword [ebp - 0x18], 0x20
push 0
lea ecx, [ebp - 0x2c]
jae 0x404f4a
push 8
call fcn.00404521
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040434c
mov ecx, eax
call fcn.00402e8a
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040434c
mov ecx, eax
call fcn.00402e8a
lea edx, [ebp - 0x38]
push edx
mov edx, dword [ebp - 0x40]
add edi, edx
mov ecx, dword [esi + 0x3c]
push edi
push eax
lea edx, [ebp - 0x3c]
push edx
lea edx, [ebp - 0x2e]
push edx
lea edx, [ebp - 0x30]
push edx
mov dword [ebp - 0x34], eax
mov eax, dword [ecx]
push ebx
call dword [eax + 0x14]
test eax, eax
jge 0x404e7f
push 0
lea ecx, [ebp - 0x2c]
push 1
call fcn.00401b4d
mov eax, 0xffff
call fcn.00421390
ret 4
cmp eax, 3
jne 0x404f45
push dword [esi + 0x4c]
push dword [ebp - 0x30]
call fcn.00403fa9
movzx esi, word [ebp + 8]
pop ecx
pop ecx
test al, al
jne 0x404f7d
mov esi, 0xffff
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401b4d
mov ax, si
jmp 0x404f56
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401b4d
mov ax, word [ebp + 8]
jmp 0x404f56
Function at 0x40696c
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push 1
push str.SeShutdownPrivilege
push dword [ebp - 4]
call fcn.00406876
mov eax, dword [ebp + 8]
add esp, 0xc
dec eax
neg eax
sbb eax, eax
and eax, 0xffffffec
push 0x40000
add eax, 0x16
push eax
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x4069d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._RebootPC_::_return_FALSE__errorcode__0x_X
push 0x457bc8
call fcn.004063ad
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
leave
ret
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str._RebootPC_::_reboot_machine...
push 0x457bc8
call fcn.00406300
pop ecx
xor eax, eax
pop ecx
inc eax
leave
ret
Function at 0x406f5f
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 1
push dword [ebp + 8]
call fcn.00406e49
add esp, 0xc
test eax, eax
jl 0x406f92
push esi
push 0
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtTerminateProcess]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, esi
pop esi
leave
ret

Function at 0x4071a0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4566c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
push 8
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4072c4
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push 2
push dword [ebp - 0x10]
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4072b8
mov eax, dword [ebp - 0x14]
add eax, 8
cmp eax, 0x400
ja 0x407222
call fcn.00421760
mov esi, esp
cmp esi, ebx
je 0x4072b8
mov dword [esi], 0xcccc
add esi, 8
jmp 0x407238
push eax
call fcn.0042159d
pop ecx
cmp eax, ebx
je 0x407236
mov dword [eax], 0xdddd
add eax, 8
mov esi, eax
cmp esi, ebx
je 0x4072b8
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push esi
push 2
push dword [ebp - 0x10]
call edi
test eax, eax
je 0x4072b8
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4072b8
xor edi, edi
cmp dword [esi], ebx
jbe 0x4072af
lea ebx, [esi + 4]
push dword [ebx]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x4072a8
inc edi
add ebx, 8
cmp edi, dword [esi]
jb 0x40728f
jmp 0x4072af
mov dword [ebp - 0x1c], 1
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x28]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042090d
leave
ret
Function at 0x4072d6
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x4566c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x58], ebx
cmp edi, ebx
jne 0x407304
lea edi, [ebp - 0x64]
lea eax, [ebp - 0x5c]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x407400
lea eax, [ebp - 0x60]
push eax
push 4
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push 0x12
push dword [ebp - 0x5c]
call esi
test eax, eax
je 0x4073f4
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x48]
push eax
push ebx
push 0x1a
mov dword [ebp - 0x60], 0x44
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
mov eax, dword [ebp - 0x54]
cmp dword [eax], 3
mov dword [ebp - 0x54], ebx
jne 0x407393
lea eax, [ebp - 0x60]
push eax
push 4
lea eax, [ebp - 0x54]
push eax
push 0x13
push dword [ebp - 0x5c]
call esi
push edi
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x54]
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x407388
mov dword [ebp - 0x58], 1
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4073f4
lea eax, [ebp - 0x54]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x50]
push eax
mov byte [ebp - 0x50], bl
mov byte [ebp - 0x4f], bl
mov byte [ebp - 0x4e], bl
mov byte [ebp - 0x4d], bl
mov byte [ebp - 0x4c], bl
mov byte [ebp - 0x4b], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x58], eax
cmp eax, ebx
je 0x4073e8
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x54]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x4073df
mov dword [ebp - 0x58], ebx
push dword [ebp - 0x54]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x58]
mov dword [edi], eax
mov dword [ebp - 0x58], 1
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042090d
leave
ret
Function at 0x4075ba
Capabilities:
Check for time delay via gettickcount
Enumerate services
Query service status

Disassembly:
push 0x6c
push 0x44e6c8
call fcn.00423090
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], 0x7530
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1c]
push eax
xor ebx, ebx
push ebx
push ebx
push 1
push dword [ebp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
call esi
test eax, eax
jne 0x4076fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x40760b
xor al, al
jmp 0x407700
push dword [ebp - 0x1c]
call fcn.0042159d
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, ebx
je 0x407604
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp - 0x1c]
push eax
push 1
push dword [ebp + 0xc]
call esi
test eax, eax
jne 0x40764a
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x4566c8
call fcn.0042327c
add esp, 0xc
jmp 0x407604
mov dword [ebp - 0x20], ebx
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x28]
jae 0x4076f2
mov esi, eax
imul esi, esi, 0x24
add esi, dword [ebp - 0x24]
push 9
pop ecx
lea edi, [ebp - 0x7c]
rep movsd dword es:[edi], dword [esi]
push 0x24
push dword [ebp - 0x7c]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x34], esi
cmp esi, ebx
je 0x407635
xor edi, edi
inc edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0x58]
push eax
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x407635
cmp dword [ebp - 0x54], edi
je 0x4076d6
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x1c]
push eax
push 0x24
lea eax, [ebp - 0x58]
push eax
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x407635
cmp dword [ebp - 0x54], edi
je 0x4076d6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x30]
jbe 0x407696
jmp 0x407635
mov dword [ebp - 4], ebx
call fcn.004076e8
inc dword [ebp - 0x20]
jmp 0x40764d
mov dword [ebp - 4], 0xfffffffe
call fcn.00407708
mov al, 1
call fcn.004230d5
ret

Function at 0x407c5e
Capabilities:
Delete file
Set file attributes

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
cmp dword [edi + 0x18], 8
lea esi, [edi + 4]
jb 0x407c71
mov eax, dword [esi]
jmp 0x407c73
mov eax, esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [edi + 0x18], 8
jb 0x407c84
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
pop edi
setne al
pop esi
ret
Function at 0x408316
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
push 7
pop ecx
xor eax, eax
push 7
lea edi, [ebp - 0x3c]
rep stosd dword es:[edi], eax
pop ecx
push 1
push eax
lea esi, [ebp - 0x3c]
lea edi, [ebp - 0x20]
push eax
mov byte [ebp - 1], 0
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
je 0x408390
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
jb 0x408356
mov eax, dword [eax + 4]
jmp 0x408359
add eax, 4
push 4
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
je 0x40838d
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x40838a
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
mov byte [ebp - 1], 1
push edi
call esi
push ebx
call esi
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret