joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40bf40
Capabilities:
Connect pipe
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x654
mov eax, dword [0x49215c]
test eax, eax
push edi
je 0x40bfc7
test byte [0x49216c], 2
je 0x40bfc7
xor eax, eax
mov ecx, 0x188
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
mov eax, dword [0x492164]
mov dword [esp + 0x48], eax
push 1
xor eax, eax
mov ecx, 0xb
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
push ecx
push 0x2c
lea edx, [esp + 0x18]
push edx
push 0x620
lea eax, [esp + 0x4c]
push eax
push str..pipeExtEventPipe_Service
mov dword [esp + 0x5c], 0x18
mov dword [esp + 0x54], 0x8001
mov dword [esp + 0x58], 0x620
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
test eax, eax
je 0x40bfc7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4920d8]
test ecx, ecx
je 0x40bfd8
push 0
call fcn.00417770
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x40d8c0
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x208
push ebx
push ebp
push esi
push edi
xor eax, eax
mov ecx, 0x80
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
test dword [0x4910e8], 0x10000
mov dword [esp + 0x14], 1
je 0x40d8fe
push str.WinMain:_StartBlobalService_Trigger__n
call fcn.0040a4a0
add esp, 4
push 4
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
mov dword [esp + 0x10], esi
jne 0x40d941
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x1c]
push str.bGlobalServiceAlive._failed_to_open_SCM._err_d
push eax
call fcn.0045f139
lea ecx, [esp + 0x24]
push ecx
call fcn.00410a60
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x492098], 7
mov eax, str.Ati_HotKey_Poller
jbe 0x40d954
mov eax, str.Ati_External_Event_Utility
push 0x10
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
jne 0x40d998
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x1c]
push str.StartGlobalService._failed_to_OpenService._err_d
push edx
call fcn.0045f139
lea eax, [esp + 0x24]
push eax
call fcn.00410a60
add esp, 0x10
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
push 0
push 0
push edi
inc esi
call ebx
test eax, eax
jne 0x40d9be
push 0x1f4
call ebp
cmp esi, 0xa
jl 0x40d9a6
cmp esi, 0xa
jne 0x40d9ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x1c]
push str.StartGlobalService._failed_to_StartService._err_d
push ecx
call fcn.0045f139
lea edx, [esp + 0x24]
push edx
call fcn.00410a60
add esp, 0x10
xor ebx, ebx
jmp 0x40d9ee
mov ebx, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
test dword [0x4910e8], 0x10000
je 0x40da17
push str.WinMain:_StartBlobalService_Finish__n
call fcn.0040a4a0
add esp, 4
pop edi
mov eax, ebx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40db00
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x108
push ebx
push ebp
push esi
push edi
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x10]
push str.ATI_ExtEventApp_StartupMutex
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push str.Global_s
push eax
call fcn.0045f139
push str.bSyncWithGlobalService_enter
call fcn.0040a970
add esp, 0x10
mov esi, 4
call fcn.0040a610
test eax, eax
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
jne 0x40db72
push str.bSyncWithGlobalService__Ati_Hot_Key_Poller_Service_is_not_running_n
call fcn.0040a970
add esp, 4
push 0x7d0
call ebp
dec esi
je 0x40dbde
call fcn.0040a610
test eax, eax
je 0x40db52
mov edi, dword [sym.imp.KERNEL32.dll_OpenMutexA]
xor ebx, ebx
lea ebx, [ebx]
lea ecx, [esp + 0x10]
push ecx
push 1
push 0x100000
call edi
mov esi, eax
test esi, esi
jne 0x40dbba
inc ebx
cmp ebx, 0xa
je 0x40dba3
push 0x1f4
call ebp
jmp 0x40db80
push str.bSyncWithGlobalService__Ati_Hot_Key_Poller_Service_Startup_mutex_is_not_ready_n
call fcn.0040a970
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push 0xfa0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40dbe8
push str.bSyncWithGlobalService:_WaitForSingleObject_failed
call fcn.0040a970
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.bSyncWithGlobalService_exit
call fcn.0040a970
add esp, 4
pop edi
mov eax, 1
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410b60
Capabilities:
Access the windows event log

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
push esi
push edi
mov esi, ecx
mov ecx, dword [esp + 0x24]
xor edi, edi
test eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
je 0x410b8a
mov edi, 1
test ecx, ecx
je 0x410b8f
inc edi
test edx, edx
je 0x410b94
inc edi
mov eax, dword [esi + 0x6c]
test eax, eax
jne 0x410baa
lea eax, [esi + 4]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov dword [esi + 0x6c], eax
mov esi, dword [esi + 0x6c]
test esi, esi
je 0x410bd0
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push 0
lea ecx, [esp + 0xc]
push ecx
push 0
push edi
push 0
push edx
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
pop edi
pop esi
add esp, 0xc
ret 0x14

