joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1005033
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1009364]
push esi
push edi
mov dword [ebp - 4], eax
push 7
mov byte [ebp - 0x24], 0
xor eax, eax
pop ecx
lea edi, [ebp - 0x23]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
jmp 0x10050c6
movzx eax, byte [0x1009530]
cmp byte [eax + 0x10093a0], 1
jne 0x10050c0
movzx si, byte [0x1009530]
push esi
call fcn.01004f45
test al, al
jne 0x10050e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x10050c0
mov cl, byte [0x1009530]
movzx eax, cl
mov byte [eax + 0x10093a0], 0
mov byte [eax + 0x1009468], 1
lea eax, [ebp - 0x24]
push eax
movzx ax, cl
push eax
call fcn.01006a07
test eax, eax
jne 0x10050b7
lea eax, [ebp - 0x24]
push eax
call fcn.01007733
movzx eax, si
push eax
call fcn.01007305
inc byte [0x1009530]
cmp byte [0x1009530], 0xc8
jb 0x1005058
mov byte [0x1009530], 0
or ax, 0xffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01007f42
leave
ret
inc byte [0x1009530]
mov ax, si
jmp 0x10050da

Function at 0x10052a3
Capabilities:
Access the windows event log

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov edx, eax
and eax, 0xc0000000
jne 0x10052b8
push 8
jmp 0x10052c1
cmp eax, 0x40000000
jne 0x10052c4
push 4
pop ecx
jmp 0x10052cf
xor ecx, ecx
cmp eax, 0x80000000
sete cl
inc ecx
xor eax, eax
push eax
push dword [ebp + 0x10]
push eax
push dword [ebp + 0xc]
push eax
push edx
push eax
push ecx
push dword [0x1009a2c]
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
pop ebp
ret 0xc

Function at 0x10060b6
Capabilities:
Create service
Persist via windows service
Query service status
Start service

Disassembly:
push 0x138
push 0x1001c48
call fcn.010081cc
mov eax, dword [0x1009364]
mov dword [ebp - 0x1c], eax
xor esi, esi
mov dword [ebp - 0x124], esi
mov dword [ebp - 0x128], esi
mov dword [ebp - 4], esi
push 0xf003f
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x124], eax
cmp eax, esi
jne 0x10060ff
push 0x1001c0c
jmp 0x100619f
push 0x104
lea eax, [ebp - 0x120]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 0x12c], eax
cmp eax, esi
jne 0x1006123
push 0x1001bcc
jmp 0x100619f
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x120]
push eax
push 1
push 2
push 0x10
push 0xf01ff
push 0x1001b98
push 0x1001ab8
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov edi, eax
mov dword [ebp - 0x128], edi
cmp edi, esi
jne 0x1006163
push 0x1001b5c
jmp 0x100619f
call fcn.0100756f
mov dword [ebp - 0x144], 0x5555
lea eax, [ebp - 0x148]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x10061a4
mov eax, dword [ebp - 0x144]
dec eax
jne 0x10061a4
push esi
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x10061a4
push 0x1001b1c
call fcn.0100601d
or dword [ebp - 4], 0xffffffff
call fcn.010061bd
mov ecx, dword [ebp - 0x1c]
call fcn.01007f42
call fcn.01008207
ret
Function at 0x10061eb
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push 0x2c
push 0x1001d60
call fcn.010081cc
xor edi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], edi
push 0xf003f
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x100621d
push 0x1001d24
jmp 0x1006297
push 0xf01ff
push 0x1001ab8
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
mov dword [ebp - 0x1c], esi
cmp esi, edi
jne 0x100623e
push 0x1001cec
jmp 0x1006297
lea eax, [ebp - 0x3c]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x100627d
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x3c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1006271
cmp dword [ebp - 0x38], 3
je 0x100624f
jmp 0x1006287
push 0x1001cc4
call fcn.0100601d
jmp 0x100624f
push 0x1001c90
call fcn.0100601d
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x100629c
push 0x1001c54
call fcn.0100601d
or dword [ebp - 4], 0xffffffff
call fcn.010062ad
call fcn.01008207
ret

Function at 0x10067a2
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xcc
mov eax, dword [0x1009364]
push ebx
push esi
push edi
push 0xc
pop ecx
mov edx, dword [ebp + 8]
mov esi, 0x1001fac
lea edi, [ebp - 0x38]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc0], eax
push 0x1f
movsw word es:[edi], word [esi]
pop ecx
xor eax, eax
xor ebx, ebx
mov byte [ebp - 0xb8], bl
lea edi, [ebp - 0xb7]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push edx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0xb8]
push 0x1001fa4
push eax
mov dword [ebp - 0xc4], edx
mov dword [ebp - 0xc8], 7
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0x10
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0xbc]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
lea eax, [ebp - 0xb8]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov eax, dword [ebp - 0xc0]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1006847
sub eax, esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push eax
push dword [ebp - 0xc0]
push 2
push ebx
push 0x1001f90
push dword [ebp - 0xbc]
call esi
push 4
lea eax, [ebp - 0xc8]
push eax
push 4
push ebx
push 0x1001f80
push dword [ebp - 0xbc]
call esi
push dword [ebp - 0xc4]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov dword [0x1009a2c], eax
pop ebx
call fcn.01007f42
leave
ret 8
Function at 0x1006918
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
push eax
xor esi, esi
push 0xf003f
push esi
push str.SystemCurrentControlSetServicesCissesrvParameters
push 0x80000002
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], 4
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100696e
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1006973
mov eax, dword [ebp + 0xc]
jmp 0x1006976
mov eax, dword [ebp - 8]
pop esi
leave
ret 8

Function at 0x1006a07
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
xor esi, esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x14], esi
push esi
push dword [0x1009578]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], 4
mov dword [ebp - 4], 0x20
call edi
mov dword [ebp - 8], 1
mov ebx, 0x103
jmp 0x1006abb
lea eax, [ebp - 0x10]
push eax
push 0xf003f
push esi
push dword [ebp + 0xc]
push dword [0x1009578]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push esi
push 0x1001f60
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, word [ebp + 8]
cmp dword [ebp - 0x14], eax
je 0x1006ac2
movzx eax, word [ebp - 8]
push esi
push esi
push esi
push esi
lea ecx, [ebp - 4]
push ecx
push dword [ebp + 0xc]
mov dword [ebp - 4], 0x20
push eax
push dword [0x1009578]
call edi
inc dword [ebp - 8]
cmp eax, ebx
mov dword [ebp - 0xc], eax
jne 0x1006a50
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1006ad1
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1009364]
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov dword [ebp - 4], eax
movzx eax, byte [ebp + 0x10]
push eax
push ecx
push 0
push dword [0x1009588]
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0xd], 0
call ebx
cmp eax, 0x103
mov dword [ebp - 0x14], 1
je 0x1006b96
push esi
push edi
test eax, eax
jne 0x1006b94
lea eax, [ebp - 0x1c]
push eax
push 0xf003f
push 0
push dword [ebp - 0x18]
push dword [0x1009588]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x24]
push eax
push 0
push 0x1001f70
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp + 8]
push 2
pop ecx
lea edi, [ebp - 0xc]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
je 0x1006b90
movzx ecx, byte [ebp + 0x10]
movzx eax, word [ebp - 0x14]
push ecx
push dword [ebp - 0x18]
push eax
push dword [0x1009588]
call ebx
inc dword [ebp - 0x14]
cmp eax, 0x103
jne 0x1006b16
jmp 0x1006b94
mov byte [ebp - 0xd], 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0xd]
pop ebx
call fcn.01007f42
leave
ret 0xc

Function at 0x1006bab
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x1009364]
push ebx
push esi
inc word [0x100958c]
push edi
push 4
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
pop edi
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x3c]
push eax
xor ebx, ebx
push ebx
mov esi, 0x10020e8
push esi
push dword [0x1009588]
mov dword [ebp - 0x30], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x30]
inc dword [ebp - 0x28]
lea eax, [ebp - 0x28]
push eax
push edi
push ebx
push esi
push dword [0x1009588]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call esi
push dword [ebp - 0x28]
lea eax, [ebp - 0x24]
push 0x10020cc
push eax
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x2c]
push eax
push ebx
push 0xf003f
push 1
push ebx
push ebx
lea eax, [ebp - 0x24]
push eax
push dword [0x1009588]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push edi
lea eax, [ebp - 0x28]
push eax
push edi
push ebx
push 0x10020b8
push dword [ebp - 0x2c]
mov dword [ebp - 0x28], ebx
call esi
push edi
lea eax, [ebp - 0x28]
push eax
push edi
push ebx
push 0x10020a8
push dword [ebp - 0x2c]
call esi
call fcn.010069ab
push edi
push 0x1009574
push edi
push ebx
push 0x1002098
push dword [ebp - 0x2c]
call esi
push edi
lea eax, [ebp - 0x28]
push eax
push edi
push ebx
push 0x100208c
push dword [ebp - 0x2c]
call esi
push 8
push dword [ebp - 0x34]
push 3
push ebx
push 0x1001f70
push dword [ebp - 0x2c]
call esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2c]
pop edi
pop esi
pop ebx
call fcn.01007f42
leave
ret 4
Function at 0x1006dcd
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x1009364]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2d]
push eax
mov byte [ebp - 0x2d], 0
call fcn.0100312d
test al, al
je 0x1006f42
cmp byte [ebp - 0x2d], 0
je 0x1006f42
movzx eax, byte [ebp - 0x2d]
push edi
shl eax, 3
push eax
call fcn.010025f5
xor edi, edi
cmp eax, edi
mov dword [ebp - 0x48], eax
je 0x1006f41
push eax
lea eax, [ebp - 0x2d]
push eax
call fcn.0100327a
test al, al
je 0x1006f41
cmp byte [ebp - 0x2d], 0
je 0x1006f41
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x4c]
push eax
push edi
push 0x10020e8
push dword [0x1009588]
mov dword [ebp - 0x3c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1006f39
cmp dword [ebp - 0x50], edi
je 0x1006f39
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push esi
push 0x20
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x40], edi
push edi
jmp 0x1006f25
lea eax, [ebp - 0x44]
push eax
push 0xf003f
push edi
lea eax, [ebp - 0x2c]
push eax
push dword [0x1009588]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp esi, edi
jne 0x1006f37
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x4c]
push eax
push edi
push 0x1001f70
push dword [ebp - 0x44]
mov dword [ebp - 0x3c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x44]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
jne 0x1006f37
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x38], eax
movzx eax, byte [ebp - 0x2d]
cmp eax, edi
mov dword [ebp - 0x34], edi
jle 0x1006f01
mov esi, dword [ebp - 0x38]
push 2
pop ecx
lea edi, [ebp - 0xc]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
je 0x1006eff
add dword [ebp - 0x38], 8
inc dword [ebp - 0x34]
cmp dword [ebp - 0x34], eax
jl 0x1006ee4
xor edi, edi
cmp dword [ebp - 0x34], eax
jne 0x1006f17
lea eax, [ebp - 0x2c]
push eax
push dword [0x1009588]
call fcn.01006cba
jmp 0x1006f1a
inc dword [ebp - 0x40]
push 0x20
lea eax, [ebp - 0x2c]
push eax
movzx eax, word [ebp - 0x40]
push eax
push dword [0x1009588]
call ebx
mov esi, eax
cmp esi, edi
je 0x1006e80
pop esi
pop ebx
push dword [ebp - 0x48]
call fcn.01002629
pop edi
mov ecx, dword [ebp - 4]
call fcn.01007f42
leave
ret
Function at 0x1006f51
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x1009364]
push ebx
push esi
push edi
mov edx, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], eax
xor eax, eax
push 7
pop ecx
mov byte [ebp - 0x24], bl
lea edi, [ebp - 0x23]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 7
xor eax, eax
cmp byte [ebp + 0xc], 0x82
mov byte [ebp - 0x44], bl
pop ecx
lea edi, [ebp - 0x43]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], 4
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
stosb byte es:[edi], al
jne 0x1006fe5
push 0x20
lea eax, [ebp - 0x24]
lea esi, [edx + 0xa8]
push eax
push esi
call fcn.01006ad1
test al, al
je 0x1006fd7
lea eax, [ebp - 0x58]
push eax
push 0xf003f
push ebx
lea eax, [ebp - 0x24]
push eax
push dword [0x1009588]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
jmp 0x1006fe0
push esi
call fcn.01006bab
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
jmp 0x1006fea
mov eax, dword [0x1009588]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
mov edi, 0x100208c
push edi
push dword [ebp - 0x4c]
call esi
test eax, eax
jne 0x10070d7
push dword [ebp - 0x50]
inc dword [ebp - 0x48]
lea eax, [ebp - 0x48]
push eax
push 4
push ebx
push edi
push dword [ebp - 0x4c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call edi
test eax, eax
jne 0x10070d7
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push 0x10020b8
push dword [ebp - 0x4c]
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], 4
call esi
test eax, eax
jne 0x10070d7
push dword [ebp - 0x48]
lea eax, [ebp - 0x44]
push 0x1002104
push eax
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0xc
push 0x200
push dword [ebp - 0x60]
lea eax, [ebp - 0x44]
push 3
push ebx
push eax
push dword [ebp - 0x4c]
call edi
test eax, eax
jne 0x10070d7
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push 0x1002098
push dword [ebp - 0x4c]
mov dword [ebp - 0x50], 4
mov dword [ebp - 0x54], ebx
call esi
test eax, eax
jne 0x10070d7
cmp dword [ebp - 0x5c], ebx
je 0x10070e1
mov eax, dword [ebp - 0x48]
push dword [ebp - 0x50]
inc eax
xor edx, edx
div dword [ebp - 0x5c]
lea eax, [ebp - 0x48]
push eax
push 4
push ebx
push 0x10020b8
push dword [ebp - 0x4c]
mov dword [ebp - 0x48], edx
call edi
test eax, eax
je 0x10070e1
push 0x10017df
call fcn.0100601d
cmp byte [ebp + 0xc], 0x82
pop edi
pop esi
pop ebx
jne 0x10070f9
cmp dword [ebp - 0x4c], 0xffffffff
je 0x10070f9
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
call fcn.01007f42
leave
ret 8
Function at 0x1007135
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1009364]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push edi
push 0x20
mov dword [ebp - 4], eax
lea eax, [ebp - 0x24]
push eax
push 0
push ebx
call esi
mov edi, 0x103
jmp 0x10071a0
lea eax, [ebp - 0x28]
push eax
push 0xf003f
push 0
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push dword [ebp - 0x28]
call fcn.01007135
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push 0x20
lea eax, [ebp - 0x24]
push eax
push 0
push ebx
call esi
cmp eax, edi
jne 0x1007163
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01007f42
leave
ret 4

Function at 0x1007252
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x1009364]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
xor ebx, ebx
mov byte [ebp - 0x1c], bl
lea edi, [ebp - 0x1b]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov esi, 0x1002180
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
push 5
pop ecx
movsb byte es:[edi], byte [esi]
mov esi, 0x1002168
lea edi, [ebp - 0x34]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x38]
push eax
push 8
push ebx
lea eax, [ebp - 0x34]
push eax
push 0x80000002
mov dword [ebp - 0x3c], 0x10
movsw word es:[edi], word [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10072e2
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x10072e2
push 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.msvcrt.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x10072e2
mov bl, 1
cmp dword [ebp - 0x38], 0xffffffff
je 0x10072f1
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
pop ebx
call fcn.01007f42
leave
ret
Function at 0x1007305
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1009364]
push ebx
push edi
push 7
pop ecx
mov dword [ebp - 4], eax
xor ebx, ebx
xor eax, eax
mov byte [ebp - 0x24], bl
lea edi, [ebp - 0x23]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [ebp - 0x2c], bl
lea edi, [ebp - 0x2b]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x28]
push eax
push ebx
push 0xf003f
push 1
push ebx
push ebx
push str.SystemCurrentControlSetServicesCissesrvDisabledControllers
push 0x80000002
mov dword [ebp - 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x100739e
push esi
mov esi, dword [ebp + 8]
push esi
lea eax, [ebp - 0x24]
push 0x1002188
push eax
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0xc
push 4
lea eax, [ebp - 0x2c]
push eax
push 4
push ebx
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x28]
mov dword [ebp - 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
pop esi
je 0x10073ad
push 0x10011c4
call fcn.0100601d
jmp 0x10073ad
push 0x10011c4
call fcn.0100601d
cmp dword [ebp - 0x28], ebx
je 0x10073b6
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.01007f42
leave
ret 4
Function at 0x10073c9
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x1009364]
push ebx
push esi
push edi
push 7
pop ecx
mov dword [ebp - 4], eax
xor ebx, ebx
xor eax, eax
mov byte [ebp - 0x24], bl
lea edi, [ebp - 0x23]
rep stosd dword es:[edi], eax
push 0x20
stosw word es:[edi], ax
stosb byte es:[edi], al
pop edi
push 4
pop esi
lea eax, [ebp - 0x30]
push eax
push 0xf003f
push ebx
push str.SystemCurrentControlSetServicesCissesrvDisabledControllers
push 0x80000002
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x38], edi
mov byte [ebp - 0x25], bl
mov dword [ebp - 0x3c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10074b5
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x100749b
cmp dword [ebp - 0x2c], ebx
je 0x100749b
dec dword [ebp - 0x2c]
mov dword [ebp - 0x34], ebx
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x25]
push eax
push ebx
push ebx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x34]
mov dword [ebp - 0x38], edi
push dword [ebp - 0x30]
mov dword [ebp - 0x3c], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, ebx
jne 0x100747d
movzx eax, byte [ebp - 0x25]
mov byte [eax + 0x1009468], 1
jmp 0x100748e
cmp eax, 0x103
je 0x100748e
push 0x10011c4
call fcn.0100601d
inc dword [ebp - 0x34]
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x2c]
jbe 0x1007448
jmp 0x10074a5
push 0x10011c4
call fcn.0100601d
cmp dword [ebp - 0x30], ebx
je 0x10074bf
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10074bf
push 0x10011c4
call fcn.0100601d
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01007f42
leave
ret

Function at 0x10074d1
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1009364]
push edi
push 7
pop ecx
mov dword [ebp - 4], eax
xor eax, eax
mov byte [ebp - 0x24], 0
lea edi, [ebp - 0x23]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x28]
push eax
push 0xf003f
push 0
push str.SystemCurrentControlSetServicesCissesrvDisabledControllers
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
pop edi
jne 0x1007554
push dword [ebp + 8]
lea eax, [ebp - 0x24]
push 0x1002188
push eax
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x1007543
push 0x10011c4
call fcn.0100601d
cmp dword [ebp - 0x28], 0
je 0x100755e
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100755e
push 0x10011c4
call fcn.0100601d
mov ecx, dword [ebp - 4]
call fcn.01007f42
leave
ret 4