joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a4679
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push str.LocalQ360CleanupPlusWorking
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
je 0x4a4699
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4a4696
xor al, al
ret

Function at 0x4a4774
Capabilities:
Get disk information
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x5382cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
and ebx, 0xffdf
xor esi, esi
inc esi
lea eax, [ebx - 0x41]
push edi
mov dword [ebp - 0x30], esi
cmp ax, 0x19
ja 0x4a487c
mov eax, dword [0x4f8cfc]
mov dword [ebp - 0xc], eax
mov eax, dword [0x4f8d00]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 0xc], bx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
je 0x4a487c
push 3
pop ecx
cmp eax, ecx
je 0x4a47e8
jbe 0x4a47e1
cmp eax, 5
jbe 0x4a487c
cmp eax, 6
je 0x4a47e8
mov eax, esi
jmp 0x4a487e
mov esi, str..X:
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov word [ebp - 0x14], bx
xor ebx, ebx
push ebx
push ebx
push ecx
push ebx
push ecx
push 0x80000000
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2c], eax
cmp eax, 0xffffffff
jne 0x4a481c
xor eax, eax
inc eax
jmp 0x4a487e
mov edi, 0x227
push edi
call fcn.004b19c0
pop ecx
push ebx
mov esi, eax
mov dword [esi + 4], edi
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
push dword [esi + 4]
lea eax, [ebp - 0x28]
push esi
push 0xc
push eax
push 0x2d1400
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4a4867
mov eax, dword [esi + 0x1c]
cmp eax, 7
je 0x4a4864
cmp eax, 4
jne 0x4a4867
mov dword [ebp - 0x30], ebx
push esi
call fcn.004b5ee1
pop ecx
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x30]
jmp 0x4a487e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b48bf
leave
ret

Function at 0x4a488d
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5382cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and eax, 0xffdf
lea ecx, [eax - 0x41]
cmp cx, 0x19
ja 0x4a48fd
mov ecx, dword [0x4f8cfc]
mov dword [ebp - 0xc], ecx
mov ecx, dword [0x4f8d00]
mov word [ebp - 0xc], ax
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
dec eax
dec eax
je 0x4a48f8
dec eax
dec eax
je 0x4a48f4
dec eax
je 0x4a48f0
dec eax
je 0x4a48ec
push dword [ebp + 8]
call fcn.004a4774
neg eax
sbb eax, eax
pop ecx
inc eax
jmp 0x4a48ff
push 5
jmp 0x4a48fa
push 4
jmp 0x4a48fa
push 3
jmp 0x4a48fa
push 2
pop eax
jmp 0x4a4900
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b48bf
leave
ret
Function at 0x4a490c
Capabilities:
Get disk size

Disassembly:
push 0x28
mov eax, 0x4e8b3b
call fcn.004b5417
xor esi, esi
cmp dword [0x53fe44], esi
je 0x4a492d
mov esi, dword [0x53fe48]
jmp 0x4a4a41
push esi
push esi
push esi
push esi
call fcn.004971e8
or ebx, 0xffffffff
add esp, 0x10
cmp eax, ebx
jne 0x4a4947
push 0x73
jmp 0x4a4a40
cmp dword [0x540398], esi
je 0x4a4a3e
call fcn.0046a127
test eax, eax
jne 0x4a4a3e
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x84]
cmp eax, 0x6c
jne 0x4a4974
push eax
jmp 0x4a4a40
lea eax, [ebp - 0x1c]
push eax
mov ecx, 0x53fda0
call fcn.0046fad7
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x1c]
cmp dword [eax - 0xc], esi
jne 0x4a49a0
push 0x71
pop esi
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x1c]
call fcn.0040d610
jmp 0x4a4a41
push eax
call fcn.0049ebcb
pop ecx
test al, al
jne 0x4a49af
push 0x6d
jmp 0x4a498f
mov eax, dword [0x50248c]
mov dword [ebp - 0x18], eax
mov eax, dword [0x502490]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1c]
cmp dword [eax - 0xc], esi
jge 0x4a49d1
push 0x80070057
call fcn.0040b600
mov ax, word [eax]
mov word [ebp - 0x18], ax
push dword [ebp - 0x18]
call fcn.004a488d
pop ecx
cmp eax, 1
je 0x4a49ea
push 0x70
jmp 0x4a498f
xor eax, eax
mov dword [ebp - 0x24], esi
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
mov dword [ebp - 0x34], esi
lea edi, [ebp - 0x30]
stosd dword es:[edi], eax
mov dword [ebp - 0x2c], esi
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x4a4990
cmp dword [ebp - 0x20], esi
ja 0x4a4990
jb 0x4a4a37
cmp dword [ebp - 0x24], 0x11e1a300
ja 0x4a4990
push 0x6f
jmp 0x4a498f
push 0x6b
pop esi
mov eax, esi
call fcn.004b549a
ret

