joyce8/EMBER2024-capa huggingface dataset:
Function at 0x978190
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0xb11710
push 0xa847a0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0xb196ec]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov ebx, ecx
mov edi, edx
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebx], esi
cmp edi, esi
je 0x9782fa
cmp byte [edi], 0
je 0x9782fa
mov dword [ebp - 4], esi
push 0x80
push 3
push 1
push 0x80000000
call fcn.0094db00
add esp, 0x10
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
je 0x9782de
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x978269
lea edi, [esi + 0x401]
push edi
call fcn.00a7a155
add esp, 4
mov dword [ebx], eax
test eax, eax
je 0x97825e
push edi
push 0
push eax
call fcn.00a7ffb0
add esp, 0xc
push 0
lea eax, [ebp - 0x20]
push eax
push esi
mov ecx, dword [ebx]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x978269
mov eax, dword [ebx]
push eax
call fcn.00a78fec
add esp, 4
mov dword [ebx], 0
jmp 0x978269
push 0xc0000017
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x97829a
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00985290
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x1c]
push edx
call fcn.00985290
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x978310
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0xb116f0
push 0xa847a0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0xb196ec]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, ecx
mov ebx, edx
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [edi], esi
cmp ebx, esi
je 0x97843c
cmp word [ebx], si
je 0x97843c
mov dword [ebp - 4], esi
push 0x80
push 3
push 1
push 0x80000000
call fcn.0094dc00
add esp, 0x10
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
je 0x978420
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x9783dc
lea ebx, [esi + 0x401]
push ebx
call fcn.00a7a155
add esp, 4
mov dword [edi], eax
test eax, eax
je 0x9783dc
push ebx
push 0
push eax
call fcn.00a7ffb0
add esp, 0xc
push 0
lea eax, [ebp - 0x20]
push eax
push esi
mov ecx, dword [edi]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x9783dc
mov eax, dword [edi]
push eax
call fcn.00a78fec
add esp, 4
mov dword [edi], 0
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00985290
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x978530
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0xb121b0
push 0xa847a0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0xb196ec]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, ecx
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
cmp dword [edi + 0x224], eax
je 0x9785a6
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ecx, eax
sub ecx, dword [edi + 0x224]
mov eax, 0x10624dd3
mul ecx
shr edx, 6
cmp edx, 0x384
jbe 0x97867e
call esi
mov dword [edi + 0x224], eax
mov dword [ebp - 0x1c], 1
lea esi, [edi + 0x218]
lea ebx, [edi + 0x21c]
push ebx
mov ecx, edi
call fcn.00967cc0
add esp, 4
test eax, eax
jne 0x97867e
mov eax, dword [esi]
test eax, eax
je 0x97867e
cmp dword [edi + 0x20c], eax
jne 0x97860d
mov edx, dword [edi + 0x220]
cmp edx, dword [edi + 0x214]
jne 0x97860d
mov ecx, dword [ebx]
cmp ecx, dword [edi + 0x210]
jne 0x97860d
cmp dword [edi + 0x224], 0
jne 0x97867e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 0x224], eax
jmp 0x97867e
mov dword [edi + 0x20c], eax
mov edx, dword [ebx]
mov dword [edi + 0x210], edx
mov eax, dword [ebx + 4]
mov dword [edi + 0x214], eax
mov dword [ebp - 0x20], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 0x224], eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [edi + 0x208]
push edx
mov ecx, esi
mov edx, edi
call fcn.009786a0
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x978c90
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x21c
mov eax, dword [0xb196ec]
xor eax, esp
mov dword [esp + 0x218], eax
push esi
push edi
push 0x207
lea eax, [esp + 0x1d]
mov edi, edx
push 0
push eax
mov esi, ecx
mov dword [esp + 0x18], edi
mov byte [esp + 0x24], 0
call fcn.00a7ffb0
add esp, 0xc
test esi, esi
je 0x978e18
cmp byte [esi], 0
je 0x978e18
test edi, edi
je 0x978e18
cmp byte [edi], 0
je 0x978e18
push ebx
push ebp
push esi
lea ecx, [esp + 0x24]
push str.SYSTEMCurrentControlSetServices_s
push ecx
call fcn.00a78f30
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 0xc
lea edx, [esp + 0x10]
push edx
push 1
push 0
lea eax, [esp + 0x2c]
push eax
push 0x80000002
call ebp
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, eax
push edi
call ebx
test edi, edi
jne 0x978e11
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x24]
push eax
push edi
push 0xaed050
push ecx
mov byte [esp + 0x38], 0
mov dword [esp + 0x30], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x978d97
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
call fcn.0094c330
test eax, eax
jne 0x978d97
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop ebp
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.00a78f21
add esp, 0x21c
ret
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call edi
push esi
lea ecx, [esp + 0x24]
push str.SYSTEMCurrentControlSetServices_s
push ecx
call fcn.00a78f30
add esp, 0xc
lea edx, [esp + 0x10]
push edx
push 0xf003f
push 0
lea eax, [esp + 0x2c]
push eax
push 0x80000002
call ebp
mov esi, eax
push esi
call ebx
test esi, esi
jne 0x978e11
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x10]
inc eax
push eax
push esi
push 1
push 0
push 0xaed050
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x978e0a
mov edx, dword [esp + 0x10]
push edx
call edi
jmp 0x978d79
mov eax, dword [esp + 0x10]
push eax
call edi
xor eax, eax
jmp 0x978d7e
mov ecx, dword [esp + 0x220]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.00a78f21
add esp, 0x21c
ret
Function at 0x979330
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
sub esp, 0x10c
mov eax, dword [0xb196ec]
xor eax, esp
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x110]
push ebp
mov ebp, dword [esp + 0x120]
push esi
push edi
push 0xff
mov edi, ecx
lea ecx, [esp + 0x19]
push 0
push ecx
mov dword [esp + 0x1c], eax
mov esi, edx
mov byte [esp + 0x20], 0
call fcn.00a7ffb0
add esp, 0xc
test ebx, ebx
je 0x97937d
mov byte [ebx], 0
test edi, edi
jne 0x979389
movzx edi, word [esp + 0x120]
test ebp, ebp
jne 0x979395
movzx ebp, word [esp + 0x124]
push edi
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x9793e5
test ebx, ebx
je 0x9793cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x100
mov edi, eax
lea esi, [esp + 0x18]
call fcn.00960a40
add esp, 4
mov edx, esi
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.00a78f21
add esp, 0x10c
ret
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x979432
test ebx, ebx
je 0x979418
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x100
mov edi, eax
lea esi, [esp + 0x18]
call fcn.00960a40
add esp, 4
mov eax, esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.00a78f21
add esp, 0x10c
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
jne 0x979480
test ebx, ebx
je 0x979466
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x100
mov edi, eax
lea esi, [esp + 0x18]
call fcn.00960a40
add esp, 4
mov ecx, esi
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.00a78f21
add esp, 0x10c
ret
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x9794b0
push 0
lea edx, [esp + 0x10]
push edx
push esi
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x9793f1
cmp dword [esp + 0xc], esi
jne 0x97943f
mov ecx, dword [esp + 0x114]
pop edi
pop esi
pop ebp
xor ecx, esp
mov eax, 1
call fcn.00a78f21
add esp, 0x10c
ret
Function at 0x97a5b0
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0xa4
mov eax, dword [0xb196ec]
xor eax, esp
mov dword [esp + 0xa0], eax
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.0097a560
cmp eax, 1
jne 0x97a5d8
mov al, 1
jmp 0x97a630
call fcn.0097a4d0
mov edi, dword [sym.imp.USER32.dll_GetForegroundWindow]
call edi
cmp eax, esi
je 0x97a5d4
push 0x90
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.00a7ffb0
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x24]
cmp eax, 2
jne 0x97a649
cmp dword [esp + 0x18], 4
ja 0x97a660
call fcn.0097a4d0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, esi
sete al
mov ecx, dword [esp + 0xb0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00a78f21
add esp, 0xa4
ret
cmp eax, 1
jne 0x97a620
mov eax, dword [esp + 0x18]
cmp eax, 4
ja 0x97a660
jne 0x97a620
cmp dword [esp + 0x1c], 0
jbe 0x97a620
push 0
call edi
mov ebx, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call ebx
push 0
push esi
mov edi, eax
call ebx
mov ebp, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
mov ebx, eax
push edi
push ebx
call ebp
test eax, eax
je 0x97a6a0
call fcn.0097a4d0
push 0
push edi
push ebx
call ebp
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, esi
sete al
test al, al
jne 0x97a625
call fcn.0097a560
mov edi, eax
cmp edi, 1
je 0x97a625
call fcn.00968b30
test eax, eax
je 0x97a6c2
cmp edi, 1
jbe 0x97a625
call fcn.0097a530
xor ecx, ecx
call fcn.009790d0
test eax, eax
jne 0x97a625
mov edi, dword [sym.imp.USER32.dll_SystemParametersInfoA]
push eax
lea edx, [esp + 0x14]
push edx
push eax
push 0x2000
call edi
push 3
push 0
push 0
push 0x2001
call edi
call fcn.0097a4d0
mov eax, dword [esp + 0x10]
push 3
push eax
push 0
push 0x2001
call edi
jmp 0x97a625

Function at 0x97a760
Capabilities:
Check for time delay via gettickcount
Terminate process

Disassembly:
push ecx
push ebx
mov ebx, 0x103
push edi
mov dword [esp + 8], ebx
test esi, esi
je 0x97a7a6
mov edi, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
lea eax, [esp + 8]
push eax
push esi
call edi
cmp dword [esp + 8], ebx
je 0x97a7a6
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea ecx, [esp + 8]
push ecx
push esi
mov dword [esp + 0x10], ebx
call edi
xor eax, eax
cmp dword [esp + 8], ebx
pop edi
setne al
pop ebx
pop ecx
ret
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0
push esi
call ebp
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ebx, eax
call edi
sub eax, ebx
cmp eax, 0x7d0
jae 0x97a80a
jmp 0x97a7d0
mov dword [esp + 0xc], 0x103
test esi, esi
je 0x97a7f2
lea edx, [esp + 0xc]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [esp + 0xc], 0x103
jne 0x97a811
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push esi
call ebp
call edi
sub eax, ebx
cmp eax, 0x7d0
jb 0x97a7d0
pop ebp
pop edi
xor eax, eax
pop ebx
pop ecx
ret
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
pop ebp
pop edi
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x97a830
Capabilities:
Enumerate gui resources

Disassembly:
push ecx
push esi
push edi
push 0x100401
call fcn.0097af50
mov esi, eax
add esp, 8
mov dword [esp + 4], esi
test esi, esi
jne 0x97a84f
pop esi
pop ecx
ret 4
push edi
push 0x97a720
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x97a891
xor eax, eax
call fcn.0097aa80
call fcn.0097a760
mov esi, eax
neg esi
lea ecx, [esp + 4]
sbb esi, esi
push ecx
and esi, 2
call fcn.00985290
mov eax, esi
pop esi
pop ecx
ret 4
lea ecx, [esp + 4]
push ecx
mov esi, 1
call fcn.00985290
mov eax, esi
pop esi
pop ecx
ret 4
Function at 0x97add0
Capabilities:
Acquire debug privileges
Check os version

Disassembly:
sub esp, 0xc8
mov eax, dword [0xb196ec]
xor eax, esp
mov dword [esp + 0xc4], eax
push ebx
push ebp
mov ebp, dword [esp + 0xd4]
push esi
push edi
push str.OpenThread
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x97aee8
push ebp
push 0
push 0x40
call ebx
mov esi, eax
test esi, esi
jne 0x97af2e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x97af2e
push 0x90
lea eax, [esp + 0x40]
push esi
push eax
call fcn.00a7ffb0
add esp, 0xc
lea ecx, [esp + 0x38]
push ecx
mov dword [esp + 0x3c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x48], 2
jne 0x97aee8
lea edx, [esp + 0x10]
push edx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push 0x28
mov dword [esp + 0x20], 0x10
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
push eax
call edi
test eax, eax
jne 0x97ae98
lea eax, [esp + 0x10]
push eax
push 0
push 0x28
call esi
push eax
call edi
test eax, eax
je 0x97aee8
lea ecx, [esp + 0x1c]
push ecx
push str.SeDebugPrivilege
push 0
mov dword [esp + 0x24], 1
mov dword [esp + 0x30], 2
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov edi, dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x2c]
push eax
push 0x10
lea ecx, [esp + 0x24]
push ecx
push 0
push edx
call edi
test eax, eax
jne 0x97aeec
lea eax, [esp + 0x10]
push eax
call fcn.00985290
xor eax, eax
jmp 0x97af30
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x514
jne 0x97af07
lea ecx, [esp + 0x10]
push ecx
call fcn.00985290
xor eax, eax
jmp 0x97af30
push ebp
push 0
push 0x40
call ebx
push 0
push 0
push 0x10
lea edx, [esp + 0x34]
push edx
mov esi, eax
mov eax, dword [esp + 0x20]
push 0
push eax
call edi
lea ecx, [esp + 0x10]
push ecx
call fcn.00985290
mov eax, esi
mov ecx, dword [esp + 0xd4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00a78f21
add esp, 0xc8
ret
Function at 0x97af50
Capabilities:
Acquire debug privileges
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xcc
mov eax, dword [0xb196ec]
xor eax, esp
mov dword [esp + 0xc8], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
cmp eax, 4
jbe 0x97b078
cmp eax, 0xffffffff
je 0x97b078
push eax
mov eax, dword [ebp + 8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x97b110
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov ebx, eax
mov dword [esp + 0x10], ebx
cmp ebx, 5
jne 0x97b0e6
push 0x90
lea ecx, [esp + 0x40]
push esi
push ecx
call fcn.00a7ffb0
add esp, 0xc
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x3c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov esi, 2
cmp dword [esp + 0x48], esi
je 0x97afe7
push ebx
jmp 0x97b072
lea eax, [esp + 0xc]
push eax
push 0
push 0x28
mov dword [esp + 0x20], 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x97b021
lea ecx, [esp + 0xc]
push ecx
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x97b078
lea edx, [esp + 0x1c]
push edx
push str.SeDebugPrivilege
push 0
mov dword [esp + 0x24], 1
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov ebx, dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x2c]
push ecx
push 0x10
lea edx, [esp + 0x24]
push edx
push 0
push eax
call ebx
test eax, eax
jne 0x97b08f
call edi
lea ecx, [esp + 0xc]
mov esi, eax
push ecx
call fcn.00985290
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.00a78f21
mov esp, ebp
pop ebp
ret
call edi
cmp eax, 0x514
jne 0x97b0a3
call edi
lea edx, [esp + 0xc]
mov esi, eax
push edx
jmp 0x97b06c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
call edi
push 0
push 0
push 0x10
lea edx, [esp + 0x34]
push edx
mov edi, eax
mov eax, dword [esp + 0x1c]
push 0
push eax
call ebx
lea ecx, [esp + 0xc]
push ecx
call fcn.00985290
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
jne 0x97b110
mov ebx, dword [esp + 0x10]
call fcn.00968d70
test eax, eax
je 0x97b110
cmp ebx, 5
jne 0x97b110
test dword [ebp + 8], 0xfffdfbef
jne 0x97b110
mov edx, dword [ebp + 0xc]
push edx
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov ecx, dword [esp + 0xd4]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.00a78f21
mov esp, ebp
pop ebp
ret
Function at 0x97c640
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x100c
call fcn.00a91950
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edi, edi
mov ecx, str.PSAPI.DLL
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], edi
call fcn.0094c620
mov esi, eax
cmp esi, edi
je 0x97c68c
push str.EnumProcesses
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
cmp ebx, edi
jne 0x97c697
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, str.SeDebugPrivilege
call fcn.0095fcc0
lea eax, [esp + 0x10]
push eax
push 0x1000
lea ecx, [esp + 0x20]
push ecx
call ebx
mov esi, dword [esp + 0x10]
shr esi, 2
cmp esi, edi
jle 0x97c6e2
lea ecx, [ecx]
mov eax, dword [esp + edi*4 + 0x18]
cmp eax, 2
jbe 0x97c6dd
cmp eax, dword [esp + 0x14]
je 0x97c6dd
mov edx, dword [ebp + 8]
push edx
push eax
call fcn.0097c6f0
or dword [esp + 0xc], eax
inc edi
cmp edi, esi
jl 0x97c6c0
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x97f0d0
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
sub esp, 8
push ebp
mov ebp, dword [esp + 0x10]
push edi
mov dword [esp + 0x14], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 1
test esi, esi
je 0x97f0f8
mov byte [esi], 0
mov eax, dword [esp + 0x18]
mov dword [ebp], 0
test eax, eax
je 0x97f10d
mov dword [eax], 0xffffffff
lea eax, [esp + 0x14]
push eax
push 0xaefe14
push 1
push 0
push 0xaefe04
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
test edi, edi
jge 0x97f14b
test esi, esi
je 0x97f20c
push edi
push str.Unable_To_Create_An_Instance_Of_INetFwMgr._Reason__x
push esi
call fcn.00a78f30
add esp, 0xc
mov eax, edi
pop edi
pop ebp
add esp, 8
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 8]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov edi, eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
test edi, edi
jge 0x97f18d
test esi, esi
je 0x97f20c
push edi
push str.Unable_To_Get_The_Local_Firewall_Policy._Reason__x
push esi
call fcn.00a78f30
add esp, 0xc
mov eax, edi
pop edi
pop ebp
add esp, 8
ret
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push ebp
push eax
call edx
mov edi, eax
test edi, edi
jge 0x97f1ac
test esi, esi
je 0x97f200
push edi
push str.Failed_To_Get_The_Current_Firewall_Profile._Reason__x
jmp 0x97f1f7
mov eax, dword [ebp]
test eax, eax
je 0x97f200
mov ebp, dword [esp + 0x18]
test ebp, ebp
je 0x97f200
mov ecx, dword [eax]
lea edx, [esp + 0xc]
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
test eax, eax
jne 0x97f1ed
mov eax, dword [esp + 8]
xor ecx, ecx
cmp word [esp + 0xc], cx
push eax
setne cl
mov dword [ebp], ecx
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
mov eax, edi
pop edi
pop ebp
add esp, 8
ret
test esi, esi
je 0x97f200
push eax
push str.Unable_to_get_FW_Enabled_Status__Reason__x
push esi
call fcn.00a78f30
add esp, 0xc
mov eax, dword [esp + 8]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, edi
pop edi
pop ebp
add esp, 8
ret
Function at 0x97f6a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push esi
mov ebx, 0x100
push 1
push ebx
mov dword [esp + 0x10], ebx
call fcn.00a7b9f8
mov esi, eax
add esp, 8
test esi, esi
je 0x97f75e
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
lea eax, [esp + 0x10]
push eax
push esi
push ecx
push 0
push str.ForceArchiveScanOnFiles
push edx
call ebp
mov edi, eax
cmp edi, 0xea
jne 0x97f73a
lea esp, [esp]
add ebx, 0x100
push ebx
push esi
call fcn.00a7b398
add esp, 8
test eax, eax
je 0x97f72f
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
push ecx
push eax
push edx
push 0
mov esi, eax
mov eax, dword [esp + 0x28]
push str.ForceArchiveScanOnFiles
push eax
mov dword [esp + 0x28], ebx
call ebp
mov edi, eax
cmp edi, 0xea
je 0x97f6f0
jmp 0x97f73a
push esi
call fcn.00a78fec
add esp, 4
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
je 0x97f75a
test edi, edi
je 0x97f75a
push esi
call fcn.00a78fec
add esp, 4
pop edi
pop ebp
pop esi
xor eax, eax
pop ebx
pop ecx
ret
pop edi
mov eax, esi
pop ebp
pop esi
pop ebx
pop ecx
ret