joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101e697
Capabilities:
List domain servers

Disassembly:
push 0x120
mov eax, 0x1030a20
call fcn.01026060
mov eax, dword [ebp + 8]
xor ebx, ebx
lea ecx, [ebp - 0x11c]
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x120], ebx
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
mov dword [ebp - 4], ebx
mov al, byte [ebp + 0xc]
neg al
push ebx
push ebx
sbb eax, eax
and eax, 0xfffffffb
add eax, 4
push eax
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x12c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x120]
push eax
push 0x64
push ebx
call sub.NETAPI32.dll_NetServerEnum
cmp eax, ebx
jne 0x101e76c
mov esi, dword [ebp - 0x120]
cmp esi, ebx
je 0x101e76c
xor edi, edi
cmp dword [ebp - 0x124], ebx
jbe 0x101e75f
add esi, 4
push ebx
push ebx
push 0x104
lea eax, [ebp - 0x118]
push eax
push 0xffffffffffffffff
push dword [esi]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x101e753
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x11c]
call dword [sym.imp.MFC80U.DLL_Ordinal_777]
mov ecx, dword [ebp - 0x128]
lea eax, [ebp - 0x11c]
push eax
call fcn.0100998c
inc edi
add esi, 8
cmp edi, dword [ebp - 0x124]
jb 0x101e710
push dword [ebp - 0x120]
call sub.NETAPI32.dll_NetApiBufferFree
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x11c]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov al, bl
call fcn.010260f2
ret

Function at 0x101eb2d
Capabilities:
Enumerate process modules

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1030af9
mov eax, dword fs:[0]
push eax
mov eax, 0x201c
call fcn.010263f0
push ebx
push esi
push edi
mov eax, dword [0x1038418]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
push 0x1004170
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.0101e118
cmp esi, ebx
mov dword [ebp - 0x10], esi
je 0x101ec2f
push 0x1004154
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, ebx
je 0x101ec2f
lea eax, [ebp - 0x18]
push eax
push 0x2000
lea eax, [ebp - 0x2028]
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x101ec2f
mov eax, dword [ebp - 0x18]
shr eax, 2
je 0x101ec2d
lea esi, [ebp - 0x2028]
mov dword [ebp - 0x14], eax
cmp dword [esi], ebx
je 0x101ec25
mov ecx, dword [ebp + 0xc]
push ebx
push esi
call fcn.0101077c
test eax, eax
jne 0x101ec25
push edi
push dword [esi]
call fcn.0101e986
cmp dword [ebp + 8], eax
pop ecx
pop ecx
jne 0x101ec25
mov eax, dword [esi]
push eax
push ebx
push 0x1f0fff
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, 0xffffffff
mov dword [ebp - 0x28], eax
je 0x101ec25
cmp eax, ebx
je 0x101ec25
or dword [ebp - 0x24], 0xffffffff
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x1c], ebx
call fcn.0102041e
lea eax, [ebp - 0x28]
push eax
call fcn.0101ccf6
add esp, 0x10
add esi, 4
dec dword [ebp - 0x14]
jne 0x101ebc6
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0101e118
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x101ec52
Capabilities:
Enumerate process modules

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1030b24
mov eax, dword fs:[0]
push eax
mov eax, 0x2008
call fcn.010263f0
push ebx
push esi
push edi
mov eax, dword [0x1038418]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
push 0x1004170
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.0101e118
cmp esi, ebx
mov dword [ebp - 0x10], esi
je 0x101ecf5
push 0x1004154
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x101ecf5
lea eax, [ebp - 0x14]
push eax
push 0x2000
lea eax, [ebp - 0x2014]
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x101ecf5
mov eax, dword [ebp - 0x14]
shr eax, 2
je 0x101ecf3
lea esi, [ebp - 0x2014]
mov edi, eax
cmp dword [esi], ebx
je 0x101eced
mov ecx, dword [ebp + 8]
push esi
call fcn.01010b57
add esi, 4
dec edi
jne 0x101ece0
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0101e118
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x101eeab
Capabilities:
Create service
Get session user name