Function at 0x4a4a49
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push 0x541444
mov esi, 0x4000
push esi
call fcn.004b6290
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4a4af5
push esi
push 0
push edi
call fcn.004b47e0
add esp, 0xc
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x4a4aee
cmp eax, 0x3fff
ja 0x4a4aee
push edi
push eax
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4a4aee
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x4f8b70
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4a4aee
mov eax, dword [ebp - 4]
mov cx, word [eax + 0xa]
mov edx, dword [ebp + 0xc]
mov word [edx], cx
mov cx, word [eax + 8]
mov edx, dword [ebp + 0x10]
mov word [edx], cx
mov cx, word [eax + 0xe]
mov edx, dword [ebp + 0x14]
mov word [edx], cx
mov ax, word [eax + 0xc]
mov ecx, dword [ebp + 0x18]
push edi
mov word [ecx], ax
call fcn.004b5ee1
xor eax, eax
pop ecx
inc eax
jmp 0x4a4af7
push edi
call fcn.004b5ee1
pop ecx
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4a4bca
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5382cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.004b47e0
add esp, 0xc
push 0
push 0x25
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jl 0x4a4c2c
push str.User32.dll
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
and dword [ebp - 0x210], 0
lea eax, [ebp - 0x20c]
push eax
call fcn.0043b83c
mov dword [ebp - 0x214], eax
test eax, eax
je 0x4a4c6f
push str.ShutdownBlockReasonCreate
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4a4c63
push ebx
push edi
call eax
mov dword [ebp - 0x210], eax
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
pop edi
xor ecx, ebp
pop ebx
call fcn.004b48bf
leave
ret

Function at 0x4a4c83
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5382cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x210], eax
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
xor edi, edi
lea eax, [ebp - 0x20a]
push edi
push eax
call fcn.004b47e0
add esp, 0xc
push edi
push 0x25
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jl 0x4a4ce8
push str.User32.dll
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call fcn.0043b83c
mov esi, eax
cmp esi, edi
je 0x4a4d1b
push str.ShutdownBlockReasonDestroy
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x4a4d14
push dword [ebp - 0x210]
call eax
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004b48bf
leave
ret
Function at 0x4a869d
Capabilities:
Check if file exists

Disassembly:
push 4
mov eax, 0x4e90e3
call fcn.004b53ae
mov esi, ecx
mov ebx, dword [ebp + 8]
xor edi, edi
cmp ebx, edi
jne 0x4a86bb
xor eax, eax
jmp 0x4a87d8
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4a86b4
lea eax, [ebp - 0x10]
push eax
push 0xa
mov ecx, esi
mov dword [ebp - 0x10], edi
call fcn.004a7c27
cmp dword [ebp - 0x10], edi
je 0x4a86e7
push dword [ebp + 0xc]
push ebx
call dword [ebp - 0x10]
jmp 0x4a87d8
mov dword [ebp + 8], edi
mov dword [ebp - 4], 1
lea eax, [ebp + 8]
push eax
push 0x50726c
mov ecx, esi
call fcn.004a7bf1
mov esi, dword [ebp + 0xc]
cmp esi, edi
je 0x4a870b
or dword [esi], 0xffffffff
mov eax, dword [ebp + 8]
cmp eax, edi
je 0x4a87ca
mov ecx, dword [eax]
push edi
push ebx
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x4a87ca
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
push edx
push 4
mov dword [ebp + 0xc], edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x54]
push 3
pop ebx
test eax, eax
je 0x4a876c
mov eax, dword [ebp + 0xc]
shl eax, 0x10
sar eax, 0x1c
cmp eax, 2
je 0x4a8751
cmp eax, ebx
jne 0x4a876c
cmp esi, edi
je 0x4a875b
mov dword [esi], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00486aaf
xor eax, eax
inc eax
jmp 0x4a87d8
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
push edx
push ebx
mov dword [ebp + 0xc], edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x54]
test eax, eax
je 0x4a8798
mov eax, dword [ebp + 0xc]
and eax, 0xf00
cmp eax, 0x300
jne 0x4a8798
cmp esi, edi
je 0x4a875b
mov dword [esi], ebx
jmp 0x4a875b
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
push edx
push 5
mov dword [ebp + 0xc], edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x54]
test eax, eax
je 0x4a87ca
mov eax, dword [ebp + 0xc]
and eax, 0xf0000
cmp eax, 0x30000
jne 0x4a87ca
cmp esi, edi
je 0x4a87c7
mov dword [esi], 4
xor edi, edi
inc edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00486aaf
mov eax, edi
call fcn.004b5486
ret 8

