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

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, 0x80000000
jne 0x100095cd
and dword [ebp - 4], 0
push 2
push str.SoftwareMicrosoftWindowsCurrentVersionShell_ExtensionsApproved
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 4]
call fcn.10009c91
test eax, eax
jne 0x100095be
push str.B30370BA_F8EA_485F_9C31_B51603CBEF61
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp dword [ebp - 4], 0
je 0x100095cd
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0
push 0x100a2b98
call fcn.1000b497
leave
ret

Function at 0x10009837
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap force flags

Disassembly:
mov eax, 0x1007af19
call fcn.1000e83c
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
and dword [esi + 0xc], 0
mov dword [esi + 4], 0x1007ec24
lea ecx, [esi + 0x10]
mov dword [esi + 8], 0x1007ec0c
call fcn.100072d6
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.10002d40
lea edi, [esi + 0x30]
mov byte [ebp - 4], 1
mov ecx, edi
call fcn.10007f19
lea ecx, [esi + 0x138]
mov byte [ebp - 4], 2
call fcn.1002c7e0
push 0x104
lea eax, [esi + 0x34]
push 0
push eax
call fcn.1000eaf0
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov dword [edi], esi
mov dword [esi + 0x14], esi
mov dword [esi + 0x1c], esi
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x10009bc5
Capabilities:
Get process heap force flags

Disassembly:
mov eax, 0x1007af59
call fcn.1000e83c
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x138]
mov dword [ebp - 4], 2
call fcn.1002c7f0
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 1
call fcn.10007f1f
and byte [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.10002d72
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0x10]
call fcn.100072ff
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x1000a092
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ebx
jne 0x1000a0ac
xor esi, esi
jmp 0x1000a0da
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.1000ea60
mov esi, esp
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push dword [ebp + 8]
mov byte [esi], bl
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 4], edi
jne 0x1000a115
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x1000a10e
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x1000a1aa
xor esi, esi
jmp 0x1000a1aa
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
jne 0x1000a138
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jne 0x1000a14b
xor esi, esi
jmp 0x1000a1a1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
cmp edi, ebx
mov dword [ebp + 8], edi
jne 0x1000a15d
jmp 0x1000a128
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x1000a1a1
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov eax, dword [ebp + 8]
cmp byte [esi + eax], bl
je 0x1000a193
lea eax, [esi + 1]
add eax, 3
and al, 0xfc
call fcn.1000ea60
lea eax, [esi + 1]
mov edi, esp
push eax
push dword [ebp + 8]
push edi
call fcn.1000eb50
add esp, 0xc
mov byte [edi + esi], bl
push dword [ebp + 0x14]
lea ecx, [ebp - 0xc]
push edi
call fcn.1000a211
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea esp, [ebp - 0x18]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x1000abe2
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x1007afe8
call fcn.1000e83c
sub esp, 0x114
push ebx
push esi
xor esi, esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esi
push 0x2001f
lea ecx, [ebp - 0x10]
push dword [ebp + 8]
mov dword [ebp - 4], esi
push dword [ebx]
call fcn.10009c91
mov edi, eax
cmp edi, esi
je 0x1000ac2c
cmp dword [ebp - 0x10], esi
je 0x1000ac25
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x1000acc9
lea eax, [ebp - 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x120]
mov dword [ebp - 0x14], pe_nt_image_headers32
push eax
push esi
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x1000ac9d
lea eax, [ebp - 0x120]
lea ecx, [ebp - 0x10]
push eax
call fcn.1000abe2
cmp eax, esi
mov dword [ebp - 0x18], eax
jne 0x1000ac8a
lea eax, [ebp - 0x20]
mov dword [ebp - 0x14], pe_nt_image_headers32
push eax
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x120]
push eax
push esi
push dword [ebp - 0x10]
jmp 0x1000ac4f
cmp dword [ebp - 0x10], esi
je 0x1000ac98
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
jmp 0x1000acc9
cmp dword [ebp - 0x10], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x1000acb0
push dword [ebp - 0x10]
call edi
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp dword [ebp - 0x10], esi
mov ebx, eax
je 0x1000acc7
push dword [ebp - 0x10]
call edi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x1000acda
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2014
call fcn.1000ea60
push ebx
push esi
lea eax, [ebp - 0x2014]
push edi
mov esi, ecx
push eax
mov dword [ebp - 0x14], esi
call fcn.1000a36a
xor edi, edi
cmp eax, edi
jl 0x1000ae92
lea eax, [ebp - 0xa]
push eax
lea eax, [ebp - 0x2014]
push eax
call fcn.1000ae9f
pop ecx
test eax, eax
pop ecx
jne 0x1000ad25
mov eax, 0x80020009
jmp 0x1000ae92
mov ecx, esi
call fcn.1000a342
lea eax, [ebp - 0x1014]
mov ecx, esi
push eax
call fcn.1000a36a
cmp eax, edi
jl 0x1000ae92
movzx eax, word [ebp - 0xa]
sub eax, 8
je 0x1000ae5a
sub eax, 9
je 0x1000adbf
dec eax
dec eax
jne 0x1000ae81
lea eax, [ebp - 0x1014]
test eax, eax
jne 0x1000ad6a
xor ebx, ebx
jmp 0x1000ad9f
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.1000ea60
mov ebx, esp
push esi
push ebx
lea eax, [ebp - 0x1014]
push 0xffffffffffffffff
push eax
push edi
push edi
mov word [ebx], di
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push ebx
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp - 0x10]
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 4
jmp 0x1000ae72
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test al, 1
mov dword [ebp - 8], eax
jne 0x1000adfb
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
mov eax, ebx
add eax, 3
and al, 0xfc
call fcn.1000ea60
mov dword [ebp - 4], esp
push ebx
push edi
push dword [ebp - 4]
call fcn.1000eaf0
add esp, 0xc
cmp dword [ebp - 4], edi
jne 0x1000ae05
mov eax, 0x80004005
jmp 0x1000ae92
cmp dword [ebp - 8], 0
jle 0x1000ae3f
mov ecx, dword [ebp - 4]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ecx]
mov al, byte [ebp + edi - 0x1014]
push eax
call fcn.1000af26
pop ecx
mov ecx, edi
push 4
and ecx, 1
shl ecx, 2
mov edx, ecx
pop ecx
sub ecx, edx
shl al, cl
or byte [esi], al
inc edi
cmp edi, dword [ebp - 8]
jl 0x1000ae0b
mov eax, dword [ebp + 8]
push ebx
push dword [ebp - 4]
mov eax, dword [eax]
push 3
push 0
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor edi, edi
jmp 0x1000ae81
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x1014]
push eax
push 1
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
call fcn.1000a36a
cmp eax, edi
jl 0x1000ae92
xor eax, eax
lea esp, [ebp - 0x2020]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1000d310
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push edi
xor edi, edi
cmp dword [0x100a2e8c], edi
jne 0x1000d46b
push 1
pop ebx
push dword [esp + 0xc]
mov dword [0x100a2e8c], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, edi
mov dword [0x100a2e94], eax
je 0x1000d46b
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.InstallDriver
push eax
call esi
push str.UninstallDriver
mov dword [0x100a2e98], eax
push dword [0x100a2e94]
call esi
push str.MtoVolume
mov dword [0x100a2e9c], eax
push dword [0x100a2e94]
call esi
push str.MtoVolumeEx
mov dword [0x100a2ea0], eax
push dword [0x100a2e94]
call esi
push str.UMtoVolume
mov dword [0x100a2ea4], eax
push dword [0x100a2e94]
call esi
push str.UMtoVolumeEx
mov dword [0x100a2ea8], eax
push dword [0x100a2e94]
call esi
push str.GetRealDeviceName
mov dword [0x100a2eac], eax
push dword [0x100a2e94]
call esi
push str.TSDInstall
mov dword [0x100a2eb0], eax
push dword [0x100a2e94]
call esi
push str.TSDUninstall
mov dword [0x100a2eb4], eax
push dword [0x100a2e94]
call esi
push str.TSDMount
mov dword [0x100a2eb8], eax
push dword [0x100a2e94]
call esi
push str.TSDUnmount
mov dword [0x100a2ebc], eax
push dword [0x100a2e94]
call esi
push str.TSDGetRealDeviceName
mov dword [0x100a2ec0], eax
push dword [0x100a2e94]
call esi
push str.TSDChangePw
mov dword [0x100a2ec4], eax
push dword [0x100a2e94]
call esi
cmp dword [0x100a2e98], edi
mov dword [0x100a2ec8], eax
pop esi
je 0x1000d46b
cmp dword [0x100a2e9c], edi
je 0x1000d46b
cmp dword [0x100a2ea0], edi
je 0x1000d46b
cmp dword [0x100a2ea4], edi
je 0x1000d46b
cmp dword [0x100a2ea8], edi
je 0x1000d46b
cmp dword [0x100a2eac], edi
je 0x1000d46b
cmp dword [0x100a2eb0], edi
je 0x1000d46b
mov dword [0x100a2e90], ebx
mov eax, dword [0x100a2e90]
pop edi
pop ebx
ret

Function at 0x10023fc0
Capabilities:
Extract resource via kernel32 functions
Print debug messages

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push ebx
push ebp
mov ebp, eax
push esi
mov esi, dword [esp + 0x10]
and ebp, 0xf
shr eax, 4
inc eax
push edi
and eax, 0xffff
push ecx
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
test eax, eax
je 0x10024019
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x10024019
xor edi, edi
xor ebx, ebx
mov bx, word [esi]
add esi, 2
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp ebp, edi
je 0x10024020
inc edi
lea esi, [esi + ebx*2]
cmp edi, 0x10
jl 0x10023ffd
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
mov edx, ecx
xor eax, eax
mov edi, ebp
push 0
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
mov eax, edx
dec eax
push eax
push ebp
push ebx
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x1002401b
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
pop edi
dec ecx
pop esi
pop ebp
mov eax, ecx
pop ebx
ret
Function at 0x10029af0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
push edi
mov esi, dword [esp + 0xc]
mov edi, eax
shr eax, 4
and edi, 0xf
inc eax
and eax, 0xffff
push ecx
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
test eax, eax
je 0x10029b40
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x10029b40
xor ecx, ecx
xor eax, eax
mov ax, word [esi]
add esi, 2
cmp edi, ecx
je 0x10029b45
inc ecx
lea esi, [esi + eax*2]
cmp ecx, 0x10
jl 0x10029b2b
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x1c]
lea ecx, [edx - 1]
cmp eax, ecx
jle 0x10029b52
mov eax, ecx
lea edx, [eax + eax]
push ebx
mov ebx, dword [esp + 0x1c]
mov ecx, edx
push ebp
mov ebp, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
pop ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov word [edx + ebx], 0
pop ebx
pop edi
pop esi
ret

Function at 0x10034720
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov eax, dword [ecx + 4]
push ebx
push ebp
push esi
push edi
mov edi, dword [ecx]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0
test ecx, ecx
je 0x10034761
lea edx, [esp + 0x14]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov eax, dword [esp + 0x14]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x10034763
mov esi, edi
test esi, esi
je 0x100347d8
mov ebx, dword [esp + 0x20]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x20]
push eax
push 0
push ecx
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x100347cd
mov ecx, dword [esp + 0x20]
mov eax, 4
cmp ecx, eax
jne 0x100347cd
cmp dword [esp + 0x1c], eax
jbe 0x1003479e
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x1c]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x100347cd
cmp esi, edi
je 0x100347bf
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
cmp esi, edi
je 0x100347d8
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc

Function at 0x100347f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [ecx]
push edi
test esi, esi
mov dword [esp + 0xc], 0
je 0x10034855
mov edi, dword [esp + 0x18]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push 0
push ecx
push 0
push edi
push esi
call ebx
test eax, eax
jne 0x10034855
mov ecx, dword [esp + 0x10]
mov eax, 4
cmp ecx, eax
jne 0x10034855
cmp dword [esp + 0x18], eax
jbe 0x1003483b
mov dword [esp + 0x18], eax
lea edx, [esp + 0x18]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push 0
push edi
push esi
call ebx
test eax, eax
mov eax, dword [esp + 0xc]
je 0x10034859
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
add esp, 8
ret 8
Function at 0x10034af0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x1007c27f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x100987c4]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 4]
mov edi, dword [ecx]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x28], 1
test ecx, ecx
mov dword [esp + 0x14], edi
je 0x10034b5b
lea edx, [esp + 0x18]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x10034b5d
mov esi, edi
test esi, esi
je 0x10034c27
mov ebx, dword [esp + 0x38]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x3c]
push 0
push ecx
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10034c1c
mov eax, dword [esp + 0x38]
cmp eax, 1
je 0x10034b9f
cmp eax, 2
je 0x10034b9f
cmp eax, 6
je 0x10034b9f
cmp eax, 7
jne 0x10034c1c
mov edx, dword [esp + 0x34]
add edx, 2
push edx
call fcn.1006e388
mov ebp, eax
mov eax, dword [esp + 0x38]
mov edi, ebp
add esp, 4
lea ecx, [eax + 2]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x34]
push eax
push ebp
push 0
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push ebp
jne 0x10034c02
lea ecx, [esp + 0x14]
call fcn.1006de40
cmp esi, dword [esp + 0x14]
je 0x10034bf7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.1006e3b1
add esp, 4
jmp 0x10034c39
call fcn.1006e3b1
add esp, 4
lea ecx, [esp + 0x10]
push 0x100a2a5c
call fcn.1006de40
mov edi, dword [esp + 0x14]
cmp esi, edi
je 0x10034c27
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x10034c39
push eax
lea ecx, [esp + 0x14]
call fcn.1006de40
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.1006da2c
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.1006dcb7
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
Function at 0x10034d80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
test eax, eax
je 0x10034db7
mov edx, dword [ebp + 0x14]
lea ecx, [ebp + 0xc]
or edx, 0x20019
push ecx
push edx
push 0
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov eax, dword [ebp + 0xc]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x10034dba
mov esi, dword [ebp + 8]
test esi, esi
je 0x10034f6b
call fcn.1003e210
test eax, eax
je 0x10034ea4
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x10034ddb
mov dword [ebp + 0x10], eax
jmp 0x10034e0e
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
lea eax, [edi + edi]
add eax, 3
and al, 0xfc
call fcn.1000ea60
mov ecx, dword [ebp + 0x10]
mov ebx, esp
push edi
push ebx
push 0xffffffffffffffff
push ecx
push 0
push 0
mov word [ebx], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp + 0x10], ebx
mov ecx, dword [ebp + 0x10]
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp + 0x14]
push 0
push eax
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10034f5f
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x10034e48
cmp eax, 2
je 0x10034e48
cmp eax, 6
je 0x10034e48
cmp eax, 7
jne 0x10034f5f
mov edx, dword [ebp + 0xc]
add edx, 2
push edx
call fcn.1006e388
mov ebx, eax
mov eax, dword [ebp + 0xc]
mov edi, ebx
add esp, 4
lea ecx, [eax + 2]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
push ebx
push 0
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
push ebx
jne 0x10034f4a
mov ecx, dword [ebp + 0x18]
call fcn.10025db0
cmp esi, dword [ebp + 8]
je 0x10034f34
jmp 0x10034f2d
mov ecx, dword [ebp + 0x10]
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp + 0x14]
push 0
push eax
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10034f5f
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x10034ede
cmp eax, 2
je 0x10034ede
cmp eax, 6
je 0x10034ede
cmp eax, 7
jne 0x10034f5f
mov edx, dword [ebp + 0xc]
add edx, 2
push edx
call fcn.1006e388
mov ebx, eax
mov eax, dword [ebp + 0xc]
mov edi, ebx
add esp, 4
lea ecx, [eax + 2]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
push ebx
push 0
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push ebx
jne 0x10034f4a
mov ecx, dword [ebp + 0x18]
call fcn.10025e80
cmp esi, dword [ebp + 8]
je 0x10034f34
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.1006e3b1
add esp, 4
mov eax, 1
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
call fcn.1006e3b1
mov ecx, dword [ebp + 0x18]
add esp, 4
push 0x100a2a5c
call fcn.10025e80
cmp esi, dword [ebp + 8]
je 0x10034f6b
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esp, [ebp - 0xc]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x100359b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1007c348
push eax
mov eax, dword [ebp + 0xc]
mov dword fs:[0], esp
push ebx
push esi
test eax, eax
push edi
je 0x10035a06
lea ecx, [ebp + 0x14]
lea edx, [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 0x14]
push edx
mov edx, dword [ebp + 8]
or ecx, 0x20006
push 0
push ecx
push 0
push 0
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
mov eax, dword [ebp + 0xc]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x10035a09
mov esi, dword [ebp + 8]
test esi, esi
je 0x10035aef
call fcn.1003e210
test eax, eax
je 0x10035a8a
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x10035a25
xor ebx, ebx
jmp 0x10035a55
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
lea eax, [edi + edi]
add eax, 3
and al, 0xfc
call fcn.1000ea60
mov eax, dword [ebp + 0x10]
mov ebx, esp
push edi
push ebx
push 0xffffffffffffffff
push eax
push 0
push 0
mov word [ebx], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, dword [ebp + 0x18]
push edi
call fcn.1000e8ea
add esp, 4
lea ecx, [eax + eax + 2]
push ecx
push edi
push 1
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x10035ae3
cmp esi, dword [ebp + 8]
je 0x10035a83
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x10035af1
mov edx, dword [ebp + 0x18]
lea ecx, [ebp + 0x18]
push edx
call fcn.1001f950
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax - 8]
inc ecx
push ecx
push eax
mov eax, dword [ebp + 0x10]
push 1
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x10035ad4
cmp esi, dword [ebp + 8]
je 0x10035abe
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.10020160
mov eax, 1
jmp 0x10035af1
lea ecx, [ebp + 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.10020160
cmp esi, dword [ebp + 8]
je 0x10035aef
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x18]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret