joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45d4a0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x638
mov eax, dword [0x5fb61c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor ecx, ecx
push 0x208
push ecx
lea edx, [ebp - 0x626]
push edx
mov dword [ebp - 0x638], eax
mov word [ebp - 0x628], cx
call fcn.005336c0
xor eax, eax
push 0x208
push eax
lea ecx, [ebp - 0x41a]
push ecx
xor edi, edi
mov word [ebp - 0x41c], ax
call fcn.005336c0
xor edx, edx
push 0x208
push edx
lea eax, [ebp - 0x20e]
push eax
mov word [ebp - 0x210], dx
call fcn.005336c0
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 0x24
lea ecx, [ebp - 0x630]
push ecx
push 1
push edi
push edi
push 0x80000003
mov dword [ebp - 0x634], 0x104
call esi
test eax, eax
je 0x45d558
lea edx, [ebp - 0x630]
push edx
push 1
push edi
push edi
push 0x80000003
call esi
test eax, eax
jne 0x45d6c1
mov edx, dword [ebp - 0x630]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x634]
push eax
lea ecx, [ebp - 0x41c]
push ecx
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x45d6b4
jmp 0x45d590
lea eax, [ebp - 0x41c]
push eax
lea ecx, [ebp - 0x210]
push 0xffffffffffffffff
push ecx
inc edi
call fcn.005343d0
push 0x592324
lea edx, [ebp - 0x210]
push 0xffffffffffffffff
push edx
call fcn.005343d0
push ebx
lea eax, [ebp - 0x210]
push 0xffffffffffffffff
push eax
call fcn.00534500
add esp, 0x24
lea ecx, [ebp - 0x62c]
push ecx
push 0xf003f
push 0
lea edx, [ebp - 0x210]
push edx
push 0x80000003
call esi
test eax, eax
je 0x45d60b
lea eax, [ebp - 0x62c]
push eax
push 0xf003f
push 0
lea ecx, [ebp - 0x210]
push ecx
push 0x80000003
call esi
test eax, eax
jne 0x45d67e
mov ecx, dword [ebp - 0x638]
mov eax, dword [ecx + 4]
sub eax, 0
je 0x45d65a
dec eax
jne 0x45d671
mov eax, dword [ecx]
test eax, eax
js 0x45d671
cmp eax, 1
jle 0x45d643
cmp eax, 2
jne 0x45d671
mov edx, dword [ebp - 0x62c]
push ecx
lea ecx, [ebp - 0x628]
call fcn.0045cf00
add esp, 4
jmp 0x45d671
mov edx, dword [ebp - 0x62c]
push ecx
lea ecx, [ebp - 0x628]
call fcn.0045caf0
add esp, 4
jmp 0x45d671
mov eax, dword [ebp - 0x62c]
push ecx
lea edx, [ebp - 0x628]
push edx
push eax
call fcn.0045c1d0
add esp, 0xc
mov ecx, dword [ebp - 0x62c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x630]
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x634]
push edx
lea eax, [ebp - 0x41c]
push eax
push edi
push ecx
mov dword [ebp - 0x634], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x45d590
mov edx, dword [ebp - 0x630]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005332ca
mov esp, ebp
pop ebp
ret
Function at 0x45dcc0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57bc79
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5fb61c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
xor esi, esi
mov dword [ebp - 0x14], esi
mov eax, dword [0x5fcb00]
mov edx, dword [eax + 0xc]
mov ecx, 0x5fcb00
mov dword [ebp - 4], esi
call edx
mov ecx, dword [ebp + 8]
add eax, 0x10
mov dword [ecx], eax
xor ecx, ecx
mov edi, 0x1000
mov eax, edi
mov edx, 2
mul edx
seto cl
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], 1
neg ecx
or ecx, eax
push ecx
call fcn.00534575
push 0x2000
mov esi, eax
push 0
push esi
call fcn.005336c0
mov eax, dword [ebx]
mov edx, dword [ebp + 0x10]
mov edx, dword [edx]
mov ecx, dword [ebp + 0x14]
mov ecx, dword [ecx]
add esp, 0x10
push eax
push edi
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
push esi
push ecx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, 0xffe
jne 0x45ddcf
lea esp, [esp]
push esi
call fcn.00534304
add edi, 0x1000
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00534575
mov esi, eax
lea eax, [edi + edi]
push eax
push 0
push esi
call fcn.005336c0
mov eax, dword [ebx]
mov edx, dword [ebp + 0x10]
mov edx, dword [edx]
mov ecx, dword [ebp + 0x14]
mov ecx, dword [ecx]
add esp, 0x14
push eax
push edi
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
push esi
push ecx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [edi - 2]
cmp eax, ecx
je 0x45dd70
test esi, esi
jne 0x45ddd7
xor eax, eax
jmp 0x45ddef
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45dde0
sub eax, edx
sar eax, 1
mov edi, dword [ebp + 8]
push eax
push esi
mov ecx, edi
call fcn.00422120
push esi
call int.0042bfd0
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x45ea60
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x5fb61c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x5ff3cd], 0
jne 0x45eaec
push 0x118
lea eax, [ebp - 0x11c]
push 0
push eax
mov byte [0x5ff3cd], 1
mov dword [ebp - 0x120], 0x11c
call fcn.005336c0
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 5
jne 0x45ead7
cmp dword [ebp - 0x118], 1
jne 0x45ead7
mov al, 1
mov byte [0x5ff3cc], al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005332ca
mov esp, ebp
pop ebp
ret
xor al, al
mov byte [0x5ff3cc], al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005332ca
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, byte [0x5ff3cc]
xor ecx, ebp
call fcn.005332ca
mov esp, ebp
pop ebp
ret

