joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006d1c7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
test eax, eax
je 0x1006d22a
xor edi, edi
cmp word [eax], di
je 0x1006d22a
push edi
push 0x80
push 2
push edi
push edi
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1006d200
pop edi
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1006d21f
pop edi
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1006d22d
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret

Function at 0x1006d80f
Capabilities:
Create process on windows

Disassembly:
push 0x8c
mov eax, 0x10263e78
call fcn.10054407
mov eax, dword [ebp + 0xc]
xor esi, esi
mov ebx, dword [ebp + 8]
push 0x44
pop edi
push edi
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x98]
push esi
push eax
call fcn.100cd120
mov dword [ebp - 0x98], edi
xor eax, eax
lea edi, [ebp - 0x54]
mov dword [ebp - 0x18], esi
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
push 7
pop ecx
mov dword [ebp - 0x14], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov word [ebp - 0x28], ax
mov dword [ebp - 4], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], ecx
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 1
test eax, eax
je 0x1006d8bd
push eax
lea ecx, [ebp - 0x40]
call fcn.100034a0
cmp dword [ebp - 0x30], esi
je 0x1006d8bd
push 0x102df244
lea ecx, [ebp - 0x28]
call fcn.100034a0
push ebx
lea ecx, [ebp - 0x28]
call fcn.10007ee0
push 0x1026ed24
lea ecx, [ebp - 0x28]
call fcn.10007ee0
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
push eax
call fcn.100088e0
jmp 0x1006d8c6
push ebx
lea ecx, [ebp - 0x28]
call fcn.100034a0
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x98]
push ecx
push esi
push esi
push esi
push 1
push esi
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1006d8f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1006d925
cmp byte [ebp + 0x10], 0
je 0x1006d912
or eax, 0xffffffff
cmp dword [ebp + 0x14], 0
cmovg eax, dword [ebp + 0x14]
push eax
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x54]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x50]
call esi
xor esi, esi
inc esi
lea ecx, [ebp - 0x40]
call fcn.100042b0
lea ecx, [ebp - 0x28]
call fcn.100042b0
mov eax, esi
call fcn.100543b1
ret
Function at 0x1006deb9
Capabilities:
Get disk information
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
mov eax, dword [0x102fb070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x102de6e0
mov dword [ebp - 0x440], eax
call fcn.100034a0
push 0x20a
xor ebx, ebx
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.100cd120
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x105
push eax
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x1006df5d
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov edi, eax
test edi, edi
je 0x1006df5d
xor ecx, ecx
lea esi, [edi + 1]
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10006a30
mov ebx, eax
xor eax, eax
push esi
push eax
push ebx
call fcn.100cd120
add esp, 0x10
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
jne 0x1006df6e
push ebx
call fcn.1005402b
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10053a94
leave
ret
mov eax, dword [0x1026ed1c]
mov dword [ebp - 0xc], eax
mov ax, word [0x1026ed20]
push 0x208
mov word [ebp - 8], ax
call fcn.10006a30
mov edi, eax
mov dword [ebp - 0x43c], ebx
movzx eax, word [ebx]
pop ecx
push 0x104
mov word [ebp - 0xc], ax
lea eax, [ebp - 0xc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x1006dfe3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1006e082
push edi
call fcn.1005402b
push 2
call fcn.10006a30
pop ecx
pop ecx
mov edi, eax
lea eax, [ebp - 0xc]
push 1
push edi
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x1006e082
mov esi, edi
xor edx, edx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, dx
jne 0x1006dfea
sub esi, ecx
lea eax, [ebp - 0x218]
sar esi, 1
push esi
push edi
push eax
call fcn.100f02b6
add esp, 0xc
test eax, eax
je 0x1006e032
mov esi, dword [ebp - 0x43c]
movzx eax, word [esi]
add esi, 2
test ax, ax
jne 0x1006e014
movzx eax, word [esi]
mov dword [ebp - 0x43c], esi
test ax, ax
je 0x1006e082
jmp 0x1006df96
lea eax, [ebp - 0x218]
lea eax, [eax + esi*2]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x102ddf28
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.1005d7a2
add esp, 0x14
lea eax, [ebp - 0x420]
lea ecx, [ebp - 0x438]
push eax
call fcn.100067f0
mov ecx, dword [ebp - 0x440]
push eax
call fcn.10005380
lea ecx, [ebp - 0x438]
call fcn.100042b0
push ebx
call fcn.1005402b
push edi
call fcn.1005402b
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x1006df5f
Function at 0x1006e098
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x102fb070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x1006e11e
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
call fcn.100cd120
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x1006e11e
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x1006e113
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.100f075f
pop ecx
pop ecx
test eax, eax
je 0x1006e12e
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1006e0f3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10053a94
leave
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x228]
jmp 0x1006e120

Function at 0x1006e470
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x102fb070]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x110
xor edi, edi
lea eax, [ebp - 0x114]
push edi
push eax
call fcn.100cd120
add esp, 0xc
mov dword [ebp - 0x120], edi
lea eax, [ebp - 0x118]
mov dword [ebp - 0x128], edi
mov dword [ebp - 0x11c], edi
mov dword [ebp - 0x124], 4
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1006e5ca
cmp dword [ebp - 0x114], 5
jbe 0x1006e5ca
lea eax, [ebp - 0x11c]
push eax
push 0x20119
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem_
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [ebp - 0x11c]
test eax, eax
je 0x1006e5ca
cmp dword [ebp - 0x114], 6
jb 0x1006e58e
jne 0x1006e522
cmp dword [ebp - 0x110], 2
jb 0x1006e58e
lea ecx, [ebp - 0x124]
push ecx
lea ecx, [ebp - 0x120]
push ecx
lea ecx, [ebp - 0x12c]
push ecx
push edi
push str.ConsentPromptBehaviorAdmin
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x12c]
push eax
push edi
push str.PromptOnSecureDesktop
push dword [ebp - 0x11c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x11c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x120], edi
jne 0x1006e587
cmp dword [ebp - 0x128], edi
je 0x1006e58a
xor edi, edi
inc edi
mov eax, edi
jmp 0x1006e5cc
lea ecx, [ebp - 0x124]
push ecx
lea ecx, [ebp - 0x120]
push ecx
lea ecx, [ebp - 0x12c]
push ecx
push edi
push str.EnableLUA
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x11c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp eax, dword [ebp - 0x120]
sbb eax, eax
neg eax
jmp 0x1006e5cc
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.10053a94
leave
ret
Function at 0x1006e81a
Capabilities:
Terminate process

Disassembly:
push 0x20
mov eax, 0x10261daf
call fcn.10054407
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
push eax
push 0
push 0x411
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x1006e8a5
cmp esi, 0xffffffff
je 0x1006e8a5
and dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
and dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.1006deb9
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push edi
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.1006e6a3
add esp, 0x10
lea ecx, [ebp - 0x28]
mov bl, al
call fcn.100042b0
test bl, bl
je 0x1006e8a5
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x1006e8a5
cmp byte [ebp + 0x14], 0
je 0x1006e8a5
push 0x2710
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
and dword [ebp - 0x2c], 0
test esi, esi
je 0x1006e8c3
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x1006e8c3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
call fcn.100543b1
ret

Function at 0x1006e8ff
Capabilities:
Check if file exists
Enumerate processes
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x102fb070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1006e9aa
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x1006e9aa
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x1006e9aa
push edi
xor edi, edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push ebx
push eax
push dword [ebp - 0x228]
call fcn.1006e81a
add esp, 0x10
test al, al
je 0x1006e972
inc edi
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1006e954
test edi, edi
jle 0x1006e9a5
push str.Shell_TrayWnd
push eax
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, dword [sym.imp.USER32.dll_UpdateWindow]
push eax
call esi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call esi
mov eax, edi
pop edi
jmp 0x1006e9ad
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10053a94
leave
ret

Function at 0x1006ea91
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.100cd120
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
cmp dword [ebp + 8], 0
mov ecx, str.runas
mov eax, str.open
mov dword [ebp - 0x20], 1
cmove eax, ecx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
leave
ret
Function at 0x1006ec3c
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x102fb070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x118
xor ebx, ebx
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x11c]
push ebx
push eax
call fcn.100cd120
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.1006ebf1
mov eax, dword [ebp - 0x11c]
add esp, 0xc
cmp eax, 5
jne 0x1006ecbb
cmp dword [ebp - 0x118], ebx
jbe 0x1006ed01
cmp dword [ebp - 0x118], 1
setne bl
inc ebx
jmp 0x1006ed01
cmp eax, 6
jne 0x1006ece6
cmp byte [ebp - 6], 1
jne 0x1006ece1
mov eax, dword [ebp - 0x118]
sub eax, ebx
je 0x1006ecdd
sub eax, 1
je 0x1006ecd9
push 7
jmp 0x1006ece3
push 5
jmp 0x1006ece3
push 3
jmp 0x1006ece3
push 4
pop ebx
jmp 0x1006ed01
push 0xa
pop ecx
cmp eax, ecx
jne 0x1006ecfe
cmp dword [ebp - 0x114], 0x55f0
sbb ebx, ebx
add ebx, 9
jmp 0x1006ed01
cmova ebx, ecx
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.10053a94
leave
ret

Function at 0x1006f1bc
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x102fb070]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x118
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.100cd120
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 5
jg 0x1006f21f
cmp dword [ebp - 0x118], 2
jg 0x1006f21f
mov al, 1
jmp 0x1006f221
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10053a94
leave
ret

Function at 0x1006f35f
Capabilities:
Create thread

Disassembly:
cmp dword [0x10308254], 0
jne 0x1006f39d
push esi
mov ecx, 0x10308288
call fcn.1006f635
xor esi, esi
push esi
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push esi
push esi
push esi
push 0x1006f22d
push esi
push esi
mov dword [0x10308250], eax
call fcn.100fbc7f
add esp, 0x18
mov dword [0x10308254], eax
pop esi
ret
Function at 0x10070430
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push 0x430
mov eax, 0x10264246
call fcn.10054407
mov ebx, dword [ebp + 8]
xor ecx, ecx
mov edi, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x430], ebx
mov esi, ecx
mov dword [ebp - 0x434], edi
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x418], ecx
mov dword [ebp - 0x414], 7
mov word [ebp - 0x428], ax
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x428]
push str.SOFTWAREWow6432NodeMicrosoftWindowsCurrentVersionUninstall_
call fcn.10007ee0
push ebx
lea ecx, [ebp - 0x428]
call fcn.10007ee0
cmp dword [ebp - 0x414], 8
lea ecx, [ebp - 0x42c]
push ecx
push 0x109
lea eax, [ebp - 0x428]
cmovae eax, dword [ebp - 0x428]
push esi
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x1007054a
push 0x400
lea eax, [ebp - 0x410]
push esi
push eax
call fcn.100cd120
add esp, 0xc
mov dword [ebp - 0x438], 0x200
lea eax, [ebp - 0x438]
mov dword [ebp - 0x43c], 1
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x43c]
push eax
push esi
push str.UninstallString
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10070531
lea eax, [ebp - 0x410]
push eax
call ebx
test eax, eax
push 1
pop eax
cmovne esi, eax
cmp dword [ebp - 0x42c], 0
je 0x10070542
push dword [ebp - 0x42c]
call edi
test esi, esi
jne 0x10070634
and dword [ebp - 0x418], 0
lea eax, [ebp - 0x428]
cmp dword [ebp - 0x414], 8
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
cmovae eax, dword [ebp - 0x428]
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x428]
call fcn.10007ee0
push dword [ebp - 0x430]
lea ecx, [ebp - 0x428]
call fcn.10007ee0
cmp dword [ebp - 0x414], 8
lea ecx, [ebp - 0x42c]
push ecx
push 0x109
lea eax, [ebp - 0x428]
cmovae eax, dword [ebp - 0x428]
push 0
push eax
push dword [ebp - 0x434]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10070634
push 0x400
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.100cd120
add esp, 0xc
mov dword [ebp - 0x434], 0x200
xor eax, eax
inc eax
mov dword [ebp - 0x430], eax
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x430]
push eax
push 0
push str.UninstallString
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10070623
lea eax, [ebp - 0x410]
push eax
call ebx
test eax, eax
push 1
pop eax
cmovne esi, eax
cmp dword [ebp - 0x42c], 0
je 0x10070634
push dword [ebp - 0x42c]
call edi
lea ecx, [ebp - 0x428]
call fcn.100042b0
mov eax, esi
call fcn.100543b1
ret
Function at 0x10070aca
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x102fb070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x10070b5d
push 0x228
xor esi, esi
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x22c]
push esi
push eax
call fcn.100cd120
add esp, 0xc
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x10070b5d
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x10070b46
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.1005ba5d
pop ecx
pop ecx
test al, al
jne 0x10070b4c
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x10070b26
jmp 0x10070b52
mov esi, dword [ebp - 0x228]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x10070b5f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10053a94
leave
ret
Function at 0x1007393b
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
cmp byte [ebp + 0x10], 0
je 0x10073951
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10073e9c
pop ecx
pop ecx
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x10073973
cmp esi, 2
je 0x10073973
xor al, al
jmp 0x10073975
mov al, 1
pop esi
pop ebp
ret

