joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44ea60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x474320
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x490d68]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x18], esi
mov eax, dword [esi]
xor ebx, ebx
cmp eax, ebx
jne 0x44eaac
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
jne 0x44eab9
mov dword [ebp - 0x14], ebx
jmp 0x44eacb
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x14], eax
cmp eax, ebx
jne 0x44eb65
mov eax, dword [esi]
mov eax, dword [eax]
cmp eax, ebx
je 0x44ea98
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x44ea98
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.0044e940
mov edi, eax
mov dword [ebp - 0x14], edi
cmp edi, ebx
jne 0x44eb08
push 0x488c30
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 1
call fcn.0045804c
mov eax, dword [esi]
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
je 0x44eb1e
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp eax, ebx
jne 0x44eb54
push 0x488c30
lea ecx, [ebp - 0x20]
push ecx
mov dword [ebp - 0x20], 4
call fcn.0045804c
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x44eb48
mov edx, dword [ebp - 0x18]
mov ecx, dword [edx]
push eax
add ecx, 8
call fcn.0044e8a0
mov eax, 0x44eb4e
ret
mov esi, dword [esi]
mov eax, dword [esi]
test eax, eax
je 0x44eb63
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44eb80
Capabilities:
Allocate thread local storage

Disassembly:
push 0xffffffffffffffff
push 0x47434b
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x490d68]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], edi
lea esi, [edi + 8]
push 0x5a0
lea eax, [esi + 8]
push 0
mov dword [edi], 0
mov dword [edi + 4], 0xffffffff
push eax
mov dword [esi], 0
call fcn.00457170
add esp, 0xc
mov dword [esi + 0x5ac], esi
mov dword [esi + 0x5a8], esi
mov dword [esi + 0x5b0], esi
mov dword [esp + 0x18], 0
mov dword [edi + 0x5bc], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
jne 0x44ec1b
push 0x488c30
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], 2
call fcn.0045804c
mov ecx, dword [esp + 0x20]
mov dword [edi], ecx
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4

Function at 0x44ec90
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov ecx, 0x492e34
jmp fcn.0044ea60
Function at 0x44f410
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret

Function at 0x44fcc0
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x805c]
mov eax, 0x805c
call fcn.004580a0
push 0xffffffffffffffff
push 0x4743b0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x490d68]
xor eax, ebp
mov dword [ebp + 0x8058], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ecx
mov edi, dword [ebp + 0x8064]
mov eax, dword [ebp + 0x8068]
xor esi, esi
push esi
push esi
push esi
push edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], esi
mov dword [ebp + 0x14], esi
mov dword [ebp + 0x10], esi
mov dword [ebp], 0x67452301
mov dword [ebp + 4], 0xefcdab89
mov dword [ebp + 8], 0x98badcfe
mov dword [ebp + 0xc], 0x10325476
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x44fd60
push 0x47d348
push esi
push 0x1ae
push str..QHMD5.cpp
call fcn.00447750
add esp, 0x10
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0x8000
lea edx, [ebp + 0x58]
push edx
push edi
call ebx
test eax, eax
jne 0x44fd94
push 0x47d324
push eax
push 0x1b1
push str..QHMD5.cpp
call fcn.00447750
add esp, 0x10
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x44fdac
push esi
lea eax, [ebp + 0x58]
push eax
lea ecx, [ebp]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.0044faf0
cmp esi, 0x8000
je 0x44fd66
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
lea edx, [ebp]
push edx
push eax
call fcn.0044fbb0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8058]
xor ecx, ebp
call fcn.0045715c
add ebp, 0x805c
mov esp, ebp
pop ebp
ret 8
Function at 0x4545c0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x4545fd
mov edx, dword [esp + 4]
test edx, edx
je 0x4545fd
mov ecx, dword [esp + 8]
test ecx, ecx
jle 0x4545fd
push esi
push 0
lea esi, [esp + 0xc]
push esi
push ecx
push edx
push eax
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
pop esi
test eax, eax
je 0x4545fd
mov eax, dword [esp + 4]
ret 8
or eax, 0xffffffff
ret 8

Function at 0x454610
Capabilities:
Get file size

Disassembly:
push ecx
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
jne 0x454620
or eax, eax
or edx, 0xffffffff
pop ecx
ret
push esi
lea ecx, [esp + 4]
push ecx
push eax
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [esp + 4]
push 1
push 0
push 0
push edx
mov esi, eax
call fcn.0045b080
xor ecx, ecx
add eax, esi
adc edx, ecx
pop esi
pop ecx
ret

Function at 0x4547a0
Capabilities:
Check mutex on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 4], 0
jne 0x4547ba
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 4], eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 4]
inc dword [esi + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
neg eax
sbb eax, eax
inc eax
pop esi
ret

Function at 0x454880
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x4559c0
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push 0
push 0
push 0
push 0
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
neg eax
sbb eax, eax
inc eax
ret

Function at 0x4559f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
neg eax
sbb eax, eax
inc eax
ret

Function at 0x455a20
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
neg eax
sbb eax, eax
inc eax
ret
Function at 0x456df0
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
sub esp, 0x80c
mov eax, dword [0x490d68]
xor eax, esp
mov dword [esp + 0x808], eax
xor eax, eax
push 0x7fe
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.00457170
add esp, 0xc
lea edx, [esp + 4]
push edx
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 8]
push ecx
push str.Path
push 0x4782b8
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 0x800
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x456e70
mov eax, 1
mov ecx, dword [esp + 0x808]
xor ecx, esp
call fcn.0045715c
add esp, 0x80c
ret
push str.360ver.dll
lea edx, [esp + 0xc]
push edx
mov eax, edx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x456e56
lea edx, [esp + 8]
push edx
call fcn.00456d20
add esp, 4
test eax, eax
je 0x456e56
push esi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
jne 0x456ece
lea eax, [esi + 1]
pop esi
mov ecx, dword [esp + 0x808]
xor ecx, esp
call fcn.0045715c
add esp, 0x80c
ret
push edi
push str.IsBetaVersion
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x810]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.0045715c
add esp, 0x80c
ret

Function at 0x456f00
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x1004
call fcn.004580a0
mov eax, dword [0x490d68]
xor eax, esp
mov dword [esp + 0x1000], eax
push esi
mov esi, dword [esp + 0x1010]
push edi
mov edi, dword [esp + 0x1010]
push 0x1000
lea eax, [esp + 0xc]
push 0
push eax
call fcn.00457170
push 0x800
lea ecx, [esp + 0x18]
push 0x47e620
push ecx
call fcn.0045810b
push 0x800
lea edx, [esp + 0x24]
push esi
push edx
call fcn.004580cb
push 0x800
lea eax, [esp + 0x30]
push 0x47e5f4
push eax
call fcn.004580cb
push 0x800
lea ecx, [esp + 0x3c]
push esi
push ecx
call fcn.004580cb
push 0x800
lea edx, [esp + 0x48]
push str.vL
push edx
call fcn.004580cb
add esp, 0x48
push 0x800
lea eax, [esp + 0xc]
push edi
push eax
call fcn.004580cb
push 0x800
lea ecx, [esp + 0x18]
push 0x47e5b4
push ecx
call fcn.004580cb
add esp, 0x18
push 0x14
push esi
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov esi, eax
cmp esi, 6
jne 0x457012
call fcn.00456d00
test eax, eax
je 0x456ffa
call fcn.00456df0
test eax, eax
je 0x456ffa
push 5
push 0
push 0
push str.http:__down.360safe.com_setupbeta.exe
jmp 0x457005
push 5
push 0
push 0
push str.http:__down.360safe.com_setup.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [esp + 0x1018], 0
je 0x457023
push 0
call fcn.0045ab21
mov ecx, dword [esp + 0x1008]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.0045715c
add esp, 0x1004
ret
Function at 0x457040
Capabilities:
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x140
mov eax, dword [0x490d68]
xor eax, esp
mov dword [esp + 0x13c], eax
mov eax, dword [esp + 0x144]
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x457092
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x13c]
xor ecx, esp
call fcn.0045715c
add esp, 0x140
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [esp + 0x10]
push eax
push 0x40
lea ecx, [esp + 0x114]
push ecx
push esi
call edi
test eax, eax
je 0x45711b
cmp dword [esp + 0xc], 0x40
jne 0x45711b
mov edx, 0x5a4d
cmp word [esp + 0x108], dx
jne 0x45711b
mov eax, dword [esp + 0x144]
push 0
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, dword [esp + 0x144]
jne 0x45711b
push 0
lea ecx, [esp + 0x10]
push ecx
push 0xf8
lea edx, [esp + 0x1c]
push edx
push esi
call edi
test eax, eax
je 0x45711b
cmp dword [esp + 0xc], 0xf8
jne 0x45711b
cmp dword [esp + 0x10], 0x4550
jne 0x45711b
cmp word [esp + 0x16], bx
je 0x45711b
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x148]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0045715c
add esp, 0x140
ret

