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

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x473e01
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x473dcf
cmp eax, 2
jne 0x473deb
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x473dfb
test ecx, ecx
je 0x473df6
test cl, 1
jne 0x473deb
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x473dfb
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x479dd0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59cef5
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x639354]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00429250
mov ecx, eax
test ecx, ecx
je 0x479f05
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0
test edi, edi
je 0x479e51
test edi, 0xffff0000
jne 0x479e33
movzx eax, di
lea ecx, [ebp - 0x10]
push eax
call fcn.00429d90
jmp 0x479e5d
mov ecx, edi
lea edx, [ecx + 2]
jmp 0x479e40
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x479e40
sub ecx, edx
sar ecx, 1
jmp 0x479e53
xor ecx, ecx
push ecx
push edi
lea ecx, [ebp - 0x10]
call fcn.0042a060
push edi
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x479ed2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x479ed2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x479ed2
lea eax, [ebp - 0x10]
push eax
call fcn.00448aa0
mov esi, dword [ebp - 0x10]
add esp, 4
cmp dword [esi - 0xc], 0
jne 0x479ea3
xor edi, edi
jmp 0x479eda
push esi
call fcn.00479dd0
add esp, 4
test eax, eax
jne 0x479eb4
xor edi, edi
jmp 0x479eda
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x479ed5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x479ed5
xor edi, edi
jmp 0x479eda
mov esi, dword [ebp - 0x10]
mov edi, 1
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x479ef2
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00429b60
int3
Function at 0x47ba00
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5ffc08
push 0x560c20
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x639354]
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
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x30]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x47bab5
lea eax, [ebp - 0x3c]
push eax
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x47bab5
mov dword [ebp - 0x2c], 1
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], 2
push esi
push esi
push esi
lea eax, [ebp - 0x2c]
push eax
push esi
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ecx, 1
test eax, eax
cmovne esi, ecx
mov dword [ebp - 0x34], esi
mov dword [ebp - 4], 0xfffffffe
call fcn.0047bae2
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.0055c3a9
mov esp, ebp
pop ebp
ret
Function at 0x47bbd0
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59dfa0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x639354]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
call fcn.00429250
mov ecx, eax
test ecx, ecx
je 0x47bd3d
mov eax, dword [ecx]
call dword [eax + 0xc]
xor esi, esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], 0x104
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
push 0x2001f
push esi
push dword [0x61345c]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp + 8]
test eax, eax
jne 0x47bc94
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
push edi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x208
push eax
push 0
push dword [0x613460]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47bcd4
mov eax, dword [ebp - 0x18]
cmp eax, 1
je 0x47bc83
cmp eax, 2
jne 0x47bcd4
test edi, edi
je 0x47bcd4
cmp dword [ebp - 0x14], 0
jne 0x47bcd4
xor eax, eax
mov word [edi], ax
jmp 0x47bcd4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0x2001f
push 0
push dword [0x61345c]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47bcdd
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push eax
push edi
push dword [0x613460]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], esi
call fcn.00473d90
test esi, esi
je 0x47bcdd
push esi
call ebx
xor esi, esi
push edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveBlanksW]
push 0x5c
push edi
call fcn.005614c9
add esp, 8
test eax, eax
je 0x47bd01
sub eax, edi
sar eax, 1
inc eax
push eax
push edi
push edi
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, eax
test esi, esi
je 0x47bd11
push esi
call ebx
mov edx, dword [ebp - 0x1c]
or ecx, 0xffffffff
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x47bd29
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 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
push 0x80004005
call fcn.00429b60
int3
Function at 0x47c380
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a33a7
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x639354]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x21c], 0
mov dword [ebp - 4], 1
call fcn.00429250
mov ecx, eax
test ecx, ecx
je 0x47c49b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x21c], 1
call fcn.00560a80
add esp, 0xc
push esi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x47c457
lea eax, [ebp - 0x228]
push eax
push 4
lea eax, [ebp - 0x220]
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x47c450
push 0x104
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x220]
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47c460
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.0042a060
mov eax, edi
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.0055c3a9
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00429b60
int3