Function at 0x410c10
Capabilities:
Access the windows event log

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
push str.Entering_CNTService::Initialize__
mov esi, ecx
call fcn.0040a4a0
mov eax, dword [esi + 0x4c]
push 2
push eax
push str.CNTService::SetStatus__lu___lu_
call fcn.0040a4a0
mov ecx, dword [esi + 0x4c]
add esp, 0x10
lea ebx, [esi + 0x50]
push ebx
push ecx
mov dword [esi + 0x54], 2
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 8]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebp, ebp
cmp edi, ebp
mov dword [esi + 0x5c], eax
mov eax, dword [esi + 0x6c]
mov dword [esi + 0x64], ebp
mov dword [esi + 0x68], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], ebp
jne 0x410cd5
cmp eax, ebp
jne 0x410c8a
lea eax, [esi + 4]
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov dword [esi + 0x6c], eax
mov eax, dword [esi + 0x6c]
cmp eax, ebp
je 0x410ca6
push ebp
lea ecx, [esp + 0x14]
push ecx
push ebp
push ebp
push ebp
push 0x68
push ebp
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
mov edx, dword [esi + 0x4c]
push 1
push edx
push str.CNTService::SetStatus__lu___lu_
call fcn.0040a4a0
mov eax, dword [esi + 0x4c]
add esp, 0xc
push ebx
push eax
mov dword [esi + 0x54], 1
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
cmp eax, ebp
jne 0x410ce7
lea ecx, [esi + 4]
push ecx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov dword [esi + 0x6c], eax
mov eax, dword [esi + 0x6c]
cmp eax, ebp
je 0x410d03
push ebp
lea edx, [esp + 0x14]
push edx
push ebp
push ebp
push ebp
push 0x69
push ebp
push 4
push eax
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
mov eax, dword [esi + 0x4c]
push 4
push eax
push str.CNTService::SetStatus__lu___lu_
call fcn.0040a4a0
mov ecx, dword [esi + 0x4c]
add esp, 0xc
push ebx
push ecx
mov dword [esi + 0x54], 4
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
push str.Leaving_CNTService::Initialize__
call fcn.0040a4a0
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret
Function at 0x410d50
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
mov eax, dword [esp + 0x5c]
push esi
xor esi, esi
cmp eax, esi
mov dword [esp + 0x14], 0x44
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], str.WinSta0Default
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x40], esi
mov word [esp + 0x44], si
mov dword [esp + 0x48], esi
mov word [esp + 0x46], si
mov eax, str.Ati2evxx.exe__NoLogOnClient
jne 0x410da2
mov eax, str.Ati2evxx.exe__Client
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x18]
push edx
push esi
push esi
push 0x20
push esi
push esi
push esi
push eax
mov eax, dword [esp + 0x80]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
jne 0x410ddd
push str.Failed_to_Create_Ati2evxx.exe_process_n
call fcn.0040a4a0
add esp, 4
xor eax, eax
pop esi
add esp, 0x54
ret 8
push str.Client_Ati2evxx.exe_created_n
call fcn.0040a4a0
mov eax, dword [esp + 8]
add esp, 4
cmp eax, esi
je 0x410e01
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 4]
pop esi
add esp, 0x54
ret 8
Function at 0x410e90
Capabilities:
Access the windows event log

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [0x49f63c]
push edi
mov edi, dword [esp + 0x18]
push edi
push str.CNTService::Handler__lu_
call fcn.0040a4a0
lea eax, [edi - 1]
add esp, 8
cmp eax, 4
ja case.default.0x410eb9
jmp dword [eax*4 + 0x410ff0]
push 3
mov ecx, esi
call fcn.00410be0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x10]
mov eax, dword [esi + 0x6c]
xor edi, edi
cmp eax, edi
mov dword [esp + 8], edi
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], edi
jne 0x410efa
lea eax, [esi + 4]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov dword [esi + 0x6c], eax
mov eax, dword [esi + 0x6c]
cmp eax, edi
je 0x410f16
push edi
lea ecx, [esp + 0xc]
push ecx
push edi
push edi
push edi
push 0x6c
push edi
push 4
push eax
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
mov ecx, 0x492400
call fcn.00415810
jmp 0x410fc4
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
jmp 0x410fc4
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
jmp 0x410fc4
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x14]
jmp 0x410fc4
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x20]
mov dword [esi + 0x54], 1
jmp 0x410fc4
cmp edi, 0x80
jb 0x410f85
mov edx, dword [esi]
push edi
mov ecx, esi
call dword [edx + 0x24]
test eax, eax
jne 0x410fc4
mov eax, dword [esi + 0x6c]
xor edi, edi
cmp eax, edi
mov dword [esp + 8], edi
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], edi
jne 0x410fa8
lea eax, [esi + 4]
push eax
jmp 0x410f9e
mov eax, dword [esi + 0x6c]
xor edi, edi
cmp eax, edi
mov dword [esp + 8], edi
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], edi
jne 0x410fa8
lea edx, [esi + 4]
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov dword [esi + 0x6c], eax
mov eax, dword [esi + 0x6c]
cmp eax, edi
je 0x410fc4
push edi
lea ecx, [esp + 0xc]
push ecx
push edi
push edi
push edi
push 0x6a
push edi
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
mov edx, dword [esi + 0x54]
mov eax, dword [esi + 0x4c]
push edx
push eax
push str.Updating_status___lu___lu_
call fcn.0040a4a0
mov edx, dword [esi + 0x4c]
add esp, 0xc
lea ecx, [esi + 0x50]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x411150
Capabilities:
Access the windows event log
Create service
Persist via windows service
Set registry value