Disassembly:
push 0x930
mov eax, 0x1030b95
call fcn.01026060
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x938], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push 0xf003f
mov dword [ebp - 0x928], eax
mov eax, dword [ebp + 0x10]
push edi
push edi
mov dword [ebp - 0x93c], eax
mov dword [ebp - 0x930], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, edi
mov dword [ebp - 0x934], eax
jne 0x101ef08
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x930], eax
jmp 0x101f06d
cmp esi, edi
je 0x101efb0
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x101ef15
sub eax, edx
sar eax, 1
je 0x101efb0
lea eax, [ebp - 0x92c]
push eax
lea eax, [ebp - 0x810]
push eax
push 2
xor bl, bl
mov dword [ebp - 0x92c], 0x400
call sub.Secur32.dll_GetUserNameExW
test al, al
je 0x101eef7
mov al, bl
neg al
sbb eax, eax
not eax
and eax, esi
push eax
neg bl
lea eax, [ebp - 0x810]
sbb ebx, ebx
not ebx
and ebx, eax
push ebx
push edi
push edi
push edi
push dword [ebp - 0x938]
push 1
push dword [ebp + 0x18]
push 0x10
push 0xf01ff
push dword [ebp - 0x928]
push dword [ebp - 0x928]
push dword [ebp - 0x934]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
cmp eax, edi
mov dword [ebp - 0x928], eax
jne 0x101efb4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x930], eax
jmp 0x101f081
mov bl, 1
jmp 0x101ef4e
lea eax, [ebp - 0x924]
push eax
mov dword [ebp - 0x924], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x101f09b
cmp dword [ebp - 0x914], 2
jne 0x101f06d
cmp dword [ebp - 0x920], 4
jbe 0x101f06d
mov dword [ebp - 0x92c], edi
mov dword [ebp - 4], edi
push dword [ebp - 0x934]
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
mov ebx, eax
cmp ebx, edi
je 0x101f05e
mov eax, dword [ebp - 0x93c]
push 0x10041f4
mov dword [ebp - 0x938], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea ecx, [ebp - 0x92c]
mov esi, eax
call fcn.0101e118
cmp esi, edi
mov dword [ebp - 0x92c], esi
je 0x101f057
push 0x10041dc
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x101f057
lea ecx, [ebp - 0x938]
push ecx
push 1
push dword [ebp - 0x928]
call eax
push ebx
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x92c]
call fcn.0101e118
cmp dword [ebp - 0x928], edi
je 0x101f081
push dword [ebp - 0x928]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0x934], edi
je 0x101f095
push dword [ebp - 0x934]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x930]
call fcn.010260f2
ret
Function at 0x101f0a6
Capabilities:
Check os version

Disassembly:
push 0x11c
mov eax, 0x1030bcd
call fcn.01026060
lea eax, [ebp - 0x124]
push eax
mov dword [ebp - 0x124], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x101f11e
cmp dword [ebp - 0x114], 2
jne 0x101f11e
cmp dword [ebp - 0x120], 5
jb 0x101f11e
xor ebx, ebx
mov dword [ebp - 0x128], ebx
mov dword [ebp - 4], ebx
push 0x10041c0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea ecx, [ebp - 0x128]
mov esi, eax
call fcn.0101e118
cmp esi, ebx
mov dword [ebp - 0x128], esi
jne 0x101f126
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x128]
call fcn.0101e118
xor al, al
call fcn.010260f2
ret
push 0x1004210
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, ebx
je 0x101f10f
mov esi, 0x10384f4
push esi
call fcn.0101d1bd
mov dword [esp], str.SQLDIAG
push ebx
call edi
push esi
mov dword [0x10384fc], eax
call fcn.0101d1e5
mov eax, dword [0x10384fc]
cmp eax, 0xffffffff
pop ecx
je 0x101f169
cmp eax, ebx
je 0x101f169
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x128]
call fcn.0101e118
mov al, bl
jmp 0x101f120

Function at 0x101f181
Capabilities:
Check os version

Disassembly:
push 0x11c
mov eax, 0x1030bcd
call fcn.01026060
lea eax, [ebp - 0x124]
push eax
mov dword [ebp - 0x124], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x101f1f9
cmp dword [ebp - 0x114], 2
jne 0x101f1f9
cmp dword [ebp - 0x120], 5
jb 0x101f1f9
and dword [ebp - 0x128], 0
and dword [ebp - 4], 0
push 0x10041c0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea ecx, [ebp - 0x128]
mov esi, eax
call fcn.0101e118
test esi, esi
mov dword [ebp - 0x128], esi
jne 0x101f201
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x128]
call fcn.0101e118
xor al, al
call fcn.010260f2
ret
push 0x1004224
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x101f1ea
mov ecx, dword [0x10384fc]
cmp ecx, 0xffffffff
je 0x101f244
test ecx, ecx
je 0x101f244
push 0
push ecx
call eax
mov esi, 0x10384f4
push esi
call fcn.0101d1bd
mov dword [esp], 0x10384fc
call fcn.0101ccf6
push esi
call fcn.0101d1e5
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x128]
call fcn.0101e118
mov al, 1
jmp 0x101f1fb
Function at 0x101f25c
Capabilities:
Check os version

Disassembly:
push 0x11c
mov eax, 0x1030bcd
call fcn.01026060
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x124]
push eax
mov dword [ebp - 0x124], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x101f2d7
cmp dword [ebp - 0x114], 2
jne 0x101f2d7
cmp dword [ebp - 0x120], 5
jb 0x101f2d7
and dword [ebp - 0x128], 0
and dword [ebp - 4], 0
push 0x10041c0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea ecx, [ebp - 0x128]
mov esi, eax
call fcn.0101e118
test esi, esi
mov dword [ebp - 0x128], esi
jne 0x101f2df
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x128]
call fcn.0101e118
xor al, al
call fcn.010260f2
ret
push 0x1004238
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x101f2c8
mov ecx, dword [0x10384fc]
cmp ecx, 0xffffffff
je 0x101f302
test ecx, ecx
je 0x101f302
push edi
push ecx
call eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x128]
call fcn.0101e118
mov al, 1
jmp 0x101f2d9
Function at 0x101f31a
Capabilities:
Set registry value

Disassembly:
push 0x24
mov eax, 0x1030c34
call fcn.01025fed
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], 3
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 4
push 0x10016d0
lea ecx, [ebp - 0x30]
call dword [sym.imp.MFC80U.DLL_Ordinal_283]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0xd], bl
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
mov byte [ebp - 4], 6
mov esi, dword [ebp + 0x10]
mov edi, dword [esi]
push ebx
push 0xc000c356
lea eax, [ebp - 0x24]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
push ebx
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
push eax
mov ecx, esi
call dword [edi + 0x10]
test al, al
je 0x101f4a3
mov eax, dword [esi]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push ebx
push 0xc000c357
mov dword [ebp + 0x10], eax
lea eax, [ebp - 0x20]
push eax
push 0x20019
push ebx
push 0x1002314
push dword [ebp - 0x24]
call edi
push eax
mov eax, dword [ebp + 0x10]
mov ecx, esi
call dword [eax + 0x10]
test al, al
je 0x101f4a3
mov eax, dword [esi]
push ebx
push 0xc000c358
mov dword [ebp + 0x10], eax
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push ebx
push 0x1002328
push dword [ebp - 0x20]
call edi
push eax
mov eax, dword [ebp + 0x10]
mov ecx, esi
call dword [eax + 0x10]
test al, al
je 0x101f4a3
mov eax, dword [esi]
push ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push 0xc000c42c
mov dword [ebp + 0x10], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push 0x1004254
push dword [ebp - 0x1c]
call edi
push eax
mov eax, dword [ebp + 0x10]
mov ecx, esi
call dword [eax + 0x10]
test al, al
je 0x101f4a3
mov eax, dword [esi]
push ebx
push 0xc000c42c
mov dword [ebp + 0x10], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SQLDIAG
push dword [ebp - 0x18]
call edi
push eax
mov eax, dword [ebp + 0x10]
mov ecx, esi
call dword [eax + 0x10]
test al, al
je 0x101f4a3
mov eax, dword [ebp + 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x101f46d
mov edi, dword [esi]
push ebx
sub eax, edx
push 0xc000c42d
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0xc]
push 1
push ebx
push dword [ebp + 8]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push eax
mov ecx, esi
call dword [edi + 0x10]
mov byte [ebp - 0xd], al
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x30]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
call fcn.010106e6
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.010106e6
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.010106e6
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x20]
call fcn.010106e6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.010106e6
mov al, byte [ebp - 0xd]
call fcn.010260d9
ret
Function at 0x101f734
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x1c
mov eax, 0x1030cde
call fcn.01025fed
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], 2
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 3
mov dword [ebp - 0x10], ebx
push 4
pop eax
mov byte [ebp - 4], al
mov esi, dword [ebp + 0x14]
mov edi, dword [esi]
push ebx
push 0xc000c356
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x20]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
push ebx
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
push eax
mov ecx, esi
call dword [edi + 0x10]
test al, al
je 0x101f898
mov eax, dword [esi]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push ebx
push 0xc000c357
mov dword [ebp + 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push ebx
push 0x1002314
push dword [ebp - 0x20]
call edi
push eax
mov eax, dword [ebp + 0x14]
mov ecx, esi
call dword [eax + 0x10]
test al, al
je 0x101f898
mov eax, dword [esi]
push ebx
push 0xc000c358
mov dword [ebp + 0x14], eax
lea eax, [ebp - 0x18]
push eax
push 0x20019
push ebx
push 0x1002328
push dword [ebp - 0x1c]
call edi
push eax
mov eax, dword [ebp + 0x14]
mov ecx, esi
call dword [eax + 0x10]
test al, al
je 0x101f898
mov eax, dword [esi]
push ebx
push 0xc000c42c
mov dword [ebp + 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0x20019
push ebx
push 0x1004254
push dword [ebp - 0x18]
call edi
push eax
mov eax, dword [ebp + 0x14]
mov ecx, esi
call dword [eax + 0x10]
test al, al
je 0x101f898
mov eax, dword [esi]
push ebx
push 0xc000c42c
mov dword [ebp + 0x14], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push ebx
push dword [ebp + 8]
push dword [ebp - 0x14]
call edi
push eax
mov eax, dword [ebp + 0x14]
mov ecx, esi
call dword [eax + 0x10]
test al, al
je 0x101f898
mov eax, dword [esi]
push ebx
mov dword [ebp + 0x14], eax
mov edi, 0xc000c42d
push edi
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x28]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
mov eax, dword [ebp + 0x14]
mov ecx, esi
call dword [eax + 0x10]
test al, al
jne 0x101f898
mov eax, dword [esi]
push ebx
push edi
mov dword [ebp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp + 0x14]
mov ecx, esi
call dword [eax + 0x10]
mov eax, dword [ebp + 0x10]
mov esi, dword [eax]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x10]
call fcn.010106e6
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.010106e6
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.010106e6
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1c]
call fcn.010106e6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.010106e6
mov eax, esi
call fcn.010260d9
ret
Function at 0x101fc5a
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x24
mov eax, 0x1030dcb
call fcn.01025fed
xor edi, edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], edi
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 3
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 4
mov esi, dword [ebp + 0x10]
mov ebx, dword [esi]
xor eax, eax
inc eax
push eax
push 0xc000c356
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x24]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
push edi
mov byte [ebp - 0xd], 0
mov dword [ebp - 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
push eax
mov ecx, esi
call dword [ebx + 0x10]
test al, al
je 0x101fda5
mov eax, dword [esi]
push 1
push 0xc000c357
mov dword [ebp + 0x10], eax
lea eax, [ebp - 0x20]
push eax
mov ebx, 0x20019
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push 0x1002314
push dword [ebp - 0x24]
call edi
push eax
mov eax, dword [ebp + 0x10]
mov ecx, esi
call dword [eax + 0x10]
test al, al
je 0x101fda5
mov eax, dword [esi]
push 1
push 0xc000c358
mov dword [ebp + 0x10], eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push 0
push 0x1002328
push dword [ebp - 0x20]
call edi
push eax
mov eax, dword [ebp + 0x10]
mov ecx, esi
call dword [eax + 0x10]
test al, al
je 0x101fda5
mov eax, dword [esi]
push 1
push 0xc000c42c
mov dword [ebp + 0x10], eax
lea eax, [ebp - 0x18]
push eax
push ebx
push 0
push 0x1004254
push dword [ebp - 0x1c]
call edi
push eax
mov eax, dword [ebp + 0x10]
mov ecx, esi
call dword [eax + 0x10]
test al, al
je 0x101fda5
mov eax, dword [esi]
push 1
push 0xc000c42c
mov dword [ebp + 0x10], eax
lea eax, [ebp - 0x14]
push eax
push ebx
push 0
push dword [ebp + 8]
push dword [ebp - 0x18]
call edi
push eax
mov eax, dword [ebp + 0x10]
mov ecx, esi
call dword [eax + 0x10]
test al, al
je 0x101fda5
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
je 0x101fda1
test eax, eax
mov byte [ebp - 0xd], 0
jne 0x101fda5
mov byte [ebp - 0xd], 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
call fcn.010106e6
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.010106e6
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.010106e6
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.010106e6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.010106e6
mov al, byte [ebp - 0xd]
call fcn.010260d9
ret
Function at 0x101fdef
Capabilities:
Delete registry key

Disassembly:
push 0x14
mov eax, 0x1030e0b
call fcn.01025fed
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], 2
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 3
mov esi, dword [ebp + 0xc]
mov edi, dword [esi]
push ebx
push 0xc000c356
lea eax, [ebp - 0x20]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
push ebx
mov byte [ebp - 0xd], bl
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
push eax
mov ecx, esi
call dword [edi + 0x10]
test al, al
je 0x101fee3
mov eax, dword [esi]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push ebx
push 0xc000c357
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push ebx
push 0x1002314
push dword [ebp - 0x20]
call edi
push eax
mov eax, dword [ebp + 0xc]
mov ecx, esi
call dword [eax + 0x10]
test al, al
je 0x101fee3
mov eax, dword [esi]
push ebx
push 0xc000c358
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x18]
push eax
push 0x20019
push ebx
push 0x1002328
push dword [ebp - 0x1c]
call edi
push eax
mov eax, dword [ebp + 0xc]
mov ecx, esi
call dword [eax + 0x10]
test al, al
je 0x101fee3
mov eax, dword [esi]
push ebx
push 0xc000c42c
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x14]
push eax
push 0x20019
push ebx
push 0x1004254
push dword [ebp - 0x18]
call edi
push eax
mov eax, dword [ebp + 0xc]
mov ecx, esi
call dword [eax + 0x10]
test al, al
je 0x101fee3
push dword [ebp + 8]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
neg eax
sbb al, al
inc al
mov byte [ebp - 0xd], al
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.010106e6
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.010106e6
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1c]
call fcn.010106e6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.010106e6
mov al, byte [ebp - 0xd]
call fcn.010260d9
ret
Function at 0x10200fd
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x1030ec4
call fcn.01025fed
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov byte [ebp - 4], 1
mov esi, dword [ebp + 0x18]
mov edi, dword [esi]
push 1
push 0xc000c356
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x20], 4
push dword [ebp + 8]
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
push eax
mov ecx, esi
call dword [edi + 0x10]
test al, al
je 0x102020a
mov edi, dword [esi]
push 1
push 0xc000c357
lea eax, [ebp - 0x10]
push eax
push 0x20019
push ebx
push dword [ebp + 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
mov ecx, esi
call dword [edi + 0x10]
test al, al
je 0x102020a
lea ecx, [ebp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
mov byte [ebp - 4], 2
lea eax, [ebp - 0x1c]
push 0xc000c42d
push eax
call fcn.0100ba1d
mov byte [ebp - 4], 3
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [eax]
lea eax, [ebp + 0x18]
push 0x100428c
push eax
call dword [sym.imp.MFC80U.DLL_Ordinal_2311]
add esp, 0x1c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push dword [ebp + 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp edi, ebx
je 0x10201fd
push 1
push ecx
lea eax, [ebp + 0x18]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call dword [sym.imp.MFC80U.DLL_Ordinal_280]
mov byte [ebp - 4], 4
mov eax, dword [esi]
push edi
mov byte [ebp - 4], 2
mov ecx, esi
call dword [eax + 0x14]
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov esi, dword [ebp - 0x18]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x10]
call fcn.010106e6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.010106e6
mov eax, esi
call fcn.010260d9
ret