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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x432120]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor ebx, ebx
push str.kernel32.dll
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], ebx
xor esi, esi
call edi
push str.GetUserDefaultUILanguage
push eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x420ef2
call eax
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ebx, 0x3ff
mov edi, 0xfc00
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ecx, cx
and eax, edi
or eax, ecx
push eax
mov dword [ebp - 0x1c], ecx
call esi
push dword [ebp - 0x1c]
mov dword [ebp - 0x3c], eax
call esi
push str.GetSystemDefaultUILanguage
push dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ebx, cx
and eax, edi
or eax, ebx
push eax
call esi
push ebx
mov dword [ebp - 0x34], eax
call esi
mov dword [ebp - 0x30], eax
push 4
xor ebx, ebx
jmp 0x420ff4
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x420fa2
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push ebx
push str.Control_PanelDesktopResourceLocale
push SysReAllocStringLen
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x420ff5
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x420f97
cmp dword [ebp - 0x24], 1
jne 0x420f97
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push 0x426c2c
push eax
call fcn.0040cca0
add esp, 0xc
cmp eax, 1
jne 0x420f97
mov eax, dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
push 2
mov dword [ebp - 0x38], eax
pop esi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x420ff5
push str.ntdll.dll
call edi
cmp eax, ebx
je 0x420ff5
lea ecx, [ebp - 0x18]
push ecx
push 0x420e3a
push 1
push 0x10
push eax
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesA]
cmp word [ebp - 0x18], bx
je 0x420ff5
movzx eax, word [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
mov dword [ebp - 0x38], eax
push 2
pop esi
mov dword [ebp + esi*4 - 0x3c], 0x800
inc esi
xor edi, edi
cmp esi, ebx
jle 0x42101b
push dword [ebp + edi*4 - 0x3c]
push dword [ebp + 8]
call fcn.00420dbb
cmp eax, ebx
pop ecx
pop ecx
jne 0x42101d
inc edi
cmp edi, esi
jl 0x421004
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0040bbfe
leave
ret 4
Function at 0x42102c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor edi, edi
mov dword [ecx + 0x9c], edi
cmp dword [str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
mov ebx, 0x4312e8
je 0x4210e8
push esi
lea eax, [ebp - 4]
push eax
push 1
push edi
push dword [ebx]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4210d0
mov esi, dword [ebx + 4]
jmp 0x4210ca
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4210ba
cmp dword [ebp - 0xc], 4
jne 0x4210ba
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
je 0x4210b2
or dword [eax + 0x9c], ecx
jmp 0x4210ba
not ecx
and dword [eax + 0x9c], ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
add esi, 8
mov eax, dword [esi]
cmp eax, edi
jne 0x42107e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 8
cmp dword [ebx], edi
mov dword [ebp - 4], edi
jne 0x421061
pop esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret

Function at 0x4214d5
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x424f73
call fcn.0040cbf0
sub esp, 0x11c
mov eax, dword [0x432120]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x124]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x4215ce
push 0x104
lea eax, [ebp - 0x11c]
push eax
push 0
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, eax
test esi, esi
jne 0x4215a2
and dword [ebp - 4], eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x120]
call fcn.00401fd5
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x124]
mov byte [ebp - 4], 1
call fcn.004214d5
mov ecx, dword [ebp - 0x120]
mov esi, eax
test esi, esi
setne bl
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.00401c2f
test bl, bl
jne 0x4215a2
or dword [ebp - 4], 0xffffffff
jmp 0x421513
cmp esi, 0x103
je 0x4215b2
cmp esi, 0x3f2
jne 0x4215c2
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
mov eax, esi
call fcn.0040bbfe
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x422824
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x422859
cmp edi, dword [esi + 0xc]
jge 0x422859
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x422859
cmp edi, dword [eax + 8]
jge 0x422859
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x42285b
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x42295f
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x422993
jmp fcn.004178ff
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x422a04
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x422afd
cmp eax, dword [edi + 0xc]
jge 0x422afd
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x422a55
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x422ae6
cmp dword [ebp + 0xc], ebx
je 0x422ae6
jmp 0x422a7f
push 0x10
call fcn.004226f0
cmp eax, ebx
je 0x422a6b
mov ecx, eax
call fcn.00422956
mov esi, eax
jmp 0x422a6d
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x422a96
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x422aa6
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x422ab8
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.004178ff
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.0040ced0
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x422af8
cmp ecx, dword [esi + 8]
jge 0x422af8
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x422afe
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x422bbd
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x422beb
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x422c09
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00422b27
jmp 0x422c09
mov eax, dword [esi + 0x14]
test eax, eax
je 0x422c09
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00422b27
test edi, edi
mov eax, edi
jne 0x422bf3
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x434e14]
test ecx, ecx
je 0x422cbc
jmp 0x422bbc
ret 8
Function at 0x100a1c3
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x101908c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x204
lea eax, [ebp - 0x208]
push ebx
push eax
mov edi, ecx
mov esi, edx
mov dword [ebp - 0x20c], ebx
call sub.msvcrt.dll_memset
add esp, 0xc
cmp edi, ebx
je 0x100a29e
cmp esi, ebx
je 0x100a29e
or dword [edi], 0xffffffff
push 0x104
lea eax, [ebp - 0x20c]
push eax
mov dword [esi], ebx
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x100a269
mov eax, dword [ebp - 0x20c]
cmp ax, 0x61
jb 0x100a23c
cmp ax, 0x7a
jbe 0x100a245
lea ecx, [eax - 0x41]
cmp cx, 0x19
ja 0x100a269
push 0x3a
pop ecx
cmp cx, word [ebp - 0x20a]
jne 0x100a269
push 0x5c
pop ecx
cmp cx, word [ebp - 0x208]
jne 0x100a269
push esi
push edi
push eax
call fcn.0100f221
test eax, eax
jne 0x100a29a
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
mov edi, 0xffff
mov esi, 0x80070000
test eax, eax
jle 0x100a285
and eax, edi
or eax, esi
test eax, eax
jge 0x100a293
call ebx
test eax, eax
jle 0x100a2a3
and eax, edi
or eax, esi
jmp 0x100a2a3
mov eax, 0x80004005
jmp 0x100a2a3
mov eax, ebx
jmp 0x100a2a3
mov eax, 0x80070057
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100d691
leave
ret
Function at 0x100d2d9
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x100d365
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x100d365
xor ecx, ecx
cmp cx, word [eax]
je 0x100d365
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push ebx
push ebx
stosd dword es:[edi], eax
push 1
push ebx
stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, eax
cmp esi, ebx
je 0x100d35e
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0x14]
push eax
push 0x100d246
push ebx
push ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x100d356
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 8]
call edi
cmp dword [ebp - 0xc], ebx
jne 0x100d35e
push esi
call edi
mov eax, dword [ebp - 0xc]
pop edi
pop esi
jmp 0x100d36f
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop ebx
leave
ret 8
Function at 0x100d682
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x10177b0
call fcn.0100d924
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x10195d4
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x100d43d
cmp eax, esi
jne 0x100d430
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x100d440
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100d417
xor esi, esi
inc esi
mov eax, dword [0x10195d0]
cmp eax, esi
jne 0x100d453
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x100d482
mov eax, dword [0x10195d0]
test eax, eax
jne 0x100d47c
mov dword [0x10195d0], esi
push 0x10012fc
push 0x10012f0
call fcn.0100d379
pop ecx
pop ecx
test eax, eax
je 0x100d482
jmp 0x100d5a6
mov dword [0x10191d0], esi
mov eax, dword [0x10195d0]
cmp eax, esi
jne 0x100d4a6
push 0x10012ec
push 0x10012d4
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x10195d0], 2
cmp dword [ebp - 0x20], ebx
jne 0x100d4b3
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x10195e0], ebx
je 0x100d4d4
push 0x10195e0
call fcn.0100d899
pop ecx
test eax, eax
je 0x100d4d4
push ebx
push 2
push ebx
call dword [0x10195e0]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x100d5a6
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x100d53e
cmp cx, bx
je 0x100d4f9
cmp dword [ebp - 0x1c], ebx
jne 0x100d53e
movzx ecx, word [eax]
cmp cx, bx
je 0x100d50e
cmp cx, 0x20
ja 0x100d50e
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x100d4f9
test byte [ebp - 0x40], 1
je 0x100d51a
movzx ecx, word [ebp - 0x3c]
jmp 0x100d51d
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x10191cc], eax
cmp dword [0x10191c0], ebx
jne 0x100d583
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x100d54f
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x100d4e3
cmp dword [0x10191d0], ebx
jne 0x100d591
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x10191cc]
jmp 0x100d5b2
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.0100d969
ret
call fcn.0100da71
jmp 0x100d3da
Function at 0x100dcc5
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x100dd5c
cmp dword [ebp + 0x18], esi
je 0x100dd5c
push edi
cmp dword [ebp + 0xc], esi
je 0x100dd33
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x20006
push esi
push 0x1004014
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
cmp edi, esi
jne 0x100dd4b
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100dd4b
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp edi, esi
sete al
pop edi
jmp 0x100dd66
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
leave
ret 0x18

