joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2101ed48
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0x7fff
jmp 0x2101ed65
mov eax, dword [ebp - 4]
add eax, 0x7fff
mov dword [ebp - 4], eax
cmp dword [0x2105b324], 0
je 0x2101ed79
cmp dword [ebp - 4], 0xffff
jbe 0x2101ed79
jmp 0x2101eddf
push 0
push 2
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 0xc]
add ecx, 0x124
call fcn.21014d69
test eax, eax
jne 0x2101ed97
xor eax, eax
jmp 0x2101edfe
mov edx, dword [ebp - 0xc]
add edx, 4
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
add ecx, 0x124
call fcn.21016750
push eax
push 0x2105b6f4
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x2101edcf
xor eax, eax
jmp 0x2101edfe
mov edx, dword [ebp - 4]
sub edx, 2
cmp dword [ebp - 8], edx
jb 0x2101eddf
jmp 0x2101ed5a
mov ecx, dword [ebp - 0xc]
add ecx, 0x124
call fcn.21016750
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x13c], eax
mov ecx, dword [ebp - 0xc]
call fcn.2101ee04
mov esp, ebp
pop ebp
ret 4

Function at 0x2101ee82
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
add eax, 4
push eax
push 0x200
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x140]
push edx
push 0x2105b6f8
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x2101eeba
xor eax, eax
jmp 0x2101eec3
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x140]
mov esp, ebp
pop ebp
ret 8

Function at 0x2101eec9
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
add eax, 4
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 0x2105b6fc
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x2101f25c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x21048aa4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
mov dword [ebp - 0x114], ecx
mov ecx, dword [ebp - 0x114]
add ecx, 4
call fcn.2101eae3
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x114]
add ecx, 0x148
call fcn.210233b0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x114]
mov dword [eax], 0x2104ab8c
push 0x104
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [ebp - 0x110]
push edx
push str.wininit.ini
lea eax, [ebp - 0x110]
push eax
call fcn.2100ac73
lea ecx, [ebp - 0x110]
push ecx
mov ecx, dword [ebp - 0x114]
add ecx, 4
call fcn.2101f980
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x114]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x2101f60c
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
cmp dword [0x2105b324], 0
je 0x2101f62a
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
call fcn.2101f63e
jmp 0x2101f638
push 4
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov esp, ebp
pop ebp
ret 4
Function at 0x210206d0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x30]
cmp dword [eax + 8], 0
jne 0x210206e7
jmp 0x2102084d
push 2
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 0x18], eax
cmp dword [ebp + 8], 0
je 0x21020836
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x20], 0
je 0x21020726
mov ecx, dword [ebp - 0x30]
mov eax, dword [ecx + 0x28]
imul eax, eax, 0xb
cdq
and edx, 7
add eax, edx
sar eax, 3
mov edx, dword [ebp - 0x30]
mov dword [edx + 0x30], eax
jmp 0x21020732
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x28]
mov dword [eax + 0x30], edx
cmp dword [ebp - 0x18], 0
je 0x21020767
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 0x10]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x30]
add edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x30]
mov dword [eax + 0x30], edx
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [ebp - 0x24]
sub ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x30]
cmp ecx, dword [edx + 0x2c]
jne 0x21020794
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x30]
cmp eax, dword [ecx + 0x30]
je 0x210207fd
push 0x16
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x30]
push eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x2c]
push edx
push 0
push 0
push 0
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp dword [ebp - 0x18], 0
je 0x210207fd
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0x15
push 0
push 0
mov eax, dword [ebp - 0x1c]
imul eax, eax, 3
cdq
sub eax, edx
sar eax, 1
mov edx, dword [ebp - 0x20]
sub edx, eax
push edx
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x14]
cdq
sub eax, edx
sar eax, 1
push eax
push 0
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x21020834
push 4
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x21020845
push 0
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 0x30]
call fcn.2102048f
mov esp, ebp
pop ebp
ret 4
Function at 0x21020853
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x18], 0
jne 0x21020868
jmp 0x210208ee
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x406
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
mov edx, dword [ebp + 0x10]
push edx
push 0x404
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
mov edx, dword [ebp + 8]
push edx
push 0x402
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [ebp + 8], 0
jne 0x210208d5
cmp dword [ebp + 0xc], 0
jne 0x210208d5
cmp dword [ebp + 0x10], 0
jne 0x210208d5
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x18]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x210208e4
push 4
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x18]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
mov dword [eax + 0x20], 1
mov esp, ebp
pop ebp
ret 0xc

Function at 0x210208f4
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x18], 0
jne 0x21020906
jmp 0x21020956
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x406
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [ebp + 8], 0
jne 0x2102093d
cmp dword [ebp + 0xc], 0
jne 0x2102093d
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x18]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x2102094c
push 4
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x18]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
mov dword [eax + 0x20], 1
mov esp, ebp
pop ebp
ret 8
Function at 0x210237b7
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0xc], 0
jne 0x210237d0
xor eax, eax
jmp 0x21023936
push 0
push 0
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x14]
push eax
push 0
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 8]
push edx
push 0
push 0
push 0
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x21023808
xor eax, eax
jmp 0x21023936
mov edx, dword [ebp - 4]
add edx, 2
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0xc]
add eax, 2
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
add ecx, 2
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 8]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0x18], edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax + 0x14]
jbe 0x2102388b
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x24]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.2103d94e
add esp, 4
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 4]
mov dword [edx + 0x14], eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.2103d925
add esp, 4
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x1c]
mov dword [edx + 0x24], eax
cmp dword [ebp - 0x1c], 0
jne 0x2102388b
mov ecx, dword [ebp - 0x30]
call fcn.2102393a
xor eax, eax
jmp 0x21023936
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0xc]
cmp edx, dword [ecx + 0x1c]
jbe 0x210238de
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x28]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
push edx
call fcn.2103d94e
add esp, 4
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0x1c], ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.2103d925
add esp, 4
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x24]
mov dword [eax + 0x28], ecx
cmp dword [ebp - 0x24], 0
jne 0x210238de
mov ecx, dword [ebp - 0x30]
call fcn.2102393a
xor eax, eax
jmp 0x21023936
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x10]
cmp eax, dword [edx + 0x20]
jbe 0x21023931
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x2c]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
push eax
call fcn.2103d94e
add esp, 4
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x10]
mov dword [ecx + 0x20], edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.2103d925
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
mov dword [ecx + 0x2c], edx
cmp dword [ebp - 0x2c], 0
jne 0x21023931
mov ecx, dword [ebp - 0x30]
call fcn.2102393a
xor eax, eax
jmp 0x21023936
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x21023a6b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
cmp dword [ebp + 0xc], 0
je 0x21023a83
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
cmp dword [ebp + 0x10], 0
je 0x21023a92
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
cmp dword [ebp + 0x14], 0
je 0x21023aa1
mov edx, dword [ebp + 0x14]
mov dword [edx], 0
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0xc], 0
je 0x21023ab3
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0x2c], 0
jne 0x21023ab7
xor eax, eax
jmp 0x21023b1c
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x20]
mov dword [ebp - 8], eax
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x2c]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x21023aea
xor eax, eax
jmp 0x21023b1c
cmp dword [ebp + 0xc], 0
je 0x21023afb
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x2c]
mov dword [edx], ecx
cmp dword [ebp + 0x10], 0
je 0x21023b09
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 4]
mov dword [edx], eax
cmp dword [ebp + 0x14], 0
je 0x21023b17
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 8]
mov dword [ecx], edx
mov eax, 1
mov esp, ebp
pop ebp
ret 0x10

Function at 0x21023b8f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
lea eax, [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 4]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x21023bbf
xor eax, eax
jmp 0x21023bce
cmp dword [ebp - 4], 3
je 0x21023bc9
xor eax, eax
jmp 0x21023bce
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc

Function at 0x21023cb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0xc], 0
je 0x21023cd1
mov edx, dword [ebp - 8]
cmp dword [edx + 0x2c], 0
jne 0x21023cd5
xor eax, eax
jmp 0x21023d43
lea eax, [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 4]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x21023d02
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
xor eax, eax
jmp 0x21023d43
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 1
je 0x21023d16
cmp dword [ebp - 0xc], 2
je 0x21023d18
jmp 0x21023d2d
jmp 0x21023d37
cmp dword [ebp + 0x14], 0
je 0x21023d2b
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.2102b902
jmp 0x21023d37
mov ecx, dword [ebp + 0xc]
mov byte [ecx], 0
xor eax, eax
jmp 0x21023d43
mov edx, dword [ebp + 0xc]
push edx
call fcn.21030110
add esp, 4
mov esp, ebp
pop ebp
ret 0x10
Function at 0x21023d49
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
cmp dword [ebp + 0x10], 0
je 0x21023d61
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
cmp dword [ebp + 0x14], 0
je 0x21023d70
mov ecx, dword [ebp + 0x14]
mov dword [ecx], 0
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0xc], 0
je 0x21023d9c
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x28], 0
je 0x21023d9c
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x2c], 0
je 0x21023d9c
cmp dword [ebp + 8], 0
jl 0x21023d9c
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
cmp eax, dword [edx + 0x18]
jl 0x21023da0
xor eax, eax
jmp 0x21023e1a
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x1c]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x20]
mov dword [ebp - 0xc], ecx
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x2c]
push ecx
lea edx, [ebp - 8]
push edx
push 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x28]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x21023de7
xor eax, eax
jmp 0x21023e1a
cmp dword [ebp + 0xc], 0
je 0x21023df8
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x2c]
mov dword [eax], edx
cmp dword [ebp + 0x10], 0
je 0x21023e06
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
cmp dword [ebp + 0x14], 0
je 0x21023e14
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0xc]
mov dword [edx], eax
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x28]
mov esp, ebp
pop ebp
ret 0x10

Function at 0x2102420a
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax + 0xc], 0
je 0x21024236
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x24], 0
je 0x21024236
cmp dword [ebp + 8], 0
jl 0x21024236
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
cmp eax, dword [edx + 0x10]
jl 0x2102423a
xor eax, eax
jmp 0x21024275
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x14]
mov dword [ebp - 4], edx
push 0
push 0
push 0
push 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x24]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x2102426f
xor eax, eax
jmp 0x21024275
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x24]
mov esp, ebp
pop ebp
ret 4
Function at 0x21024398
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
jne 0x210243ac
xor eax, eax
jmp 0x210243de
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 3
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x210243d1
xor eax, eax
jmp 0x210243de
mov ecx, dword [ebp - 4]
call fcn.210237b7
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc

Function at 0x210243e4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
jne 0x210243f8
xor eax, eax
jmp 0x21024428
push 4
lea ecx, [ebp + 0xc]
push ecx
push 4
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x2102441b
xor eax, eax
jmp 0x21024428
mov ecx, dword [ebp - 4]
call fcn.210237b7
mov eax, 1
mov esp, ebp
pop ebp
ret 8

Function at 0x2102448e
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
cmp dword [ebp + 0xc], 0
jne 0x210244a9
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
call fcn.210244fa
jmp 0x210244f4
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0xc], 0
jne 0x210244b6
xor eax, eax
jmp 0x210244f4
mov edx, dword [ebp + 0xc]
push edx
call fcn.21030110
add esp, 4
add eax, 1
push eax
mov eax, dword [ebp + 0xc]
push eax
push 1
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x210244e7
xor eax, eax
jmp 0x210244f4
mov ecx, dword [ebp - 4]
call fcn.210237b7
mov eax, 1
mov esp, ebp
pop ebp
ret 8

Function at 0x210244fa
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
jne 0x2102450e
xor eax, eax
jmp 0x21024534
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x21024527
xor eax, eax
jmp 0x21024534
mov ecx, dword [ebp - 4]
call fcn.210237b7
mov eax, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x21024afd
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov dword [ebp - 0x114], ecx
cmp dword [ebp + 8], 0
je 0x21024b18
mov eax, dword [ebp + 8]
mov byte [eax], 0
push 0
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 8]
push edx
push str.ProfileImagePath
mov ecx, dword [ebp - 0x114]
call fcn.21023a6b
test eax, eax
jne 0x21024b3d
xor eax, eax
jmp 0x21024c05
mov eax, dword [ebp - 4]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 1
je 0x21024b7c
cmp dword [ebp - 0x118], 2
je 0x21024b5d
jmp 0x21024c03
push 0x104
lea ecx, [ebp - 0x110]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [ebp - 0x110]
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x110]
push ecx
push str.ntuser.dat
mov edx, dword [ebp - 8]
push edx
call fcn.2100ac73
push 0x5c
mov eax, dword [ebp - 0x114]
mov ecx, dword [eax + 4]
push ecx
call fcn.210317c0
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x21024bbc
mov edx, dword [ebp - 0x114]
mov eax, dword [edx + 4]
mov dword [ebp - 0xc], eax
jmp 0x21024bc5
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
cmp dword [ebp + 8], 0
je 0x21024bdb
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.2102ffc0
add esp, 8
lea ecx, [ebp - 0x110]
push ecx
mov edx, dword [ebp - 0xc]
push edx
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegLoadKeyA]
test eax, eax
jne 0x21024c03
mov eax, dword [ebp - 0xc]
push eax
call fcn.21030110
add esp, 4
jmp 0x21024c05
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x210267e9
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
cmp dword [eax + 8], 0
jne 0x210267ff
xor eax, eax
jmp 0x2102682b
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x21026822
push 0x2105670c
call fcn.2100a4db
xor eax, eax
jmp 0x2102682b
xor eax, eax
cmp dword [ebp - 0x18], 4
sete al
mov esp, ebp
pop ebp
ret
Function at 0x21026924
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
add eax, 0x10
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push 0
push 1
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesA]
test eax, eax
jne 0x2102696a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x2102696a
push 0x21056720
call fcn.2100a4db
xor eax, eax
jmp 0x210269e7
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
push eax
call fcn.2103d94e
add esp, 4
mov ecx, dword [ebp - 4]
push ecx
call fcn.2103d925
add esp, 4
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov dword [edx + 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x210269ab
push str.could_not_allocate_service_list
call fcn.2100a467
xor eax, eax
jmp 0x210269e7
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
push ecx
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0xc]
push edx
push 1
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesA]
test eax, eax
jne 0x210269e2
push str.EnumDependentServices
call fcn.2100a4db
xor eax, eax
jmp 0x210269e7
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x21026ad2
Capabilities:
Check for time delay via gettickcount
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
add eax, 0x7530
mov dword [ebp - 0x24], eax
cmp dword [0x2105b710], 0
je 0x21026b00
mov ecx, dword [0x2105b710]
call fcn.2102048f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [ebp - 0x24]
jbe 0x21026b29
push 0x21056770
push str.MyStartService
push 0x2729
call fcn.2100a398
add esp, 0xc
xor eax, eax
jmp 0x21026bb2
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x21026b49
push str.QueryServiceStatus
call fcn.2100a4db
xor eax, eax
jmp 0x21026bb2
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 1
je 0x21026b5d
cmp dword [ebp - 0x28], 4
je 0x21026b7f
jmp 0x21026b91
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x21026b7d
push str.StartService
call fcn.2100a4db
xor eax, eax
jmp 0x21026bb2
jmp 0x21026b91
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
jmp 0x21026bb2
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x2105b710], 0
je 0x21026bad
mov ecx, dword [0x2105b710]
call fcn.2102048f
jmp 0x21026b00
mov esp, ebp
pop ebp
ret 4