joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42cdf0
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 0x42cfce
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 0x42cf26
mov eax, dword [ebx + 0x14]
dec eax
cmp eax, 4
ja case.default.0x42ce59
jmp dword [eax*4 + 0x42cfd8]
push dword [ebp - 4]
mov ecx, edi
push ebx
call fcn.0042c510
jmp case.default.0x42ce59
cmp dword [ebp - 4], 0x90
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x10], eax
jne 0x42cee6
mov edx, dword [eax + 0x8c]
mov dword [ebp - 0x18], edx
test edx, edx
jne 0x42ce97
push edx
push ebx
mov ecx, edi
call fcn.0042c590
jmp case.default.0x42ce59
lea ecx, [eax + 0x90]
mov eax, dword [ecx]
push edx
push ecx
call dword [eax]
test eax, eax
je 0x42cee6
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.0x42ce59
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je case.default.0x42ce59
push dword [edi]
call esi
push 0
push ebx
mov ecx, edi
call fcn.0042c480
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 0x42ce41
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.0042c590
jmp case.default.0x42ce59
cmp dword [ebp - 4], 0x90
mov eax, dword [ebx + 0x18]
jne 0x42cee6
cmp dword [eax + 0x8c], 0
jne 0x42cf57
push dword [edi]
call edx
jmp 0x42cee6
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 0x42cf97
xor eax, eax
jmp 0x42cfa0
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.0x42ce59
jmp 0x42cedf
mov ecx, dword [ebx + 0x18]
mov eax, dword [ebp - 4]
cmp eax, dword [ecx + 0x8c]
jne 0x42cee6
push dword [edi]
call edx
jmp 0x42cee6
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x42db50
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 0x42dc16
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
je 0x42dc16
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 0x42dba4
call edi
cmp eax, 0x3e5
jne 0x42dbf6
push dword [ebp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x42dbe2
push esi
call dword [sym.imp.KERNEL32.dll_CancelIo]
test eax, eax
je 0x42dbd5
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 0x42dc0c
call edi
test eax, eax
jle 0x42dbda
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 0x42e4f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov esi, ecx
call fcn.0042e7a0
cmp eax, 3
jne 0x42e514
push dword [ebp + 8]
mov ecx, esi
call fcn.0042e490
pop esi
mov esp, ebp
pop ebp
ret 4
call fcn.0042ead0
test al, al
jne 0x42e52d
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
neg eax
sbb eax, eax
inc eax
jmp 0x42e5e7
cmp dword [esi], 0
je 0x42e572
call fcn.0042ead0
test al, al
je 0x42e572
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 0x42e572
mov eax, dword [ebp - 8]
cmp eax, 2
je 0x42e5ef
cmp eax, 3
je 0x42e5ef
call fcn.0042ead0
test al, al
jne 0x42e588
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
neg eax
sbb eax, eax
inc eax
jmp 0x42e5e7
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 0x42e5df
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 0x42e66f
mov ecx, esi
call fcn.0042e7a0
cmp eax, 2
jne 0x42e66f
mov eax, dword [esi]
mov dword [ebp - 0x14], 0
test eax, eax
je 0x42e66f
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 0x42e66f
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0x18]
push 0x2000
mov dword [ebp - 0x18], eax
call fcn.0042f480
test eax, eax
je 0x42e661
mov esi, dword [ebp + 8]
mov eax, dword [esi]
test eax, eax
je 0x42e650
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 0x42e66f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x42e7a0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4cc498]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
mov ecx, dword [edi]
test ecx, ecx
jne 0x42e7ca
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049745c
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 4]
test eax, eax
jne 0x42e8fb
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.004975a2
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 0x42e89c
mov esi, dword [ebx]
test esi, esi
je 0x42e89c
push esi
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x42e89c
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 0x42e89c
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.004975ab
add esp, 4
test esi, esi
je 0x42e8a5
pop esi
pop ebx
mov dword [edi + 4], 1
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049745c
mov esp, ebp
pop ebp
ret
push ebx
call fcn.004975ab
add esp, 4
push 0x220
mov ecx, edi
call fcn.0042e910
test eax, eax
je 0x42e8ed
mov ecx, edi
call fcn.0042e680
cmp eax, 3
je 0x42e8d4
mov ecx, edi
call fcn.0042e6d0
cmp eax, 0x2000
mov eax, 2
jne 0x42e8d9
mov eax, 3
pop esi
pop ebx
mov dword [edi + 4], eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049745c
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.0049745c
mov esp, ebp
pop ebp
ret
Function at 0x42e910
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4cc498]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
cmp dword [edi], 0
je 0x42eabd
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 0x42eabd
push esi
mov ecx, edi
xor esi, esi
call fcn.0042e680
cmp eax, 3
jne 0x42ea44
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], esi
push eax
mov ecx, edi
mov dword [ebp - 0x18], esi
call fcn.0042e3f0
mov edi, dword [ebp - 0x1c]
test eax, eax
je 0x42ea95
mov esi, dword [ebp - 0x14]
test edi, edi
je 0x42e9d0
test esi, esi
je 0x42e9d0
push esi
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x42e9d0
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 0x42ea95
jmp 0x42e9d2
xor esi, esi
test edi, edi
je 0x42eaa0
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 0x42ea95
mov esi, dword [ebp - 0x14]
push ebx
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x42ea34
test esi, esi
je 0x42ea34
push esi
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x42ea34
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 0x42ea95
xor esi, esi
test ebx, ebx
je 0x42ea41
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
jmp 0x42ea95
mov eax, dword [edi]
test eax, eax
je 0x42eaa0
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 0x42eaa0
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
test edi, edi
je 0x42ea93
test esi, esi
je 0x42ea93
push esi
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x42ea93
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 0x42ea99
xor esi, esi
test edi, edi
je 0x42eaa0
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.0049745c
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.0049745c
mov esp, ebp
pop ebp
ret 4
Function at 0x42f3a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
call fcn.0042ead0
test al, al
jne 0x42f3c2
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 0x42f40d
call fcn.0042ead0
test al, al
je 0x42f40d
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 0x42f40d
mov eax, dword [ebp - 4]
cmp eax, 2
je 0x42f403
cmp eax, 3
jne 0x42f40d
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
call fcn.0042ead0
test al, al
je 0x42f3b2
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 0x42f46d
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 0x42fa40
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49d751
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x4cc498]
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.004305f0
cmp dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
jne 0x42fa83
xor esi, esi
jmp 0x42faec
mov eax, dword fs:[0x2c]
mov ecx, dword [0x4d4d58]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x4d1864]
cmp eax, dword [ecx + 4]
jg 0x42fb44
push 0x4d184c
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 0x42fadf
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00413c50
add esp, 0xc
mov esi, eax
jmp 0x42fae4
mov esi, 1
lea ecx, [ebp - 0x40]
call fcn.00401af0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x42fb28
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42fb1e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x42fb1e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0049744e
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.0049745c
mov esp, ebp
pop ebp
ret
push 0x4d1864
call fcn.00497934
add esp, 4
cmp dword [0x4d1864], 0xffffffff
jne 0x42faa3
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 1
push 1
push eax
call fcn.0048fad0
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 0x4d184c
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 0x4a5780
call fcn.004977ec
push 0x4d1864
mov byte [ebp - 4], 0
call fcn.004978ea
add esp, 8
jmp 0x42faa3
Function at 0x4305f0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49d886
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x4cc498]
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 [0x4d4d58]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x264], esi
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x4d1868]
cmp eax, dword [ecx + 4]
jg 0x430863
cmp dword [0x4cc098], 0
jne 0x430839
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 0x430839
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 0x4306b0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4306b0
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 0x430740
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x248]
call fcn.00401cd0
cmp eax, 0x4cc088
je 0x43076b
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x43075f
mov eax, dword [eax]
push ecx
push eax
mov ecx, 0x4cc088
call fcn.00404580
lea ecx, [ebp - 0x260]
call fcn.00401af0
mov edx, dword [ebp - 0x21c]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x4307b6
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4307ac
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43080c
push edx
push ecx
call fcn.0049744e
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 0x43081c
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x430812
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x430812
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0049744e
add esp, 8
xor eax, eax
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
push 0x4cc088
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.0049745c
mov esp, ebp
pop ebp
ret 4
push 0x4d1868
call fcn.00497934
add esp, 4
cmp dword [0x4d1868], 0xffffffff
jne 0x430645
push 0x4a57e0
call fcn.004977ec
push 0x4d1868
call fcn.004978ea
add esp, 8
jmp 0x430645
Function at 0x430e80
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4cc498]
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 0x430eef
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1c]
cmp ecx, 1
je 0x430ef2
cmp esi, edi
ja 0x430ef2
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 0x430ec3
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.0049745c
mov esp, ebp
pop ebp
ret 8
Function at 0x4313f0
Capabilities:
Delete service

