joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e4ce0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
xor eax, eax
jne 0x4e4ce9
xor ecx, ecx
jne 0x4e4ce9
mov dword [ebp - 4], 0
push 0
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4e4d22
call fcn.00481070
jmp 0x4e4d38
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
je 0x4e4d36
push 0x26
call fcn.004456a0
add esp, 4
jmp 0x4e4d38
xor eax, eax
mov esp, ebp
pop ebp
ret 8

Function at 0x4e7b90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], 0x54265c
mov ecx, 0x5726f4
call fcn.0047e360
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x1c]
push ecx
movzx edx, word [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4e7bd2
xor eax, eax
jmp 0x4e7c5a
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4e7bfe
xor eax, eax
jmp 0x4e7c5a
mov edx, dword [ebp - 0x14]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.005011e0
add esp, 0xc
mov ecx, dword [ebp - 0x20]
add ecx, 0x28
push ecx
push 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x4efad0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
cmp dword [ebp + 8], 0
jne 0x4efae9
mov eax, 0x80070057
jmp 0x4efc54
mov ecx, dword [ebp - 0x20]
call fcn.004eff60
push 0
push 0x80
push 3
push 0
push 7
push SysReAllocStringLen
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4efb20
mov eax, 0x80004005
jmp 0x4efc54
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LockFile]
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x1400000
jge 0x4efc27
cmp dword [ebp - 4], 0
jne 0x4efc27
cmp dword [ebp - 0x10], 4
jle 0x4efc27
mov ecx, dword [ebp - 0x10]
add ecx, 4
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.005031fa
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4efc27
mov eax, dword [ebp - 0x18]
push eax
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00500270
add esp, 0xc
mov dword [ebp - 0x1c], 0
push 0
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4efc0d
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x10]
jne 0x4efc0d
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx]
cmp edx, 0xfeff
jne 0x4efbfa
mov eax, dword [ebp - 0x10]
sub eax, 2
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 2
push ecx
mov ecx, dword [ebp - 0x20]
call fcn.004f00c0
mov dword [ebp - 0xc], eax
jmp 0x4efc0d
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x20]
call fcn.004f00c0
mov dword [ebp - 0xc], eax
mov dword [ebp - 0xc], 1
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.005019e9
add esp, 4
mov dword [ebp - 0x14], 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_UnlockFile]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
mov esp, ebp
pop ebp
ret 4
Function at 0x4f6af0
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4f6b17
xor eax, eax
jmp 0x4f6bb1
lea ecx, [ebp - 0x14]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov dword [ebp - 0x18], 1
mov dword [ebp - 0xc], 2
push 0
push 0
push 0
lea edx, [ebp - 0x18]
push edx
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4f6b5a
xor eax, eax
jmp 0x4f6bb1
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 0
jne 0x4f6b70
mov dword [ebp - 8], 8
jmp 0x4f6b92
cmp dword [ebp + 8], 1
jne 0x4f6b7f
mov dword [ebp - 8], 2
jmp 0x4f6b92
cmp dword [ebp + 8], 2
jne 0x4f6b8e
mov dword [ebp - 8], 0
jmp 0x4f6b92
xor eax, eax
jmp 0x4f6bb1
push 0x80020003
mov ecx, dword [ebp - 8]
or ecx, 4
push ecx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x4f6bac
xor eax, eax
jmp 0x4f6bb1
mov eax, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x4fd2e0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x56f28c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x21c], ecx
push 0x208
push 0
lea eax, [ebp - 0x210]
push eax
call fcn.00500270
add esp, 0xc
push 0x103
lea ecx, [ebp - 0x210]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.ExplorerTray.dll
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x210]
push ecx
call fcn.00427900
add esp, 4
test eax, eax
jne 0x4fd35c
xor eax, eax
jmp 0x4fd49e
lea edx, [ebp - 0x210]
push edx
call fcn.0041b390
mov ecx, dword [ebp - 0x21c]
mov dword [ecx], eax
mov edx, dword [ebp - 0x21c]
cmp dword [edx], 0
jne 0x4fd382
xor eax, eax
jmp 0x4fd49e
push str.ShowDeskBand
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0x21c]
mov dword [edx + 4], eax
push str.PostMessageToWiFiBand
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0x21c]
mov dword [edx + 8], eax
push str.StartHook
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0x21c]
mov dword [edx + 0xc], eax
push str.StopHook
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0x21c]
mov dword [edx + 0x10], eax
push str.IsBandRegistered
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0x21c]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0x21c]
cmp dword [eax + 8], 0
je 0x4fd443
mov ecx, dword [ebp - 0x21c]
cmp dword [ecx + 4], 0
je 0x4fd443
mov edx, dword [ebp - 0x21c]
cmp dword [edx + 0x10], 0
je 0x4fd443
mov eax, dword [ebp - 0x21c]
cmp dword [eax + 0x10], 0
jne 0x4fd447
xor eax, eax
jmp 0x4fd49e
mov ecx, dword [ebp - 0x21c]
mov edx, dword [ecx + 0x14]
call edx
test eax, eax
jne 0x4fd499
push str.DllRegisterServer
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
je 0x4fd499
call dword [ebp - 0x214]
mov dword [ebp - 0x218], eax
mov edx, dword [ebp - 0x218]
push edx
push str.DllRegisterServer_0x_x
call fcn.0044a070
add esp, 8
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ffa01
mov esp, ebp
pop ebp
ret
Function at 0x4fd610
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax + 0x18], 0
je 0x4fd656
push 0
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x102
jne 0x4fd63f
jmp 0x4fd67e
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 8]
mov dword [edx + 0x18], 0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x1c], ecx
push 0
push 0
mov edx, dword [ebp - 8]
push edx
push 0x4fd690
push 0
push 0
call fcn.0050051c
add esp, 0x18
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x18], eax
mov esp, ebp
pop ebp
ret 4

Function at 0x4fd7f0
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4fd818
mov eax, dword [ebp - 4]
push eax
call fcn.004fd700
add esp, 4
jmp 0x4fd81a
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4fe811
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x5737c4], 0
push esi
jne 0x4fe784
call fcn.004fe6aa
test eax, eax
je 0x4fe7c7
mov eax, dword [0x5737c4]
cmp eax, 1
jne 0x4fe7a5
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4fe7c7
pop esi
ret
push eax
call dword [0x5737cc]
test eax, eax
jne 0x4fe80f
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 0x4fe7cb
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x5737c4]
call dword [0x5737cc]
mov edi, eax
test edi, edi
je 0x4fe7f0
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x4fe80c
mov edi, esi
add esi, 0xff0
push edi
push dword [0x5737c4]
call dword [0x5737c8]
add edi, 0x10
cmp edi, esi
jb 0x4fe7f8
mov eax, edi
pop edi
pop esi
ret
jmp 0x4fe771

Function at 0x4ffa01
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x56f28c]
jne 0x4ffa0b
repz ret
jmp fcn.00509d2c

Function at 0x518b37
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.00509670
and dword [ebp - 4], 0
cmp dword [0x5745e8], 0
mov ebx, eax
jne 0x518be8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x518c99
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x518c99
push eax
call fcn.005095fe
mov dword [esp], 0x546b08
push edi
mov dword [0x5745e8], eax
call esi
push eax
call fcn.005095fe
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x5745ec], eax
call esi
push eax
call fcn.005095fe
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x5745f0], eax
call esi
push eax
call fcn.005095fe
pop ecx
mov dword [0x5745f8], eax
test eax, eax
je 0x518be8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.005095fe
pop ecx
mov dword [0x5745f4], eax
mov eax, dword [0x5745f4]
cmp eax, ebx
je 0x518c40
cmp dword [0x5745f8], ebx
je 0x518c40
push eax
call fcn.00509679
push dword [0x5745f8]
mov esi, eax
call fcn.00509679
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x518c40
test edi, edi
je 0x518c40
call esi
test eax, eax
je 0x518c37
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x518c37
test byte [ebp - 0xc], 1
jne 0x518c40
or dword [ebp + 0x10], 0x200000
jmp 0x518c79
mov eax, dword [0x5745ec]
cmp eax, ebx
je 0x518c79
push eax
call fcn.00509679
pop ecx
test eax, eax
je 0x518c79
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x518c79
mov eax, dword [0x5745f0]
cmp eax, ebx
je 0x518c79
push eax
call fcn.00509679
pop ecx
test eax, eax
je 0x518c79
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5745e8]
call fcn.00509679
pop ecx
test eax, eax
je 0x518c99
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x518c9b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x51e060
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x2c14
call fcn.00500c70
mov eax, dword [0x56f28c]
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 0x51e1cb
cmp dword [esp + 0x2c20], edi
je 0x51e1cb
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.00448730
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 0x51e1a4
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.00500270
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 0x51e197
push 0x3e8
lea eax, [esp + 0x12c]
push edi
push eax
call fcn.00500270
mov edx, dword [esp + 0x534]
lea ecx, [esp + 0x134]
push ecx
push 1
push edx
lea eax, [esp + 0x528]
push eax
call fcn.0051f780
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.0051d980
test eax, eax
jne 0x51e197
mov dword [esp + 0x10], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], edi
jne 0x51e1ae
inc ebx
cmp ebx, 0x10
jl 0x51e0b0
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
mov ecx, dword [esp + 0x2c10]
xor ecx, esp
call fcn.004ffa01
add esp, 0x2c14
ret
mov ecx, dword [esp + 0x2c14]
pop edi
xor ecx, esp
xor eax, eax
call fcn.004ffa01
add esp, 0x2c14
ret
Function at 0x51e470
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x2ec
mov eax, dword [0x56f28c]
xor eax, esp
mov dword [esp + 0x2e8], eax
push edi
mov edi, dword [esp + 0x2f4]
mov dword [esp + 0x18], edi
test edi, edi
je 0x51e671
cmp dword [esp + 0x2f8], 0
je 0x51e671
push 0x64
lea eax, [esp + 0x20]
push 0
push eax
call fcn.00500270
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 8
push 0
push 0x546e60
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x51e638
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 0x51e62b
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 0x51e5f9
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 0x51e5ee
push 0x64
push eax
lea eax, [esp + 0x90]
push eax
call fcn.00500270
lea ecx, [esp + 0x1fc]
push 0x64
push ecx
lea edi, [esp + 0x9c]
call fcn.0051e360
add esp, 0x14
test eax, eax
je 0x51e5ee
cmp byte [esp + 0x24], 0
je 0x51e5b2
lea edx, [esp + 0x24]
push edx
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jge 0x51e5ee
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 0x51e5e1
mov cl, byte [esi + eax]
test cl, cl
je 0x51e5e1
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x51e5c6
jmp 0x51e5e5
test edx, edx
jne 0x51e5e6
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 0x51e510
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 0x51e671
mov edx, dword [esp + 0x2f8]
lea ecx, [esp + 0x1c]
push ecx
push edx
push edi
call fcn.0051d980
xor ecx, ecx
test eax, eax
setge cl
pop edi
mov eax, ecx
mov ecx, dword [esp + 0x2e8]
xor ecx, esp
call fcn.004ffa01
add esp, 0x2ec
ret
mov ecx, dword [esp + 0x2ec]
pop edi
xor ecx, esp
xor eax, eax
call fcn.004ffa01
add esp, 0x2ec
ret
Function at 0x51e8e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x50c
mov eax, dword [0x56f28c]
xor eax, esp
mov dword [esp + 0x508], eax
push ebp
mov ebp, dword [esp + 0x514]
test edi, edi
je 0x51ea5d
cmp ebp, 0x20
jb 0x51ea5d
push 0x400
lea eax, [esp + 0x110]
push 0
push eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0x400
call fcn.00500270
add esp, 0xc
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x110]
push edx
lea eax, [esp + 0x10]
push eax
push 0x546ed0
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x51ea5d
lea eax, [esp + 0x10c]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x51e970
sub eax, edx
cmp eax, 0x40
jne 0x51ea5d
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 0x51e9ae
mov cl, byte [esi + eax]
test cl, cl
je 0x51e9ae
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x51e996
jmp 0x51e9b2
test edx, edx
jne 0x51e9b3
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 0x51e9eb
mov cl, byte [edx + eax]
test cl, cl
je 0x51e9eb
mov byte [eax], cl
inc eax
sub esi, 1
jne 0x51e9d0
jmp 0x51e9ef
test esi, esi
jne 0x51e9f0
dec eax
push 0x400
lea edx, [esp + 0x118]
push 0
push edx
mov byte [eax], 0
call fcn.00500270
push 0x400
lea ebx, [esp + 0x124]
lea ecx, [esp + 0x24]
call fcn.0051dae0
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 0x51ea5d
lea edx, [esp + 0xc]
push edx
push ebp
push edi
call fcn.0051d980
neg eax
sbb eax, eax
inc eax
pop ebp
mov ecx, dword [esp + 0x508]
xor ecx, esp
call fcn.004ffa01
add esp, 0x50c
ret
mov ecx, dword [esp + 0x50c]
pop ebp
xor ecx, esp
xor eax, eax
call fcn.004ffa01
add esp, 0x50c
ret

Function at 0x51ea80
Capabilities:
Set registry value

Disassembly:
sub esp, 0x188
mov eax, dword [0x56f28c]
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.00500270
push 0x80
lea ebx, [esp + 0x18]
mov ecx, esi
call fcn.0051dae0
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 0x51eaeb
mov cl, byte [esi + eax]
test cl, cl
je 0x51eaeb
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x51ead0
jmp 0x51eaef
test edx, edx
jne 0x51eaf0
dec eax
lea edx, [esp + 8]
push edx
mov byte [eax], 0
push 0x104
lea eax, [esp + 0x90]
push eax
call fcn.0051d9f0
lea eax, [esp + 0x88]
pop esi
lea edx, [eax + 1]
pop ebx
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x51eb16
sub eax, edx
push eax
lea ecx, [esp + 0x84]
push ecx
push 1
push 0x546ed0
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.004ffa01
add esp, 0x188
ret
Function at 0x402650
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], str.VirtualProtect
mov dword [ebp - 0x10], str.kernel32.dll
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x771658], eax
lea eax, [ebp - 4]
push eax
push 0x40
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [0x771658]
xor eax, eax
xor edx, edx
mov esp, ebp
pop ebp
ret
Function at 0x40ba3a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x7706fc]
jne 0x40ba44
repz ret
jmp fcn.0040f6e2

Function at 0x411f4c
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.0040d6bd
and dword [ebp - 4], 0
cmp dword [0x772078], 0
mov ebx, eax
jne 0x411ffd
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4120ae
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4120ae
push eax
call fcn.0040d64b
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x772078], eax
call esi
push eax
call fcn.0040d64b
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x77207c], eax
call esi
push eax
call fcn.0040d64b
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x772080], eax
call esi
push eax
call fcn.0040d64b
pop ecx
mov dword [0x772088], eax
test eax, eax
je 0x411ffd
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040d64b
pop ecx
mov dword [0x772084], eax
mov eax, dword [0x772084]
cmp eax, ebx
je 0x412055
cmp dword [0x772088], ebx
je 0x412055
push eax
call fcn.0040d6c6
push dword [0x772088]
mov esi, eax
call fcn.0040d6c6
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x412055
test edi, edi
je 0x412055
call esi
test eax, eax
je 0x41204c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41204c
test byte [ebp - 0xc], 1
jne 0x412055
or dword [ebp + 0x10], 0x200000
jmp 0x41208e
mov eax, dword [0x77207c]
cmp eax, ebx
je 0x41208e
push eax
call fcn.0040d6c6
pop ecx
test eax, eax
je 0x41208e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41208e
mov eax, dword [0x772080]
cmp eax, ebx
je 0x41208e
push eax
call fcn.0040d6c6
pop ecx
test eax, eax
je 0x41208e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x772078]
call fcn.0040d6c6
pop ecx
test eax, eax
je 0x4120ae
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4120b0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret