joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e650
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x651217
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x750990]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x30]
call fcn.0041a9a0
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], 0x1000
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x30]
call fcn.0041af10
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], 1
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
lea eax, [ebp - 0x14]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x40e6d9
cmp dword [ebp - 0x14], 1
je 0x40e6e8
cmp dword [ebp - 0x14], 2
je 0x40e6e8
push 0x681644
lea ecx, [ebp - 0x30]
call fcn.0041ac50
jmp 0x40e75b
push 0xffffffffffffffff
lea ecx, [ebp - 0x30]
call fcn.0041afb0
lea ecx, [ebp - 0x30]
call fcn.0041b190
cmp dword [ebp - 0x14], 2
jne 0x40e75b
mov dword [ebp - 0x10], 0x1000
lea ecx, [ebp - 0x3c]
call fcn.0041a9a0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0041af10
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x24]
push edx
lea ecx, [ebp - 0x30]
call fcn.0041ae70
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x3c]
call fcn.0041afb0
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x30]
call fcn.0041aca0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call fcn.0041a9d0
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0041a9f0
mov edx, dword [ebp - 0x18]
or edx, 1
mov dword [ebp - 0x18], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.0041a9d0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x40e920
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40e98b
push 4
lea eax, [ebp + 0x14]
push eax
push 4
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40e981
mov dword [ebp - 8], 1
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40eb00
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 0x18], 0
jbe 0x40eb73
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40eb73
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 3
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40eb69
mov dword [ebp - 8], 1
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x40eb80
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x2001f
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40ebd9
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x40ebcf
mov dword [ebp - 8], 1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x40ee20
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x2001f
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40ee79
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x40ee6f
mov dword [ebp - 8], 1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x40ee80
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x2011f
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40eed9
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x40eecf
mov dword [ebp - 0xc], 1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push 0x2021f
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40ef1e
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x40ef14
mov dword [ebp - 0xc], 1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x40f190
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 0x18], 0
jbe 0x40f21e
cmp dword [ebp + 0x1c], 0
je 0x40f1b9
mov dword [ebp - 8], 0x100
jmp 0x40f1c0
mov dword [ebp - 8], 0x200
push 0
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp - 8]
or ecx, 0x2001f
push ecx
push 0
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40f21e
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
push 3
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40f214
mov dword [ebp - 0xc], 1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x40f330
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6512f4
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x750990]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
call fcn.00409370
xor eax, eax
mov word [ebp - 0x410], ax
push 0x3fe
push 0
lea ecx, [ebp - 0x40e]
push ecx
call fcn.0062db60
add esp, 0xc
lea edx, [ebp - 0x41c]
push edx
mov ecx, dword [ebp + 0x10]
call fcn.0041ae70
push eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov dword [ebp - 0x418], eax
cmp dword [ebp - 0x418], 0
je 0x40f3b4
xor al, al
jmp 0x40f46b
mov dword [ebp - 0x414], 0
mov edx, 1
test edx, edx
je 0x40f45c
push 0x200
lea eax, [ebp - 0x410]
push eax
mov ecx, dword [ebp - 0x414]
push ecx
mov edx, dword [ebp - 0x41c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov dword [ebp - 0x418], eax
cmp dword [ebp - 0x418], 0
je 0x40f3fc
jmp 0x40f45c
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x430]
call fcn.0041aa50
mov dword [ebp - 0x420], eax
mov ecx, dword [ebp - 0x420]
mov dword [ebp - 0x424], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x424]
push edx
mov ecx, dword [ebp + 8]
call fcn.00415780
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x430]
call fcn.0041a9d0
mov eax, dword [ebp - 0x414]
add eax, 1
mov dword [ebp - 0x414], eax
jmp 0x40f3be
mov ecx, dword [ebp - 0x41c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0062dc28
mov esp, ebp
pop ebp
ret
Function at 0x40f780
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x651365
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x750990]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
call fcn.00409370
xor eax, eax
mov word [ebp - 0x410], ax
push 0x3fe
push 0
lea ecx, [ebp - 0x40e]
push ecx
call fcn.0062db60
add esp, 0xc
cmp dword [ebp + 0x14], 0
je 0x40f7e4
mov dword [ebp - 0x424], 0x100
jmp 0x40f7ee
mov dword [ebp - 0x424], 0x200
lea edx, [ebp - 0x420]
push edx
mov eax, dword [ebp - 0x424]
or eax, 0x20019
push eax
push 0
mov ecx, dword [ebp + 0x10]
call fcn.0041ae70
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x418], eax
cmp dword [ebp - 0x418], 0
jne 0x40f8d3
mov dword [ebp - 0x414], 0
mov eax, 1
test eax, eax
je 0x40f8d3
push 0x200
lea ecx, [ebp - 0x410]
push ecx
mov edx, dword [ebp - 0x414]
push edx
mov eax, dword [ebp - 0x420]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov dword [ebp - 0x418], eax
cmp dword [ebp - 0x418], 0
je 0x40f873
jmp 0x40f8d3
lea ecx, [ebp - 0x410]
push ecx
lea ecx, [ebp - 0x438]
call fcn.0041aa50
mov dword [ebp - 0x42c], eax
mov edx, dword [ebp - 0x42c]
mov dword [ebp - 0x428], edx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x428]
push eax
mov ecx, dword [ebp + 8]
call fcn.00415780
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x438]
call fcn.0041a9d0
mov ecx, dword [ebp - 0x414]
add ecx, 1
mov dword [ebp - 0x414], ecx
jmp 0x40f835
mov edx, dword [ebp - 0x420]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 8]
call fcn.00414e60
movzx eax, al
test eax, eax
jne 0x40f8fb
mov dword [ebp - 0x41c], 1
jmp 0x40f905
mov dword [ebp - 0x41c], 0
mov al, byte [ebp - 0x41c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0062dc28
mov esp, ebp
pop ebp
ret
Function at 0x40f930
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x651398
mov eax, dword fs:[0]
push eax
mov eax, 0x102c
call fcn.0062f6d0
mov eax, dword [0x750990]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x1038]
call fcn.0041a9a0
mov dword [ebp - 4], 0
mov dword [ebp - 0x1020], 0
lea eax, [ebp - 0x1020]
push eax
push 0x20019
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x102c], eax
cmp dword [ebp - 0x102c], 0
je 0x40f9ca
mov byte [ebp - 0x1016], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1038]
call fcn.0041a9d0
mov al, byte [ebp - 0x1016]
jmp 0x40fa98
mov dword [ebp - 0x1028], 0x800
mov dword [ebp - 0x1024], 0
mov dword [ebp - 0x101c], 0
jmp 0x40f9f9
mov eax, dword [ebp - 0x101c]
add eax, 1
mov dword [ebp - 0x101c], eax
cmp dword [ebp - 0x1024], 0
jne 0x40fa79
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x1028]
push ecx
lea edx, [ebp - 0x1014]
push edx
mov eax, dword [ebp - 0x101c]
push eax
mov ecx, dword [ebp - 0x1020]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [ebp - 0x1024], eax
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x1014]
push eax
call fcn.0062e09f
add esp, 8
test eax, eax
jne 0x40fa6a
mov byte [ebp - 0x1017], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1038]
call fcn.0041a9d0
mov al, byte [ebp - 0x1017]
jmp 0x40fa98
mov dword [ebp - 0x1028], 0x800
jmp 0x40f9ea
mov byte [ebp - 0x1015], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1038]
call fcn.0041a9d0
mov al, byte [ebp - 0x1015]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0062dc28
mov esp, ebp
pop ebp
ret
Function at 0x410630
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x65150c
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x750990]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x219], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x22c], 0
lea ecx, [ebp - 0x244]
call fcn.0041a9a0
mov dword [ebp - 4], 0
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x220], 0
push 0
mov eax, dword [ebp + 8]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0
jbe 0x410821
mov ecx, dword [ebp - 0x230]
add ecx, 1
push ecx
call fcn.00504e99
add esp, 4
mov dword [ebp - 0x238], eax
mov edx, dword [ebp - 0x238]
mov dword [ebp - 0x224], edx
cmp dword [ebp - 0x224], 0
je 0x410821
mov eax, dword [ebp - 0x224]
push eax
mov ecx, dword [ebp - 0x230]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4107fd
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x22c]
push ecx
push str.VarFileInfoTranslation
mov edx, dword [ebp - 0x224]
push edx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4107fd
cmp dword [ebp - 0x220], 0
jbe 0x4107fd
mov eax, dword [ebp - 0x22c]
movzx ecx, word [eax + 2]
push ecx
mov edx, dword [ebp - 0x22c]
movzx eax, word [edx]
push eax
push str.StringFileInfo_04x_04xFileVersion
push 0x104
lea ecx, [ebp - 0x218]
push ecx
call fcn.00630362
add esp, 0x14
mov dword [ebp - 0x220], 0
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x218]
push ecx
mov edx, dword [ebp - 0x224]
push edx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4107fd
cmp dword [ebp - 0x220], 0
jbe 0x4107fd
cmp dword [ebp - 0x22c], 0
je 0x4107f2
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
cmp ecx, dword [ebp - 0x220]
jbe 0x4107f2
mov edx, dword [ebp - 0x220]
push edx
mov eax, dword [ebp - 0x22c]
push eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.0062eb20
add esp, 0x10
xor ecx, ecx
mov edx, dword [ebp - 0x220]
mov eax, dword [ebp + 0xc]
mov word [eax + edx*2], cx
mov byte [ebp - 0x219], 1
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x220]
mov dword [ecx], edx
cmp dword [ebp - 0x224], 0
je 0x410821
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x234], eax
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.00504e94
add esp, 4
mov dl, byte [ebp - 0x219]
mov byte [ebp - 0x225], dl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x244]
call fcn.0041a9d0
mov al, byte [ebp - 0x225]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0062dc28
mov esp, ebp
pop ebp
ret 0xc
Function at 0x411a60
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x750990]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x20d], 0
xor eax, eax
mov word [ebp - 0x20c], ax
push 0x206
push 0
lea ecx, [ebp - 0x20a]
push ecx
call fcn.0062db60
add esp, 0xc
mov dword [ebp - 0x214], 0x104
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x411afd
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x214]
cmp edx, dword [ecx]
jae 0x411af2
mov eax, dword [ebp - 0x214]
add eax, 1
push eax
lea ecx, [ebp - 0x20c]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0062eb20
add esp, 0x10
mov byte [ebp - 0x20d], 1
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x214]
mov dword [edx], eax
mov al, byte [ebp - 0x20d]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0062dc28
mov esp, ebp
pop ebp
ret

Function at 0x412430
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 8]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x412485
cmp dword [ebp - 8], 3
jne 0x412485
cmp dword [ebp + 0x10], 0
je 0x412483
mov dword [ebp - 0xc], 1
jmp 0x412497
cmp dword [ebp - 4], 0xea
je 0x412497
mov edx, dword [ebp + 0x14]
mov dword [edx], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x4124a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6517d4
mov eax, dword fs:[0]
push eax
mov eax, 0x2060
call fcn.0062f6d0
mov eax, dword [0x750990]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x202c], 0
lea ecx, [ebp - 0x203c]
call fcn.0041a9a0
mov dword [ebp - 4], 1
mov dword [ebp - 0x201c], 0
lea eax, [ebp - 0x201c]
push eax
push 0x20019
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4126ab
mov dword [ebp - 0x2024], 0x800
mov dword [ebp - 0x2030], 0x800
mov dword [ebp - 0x2020], 0
mov dword [ebp - 0x2028], 0
lea eax, [ebp - 0x2030]
push eax
lea ecx, [ebp - 0x1014]
push ecx
lea edx, [ebp - 0x2028]
push edx
push 0
lea eax, [ebp - 0x2024]
push eax
lea ecx, [ebp - 0x2018]
push ecx
mov edx, dword [ebp - 0x2020]
push edx
mov eax, dword [ebp - 0x201c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x41269e
cmp dword [ebp - 0x2028], 1
jne 0x412676
lea ecx, [ebp - 0x203c]
call fcn.0041ae90
test eax, eax
jle 0x4125d3
push 0x681088
lea ecx, [ebp - 0x2054]
call fcn.0041aa50
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2054]
push ecx
lea ecx, [ebp - 0x203c]
call fcn.0041ada0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2054]
call fcn.0041a9d0
lea edx, [ebp - 0x2018]
push edx
lea ecx, [ebp - 0x206c]
call fcn.0041aa50
mov byte [ebp - 4], 3
lea eax, [ebp - 0x206c]
push eax
lea ecx, [ebp - 0x203c]
call fcn.0041ada0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x206c]
call fcn.0041a9d0
push 0x6810b4
lea ecx, [ebp - 0x2060]
call fcn.0041aa50
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2060]
push ecx
lea ecx, [ebp - 0x203c]
call fcn.0041ada0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2060]
call fcn.0041a9d0
lea edx, [ebp - 0x1014]
push edx
lea ecx, [ebp - 0x2048]
call fcn.0041aa50
mov byte [ebp - 4], 5
lea eax, [ebp - 0x2048]
push eax
lea ecx, [ebp - 0x203c]
call fcn.0041ada0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2048]
call fcn.0041a9d0
mov ecx, dword [ebp - 0x2020]
add ecx, 1
mov dword [ebp - 0x2020], ecx
mov dword [ebp - 0x2024], 0x800
mov dword [ebp - 0x2030], 0x800
jmp 0x412541
mov edx, dword [ebp - 0x201c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x203c]
push eax
mov ecx, dword [ebp + 8]
call fcn.0041a9f0
mov ecx, dword [ebp - 0x202c]
or ecx, 1
mov dword [ebp - 0x202c], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x203c]
call fcn.0041a9d0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0062dc28
mov esp, ebp
pop ebp
ret 0xc
Function at 0x419680
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x750990]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [0x758304], 0
push 1
push str.ServicesActive
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x4196b9
mov al, byte [0x758304]
jmp 0x419778
push 0x14
push 0x683824
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x4196e7
push 4
push 0x683838
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0x24], 0
jne 0x4196fe
mov al, byte [0x758304]
jmp 0x419778
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x419721
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, byte [0x758304]
jmp 0x419778
cmp dword [ebp - 0x1c], 4
jne 0x41973f
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov byte [0x758304], 1
mov al, byte [0x758304]
jmp 0x419778
push 0
push 0
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x419762
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, byte [0x758304]
jmp 0x419778
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov byte [0x758304], 1
mov al, byte [0x758304]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0062dc28
mov esp, ebp
pop ebp
ret
Function at 0x41dd90
Capabilities:
Authenticate hmac

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x750990]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x15], 0
mov eax, dword [ebp + 0xc]
add eax, 0x11
push eax
call fcn.00504e99
add esp, 4
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], 0
je 0x41de65
push 0x10
push 0x36
mov edx, dword [ebp - 0x1c]
push edx
call fcn.0062db60
add esp, 0xc
mov eax, dword [ebp + 0xc]
add eax, 1
push eax
push 0
mov ecx, dword [ebp - 0x1c]
add ecx, 0x10
push ecx
call fcn.0062db60
add esp, 0xc
mov dword [ebp - 0x28], 0
jmp 0x41de00
mov edx, dword [ebp - 0x28]
add edx, 1
mov dword [ebp - 0x28], edx
cmp dword [ebp - 0x28], 0x10
jae 0x41de24
mov eax, dword [ebp + 0x10]
add eax, dword [ebp - 0x28]
movzx ecx, byte [eax]
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x28]
movzx eax, byte [edx]
xor eax, ecx
mov ecx, dword [ebp - 0x1c]
add ecx, dword [ebp - 0x28]
mov byte [ecx], al
jmp 0x41ddf7
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x1c]
add edx, 0x10
push edx
call fcn.0062e924
add esp, 0x10
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0xc]
add ecx, 0x10
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.0041dd40
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.00504e94
add esp, 4
push 0x20
call fcn.00504e99
add esp, 4
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x20], edx
cmp dword [ebp - 0x20], 0
je 0x41df04
push 0x10
push 0x5c
mov eax, dword [ebp - 0x20]
push eax
call fcn.0062db60
add esp, 0xc
mov dword [ebp - 0x24], 0
jmp 0x41dea4
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x24], 0x10
jae 0x41dec8
mov edx, dword [ebp + 0x10]
add edx, dword [ebp - 0x24]
movzx eax, byte [edx]
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x24]
movzx edx, byte [ecx]
xor edx, eax
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x24]
mov byte [eax], dl
jmp 0x41de9b
push 0x10
lea ecx, [ebp - 0x14]
push ecx
push 0x10
mov edx, dword [ebp - 0x20]
add edx, 0x10
push edx
call fcn.0062e9a3
add esp, 0x10
mov eax, dword [ebp + 0x14]
push eax
push 0x20
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.0041dd40
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
push eax
call fcn.00504e94
add esp, 4
mov byte [ebp - 0x15], 1
mov al, byte [ebp - 0x15]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0062dc28
mov esp, ebp
pop ebp
ret 0x10