Function at 0x100dd70
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp eax, edi
jne 0x100dd92
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
leave
ret 0xc
push esi
cmp dword [ebp + 0xc], edi
je 0x100ddc3
lea ecx, [ebp - 4]
push ecx
push 0x20019
push edi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100ddb5
cmp dword [ebp - 4], edi
jne 0x100ddc6
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop esi
jmp 0x100dd8d
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], edi
je 0x100dde4
push edi
push edi
push edi
push edi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
neg esi
sbb esi, esi
inc esi
jmp 0x100dde7
xor esi, esi
inc esi
cmp dword [ebp + 0xc], edi
je 0x100ddb7
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100ddb7
Function at 0x100ddfc
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push edi
xor edi, edi
cmp eax, edi
jne 0x100de17
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x100de89
push esi
cmp dword [ebp + 0x10], edi
je 0x100de64
cmp dword [ebp + 0xc], edi
je 0x100de58
lea ecx, [ebp + 8]
push ecx
push 0x20006
push edi
push dword [ebp + 0xc]
mov dword [ebp + 8], edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, edi
jne 0x100de7a
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100de7a
push dword [ebp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x100de73
cmp dword [ebp + 0xc], edi
je 0x100de77
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
jmp 0x100de7a
push 0x57
pop esi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp esi, edi
sete al
pop esi
pop edi
pop ebp
ret 0xc
Function at 0x100de94
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], edi
cmp eax, edi
jne 0x100dec1
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
leave
ret 0x10
cmp dword [ebp + 0xc], edi
je 0x100def3
lea ecx, [ebp - 0xc]
push ecx
push 0x20019
push edi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp + 8], eax
cmp eax, edi
jne 0x100dee6
cmp dword [ebp - 0xc], edi
jne 0x100def6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
jmp 0x100debc
mov dword [ebp - 0xc], eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp - 0xc]
call ebx
mov dword [ebp + 8], eax
cmp eax, edi
jne 0x100e047
cmp dword [ebp - 8], 1
je 0x100df32
cmp dword [ebp - 8], 2
je 0x100df32
mov dword [ebp + 8], 0xd
jmp 0x100e047
push esi
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 8
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 4], eax
cmp eax, edi
je 0x100e03d
lea ecx, [ebp - 0x10]
push ecx
push eax
push edi
push edi
push dword [ebp + 0x10]
push dword [ebp - 0xc]
call ebx
mov dword [ebp + 8], eax
cmp eax, edi
jne 0x100df7b
cmp dword [ebp - 8], 1
je 0x100df90
cmp dword [ebp - 8], 2
je 0x100df90
mov dword [ebp + 8], 0xd
push dword [ebp - 4]
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 4], edi
jmp 0x100e046
cmp dword [ebp + 0x14], 1
jne 0x100e046
cmp dword [ebp - 8], 2
jne 0x100e046
mov ebx, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push edi
push edi
push dword [ebp - 4]
call ebx
mov dword [ebp - 0x10], eax
cmp eax, edi
je 0x100e01e
add eax, eax
push eax
push 8
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp + 0x10], eax
cmp eax, edi
je 0x100dfef
push dword [ebp - 0x10]
push eax
push dword [ebp - 4]
call ebx
test eax, eax
je 0x100dfef
push dword [ebp - 4]
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
jmp 0x100e046
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 4]
mov dword [ebp + 8], eax
push edi
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
call ebx
cmp dword [ebp + 0x10], edi
je 0x100df88
push dword [ebp + 0x10]
push edi
call esi
push eax
call ebx
jmp 0x100df88
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 4]
mov dword [ebp + 8], eax
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
je 0x100e046
jmp 0x100df88
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
pop esi
pop ebx
cmp dword [ebp + 0xc], edi
je 0x100e056
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 4]
jmp 0x100dee6
Function at 0x100e081
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], 4
mov dword [ebp - 0x10], esi
cmp eax, esi
jne 0x100e0af
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x100e11c
cmp dword [ebp + 0xc], esi
je 0x100e0d4
lea ecx, [ebp - 4]
push ecx
push 0x20019
push esi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x100e0d1
cmp dword [ebp - 4], esi
jne 0x100e0d7
push eax
jmp 0x100e0a5
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp edi, esi
jne 0x100e100
cmp dword [ebp - 0xc], 4
je 0x100e103
push 0xd
pop edi
mov dword [ebp - 8], esi
cmp dword [ebp + 0xc], esi
je 0x100e111
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret 0xc