joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405e50
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
mov edi, ecx
call fcn.00402d30
test eax, eax
jne 0x405e6e
mov eax, 0x80004005
pop edi
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x425bd0]
push ebx
lea eax, [ebp - 0x1c]
push eax
push 1
push 0x65
xor ebx, ebx
push ecx
mov dword [ebp - 0x1c], 0x41bb2c
mov dword [ebp - 0x18], str.62ED02D1_A332_4696_AC4B_8236667A2053
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.00405b90
cmp eax, ebx
jl 0x405fa0
push esi
push 0x20006
push str.AppID
push SysReAllocString
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.00401a80
cmp eax, ebx
je 0x405eea
push eax
call fcn.00401610
mov esi, eax
mov eax, dword [ebp - 0x18]
add esp, 4
cmp eax, ebx
je 0x405edf
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebp - 0x18]
push ebx
push ebx
push 0x2001f
push ebx
push ebx
push str.62ED02D1_A332_4696_AC4B_8236667A2053
push esi
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call fcn.004019e0
cmp eax, ebx
je 0x405f40
push eax
call fcn.00401610
mov edi, eax
mov eax, dword [ebp - 0xc]
add esp, 4
cmp eax, ebx
je 0x405f2a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x405f35
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp - 0xc]
push str.LocalService
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea ecx, [ebp - 0xc]
cmp byte [ebp + 8], bl
je 0x405f90
push 1
lea eax, [edi + 0x40]
push eax
push str.LocalService
call fcn.00401bd0
mov ecx, edi
call fcn.00402b80
lea ecx, [ebp - 0xc]
test eax, eax
jne 0x405f90
call fcn.00403020
lea ecx, [ebp - 0x18]
call fcn.00403020
pop esi
pop ebx
mov eax, 0x80004005
pop edi
mov esp, ebp
pop ebp
ret 4
call fcn.00403020
lea ecx, [ebp - 0x18]
call fcn.00403020
xor eax, eax
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x406160
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
call fcn.00402d30
test eax, eax
jne 0x406178
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret
push esi
push edi
push 0x20006
xor esi, esi
push str.AppID
push SysReAllocString
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call fcn.00401a80
cmp eax, esi
je 0x4061c1
push eax
call fcn.00401610
mov edi, eax
mov eax, dword [ebp - 0x10]
add esp, 4
cmp eax, esi
je 0x4061b9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp - 0x10]
push 0x20006
push str.62ED02D1_A332_4696_AC4B_8236667A2053
push ebx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call fcn.00401a80
cmp eax, esi
je 0x406212
push eax
call fcn.00401610
mov edi, eax
mov eax, dword [ebp - 0x1c]
add esp, 4
cmp eax, esi
je 0x4061fe
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, esi
je 0x406209
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x1c]
push str.LocalService
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [0x425bd0]
lea eax, [ebp - 0x20]
push eax
push esi
push 0x65
push ecx
mov dword [ebp - 0x20], 0x41bb2c
mov dword [ebp - 0x1c], str.62ED02D1_A332_4696_AC4B_8236667A2053
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call fcn.00405b90
mov dword [ebp - 4], eax
cmp edi, esi
je 0x406256
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, esi
je 0x406261
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x406270
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push esi
push eax
mov esi, ecx
mov byte [ebp - 1], 0
call fcn.00405e50
test eax, eax
jne 0x4062e5
push edi
push 1
push str.ServicesActive
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x4062e4
push ebx
push 0xf01ff
add esi, 0x40
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x4062e0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
je 0x4062dd
mov byte [ebp - 1], 1
push esi
call ebx
push edi
call ebx
pop ebx
pop edi
xor eax, eax
cmp byte [ebp - 1], al
pop esi
setne al
dec eax
and eax, 0x80004005
mov esp, ebp
pop ebp
ret 4
Function at 0x406820
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
xor edi, edi
cmp eax, 0xffffffff
je 0x406880
push 0x20019
push 2
push edi
push 1
add ecx, 4
push ecx
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov esi, eax
cmp esi, 0xffffffff
je 0x406880
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ebx
push eax
push ecx
push edi
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40686a
lea edi, [eax + 1]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x406880
mov eax, dword [ebx]
pop edi
pop esi
mov dword [ebx], eax
pop ebx
pop ebp
ret 0x10
pop edi
xor eax, eax
pop esi
mov dword [ebx], eax
pop ebx
pop ebp
ret 0x10

Function at 0x407060
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x424d78]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x214], eax
xor ebx, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x407086
sub eax, edx
sar eax, 1
add eax, eax
mov dword [ebp - 0x210], eax
xor eax, eax
nop
movzx ecx, word [eax + 0x41db78]
mov word [ebp + eax - 0x204], cx
add eax, 2
cmp cx, bx
jne 0x4070a0
mov eax, esi
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4070c0
push edi
lea edi, [ebp - 0x204]
sub eax, esi
add edi, 0xfffffffe
jmp 0x4070e0
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x4070e0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x20c]
push edx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
lea eax, [ebp - 0x204]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ecx, dword [ebp - 0x210]
mov edx, dword [ebp - 0x214]
mov eax, dword [ebp - 0x20c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push ecx
push edx
push 1
push ebx
push 0x41db68
push eax
call esi
mov edx, dword [ebp - 0x20c]
push 4
lea ecx, [ebp - 0x208]
push ecx
push 3
push ebx
push str.Display
push edx
mov dword [ebp - 0x208], ebx
call esi
pop edi
test eax, eax
jne 0x407170
lea ebx, [eax + 1]
mov eax, dword [ebp - 0x20c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0040d820
mov esp, ebp
pop ebp
ret 8
Function at 0x4071a0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417088
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x424d78]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], edi
cmp dword [ebx], edi
jne 0x4071de
xor esi, esi
jmp 0x4071e1
lea esi, [ebx + 4]
cmp esi, edi
je 0x407263
test esi, esi
je 0x407218
sub esi, ebx
sub esi, 3
lea eax, [esi - 1]
cmp eax, 0x1f3
ja 0x407218
mov ecx, dword [ebx]
cmp esi, ecx
jae 0x407204
lea esi, [esi + ebx + 4]
jmp 0x407206
xor esi, esi
cmp eax, ecx
jae 0x40721a
cmp eax, 0xffffffff
je 0x40721a
mov edi, dword [ebx + eax*4 + 0x1f8]
jmp 0x40721c
xor esi, esi
xor edi, edi
push 0x31
lea ecx, [ebp - 0x18]
call fcn.00406670
mov edx, dword [ebp - 0x18]
mov eax, str.SystemCurrentControlSetControlMediaCategories_
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x407230
mov eax, dword [edi + 0xc]
push eax
lea ecx, [ebp - 0x18]
call fcn.00406e10
mov edi, dword [ebp - 0x18]
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x40725f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x4071e9
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x407280
mov eax, dword [ebp - 0x14]
push eax
call fcn.0040d43e
push edi
call fcn.0040d43e
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x407ee0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x424d78]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x418]
push eax
push 0x20119
push 0
push 0x41db78
mov esi, 1
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x420], esi
mov dword [ebp - 0x41c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407f9f
lea ecx, [ebp - 0x41c]
push ecx
mov ecx, dword [ebp - 0x418]
lea edx, [ebp - 0x414]
push edx
lea eax, [ebp - 0x420]
push eax
push 0
push str.Locale
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x407f92
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x414]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x407f87
test ax, ax
je 0x407f83
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x407f87
add ecx, 4
add edx, 4
test ax, ax
jne 0x407f61
xor eax, eax
jmp 0x407f8c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x407f92
xor esi, esi
mov edx, dword [ebp - 0x418]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040d820
mov esp, ebp
pop ebp
ret 4
Function at 0x408990
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
lea eax, [ebp - 4]
push eax
push 0x20106
xor edi, edi
push edi
push 0x41db78
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4089f4
mov eax, dword [ebp + 8]
push esi
test eax, eax
jne 0x4089fd
xor esi, esi
push esi
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
mov ecx, dword [ebp - 4]
push eax
push esi
push 1
push 0
push str.Locale
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4089e2
lea edi, [eax + 1]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
pop esi
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 4
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
test esi, esi
jne 0x4089bf
push 0x8007000e
call fcn.00401270
int3
Function at 0x408cb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x408ccb
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x408d02
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x408cfe
jmp 0x408cf0
cmp esi, eax
jae 0x408d02
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x408cf0
cmp esi, eax
jb 0x408d09
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x408ed0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x424d78]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x408f16
lea eax, [ebp - 0x230]
push eax
push edi
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x408f27
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d820
mov esp, ebp
pop ebp
ret
push esi
jmp 0x408f30
lea ecx, [ebp - 0x20c]
push 0x41df34
push ecx
call fcn.0040ea8b
add esp, 8
test eax, eax
je 0x408f5b
lea edx, [ebp - 0x230]
push edx
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x408f30
jmp 0x408f92
mov eax, dword [ebp - 0x228]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x408f82
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d820
mov esp, ebp
pop ebp
ret
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov eax, 1
pop edi
call fcn.0040d820
mov esp, ebp
pop ebp
ret
Function at 0x408fb0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 8]
push eax
push 0x20119
push 0
push str.SoftwareConexant
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40904c
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 4]
push edx
push eax
push eax
mov eax, dword [ebp - 8]
push str.CallApps
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x409003
inc dword [ebp - 4]
push 0
lea ecx, [ebp - 8]
push ecx
push 0
push 0x20106
push 0
push 0
push 0
push str.SoftwareConexant
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x409042
push 4
lea edx, [ebp - 4]
push edx
push 4
push eax
mov eax, dword [ebp - 8]
push str.CallApps
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret

Function at 0x40ad40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417400
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x424d78]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 0xc]
mov eax, 0x80004004
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
test ebx, ebx
je 0x40ae5d
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x40ae5d
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x40ae5d
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x40ae5d
push esi
push edi
xor eax, eax
push ebx
push 0x4249b0
mov word [ecx], ax
call fcn.0040a840
add esp, 0x10
cmp eax, 1
je 0x40add5
push esi
push edi
push ebx
push 0x424510
call fcn.0040a840
add esp, 0x10
cmp eax, 1
jne 0x40ae3e
lea ecx, [ebp + 0xc]
push ecx
push 0x20119
push 0
push edi
push ebx
mov dword [ebp + 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40ae3e
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40ae3e
mov ecx, dword [ebp + 0x18]
lea edx, [ebp + 0x14]
push edx
push ecx
lea edx, [ebp + 0x10]
push edx
push 0
push esi
mov edi, 4
push eax
mov dword [ebp + 0x10], edi
mov dword [ebp + 0x14], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40ae3e
cmp dword [ebp + 0x10], edi
jne 0x40ae3e
cmp dword [ebp + 0x14], edi
jne 0x40ae3e
mov edx, dword [ebp + 0x1c]
or ecx, 0xffffffff
mov word [edx], cx
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x40ae80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417420
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x424d78]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
mov eax, 0x80004004
mov dword [ebp - 0x424], edx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x428], eax
mov dword [ebp - 4], 0
test esi, esi
je 0x40b026
test edi, edi
je 0x40b026
test ebx, ebx
je 0x40b026
test edx, edx
je 0x40b026
test ecx, ecx
je 0x40b026
push ebx
push edi
xor eax, eax
push esi
push 0x4249b0
mov word [ecx], ax
call fcn.0040a840
add esp, 0x10
cmp eax, 1
je 0x40af39
push ebx
push edi
push esi
push 0x424510
call fcn.0040a840
add esp, 0x10
cmp eax, 1
jne 0x40b016
lea ecx, [ebp - 0x418]
push ecx
push 0x20119
push 0
push edi
push esi
mov dword [ebp - 0x418], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b016
mov eax, dword [ebp - 0x418]
test eax, eax
je 0x40b016
lea edx, [ebp - 0x420]
push edx
lea ecx, [ebp - 0x414]
push ecx
lea edx, [ebp - 0x41c]
push edx
push 0
push ebx
mov edi, 1
push eax
mov dword [ebp - 0x41c], edi
mov dword [ebp - 0x420], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [ebp - 0x418]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40b016
cmp dword [ebp - 0x41c], edi
jne 0x40b016
cmp dword [ebp - 0x420], 0x400
ja 0x40b016
lea ecx, [ebp - 0x414]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [ebp - 0x430], esi
test esi, esi
jne 0x40afed
push 0x8007000e
call fcn.00401270
mov edx, dword [ebp - 0x424]
push edx
lea ecx, [ebp - 0x430]
call fcn.004090b0
test eax, eax
jne 0x40b00f
mov ecx, dword [ebp - 0x42c]
or eax, 0xffffffff
mov word [ecx], ax
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor eax, eax
jmp 0x40b026
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040d820
mov esp, ebp
pop ebp
ret 0x18
Function at 0x40b050
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417450
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x424d78]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 0xc]
mov eax, 0x80004004
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
test edi, edi
je 0x40b15e
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x40b15e
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x40b15e
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x40b15e
push ebx
push esi
xor eax, eax
push edi
push 0x424510
mov word [ecx], ax
call fcn.0040a840
add esp, 0x10
cmp eax, 1
jne 0x40b13f
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ebp + 0x10]
push edx
push esi
push edi
push eax
mov eax, dword [ecx + 0x24]
mov dword [ebp + 0x10], 0
call eax
cmp word [ebp + 0x10], 0xffff
jne 0x40b13f
lea ecx, [ebp + 0xc]
push ecx
push 0x20106
push 0
push esi
push edi
mov dword [ebp + 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b13f
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40b13f
push 4
lea edx, [ebp + 0x18]
push edx
push 4
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40b13f
mov edx, dword [ebp + 0x1c]
or ecx, 0xffffffff
mov word [edx], cx
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x40b180
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417470
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x424d78]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 0xc]
mov eax, 0x80004004
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
test edi, edi
je 0x40b2c1
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x40b2c1
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x40b2c1
cmp dword [ebp + 0x18], 0
je 0x40b2c1
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x40b2c1
push ebx
push esi
xor eax, eax
push edi
push 0x424510
mov word [ecx], ax
call fcn.0040a840
add esp, 0x10
cmp eax, 1
jne 0x40b2a2
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ebp + 0x10]
push edx
push esi
push edi
push eax
mov eax, dword [ecx + 0x24]
mov dword [ebp + 0x10], 0
call eax
cmp word [ebp + 0x10], 0xffff
jne 0x40b2a2
lea ecx, [ebp + 0xc]
push ecx
push 0x20106
push 0
push esi
push edi
mov dword [ebp + 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b2a2
cmp dword [ebp + 0xc], eax
je 0x40b2a2
mov edx, dword [ebp + 0x18]
push edx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
test esi, esi
jne 0x40b26a
push 0x8007000e
call fcn.00401270
push esi
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
push eax
mov eax, dword [ebp + 0xc]
push esi
push 1
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp + 0xc]
push ecx
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x40b29b
mov eax, dword [ebp + 0x1c]
or edx, 0xffffffff
mov word [eax], dx
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18