Function at 0x457150
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
ret

Function at 0x45715c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x490d68]
jne 0x457166
repz ret
jmp fcn.0045c09d
Function at 0x46967c
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.0045d173
and dword [ebp - 4], 0
cmp dword [0x4939d4], 0
mov ebx, eax
jne 0x46972d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4697de
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4697de
push eax
call fcn.0045d101
mov dword [esp], 0x480348
push edi
mov dword [0x4939d4], eax
call esi
push eax
call fcn.0045d101
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4939d8], eax
call esi
push eax
call fcn.0045d101
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4939dc], eax
call esi
push eax
call fcn.0045d101
pop ecx
mov dword [0x4939e4], eax
test eax, eax
je 0x46972d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0045d101
pop ecx
mov dword [0x4939e0], eax
mov eax, dword [0x4939e0]
cmp eax, ebx
je 0x469785
cmp dword [0x4939e4], ebx
je 0x469785
push eax
call fcn.0045d17c
push dword [0x4939e4]
mov esi, eax
call fcn.0045d17c
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x469785
test edi, edi
je 0x469785
call esi
test eax, eax
je 0x46977c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x46977c
test byte [ebp - 0xc], 1
jne 0x469785
or dword [ebp + 0x10], 0x200000
jmp 0x4697be
mov eax, dword [0x4939d8]
cmp eax, ebx
je 0x4697be
push eax
call fcn.0045d17c
pop ecx
test eax, eax
je 0x4697be
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4697be
mov eax, dword [0x4939dc]
cmp eax, ebx
je 0x4697be
push eax
call fcn.0045d17c
pop ecx
test eax, eax
je 0x4697be
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4939d4]
call fcn.0045d17c
pop ecx
test eax, eax
je 0x4697de
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4697e0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46f160
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x2c14
call fcn.004580a0
mov eax, dword [0x490d68]
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 0x46f2cb
cmp dword [esp + 0x2c20], edi
je 0x46f2cb
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.0046eb80
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 0x46f2a4
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.00457170
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 0x46f297
push 0x3e8
lea eax, [esp + 0x12c]
push edi
push eax
call fcn.00457170
mov edx, dword [esp + 0x534]
lea ecx, [esp + 0x134]
push ecx
push 1
push edx
lea eax, [esp + 0x528]
push eax
call fcn.00470880
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.0046ea80
test eax, eax
jne 0x46f297
mov dword [esp + 0x10], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], edi
jne 0x46f2ae
inc ebx
cmp ebx, 0x10
jl 0x46f1b0
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
mov ecx, dword [esp + 0x2c10]
xor ecx, esp
call fcn.0045715c
add esp, 0x2c14
ret
mov ecx, dword [esp + 0x2c14]
pop edi
xor ecx, esp
xor eax, eax
call fcn.0045715c
add esp, 0x2c14
ret
Function at 0x46f570
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x2ec
mov eax, dword [0x490d68]
xor eax, esp
mov dword [esp + 0x2e8], eax
push edi
mov edi, dword [esp + 0x2f4]
mov dword [esp + 0x18], edi
test edi, edi
je 0x46f771
cmp dword [esp + 0x2f8], 0
je 0x46f771
push 0x64
lea eax, [esp + 0x20]
push 0
push eax
call fcn.00457170
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 8
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x46f738
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 0x46f72b
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 0x46f6f9
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 0x46f6ee
push 0x64
push eax
lea eax, [esp + 0x90]
push eax
call fcn.00457170
lea ecx, [esp + 0x1fc]
push 0x64
push ecx
lea edi, [esp + 0x9c]
call fcn.0046f460
add esp, 0x14
test eax, eax
je 0x46f6ee
cmp byte [esp + 0x24], 0
je 0x46f6b2
lea edx, [esp + 0x24]
push edx
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jge 0x46f6ee
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 0x46f6e1
mov cl, byte [esi + eax]
test cl, cl
je 0x46f6e1
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x46f6c6
jmp 0x46f6e5
test edx, edx
jne 0x46f6e6
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 0x46f610
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 0x46f771
mov edx, dword [esp + 0x2f8]
lea ecx, [esp + 0x1c]
push ecx
push edx
push edi
call fcn.0046ea80
xor ecx, ecx
test eax, eax
setge cl
pop edi
mov eax, ecx
mov ecx, dword [esp + 0x2e8]
xor ecx, esp
call fcn.0045715c
add esp, 0x2ec
ret
mov ecx, dword [esp + 0x2ec]
pop edi
xor ecx, esp
xor eax, eax
call fcn.0045715c
add esp, 0x2ec
ret
Function at 0x46f9e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x50c
mov eax, dword [0x490d68]
xor eax, esp
mov dword [esp + 0x508], eax
push ebp
mov ebp, dword [esp + 0x514]
test edi, edi
je 0x46fb5d
cmp ebp, 0x20
jb 0x46fb5d
push 0x400
lea eax, [esp + 0x110]
push 0
push eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0x400
call fcn.00457170
add esp, 0xc
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x110]
push edx
lea eax, [esp + 0x10]
push eax
push 0x48047c
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x46fb5d
lea eax, [esp + 0x10c]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46fa70
sub eax, edx
cmp eax, 0x40
jne 0x46fb5d
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 0x46faae
mov cl, byte [esi + eax]
test cl, cl
je 0x46faae
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x46fa96
jmp 0x46fab2
test edx, edx
jne 0x46fab3
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 0x46faeb
mov cl, byte [edx + eax]
test cl, cl
je 0x46faeb
mov byte [eax], cl
inc eax
sub esi, 1
jne 0x46fad0
jmp 0x46faef
test esi, esi
jne 0x46faf0
dec eax
push 0x400
lea edx, [esp + 0x118]
push 0
push edx
mov byte [eax], 0
call fcn.00457170
push 0x400
lea ebx, [esp + 0x124]
lea ecx, [esp + 0x24]
call fcn.0046ebe0
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 0x46fb5d
lea edx, [esp + 0xc]
push edx
push ebp
push edi
call fcn.0046ea80
neg eax
sbb eax, eax
inc eax
pop ebp
mov ecx, dword [esp + 0x508]
xor ecx, esp
call fcn.0045715c
add esp, 0x50c
ret
mov ecx, dword [esp + 0x50c]
pop ebp
xor ecx, esp
xor eax, eax
call fcn.0045715c
add esp, 0x50c
ret

Function at 0x46fb80
Capabilities:
Set registry value

Disassembly:
sub esp, 0x188
mov eax, dword [0x490d68]
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.00457170
push 0x80
lea ebx, [esp + 0x18]
mov ecx, esi
call fcn.0046ebe0
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 0x46fbeb
mov cl, byte [esi + eax]
test cl, cl
je 0x46fbeb
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x46fbd0
jmp 0x46fbef
test edx, edx
jne 0x46fbf0
dec eax
lea edx, [esp + 8]
push edx
mov byte [eax], 0
push 0x104
lea eax, [esp + 0x90]
push eax
call fcn.0046eaf0
lea eax, [esp + 0x88]
pop esi
lea edx, [eax + 1]
pop ebx
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46fc16
sub eax, edx
push eax
lea ecx, [esp + 0x84]
push ecx
push 1
push 0x48047c
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.0045715c
add esp, 0x188
ret