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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f8fd
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4ce4bc]
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 ebx, ecx
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x28]
lea esi, [edi + 4]
push esi
call fcn.00401f70
cmp dword [ebp - 0x18], 0
je 0x42b8bd
cmp dword [edi + 0x34], 0xffffffff
je 0x42b8bd
lea ecx, [ebp - 0x28]
call fcn.00401af0
lea esi, [ebx + 8]
push esi
mov dword [ebp - 0x38], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebx + 4], 0x15555555
mov eax, dword [ebx]
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], eax
je 0x42b918
mov dword [ebp - 0x34], ebx
push 0xc
mov byte [ebp - 4], 1
mov dword [ebp - 0x30], 0
call fcn.00499abe
mov edx, dword [ebp - 0x2c]
add esp, 4
mov byte [ebp - 4], 0
mov dword [ebp - 0x2c], 0
mov dword [eax + 8], edi
inc dword [ebx + 4]
mov ecx, dword [edx + 4]
mov dword [eax], edx
mov dword [eax + 4], ecx
mov dword [edx + 4], eax
mov dword [ecx], eax
lea eax, [ebp - 0x2c]
push eax
push 0
push edi
push 0x42bfb0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x42b8b4
cmp dword [ebx + 0x24], 0x15555555
lea edi, [ebx + 0x20]
mov ebx, dword [edi]
je 0x42b922
mov dword [ebp - 0x40], edi
push 0xc
mov byte [ebp - 4], 2
mov dword [ebp - 0x3c], 0
call fcn.00499abe
mov ecx, dword [ebp - 0x30]
add esp, 4
mov dword [eax + 8], ecx
inc dword [edi + 4]
mov ecx, dword [ebx + 4]
mov dword [eax], ebx
mov dword [eax + 4], ecx
mov dword [ebx + 4], eax
mov dword [ecx], eax
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x42b8fa
lea ecx, [ebp - 0x28]
call fcn.00401af0
test edi, edi
je 0x42b8fa
mov eax, dword [edi + 0x4c]
test eax, eax
je 0x42b8d9
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_UnregisterWaitEx]
lea ecx, [esi + 0x18]
mov dword [edi + 0x4c], 0
call fcn.00401af0
mov ecx, esi
call fcn.00401af0
push 0x50
push edi
call fcn.00499aee
add esp, 8
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.00499afc
mov esp, ebp
pop ebp
ret 4
push str.list_too_long
call sub.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__
push str.list_too_long
call sub.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__
int3
Function at 0x42c5f0
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, ecx
push esi
mov dword [esi + 0x14], 1
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x42c675
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x3e5
je 0x42c661
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov dword [esi + 0x14], 1
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
push esi
mov dword [esi + 0x10], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x42c625
pop ebx
pop edi
pop esi
pop ebp
ret 8
call ebx
cmp eax, 0x217
jne 0x42c674
push 0
push esi
mov ecx, edi
call fcn.0042c680
pop ebx
pop edi
pop esi
pop ebp
ret 8

