joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418ad0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0042b4f0
mov eax, dword [0x469340]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [ebp + 8], 0xffffffff
je 0x418af9
cmp dword [ebp + 0xc], 0
je 0x418af9
cmp dword [ebp + 0x10], 0
jg 0x418b00
xor eax, eax
jmp 0x418c3e
mov dword [ebp - 0xc], 0x1000
mov eax, dword [ebp + 0x10]
cdq
and edx, 0xfff
add eax, edx
sar eax, 0xc
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
and eax, 0x80000fff
jns 0x418b2a
dec eax
or eax, 0xfffff000
inc eax
mov dword [ebp - 0x1014], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x1018], 0
mov dword [ebp - 0x101c], 0
jmp 0x418b5b
mov edx, dword [ebp - 0x101c]
add edx, 1
mov dword [ebp - 0x101c], edx
mov eax, dword [ebp - 0x101c]
cmp eax, dword [ebp - 8]
jge 0x418bcb
push 0x1000
mov ecx, dword [ebp - 4]
push ecx
lea edx, [ebp - 0x1010]
push edx
call fcn.0042b540
add esp, 0xc
push 0
lea eax, [ebp - 0x1018]
push eax
push 0x1000
lea ecx, [ebp - 0x1010]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x418ba8
xor eax, eax
jmp 0x418c3e
cmp dword [ebp + 0x14], 0
je 0x418bbe
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
add ecx, dword [ebp - 0x1018]
mov edx, dword [ebp + 0x14]
mov dword [edx], ecx
mov eax, dword [ebp - 4]
add eax, 0x1000
mov dword [ebp - 4], eax
jmp 0x418b4c
cmp dword [ebp - 0x1014], 0
jle 0x418c39
mov ecx, dword [ebp - 0x1014]
push ecx
mov edx, dword [ebp - 4]
push edx
lea eax, [ebp - 0x1010]
push eax
call fcn.0042b540
add esp, 0xc
push 0
lea ecx, [ebp - 0x1018]
push ecx
mov edx, dword [ebp - 0x1014]
push edx
lea eax, [ebp - 0x1010]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x418c17
xor eax, eax
jmp 0x418c3e
cmp dword [ebp + 0x14], 0
je 0x418c2d
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
add eax, dword [ebp - 0x1018]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
add edx, 0x1000
mov dword [ebp - 4], edx
mov eax, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042b4da
mov esp, ebp
pop ebp
ret
Function at 0x418c50
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x469340]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x41c], ecx
push 0x208
push 0
lea eax, [ebp - 0x418]
push eax
call fcn.0042b460
add esp, 0xc
push 0x208
push 0
lea ecx, [ebp - 0x210]
push ecx
call fcn.0042b460
add esp, 0xc
lea edx, [ebp - 0x210]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x418]
push eax
push 0
push str.ludashi
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea edx, [ebp - 0x418]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x418]
push eax
mov ecx, dword [ebp - 0x41c]
call fcn.00418a50
test eax, eax
jne 0x418ce9
xor eax, eax
jmp 0x418d2f
mov ecx, dword [ebp + 8]
call fcn.0040c890
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov ecx, dword [ebp + 8]
call fcn.0040c890
push eax
lea ecx, [ebp - 0x418]
push ecx
mov ecx, dword [ebp - 0x41c]
call fcn.00418d40
test eax, eax
jne 0x418d1d
xor eax, eax
jmp 0x418d2f
lea edx, [ebp - 0x418]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042b4da
mov esp, ebp
pop ebp
ret 4