Function at 0x10073b02
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10264893
mov eax, dword fs:[0]
push eax
mov eax, 0x8034
call fcn.10054ed0
mov eax, dword [0x102fb070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x802c]
mov ecx, dword [ebp + 8]
xor edi, edi
mov ebx, dword [ebp + 0x10]
push edx
push 0x20119
push edi
push eax
push ecx
mov dword [ebp - 0x802c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10073c56
push 0x7ffe
lea eax, [ebp - 0x8010]
mov dword [ebp - 0x8030], 0x3fff
push edi
push eax
call fcn.100cd120
add esp, 0xc
lea eax, [ebp - 0x8038]
mov esi, edi
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x8030]
push eax
lea eax, [ebp - 0x8010]
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x10073c32
cmp dword [ebp - 0x8030], 0
jbe 0x10073c0c
and dword [ebp - 0x8018], 0
lea ecx, [ebp - 0x8028]
xor eax, eax
mov dword [ebp - 0x8014], 7
mov word [ebp - 0x8028], ax
lea eax, [ebp - 0x8010]
push eax
call fcn.100034a0
push dword [ebp - 0x802c]
and dword [ebp - 4], 0
lea eax, [ebp - 0x8028]
push eax
push 0
lea eax, [ebp - 0x8040]
mov ecx, ebx
push eax
call fcn.1007382e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8028]
call fcn.100042b0
lea eax, [ebp - 0x8038]
mov dword [ebp - 0x8030], 0x3fff
push eax
inc esi
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x8030]
push eax
lea eax, [ebp - 0x8010]
push eax
push esi
push dword [ebp - 0x802c]
call edi
test eax, eax
je 0x10073ba7
push dword [ebp - 0x802c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg eax
sbb al, al
inc al
jmp 0x10073c58
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10053a94
leave
ret
Function at 0x10073d16
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x102648d4
call fcn.100543d3
and dword [ebp - 0x20], 0
xor eax, eax
mov ebx, dword [ebp + 8]
and dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 7
mov word [ebx], ax
and dword [ebp - 4], eax
push 0x208
mov dword [ebp - 0x20], 1
call fcn.10006a30
mov edx, eax
xor eax, eax
pop ecx
mov ecx, 0x82
mov dword [ebp - 0x14], edx
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, 0x20019
mov dword [ebp - 0x1c], edi
lea eax, [ebp - 0x18]
push eax
push edi
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x10073e1c
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x104
push eax
xor eax, eax
push eax
push eax
push eax
push dword [ebp + 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x10073e13
cmp dword [ebp - 0x10], 0x104
jbe 0x10073de4
push dword [ebp - 0x14]
call fcn.1005402b
mov eax, dword [ebp - 0x10]
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10006a30
mov edi, eax
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x14], edi
push eax
push esi
push edi
call fcn.10020e40
add esp, 0x14
jmp 0x10073de7
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
push edi
push 0
push 0
push dword [ebp + 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
mov ecx, ebx
mov esi, eax
push edi
call fcn.10006680
push edi
call fcn.1005402b
mov edi, dword [ebp - 0x1c]
pop ecx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
pop eax
cmp esi, eax
jne 0x10073e3e
cmp dword [ebp + 0xc], reloc.OLEAUT32.dll_SysReAllocString
jne 0x10073e3e
cmp edi, 0x20019
jne 0x10073e3e
mov edi, 0x20119
jmp 0x10073d63
mov eax, ebx
call fcn.1005439c
ret

Function at 0x10073f5f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x10073f85
mov ecx, edx
push esi
push edi
xor edi, edi
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x10073f72
sub ecx, esi
pop edi
sar ecx, 1
pop esi
jmp 0x10073f87
xor ecx, ecx
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
neg eax
sbb al, al
inc al
pop ebp
ret