Function at 0x47c4b0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
mov eax, dword [0x639354]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x22c]
push 0x228
push 0
push eax
call fcn.00560a80
push 0x22c
lea eax, [ebp - 0x45c]
push 0
push eax
call fcn.00560a80
add esp, 0x18
mov dword [ebp - 0x230], 0x22c
mov dword [ebp - 0x45c], 0x22c
xor ebx, ebx
mov dword [ebp - 0x454], 0xffffffff
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x47c568
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x47c541
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [ebp - 0x230]
jmp 0x47c579
cmp dword [ebp - 0x228], edi
je 0x47c55c
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x47c541
jmp 0x47c561
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
lea esi, [ebp - 0x45c]
lea eax, [ebp - 0x230]
cmovne esi, eax
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.0055c3a9
mov esp, ebp
pop ebp
ret
Function at 0x47c5a0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x639354]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x47c68c
cmp word [edi], 0
je 0x47c68c
test esi, esi
je 0x47c68c
push 0x228
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x230], 0x22c
push 0
push eax
call fcn.00560a80
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x47c68c
lea eax, [ebp - 0x230]
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x47c66a
jmp 0x47c620
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0056b422
add esp, 8
test eax, eax
jne 0x47c659
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 8]
je 0x47c64a
mov eax, dword [ebp - 0x228]
mov dword [ecx], eax
add dword [esi + 4], 4
jmp 0x47c659
lea eax, [ebp - 0x228]
push eax
push ecx
mov ecx, esi
call fcn.0042a4f0
lea eax, [ebp - 0x230]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x47c620
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi]
xor eax, eax
cmp ecx, dword [esi + 4]
pop edi
pop esi
setne al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055c3a9
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055c3a9
mov esp, ebp
pop ebp
ret
Function at 0x47ca90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a347d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x639354]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
call fcn.00429250
mov ecx, eax
test ecx, ecx
je 0x47cc78
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 2
push eax
push 0x20019
push 0
push dword [0x61345c]
mov dword [ebp - 0x14], 0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [ebp - 0x14]
mov ebx, dword [str.LocationRoot]
mov dword [ebp - 0x18], 0
test eax, eax
je 0x47cbc6
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x18]
push ecx
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0
push ebx
push eax
call edi
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x47cb42
cmp eax, 2
jne 0x47cbc6
lea ecx, [ebp - 0x10]
call fcn.00429c20
mov edx, dword [ebp - 0x18]
shr edx, 1
add edx, 1
js 0x47cc6e
mov esi, dword [ebp - 0x10]
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x47cb78
push edx
lea ecx, [ebp - 0x10]
call fcn.00429eb0
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
push 0
push ebx
push dword [ebp - 0x14]
call edi
test eax, eax
jne 0x47cbc6
mov eax, dword [ebp - 0x18]
xor ecx, ecx
shr eax, 1
mov word [esi + eax*2], cx
test esi, esi
jne 0x47cba0
xor eax, eax
jmp 0x47cbb4
push dword [esi - 8]
push esi
call fcn.0056b163
add esp, 8
test eax, eax
js 0x47cc6e
cmp eax, dword [esi - 8]
jg 0x47cc6e
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
push str.office6cfgsoem.ini
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.00448a10
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.004297a0
mov edx, dword [ebp - 0x1c]
or edi, 0xffffffff
mov byte [ebp - 4], 2
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x47cc06
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ecx
mov esi, esp
mov dword [ebp - 0x1c], esi
mov ebx, dword [ebp - 0x10]
add ebx, 0xfffffff0
push ebx
call fcn.00429b80
add esp, 4
add eax, 0x10
mov dword [esi], eax
call fcn.00447bb0
mov ecx, dword [ebp - 0x14]
add esp, 0x10
mov esi, eax
test ecx, ecx
je 0x47cc41
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], 0
lock xadd dword [ebx + 0xc], edi
dec edi
test edi, edi
jg 0x47cc5a
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00429b60
push 0x80004005
call fcn.00429b60
int3
Function at 0x47e220
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 4]
push esi
mov esi, dword [ebp + 8]
push edi
push eax
push 0
push 0
push 1
push esi
mov dword [ebp - 4], 0
call ebx
push dword [ebp - 4]
call fcn.0055c532
add esp, 4
mov edi, eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push edi
push 1
push esi
call ebx
test eax, eax
je 0x47e30e
mov ebx, dword [edi]
test ebx, ebx
je 0x47e30e
push ebx
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x47e30e
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push 0
push 0
push 1
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push dword [ebp - 4]
call fcn.0055c532
add esp, 4
mov dword [ebp - 8], eax
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 4]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov esi, dword [ebp - 8]
test eax, eax
je 0x47e2fc
mov eax, dword [esi]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x47e2fc
push eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x47e2fc
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
push edi
mov esi, eax
call fcn.0055c53b
push dword [ebp - 8]
call fcn.0055c53b
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.0055c53b
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call fcn.0055c53b
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47e320
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a37bd
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x639354]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x641e04], 0
jne 0x47e372
push 0
push 0
push 6
call fcn.004388c0
movzx eax, al
add esp, 0xc
mov dword [0x641e08], eax
mov dword [0x641e04], 1
jmp 0x47e377
mov eax, dword [0x641e08]
test eax, eax
jne 0x47e38c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x10]
push ecx
push 8
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x47e414
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x14], 1
push eax
push 4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1c], 0
push eax
push 0x12
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x47e414
mov eax, dword [ebp - 0x14]
cmp eax, 2
je 0x47e3e2
cmp eax, 3
je 0x47e3e2
xor esi, esi
jmp 0x47e3e7
mov esi, 1
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x47e3fa
cmp eax, 0xffffffff
je 0x47e3fa
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x47e427
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x47e427
cmp eax, 0xffffffff
je 0x47e427
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], 0
call fcn.00429250
mov ecx, eax
test ecx, ecx
je 0x47e4fc
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov eax, str.SoftwareMicrosoftWindowsCurrentVersionPoliciesSystem
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
test eax, 0xffff0000
jne 0x47e469
movzx eax, ax
push eax
call fcn.00429d90
jmp 0x47e475
push 0x39
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesSystem
call fcn.0042a060
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
push esi
push 0x80000002
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47e4cb
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], 4
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push str.EnableLUA
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x14]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x47e4e3
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
cmp dword [ebp - 0x18], eax
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00429b60
int3
Function at 0x47e8a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a3865
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x639354]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call fcn.0047c5a0
mov ebx, dword [ebp - 0x18]
add esp, 8
mov edi, ebx
cmp edi, dword [ebp - 0x14]
je 0x47e9e9
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x47e924
mov ecx, dword [ebx + 4]
mov eax, dword [ebx]
cmp eax, ecx
je 0x47e924
mov edx, dword [edi]
cmp dword [eax], edx
je 0x47e9da
add eax, 4
cmp eax, ecx
jne 0x47e915
cmp byte [ebp + 0x10], 0
je 0x47e93c
push dword [edi]
call fcn.0047e510
add esp, 4
test eax, eax
jne 0x47e9da
push dword [edi]
lea eax, [ebp + 8]
push eax
call fcn.0047c380
add esp, 8
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 1
mov ecx, dword [eax]
test ecx, ecx
je 0x47e9bb
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jl 0x47e9be
push ecx
push eax
call fcn.00561570
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x47e9bb
mov eax, dword [ebp + 8]
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
je 0x47e9be
mov esi, dword [edi]
push esi
call fcn.0047e510
add esp, 4
test eax, eax
jne 0x47e9b3
push esi
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x47e9b3
cmp esi, 0xffffffff
je 0x47e9b3
push 0xffff
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
jmp 0x47e9c1
mov eax, dword [ebp + 8]
lea edx, [eax - 0x10]
or eax, 0xffffffff
mov byte [ebp - 4], 0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x47e9da
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 4
cmp edi, dword [ebp - 0x14]
jne 0x47e906
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x47ea19
mov ecx, dword [ebp - 0x10]
mov eax, ebx
sub ecx, ebx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x47ea0f
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47ea2b
push ecx
push ebx
call fcn.0055c524
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0056af64
int3
Function at 0x47f140
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a393d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x639354]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], edi
mov ecx, dword [ebx]
lea edx, [ecx - 0x10]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
cmp dword [edx + 4], edi
je 0x47f1c0
mov eax, dword [edx + 0xc]
lea esi, [edx + 0xc]
shr eax, 0x1f
test al, al
je 0x47f19f
cmp dword [ecx - 8], edi
jl 0x47f2fc
mov dword [ecx - 0xc], edi
mov eax, dword [ebx]
mov byte [eax], 0
jmp 0x47f1c0
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x47f1b3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 1
test esi, esi
je 0x47f2e6
cmp esi, 0xffffffff
je 0x47f2e6
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x18], eax
cmp eax, 0x200000
ja 0x47f2cb
lea edx, [eax + 1]
mov dword [ebp - 0x14], 0
mov edi, eax
test edx, edx
js 0x47f2fc
mov eax, dword [ebx]
mov ecx, 1
mov dword [ebp - 0x10], eax
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edx
or ecx, eax
jge 0x47f248
push edx
mov ecx, ebx
call fcn.004380b0
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
jmp 0x47f24b
mov eax, dword [ebp - 0x10]
mov ebx, eax
lea ecx, [ecx]
push 0
lea eax, [ebp - 0x14]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x47f2c9
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x47f2c9
add ebx, eax
sub edi, eax
jne 0x47f250
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
mov edi, dword [ebp + 0xc]
mov byte [ecx + eax], 0
mov eax, dword [edi]
test eax, eax
jne 0x47f287
xor ecx, ecx
jmp 0x47f299
push dword [eax - 8]
push eax
call fcn.0056b041
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x47f2fc
mov eax, dword [edi]
cmp ecx, dword [eax - 8]
jg 0x47f2fc
mov dword [eax - 0xc], ecx
mov eax, dword [edi]
mov edi, 1
push esi
mov byte [ecx + eax], 0
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
xor edi, edi
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
xor edi, edi
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
push 0x80070057
call fcn.00429b60
int3