joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404181
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
push ebx
push esi
push edi
lea eax, [ebp - 0x54]
xor ebx, ebx
push 0x419414
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x54]
push eax
call esi
lea eax, [ebp - 0x54]
push 0x419410
push eax
call esi
push ebx
push ebx
push 3
push ebx
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
je 0x4042b6
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0x153]
mov byte [ebp - 0x154], bl
push ebx
rep stosd dword es:[edi], eax
push dword [ebp + 0xc]
mov dword [ebp + 8], ebx
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, ebx
je 0x4042ad
add eax, 3
and al, 0xfc
call fcn.0040d320
mov esi, esp
cmp esi, ebx
je 0x4042ad
lea eax, [ebp + 8]
push ebx
push eax
push edi
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4042ad
cmp byte [esi], bl
je 0x4042ad
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp byte [esi], 0x5b
jne 0x4042a5
lea eax, [ebp - 0x54]
push eax
call fcn.0040d8f0
pop ecx
inc eax
push eax
lea eax, [ebp - 0x14]
push esi
push eax
call edi
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00414410
pop ecx
test eax, eax
pop ecx
jne 0x4042a5
inc esi
inc dword [ebp - 4]
cmp byte [esi], 0x5b
je 0x4042a5
push dword [ebp + 0x10]
call fcn.0040d8f0
pop ecx
inc eax
push eax
lea eax, [ebp - 0x154]
push esi
push eax
call edi
push dword [ebp + 0x10]
lea eax, [ebp - 0x154]
push eax
call fcn.00414410
pop ecx
test eax, eax
pop ecx
jne 0x40429f
cmp byte [esi - 1], 0x3b
jne 0x4042c3
inc dword [ebp - 4]
inc esi
jmp 0x40426a
inc dword [ebp - 4]
inc esi
cmp byte [esi], bl
jne 0x40423b
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lea esp, [ebp - 0x160]
pop edi
pop esi
pop ebx
leave
ret
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
jmp 0x4042b8
Function at 0x4044cc
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
push ebx
push esi
push edi
push 0x24
pop ecx
xor eax, eax
lea edi, [ebp - 0x94]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x98]
mov dword [ebp - 0x98], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor ebx, ebx
mov esi, eax
cmp dword [ebp - 0x88], ebx
jne 0x40458e
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0x197]
mov byte [ebp - 0x198], bl
push 0x100
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x198]
mov ebx, str.Load
push eax
push 0x41c72c
mov edi, str.windows
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetProfileStringA]
push dword [ebp + 0xc]
lea eax, [ebp - 0x198]
push eax
call fcn.0040da70
pop ecx
test eax, eax
pop ecx
jne 0x404589
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x198]
push 0x419418
push eax
call esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x198]
push eax
call esi
lea eax, [ebp - 0x198]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteProfileStringA]
push 1
pop esi
jmp 0x4045d6
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push 0x41941c
push 0x80000002
call dword [sym.imp.ZSPOOL.dll_RegOpenKeyA]
test eax, eax
jne 0x4045d6
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 0xc]
push 1
push ebx
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ZSPOOL.dll_RegSetValueExA]
test eax, eax
jne 0x4045cd
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ZSPOOL.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x404790
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0xfffffffffffffffa
push dword [esi + 4]
lea edi, [esi + 0xbc]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push eax
mov ecx, edi
call fcn.0040a5e3
push 0xa4
mov ecx, edi
push dword [esi + 4]
call fcn.0040a5f0
push 0x99
push 0x43b
push dword [esi + 4]
mov ecx, edi
call fcn.0040a614
mov edi, dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push 0x630000
mov ebp, 0x401
push 0
mov ebx, 0x3ff
push ebp
push ebx
push dword [esi + 4]
call edi
push 0x630000
push 0
push ebp
push ebx
push dword [esi + 4]
call edi
xor ebp, ebp
push ebp
push 1
push 0x402
push ebx
push dword [esi + 4]
call edi
push ebp
push 2
push 0x404
push ebx
push dword [esi + 4]
call edi
push ebp
push 0x43e
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
pop eax
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x4069de
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
push 0xfffffffffffffffa
push dword [esi + 4]
lea ebx, [esi + 0x2bfc]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push eax
mov ecx, ebx
call fcn.0040a5e3
push 0
push 0x3eb
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetSystemMenu]
mov edi, eax
test edi, edi
je 0x406a66
push ebp
mov ebp, dword [sym.imp.USER32.dll_EnableMenuItem]
push 3
push 0xf030
push edi
call ebp
push 3
push 0xf000
push edi
call ebp
mov ebp, dword [sym.imp.USER32.dll_AppendMenuA]
push 0
push 0
push 0x20
push edi
call ebp
push 0x9c
mov ecx, ebx
call fcn.0040a539
push eax
push 0x9c
push 0
push edi
call ebp
pop ebp
push 0xa1
mov ecx, ebx
push dword [esi + 4]
call fcn.0040a5f0
push 0xa2
push 0x438
push dword [esi + 4]
mov ecx, ebx
call fcn.0040a614
push 0xa3
push 0x41c
push dword [esi + 4]
mov ecx, ebx
call fcn.0040a614
mov ecx, esi
call fcn.00406b0a
push 1
push 1
push dword [esi + 4]
call fcn.0040182b
push 0
push dword [esi + 4]
call fcn.00401772
add esp, 0x14
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, esi
call fcn.00406c95
push 1
pop eax
pop edi
pop esi
pop ebx
ret 8

Function at 0x406b0a
Capabilities:
Hide graphical window

Disassembly:
push ecx
push esi
mov esi, ecx
push dword [esi + 4]
call fcn.00401842
test eax, eax
pop ecx
mov dword [esp + 4], eax
je 0x406bb6
push ebx
push ebp
lea ecx, [esi + 0x1414]
push edi
mov ebx, dword [sym.imp.USER32.dll_CreateDialogParamA]
push ecx
push 0x406643
push dword [esi + 4]
push str.IDD_SELECT
push eax
call ebx
mov ebp, dword [sym.imp.USER32.dll_ShowWindow]
lea edi, [esi + 0x1418]
push 0
push dword [edi]
call ebp
mov eax, dword [esi + 4]
mov edi, dword [edi]
push eax
push 0x3eb
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
push edi
call fcn.0040190b
add esp, 0xc
lea eax, [esi + 0x1cf4]
push eax
push 0x406643
push dword [esi + 4]
push str.IDD_REMOVE
push dword [esp + 0x20]
call ebx
lea edi, [esi + 0x1cf8]
push 5
push dword [edi]
call ebp
mov esi, dword [esi + 4]
mov edi, dword [edi]
push esi
push 0x3eb
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
push edi
call fcn.0040190b
add esp, 0xc
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret
Function at 0x406c95
Capabilities:
Hide graphical window

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, ecx
push 0x438
push dword [esi + 4]
call edi
push 0x41c
mov dword [esp + 0x18], eax
push dword [esi + 4]
call edi
mov edi, dword [sym.imp.USER32.dll_EnableWindow]
push 0
push dword [esp + 0x18]
mov dword [esp + 0x18], eax
call edi
push 0
push dword [esp + 0x14]
call edi
mov ebp, dword [esi + 4]
lea ebx, [esi + 8]
push ebp
mov dword [esi + 0xb58], ebx
mov dword [esi + 0x141c], ebx
mov dword [esi + 0x1cfc], ebx
call fcn.00401842
pop ecx
lea ecx, [esi + 0xb50]
push ecx
push 0x406643
push ebp
push 0x73
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
push 1
pop ebp
cmp eax, ebp
jne 0x406dca
lea ecx, [esi + 0xb5c]
push 0x419660
call fcn.0040623b
test eax, eax
jge 0x406d8b
push str.UNMASQ
lea ecx, [esi + 0xb5c]
call fcn.0040623b
test eax, eax
jge 0x406d8b
push 0x41965c
lea ecx, [esi + 0xb5c]
call fcn.0040623b
test eax, eax
jge 0x406d8b
mov ecx, ebx
call fcn.0040c16b
test eax, eax
je 0x406daf
push 0
lea ecx, [esi + 0x1cf4]
call fcn.00407696
lea ebx, [esi + 0x1414]
push ebp
mov ecx, ebx
call fcn.00407696
push 5
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, ebx
call fcn.0040aa06
jmp 0x406dc1
mov ecx, dword [esi + 0xaa0]
mov eax, dword [ecx]
cmp eax, ecx
je 0x406d9b
mov eax, dword [eax]
jmp 0x406d93
push str.NOPICK
lea ecx, [esi + 0xb5c]
call fcn.0040623b
test eax, eax
jl 0x406d5c
push 5
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push ebp
push dword [esp + 0x18]
call edi
push ebp
push dword [esp + 0x14]
call edi
jmp 0x406dd4
push ebp
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret

Function at 0x406ddb
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
mov esi, ecx
push 0
push dword [esi + 0x1418]
call edi
push 5
push dword [esi + 0x1cf8]
call edi
push 0
push 0x41c
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
lea ecx, [esi + 0x1cf4]
call fcn.004076ae
pop edi
pop esi
ret
Function at 0x406f7f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc0
push ebx
mov dword [ebp - 0x18], ecx
xor ebx, ebx
lea ecx, [ebp - 0xbc0]
push ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call fcn.0040a37f
push 0x32
lea ecx, [ebp - 0xbc0]
call fcn.0040a539
push eax
lea eax, [ebp - 0x31c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x31c]
push eax
call fcn.00407161
lea eax, [ebp - 0x31c]
mov dword [esp], str.OEMOEMPaths
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 4]
push eax
push 0xf003f
lea eax, [ebp - 0x31c]
push ebx
push eax
push 0x80000002
call dword [sym.imp.ZSPOOL.dll_RegOpenKeyExA]
test eax, eax
jne 0x4070f9
push esi
push edi
push 0x3f
lea edi, [ebp - 0x21b]
pop ecx
mov byte [ebp - 0x21c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x11b]
mov byte [ebp - 0x11c], bl
mov dword [ebp - 0xc], 0x100
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x10]
mov edi, dword [sym.imp.ZSPOOL.dll_RegEnumValueA]
push eax
lea eax, [ebp - 0x11c]
push eax
push ebx
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [ebp - 0x21c]
push eax
push ebx
push dword [ebp - 4]
mov dword [ebp - 0x10], 0x104
call edi
mov esi, 0x103
cmp eax, esi
je 0x4070ee
lea eax, [ebp - 0x11c]
push eax
call fcn.00407161
pop ecx
lea eax, [ebp - 0x11c]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [ebp - 0x3b8]
call fcn.004071b6
lea eax, [ebp - 0x11c]
lea ecx, [ebp - 0x3b8]
push eax
call fcn.00407184
test eax, eax
jne 0x4070d7
lea eax, [ebp - 0x10]
inc dword [ebp - 8]
push eax
lea eax, [ebp - 0x11c]
push eax
push ebx
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [ebp - 0x21c]
push eax
mov dword [ebp - 0xc], 0x100
push dword [ebp - 8]
push dword [ebp - 4]
call edi
jmp 0x407065
lea eax, [ebp - 0x11c]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 0x14], 1
push dword [ebp - 4]
call dword [sym.imp.ZSPOOL.dll_RegCloseKey]
pop edi
pop esi
mov eax, dword [ebp - 0x14]
pop ebx
leave
ret 4