Function at 0x42c680
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push 0x90
push 0
mov dword [ebp + 8], 0
push dword [esi + 0x18]
mov dword [esi + 0x14], 2
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp + 8]
push esi
push eax
push 0x90
push dword [esi + 0x18]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42c6ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x42c6ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x42c6ef
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
push 0
push esi
mov ecx, ebx
call fcn.0042c5f0
pop esi
pop ebx
pop ebp
ret 8
Function at 0x42cf60
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push edi
mov eax, ecx
mov dword [ebp - 4], 0
push 0xffffffffffffffff
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x20], eax
push ecx
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], 0
push ecx
lea ecx, [ebp - 4]
mov dword [ebp - 8], 0
push ecx
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetQueuedCompletionStatus]
mov edi, dword [ebp - 8]
test edi, edi
je 0x42d13e
mov edx, dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
push ebx
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x42d096
mov eax, dword [ebx + 0x14]
dec eax
cmp eax, 4
ja case.default.0x42cfc9
jmp dword [eax*4 + 0x42d148]
push dword [ebp - 4]
mov ecx, edi
push ebx
call fcn.0042c680
jmp case.default.0x42cfc9
cmp dword [ebp - 4], 0x90
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x10], eax
jne 0x42d056
mov edx, dword [eax + 0x8c]
mov dword [ebp - 0x18], edx
test edx, edx
jne 0x42d007
push edx
push ebx
mov ecx, edi
call fcn.0042c700
jmp case.default.0x42cfc9
lea ecx, [eax + 0x90]
mov eax, dword [ecx]
push edx
push ecx
call dword [eax]
test eax, eax
je 0x42d056
mov ecx, dword [ebp - 0x10]
add ecx, 0x90
mov dword [ebx + 0x14], 3
mov dword [ebp - 0x14], 0
push ecx
mov eax, dword [ecx]
call dword [eax + 8]
push ebx
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp - 0x18]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne case.default.0x42cfc9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je case.default.0x42cfc9
push dword [edi]
call esi
push 0
push ebx
mov ecx, edi
call fcn.0042c5f0
push 0xffffffffffffffff
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 0
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x20]
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetQueuedCompletionStatus]
mov edi, dword [ebp - 8]
mov edx, dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test edi, edi
jne 0x42cfb1
pop ebx
pop esi
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push dword [ebp - 4]
mov ecx, edi
push ebx
call fcn.0042c700
jmp case.default.0x42cfc9
cmp dword [ebp - 4], 0x90
mov eax, dword [ebx + 0x18]
jne 0x42d056
cmp dword [eax + 0x8c], 0
jne 0x42d0c7
push dword [edi]
call edx
jmp 0x42d056
mov dword [ebx + 0x14], 5
mov dword [ebp - 0x1c], 0
mov esi, dword [eax + 0x8c]
add eax, 0x90
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push ebx
lea ecx, [ebp - 0x1c]
push ecx
push esi
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor ecx, ecx
test eax, eax
setne cl
mov dword [ebp - 0x18], ecx
test eax, eax
je 0x42d107
xor eax, eax
jmp 0x42d110
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
test ecx, ecx
jne case.default.0x42cfc9
jmp 0x42d04f
mov ecx, dword [ebx + 0x18]
mov eax, dword [ebp - 4]
cmp eax, dword [ecx + 0x8c]
jne 0x42d056
push dword [edi]
call edx
jmp 0x42d056
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x42dcc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x14
push esi
test eax, eax
je 0x42dd86
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
je 0x42dd86
xor ecx, ecx
push edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x14]
push ecx
push 0
push dword [ebp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x42dd14
call edi
cmp eax, 0x3e5
jne 0x42dd66
push dword [ebp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x42dd52
push esi
call dword [sym.imp.KERNEL32.dll_CancelIo]
test eax, eax
je 0x42dd45
push 1
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push eax
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov eax, 0x800705b4
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
push 0
push dword [ebp + 0x18]
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x42dd7c
call edi
test eax, eax
jle 0x42dd4a
movzx eax, ax
pop edi
or eax, 0x80070000
pop esi
mov esp, ebp
pop ebp
ret 0x14
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x14
mov eax, 0x80070057
pop esi
mov esp, ebp
pop ebp
ret 0x14
Function at 0x42e660
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov esi, ecx
call fcn.0042e910
cmp eax, 3
jne 0x42e684
push dword [ebp + 8]
mov ecx, esi
call fcn.0042e600
pop esi
mov esp, ebp
pop ebp
ret 4
call fcn.0042ec40
test al, al
jne 0x42e69d
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
neg eax
sbb eax, eax
inc eax
jmp 0x42e757
cmp dword [esi], 0
je 0x42e6e2
call fcn.0042ec40
test al, al
je 0x42e6e2
lea eax, [ebp - 0x10]
mov dword [ebp - 8], 1
push eax
push 4
lea eax, [ebp - 8]
mov dword [ebp - 0x10], 0
push eax
push 0x12
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x42e6e2
mov eax, dword [ebp - 8]
cmp eax, 2
je 0x42e75f
cmp eax, 3
je 0x42e75f
call fcn.0042ec40
test al, al
jne 0x42e6f8
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
neg eax
sbb eax, eax
inc eax
jmp 0x42e757
lea eax, [ebp - 4]
mov dword [ebp - 0xc], 0
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
push 0x80000002
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42e74f
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 4
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push str.EnableLUA
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 0xc], eax
setne al
test eax, eax
je 0x42e7df
mov ecx, esi
call fcn.0042e910
cmp eax, 2
jne 0x42e7df
mov eax, dword [esi]
mov dword [ebp - 0x14], 0
test eax, eax
je 0x42e7df
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push ecx
push 1
push 2
push 0
push 0x2000000
push eax
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x42e7df
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0x18]
push 0x2000
mov dword [ebp - 0x18], eax
call fcn.0042f5e0
test eax, eax
je 0x42e7d1
mov esi, dword [ebp + 8]
mov eax, dword [esi]
test eax, eax
je 0x42e7c0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
mov dword [esi], eax
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x42e7df
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x42e910
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4ce4bc]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
mov ecx, dword [edi]
test ecx, ecx
jne 0x42e93a
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00499afc
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 4]
test eax, eax
jne 0x42ea6b
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 1
push ecx
call esi
push dword [ebp - 0x10]
call fcn.00499b2d
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push ebx
push 1
push dword [edi]
call esi
test eax, eax
je 0x42ea0c
mov esi, dword [ebx]
test esi, esi
je 0x42ea0c
push esi
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x42ea0c
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x12
push 1
lea eax, [ebp - 0xc]
mov word [ebp - 8], 0x500
push eax
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x42ea0c
push dword [ebp - 0x14]
push esi
call dword [sym.imp.ADVAPI32.dll_EqualSid]
push dword [ebp - 0x14]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push ebx
call fcn.00499b36
add esp, 4
test esi, esi
je 0x42ea15
pop esi
pop ebx
mov dword [edi + 4], 1
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00499afc
mov esp, ebp
pop ebp
ret
push ebx
call fcn.00499b36
add esp, 4
push 0x220
mov ecx, edi
call fcn.0042ea80
test eax, eax
je 0x42ea5d
mov ecx, edi
call fcn.0042e7f0
cmp eax, 3
je 0x42ea44
mov ecx, edi
call fcn.0042e840
cmp eax, 0x2000
mov eax, 2
jne 0x42ea49
mov eax, 3
pop esi
pop ebx
mov dword [edi + 4], eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00499afc
mov esp, ebp
pop ebp
ret
pop esi
mov dword [edi + 4], 4
mov eax, 4
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00499afc
mov esp, ebp
pop ebp
ret
Function at 0x42ea80
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4ce4bc]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
cmp dword [edi], 0
je 0x42ec2d
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 8]
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push 0x20
push 2
push eax
mov word [ebp - 8], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x42ec2d
push esi
mov ecx, edi
xor esi, esi
call fcn.0042e7f0
cmp eax, 3
jne 0x42ebb4
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], esi
push eax
mov ecx, edi
mov dword [ebp - 0x18], esi
call fcn.0042e560
mov edi, dword [ebp - 0x1c]
test eax, eax
je 0x42ec05
mov esi, dword [ebp - 0x14]
test edi, edi
je 0x42eb40
test esi, esi
je 0x42eb40
push esi
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x42eb40
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
neg eax
sbb esi, esi
and esi, dword [ebp - 0x10]
jne 0x42ec05
jmp 0x42eb42
xor esi, esi
test edi, edi
je 0x42ec10
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
je 0x42ec05
mov esi, dword [ebp - 0x14]
push ebx
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x42eba4
test esi, esi
je 0x42eba4
push esi
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x42eba4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
neg eax
push ebx
sbb esi, esi
and esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
jmp 0x42ec05
xor esi, esi
test ebx, ebx
je 0x42ebb1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
jmp 0x42ec05
mov eax, dword [edi]
test eax, eax
je 0x42ec10
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], esi
push ecx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
je 0x42ec10
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
test edi, edi
je 0x42ec03
test esi, esi
je 0x42ec03
push esi
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x42ec03
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
neg eax
sbb esi, esi
and esi, dword [ebp - 0x10]
jmp 0x42ec09
xor esi, esi
test edi, edi
je 0x42ec10
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, esi
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00499afc
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.00499afc
mov esp, ebp
pop ebp
ret 4
Function at 0x42f500
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
call fcn.0042ec40
test al, al
jne 0x42f522
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
neg eax
pop esi
sbb eax, eax
inc eax
mov esp, ebp
pop ebp
ret
cmp dword [esi], 0
je 0x42f56d
call fcn.0042ec40
test al, al
je 0x42f56d
lea eax, [ebp - 8]
mov dword [ebp - 4], 1
push eax
push 4
lea eax, [ebp - 4]
mov dword [ebp - 8], 0
push eax
push 0x12
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x42f56d
mov eax, dword [ebp - 4]
cmp eax, 2
je 0x42f563
cmp eax, 3
jne 0x42f56d
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
call fcn.0042ec40
test al, al
je 0x42f512
lea eax, [ebp - 4]
mov dword [ebp - 8], 0
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
push 0x80000002
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42f5cd
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push str.EnableLUA
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 8], eax
pop esi
setne al
mov esp, ebp
pop ebp
ret
Function at 0x42fba0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49fe81
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x4ce4bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x28]
push eax
call fcn.00430750
cmp dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
jne 0x42fbe3
xor esi, esi
jmp 0x42fc4c
mov eax, dword fs:[0x2c]
mov ecx, dword [0x4d6db4]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x4d3894]
cmp eax, dword [ecx + 4]
jg 0x42fca4
push 0x4d387c
lea ecx, [ebp - 0x40]
call fcn.00401f70
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 4
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42fc3f
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00413d80
add esp, 0xc
mov esi, eax
jmp 0x42fc44
mov esi, 1
lea ecx, [ebp - 0x40]
call fcn.00401af0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x42fc88
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42fc7e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x42fc7e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00499aee
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00499afc
mov esp, ebp
pop ebp
ret
push 0x4d3894
call fcn.00499ebf
add esp, 4
cmp dword [0x4d3894], 0xffffffff
jne 0x42fc03
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 1
push 1
push eax
call fcn.00490900
push str.office6_
push eax
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 2
push eax
call fcn.00401590
push str.wpscloudsvr.exe
push eax
push 0x4d387c
mov byte [ebp - 4], 3
call fcn.00401590
add esp, 0x20
lea ecx, [ebp - 0x58]
call fcn.00401af0
lea ecx, [ebp - 0x70]
call fcn.00401af0
push 0x4a8340
call fcn.00499d77
push 0x4d3894
mov byte [ebp - 4], 0
call fcn.00499e75
add esp, 8
jmp 0x42fc03
Function at 0x430750
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49ffb6
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x4ce4bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x4d6db4]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x264], esi
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x4d3898]
cmp eax, dword [ecx + 4]
jg 0x4309c3
cmp dword [0x4ce098], 0
jne 0x430999
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x430999
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x238], eax
lea edx, [ecx + 2]
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
jmp 0x430810
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x430810
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x248]
call fcn.00404580
push 0x12
xor eax, eax
mov dword [ebp - 0x230], 0
push str.Kingsoftoffice6_
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
call fcn.00404580
push str.wpscloudsvr.exe
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.00401590
add esp, 0xc
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
mov byte [ebp - 4], 2
jb 0x4308a0
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x248]
call fcn.00401cd0
cmp eax, 0x4ce088
je 0x4308cb
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x4308bf
mov eax, dword [eax]
push ecx
push eax
mov ecx, 0x4ce088
call fcn.00404580
lea ecx, [ebp - 0x260]
call fcn.00401af0
mov edx, dword [ebp - 0x21c]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x430916
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43090c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43096c
push edx
push ecx
call fcn.00499aee
add esp, 8
mov edx, dword [ebp - 0x234]
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x43097c
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x430972
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x430972
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00499aee
add esp, 8
xor eax, eax
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
push 0x4ce088
mov ecx, esi
call fcn.00401f70
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00499afc
mov esp, ebp
pop ebp
ret 4
push 0x4d3898
call fcn.00499ebf
add esp, 4
cmp dword [0x4d3898], 0xffffffff
jne 0x4307a5
push 0x4a83a0
call fcn.00499d77
push 0x4d3898
call fcn.00499e75
add esp, 8
jmp 0x4307a5
Function at 0x430fe0
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4ce4bc]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x20], eax
xor esi, esi
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
lea eax, [ebp - 0x20]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x43104f
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1c]
cmp ecx, 1
je 0x431052
cmp esi, edi
ja 0x431052
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 8]
add eax, 0xa
add esi, eax
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x431023
mov ecx, dword [ebp - 0x1c]
xor eax, eax
cmp ecx, 1
mov ecx, dword [ebp - 4]
pop edi
sete al
xor ecx, ebp
pop esi
pop ebx
call fcn.00499afc
mov esp, ebp
pop ebp
ret 8