Disassembly:
sub esp, 0x224
push ebp
push esi
push 6
push 0
mov ebp, ecx
push 0
mov dword [esp + 0x24], ebp
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
mov dword [esp + 0x10], esi
je 0x4111bb
push 0x104
lea eax, [esp + 0x2c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x3c]
push ecx
push 1
push 2
push 0x110
push 0x10
add ebp, 4
push ebp
push ebp
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
mov dword [esp + 0xc], eax
jne 0x4111c6
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
xor eax, eax
pop ebp
add esp, 0x224
ret
push edi
mov ecx, 0xe
mov esi, str.SYSTEMCurrentControlSetServicesEventLogApplication_
lea edi, [esp + 0x130]
mov eax, ebp
mov dword [esp + 0xc], 0
rep movsd dword es:[edi], dword [esi]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4111e6
lea edi, [esp + 0x130]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4111f7
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x134]
push eax
and ecx, 3
push reloc.OLEAUT32.dll_SysReAllocString
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x41124b
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ecx
call esi
mov edx, dword [esp + 0x14]
push edx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x224
ret
lea eax, [esp + 0x2c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x411252
mov ecx, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
sub eax, edx
inc eax
push eax
lea eax, [esp + 0x30]
push eax
push 2
push 0
push str.EventMessageFile
push ecx
call esi
mov eax, dword [esp + 0xc]
push 4
lea edx, [esp + 0x1c]
push edx
push 4
push 0
push str.TypesSupported
push eax
mov dword [esp + 0x30], 7
call esi
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebp
xor esi, esi
test eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
je 0x4112c3
mov esi, 1
mov edi, dword [esp + 0x1c]
mov eax, dword [edi + 0x6c]
test eax, eax
jne 0x4112da
push ebp
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov dword [edi + 0x6c], eax
mov eax, dword [edi + 0x6c]
test eax, eax
je 0x4112fa
push 0
lea edx, [esp + 0x24]
push edx
push 0
push esi
push 0
push 0x64
push 0
push 4
push eax
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call esi
mov ecx, dword [esp + 0x14]
push ecx
call esi
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x224
ret
Function at 0x411320
Capabilities:
Access the windows event log
Delete service

Disassembly:
sub esp, 0x18
push ebx
push ebp
push edi
push 4
xor ebx, ebx
push ebx
push ebx
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
cmp ebp, ebx
mov dword [esp + 0x14], ebp
jne 0x411347
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
push esi
push 0x10000
lea esi, [edi + 4]
push esi
push ebp
mov dword [esp + 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
cmp eax, ebx
mov dword [esp + 0x14], eax
je 0x411406
push eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
xor ebp, ebp
test eax, eax
mov eax, esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], eax
je 0x4113c2
cmp eax, ebx
je 0x41138c
mov ebp, 1
cmp dword [edi + 0x6c], ebx
jne 0x41139c
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov dword [edi + 0x6c], eax
mov edi, dword [edi + 0x6c]
cmp edi, ebx
je 0x4113b8
push ebx
lea eax, [esp + 0x20]
push eax
push ebx
push ebp
push ebx
push 0x65
push ebx
push 4
push edi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
mov dword [esp + 0x10], 1
jmp 0x4113f7
cmp eax, ebx
je 0x4113cb
mov ebp, 1
cmp dword [edi + 0x6c], ebx
jne 0x4113db
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov dword [edi + 0x6c], eax
mov edi, dword [edi + 0x6c]
cmp edi, ebx
je 0x4113f7
push ebx
lea ecx, [esp + 0x20]
push ecx
push ebx
push ebp
push ebx
push 0x66
push ebx
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebp, dword [esp + 0x18]
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [esp + 0x10]
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x18
ret

Function at 0x411500
Capabilities:
Create thread

Disassembly:
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp]
push eax
push 0
push ecx
push 0x411450
push 0
push 0
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x411536
push str.FAILURE:_HandlerEx:_Failed_to_create_thread.
call fcn.0040a4a0
add esp, 4
pop ecx
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x411cc0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 8
test eax, eax
push edi
mov edi, dword [esp + 0x1c]
mov dword [edi], 0
jbe 0x411d55
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x20]
add esi, 4
mov dword [esp + 0x10], eax
mov ebx, 4
lea ecx, [ecx]
lea eax, [esp + 0x28]
push eax
mov eax, dword [esi - 4]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0
push eax
push ebp
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x411d35
cmp dword [esp + 0x28], ebx
jne 0x411d35
cmp dword [esp + 0x24], 1
jne 0x411d44
mov ecx, dword [esi]
mov eax, dword [edi]
or eax, ecx
jmp 0x411d42
mov eax, dword [esi + 4]
test eax, eax
je 0x411d44
mov edx, dword [esi]
mov eax, dword [edi]
or eax, edx
mov dword [edi], eax
mov eax, dword [esp + 0x10]
add esi, 0xc
dec eax
mov dword [esp + 0x10], eax
jne 0x411cf0
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x412c10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x110
push esi
mov esi, dword [ebx + 0xc]
push edi
mov dword [esp + 0xc], 0
call fcn.00412750
mov esi, eax
test esi, esi
jne 0x412c3f
mov eax, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov ecx, dword [ebx + 0xc]
lea eax, [esp + 0x10]
push eax
xor eax, eax
call fcn.00412a10
add esp, 4
test eax, eax
jne 0x412cd1
mov edx, dword [ebx + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
push eax
push edx
push eax
push eax
push eax
lea eax, [esp + 0x2c]
push eax
push esi
call fcn.00412840
add esp, 0x24
test eax, eax
je 0x412c8d
mov eax, 2
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 4]
push ecx
mov ecx, dword [ebx + 0x10]
push edx
mov edx, dword [esp + 0x14]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x412cc4
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x412e10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
call fcn.00412750
mov ebx, eax
test ebx, ebx
je 0x412e67
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push eax
xor eax, eax
mov ecx, esi
call fcn.00412a10
add esp, 4
test eax, eax
jne 0x412eb6
lea ecx, [esp + 0xc]
push ecx
push 1
push eax
lea edx, [esp + 0x1c]
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x412e73
mov eax, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x412ea9
mov ecx, dword [esp + 0xc]
push 0
push 0
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x412ea9
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 9
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x412ec0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x110
push esi
mov esi, dword [ebx + 0xc]
push edi
mov dword [esp + 8], 0
call fcn.00412750
mov esi, eax
test esi, esi
jne 0x412eef
mov eax, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 0xc]
push eax
push ecx
call fcn.00412e10
add esp, 8
test eax, eax
jne 0x412fca
mov ecx, 0x41
lea edi, [esp + 0x10]
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
mov ecx, dword [ebx + 0xc]
push edx
call fcn.00412a10
add esp, 4
test eax, eax
jne 0x412fca
mov ecx, dword [ebx + 8]
push eax
lea eax, [esp + 0xc]
push eax
push 0
push ecx
push 0
push 0
push 0
lea edx, [esp + 0x2c]
push edx
push esi
call fcn.00412840
add esp, 0x24
test eax, eax
je 0x412f59
mov eax, 2
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
test esi, esi
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
je 0x412f7b
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edx, dword [ebx + 0x10]
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push esi
lea ecx, [ebx + 4]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x412fb0
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0xa
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x412fc8
mov eax, dword [esp + 0xc]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x413150
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
call fcn.00412750
mov ebx, eax
test ebx, ebx
jne 0x413179
mov eax, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push esi
call fcn.00412e10
add esp, 8
test eax, eax
jne 0x4131fd
mov ecx, 0x41
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push eax
xor eax, eax
mov ecx, esi
call fcn.00412a10
add esp, 4
test eax, eax
jne 0x4131fd
push eax
lea ecx, [esp + 0x10]
push ecx
push eax
push 2
push eax
push eax
push eax
lea edx, [esp + 0x2c]
push edx
push ebx
call fcn.00412840
add esp, 0x24
test eax, eax
jne 0x4131e4
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0xc]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x4131f0
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret