joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x430000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x100010a0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x101b100c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x20c]
mov esi, ecx
push 0
push eax
call fcn.1000d180
add esp, 0xc
test esi, esi
je 0x100010fa
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100010d5
sub eax, edx
sar eax, 1
je 0x100010fa
push esi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.1000df77
jmp 0x10001131
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str._substat.dll
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.1000dfdb
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x101b24f8], eax
test eax, eax
jne 0x1000115b
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000a89d
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.STInit
push eax
call esi
push str.STUDPProxy
push dword [0x101b24f8]
mov dword [0x101b24f4], eax
call esi
push str.STUDPTransfer
push dword [0x101b24f8]
call esi
push str.STCmdApp
push dword [0x101b24f8]
call esi
push str.STEntryAddr
push dword [0x101b24f8]
call esi
push str.STUnionID
push dword [0x101b24f8]
call esi
push str.STAppID
push dword [0x101b24f8]
mov dword [0x101b24f0], eax
call esi
push str.STVersion
push dword [0x101b24f8]
mov dword [0x101b24ec], eax
call esi
push str.STOnline
push dword [0x101b24f8]
mov dword [0x101b24e8], eax
call esi
push str.STOffline
push dword [0x101b24f8]
mov dword [0x101b24e4], eax
call esi
push str.STAction
push dword [0x101b24f8]
mov dword [0x101b24e0], eax
call esi
push str.STUninit
push dword [0x101b24f8]
mov dword [0x101b24dc], eax
call esi
mov ecx, dword [ebp - 4]
mov dword [0x101b24d8], eax
xor ecx, ebp
mov al, 1
pop esi
call fcn.1000a89d
mov esp, ebp
pop ebp
ret
Function at 0x10002e00
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x101b100c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x20c]
mov esi, ecx
push 0
push eax
call fcn.1000d180
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x10002e50
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov esi, dword [0x101b2520]
test esi, esi
jne 0x10002ebc
push 0x124
call fcn.1000a8d6
push 0x124
mov esi, eax
push 0
push esi
mov dword [ebp - 0x210], esi
call fcn.1000d180
push 0x104
lea eax, [esi + 4]
mov dword [esi], 0
push 0
push eax
mov dword [esi + 0x108], 0xffffffff
call fcn.1000d180
add esp, 0x1c
lea eax, [esi + 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x101b2520], esi
lea eax, [ebp - 0x20c]
push eax
push str._SetCurrentDirectory___S
push 0
push str.SetCurrentPath
push str.......project_basedllmain.cpp
push 0xa
push esi
call fcn.100073e0
mov ecx, dword [ebp - 4]
add esp, 0x1c
xor ecx, ebp
mov eax, 1
pop esi
call fcn.1000a89d
mov esp, ebp
pop ebp
ret

