joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40277a
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov esi, dword [ebp + 0x10]
push edi
push 6
pop ecx
push dword [0x40d890]
lea edi, [ebp - 0x18]
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_IsWindowVisible]
xor edi, edi
test eax, eax
je 0x40294f
cmp dword [0x40d85c], edi
je 0x40294f
cmp dword [ebp + 0xc], 0x201
je 0x40292d
cmp dword [ebp + 0xc], 0x204
je 0x40292d
cmp dword [ebp + 8], edi
jne 0x402922
cmp dword [0x40d9ac], 0x3ee
je 0x402922
mov esi, 0x207
cmp dword [ebp + 0xc], esi
push ebx
mov edi, 0x20b
mov ebx, 0x20a
je 0x402805
cmp dword [ebp + 0xc], edi
je 0x402805
cmp dword [ebp + 0xc], ebx
jne 0x402921
push 0
push dword [0x40d890]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x40d830], 0
jne 0x40282d
and dword [0x40d830], 0
call fcn.00401820
call fcn.0040183d
cmp dword [0x40d858], 0
jne 0x40283b
call fcn.0040183d
xor ecx, ecx
movsx eax, cx
imul eax, eax, 0x14
mov eax, dword [eax + 0x40d934]
cmp eax, dword [0x40d9ac]
je 0x402858
inc ecx
cmp cx, 6
jle 0x40283d
cmp dword [ebp + 0xc], esi
jne 0x40286d
movsx eax, cx
imul eax, eax, 0x14
mov dword [eax + 0x40d93c], 3
cmp dword [ebp + 0xc], edi
jne 0x4028a2
mov eax, dword [ebp - 0x10]
xor edi, edi
shr eax, 0x10
inc edi
cmp ax, di
jne 0x40288c
movsx edx, cx
imul edx, edx, 0x14
mov dword [edx + 0x40d93c], edi
cmp ax, 2
jne 0x4028e2
movsx eax, cx
imul eax, eax, 0x14
mov dword [eax + 0x40d93c], 2
cmp dword [ebp + 0xc], ebx
jne 0x4028e2
cmp dword [0x40d9ec], 0
je 0x4028e2
mov eax, dword [ebp - 0x10]
shr eax, 0x10
cmp ax, 0x78
jne 0x4028cc
movsx edx, cx
imul edx, edx, 0x14
mov dword [edx + 0x40d93c], 4
cmp ax, 0xff88
jne 0x4028e2
movsx eax, cx
imul eax, eax, 0x14
mov dword [eax + 0x40d93c], 5
movsx eax, cx
mov esi, eax
imul esi, esi, 0x14
lea edi, [esi + 0x40d93c]
mov ecx, dword [edi]
push ecx
push dword [esi + 0x40d938]
mov dword [eax*4 + 0x40d834], ecx
push eax
call fcn.00401bf4
mov eax, dword [edi]
call fcn.00401023
push eax
push dword [esi + 0x40d930]
call fcn.004018a4
add esp, 0x14
call fcn.00401a37
pop ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
jmp 0x4029ec
push edi
push dword [0x40d890]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x40d858], edi
jne 0x402922
call fcn.0040183d
xor eax, eax
inc eax
jmp 0x4029fb
cmp dword [ebp + 8], edi
mov esi, dword [ebp + 0xc]
jne 0x4029e8
call fcn.004024ca
test eax, eax
je 0x4029e8
cmp esi, 0x208
je 0x402947
cmp esi, 0x20c
je 0x402947
cmp esi, 0x20a
jne 0x4029ad
cmp dword [0x40d9ec], edi
je 0x4029e8
mov esi, dword [ebp - 0x10]
shr esi, 0x10
cmp si, 0x78
jne 0x40299c
push 4
call fcn.0040185a
pop ecx
cmp si, 0xff88
jne 0x402947
push 5
call fcn.0040185a
pop ecx
jmp 0x402947
cmp esi, 0x207
jne 0x4029b9
push 3
jmp 0x4029a5
cmp esi, 0x20b
jne 0x4029e8
mov esi, dword [ebp - 0x10]
xor edi, edi
shr esi, 0x10
inc edi
cmp si, di
jne 0x4029d6
push edi
call fcn.0040185a
pop ecx
cmp si, 2
jne 0x4029e4
push 2
call fcn.0040185a
pop ecx
mov eax, edi
jmp 0x4029fb
push dword [ebp + 0x10]
push esi
push dword [ebp + 8]
push dword [0x40d894]
call dword [sym.imp.USER32.dll_CallNextHookEx]
pop edi
pop esi
leave
ret 0xc
Function at 0x402a01
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c004]
jne 0x402a0b
repz ret
jmp fcn.00402c5e