Function at 0x4613a0
Capabilities:
Patch process command line

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57c191
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x5fb61c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], esi
mov word [edi], ax
mov ebx, 1
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp + 0xc]
push ecx
push esi
push 0x410
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x46140b
mov esi, eax
mov dword [ebp - 0x14], esi
cmp eax, 0xffffffff
jne 0x46140d
xor bl, bl
push str.NtQueryInformationProcess
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push 0x18
lea edx, [ebp - 0x38]
push edx
push 0
push esi
call eax
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x4614d5
test bl, bl
je 0x4614d5
mov ebx, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push 0
push 4
lea ecx, [ebp - 0x18]
push ecx
add eax, 0x10
push eax
push esi
call ebx
test eax, eax
je 0x4614d5
mov eax, dword [ebp - 0x18]
push 0
push 8
lea edx, [ebp - 0x20]
push edx
add eax, 0x40
push eax
push esi
call ebx
test eax, eax
je 0x4614d5
movzx ebx, word [ebp - 0x20]
add ebx, 2
push ebx
call fcn.005331fc
push ebx
mov edi, eax
push 0
push edi
call fcn.005336c0
movzx ecx, word [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
add esp, 0x10
push 0
push ecx
push edi
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x4614c9
mov eax, edi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4614b0
mov ecx, dword [ebp + 8]
sub eax, edx
sar eax, 1
push eax
push edi
call fcn.00437a20
push edi
call fcn.00533290
mov edi, dword [ebp + 8]
add esp, 4
test esi, esi
je 0x4614e5
cmp esi, 0xffffffff
je 0x4614e5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
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 0x461810
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57c279
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x5fb61c]
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, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], esi
mov eax, 1
mov dword [ebp - 4], eax
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [edi + 8], esi
cmp dword [ebp + 0x20], 8
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], esi
jae 0x461868
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x30]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x34], eax
cmp eax, esi
je 0x4618f0
xor ebx, ebx
cmp dword [ebp - 0x30], esi
jle 0x4618e9
mov ecx, dword [eax + ebx*4]
cmp ecx, esi
je 0x4618e0
xor edx, edx
mov eax, ecx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], dx
lea esi, [eax + 2]
lea ecx, [ecx]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4618a0
sub eax, esi
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00437a20
lea eax, [ebp - 0x2c]
push eax
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.0043de20
cmp dword [ebp - 0x18], 8
mov byte [ebp - 4], 1
jb 0x4618de
mov ecx, dword [ebp - 0x2c]
push ecx
call int.0042bfd0
add esp, 4
xor esi, esi
mov eax, dword [ebp - 0x34]
inc ebx
cmp ebx, dword [ebp - 0x30]
jl 0x461881
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp + 0x20], 8
jb 0x461902
mov edx, dword [ebp + 0xc]
push edx
call int.0042bfd0
add esp, 4
mov eax, edi
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.005332ca
mov esp, ebp
pop ebp
ret
Function at 0x4686c0
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], ebx
cmp esi, ebx
jne 0x4686f6
mov eax, dword [0x5ff0bc]
cmp eax, ebx
je 0x4686ea
mov esi, dword [eax + 4]
cmp esi, ebx
jne 0x4686f6
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
cmp esi, ebx
je 0x46871a
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp esi, eax
je 0x46871a
push esi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x46871a
push ebx
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 8], 1
mov dword [edi + 0x2fc], ebx
mov ebx, dword [ebp + 0xc]
push ebx
push esi
mov ecx, edi
call fcn.00467a70
mov dword [ebp + 8], eax
test eax, eax
jne 0x468747
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [0x5ff0bc]
mov dword [ebp + 0xc], 0
test ecx, ecx
je 0x468761
mov edx, dword [ecx + 4]
mov dword [ebp + 0xc], edx
mov dword [ecx + 4], eax
test ebx, ebx
jne 0x46876e
push esi
lea ecx, [edi + 4]
call fcn.00445e50
cmp dword [edi + 0x2f8], 0
je 0x4687e0
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push 0
push 0
push 0x2001
mov ebx, eax
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov eax, dword [ebp + 8]
push 0x43
push 0
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp edi, ebx
je 0x4687c5
push 1
push edi
push ebx
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp edi, ebx
je 0x4687dd
push 0
push edi
push ebx
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov edi, dword [ebp - 4]
mov ecx, edi
call fcn.00463570
mov edx, dword [edi + 4]
push 0x97
push 0
push 0
push 0
push 0
push 0
push edx
mov dword [edi + 0x2fc], 0
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp dword [ebp - 8], 0
je 0x46882f
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
test esi, esi
je 0x46882f
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [edi + 4]
jne 0x46882f
push esi
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [0x5ff0bc]
test eax, eax
je 0x46883e
mov ecx, dword [ebp + 0xc]
mov dword [eax + 4], ecx
mov edx, dword [edi + 4]
push edx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [edi + 0x28]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x46b040
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5dc270
push 0x533c40
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x5fb61c]
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
xor esi, esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x2c], esi
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], esi
lea eax, [ebp - 0x30]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
cmp eax, esi
je 0x46b0f1
lea ecx, [ebp - 0x3c]
push ecx
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
cmp eax, esi
je 0x46b0f1
mov edi, 1
mov dword [ebp - 0x2c], edi
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 2
push esi
push esi
push esi
lea ecx, [ebp - 0x2c]
push ecx
push esi
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
cmp eax, esi
je 0x46b0f1
mov dword [ebp - 0x34], edi
mov dword [ebp - 4], 0xfffffffe
call fcn.0046b11e
mov eax, dword [ebp - 0x34]
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.005332ca
mov esp, ebp
pop ebp
ret

Function at 0x46b1d0
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5fb61c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [ebp - 0xc]
push ecx
mov dword [ebp - 0xc], ebx
mov word [ebp - 8], 0x500
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
cmp eax, ebx
jne 0x46b224
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005332ca
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x46b23a
mov dword [ebp - 0x10], ebx
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
xor ecx, ebp
pop ebx
call fcn.005332ca
mov esp, ebp
pop ebp
ret
Function at 0x46b260
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x5fb61c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x5ff510], 0
jne 0x46b2d0
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
mov dword [ebp - 0x118], 0x114
call fcn.005336c0
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 6
mov dword [0x5ff510], 1
sbb eax, eax
inc eax
mov dword [0x5ff50c], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005332ca
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [0x5ff50c]
xor ecx, ebp
call fcn.005332ca
mov esp, ebp
pop ebp
ret

Function at 0x46b2f0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 4]
push eax
push 0
push 0
push 1
push esi
mov dword [ebp - 4], 0
call edi
mov ecx, dword [ebp - 4]
push ecx
call fcn.00534575
add esp, 4
mov ebx, eax
mov eax, dword [ebp - 4]
lea edx, [ebp - 4]
push edx
push eax
push ebx
push 1
push esi
call edi
test eax, eax
je 0x46b3d8
mov eax, dword [ebx]
mov dword [ebp - 8], eax
test eax, eax
je 0x46b3d8
push eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x46b3d8
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 4]
push ecx
push 0
push 0
push 1
push edx
mov dword [ebp - 4], 0
call edi
mov eax, dword [ebp - 4]
push eax
call fcn.00534575
mov edx, dword [ebp - 4]
add esp, 4
lea ecx, [ebp - 4]
push ecx
push edx
mov esi, eax
mov eax, dword [ebp + 0xc]
push esi
push 1
push eax
call edi
test eax, eax
jne 0x46b3a2
push esi
call fcn.00534304
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [esi]
test edi, edi
je 0x46b390
push edi
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x46b390
mov ecx, dword [ebp - 8]
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
push ebx
mov edi, eax
call fcn.00534304
push esi
call fcn.00534304
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call fcn.00534304
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46b3f0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
mov eax, dword [0x5fb61c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
call fcn.005336c0
push 0x228
lea ecx, [ebp - 0x458]
push 0
push ecx
call fcn.005336c0
add esp, 0x18
mov eax, 0x22c
push edi
push 2
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x45c], eax
mov dword [ebp - 0x454], 0xffffffff
xor ebx, ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x46b4b1
lea edx, [ebp - 0x230]
push edx
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x46b480
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [ebp - 0x230]
jmp 0x46b4b7
cmp dword [ebp - 0x228], edi
je 0x46b49b
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x46b480
jmp 0x46b4a0
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [ebp - 0x230]
test ebx, ebx
jne 0x46b4b7
lea esi, [ebp - 0x45c]
mov eax, dword [ebp + 8]
mov ecx, 0x8b
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005332ca
mov esp, ebp
pop ebp
ret

Function at 0x46b980
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5fb61c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
test ebx, ebx
je 0x46ba1e
mov eax, dword [esi]
push edi
push 0x24
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x46ba16
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov eax, dword [ebp - 0x1c]
cmp eax, 4
je 0x46b9d8
cmp eax, 7
jne 0x46ba0f
lea ecx, [ebp - 0x20]
push ecx
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x46ba0f
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
lea edx, [ebp - 0x20]
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x1c], 1
je 0x46ba0c
push 0x64
call ebx
inc esi
cmp esi, 0x14
jl 0x46b9f1
mov ebx, dword [ebp - 0x24]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.005332ca
mov esp, ebp
pop ebp
ret
Function at 0x46dcd0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d058
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5fb61c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
xor edi, edi
mov ecx, ebx
mov dword [ebp - 0x18], edi
call fcn.00436aa0
mov eax, dword [ebp + 8]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], edi
cmp esi, edi
je 0x46ddf0
cmp esi, 0xffffffff
je 0x46ddf0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x20], eax
cmp eax, 0x200000
ja 0x46dde4
lea ecx, [eax + 1]
mov dword [ebp - 0x14], edi
mov esi, eax
cmp ecx, edi
jge 0x46dd66
push 0x80070057
call fcn.00421960
mov eax, dword [ebx]
mov edx, 1
sub edx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, ecx
or edx, eax
jge 0x46dd81
push ecx
mov ecx, ebx
call fcn.00436cc0
mov edi, dword [ebx]
mov dword [ebp - 0x1c], edi
mov edx, dword [ebp - 0x10]
push 0
lea ecx, [ebp - 0x14]
push ecx
push esi
push edi
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46dde1
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x46dde1
add edi, eax
sub esi, eax
jne 0x46dd86
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov byte [eax + ecx], 0
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
test eax, eax
je 0x46ddca
push ecx
push eax
call fcn.00535558
add esp, 8
test eax, eax
js 0x46dd5c
mov ecx, dword [ebx]
cmp eax, dword [ecx - 8]
jg 0x46dd5c
mov dword [ecx - 0xc], eax
mov edx, dword [ebx]
mov byte [eax + edx], 0
mov dword [ebp - 0x18], 1
mov esi, dword [ebp - 0x10]
cmp esi, 0xffffffff
je 0x46ddf0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret