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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], 0x7fff
cmp dword [0x2109c234], 0
je 0x21043020
cmp dword [ebp - 8], 0xffff
jbe 0x21043020
jmp 0x21043095
push 0
push 2
mov eax, dword [ebp - 8]
shl eax, 1
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x20c
call fcn.2102d311
test eax, eax
jne 0x21043040
xor eax, eax
jmp 0x210430b5
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x210]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x14]
add eax, 4
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
push 0x2109cc8c
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x21043079
xor eax, eax
jmp 0x210430b5
mov ecx, dword [ebp - 8]
sub ecx, 2
cmp dword [ebp - 4], ecx
jb 0x21043095
mov edx, dword [ebp - 8]
add edx, 0x7fff
mov dword [ebp - 8], edx
jmp 0x2104300c
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x210]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x224], eax
mov ecx, dword [ebp - 0x14]
call fcn.210430bb
mov esp, ebp
pop ebp
ret 4

Function at 0x21043235
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x2107bd86
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
mov dword [ebp - 0x40], ecx
push 0xffffffffffffffff
push 0
mov ecx, dword [ebp + 0xc]
call fcn.2106d863
lea ecx, [ebp - 0x24]
call fcn.2102d230
mov dword [ebp - 4], 0
mov dword [ebp - 0x28], 0x7fff
cmp dword [0x2109c234], 0
je 0x2104328c
cmp dword [ebp - 0x28], 0xffff
jbe 0x2104328c
jmp 0x21043336
push 0
push 2
mov eax, dword [ebp - 0x28]
shl eax, 1
push eax
lea ecx, [ebp - 0x24]
call fcn.2102d311
test eax, eax
jne 0x210432c0
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.2102d2fe
mov eax, dword [ebp - 0x34]
jmp 0x21043351
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x40]
add edx, 4
push edx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push 0x2109cc90
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x2104330a
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.2102d2fe
mov eax, dword [ebp - 0x38]
jmp 0x21043351
mov eax, dword [ebp - 0x28]
sub eax, 2
cmp dword [ebp - 0x30], eax
jb 0x21043326
mov ecx, dword [ebp - 0x28]
add ecx, 0x7fff
mov dword [ebp - 0x28], ecx
jmp 0x21043275
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x2c]
push eax
call fcn.21038bc8
add esp, 8
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x3c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.2102d2fe
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x210433e1
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 + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x21043407
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0x7fff
cmp dword [0x2109c234], 0
je 0x21043435
cmp dword [ebp - 8], 0xffff
jbe 0x21043435
jmp 0x210434d0
mov eax, dword [ebp - 8]
shl eax, 1
push eax
call fcn.2106e07d
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
jne 0x21043463
push str.CPrivateProfile::GetSection_could_not_allocate_a_buffer
call fcn.2101235d
add esp, 4
xor eax, eax
jmp 0x210434d3
mov edx, dword [ebp - 0x1c]
add edx, 4
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x2104349b
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.2106e0a6
add esp, 4
xor eax, eax
jmp 0x210434d3
mov edx, dword [ebp - 8]
sub edx, 2
cmp dword [ebp - 0xc], edx
jb 0x210434d0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.2106e0a6
add esp, 4
mov dword [ebp - 4], 0
mov edx, dword [ebp - 8]
add edx, 0x7fff
mov dword [ebp - 8], edx
jmp 0x2104341e
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x210434d9
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 + 0x228]
push edx
push 0x2109cc94
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jne 0x21043511
xor eax, eax
jmp 0x2104351a
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x228]
mov esp, ebp
pop ebp
ret 8

Function at 0x21043520
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 0x2109cc98
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x21043686
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x2107bdc4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov dword [ebp - 0x218], ecx
mov ecx, dword [ebp - 0x218]
add ecx, 4
call fcn.21042e95
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x218]
add ecx, 0x230
call fcn.210496b0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x218]
mov dword [eax], 0x2107ded4
push 0x104
lea ecx, [ebp - 0x214]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0x104
lea edx, [ebp - 0x214]
push edx
push str.wininit.ini
lea eax, [ebp - 0x214]
push eax
call fcn.210153c3
add esp, 0x10
lea ecx, [ebp - 0x214]
push ecx
mov edx, dword [ebp - 0x218]
add edx, 8
push edx
call fcn.2105e417
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x218]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x21043746
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
cmp dword [0x2109c234], 0
je 0x21043764
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
call fcn.21043778
jmp 0x21043772
push 4
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov esp, ebp
pop ebp
ret 4
Function at 0x21043aaa
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 0x2c], ecx
cmp dword [0x2109c234], 0
je 0x21043bdf
push 0x618
call fcn.2106e07d
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
add edx, 0x208
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
add eax, 0x208
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
push 0x104
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
jne 0x21043b21
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.2105e417
add esp, 8
push 0
mov edx, dword [ebp + 0xc]
push edx
call fcn.21014f29
add esp, 8
test eax, eax
jne 0x21043b72
push 0x1001
mov eax, dword [ebp + 0xc]
push eax
call fcn.21014d6f
add esp, 8
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 0
je 0x21043b64
push 1
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], eax
jmp 0x21043b6b
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 1
push 0x104
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
jne 0x21043b99
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.2105e417
add esp, 8
cmp dword [ebp - 4], 0
je 0x21043bad
push 1
mov edx, dword [ebp + 0xc]
push edx
call fcn.2101666b
add esp, 8
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
push str.rename
mov ecx, dword [ebp - 0x2c]
add ecx, 4
call fcn.210435fb
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
push eax
call fcn.2106e0a6
add esp, 4
mov eax, dword [ebp - 0x10]
jmp 0x21043bef
push 5
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov esp, ebp
pop ebp
ret 8
Function at 0x21045253
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 0x21045268
jmp 0x210452ee
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_SendMessageW]
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_SendMessageW]
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_SendMessageW]
cmp dword [ebp + 8], 0
jne 0x210452d5
cmp dword [ebp + 0xc], 0
jne 0x210452d5
cmp dword [ebp + 0x10], 0
jne 0x210452d5
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x18]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x210452e4
push 1
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 + 0x2c], 1
mov esp, ebp
pop ebp
ret 0xc

Function at 0x210452f4
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 0x21045306
jmp 0x21045356
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_SendMessageW]
cmp dword [ebp + 8], 0
jne 0x2104533d
cmp dword [ebp + 0xc], 0
jne 0x2104533d
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x18]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x2104534c
push 1
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 + 0x2c], 1
mov esp, ebp
pop ebp
ret 8

Function at 0x210455a8
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
je 0x210455cb
jmp 0x2104560c
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x48], 0
push 1
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
push 2
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov esp, ebp
pop ebp
ret
Function at 0x21048afd
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov dword [ebp - 0x218], ecx
cmp dword [ebp + 8], 0
je 0x21048b1a
mov eax, dword [ebp + 8]
mov word [eax], 0
push 0
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 8]
push edx
push str.ProfileImagePath
mov ecx, dword [ebp - 0x218]
call fcn.2104a9eb
test eax, eax
jne 0x21048b3f
xor eax, eax
jmp 0x21048c13
mov eax, dword [ebp - 4]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 1
je 0x21048b7e
cmp dword [ebp - 0x21c], 2
je 0x21048b5f
jmp 0x21048c11
push 0x104
lea ecx, [ebp - 0x214]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x214]
mov dword [ebp - 8], eax
push 0x104
lea ecx, [ebp - 0x214]
push ecx
push str.ntuser.dat
mov edx, dword [ebp - 8]
push edx
call fcn.210153c3
add esp, 0x10
push 0
push 0xffffffffffffffff
push 0x5c
mov eax, dword [ebp - 0x218]
mov ecx, dword [eax + 4]
push ecx
call fcn.210394f0
add esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x21048bca
mov edx, dword [ebp - 0x218]
mov eax, dword [edx + 4]
mov dword [ebp - 0xc], eax
jmp 0x21048bd3
mov ecx, dword [ebp - 0xc]
add ecx, 2
mov dword [ebp - 0xc], ecx
cmp dword [ebp + 8], 0
je 0x21048be9
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.2105e417
add esp, 8
lea ecx, [ebp - 0x214]
push ecx
mov edx, dword [ebp - 0xc]
push edx
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegLoadKeyW]
test eax, eax
jne 0x21048c11
mov eax, dword [ebp - 0xc]
push eax
call fcn.2105e7d8
add esp, 4
jmp 0x21048c13
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x21049b26
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0xc], 0
jne 0x21049b3c
xor eax, eax
jmp 0x21049b90
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
call fcn.2104a9eb
test eax, eax
jne 0x21049b5c
xor eax, eax
jmp 0x21049b90
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x21049b83
xor eax, eax
jmp 0x21049b90
mov ecx, dword [ebp - 0x10]
call fcn.2104a39d
mov eax, 1
mov esp, ebp
pop ebp
ret 8

Function at 0x21049de1
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 0x21049df5
xor eax, eax
jmp 0x21049e1b
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_RegDeleteValueW]
test eax, eax
je 0x21049e0e
xor eax, eax
jmp 0x21049e1b
mov ecx, dword [ebp - 4]
call fcn.2104a39d
mov eax, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x2104a941
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp + 0x10]
shl eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0xc]
mov word [ecx], 0
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0xc], 0
je 0x2104a96c
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x2c], 0
jne 0x2104a970
xor eax, eax
jmp 0x2104a9e5
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x2104a99f
mov ecx, dword [ebp + 0xc]
mov word [ecx], 0
xor eax, eax
jmp 0x2104a9e5
mov edx, dword [ebp - 4]
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 1
je 0x2104a9b3
cmp dword [ebp - 0x10], 2
je 0x2104a9b5
jmp 0x2104a9cd
jmp 0x2104a9d9
cmp dword [ebp + 0x14], 0
je 0x2104a9cb
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.2105887f
add esp, 8
jmp 0x2104a9d9
mov edx, dword [ebp + 0xc]
mov word [edx], 0
xor eax, eax
jmp 0x2104a9e5
mov eax, dword [ebp + 0xc]
push eax
call fcn.2105e7d8
add esp, 4
mov esp, ebp
pop ebp
ret 0x10

Function at 0x2104a9eb
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 0x2104aa03
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
cmp dword [ebp + 0x10], 0
je 0x2104aa12
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
cmp dword [ebp + 0x14], 0
je 0x2104aa21
mov edx, dword [ebp + 0x14]
mov dword [edx], 0
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0xc], 0
je 0x2104aa33
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0x2c], 0
jne 0x2104aa37
xor eax, eax
jmp 0x2104aa9c
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_RegQueryValueExW]
test eax, eax
je 0x2104aa6a
xor eax, eax
jmp 0x2104aa9c
cmp dword [ebp + 0xc], 0
je 0x2104aa7b
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 0x2104aa89
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 4]
mov dword [edx], eax
cmp dword [ebp + 0x14], 0
je 0x2104aa97
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 0x2104b0cf
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 0x2104b0e3
xor eax, eax
jmp 0x2104b115
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_RegSetValueExW]
test eax, eax
je 0x2104b108
xor eax, eax
jmp 0x2104b115
mov ecx, dword [ebp - 4]
call fcn.2104a39d
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc

Function at 0x2104b11b
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 0x2104b12f
xor eax, eax
jmp 0x2104b179
cmp dword [ebp + 8], 0
jne 0x2104b13c
mov dword [ebp + 8], 0x2109cdc8
mov ecx, dword [ebp + 8]
push ecx
call fcn.2105e7d8
add esp, 4
lea edx, [eax + eax + 2]
push edx
mov eax, dword [ebp + 8]
push eax
push 1
push 0
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x2104b16c
xor eax, eax
jmp 0x2104b179
mov ecx, dword [ebp - 4]
call fcn.2104a39d
mov eax, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x2104b17f
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 0x2104b193
xor eax, eax
jmp 0x2104b1c3
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_RegSetValueExW]
test eax, eax
je 0x2104b1b6
xor eax, eax
jmp 0x2104b1c3
mov ecx, dword [ebp - 4]
call fcn.2104a39d
mov eax, 1
mov esp, ebp
pop ebp
ret 8

Function at 0x2104b1c9
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
jne 0x2104b1e2
xor eax, eax
jmp 0x2104b273
cmp dword [ebp + 0xc], 0
je 0x2104b1fd
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dx, word [ecx]
test edx, edx
je 0x2104b1fd
mov dword [ebp - 8], 0
jmp 0x2104b204
mov dword [ebp - 8], 1
cmp dword [ebp - 8], 0
je 0x2104b218
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
call fcn.21049de1
jmp 0x2104b273
cmp dword [ebp + 0x10], 0
jne 0x2104b241
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.21038638
add esp, 4
mov dword [ebp + 0x10], eax
cmp dword [ebp + 0x10], 0
jne 0x2104b241
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 4]
call fcn.21049de1
jmp 0x2104b273
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 7
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_RegSetValueExW]
test eax, eax
je 0x2104b266
xor eax, eax
jmp 0x2104b273
mov ecx, dword [ebp - 4]
call fcn.2104a39d
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x2104b29a
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 0x2104b2ae
xor eax, eax
jmp 0x2104b315
cmp dword [ebp + 0xc], 0
je 0x2104b2c6
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dx, word [ecx]
test edx, edx
jne 0x2104b2d4
cmp dword [ebp + 0x14], 0
je 0x2104b2d4
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
call fcn.21049de1
jmp 0x2104b315
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.2105e7d8
add esp, 4
lea edx, [eax + eax + 2]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
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_RegSetValueExW]
test eax, eax
je 0x2104b308
xor eax, eax
jmp 0x2104b315
mov ecx, dword [ebp - 4]
call fcn.2104a39d
mov eax, 1
mov esp, ebp
pop ebp
ret 0x10

Function at 0x2104edd5
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
add eax, 0xc
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push 0
push 1
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
jne 0x2104ee21
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x2104ee21
push 0x21094ba8
call fcn.210123d5
add esp, 4
xor eax, eax
jmp 0x2104eea4
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 8]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
push eax
call fcn.2106e0a6
add esp, 4
mov ecx, dword [ebp - 4]
push ecx
call fcn.2106e07d
add esp, 4
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov dword [edx + 8], eax
cmp dword [ebp - 0xc], 0
jne 0x2104ee65
push str.could_not_allocate_service_list
call fcn.2101235d
add esp, 4
xor eax, eax
jmp 0x2104eea4
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
push ecx
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 8]
push edx
push 1
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
jne 0x2104ee9f
push str.EnumDependentServices
call fcn.210123d5
add esp, 4
xor eax, eax
jmp 0x2104eea4
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x2104eea8
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 + 4], 0
jne 0x2104eebe
xor eax, eax
jmp 0x2104eeed
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x2104eee4
push 0x21094c40
call fcn.210123d5
add esp, 4
xor eax, eax
jmp 0x2104eeed
xor eax, eax
cmp dword [ebp - 0x18], 4
sete al
mov esp, ebp
pop ebp
ret