joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47afe0
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c407b
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push esi
push edi
push ecx
lea edi, [ebp - 0x38]
mov ecx, 0xb
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x51197c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
push 0x4d03a0
lea ecx, [ebp - 0x18]
call fcn.0041abf0
mov dword [ebp - 4], 0
push 0x27e
lea ecx, [ebp - 0x18]
call fcn.0041bcd0
push 0x4d03a4
lea ecx, [ebp - 0x24]
call fcn.0041abf0
mov byte [ebp - 4], 1
push 0x4d03a8
lea ecx, [ebp - 0x30]
call fcn.0041abf0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x1b4]
push ecx
lea ecx, [ebp - 0x24]
call fcn.0041bcd0
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x7c], 2
jne 0x47b186
mov esi, esp
push 0x10044
mov edi, esp
lea ecx, [ebp - 0x24]
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
cmp edi, esp
call fcn.004b81e1
push eax
mov edi, esp
lea ecx, [ebp - 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
cmp edi, esp
call fcn.004b81e1
push eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x1b8]
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp esi, esp
call fcn.004b81e1
cmp eax, 6
jne 0x47b186
push 0
push 0x10e
push 0x110
push 0
call fcn.004642b0
add esp, 0x10
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x47b138
mov esi, esp
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
cmp esi, esp
call fcn.004b81e1
test eax, eax
jne 0x47b136
push 0x10e
lea ecx, [ebp - 0x18]
call fcn.0041bcd0
push 0
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x1b8]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x1b4]
push edx
push 0xc0000000
lea eax, [ebp - 0x18]
push eax
push 0
call fcn.0046a510
add esp, 0x18
jmp 0x47b186
push 0x10e
lea ecx, [ebp - 0x30]
call fcn.0041bcd0
mov esi, esp
push 0x30
mov edi, esp
lea ecx, [ebp - 0x24]
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
cmp edi, esp
call fcn.004b81e1
push eax
mov edi, esp
lea ecx, [ebp - 0x30]
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
cmp edi, esp
call fcn.004b81e1
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x1b8]
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp esi, esp
call fcn.004b81e1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.004095c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.004095c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004095c0
push edx
mov ecx, ebp
push eax
lea edx, [0x47b1dc]
call fcn.004b8204
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x38
cmp ebp, esp
call fcn.004b81e1
mov esp, ebp
pop ebp
ret
Function at 0x47b230
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c40ae
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push esi
push edi
push ecx
lea edi, [ebp - 0x3c]
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x51197c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
push 0x4d03ac
lea ecx, [ebp - 0x18]
call fcn.0041abf0
mov dword [ebp - 4], 0
push 0x4d03b0
lea ecx, [ebp - 0x24]
call fcn.0041abf0
mov byte [ebp - 4], 1
push 0x4d03b4
lea ecx, [ebp - 0x30]
call fcn.0041abf0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x1b4]
push ecx
lea ecx, [ebp - 0x24]
call fcn.0041bcd0
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x7c], 2
jne 0x47b418
cmp dword [ebp + 0xc], 0
je 0x47b34b
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x18]
call fcn.0041bcd0
mov esi, esp
push 0x10044
mov edi, esp
lea ecx, [ebp - 0x24]
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
cmp edi, esp
call fcn.004b81e1
push eax
mov edi, esp
lea ecx, [ebp - 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
cmp edi, esp
call fcn.004b81e1
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x1b8]
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp esi, esp
call fcn.004b81e1
cmp eax, 7
jne 0x47b34b
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.004095c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.004095c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004095c0
jmp 0x47b43f
push 0
push 0x10e
push 0x110
push 0
call fcn.004642b0
add esp, 0x10
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x47b3ca
xor eax, eax
cmp dword [ebp + 8], 0
setne al
add eax, 1
mov dword [ebp - 0x3c], eax
mov esi, esp
push 0
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
cmp esi, esp
call fcn.004b81e1
test eax, eax
jne 0x47b3c8
push 0x10e
lea ecx, [ebp - 0x18]
call fcn.0041bcd0
push 0
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x1b8]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x1b4]
push edx
push 0xc0000000
lea eax, [ebp - 0x18]
push eax
push 0
call fcn.0046a510
add esp, 0x18
jmp 0x47b418
push 0x10e
lea ecx, [ebp - 0x30]
call fcn.0041bcd0
mov esi, esp
push 0x30
mov edi, esp
lea ecx, [ebp - 0x24]
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
cmp edi, esp
call fcn.004b81e1
push eax
mov edi, esp
lea ecx, [ebp - 0x30]
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
cmp edi, esp
call fcn.004b81e1
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x1b8]
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp esi, esp
call fcn.004b81e1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.004095c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.004095c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004095c0
push edx
mov ecx, ebp
push eax
lea edx, [0x47b470]
call fcn.004b8204
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x3c
cmp ebp, esp
call fcn.004b81e1
mov esp, ebp
pop ebp
ret 8
Function at 0x482cc0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov eax, 0xcccccccc
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 4], ecx
xor eax, eax
jne 0x482ce7
xor ecx, ecx
jne 0x482ce7
mov dword [ebp - 0x10], 4
mov esi, esp
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp esi, esp
call fcn.004b81e1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x482d2b
mov eax, dword [ebp - 8]
jmp 0x482d3a
cmp dword [ebp - 0x1c], 4
je 0x482d38
mov eax, 0xd
jmp 0x482d3a
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x482d5c]
call fcn.004b8204
pop eax
pop edx
pop esi
add esp, 0x20
cmp ebp, esp
call fcn.004b81e1
mov esp, ebp
pop ebp
ret 8