Function at 0x404c91
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00403bb5
xor ebx, ebx
cmp dword [0x40d704], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x404d66
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x404cd1
xor eax, eax
jmp 0x404e2a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x404cca
push eax
call fcn.00403b52
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40d704], eax
call esi
push eax
call fcn.00403b52
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40d708], eax
call esi
push eax
call fcn.00403b52
mov dword [0x40d70c], eax
lea eax, [ebp - 8]
push eax
call fcn.00402e0b
test eax, eax
pop ecx
pop ecx
je 0x404d34
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00404583
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x404d66
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00403b52
cmp eax, ebx
pop ecx
mov dword [0x40d714], eax
je 0x404d66
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403b52
pop ecx
mov dword [0x40d710], eax
mov eax, dword [0x40d710]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x404ddf
cmp dword [0x40d714], esi
je 0x404ddf
push eax
call fcn.00403bbe
pop ecx
call eax
cmp eax, ebx
je 0x404dac
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x40d714]
call fcn.00403bbe
pop ecx
call eax
test eax, eax
je 0x404dac
test byte [ebp - 0x18], 1
jne 0x404ddf
lea eax, [ebp - 0xc]
push eax
call fcn.00402e42
test eax, eax
pop ecx
je 0x404dc7
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00404583
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x404dd6
or dword [ebp + 0x10], 0x200000
jmp 0x404e10
or dword [ebp + 0x10], 0x40000
jmp 0x404e10
mov eax, dword [0x40d708]
cmp eax, esi
je 0x404e10
push eax
call fcn.00403bbe
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x404e10
mov eax, dword [0x40d70c]
cmp eax, esi
je 0x404e10
push dword [ebp - 4]
push eax
call fcn.00403bbe
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x40d704]
call fcn.00403bbe
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10002300
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test byte [0x1003e294], 1
push ebx
push esi
push edi
jne 0x10002323
or dword [0x1003e294], 1
call fcn.10002410
mov dword [0x1003e290], eax
mov eax, 4
call fcn.10027a90
mov esi, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100023bc
mov ebx, dword [ebp - 0x20]
lea ecx, [ebp - 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea edi, [eax - 1]
not edi
and edi, esi
sub edi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x1003e1f8]
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xffff1000
add esi, 0x11000
add esi, ebx
cmp edi, esi
jb 0x100023bc
cmp eax, 1
je 0x100023e7
nop
push 0x1c
lea edx, [ebp - 0x24]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100023bc
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
add ebx, ecx
test ah, 0x10
je 0x10002380
mov eax, dword [ebp - 0x10]
test ah, 1
mov ebx, dword [ebp - 0x24]
je 0x100023b8
mov eax, 1
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp edi, ebx
jae 0x100023c8
xor eax, eax
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, esi
jae 0x100023ce
mov ebx, esi
mov eax, dword [ebp - 4]
push 4
push 0x1000
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x1003e1f8]
jmp 0x100023e9
mov ebx, edi
mov edx, dword [ebp - 4]
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000ce60
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x4e
call esi
xor ebx, ebx
push ebx
mov ebp, eax
call esi
push 0x4f
mov dword [esp + 0x10], eax
call esi
push 1
mov dword [esp + 0x18], eax
call esi
mov dword [esp + 0x10], eax
cmp dword [0x1003e2d0], ebx
je 0x1000cea7
mov ecx, dword [0x1003e2a4]
pop esi
xor eax, eax
cmp ecx, ebx
pop ebp
setne al
pop ebx
add esp, 0xc
ret
push edi
push str.USER32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push 0x100387f4
push esi
call edi
push str.MonitorFromWindow
push esi
mov dword [0x1003e298], eax
call edi
push str.MonitorFromRect
push esi
mov dword [0x1003e2c4], eax
call edi
push str.MonitorFromPoint
push esi
mov dword [0x1003e2c0], eax
call edi
push str.EnumDisplayMonitors
push esi
mov dword [0x1003e29c], eax
call edi
push str.GetMonitorInfoA
push esi
mov dword [0x1003e2bc], eax
call edi
push str.EnumDisplayDevicesA
push esi
mov dword [0x1003e2a4], eax
call edi
cmp esi, ebx
mov dword [0x1003e2a0], eax
pop edi
je 0x1000cf70
cmp dword [0x1003e298], ebx
je 0x1000cf70
cmp dword [0x1003e2c4], ebx
je 0x1000cf70
cmp dword [0x1003e2c0], ebx
je 0x1000cf70
cmp dword [0x1003e29c], ebx
je 0x1000cf70
cmp dword [0x1003e2bc], ebx
je 0x1000cf70
cmp dword [0x1003e2a4], ebx
je 0x1000cf70
cmp eax, ebx
je 0x1000cf70
cmp ebp, dword [esp + 0xc]
jl 0x1000cf70
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
jl 0x1000cf70
pop esi
mov eax, 1
pop ebp
mov dword [0x1003e2d0], eax
pop ebx
add esp, 0xc
ret
pop esi
pop ebp
mov dword [0x1003e298], ebx
mov dword [0x1003e2c4], ebx
mov dword [0x1003e2c0], ebx
mov dword [0x1003e29c], ebx
mov dword [0x1003e2a4], ebx
mov dword [0x1003e2bc], ebx
mov dword [0x1003e2a0], ebx
mov dword [0x1003e2d0], 1
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x1001a290
Capabilities:
Set registry value

Disassembly:
sub esp, 0x50c
push ebx
lea eax, [esp + 8]
push eax
mov ebx, ecx
call fcn.10017230
test eax, eax
jne 0x1001a381
push esi
push edi
mov edi, 0x10038e2d
lea esi, [esp + 0x14]
mov ecx, 1
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x1001a2d0
pop edi
pop esi
mov eax, 0x8000ffff
pop ebx
add esp, 0x50c
ret
push 0
lea eax, [esp + 0x10]
push eax
push 0
push 2
push 0
push 0
push 0
lea ecx, [esp + 0x30]
push ecx
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x1001a304
pop edi
pop esi
mov eax, 0x80070005
pop ebx
add esp, 0x50c
ret
mov ecx, ebx
call fcn.10016e50
lea ecx, [esp + 0x10]
mov esi, eax
mov eax, dword [ebx + 4]
mov edx, dword [eax]
push ecx
push esi
push eax
call dword [edx + 0x18]
test eax, eax
jne 0x1001a367
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x1001a330
mov edx, dword [esp + 0x114]
push edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x11c]
push eax
push 3
push 0
lea ecx, [esp + 0x24]
push ecx
push edx
call edi
test eax, eax
jne 0x1001a367
mov eax, dword [ebx + 4]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push esi
push eax
call dword [ecx + 0x18]
test eax, eax
je 0x1001a330
test esi, esi
je 0x1001a372
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
pop ebx
add esp, 0x50c
ret
Function at 0x1001b6f0
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x234
push ebx
push esi
push edi
mov ebx, ecx
call fcn.1001ae50
test eax, eax
je 0x1001b720
mov eax, dword [ebp + 0xc]
mov dword [eax + 4], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov ecx, 0x27
lea edi, [esp + 0x98]
rep stosd dword es:[edi], eax
call fcn.100238b0
cmp eax, 2
je 0x1001b87b
call fcn.100238b0
cmp eax, 0x10
je 0x1001b87b
xor eax, eax
mov ecx, 0x27
lea edi, [esp + 0x98]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x13c]
push edx
push str.cDisplayDevice
push str.HKEY_LOCAL_MACHINESOFTWAREATI_TechnologiesDesktop
mov dword [esp + 0x1c], 0x104
mov word [esp + 0xcc], 0x9c
call fcn.10024f90
add esp, 0x10
test eax, eax
jne 0x1001b7a8
lea eax, [esp + 0x98]
push eax
push 0xffffffffffffffff
lea ecx, [esp + 0x140]
push ecx
jmp 0x1001b887
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
push 0
push eax
call fcn.1000d070
mov edx, eax
xor eax, eax
test edx, edx
mov ecx, 0x12
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
je 0x1001b7e3
lea eax, [esp + 0x10]
push eax
push edx
mov dword [esp + 0x18], 0x48
call fcn.1000d150
xor eax, eax
jmp 0x1001b7f0
mov cl, byte [esp + eax + 0x38]
mov byte [esp + eax + 0x138], cl
inc eax
test cl, cl
jne 0x1001b7f0
mov edi, str.DISPLAY
lea esi, [esp + 0x38]
mov ecx, 8
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x1001b839
mov edi, 0x10038e2d
lea esi, [esp + 0x38]
mov ecx, 1
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x1001b839
lea ecx, [esp + 0x98]
push ecx
push 0xffffffffffffffff
lea edx, [esp + 0x40]
push edx
jmp 0x1001b845
lea eax, [esp + 0x98]
push eax
push 0xffffffffffffffff
push 0
call dword [sym.imp.USER32.dll_EnumDisplaySettingsA]
lea eax, [esp + 0x138]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1001b855
sub eax, edx
push eax
lea ecx, [esp + 0x13c]
push ecx
push str.cDisplayDevice
push str.HKEY_LOCAL_MACHINESOFTWAREATI_TechnologiesDesktop
call fcn.10025020
add esp, 0x10
jmp 0x1001b88d
lea edx, [esp + 0x98]
push edx
push 0xffffffffffffffff
push 0
call dword [sym.imp.USER32.dll_EnumDisplaySettingsA]
mov eax, dword [esp + 0x104]
mov ecx, dword [esp + 0x108]
mov edx, dword [esp + 0x100]
mov dword [esp + 0x5c], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x60], ecx
mov ecx, dword [eax]
mov dword [esp + 0x64], edx
xor edx, edx
mov dword [esp + 0x68], ecx
lea eax, [ebx + 8]
mov edi, str.DISPLAY
mov esi, eax
mov ecx, 8
repe cmpsb byte [esi], byte es:[edi]
push edx
mov dword [esp + 0x5c], 0x40
push edx
jne 0x1001b8de
push edx
push str.DISPLAY
jmp 0x1001b8e1
push eax
push 0
call dword [sym.imp.GDI32.dll_CreateDCA]
mov edx, dword [ebp + 0xc]
push edx
lea edx, [esp + 0x5c]
mov esi, eax
mov eax, dword [ebx + 4]
mov ecx, dword [eax]
push edx
push esi
push eax
call dword [ecx + 0x20]
push esi
mov edi, eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x100238b0
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push esi
push edi
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 8]
mov esi, 1
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp eax, esi
jne 0x10023970
mov eax, dword [esp + 0x18]
sub eax, 0
je 0x10023962
dec eax
je 0x10023920
dec eax
jne 0x10023970
cmp dword [esp + 0xc], 5
jae 0x10023909
pop edi
mov eax, 0x10
pop esi
add esp, 0x94
ret
mov edx, dword [esp + 0x10]
xor eax, eax
test edx, edx
setne al
pop edi
add eax, 0x11
pop esi
add esp, 0x94
ret
mov eax, dword [esp + 0xc]
cmp eax, 4
ja 0x10023954
jne 0x10023946
mov eax, dword [esp + 0x10]
cmp eax, 0xa
ja 0x10023954
test eax, eax
jbe 0x10023946
pop edi
mov eax, 3
pop esi
add esp, 0x94
ret
pop edi
mov eax, 2
pop esi
add esp, 0x94
ret
pop edi
mov eax, 4
pop esi
add esp, 0x94
ret
pop edi
mov eax, 1
pop esi
add esp, 0x94
ret
mov eax, esi
pop edi
pop esi
add esp, 0x94
ret

Function at 0x10023b00
Capabilities:
Query or enumerate registry key

Disassembly:
push ecx
mov ecx, dword [0x1003e3e8]
mov edx, dword [esp + 8]
lea eax, [esp + 8]
push 0
push eax
mov eax, dword [0x1003e3ec]
push 0
push ecx
push 0
push 0
push 0
push edx
push eax
mov dword [esp + 0x24], 0
call fcn.10023b80
add esp, 0x24
test eax, eax
jne 0x10023b6e
push eax
push eax
mov edx, dword [esp + 0x10]
push eax
push eax
push eax
push eax
lea ecx, [esp + 0x18]
push eax
push ecx
push eax
push eax
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x10023b63
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop ecx
ret
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp]
pop ecx
ret
Function at 0x10023bc0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x114
mov ecx, dword [0x1003e3e8]
push ebx
push esi
push edi
mov edx, dword [esp + 0x124]
xor edi, edi
lea eax, [esp + 0x10]
push edi
push eax
mov eax, dword [0x1003e3ec]
push edi
push ecx
push edi
push edi
push edi
push edx
push eax
mov dword [esp + 0x38], 0x104
lea ebx, [esp + 0x40]
lea esi, [esp + 0x38]
call fcn.10023b80
add esp, 0x24
test eax, eax
jne 0x10023cad
push ebp
mov ebp, dword [esp + 0x12c]
mov dword [esp + 0x1c], 1
mov dword [esp + 0x10], edi
cmp ebp, dword [esp + 0x10]
jne 0x10023c34
mov ebx, dword [esp + 0x130]
mov esi, dword [esp + 0x134]
jmp 0x10023c3a
mov dword [esi], 0x104
mov ecx, dword [esi]
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
push 0
and ecx, 3
push 0
push 0
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x24]
push esi
push ebx
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x10023c77
mov eax, dword [esp + 0x10]
cmp ebp, eax
je 0x10023c91
inc eax
mov dword [esp + 0x10], eax
jmp 0x10023c1e
mov ecx, dword [esp + 0x14]
xor esi, esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x114
ret
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x114
ret
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x114
ret