Function at 0x10003000
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x444
mov eax, dword [0x101b100c]
xor eax, esp
mov dword [esp + 0x440], eax
push esi
push 0x208
lea eax, [esp + 0x34]
mov dword [esp + 8], 0
xorps xmm0, xmm0
mov esi, ecx
push 0
push eax
movups xmmword [esp + 0x14], xmm0
call fcn.1000d180
add esp, 0xc
lea eax, [esp + 0x238]
push 0x208
push 0
push eax
call fcn.1000d180
add esp, 0xc
call fcn.10004450
push 0x104
lea ecx, [esp + 0x34]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x100030b0
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x100030b0
push 0x101ad310
lea eax, [esp + 0x34]
push 0x104
push eax
call fcn.1000dfdb
add esp, 0xc
lea eax, [esp + 0x30]
push str.OptimizerMain.exe
push 0x104
push eax
call fcn.1000dfdb
add esp, 0xc
lea eax, [esp + 0x30]
push eax
push str.__s___start_to_service
lea eax, [esp + 0x240]
push 0x104
push eax
call fcn.10002c40
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 1
add esp, 0x10
mov dword [esp + 0x14], eax
lea eax, [esp + 0x238]
mov dword [esp + 0x1c], 0x493e0
mov dword [esp + 0xc], eax
lea eax, [esp + 4]
mov dword [esp + 0x20], 1
push eax
push 2
push esi
mov dword [esp + 0x30], 0x493e0
mov dword [esp + 0x34], 3
mov dword [esp + 0x38], 0x493e0
mov dword [esp + 0x1c], 3
mov dword [esp + 0x10], 0
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
mov ecx, dword [esp + 0x444]
pop esi
xor ecx, esp
call fcn.1000a89d
mov esp, ebp
pop ebp
ret
Function at 0x10004ad0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
mov dword [ebp - 4], 0
push esi
cmp dword [ebx + 0x5c], 0
jne 0x10004b98
mov edx, dword [ebx + 0x5c]
lea esi, [ebx + 0x4c]
cmp edx, 0x104
jb 0x10004b1e
mov dword [esi + 0x10], 0x104
cmp dword [esi + 0x14], 8
jb 0x10004b11
mov eax, dword [esi]
xor ecx, ecx
mov word [eax + 0x208], cx
jmp 0x10004b2e
mov eax, esi
xor ecx, ecx
mov word [eax + 0x208], cx
jmp 0x10004b2e
push ecx
mov eax, 0x104
mov ecx, esi
sub eax, edx
push eax
call fcn.10001eb0
cmp dword [esi + 0x14], 8
push edi
jb 0x10004b39
mov edi, dword [esi]
jmp 0x10004b3b
mov edi, esi
push 0
push 0x1a
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.SystemOptimizer
push edi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp dword [esi + 0x14], 8
pop edi
jb 0x10004b5f
mov ecx, dword [esi]
jmp 0x10004b61
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10004b64
mov eax, dword [esi + 0x10]
sub ecx, edx
sar ecx, 1
cmp ecx, eax
ja 0x10004b8d
mov dword [esi + 0x10], ecx
cmp dword [esi + 0x14], 8
jb 0x10004b85
mov esi, dword [esi]
xor eax, eax
mov word [esi + ecx*2], ax
jmp 0x10004b98
push ecx
sub ecx, eax
push ecx
mov ecx, esi
call fcn.10001eb0
mov esi, dword [ebp + 8]
lea ecx, [ebx + 0x4c]
xor eax, eax
push 0xffffffffffffffff
push eax
push ecx
mov dword [esi + 0x14], 7
mov ecx, esi
mov dword [esi + 0x10], 0
mov word [esi], ax
call fcn.100019f0
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10004ef0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x101b2d44], eax
test eax, eax
jne 0x10005004
mov esi, dword [0x101b2520]
test esi, esi
jne 0x10004f72
push 0x124
call fcn.1000a8d6
add esp, 4
mov esi, eax
mov dword [ebp - 4], esi
push 0x124
push 0
push esi
call fcn.1000d180
add esp, 0xc
mov dword [esi], 0
lea eax, [esi + 4]
mov dword [esi + 0x108], 0xffffffff
push 0x104
push 0
push eax
call fcn.1000d180
add esp, 0xc
lea eax, [esi + 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x101b2520], esi
push str.error_CreateEvent.
push 0
push str.CMainThread::Start
push str.......project_baseMainThread.cpp
push 0x20
push esi
call fcn.100073e0
mov esi, dword [0x101b2520]
add esp, 0x18
test esi, esi
jne 0x10004ff0
push 0x124
call fcn.1000a8d6
add esp, 4
mov esi, eax
mov dword [ebp - 4], esi
push 0x124
push 0
push esi
call fcn.1000d180
add esp, 0xc
mov dword [esi], 0
lea eax, [esi + 4]
mov dword [esi + 0x108], 0xffffffff
push 0x104
push 0
push eax
call fcn.1000d180
add esp, 0xc
lea eax, [esi + 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x101b2520], esi
push str.CMainThread::Start
push str.......project_baseMainThread.cpp
push 0x20
push ecx
mov ecx, esi
call fcn.10007830
push 0
push 0
push 0x101b2d44
push 0x10004ec0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x101b2d48], eax
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10005030
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [0x101b2d44]
test eax, eax
je 0x10005045
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [0x101b2d44]
mov ecx, dword [0x101b2d48]
test ecx, ecx
je 0x1000508b
push 0xbb8
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x10005070
push 1
push dword [0x101b2d48]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [0x101b2d48]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x101b2d44]
mov dword [0x101b2d48], 0
test eax, eax
je 0x100050a0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x101b2d44], 0
mov eax, 1
ret 4
Function at 0x10006e40
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001db36
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x101b100c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.CStartupAppMgr::IsAppStartup
lea ecx, [ebp - 0x138]
call fcn.10002c80
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.10006500
call fcn.10004450
lea ecx, [ebp - 0x154]
push ecx
mov ecx, eax
call fcn.10004ad0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], ecx
xor ecx, ecx
push 0xffffffffffffffff
push ecx
mov word [ebp - 0x2c], cx
lea ecx, [ebp - 0x2c]
push eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
call fcn.100019f0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x140]
cmp eax, 8
jb 0x10006ef1
inc eax
push eax
push dword [ebp - 0x154]
call fcn.10001f20
xor eax, eax
mov dword [ebp - 0x140], 7
push str.DtlConfigUserConfig.dat
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x144], 0
mov word [ebp - 0x154], ax
call fcn.10001810
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x14], 8
jb 0x10006f26
mov eax, dword [eax]
push eax
push 1
push str.AppStartType
push str.AppData
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov edi, dword [ebp - 0x30]
cmp dword [edi + 0x14], 8
jb 0x10006f4c
mov edi, dword [edi]
mov esi, dword [0x101b2520]
test esi, esi
jne 0x10006fb1
push 0x124
call fcn.1000a8d6
add esp, 4
mov esi, eax
mov dword [ebp - 0x13c], esi
push 0x124
push 0
push esi
call fcn.1000d180
add esp, 0xc
mov dword [esi], 0
lea eax, [esi + 4]
mov dword [esi + 0x108], 0xffffffff
push 0x104
push 0
push eax
call fcn.1000d180
add esp, 0xc
lea eax, [esi + 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x101b2520], esi
push ebx
push edi
push str.IsAppStartup_Result:_path__S__ret__d_
push 0
push str.CStartupAppMgr::IsAppStartup
push str.......project_baseStartupAppMgr.cpp
push 0x40
push esi
call fcn.100073e0
mov eax, dword [ebp - 0x18]
add esp, 0x20
cmp ebx, 1
sete bl
cmp eax, 8
jb 0x10006fe7
inc eax
push eax
push dword [ebp - 0x2c]
call fcn.10001f20
mov ecx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
test ecx, ecx
je 0x10007015
cmp ecx, 0xffffffff
je 0x10007015
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x138]
call fcn.10002d40
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000a89d
mov esp, ebp
pop ebp
ret
Function at 0x10007290
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0x104
push 0
push 0x101b2e10
call fcn.1000d180
add esp, 0xc
push 0x104
push 0x101b2e10
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x100072c4
xor eax, eax
pop ebp
ret 8
push 0x101b2e10
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
test eax, eax
je 0x100072be
push str.log_
push 0x104
push 0x101b2e10
call fcn.100114d1
push str.OptimizerService.log
push 0x104
push 0x101b2e10
call fcn.100114d1
add esp, 0x14
call fcn.10007320
cmp eax, 0x100000
jbe 0x10007315
push 0x101b2e10
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, 0x101b2e10
pop ebp
ret 8