Function at 0x48be00
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov dword [ebp - 4], 0xcccccccc
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0x100
jne 0x48be63
mov ecx, dword [ebp + 8]
cmp dword [ecx + 8], 0x74
jne 0x48be63
mov esi, esp
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
cmp esi, esp
call fcn.004b81e1
movsx edx, ax
and edx, 0x8000
jne 0x48be63
mov esi, esp
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
cmp esi, esp
call fcn.004b81e1
movsx eax, ax
and eax, 0x8000
jne 0x48be63
mov ecx, dword [ebp - 4]
call fcn.0048bab0
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 4]
call sub.MFC80U.DLL_Ordinal_5199
pop esi
add esp, 4
cmp ebp, esp
call fcn.004b81e1
mov esp, ebp
pop ebp
ret 4
Function at 0x495fd0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov dword [ebp - 4], 0xcccccccc
mov dword [ebp - 4], ecx
xor eax, eax
jne 0x495fdf
xor ecx, ecx
jne 0x495fdf
mov esi, esp
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp esi, esp
call fcn.004b81e1
pop esi
add esp, 4
cmp ebp, esp
call fcn.004b81e1
mov esp, ebp
pop ebp
ret 4

Function at 0x496020
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov dword [ebp - 4], 0xcccccccc
mov dword [ebp - 4], ecx
xor eax, eax
jne 0x49602f
xor ecx, ecx
jne 0x49602f
mov esi, esp
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp esi, esp
call fcn.004b81e1
pop esi
add esp, 4
cmp ebp, esp
call fcn.004b81e1
mov esp, ebp
pop ebp
ret 4

Function at 0x496150
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
push esi
push edi
push ecx
lea edi, [ebp - 0x248]
mov ecx, 0x92
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x51197c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
lea ecx, [ebp - 0x10]
call fcn.004665a0
push 0x2001f
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
push edx
lea ecx, [ebp - 0x10]
call fcn.00466650
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4961c0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x240], eax
lea ecx, [ebp - 0x10]
call fcn.004665c0
mov eax, dword [ebp - 0x240]
jmp 0x496257
mov dword [ebp - 0x30], 0x100
mov esi, esp
lea ecx, [ebp - 0x24]
push ecx
push 0
push 0
push 0
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x238]
push eax
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp esi, esp
call fcn.004b81e1
test eax, eax
jne 0x49622f
lea edx, [ebp - 0x238]
push edx
lea ecx, [ebp - 0x10]
call fcn.00496150
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x496226
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x244], eax
lea ecx, [ebp - 0x10]
call fcn.004665c0
mov eax, dword [ebp - 0x244]
jmp 0x496257
mov dword [ebp - 0x30], 0x100
jmp 0x4961c7
lea ecx, [ebp - 0x10]
call fcn.004665f0
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 8]
call fcn.00495fd0
mov dword [ebp - 0x248], eax
lea ecx, [ebp - 0x10]
call fcn.004665c0
mov eax, dword [ebp - 0x248]
push edx
mov ecx, ebp
push eax
lea edx, [0x496288]
call fcn.004b8204
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b81d2
add esp, 0x248
cmp ebp, esp
call fcn.004b81e1
mov esp, ebp
pop ebp
ret 4
Function at 0x496970
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov dword [ebp - 4], 0xcccccccc
mov dword [ebp - 4], ecx
xor eax, eax
jne 0x49697f
xor ecx, ecx
jne 0x49697f
mov esi, esp
push 4
lea edx, [ebp + 0xc]
push edx
push 4
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp esi, esp
call fcn.004b81e1
pop esi
add esp, 4
cmp ebp, esp
call fcn.004b81e1
mov esp, ebp
pop ebp
ret 8

Function at 0x4969c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov dword [ebp - 8], 0xcccccccc
mov dword [ebp - 4], 0xcccccccc
mov dword [ebp - 4], ecx
xor eax, eax
jne 0x4969d8
xor ecx, ecx
jne 0x4969d8
xor edx, edx
cmp dword [ebp + 0xc], 0
setne dl
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
jne 0x4969fc
push 0x80004005
call fcn.0040cce0
xor eax, eax
jne 0x4969e0
mov esi, esp
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp esi, esp
call fcn.004b81e1
lea edx, [eax + eax + 2]
mov esi, esp
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp esi, esp
call fcn.004b81e1
pop esi
add esp, 8
cmp ebp, esp
call fcn.004b81e1
mov esp, ebp
pop ebp
ret 0xc

Function at 0x496a50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov eax, 0xcccccccc
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 4], ecx
xor eax, eax
jne 0x496a6e
xor ecx, ecx
jne 0x496a6e
xor edx, edx
cmp dword [ebp + 0xc], 0
setne dl
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 0
jne 0x496a92
push 0x80004005
call fcn.0040cce0
xor eax, eax
jne 0x496a76
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov esi, esp
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp esi, esp
call fcn.004b81e1
add eax, 1
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax*2]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
lea edx, [ecx + eax*2]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0x10], 1
jne 0x496aa3
mov esi, esp
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 7
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp esi, esp
call fcn.004b81e1
pop esi
add esp, 0x14
cmp ebp, esp
call fcn.004b81e1
mov esp, ebp
pop ebp
ret 8
Function at 0x4a2300
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push esi
push edi
lea edi, [ebp - 0x34]
mov ecx, 0xd
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov byte [ebp - 1], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x30], 4
mov esi, esp
push 0xf0000000
push 1
push 0x4d9520
push 0
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
cmp esi, esp
call fcn.004b81e1
test eax, eax
jne 0x4a235a
jmp 0x4a2403
mov esi, esp
lea ecx, [ebp - 0x18]
push ecx
push 0
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
cmp esi, esp
call fcn.004b81e1
test eax, eax
jne 0x4a2382
jmp 0x4a2403
mov esi, esp
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
cmp esi, esp
call fcn.004b81e1
test eax, eax
jne 0x4a23a5
jmp 0x4a2403
mov esi, esp
push 0
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x24]
push edx
push 4
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp esi, esp
call fcn.004b81e1
test eax, eax
jne 0x4a23ca
jmp 0x4a2403
mov esi, esp
push 0
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp + 0x18]
push edx
push 2
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp esi, esp
call fcn.004b81e1
test eax, eax
jne 0x4a23ef
jmp 0x4a2403
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x24]
mov dword [ecx], edx
mov byte [ebp - 1], 1
xor eax, eax
jne 0x4a2330
cmp dword [ebp - 0x18], 0
je 0x4a241c
mov esi, esp
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp esi, esp
call fcn.004b81e1
cmp dword [ebp - 0xc], 0
je 0x4a2437
mov esi, esp
push 0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp esi, esp
call fcn.004b81e1
mov al, byte [ebp - 1]
push edx
mov ecx, ebp
push eax
lea edx, [0x4a245c]
call fcn.004b8204
pop eax
pop edx
pop edi
pop esi
add esp, 0x34
cmp ebp, esp
call fcn.004b81e1
mov esp, ebp
pop ebp
ret
Function at 0x4a7530
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c6ab1
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x34
push ebx
push esi
push edi
lea edi, [ebp - 0x44]
mov ecx, 0xd
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x51197c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0x10
mov esi, esp
lea ecx, [ebp - 0x28]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
cmp esi, esp
call fcn.004b81e1
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
mov esi, esp
push 0xf
lea ecx, [ebp - 0x28]
call dword [sym.imp.MFC80U.DLL_Ordinal_2460]
cmp esi, esp
call fcn.004b81e1
mov dword [ebp - 0x44], eax
mov esi, esp
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
cmp esi, esp
call fcn.004b81e1
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x4a75e1
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.004b81e1
mov dword [ebp - 0x14], eax
jmp 0x4a760d
mov esi, esp
mov edx, dword [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x28]
call dword [sym.imp.MFC80U.DLL_Ordinal_5398]
cmp esi, esp
call fcn.004b81e1
mov esi, esp
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp + 8]
call dword [sym.imp.MFC80U.DLL_Ordinal_774]
cmp esi, esp
call fcn.004b81e1
jmp 0x4a762b
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 4], 0xffffffff
mov esi, esp
lea ecx, [ebp - 0x28]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
cmp esi, esp
call fcn.004b81e1
mov eax, dword [ebp - 0x40]
push edx
mov ecx, ebp
push eax
lea edx, [0x4a7684]
call fcn.004b8204
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x44
cmp ebp, esp
call fcn.004b81e1
mov esp, ebp
pop ebp
ret
Function at 0x4a7870
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov eax, 0xcccccccc
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 4], 0
push 0
push 1
call fcn.004a6e00
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4a7957
mov esi, esp
mov eax, dword [ebp + 0xc]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
cmp esi, esp
call fcn.004b81e1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4a7931
mov esi, esp
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x24]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov cx, word [ebp + 0x20]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov dx, word [ebp + 0x10]
push edx
mov ax, word [ebp + 0x1c]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
cmp esi, esp
call fcn.004b81e1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4a791c
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.004b81e1
mov dword [ebp - 4], eax
mov esi, esp
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
cmp esi, esp
call fcn.004b81e1
jmp 0x4a7943
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.004b81e1
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.MFC80U.DLL_Ordinal_266
add esp, 4
jmp 0x4a7969
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.004b81e1
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop esi
add esp, 0x14
cmp ebp, esp
call fcn.004b81e1
mov esp, ebp
pop ebp
ret