Disassembly:
push ebx
push esi
push edi
push 0xf003f
push 0
push 0
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x4314a4
cmp edi, 0xffffffff
je 0x4314a4
push 0xf01ff
push str.wpscloudsvr
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x43147b
cmp esi, 0xffffffff
je 0x43147b
push 0x1388
push esi
mov ecx, ebx
call fcn.00430e80
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov ecx, eax
test ecx, ecx
jne 0x43145d
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x430
sete cl
xor eax, eax
mov ebx, 0x50005
test ecx, ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmovne ebx, eax
call esi
push edi
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
shl ebx, 0x10
or ebx, 5
test esi, esi
je 0x4314bb
cmp esi, 0xffffffff
je 0x4314bb
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
shl ebx, 0x10
or ebx, 5
test edi, edi
je 0x4314c4
cmp edi, 0xffffffff
je 0x4314c4
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x4317d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4cc498]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4d186c]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push edi
mov edi, dword [ebp + 8]
test eax, eax
je 0x431807
push 0x3e9
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [0x4d186c]
inc eax
mov dword [0x4d186c], eax
call fcn.00410f80
test eax, eax
je 0x43195b
mov eax, dword fs:[0x2c]
mov ecx, dword [0x4d4d58]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x4d18f4]
cmp eax, dword [ecx + 4]
jg 0x43197e
push esi
mov esi, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itow_s]
push 0xa
push 0x10
push 0x4d1870
push dword [0x4d18f0]
call esi
push 0xa
push 0x20
mov eax, edi
cdq
push 0x4d18b0
push edx
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__i64tow_s]
add esp, 0x24
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0xa
push 0x10
push 0x4d1890
push eax
call esi
mov ecx, 8
mov dword [0x4d1900], 1
mov esi, str.kcrashdumper.exe
mov dword [0x4d18fc], 0
lea edi, [ebp - 0x28]
mov dword [0x4d18f8], 0xc
rep movsd dword es:[edi], dword [esi]
add esp, 0x10
lea eax, [ebp - 0x28]
movsw word es:[edi], word [esi]
push eax
call fcn.00410f80
push eax
push str._s_s
push 0x4d1908
call fcn.004314d0
call fcn.00411320
push eax
push 0x4d18b0
push 0x4d1890
push 0x4d1870
push str._pid_s__tid_s__exp_s__callfrom1__module_s
push 0x4d2108
call fcn.00431510
push 0x4d324c
push 0x4d3208
push 0
push 0
push 1
push 0
mov eax, 0xa
mov dword [0x4d3208], 0x44
push 0x4d2108
push 0x4d1908
mov dword [0x4d3234], 1
mov word [0x4d3238], ax
call fcn.00491580
add esp, 0x48
mov dword [0x4d325c], eax
test eax, eax
je 0x43195a
push 0xffffffffffffffff
push dword [0x4d324c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [0x4d3250]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [0x4d324c]
call esi
pop esi
call fcn.004319c0
push 0x3e9
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0049745c
mov esp, ebp
pop ebp
ret
push 0x4d18f4
call fcn.00497934
add esp, 4
cmp dword [0x4d18f4], 0xffffffff
jne 0x43183a
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessId]
push 0x4d18f4
mov dword [0x4d18f0], eax
call fcn.004978ea
add esp, 4
jmp 0x43183a