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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x20], ecx
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 0
je 0x54560c
cmp dword [ebp + 0xc], 0xffffffff
jne 0x545613
xor eax, eax
jmp 0x5456c1
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [eax + 0x14]
call edx
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ole32.dll_GetHGlobalFromStream]
test eax, eax
jne 0x5456be
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x5456b4
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x5456b4
push 0
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5456a7
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0x14]
jne 0x5456a7
mov dword [ebp - 0x24], 1
jmp 0x5456ae
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 8
Function at 0x547f50
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x5e6468]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x434], ecx
cmp dword [ebp + 0x10], 0
jne 0x547f87
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x434]
call fcn.00547a30
jmp 0x548077
cmp dword [ebp + 8], 0
je 0x547f93
cmp dword [ebp + 0xc], 0
jne 0x547f9a
xor eax, eax
jmp 0x548077
mov edx, dword [ebp + 0xc]
push edx
push 0x208
lea eax, [ebp - 0x420]
push eax
call fcn.004b8620
test eax, eax
je 0x547fba
xor eax, eax
jmp 0x548077
lea ecx, [ebp - 0x420]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea edx, [ebp - 0x210]
push edx
push 0
push str.TMP
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x547fed
xor eax, eax
jmp 0x548077
lea ecx, [ebp - 0x428]
call fcn.00545180
push 9
lea ecx, [ebp - 0x210]
push ecx
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x428]
call fcn.00545390
test eax, eax
jne 0x548031
mov dword [ebp - 0x42c], 0
lea ecx, [ebp - 0x428]
call fcn.005451b0
mov eax, dword [ebp - 0x42c]
jmp 0x548077
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x210]
push ecx
mov ecx, dword [ebp - 0x434]
call fcn.00547a30
mov dword [ebp - 0x214], eax
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x214]
mov dword [ebp - 0x430], eax
lea ecx, [ebp - 0x428]
call fcn.005451b0
mov eax, dword [ebp - 0x430]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055e289
mov esp, ebp
pop ebp
ret 0xc
Function at 0x548090
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x5e6468]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x54], ecx
push 0x5b6188
push 1
push 0x5b61b8
push 0x5b61d0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
add eax, 1
mov dword [ebp - 0x4c], eax
push str.c:WdDatSignConfig.ini
push 0x3e9
push 0x5b620c
push str.WdDat
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x50], eax
push 0x118
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.0055e2a0
add esp, 0xc
mov edx, dword [ebp + 8]
mov dword [edx], 0x54444851
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0x118
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], 1
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x4c]
mov dword [edx + 0xc], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x50]
mov dword [ecx + 0x10], edx
mov eax, dword [ebp - 0x50]
push eax
push 0x5b6228
push 0x40
mov ecx, dword [ebp + 8]
add ecx, 0x14
push ecx
call fcn.00424750
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [ebp + 8]
mov dword [edx + 0x54], eax
mov eax, dword [ebp + 0xc]
push eax
push 0x40
mov ecx, dword [ebp + 8]
add ecx, 0x98
push ecx
call fcn.004b8620
mov edx, dword [ebp - 0x4c]
push edx
push 0x5b6230
push 0x40
lea eax, [ebp - 0x48]
push eax
call fcn.00424750
add esp, 0x10
push str.c:HipsDatSignConfig.ini
lea ecx, [ebp - 0x48]
push ecx
push str.BuildNumber
push str.WdData
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055e289
mov esp, ebp
pop ebp
ret 8
Function at 0x548540
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1ec
mov eax, dword [0x5e6468]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x1ec], ecx
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0x1e4], 0
mov dword [ebp - 0x1e8], 0
mov eax, dword [ebp - 0x1ec]
cmp dword [eax], 0xffffffff
jne 0x54858c
jmp 0x548692
push 0
push 0
push 0
mov ecx, dword [ebp - 0x1ec]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0xc4], eax
cmp dword [ebp - 0xc4], 0xffffffff
jne 0x5485ba
jmp 0x548692
push 0
lea eax, [ebp - 0x1e8]
push eax
push 0x118
lea ecx, [ebp - 0x1e0]
push ecx
mov edx, dword [ebp - 0x1ec]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0xc4], eax
cmp dword [ebp - 0xc4], 0
jne 0x5485f7
jmp 0x548692
lea ecx, [ebp - 0x1e0]
push ecx
mov ecx, dword [ebp - 0x1ec]
call fcn.005486b0
test eax, eax
jne 0x548614
jmp 0x548692
push 0
lea edx, [ebp - 0x1e8]
push edx
push 0xb4
lea eax, [ebp - 0xc0]
push eax
mov ecx, dword [ebp - 0x1ec]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0xc4], eax
cmp dword [ebp - 0xc4], 0
jne 0x54864b
jmp 0x548692
lea eax, [ebp - 0xc0]
push eax
mov ecx, dword [ebp - 0x1ec]
call fcn.00548700
test eax, eax
jne 0x548665
jmp 0x548692
mov ecx, dword [ebp - 0x1ec]
call fcn.00548810
test eax, eax
jne 0x548678
jmp 0x548692
mov ecx, dword [ebp - 0x1ec]
mov dword [ecx + 0x3dc], 1
mov dword [ebp - 0x1e4], 1
mov eax, dword [ebp - 0x1e4]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055e289
mov esp, ebp
pop ebp
ret

Function at 0x548700
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
mov eax, dword [0x5e6468]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xcc], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0xcc]
mov ecx, dword [eax + 0x3e0]
push ecx
push 0x80
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0xc8]
push ecx
call fcn.00547110
add esp, 0x14
cmp dword [ebp - 4], 0x74
je 0x548756
xor eax, eax
jmp 0x5487f5
push str.www.360.cn
lea edx, [ebp - 0xb8]
push edx
call fcn.0055e1f6
add esp, 8
test eax, eax
je 0x548775
xor eax, eax
jmp 0x5487f5
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0xcc]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x54879e
cmp dword [ebp - 8], 0
je 0x5487a2
xor eax, eax
jmp 0x5487f5
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x68]
je 0x5487ae
xor eax, eax
jmp 0x5487f5
mov ecx, dword [ebp - 0xcc]
add ecx, 0x1d0
push ecx
lea edx, [ebp - 0x88]
push edx
call fcn.0055e1f6
add esp, 8
test eax, eax
je 0x5487d2
xor eax, eax
jmp 0x5487f5
push 0xb4
lea eax, [ebp - 0xc8]
push eax
mov ecx, dword [ebp - 0xcc]
add ecx, 4
push ecx
call fcn.00562ba0
add esp, 0xc
mov eax, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055e289
mov esp, ebp
pop ebp
ret 4
Function at 0x548810
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x5e6468]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x98], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x8c], 0
mov eax, dword [ebp - 0x98]
cmp dword [eax], 0xffffffff
jne 0x548860
jmp 0x548993
push 0
push 0
push 0
mov ecx, dword [ebp - 0x98]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 0xffffffff
jne 0x548888
jmp 0x548993
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0x98]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x80], 0xffffffff
je 0x5488aa
cmp dword [ebp - 4], 0
je 0x5488b4
jmp 0x548993
push 0x5f232c
mov eax, dword [ebp - 0x80]
push eax
call fcn.00564025
add esp, 8
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x90]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
jne 0x5488e4
jmp 0x548993
push 0
lea edx, [ebp - 0x8c]
push edx
mov eax, dword [ebp - 0x80]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x98]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 0
jne 0x548914
jmp 0x548993
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x88], ecx
push 0xb4
push 0
mov edx, dword [ebp - 0x88]
add edx, 0x118
push edx
call fcn.0055e2a0
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
call fcn.00542350
add esp, 4
mov ecx, dword [ebp - 0x80]
push ecx
mov edx, dword [ebp - 8]
push edx
lea eax, [ebp - 0x78]
push eax
call fcn.00542390
add esp, 0xc
lea ecx, [ebp - 0x78]
push ecx
lea edx, [ebp - 0x1c]
push edx
call fcn.00543360
add esp, 8
push 0x10
mov eax, dword [ebp - 0x98]
add eax, 4
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.005609a4
add esp, 0xc
test eax, eax
je 0x548989
jmp 0x548993
mov dword [ebp - 0x84], 1
cmp dword [ebp - 8], 0
je 0x5489b1
mov edx, dword [ebp - 8]
mov dword [ebp - 0x94], edx
mov eax, dword [ebp - 0x94]
push eax
call fcn.0055dfce
add esp, 4
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0055e289
mov esp, ebp
pop ebp
ret
Function at 0x54e540
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
cmp dword [ebp + 8], 0
je 0x54e555
cmp dword [ebp + 0xc], 0
jne 0x54e559
xor eax, eax
jmp 0x54e5d4
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x10]
call fcn.00426f30
mov ecx, dword [ebp - 0x1c]
add ecx, 0xb4
push ecx
lea ecx, [ebp - 4]
call fcn.0053d5c0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 8], eax
push 0
lea ecx, [ebp - 0x10]
call fcn.004273c0
push eax
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0xa0]
push edx
mov ecx, dword [ebp - 0x1c]
add ecx, 4
call fcn.0054db80
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 4]
call fcn.0053d5f0
lea ecx, [ebp - 0x10]
call fcn.00426fe0
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x55d190
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x5f22f8], 0
push esi
jne 0x55d0fe
call fcn.0055d012
test eax, eax
je 0x55d141
mov eax, dword [0x5f22f8]
cmp eax, 1
jne 0x55d11f
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x55d141
pop esi
ret
push eax
call dword [0x5f2300]
test eax, eax
jne 0x55d189
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 0x55d145
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x5f22f8]
call dword [0x5f2300]
mov edi, eax
test edi, edi
je 0x55d16a
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x55d186
mov edi, esi
add esi, 0xff0
push edi
push dword [0x5f22f8]
call dword [0x5f22fc]
add edi, 0x10
cmp edi, esi
jb 0x55d172
mov eax, edi
pop edi
pop esi
ret
jmp 0x55d0eb

Function at 0x55e289
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5e6468]
jne 0x55e293
repz ret
jmp fcn.0056b4a8

Function at 0x588f0e
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.0056ad9b
and dword [ebp - 4], 0
cmp dword [0x5f2f08], 0
mov ebx, eax
jne 0x588fbf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x589070
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x589070
push eax
call fcn.0056ad29
mov dword [esp], 0x5ba70c
push edi
mov dword [0x5f2f08], eax
call esi
push eax
call fcn.0056ad29
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x5f2f0c], eax
call esi
push eax
call fcn.0056ad29
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x5f2f10], eax
call esi
push eax
call fcn.0056ad29
pop ecx
mov dword [0x5f2f18], eax
test eax, eax
je 0x588fbf
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0056ad29
pop ecx
mov dword [0x5f2f14], eax
mov eax, dword [0x5f2f14]
cmp eax, ebx
je 0x589017
cmp dword [0x5f2f18], ebx
je 0x589017
push eax
call fcn.0056ada4
push dword [0x5f2f18]
mov esi, eax
call fcn.0056ada4
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x589017
test edi, edi
je 0x589017
call esi
test eax, eax
je 0x58900e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x58900e
test byte [ebp - 0xc], 1
jne 0x589017
or dword [ebp + 0x10], 0x200000
jmp 0x589050
mov eax, dword [0x5f2f0c]
cmp eax, ebx
je 0x589050
push eax
call fcn.0056ada4
pop ecx
test eax, eax
je 0x589050
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x589050
mov eax, dword [0x5f2f10]
cmp eax, ebx
je 0x589050
push eax
call fcn.0056ada4
pop ecx
test eax, eax
je 0x589050
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5f2f08]
call fcn.0056ada4
pop ecx
test eax, eax
je 0x589070
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x589072
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5903b0
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x2c14
call fcn.0055f2e0
mov eax, dword [0x5e6468]
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 0x59051b
cmp dword [esp + 0x2c20], edi
je 0x59051b
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.0058fdd0
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 0x5904f4
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.0055e2a0
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 0x5904e7
push 0x3e8
lea eax, [esp + 0x12c]
push edi
push eax
call fcn.0055e2a0
mov edx, dword [esp + 0x534]
lea ecx, [esp + 0x134]
push ecx
push 1
push edx
lea eax, [esp + 0x528]
push eax
call fcn.00591f80
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.0058fc70
test eax, eax
jne 0x5904e7
mov dword [esp + 0x10], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], edi
jne 0x5904fe
inc ebx
cmp ebx, 0x10
jl 0x590400
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
mov ecx, dword [esp + 0x2c10]
xor ecx, esp
call fcn.0055e289
add esp, 0x2c14
ret
mov ecx, dword [esp + 0x2c14]
pop edi
xor ecx, esp
xor eax, eax
call fcn.0055e289
add esp, 0x2c14
ret
Function at 0x590800
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x2ec
mov eax, dword [0x5e6468]
xor eax, esp
mov dword [esp + 0x2e8], eax
push edi
mov edi, dword [esp + 0x2f4]
mov dword [esp + 0x18], edi
test edi, edi
je 0x590a01
cmp dword [esp + 0x2f8], 0
je 0x590a01
push 0x64
lea eax, [esp + 0x20]
push 0
push eax
call fcn.0055e2a0
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 8
push 0
push 0x5ba81c
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5909c8
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 0x5909bb
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 0x590989
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 0x59097e
push 0x64
push eax
lea eax, [esp + 0x90]
push eax
call fcn.0055e2a0
lea ecx, [esp + 0x1fc]
push 0x64
push ecx
lea edi, [esp + 0x9c]
call fcn.005906f0
add esp, 0x14
test eax, eax
je 0x59097e
cmp byte [esp + 0x24], 0
je 0x590942
lea edx, [esp + 0x24]
push edx
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jge 0x59097e
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 0x590971
mov cl, byte [esi + eax]
test cl, cl
je 0x590971
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x590956
jmp 0x590975
test edx, edx
jne 0x590976
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 0x5908a0
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 0x590a01
mov edx, dword [esp + 0x2f8]
lea ecx, [esp + 0x1c]
push ecx
push edx
push edi
call fcn.0058fc70
xor ecx, ecx
test eax, eax
setge cl
pop edi
mov eax, ecx
mov ecx, dword [esp + 0x2e8]
xor ecx, esp
call fcn.0055e289
add esp, 0x2ec
ret
mov ecx, dword [esp + 0x2ec]
pop edi
xor ecx, esp
xor eax, eax
call fcn.0055e289
add esp, 0x2ec
ret
Function at 0x590c70
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x50c
mov eax, dword [0x5e6468]
xor eax, esp
mov dword [esp + 0x508], eax
push ebp
mov ebp, dword [esp + 0x514]
test edi, edi
je 0x590ded
cmp ebp, 0x20
jb 0x590ded
push 0x400
lea eax, [esp + 0x110]
push 0
push eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0x400
call fcn.0055e2a0
add esp, 0xc
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x110]
push edx
lea eax, [esp + 0x10]
push eax
push 0x5ba88c
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x590ded
lea eax, [esp + 0x10c]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x590d00
sub eax, edx
cmp eax, 0x40
jne 0x590ded
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 0x590d3e
mov cl, byte [esi + eax]
test cl, cl
je 0x590d3e
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x590d26
jmp 0x590d42
test edx, edx
jne 0x590d43
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 0x590d7b
mov cl, byte [edx + eax]
test cl, cl
je 0x590d7b
mov byte [eax], cl
inc eax
sub esi, 1
jne 0x590d60
jmp 0x590d7f
test esi, esi
jne 0x590d80
dec eax
push 0x400
lea edx, [esp + 0x118]
push 0
push edx
mov byte [eax], 0
call fcn.0055e2a0
push 0x400
lea ebx, [esp + 0x124]
lea ecx, [esp + 0x24]
call fcn.0058fe30
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 0x590ded
lea edx, [esp + 0xc]
push edx
push ebp
push edi
call fcn.0058fc70
neg eax
sbb eax, eax
inc eax
pop ebp
mov ecx, dword [esp + 0x508]
xor ecx, esp
call fcn.0055e289
add esp, 0x50c
ret
mov ecx, dword [esp + 0x50c]
pop ebp
xor ecx, esp
xor eax, eax
call fcn.0055e289
add esp, 0x50c
ret

Function at 0x590e10
Capabilities:
Set registry value

Disassembly:
sub esp, 0x188
mov eax, dword [0x5e6468]
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.0055e2a0
push 0x80
lea ebx, [esp + 0x18]
mov ecx, esi
call fcn.0058fe30
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 0x590e7b
mov cl, byte [esi + eax]
test cl, cl
je 0x590e7b
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x590e60
jmp 0x590e7f
test edx, edx
jne 0x590e80
dec eax
lea edx, [esp + 8]
push edx
mov byte [eax], 0
push 0x104
lea eax, [esp + 0x90]
push eax
call fcn.0058fce0
lea eax, [esp + 0x88]
pop esi
lea edx, [eax + 1]
pop ebx
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x590ea6
sub eax, edx
push eax
lea ecx, [esp + 0x84]
push ecx
push 1
push 0x5ba88c
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.0055e289
add esp, 0x188
ret