Function at 0x10023d30
Capabilities:
Query or enumerate registry key

Disassembly:
push ecx
mov ecx, dword [0x1003e3e8]
mov edx, dword [esp + 8]
lea eax, [esp + 8]
push 0
push eax
mov eax, dword [0x1003e3ec]
push 0
push ecx
push 0
push 0
push 0
push edx
push eax
mov dword [esp + 0x24], 0
call fcn.10023b80
add esp, 0x24
test eax, eax
jne 0x10023d93
push eax
push eax
mov edx, dword [esp + 0x10]
push eax
lea ecx, [esp + 0xc]
push eax
push ecx
push eax
push eax
push eax
push eax
push eax
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x10023d93
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop ecx
ret
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp]
pop ecx
ret
Function at 0x100241c0
Capabilities:
Delete registry key

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
push esi
push edi
xor ebx, ebx
call fcn.10023ac0
add esp, 8
test eax, eax
jne 0x100241df
pop edi
pop esi
pop ebx
ret
lea eax, [esp + 0x14]
push 0
push eax
push 0
push 2
push 0
push 0
push 0
push esi
push edi
call fcn.10023b80
add esp, 0x24
test eax, eax
jne 0x10024224
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
push edx
mov ebx, 1
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x10024219
xor ebx, ebx
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x10024a20
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x11c]
push edi
mov dword [esp + 0x10], 0
mov eax, dword [esi + 0xc]
push eax
call fcn.10024b60
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x10024a5b
pop edi
pop esi
pop ebp
mov eax, 8
pop ebx
add esp, 0x10c
ret
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0xc]
push ecx
push edx
call fcn.100255e0
add esp, 8
test eax, eax
jne 0x10024b48
mov ecx, 0x41
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0xc]
push eax
lea eax, [esp + 0x1c]
push eax
push ecx
call fcn.10024c50
add esp, 0xc
test eax, eax
jne 0x10024b48
lea edx, [esp + 0x10]
push eax
push edx
push eax
mov eax, dword [esi + 8]
lea ecx, [esp + 0x24]
push eax
push 0
push 0
push 0
push ecx
push ebx
call fcn.10023b80
add esp, 0x24
test eax, eax
je 0x10024acb
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x10c
ret
mov ebp, dword [esp + 0x128]
mov ebx, dword [esp + 0x124]
test ebx, ebx
mov ecx, dword [ebp]
mov dword [esp + 0x14], ecx
je 0x10024af6
mov edx, ecx
xor eax, eax
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edx, dword [esi + 0x10]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esi + 4]
push ebx
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x10024b30
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 0xa
pop ebx
add esp, 0x10c
ret
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x10024b46
mov eax, dword [esp + 0x14]
mov dword [ebp], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
Function at 0x10024ea0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x108
push ebx
push esi
mov esi, dword [esp + 0x114]
mov dword [esp + 8], 0
mov eax, dword [esi + 0xc]
push eax
call fcn.10024b60
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x10024ed7
pop esi
mov eax, 8
pop ebx
add esp, 0x108
ret
mov edx, dword [esi + 0xc]
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x10]
push eax
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push ecx
push edx
call fcn.10024c50
add esp, 0xc
test eax, eax
pop edi
jne 0x10024f81
mov ecx, dword [esi + 8]
push eax
lea eax, [esp + 0xc]
lea edx, [esp + 0x10]
push eax
push 0
push ecx
push 0
push 0
push 0
push edx
push ebx
call fcn.10023b80
add esp, 0x24
test eax, eax
je 0x10024f32
pop esi
mov eax, 2
pop ebx
add esp, 0x108
ret
mov eax, dword [esp + 0x11c]
mov ecx, dword [esp + 0x118]
mov edx, dword [esi + 4]
push eax
mov eax, dword [esi + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x10024f74
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, 1
pop ebx
add esp, 0x108
ret
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
pop ebx
add esp, 0x108
ret
Function at 0x100255e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x108
push ebx
mov ebx, dword [esp + 0x110]
push esi
push ebx
call fcn.10024b60
mov esi, eax
add esp, 4
test esi, esi
jne 0x1002560c
pop esi
mov eax, 8
pop ebx
add esp, 0x108
ret
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
push eax
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.10024c50
add esp, 0xc
test eax, eax
pop edi
jne 0x1002569d
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push ecx
push 1
push eax
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10025654
pop esi
mov eax, 8
pop ebx
add esp, 0x108
ret
mov eax, dword [esp + 0x118]
test eax, eax
je 0x10025690
mov ecx, dword [esp + 8]
push 0
push 0
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x10025690
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, 9
pop ebx
add esp, 0x108
ret
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
pop ebx
add esp, 0x108
ret

Function at 0x10025bb0
Capabilities:
Delete registry value

Disassembly:
sub esp, 0x108
push ebx
push esi
mov esi, dword [esp + 0x114]
push esi
call fcn.10024b60
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x10025bdc
pop esi
mov eax, 8
pop ebx
add esp, 0x108
ret
push 0
push esi
call fcn.100255e0
add esp, 8
test eax, eax
jne 0x10025c78
push edi
mov ecx, 0x41
lea edi, [esp + 0x10]
push eax
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push eax
push esi
call fcn.10024c50
add esp, 0xc
test eax, eax
pop edi
jne 0x10025c78
lea ecx, [esp + 8]
push eax
push ecx
push eax
push 2
push eax
push eax
lea edx, [esp + 0x24]
push eax
push edx
push ebx
call fcn.10023b80
add esp, 0x24
test eax, eax
je 0x10025c3b
pop esi
mov eax, 3
pop ebx
add esp, 0x108
ret
mov eax, dword [esp + 0x118]
mov ecx, dword [esp + 8]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x10025c6b
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, 3
pop ebx
add esp, 0x108
ret
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
pop ebx
add esp, 0x108
ret