Function at 0x10007320
Capabilities:
Get file size

Disassembly:
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push 0x101b2e10
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x1000735f
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
ret 4
xor eax, eax
pop edi
ret 4
Function at 0x10007a20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x101b100c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ecx + 0x20c]
xor bl, bl
or eax, 1
mov dword [ebp - 8], 0
push eax
push 0
lea eax, [ecx + 4]
mov dword [ebp - 0x10], 0
push eax
push dword [ecx]
mov dword [ebp - 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10007a8c
test esi, esi
je 0x10007a8a
lea eax, [ebp - 8]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10007a8c
mov bl, 1
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10007a9a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.1000a89d
mov esp, ebp
pop ebp
ret 4

Function at 0x10007ab0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x101b100c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
lea eax, [ebp - 8]
mov edi, dword [ebp + 0x10]
xor bl, bl
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
mov eax, dword [ecx + 0x20c]
push 0
or eax, 0x20006
mov dword [ebp - 8], 0
push eax
push 0
push 0
push 0
lea eax, [ecx + 4]
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10007b21
test esi, esi
je 0x10007b1f
push dword [ebp + 0x14]
push edi
push dword [ebp + 0xc]
push eax
push esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x10007b21
mov bl, 1
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x10007b38
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000a89d
mov esp, ebp
pop ebp
ret 0x10

Function at 0x10007b50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x101b100c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
xor bl, bl
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ecx + 0x20c]
or eax, 1
mov dword [ebp - 0xc], 0
push eax
push 0
lea eax, [ecx + 4]
mov dword [ebp - 8], 0
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10007bbd
test esi, esi
je 0x10007bbb
push dword [ebp - 0x10]
lea eax, [ebp - 8]
push edi
push eax
push 0
push esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10007bbd
mov bl, 1
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x10007bcb
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000a89d
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10007be0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x101b100c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
mov eax, dword [ecx + 0x20c]
xor bl, bl
or eax, 0xf003f
mov dword [ebp - 8], 0
push eax
push 0
lea eax, [ecx + 4]
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10007c37
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
movzx ebx, bl
mov ecx, 1
cmove ebx, ecx
mov eax, dword [ebp - 8]
test eax, eax
je 0x10007c4e
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.1000a89d
mov esp, ebp
pop ebp
ret 4

Function at 0x100080b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x101b100c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x228], eax
mov eax, dword [ebp + 0x10]
push 0x210
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.1000d180
add esp, 0xc
lea ecx, [ebp - 0x21c]
call fcn.100079a0
mov ecx, 0x80000002
mov dword [ebp - 0x21c], ecx
add esi, 0x208
je 0x1000812c
push esi
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.1000df77
mov ecx, dword [ebp - 0x21c]
add esp, 0xc
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 0
push eax
mov eax, dword [ebp - 0x10]
xor bl, bl
or eax, 1
mov dword [ebp - 0xc], 0
push eax
push 0
lea eax, [ebp - 0x218]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000818a
test edi, edi
je 0x10008188
push dword [ebp - 0x224]
lea eax, [ebp - 0xc]
push dword [ebp - 0x228]
push eax
push 0
push edi
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000818a
mov bl, 1
mov eax, dword [ebp - 0x220]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x1000819d
push eax
call esi
test bl, bl
jne 0x10008235
lea eax, [ebp - 0x220]
mov dword [ebp - 0x21c], 0x80000001
push eax
mov eax, dword [ebp - 0x10]
or eax, 1
mov dword [ebp - 0x220], 0
push eax
push 0
lea eax, [ebp - 0x218]
mov dword [ebp - 0xc], 0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000820f
test edi, edi
je 0x1000820d
push dword [ebp - 0x224]
lea eax, [ebp - 0xc]
push dword [ebp - 0x228]
push eax
push 0
push edi
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000820f
mov bl, 1
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x1000821c
push eax
call esi
test bl, bl
jne 0x10008235
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1000a89d
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 8]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000a89d
mov esp, ebp
pop ebp
ret 0xc