Function at 0x41a270
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.0042b4f0
mov eax, dword [0x469340]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x1010], 0x800
push 0x1000
push 0
lea eax, [ebp - 0x1008]
push eax
call fcn.0042b460
add esp, 0xc
push 0x45d4a8
push 0x800
lea ecx, [ebp - 0x1008]
push ecx
call fcn.0041aba0
push 0x45d4b0
push 0x800
lea edx, [ebp - 0x1008]
push edx
call fcn.0041aba0
push 0x45d4b8
push 0x800
lea eax, [ebp - 0x1008]
push eax
call fcn.0041aba0
push 0x45d4e4
push 0x800
lea ecx, [ebp - 0x1008]
push ecx
call fcn.0041aba0
push str.vL
push 0x800
lea edx, [ebp - 0x1008]
push edx
call fcn.0041aba0
mov eax, dword [ebp + 8]
push eax
push 0x800
lea ecx, [ebp - 0x1008]
push ecx
call fcn.0041aba0
push 0x45d510
push 0x800
lea edx, [ebp - 0x1008]
push edx
call fcn.0041aba0
push 0x14
push 0x45d530
lea eax, [ebp - 0x1008]
push eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov dword [ebp - 0x100c], eax
cmp dword [ebp - 0x100c], 6
jne 0x41a382
push 5
push 0
push 0
push str.http:__dl.ludashi.com_ludashi_ludashisetup.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [ebp + 0xc], 0
je 0x41a38f
push 0
call fcn.0042dd1b
mov eax, dword [ebp - 0x100c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042b4da
mov esp, ebp
pop ebp
ret

Function at 0x41a650
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop ebp
ret 0x18
Function at 0x41a680
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop ebp
ret 4
Function at 0x422000
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 8]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x422069
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x422040
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x42206b
mov edx, dword [ebp - 8]
add edx, 0x1c
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
add ecx, 4
call fcn.00422800
mov ecx, dword [ebp - 8]
add ecx, 0x1c
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4221e0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x469340]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x248], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x244], 0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x244], eax
cmp dword [ebp - 0x244], 0xffffffff
jne 0x422227
jmp 0x4222fb
mov dword [ebp - 0x240], 0
push 0x228
push 0
lea eax, [ebp - 0x23c]
push eax
call fcn.0042b460
add esp, 0xc
mov dword [ebp - 0x240], 0x22c
lea ecx, [ebp - 0x240]
push ecx
mov edx, dword [ebp - 0x244]
push edx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x42227a
mov eax, dword [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4222fb
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0x238]
je 0x4222d7
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x21c]
push eax
call fcn.0042d87f
add esp, 8
test eax, eax
jne 0x4222d7
mov ecx, dword [ebp - 0x238]
push ecx
mov ecx, dword [ebp - 0x248]
call fcn.00422310
test eax, eax
je 0x4222d7
mov edx, dword [ebp - 0x238]
mov dword [ebp - 4], edx
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.004229c0
lea ecx, [ebp - 0x240]
push ecx
mov edx, dword [ebp - 0x244]
push edx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x42228a
mov eax, dword [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042b4da
mov esp, ebp
pop ebp
ret 8
Function at 0x427260
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp + 0xc]
call fcn.00421420
test eax, eax
je 0x427296
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov edx, dword [ebp - 0xc]
mov dword [eax + 4], edx
mov eax, dword [ebp + 8]
jmp 0x4272fc
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
mov ecx, dword [ebp + 0xc]
call fcn.0040c890
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4272d3
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov edx, dword [ebp - 0xc]
mov dword [eax + 4], edx
mov eax, dword [ebp + 8]
jmp 0x4272fc
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov edx, dword [ebp - 0xc]
mov dword [eax + 4], edx
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret 8
Function at 0x429ad0
Capabilities:
Delete file
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x469340]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x41c], ecx
cmp dword [ebp + 8], 0
je 0x429af9
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x429b00
xor eax, eax
jmp 0x429b84
cmp dword [ebp + 0xc], 0
je 0x429b10
mov edx, dword [ebp + 0xc]
movzx eax, word [edx]
test eax, eax
jne 0x429b64
xor ecx, ecx
mov word [ebp - 0x418], cx
push 0x40e
push 0
lea edx, [ebp - 0x416]
push edx
call fcn.0042b460
add esp, 0xc
push 0
push 0
push 0x104
lea eax, [ebp - 0x418]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0
call sub.urlmon.dll_URLDownloadToCacheFileW
test eax, eax
jl 0x429b62
lea edx, [ebp - 0x418]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, 1
jmp 0x429b84
jmp 0x429b82
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0
call sub.urlmon.dll_URLDownloadToFileW
test eax, eax
jl 0x429b82
mov eax, 1
jmp 0x429b84
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042b4da
mov esp, ebp
pop ebp
ret 8
Function at 0x42a020
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x42a053
mov ecx, dword [ebp - 4]
and ecx, 2
jne 0x42a04c
mov edx, dword [ebp - 4]
and edx, 1
jne 0x42a04c
mov eax, dword [ebp - 4]
and eax, 4
je 0x42a053
mov eax, 1
jmp 0x42a061
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [edx + 0xc]
call ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x42a140
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4014
call fcn.0042b4f0
mov eax, dword [0x469340]
xor eax, ebp
mov dword [ebp - 8], eax
mov ax, word [0x45df98]
mov word [ebp - 0x4008], ax
push 0x3ffe
push 0
lea ecx, [ebp - 0x4006]
push ecx
call fcn.0042b460
add esp, 0xc
mov dword [ebp - 0x400c], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
je 0x42a197
cmp dword [ebp + 0x10], 0
jne 0x42a19e
xor eax, eax
jmp 0x42a29c
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 0xc]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x400c], eax
cmp dword [ebp - 0x400c], 0
je 0x42a1c6
cmp dword [ebp - 0x400c], 0x3fff
jbe 0x42a1cd
xor eax, eax
jmp 0x42a29c
lea ecx, [ebp - 0x4008]
push ecx
mov edx, dword [ebp - 0x400c]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x42a29a
lea ecx, [ebp - 0x4014]
push ecx
lea edx, [ebp - 0x4010]
push edx
push 0x45df9c
lea eax, [ebp - 0x4008]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x42a29a
mov ecx, dword [ebp + 0x14]
shl ecx, 1
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
call fcn.0042b460
add esp, 0xc
mov eax, dword [ebp - 0x4010]
mov ecx, dword [eax + 0xc]
and ecx, 0xffff
movzx edx, cx
push edx
mov eax, dword [ebp - 0x4010]
mov ecx, dword [eax + 0xc]
shr ecx, 0x10
and ecx, 0xffff
movzx edx, cx
push edx
mov eax, dword [ebp - 0x4010]
mov ecx, dword [eax + 8]
and ecx, 0xffff
movzx edx, cx
push edx
mov eax, dword [ebp - 0x4010]
mov ecx, dword [eax + 8]
shr ecx, 0x10
and ecx, 0xffff
movzx edx, cx
push edx
push 0x45dfa0
mov eax, dword [ebp + 0x14]
sub eax, 1
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.0042ba08
add esp, 0x1c
mov eax, 1
jmp 0x42a29c
xor eax, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0042b4da
mov esp, ebp
pop ebp
ret 0x10

Function at 0x42a4a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
call fcn.0042a480
test eax, eax
je 0x42a4b7
xor eax, eax
jmp 0x42a4f5
mov eax, dword [ebp - 4]
cmp dword [eax + 0x18], 0
jne 0x42a4c4
xor eax, eax
jmp 0x42a4f5
mov ecx, dword [ebp - 4]
add ecx, 8
push ecx
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x1c]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x18]
push edx
push 0
push 0
call fcn.0043120c
add esp, 0x18
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 4]
call fcn.0042a480
mov esp, ebp
pop ebp
ret
Function at 0x42b2a2
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x46bb10], 0
push esi
jne 0x42b210
call fcn.0042b124
test eax, eax
je 0x42b253
mov eax, dword [0x46bb10]
cmp eax, 1
jne 0x42b231
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x42b253
pop esi
ret
push eax
call dword [0x46bb18]
test eax, eax
jne 0x42b29b
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 0x42b257
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x46bb10]
call dword [0x46bb18]
mov edi, eax
test edi, edi
je 0x42b27c
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x42b298
mov edi, esi
add esi, 0xff0
push edi
push dword [0x46bb10]
call dword [0x46bb14]
add edi, 0x10
cmp edi, esi
jb 0x42b284
mov eax, edi
pop edi
pop esi
ret
jmp 0x42b1fd

Function at 0x42b4da
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x469340]
jne 0x42b4e4
repz ret
jmp fcn.00431d56

Function at 0x44dcc5
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.00434004
and dword [ebp - 4], 0
cmp dword [0x46c638], 0
mov ebx, eax
jne 0x44dd76
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x44de27
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x44de27
push eax
call fcn.00433f92
mov dword [esp], 0x46165c
push edi
mov dword [0x46c638], eax
call esi
push eax
call fcn.00433f92
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x46c63c], eax
call esi
push eax
call fcn.00433f92
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x46c640], eax
call esi
push eax
call fcn.00433f92
pop ecx
mov dword [0x46c648], eax
test eax, eax
je 0x44dd76
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00433f92
pop ecx
mov dword [0x46c644], eax
mov eax, dword [0x46c644]
cmp eax, ebx
je 0x44ddce
cmp dword [0x46c648], ebx
je 0x44ddce
push eax
call fcn.0043400d
push dword [0x46c648]
mov esi, eax
call fcn.0043400d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x44ddce
test edi, edi
je 0x44ddce
call esi
test eax, eax
je 0x44ddc5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x44ddc5
test byte [ebp - 0xc], 1
jne 0x44ddce
or dword [ebp + 0x10], 0x200000
jmp 0x44de07
mov eax, dword [0x46c63c]
cmp eax, ebx
je 0x44de07
push eax
call fcn.0043400d
pop ecx
test eax, eax
je 0x44de07
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x44de07
mov eax, dword [0x46c640]
cmp eax, ebx
je 0x44de07
push eax
call fcn.0043400d
pop ecx
test eax, eax
je 0x44de07
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x46c638]
call fcn.0043400d
pop ecx
test eax, eax
je 0x44de27
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x44de29
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x459350
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x2c14
call fcn.0042b4f0
mov eax, dword [0x469340]
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 0x4594bb
cmp dword [esp + 0x2c20], edi
je 0x4594bb
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 pe_nt_image_headers32
push eax
call fcn.00458d30
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 0x459494
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.0042b460
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 0x459487
push 0x3e8
lea eax, [esp + 0x12c]
push edi
push eax
call fcn.0042b460
mov edx, dword [esp + 0x534]
lea ecx, [esp + 0x134]
push ecx
push 1
push edx
lea eax, [esp + 0x528]
push eax
call fcn.0045af20
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.00425360
test eax, eax
jne 0x459487
mov dword [esp + 0x10], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], edi
jne 0x45949e
inc ebx
cmp ebx, 0x10
jl 0x4593a0
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
mov ecx, dword [esp + 0x2c10]
xor ecx, esp
call fcn.0042b4da
add esp, 0x2c14
ret
mov ecx, dword [esp + 0x2c14]
pop edi
xor ecx, esp
xor eax, eax
call fcn.0042b4da
add esp, 0x2c14
ret
Function at 0x4597a0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x2ec
mov eax, dword [0x469340]
xor eax, esp
mov dword [esp + 0x2e8], eax
push edi
mov edi, dword [esp + 0x2f4]
mov dword [esp + 0x18], edi
test edi, edi
je 0x4599a1
cmp dword [esp + 0x2f8], 0
je 0x4599a1
push 0x64
lea eax, [esp + 0x20]
push 0
push eax
call fcn.0042b460
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 8
push 0
push 0x461758
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x459968
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 0x45995b
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 0x459929
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 0x45991e
push 0x64
push eax
lea eax, [esp + 0x90]
push eax
call fcn.0042b460
lea ecx, [esp + 0x1fc]
push 0x64
push ecx
lea edi, [esp + 0x9c]
call fcn.00459690
add esp, 0x14
test eax, eax
je 0x45991e
cmp byte [esp + 0x24], 0
je 0x4598e2
lea edx, [esp + 0x24]
push edx
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jge 0x45991e
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 0x459911
mov cl, byte [esi + eax]
test cl, cl
je 0x459911
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x4598f6
jmp 0x459915
test edx, edx
jne 0x459916
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 0x459840
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 0x4599a1
mov edx, dword [esp + 0x2f8]
lea ecx, [esp + 0x1c]
push ecx
push edx
push edi
call fcn.00425360
xor ecx, ecx
test eax, eax
setge cl
pop edi
mov eax, ecx
mov ecx, dword [esp + 0x2e8]
xor ecx, esp
call fcn.0042b4da
add esp, 0x2ec
ret
mov ecx, dword [esp + 0x2ec]
pop edi
xor ecx, esp
xor eax, eax
call fcn.0042b4da
add esp, 0x2ec
ret
Function at 0x459c10
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x50c
mov eax, dword [0x469340]
xor eax, esp
mov dword [esp + 0x508], eax
push ebp
mov ebp, dword [esp + 0x514]
test edi, edi
je 0x459d8d
cmp ebp, 0x20
jb 0x459d8d
push 0x400
lea eax, [esp + 0x110]
push 0
push eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0x400
call fcn.0042b460
add esp, 0xc
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x110]
push edx
lea eax, [esp + 0x10]
push eax
push 0x4617c8
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x459d8d
lea eax, [esp + 0x10c]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x459ca0
sub eax, edx
cmp eax, 0x40
jne 0x459d8d
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 0x459cde
mov cl, byte [esi + eax]
test cl, cl
je 0x459cde
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x459cc6
jmp 0x459ce2
test edx, edx
jne 0x459ce3
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 0x459d1b
mov cl, byte [edx + eax]
test cl, cl
je 0x459d1b
mov byte [eax], cl
inc eax
sub esi, 1
jne 0x459d00
jmp 0x459d1f
test esi, esi
jne 0x459d20
dec eax
push 0x400
lea edx, [esp + 0x118]
push 0
push edx
mov byte [eax], 0
call fcn.0042b460
push 0x400
lea ebx, [esp + 0x124]
lea ecx, [esp + 0x24]
call fcn.00458dc0
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 0x459d8d
lea edx, [esp + 0xc]
push edx
push ebp
push edi
call fcn.00425360
neg eax
sbb eax, eax
inc eax
pop ebp
mov ecx, dword [esp + 0x508]
xor ecx, esp
call fcn.0042b4da
add esp, 0x50c
ret
mov ecx, dword [esp + 0x50c]
pop ebp
xor ecx, esp
xor eax, eax
call fcn.0042b4da
add esp, 0x50c
ret

Function at 0x459db0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x188
mov eax, dword [0x469340]
xor eax, esp
mov dword [esp + 0x184], eax
push ebx
push esi
push 0x80
lea eax, [esp + 0xc]
push 0
push eax
mov esi, ecx
call fcn.0042b460
push 0x80
lea ebx, [esp + 0x18]
mov ecx, esi
call fcn.00458dc0
lea eax, [esp + 0x98]
mov ecx, eax
add esp, 0x10
mov edx, 0x104
sub esi, ecx
lea esp, [esp]
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x459e1b
mov cl, byte [esi + eax]
test cl, cl
je 0x459e1b
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x459e00
jmp 0x459e1f
test edx, edx
jne 0x459e20
dec eax
lea edx, [esp + 8]
push edx
mov byte [eax], 0
push 0x104
lea eax, [esp + 0x90]
push eax
call fcn.004253b0
lea eax, [esp + 0x88]
pop esi
lea edx, [eax + 1]
pop ebx
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x459e46
sub eax, edx
push eax
lea ecx, [esp + 0x84]
push ecx
push 1
push 0x4617c8
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.0042b4da
add esp, 0x188
ret