Function at 0x4a7a80
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
push edi
lea edi, [ebp - 0x2c]
mov ecx, 0xb
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x51197c]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x1c], 0
mov byte [ebp - 0x1b], 0
mov byte [ebp - 0x1a], 0
mov byte [ebp - 0x19], 0
mov byte [ebp - 0x18], 0
mov byte [ebp - 0x17], 5
mov esi, esp
lea eax, [ebp - 0x28]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea ecx, [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp esi, esp
call fcn.004b81e1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4a7b25
mov esi, esp
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x28]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
cmp esi, esp
call fcn.004b81e1
test eax, eax
jne 0x4a7b12
mov dword [ebp - 0xc], 0
mov esi, esp
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp esi, esp
call fcn.004b81e1
mov eax, dword [ebp - 0xc]
push edx
mov ecx, ebp
push eax
lea edx, [0x4a7b54]
call fcn.004b8204
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b81d2
add esp, 0x2c
cmp ebp, esp
call fcn.004b81e1
mov esp, ebp
pop ebp
ret
Function at 0x4b4df0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c794b
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x20
push ebx
push esi
push edi
mov eax, 0xcccccccc
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, dword [0x51197c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], 0
cmp dword [ebp + 8], 0
jne 0x4b4e55
mov dword [ebp - 0x18], 1
jmp 0x4b4f18
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
cmp esi, esp
call fcn.004b81e1
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0
mov esi, esp
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp esi, esp
call fcn.004b81e1
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x4b4ea9
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x30], edx
push 0x4f3858
lea eax, [ebp - 0x30]
push eax
call fcn.004b838e
jmp 0x4b4ec6
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x2c], 0
je 0x4b4f11
cmp dword [ebp - 0x24], 0
jle 0x4b4f08
mov esi, esp
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx]
push edx
push 0x4dd920
push str._s__s
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MFC80U.DLL_Ordinal_2311]
add esp, 0x10
cmp esi, esp
call fcn.004b81e1
mov dword [ebp - 0x18], 1
jmp 0x4b4f0f
mov dword [ebp - 0x18], 0
jmp 0x4b4f18
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
push edx
mov ecx, ebp
push eax
lea edx, [0x4b4f4c]
call fcn.004b8204
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x30
cmp ebp, esp
call fcn.004b81e1
mov esp, ebp
pop ebp
ret 4