joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4637d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
mov eax, dword [0x61ce74]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xcc]
push edi
push 0xc8
push 0
push eax
mov edi, ecx
call fcn.00540d70
add esp, 0xc
lea ecx, [edi + 0x18]
push esi
call fcn.00432a00
mov eax, dword [ebp + 0xc]
mov ecx, edi
mov dword [edi + 0x1c], eax
mov dword [edi], 1
call fcn.00463640
lea eax, [edi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0xcc]
push str.GlobalBFD88F2D_0990_4de4_AD0F_764F5894389A__d
push eax
call fcn.00463f50
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
lea eax, [ebp - 0xcc]
add esp, 0xc
push eax
push 1
push 1
push 0
call esi
push 0
push 0
push 1
push 0
mov dword [edi + 0xc], eax
call esi
cmp dword [edi + 0xc], 0
mov dword [edi + 0x10], eax
je 0x4638a2
test eax, eax
je 0x4638a2
push 0
push 0
push edi
push 0x463c90
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x14], eax
test eax, eax
je 0x4638a2
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053d079
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0053d079
mov esp, ebp
pop ebp
ret 8
Function at 0x463fb0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x599ab0
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x61ce74]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
call fcn.00421b80
mov ecx, eax
test ecx, ecx
je 0x464064
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp + 8]
mov byte [ebp - 4], 1
push eax
lea ecx, [esi + 4]
call fcn.00463440
lea eax, [esi + 8]
xor ecx, ecx
push eax
mov dword [eax], ecx
mov dword [eax + 4], ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [0x629b50]
or eax, dword [0x629b54]
jne 0x46402e
push 0x629b50
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [ebp + 8]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x464050
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00425f50
int3
Function at 0x467390
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x599e68
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x61ce74]
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]
mov dword [ebp - 0x234], edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x230], 0
call fcn.00421b80
mov ecx, eax
test ecx, ecx
je 0x4675e5
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov ecx, 0x629c48
mov dword [ebp - 4], 0
mov dword [ebp - 0x230], 1
call fcn.00484d00
test eax, eax
je 0x46745b
lea eax, [ebp - 0x21c]
mov ecx, 0x629c48
push eax
call fcn.00485290
push eax
mov ecx, edi
mov dword [ebp - 4], 1
call fcn.00427100
mov edx, dword [ebp - 0x21c]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4675c5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4675c5
xor esi, esi
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x228], esi
mov dword [ebp - 0x224], esi
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 2
push esi
push eax
call fcn.00540d70
add esp, 0xc
mov dword [ebp - 0x220], 0x104
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], esi
push eax
push 0x2001f
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallKingsoft_Office
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
lea eax, [ebp - 0x21c]
push eax
jne 0x467523
mov esi, dword [ebp - 0x21c]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x22c], esi
push eax
push 0
push str.LocationRoot
push esi
mov dword [ebp - 0x21c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x467578
mov eax, dword [ebp - 0x220]
cmp eax, 1
je 0x46750f
cmp eax, 2
jne 0x467578
cmp dword [ebp - 0x21c], 0
jne 0x467578
xor eax, eax
mov word [ebp - 0x218], ax
jmp 0x467578
push 0x2001f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallKingsoft_Office
push 0x80000002
mov dword [ebp - 0x21c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x467591
mov esi, dword [ebp - 0x21c]
lea ecx, [ebp - 0x22c]
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x22c], esi
push eax
push str.LocationRoot
call fcn.0046aec0
test esi, esi
je 0x467587
push esi
call ebx
xor esi, esi
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x228], 0
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4675a0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.004263f0
test esi, esi
je 0x4675c5
push esi
call ebx
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.0053d079
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00425f50
int3
Function at 0x46aec0
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 0x46af31
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x46aeff
cmp eax, 2
jne 0x46af1b
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x46af2b
test ecx, ecx
je 0x46af26
test cl, 1
jne 0x46af1b
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x46af2b
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 0x4703a0
Capabilities:
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59a9f8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x61ce74]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00421b80
mov ecx, eax
test ecx, ecx
je 0x47053b
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 0x470421
test edi, 0xffff0000
jne 0x470406
movzx eax, di
lea ecx, [ebp - 0x10]
push eax
call fcn.00426130
jmp 0x47042d
mov ecx, edi
lea edx, [ecx + 2]
jmp 0x470410
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x470410
sub ecx, edx
sar ecx, 1
jmp 0x470423
xor ecx, ecx
push ecx
push edi
lea ecx, [ebp - 0x10]
call fcn.004263f0
push edi
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ebx, 0xffffffff
cmp eax, ebx
jne 0x470503
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
or ebx, ebx
test eax, eax
jne 0x470503
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x470503
mov esi, dword [ebp - 0x10]
push 0x5c
push esi
call fcn.005422aa
add esp, 8
test eax, eax
je 0x4704bf
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x4704bf
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.00442e60
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00427100
mov edx, dword [ebp - 0x14]
mov eax, ebx
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4704c7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4704c7
lea ecx, [ebp - 0x10]
call fcn.00426010
mov esi, dword [ebp - 0x10]
cmp dword [esi - 0xc], 0
jne 0x4704d4
xor edi, edi
jmp 0x47050b
push esi
call fcn.004703a0
add esp, 4
test eax, eax
jne 0x4704e5
xor edi, edi
jmp 0x47050b
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x470506
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x470506
xor edi, edi
jmp 0x47050b
mov esi, dword [ebp - 0x10]
mov edi, 1
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x470527
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
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00425f50
int3
Function at 0x471d40
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x606b68
push 0x541a10
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x61ce74]
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 0x471df5
lea eax, [ebp - 0x3c]
push eax
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x471df5
mov dword [ebp - 0x2c], 1
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x24], eax
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.00471e22
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.0053d079
mov esp, ebp
pop ebp
ret

Function at 0x472540
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59ae42
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x61ce74]
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 - 4], 0
mov dword [ebp - 0x21c], 0
call fcn.00421b80
mov ecx, eax
test ecx, ecx
je 0x47265b
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.00540d70
add esp, 0xc
push esi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x472617
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 0x472610
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 0x472620
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.004263f0
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.0053d079
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00425f50
int3
Function at 0x472670
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
mov eax, dword [0x61ce74]
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.00540d70
push 0x22c
lea eax, [ebp - 0x45c]
push 0
push eax
call fcn.00540d70
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 0x472728
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x472701
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [ebp - 0x230]
jmp 0x472739
cmp dword [ebp - 0x228], edi
je 0x47271c
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x472701
jmp 0x472721
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.0053d079
mov esp, ebp
pop ebp
ret

Function at 0x472760
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x61ce74]
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 0x47284c
cmp word [edi], 0
je 0x47284c
test esi, esi
je 0x47284c
push 0x228
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x230], 0x22c
push 0
push eax
call fcn.00540d70
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x47284c
lea eax, [ebp - 0x230]
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x47282a
jmp 0x4727e0
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0054b581
add esp, 8
test eax, eax
jne 0x472819
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 8]
je 0x47280a
mov eax, dword [ebp - 0x228]
mov dword [ecx], eax
add dword [esi + 4], 4
jmp 0x472819
lea eax, [ebp - 0x228]
push eax
push ecx
mov ecx, esi
call fcn.00426680
lea eax, [ebp - 0x230]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4727e0
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.0053d079
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.0053d079
mov esp, ebp
pop ebp
ret
Function at 0x472c70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59aef8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x61ce74]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00421b80
mov ecx, eax
test ecx, ecx
je 0x472e45
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], 1
push eax
push dword [0x61b7ac]
mov dword [ebp - 0x14], 0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov eax, dword [ebp - 0x14]
mov ebx, dword [str.LocationRoot]
mov dword [ebp - 0x18], 0
test eax, eax
je 0x472d8c
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 0x472d10
cmp eax, 2
jne 0x472d8c
lea ecx, [ebp - 0x10]
call fcn.00426010
mov edx, dword [ebp - 0x18]
shr edx, 1
add edx, 1
js 0x472e3b
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 0x472d46
push edx
lea ecx, [ebp - 0x10]
call fcn.00426250
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 0x472d8c
mov eax, dword [ebp - 0x18]
xor ecx, ecx
shr eax, 1
mov word [esi + eax*2], cx
push dword [esi - 8]
push esi
call fcn.0054b2c2
add esp, 8
test eax, eax
js 0x472e3b
cmp eax, dword [esi - 8]
jg 0x472e3b
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
push 0x5be630
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.004430a0
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00427100
mov edx, dword [ebp - 0x1c]
or edi, 0xffffffff
mov byte [ebp - 4], 1
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x472dcc
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 - 0x18], esi
mov ebx, dword [ebp - 0x10]
add ebx, 0xfffffff0
push ebx
call fcn.00425f70
add esp, 4
add eax, 0x10
mov dword [esi], eax
call fcn.00442260
mov ecx, dword [ebp - 0x14]
add esp, 0x10
mov esi, eax
test ecx, ecx
je 0x472e07
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
lock xadd dword [ebx + 0xc], edi
dec edi
test edi, edi
jg 0x472e27
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.00425f50
push 0x80004005
call fcn.00425f50
int3
Function at 0x473f40
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.0053d0bd
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 0x47402e
mov ebx, dword [edi]
test ebx, ebx
je 0x47402e
push ebx
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x47402e
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.0053d0bd
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 0x47401c
mov eax, dword [esi]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x47401c
push eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x47401c
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
push edi
mov esi, eax
call fcn.0053d0c6
push dword [ebp - 8]
call fcn.0053d0c6
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.0053d0c6
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call fcn.0053d0c6
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x474040
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59b148
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x61ce74]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x629c10], 0
jne 0x474092
push 0
push 0
push 6
call fcn.00433540
movzx eax, al
add esp, 0xc
mov dword [0x629c14], eax
mov dword [0x629c10], 1
jmp 0x474097
mov eax, dword [0x629c14]
test eax, eax
jne 0x4740ac
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x474134
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 0x474134
mov eax, dword [ebp - 0x14]
cmp eax, 2
je 0x474102
cmp eax, 3
je 0x474102
xor esi, esi
jmp 0x474107
mov esi, 1
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x47411a
cmp eax, 0xffffffff
je 0x47411a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x474147
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 0x474147
cmp eax, 0xffffffff
je 0x474147
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], 0
call fcn.00421b80
mov ecx, eax
test ecx, ecx
je 0x474223
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 0x474189
movzx eax, ax
push eax
call fcn.00426130
jmp 0x474195
push 0x39
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesSystem
call fcn.004263f0
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
push esi
push 0x80000002
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4741f2
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 0x47420a
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.00425f50
int3
Function at 0x474330
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59b1a8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x61ce74]
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.00472760
mov ebx, dword [ebp - 0x18]
add esp, 8
mov edi, ebx
cmp edi, dword [ebp - 0x14]
je 0x474415
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x4743b4
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
cmp ecx, eax
je 0x4743b4
mov edx, dword [edi]
cmp dword [ecx], edx
je 0x4743b0
add ecx, 4
cmp ecx, eax
jne 0x4743a5
cmp ecx, eax
jne 0x47440a
cmp byte [ebp + 0xc], 0
je 0x4743c8
push dword [edi]
call fcn.00474230
add esp, 4
test eax, eax
jne 0x47440a
mov esi, dword [edi]
push esi
call fcn.00474230
add esp, 4
test eax, eax
jne 0x47440a
push esi
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x47440a
cmp esi, 0xffffffff
je 0x4743fa
push 0xffff
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x474403
test esi, esi
je 0x47440a
cmp esi, 0xffffffff
je 0x47440a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add edi, 4
cmp edi, dword [ebp - 0x14]
jne 0x474396
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x474445
mov ecx, dword [ebp - 0x10]
mov eax, ebx
sub ecx, ebx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x47443b
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x474457
push ecx
push ebx
call fcn.0053d0af
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.0054b0c3
int3