Function at 0x407101
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf0
push ebx
push esi
push edi
mov ebx, ecx
push 0x10
xor esi, esi
pop ecx
xor eax, eax
lea edi, [ebp - 0x50]
mov dword [ebp - 0x54], esi
rep stosd dword es:[edi], eax
lea edi, [ebp - 0xc]
mov dword [ebp - 0x10], esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea ecx, [ebp - 0xf0]
stosd dword es:[edi], eax
call fcn.004071b6
lea eax, [ebp - 0x10]
mov dword [ebp - 0x54], 0x44
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push 0x41975c
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40715a
mov esi, dword [ebp - 0x10]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40729b
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.0040d320
push ebx
push esi
mov edx, ecx
push edi
xor ebx, ebx
mov ecx, 0x3ff
xor eax, eax
lea edi, [ebp - 0x1013]
mov byte [ebp - 0x1014], bl
mov byte [ebp - 8], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
mov byte [ebp - 7], bl
stosb byte es:[edi], al
mov byte [ebp - 6], bl
mov byte [ebp - 5], bl
mov byte [ebp - 4], bl
mov byte [ebp - 3], 5
call fcn.0040728e
test eax, eax
je 0x407392
lea eax, [ebp - 0x10]
push eax
push 0x20008
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40730a
xor eax, eax
jmp 0x407395
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1014]
push 0x1000
push eax
push 2
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push dword [ebp - 0x10]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
je 0x407303
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
lea eax, [ebp - 8]
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x407303
xor edi, edi
cmp dword [ebp - 0x1014], ebx
jbe 0x407385
lea esi, [ebp - 0x1010]
push dword [esi]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x407382
inc edi
add esi, 8
cmp edi, dword [ebp - 0x1014]
jb 0x407365
jmp 0x407385
push 1
pop ebx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, ebx
jmp 0x407395
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407e80
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb30
and byte [ebp - 0x108], 0
push ebx
push esi
push edi
mov esi, ecx
push 0x3f
pop ecx
xor eax, eax
lea edi, [ebp - 0x107]
push 0x1a
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [ebp - 0x61c]
mov dword [ebp - 4], esi
stosb byte es:[edi], al
call fcn.00402d93
test eax, eax
jne 0x407ece
lea eax, [ebp - 4]
push 0x416c90
push eax
mov dword [ebp - 4], 1
call fcn.0040d2d0
push 2
lea ecx, [ebp - 0xb30]
call fcn.00402d93
test eax, eax
jne 0x407ef4
lea eax, [ebp - 4]
push 0x416c90
push eax
mov dword [ebp - 4], 1
call fcn.0040d2d0
mov eax, dword [esi + 8]
cmp dword [eax + 0xa64], 0
je 0x408088
mov edi, dword [eax + 0xa60]
mov dword [ebp - 8], edi
mov ebx, dword [edi]
cmp ebx, edi
je 0x408088
lea ecx, [ebx + 8]
call fcn.0040b596
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x108]
push 0x2c
push eax
call fcn.0040b44b
mov esi, eax
lea eax, [ebp - 0x108]
pop ecx
test eax, eax
pop ecx
je 0x408081
test esi, esi
je 0x408081
cmp byte [ebp - 0x108], 0
je 0x408081
cmp byte [esi], 0
je 0x408081
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x414]
push eax
push 0
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.0040d660
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x928]
push eax
push 0
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.0040d660
add esp, 0x28
lea ecx, [ebp - 0x61c]
call fcn.00403389
test eax, eax
jne 0x407ff8
lea ecx, [ebp - 0xb30]
call fcn.00403389
test eax, eax
je 0x407ff8
lea ecx, [ebp - 0xb30]
call fcn.00401578
lea ecx, [ebp - 0x310]
push ecx
lea ecx, [ebp - 0x414]
push ecx
lea ecx, [ebp - 0x518]
push ecx
lea ecx, [ebp - 0x61c]
push ecx
push eax
call fcn.0040d660
add esp, 0x14
lea ecx, [ebp - 0x61c]
call fcn.004029c1
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [ebp - 0x61c]
call fcn.00401578
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40806c
cmp byte [esi], 0
je 0x40806c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x40805a
push 0
lea ecx, [ebp - 0xb30]
call fcn.004029c1
push eax
mov eax, dword [ebp - 4]
push 0xfffffffffffffffa
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push eax
mov eax, dword [ebp - 4]
push dword [eax + 4]
call esi
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0xb30]
call fcn.004029c1
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov edi, dword [ebp - 8]
mov ebx, dword [ebx]
jmp 0x407f0f
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40897c
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [ecx + 8]
push ebx
push esi
mov ebx, dword [eax + 0xa50]
mov esi, dword [ebx]
cmp esi, ebx
je 0x408a03
add ecx, 0x134
push edi
mov dword [ebp - 4], ecx
lea edi, [esi + 8]
mov ecx, edi
call fcn.0040b596
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.ZSPOOL.dll_DeleteMonitorA
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
call fcn.00407274
test eax, eax
jne 0x4089fc
mov ecx, edi
call fcn.0040b596
push eax
push str.SystemCurrentControlSetcontrolPrintMonitors_
lea eax, [ebp - 0x104]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x104]
push eax
push 0x80000002
call dword [sym.imp.ZSPOOL.dll_RegDeleteKeyA]
mov esi, dword [esi]
cmp esi, ebx
jne 0x4089a0
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x408a09
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
lea eax, [ebp - 8]
push edi
push eax
lea eax, [ebp - 4]
xor edi, edi
push eax
push edi
push edi
push 1
mov dword [ebp - 0x10], ecx
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
push dword [ebp + 8]
call sub.ZSPOOL.dll_EnumPrintProcessorsA
cmp dword [ebp - 4], edi
je 0x408bb5
mov eax, dword [ebp - 4]
add eax, 3
and al, 0xfc
call fcn.0040d320
mov esi, esp
push dword [ebp - 4]
push edi
push esi
call fcn.0040d7e0
add esp, 0xc
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.ZSPOOL.dll_EnumPrintProcessorsA
test eax, eax
je 0x408bb5
cmp dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
jbe 0x408bb5
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0xa48]
mov dword [ebp - 0x14], eax
mov edi, dword [eax]
cmp edi, eax
je 0x408ba3
push dword [esi]
lea ecx, [edi + 8]
call fcn.0040b5d5
test eax, eax
jne 0x408ac0
mov edi, dword [edi]
cmp edi, dword [ebp - 0x14]
jmp 0x408aa5
push dword [esi]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004015a2
add esp, 0xc
test eax, eax
je 0x408ba3
push dword [esi]
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.ZSPOOL.dll_DeletePrintProcessorA
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x134]
mov ecx, edi
call fcn.00407281
test eax, eax
je 0x408b27
push dword [esi]
lea eax, [ebp - 0x214]
push str.SystemCurrentControlSetcontrolPrintEnvironmentsWindows_4.0Print_Processors_
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x214]
push eax
push 0x80000002
call dword [sym.imp.ZSPOOL.dll_RegDeleteKeyA]
mov ecx, edi
call fcn.0040728e
test eax, eax
je 0x408ba3
and byte [ebp - 0x114], 0
push 0x3f
pop ecx
xor eax, eax
lea edi, [ebp - 0x113]
push str.SystemCurrentControlSetcontrolPrintEnvironments_
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x408b6a
cmp byte [eax], 0
je 0x408b6a
push eax
jmp 0x408b6f
push str.Windows_NT_x86
lea eax, [ebp - 0x114]
push eax
call ebx
lea eax, [ebp - 0x114]
push str.Print_Processors_
push eax
call ebx
push dword [esi]
lea eax, [ebp - 0x114]
push eax
call ebx
lea eax, [ebp - 0x114]
push eax
push 0x80000002
call dword [sym.imp.ZSPOOL.dll_RegDeleteKeyA]
inc dword [ebp - 0xc]
add esi, 4
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 8]
jb 0x408a92
lea esp, [ebp - 0x220]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x408bc2
Capabilities:
Delete service

Disassembly:
push ecx
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
lea ecx, [esi + 0x134]
call fcn.0040728e
test eax, eax
je 0x408c63
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test eax, eax
mov dword [esp + 8], eax
je 0x408c63
mov eax, dword [esi + 8]
push ebx
mov ebx, dword [eax + 0xa58]
mov esi, dword [ebx]
cmp esi, ebx
je 0x408c58
push ebp
push edi
push 0xf01ff
lea ecx, [esi + 8]
call fcn.0040b591
push eax
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
je 0x408c50
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push edi
mov ebp, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebp, ebp
jne 0x408c43
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x430
jne 0x408c50
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 8]
mov dword [eax], 1
mov esi, dword [esi]
cmp esi, ebx
jne 0x408c04
pop edi
pop ebp
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebx
pop esi
pop ecx
pop ecx
ret

Function at 0x408c67
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
push ebx
mov dword [ebp - 0x18], ecx
push esi
xor ebx, ebx
push edi
lea ecx, [ebp - 0x328]
mov dword [ebp - 4], ebx
call fcn.0040b57a
and byte [ebp - 0x224], bl
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x223]
and byte [ebp - 0x120], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x11f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 1
lea eax, [ebp - 4]
pop edi
mov esi, 0x104
push eax
push 0xf003f
push ebx
push str.SOFTWAREZenographicsOEMOEMPaths
push 0x80000002
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x14], edi
call dword [sym.imp.ZSPOOL.dll_RegOpenKeyExA]
test eax, eax
jne 0x408d86
lea eax, [ebp - 0xc]
mov dword [ebp - 8], edi
push eax
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push ebx
mov edi, dword [sym.imp.ZSPOOL.dll_RegEnumValueA]
push eax
lea eax, [ebp - 0x224]
push eax
push ebx
push dword [ebp - 4]
call edi
mov ebx, 0x103
cmp eax, ebx
je 0x408d7d
lea eax, [ebp - 0x120]
lea ecx, [ebp - 0x328]
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call fcn.0040b5a6
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x328]
push edx
mov ecx, dword [eax + 8]
mov eax, dword [ecx + 0xa80]
add ecx, 0xa80
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00405880
lea ecx, [ebp - 0xc]
mov eax, dword [ebp - 8]
push ecx
lea ecx, [ebp - 0x120]
push ecx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x10]
push 0
inc dword [ebp - 8]
push ecx
lea ecx, [ebp - 0x224]
push ecx
push eax
push dword [ebp - 4]
call edi
jmp 0x408d14
push dword [ebp - 4]
call dword [sym.imp.ZSPOOL.dll_RegCloseKey]
mov edi, dword [ebp - 0x18]
mov esi, 0xa80
mov ecx, dword [edi + 8]
add ecx, esi
call fcn.004058bf
mov ecx, dword [edi + 8]
add ecx, esi
call fcn.00405c05
pop edi
pop esi
pop ebx
leave
ret