Function at 0x4a87fb
Capabilities:
Create thread

Disassembly:
push 4
mov eax, 0x4e9106
call fcn.004b53ae
xor ebx, ebx
cmp dword [ebp + 8], ebx
jne 0x4a8816
xor al, al
call fcn.004b5486
ret
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x10], ebx
push 0x4a87e0
push ebx
push ebx
call fcn.004ba979
add esp, 0x18
mov dword [ebp + 8], eax
mov dword [ebp - 4], ebx
cmp dword [0x536040], eax
je 0x4a8842
cmp eax, ebx
jne 0x4a8852
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0043f1fb
mov al, bl
jmp 0x4a8810
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov bl, 1
jmp 0x4a8842
Function at 0x4b1580
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x5413d8], 0
push esi
jne 0x4b14f3
call fcn.004b1419
test eax, eax
je 0x4b1536
mov eax, dword [0x5413d8]
cmp eax, 1
jne 0x4b1514
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4b1536
pop esi
ret
push eax
call dword [0x5413e0]
test eax, eax
jne 0x4b157e
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4b153a
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x5413d8]
call dword [0x5413e0]
mov edi, eax
test edi, edi
je 0x4b155f
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x4b157b
mov edi, esi
add esi, 0xff0
push edi
push dword [0x5413d8]
call dword [0x5413dc]
add edi, 0x10
cmp edi, esi
jb 0x4b1567
mov eax, edi
pop edi
pop esi
ret
jmp 0x4b14e0

Function at 0x4b48bf
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5382cc]
jne 0x4b48c9
repz ret
jmp fcn.004bf02e

Function at 0x4d3097
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004bf5b9
and dword [ebp - 4], 0
cmp dword [0x54223c], 0
mov ebx, eax
jne 0x4d3148
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4d31f9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4d31f9
push eax
call fcn.004bf547
mov dword [esp], 0x50ba7c
push edi
mov dword [0x54223c], eax
call esi
push eax
call fcn.004bf547
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x542240], eax
call esi
push eax
call fcn.004bf547
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x542244], eax
call esi
push eax
call fcn.004bf547
pop ecx
mov dword [0x54224c], eax
test eax, eax
je 0x4d3148
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004bf547
pop ecx
mov dword [0x542248], eax
mov eax, dword [0x542248]
cmp eax, ebx
je 0x4d31a0
cmp dword [0x54224c], ebx
je 0x4d31a0
push eax
call fcn.004bf5c2
push dword [0x54224c]
mov esi, eax
call fcn.004bf5c2
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4d31a0
test edi, edi
je 0x4d31a0
call esi
test eax, eax
je 0x4d3197
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4d3197
test byte [ebp - 0xc], 1
jne 0x4d31a0
or dword [ebp + 0x10], 0x200000
jmp 0x4d31d9
mov eax, dword [0x542240]
cmp eax, ebx
je 0x4d31d9
push eax
call fcn.004bf5c2
pop ecx
test eax, eax
je 0x4d31d9
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4d31d9
mov eax, dword [0x542244]
cmp eax, ebx
je 0x4d31d9
push eax
call fcn.004bf5c2
pop ecx
test eax, eax
je 0x4d31d9
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x54223c]
call fcn.004bf5c2
pop ecx
test eax, eax
je 0x4d31f9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4d31fb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4d7970
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x5382cc]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
mov ebx, dword [esp + 0x214]
test ebx, ebx
jne 0x4d79a8
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004b48bf
add esp, 0x20c
ret
push esi
push 0x208
lea eax, [esp + 0xc]
push 0
push eax
call fcn.004b47e0
add esp, 0xc
push 0x104
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x4d7a73
mov ecx, ebx
lea esi, [ecx + 2]
lea ebx, [ebx]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4d79e0
sub ecx, esi
sar ecx, 1
mov edx, 0x103
sub edx, ecx
cmp eax, edx
jae 0x4d7a73
push edi
lea edi, [esp + 0xc]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4d7a02
mov eax, dword [0x4f8b70]
mov dword [edi], eax
mov eax, ebx
mov edx, ebx
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4d7a20
lea edi, [esp + 0xc]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4d7a34
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004b48bf
add esp, 0x20c
ret
mov ecx, dword [esp + 0x210]
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004b48bf
add esp, 0x20c
ret
Function at 0x4d8150
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x2c14
call fcn.004b4f50
mov eax, dword [0x5382cc]
xor eax, esp
mov dword [esp + 0x2c10], eax
mov eax, dword [esp + 0x2c18]
push edi
xor edi, edi
mov dword [esp + 0xc], eax
cmp eax, edi
je 0x4d82bb
cmp dword [esp + 0x2c20], edi
je 0x4d82bb
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
mov dword [esp + 0x10], edi
xor ebx, ebx
lea ebx, [ebx]
push ebx
push str..PhysicalDrive_d
lea eax, [esp + 0x30]
push 0x100
push eax
call fcn.0043e578
add esp, 0x10
push edi
push edi
push 3
push edi
push 3
push edi
lea ecx, [esp + 0x40]
push ecx
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x4d8294
xor eax, eax
push 0x2710
lea edx, [esp + 0x514]
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
push edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
call fcn.004b47e0
add esp, 0xc
push edi
lea eax, [esp + 0x18]
push eax
push 0x2710
lea ecx, [esp + 0x51c]
push ecx
push 0xc
lea edx, [esp + 0x30]
push edx
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4d8287
push 0x3e8
lea eax, [esp + 0x12c]
push edi
push eax
call fcn.004b47e0
mov edx, dword [esp + 0x534]
lea ecx, [esp + 0x134]
push ecx
push 1
push edx
lea eax, [esp + 0x528]
push eax
call fcn.004d9a60
mov edx, dword [esp + 0x2c48]
mov eax, dword [esp + 0x34]
add esp, 0x1c
lea ecx, [esp + 0x128]
push ecx
push edx
push eax
call fcn.0043e223
test eax, eax
jne 0x4d8287
mov dword [esp + 0x10], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], edi
jne 0x4d829e
inc ebx
cmp ebx, 0x10
jl 0x4d81a0
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
mov ecx, dword [esp + 0x2c10]
xor ecx, esp
call fcn.004b48bf
add esp, 0x2c14
ret
mov ecx, dword [esp + 0x2c14]
pop edi
xor ecx, esp
xor eax, eax
call fcn.004b48bf
add esp, 0x2c14
ret
Function at 0x4d8560
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x2ec
mov eax, dword [0x5382cc]
xor eax, esp
mov dword [esp + 0x2e8], eax
push edi
mov edi, dword [esp + 0x2f4]
mov dword [esp + 0x18], edi
test edi, edi
je 0x4d8761
cmp dword [esp + 0x2f8], 0
je 0x4d8761
push 0x64
lea eax, [esp + 0x20]
push 0
push eax
call fcn.004b47e0
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 8
push 0
push 0x50bb30
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4d8728
mov ecx, dword [esp + 4]
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x100]
push eax
push ebx
mov esi, 0x104
push ecx
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x4d871b
lea ebx, [ebx]
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
push 1
push 0
lea eax, [esp + 0xf8]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4d86e9
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1f4]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push str.ServiceName
push edx
mov dword [esp + 0x30], 1
mov dword [esp + 0x34], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4d86de
push 0x64
push eax
lea eax, [esp + 0x90]
push eax
call fcn.004b47e0
lea ecx, [esp + 0x1fc]
push 0x64
push ecx
lea edi, [esp + 0x9c]
call fcn.004d8450
add esp, 0x14
test eax, eax
je 0x4d86de
cmp byte [esp + 0x24], 0
je 0x4d86a2
lea edx, [esp + 0x24]
push edx
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jge 0x4d86de
lea eax, [esp + 0x24]
lea esi, [esp + 0x88]
mov ecx, eax
mov edx, 0x64
sub esi, ecx
lea ecx, [edx + 0x7fffff9a]
test ecx, ecx
je 0x4d86d1
mov cl, byte [esi + eax]
test cl, cl
je 0x4d86d1
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x4d86b6
jmp 0x4d86d5
test edx, edx
jne 0x4d86d6
dec eax
mov byte [eax], 0
mov esi, 0x104
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0xc]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x100]
push ecx
inc ebx
push ebx
push edx
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x4d8600
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
cmp byte [esp + 0x1c], 0
je 0x4d8761
mov edx, dword [esp + 0x2f8]
lea ecx, [esp + 0x1c]
push ecx
push edx
push edi
call fcn.0043e223
xor ecx, ecx
test eax, eax
setge cl
pop edi
mov eax, ecx
mov ecx, dword [esp + 0x2e8]
xor ecx, esp
call fcn.004b48bf
add esp, 0x2ec
ret
mov ecx, dword [esp + 0x2ec]
pop edi
xor ecx, esp
xor eax, eax
call fcn.004b48bf
add esp, 0x2ec
ret
Function at 0x4d8b00
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x50c
mov eax, dword [0x5382cc]
xor eax, esp
mov dword [esp + 0x508], eax
push ebp
mov ebp, dword [esp + 0x514]
test edi, edi
je 0x4d8c7d
cmp ebp, 0x20
jb 0x4d8c7d
push 0x400
lea eax, [esp + 0x110]
push 0
push eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0x400
call fcn.004b47e0
add esp, 0xc
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x110]
push edx
lea eax, [esp + 0x10]
push eax
push 0x4fc560
push str.Software360SafeLiveup
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x4d8c7d
lea eax, [esp + 0x10c]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4d8b90
sub eax, edx
cmp eax, 0x40
jne 0x4d8c7d
push ebx
lea edx, [eax + 0x40]
push esi
lea eax, [esp + 0x14]
lea esi, [esp + 0x114]
mov ecx, eax
sub esi, ecx
lea ecx, [edx - 0x60]
test ecx, ecx
je 0x4d8bce
mov cl, byte [esi + eax]
test cl, cl
je 0x4d8bce
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x4d8bb6
jmp 0x4d8bd2
test edx, edx
jne 0x4d8bd3
dec eax
mov byte [eax], 0
lea eax, [esp + 0x94]
lea edx, [esp + 0x134]
mov ecx, eax
mov esi, 0x80
sub edx, ecx
lea ecx, [ecx]
lea ecx, [esi + 0x7fffff7e]
test ecx, ecx
je 0x4d8c0b
mov cl, byte [edx + eax]
test cl, cl
je 0x4d8c0b
mov byte [eax], cl
inc eax
sub esi, 1
jne 0x4d8bf0
jmp 0x4d8c0f
test esi, esi
jne 0x4d8c10
dec eax
push 0x400
lea edx, [esp + 0x118]
push 0
push edx
mov byte [eax], 0
call fcn.004b47e0
push 0x400
lea ebx, [esp + 0x124]
lea ecx, [esp + 0x24]
call fcn.004d7bd0
add esp, 0x10
lea eax, [esp + 0x94]
push eax
mov ecx, ebx
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
pop esi
pop ebx
test eax, eax
jne 0x4d8c7d
lea edx, [esp + 0xc]
push edx
push ebp
push edi
call fcn.0043e223
neg eax
sbb eax, eax
inc eax
pop ebp
mov ecx, dword [esp + 0x508]
xor ecx, esp
call fcn.004b48bf
add esp, 0x50c
ret
mov ecx, dword [esp + 0x50c]
pop ebp
xor ecx, esp
xor eax, eax
call fcn.004b48bf
add esp, 0x50c
ret