joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c430
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bc200
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x4ea688]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x14], esi
or ebx, 0xffffffff
nop
push 0x4ce6b0
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.00411960
mov dword [ebp - 4], 0
mov ecx, dword [esi + 0x4ec8c8]
push ecx
push eax
lea edx, [ebp - 0x10]
push edx
call fcn.00411960
add esp, 0x18
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c4ac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, ebx
jne 0x41c4c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jmp 0x41c4ca
shr eax, 4
test al, 1
je 0x41c51a
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41c4ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, 8
jb 0x41c460
mov esi, dword [ebp + 8]
push esi
mov ecx, 0x4c561c
call fcn.00425750
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00425a60
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x41c507
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x423690
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
mov edi, eax
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 4]
push 0
push eax
push ecx
push 2
push 0
push edi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 8], eax
test eax, eax
jne 0x4236ca
call fcn.00423a20
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
push 0
push ecx
mov dword [esi + 0x10], 0
mov edx, dword [esi + 0x10]
push edx
mov dword [esi + 4], ecx
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x14]
push ecx
push 4
push eax
mov dword [esi + 0x18], 4
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
mov dword [esi], eax
test eax, eax
jne 0x42371e
call fcn.00423a20
mov edx, dword [esi + 8]
push edx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x423ab0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4f4830]
push ebx
mov ebx, dword [ebp + 0x10]
test eax, eax
jne 0x423aca
call fcn.00423c10
mov dword [0x4f4830], eax
mov eax, dword [eax + 0x140]
cmp eax, 2
jne 0x423aed
mov eax, dword [0x4f4830]
mov ecx, dword [eax + 0x140]
cmp ecx, 2
jne 0x423aed
mov eax, dword [eax + 0x110]
jmp 0x423aef
xor eax, eax
mov edx, dword [ebp + 0xc]
push esi
push edi
push ebx
push 0
push edx
test eax, eax
je 0x423b07
mov ecx, dword [ebp + 8]
push ecx
call eax
pop ebx
pop ebp
ret 0xc
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
pop ebx
pop ebp
ret 0xc

Function at 0x423c80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push 2
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
je 0x423d05
push edi
push 0x10
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x423cfd
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x423cfd
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x423cf6
mov ecx, dword [ebp - 4]
push ecx
call fcn.00492838
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x423cf6
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
push edx
push eax
push ebx
call fcn.00499f30
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
xor esi, esi
cmp ebx, esi
je 0x423d49
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
push 0x4ce6b0
push ebx
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x423d40
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov esi, 1
push ebx
call fcn.004929f3
add esp, 4
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x424130
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [edi]
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp + 8]
push esi
add eax, eax
lea edx, [ebp + 0xc]
push edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42419e
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x42416d
cmp eax, 2
jne 0x424188
mov eax, dword [ebp - 4]
test esi, esi
je 0x424198
test eax, eax
je 0x424193
test al, 1
jne 0x424188
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x424198
mov eax, 0xd
mov esp, ebp
pop ebp
ret 8
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x424990
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsQHSafeMain.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x424a18
lea ecx, [ebp - 8]
push ecx
push esi
lea edx, [ebp - 0xc]
push edx
push eax
mov eax, dword [ebp - 4]
push 0x4ce6b4
push eax
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4249f2
sub eax, edx
sar eax, 1
je 0x424a1a
cmp word [esi + eax*2 - 2], 0x5c
je 0x424a1a
mov edx, 0x5c
mov word [esi + eax*2], dx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x425570
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x42558d
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4255c4
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x4255c0
lea ecx, [ecx]
cmp esi, eax
jae 0x4255c4
sub edi, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4255b0
cmp esi, eax
jb 0x4255cb
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x425fd0
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b7d18
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4ea688]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x20000000
push 0
push 0
mov byte [ebp - 0xd], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x42611d
push 0x20000012
push str.QHProtected
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
mov dword [ebp - 0x14], ebx
test ebx, ebx
je 0x426104
push str.Global2F756C90_7BF1_46e0_9FEC_7FFE3C4DB01F__
push 0
push 1
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, eax
xor eax, eax
test esi, esi
setne al
push 0
push 0
push ebx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], eax
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov edi, eax
test edi, edi
je 0x42607e
cmp dword [ebp - 0x18], 0
je 0x42607e
push 0xbb8
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
jne 0x4260a3
cmp eax, 0x420
je 0x4260a3
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x426104
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x426104
push str._safemonWscReg.exe
lea ecx, [ebp - 0x18]
push 0x4f26fc
push ecx
call fcn.00411960
mov edx, dword [ebp + 8]
mov eax, dword [eax]
push edx
push eax
call fcn.00425e30
add esp, 0x14
test eax, eax
mov eax, dword [ebp - 0x18]
sete bl
add eax, 0xfffffff0
or edi, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4260eb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], edi
test bl, bl
jne 0x4260f6
mov byte [ebp - 0xd], 1
test esi, esi
je 0x426101
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ecx
call esi
test ebx, ebx
je 0x426117
push ebx
call esi
cmp byte [ebp - 0xd], 0
jne 0x42614e
cmp dword [ebp + 0xc], 0
jne 0x42614e
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp + 8]
push 1
push edx
call fcn.00425fd0
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
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4262d0
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push edi
push 1
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
cmp edi, ebx
jne 0x4262f2
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 4
push str.wscsvc
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
cmp esi, ebx
jne 0x426317
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1c]
push eax
push esi
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x18], 4
jne 0x426341
mov bl, 1
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop esi
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x426360
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b62cb
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x4ea688]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
test edi, edi
je 0x426476
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
push ecx
mov word [ebp - 0x218], ax
call fcn.004982c0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x4263ed
push str.wbemcomn.dll
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x4263ed
lea ecx, [ebp - 0x218]
push ecx
call fcn.00424290
push 0
push 0
push 0
push 3
push 4
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
je 0x426410
cmp eax, 0x80010119
jne 0x426476
lea ebx, [esi + 4]
push ebx
push 0x4c16dc
push 5
push 0
push 0x4c452c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x426476
cmp dword [ebx], 0
je 0x426476
push edi
lea ecx, [ebp - 0x21c]
call fcn.00424040
mov dword [ebp - 4], 0
mov eax, dword [eax]
push eax
mov ecx, esi
call fcn.004264a0
mov edx, dword [ebp - 0x21c]
push edx
mov edi, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test edi, edi
jl 0x426476
cmp dword [esi], 0
je 0x426472
cmp dword [ebx], 0
je 0x426472
mov eax, 1
jmp 0x426478
xor eax, eax
jmp 0x426478
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00491db1
mov esp, ebp
pop ebp
ret
Function at 0x426bc0
Capabilities:
Check if file exists
Check os version
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bd9b0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4ea688]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x14], esi
mov eax, dword [0x4f4844]
cmp eax, esi
jne 0x426c13
push 0x4f4840
mov dword [0x4f4840], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [0x4f4844]
cmp eax, 6
ja 0x426c2b
jne 0x426cf2
cmp dword [0x4f4848], 2
jb 0x426cf2
lea edi, [ebp - 0x10]
call fcn.00426ae0
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], esi
jne 0x426c83
push ebx
mov ecx, 0x4c561c
call fcn.00425750
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x426c6f
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov eax, ebx
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 str.temp_
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.00411960
mov eax, dword [eax]
add esp, 0xc
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x426cc1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.temp_
lea ecx, [ebp - 0x10]
push ecx
push ebx
call fcn.00411960
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
add esp, 0xc
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x426c63
mov edx, dword [0x4f03cc]
mov eax, dword [edx + 0xc]
mov ecx, 0x4f03cc
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x10]
mov dword [ebp - 4], 1
call fcn.00411c20
push 1
push 0x23
mov esi, eax
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x426d36
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.360Safe
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov esi, dword [ebp - 0x10]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004938a4
add esp, 8
test eax, eax
jl 0x426dbb
cmp eax, dword [esi - 8]
jg 0x426dbb
xor ecx, ecx
mov dword [esi - 0xc], eax
push esi
mov word [esi + eax*2], cx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x426d77
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 1
push 0x4ce6b0
lea edx, [ebp - 0x10]
push edx
call fcn.00415020
mov esi, dword [ebp - 0x10]
add esi, 0xfffffff0
mov eax, esi
call fcn.00425a60
add eax, 0x10
mov dword [ebx], eax
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x426c6f
mov ecx, dword [esi]
push esi
jmp 0x426c68
push 0x80070057
call fcn.00425ad0
int3
Function at 0x427760
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
cmp eax, 1
jne 0x427774
mov esi, str.EnableAvira
jmp 0x42778a
cmp eax, 3
jne 0x427780
mov esi, str.EnableKP
jmp 0x42778a
cmp eax, 2
jne 0x4277e9
mov esi, str.EnableBD
lea eax, [ebp - 4]
push eax
push 2
push edi
push str.Software360TotalSecuritydeepscan
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 4]
cmp eax, edi
je 0x4277c1
cmp ecx, edi
jne 0x4277c1
cmp eax, 2
jne 0x4277e1
mov edi, 1
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, edi
je 0x4277d2
cmp eax, 2
jne 0x4277d7
mov edi, 1
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x427800
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4ea688]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, ecx
push esi
call edi
test eax, eax
jne 0x427891
push 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.004982c0
push esi
push str._s.bak
lea ecx, [ebp - 0x20c]
push 0x208
push ecx
call fcn.00425450
add esp, 0x1c
lea edx, [ebp - 0x20c]
push edx
call edi
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x42788c
push 4
push 0
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491db1
mov esp, ebp
pop ebp
ret
call fcn.004278b0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00491db1
mov esp, ebp
pop ebp
ret

Function at 0x4278b0
Capabilities:
Delete file

Disassembly:
mov eax, dword [0x4f4830]
test eax, eax
jne 0x4278c3
call fcn.00423c10
mov dword [0x4f4830], eax
mov eax, dword [eax + 0x140]
cmp eax, 2
jne 0x4278e3
mov eax, dword [0x4f4830]
mov ecx, dword [eax + 0x140]
cmp ecx, 2
jne 0x4278e3
mov eax, dword [eax + 0x50]
jmp 0x4278e5
xor eax, eax
push esi
test eax, eax
je 0x4278ed
call eax
ret
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
ret
Function at 0x427ab0
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
push edi
test eax, eax
je 0x427bcf
xor ecx, ecx
cmp cx, word [eax]
je 0x427bcf
cmp dword [ebp + 8], ecx
je 0x427bcf
push ecx
push 0x80
push 4
push ecx
push 7
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x427bcf
push 0
push esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], 1
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor edx, edx
test eax, eax
sete dl
mov dword [esp + 0xc], 0
mov edi, edx
cmp eax, 0x10
jb 0x427bd8
add eax, 0xfffffff0
xor edx, edx
mov ecx, 0x30
div ecx
test edx, edx
jne 0x427bdc
xor eax, eax
push eax
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
push 0x10
lea eax, [esp + 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x18], 0x54535653
jne 0x427bdc
cmp dword [esp + 0x1c], 1
jne 0x427bdc
test edi, edi
je 0x427bee
xor eax, eax
push eax
push eax
push eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
push esi
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x28], 0x54535653
mov dword [esp + 0x2c], 1
call ebx
push 0
lea ecx, [esp + 0x10]
push ecx
push 0x10
lea edx, [esp + 0x24]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x427bc6
cmp dword [esp + 0xc], 0x10
je 0x427bfb
lea eax, [esp + 0x10]
call fcn.00427a20
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
jbe 0x427b7a
push 0
push 0
push 0
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x427b7e
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp + 8]
push 0
lea eax, [esp + 0x10]
push eax
push 0x30
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x427bc6
cmp dword [esp + 0xc], 0x30
jne 0x427bc6
lea eax, [esp + 0x10]
call fcn.00427a20
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x427cc0
Capabilities:
Copy file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
test eax, eax
je 0x427d7c
xor ecx, ecx
cmp cx, word [eax]
je 0x427d7c
test ebx, ebx
je 0x427d7c
xor edx, edx
cmp dx, word [ebx]
je 0x427d7c
cmp dword [ebp + 0xc], ecx
je 0x427d7c
push edi
xor edi, edi
cmp dword [ebp + 0x10], ecx
je 0x427d12
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edi, eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x427d73
push 0
lea eax, [ebp - 4]
push eax
push 2
lea ecx, [ebp - 8]
push ecx
mov dword [ebp - 4], edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov dword [ebp - 8], 0xfeff
call edi
mov eax, dword [ebp + 0xc]
push 0
lea edx, [ebp - 4]
push edx
lea ecx, [eax + eax]
push ecx
push ebx
push esi
mov dword [ebp - 4], 0
call edi
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x427d90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [eax + 0x14], 0
push esi
je 0x427dc2
cmp dword [eax + 0x18], 8
jb 0x427da2
mov esi, dword [eax + 4]
jmp 0x427da5
lea esi, [eax + 4]
test esi, esi
je 0x427dc2
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x427dc6
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
test eax, eax
je 0x427dca
xor eax, eax
pop esi
ret
test al, 0x10
je 0x427dc2
mov eax, 1
pop esi
ret

Function at 0x427f30
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x4ea688]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x427ff4
push edi
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x61c]
push str.__s_
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 3
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x427ff3
push esi
push 0
push 0
push 0x4c561c
push 0
push 0x4ceed0
lea eax, [ebp - 0x61c]
push eax
push 1
push 2
push 0x10
push 0xf01ff
push 0x4ceed8
push str.QHActiveDefense
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
test esi, esi
je 0x427fe2
lea ecx, [ebp - 0x620]
push ecx
push 1
push esi
mov dword [ebp - 0x620], 0x4ceed8
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
test esi, esi
je 0x427ff2
push esi
call edi
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491db1
mov esp, ebp
pop ebp
ret