joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1070130
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x208
push ebx
push ebp
push esi
push edi
mov ebx, ecx
push eax
mov ecx, dword [esp + 0x220]
push 0
push 0
push ecx
push 0x1002268
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ebp, eax
cmp ebp, 0x20
jg 0x1070285
lea edx, [esp + 0x10]
mov ecx, ebx
push edx
push str..htm
push SysReAllocStringLen
call fcn.010702a0
test eax, eax
jne 0x1070285
mov edi, str._shellopencommand
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
push SysReAllocStringLen
mov ecx, ebx
call fcn.010702a0
test eax, eax
jne 0x1070285
lea edx, [esp + 0x10]
push str.__1_
push edx
call fcn.0104cf1c
mov edx, eax
add esp, 8
test edx, edx
jne 0x107020e
lea eax, [esp + 0x10]
push 0x10ac640
push eax
call fcn.0104cf1c
mov edx, eax
add esp, 8
test edx, edx
jne 0x107020e
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + eax + 0xf]
jmp 0x1070211
mov byte [edx], 0
mov edi, 0x1001cf8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x21c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0x220]
mov ecx, ebx
and ecx, 3
lea eax, [esp + 0x10]
push edx
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8

Function at 0x10702a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push edi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [esp + 0x120]
test eax, eax
mov byte [edi], 0
jne 0x107030d
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push edx
mov dword [esp + 0x1c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov esi, eax
test esi, esi
jne 0x107030b
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x1070670
Capabilities:
Check for peb ntglobalflag flag
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x109c3e3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.0108a5c3
xor ebp, ebp
mov dword [esp + 0x1c], ebp
mov dword [esi + 0x5c], ebp
mov eax, dword [0x10aa77c]
lea edi, [esi + 0x6c]
mov dword [edi], eax
lea ecx, [esi + 0x70]
mov byte [esp + 0x1c], 2
call fcn.0106e290
mov ecx, dword [0x10aa77c]
mov dword [esi + 0x108], ecx
mov edx, dword [0x10aa77c]
mov dword [esi + 0x10c], edx
lea ebx, [esi + 0x114]
mov byte [esp + 0x1c], 5
mov ecx, ebx
call fcn.0108aeff
mov dword [ebx], 0x1001b50
mov ebx, dword [esp + 0x24]
mov ecx, edi
push ebx
mov byte [esp + 0x20], 6
mov dword [esi], 0x100a140
mov dword [esi + 0x60], ebp
call fcn.0108e8b4
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x24]
push eax
mov eax, dword [esp + 0x2c]
push ecx
push ebp
push 0xf003f
push ebp
push ebp
push ebp
push edx
push eax
mov dword [esp + 0x48], ebp
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebp
jne 0x107077e
mov ecx, dword [esi + 0x5c]
xor eax, eax
cmp ecx, ebp
je 0x107073d
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi + 0x5c], ebp
mov ecx, dword [esp + 0x24]
cmp eax, ebp
mov dword [esi + 0x5c], ecx
jne 0x107077e
lea edx, [esp + 0x2c]
lea eax, [esp + 0x24]
push edx
mov edx, dword [esi + 0x5c]
lea ecx, [esp + 0x2c]
push eax
push ecx
push ebp
push ebx
push edx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x107077e
mov eax, dword [esp + 0x24]
mov dword [esi + 0x60], eax
mov eax, dword [esi + 0x60]
cmp eax, ebp
je 0x1070791
cmp eax, 2
je 0x1070791
mov eax, 1
jmp 0x1070793
xor eax, eax
mov byte [esi + 0x64], al
mov eax, dword [esp + 0x30]
mov ecx, eax
pop edi
shr ecx, 1
and ecx, 1
and eax, 1
mov dword [esi + 0x68], eax
mov dword [esi + 0x110], ecx
mov ecx, dword [esp + 0x10]
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x10
Function at 0x1070800
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x109c407
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
mov ebp, ecx
mov dword [esp + 4], 0
mov al, byte [ebp + 0x64]
test al, al
jne 0x1070963
mov eax, dword [ebp + 0x110]
push ebx
mov ebx, dword [esp + 0x1c]
test eax, eax
je 0x10708d6
push esi
lea esi, [ebp + 0x10c]
push edi
push ebx
mov ecx, esi
call fcn.0108e8b4
push 0x10ac964
push 0x1002590
mov ecx, esi
call fcn.01088bb0
lea edi, [ebp + 0x108]
push esi
mov ecx, edi
call fcn.0108e864
push str._br_
push 0x1002590
mov ecx, edi
call fcn.01088bb0
push 0x1002590
push str._br_
mov ecx, esi
call fcn.01088bb0
push 0x1002590
mov ecx, esi
call fcn.0108eb07
push 0x3c
mov ecx, esi
call fcn.0108ec19
mov edi, eax
test edi, edi
jl 0x10708d4
push edi
push 0x3e
mov ecx, esi
call fcn.0108ec27
cmp eax, edi
jle 0x10708c5
sub eax, edi
mov ecx, esi
inc eax
push eax
push edi
call fcn.01088aa3
push 0x3c
mov ecx, esi
call fcn.0108ec19
mov edi, eax
test edi, edi
jge 0x10708ab
pop edi
pop esi
push ebp
call fcn.0108b7d2
mov eax, dword [ebp + 0x110]
test eax, eax
je 0x10708ee
lea eax, [ebp + 0x10c]
jmp 0x1070908
push ebx
lea ecx, [esp + 0x20]
call fcn.0108e799
mov dword [esp + 8], 1
mov dword [esp + 0x14], 0
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov eax, dword [eax]
push ecx
push edx
push eax
call fcn.01091740
mov dword [ebp + 0x60], eax
mov al, byte [esp + 8]
test al, 1
mov dword [esp + 0x14], 0xffffffff
pop ebx
je 0x1070937
lea ecx, [esp + 0x18]
call fcn.0108e72b
mov al, byte [ebp + 0x64]
test al, al
mov eax, dword [ebp + 0x60]
je 0x1070966
cmp eax, 2
je 0x1070963
mov ecx, dword [ebp + 0x6c]
mov edx, dword [ebp + 0x5c]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push 4
push eax
push 4
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp + 0x60]
mov ecx, dword [esp + 8]
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
Function at 0x1070f54
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x109c450
call fcn.0104c920
sub esp, 0x64
push ebx
mov ebx, dword [ebp + 8]
push edi
xor edi, edi
cmp ebx, edi
je 0x10710ef
cmp dword [ebx + 8], edi
je 0x10710ef
mov al, byte [ebp + 0xf]
and byte [ebp + 0xb], 0
and byte [ebp - 0xd], 0
push esi
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], edi
mov byte [ebp - 0x28], al
call fcn.0101a650
mov esi, 0x100a340
push esi
call fcn.0104d0c0
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.0101af80
push dword [ebx + 8]
lea eax, [ebp - 0x28]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.01073282
push str.Info
push eax
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 1
push eax
call fcn.01073282
mov eax, dword [eax + 4]
add esp, 0x18
cmp eax, edi
jne 0x1070fdf
mov eax, 0x1001f54
lea ecx, [ebp - 0x14]
push ecx
push 0x20019
push edi
push eax
mov al, byte [ebp + 0xc]
neg al
sbb eax, eax
add eax, 0x80000002
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, eax
push 1
neg ebx
pop esi
lea ecx, [ebp - 0x38]
sbb bl, bl
push esi
inc bl
call fcn.0101a650
and byte [ebp - 4], 0
push esi
lea ecx, [ebp - 0x48]
call fcn.0101a650
or dword [ebp - 4], 0xffffffff
push esi
lea ecx, [ebp - 0x28]
call fcn.0101a650
test bl, bl
je 0x10710ea
mov al, byte [0x1001f54]
push 9
mov byte [ebp - 0x70], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x6f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x27
stosb byte es:[edi], al
pop ebx
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x70]
push eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x18]
mov dword [ebp + 0xc], ebx
push eax
push 0
push str.User
push dword [ebp - 0x14]
call edi
test eax, eax
jne 0x1071090
cmp byte [ebp - 0x70], al
je 0x1071090
lea eax, [ebp - 0x70]
push eax
call fcn.0104d0c0
pop ecx
mov ecx, dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.0101af80
mov byte [ebp + 0xb], 1
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], ebx
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0x10ac968
push dword [ebp - 0x14]
call edi
test eax, eax
jne 0x10710cf
cmp byte [ebp - 0x70], al
je 0x10710cf
lea eax, [ebp - 0x70]
push eax
call fcn.0104d0c0
pop ecx
mov ecx, dword [ebp + 0x14]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.0101af80
mov byte [ebp - 0xd], 1
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp + 0xb], 0
je 0x10710e8
cmp byte [ebp - 0xd], 0
je 0x10710e8
mov eax, esi
jmp 0x10710ec
xor edi, edi
xor eax, eax
pop esi
jmp 0x10710f1
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x10710ff
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x109c474
call fcn.0104c920
sub esp, 0x7c
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
jne 0x107111b
xor al, al
jmp 0x10712bd
and byte [ebp - 0xd], 0
push edi
test byte [ebp + 0x10], 1
je 0x107127d
mov al, byte [ebp + 0xf]
push esi
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x14], esi
mov byte [ebp - 0x30], al
call fcn.0101a650
mov edi, 0x100a340
push edi
call fcn.0104d0c0
pop ecx
push eax
push edi
lea ecx, [ebp - 0x30]
call fcn.0101af80
push dword [ebp + 0xc]
lea eax, [ebp - 0x30]
mov dword [ebp - 4], esi
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.01073282
push str.Info
push eax
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 1
push eax
call fcn.01073282
mov eax, dword [eax + 4]
add esp, 0x18
cmp eax, esi
jne 0x1071187
mov eax, 0x1001f54
lea ecx, [ebp - 0x14]
push ebx
push ecx
push 0x20019
push esi
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, eax
push 1
neg ebx
sbb bl, bl
lea ecx, [ebp - 0x50]
inc bl
call fcn.0101a650
and byte [ebp - 4], 0
push 1
lea ecx, [ebp - 0x60]
call fcn.0101a650
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x30]
call fcn.0101a650
test bl, bl
pop ebx
je 0x107127d
mov al, byte [0x1001f54]
push 9
mov byte [ebp - 0x88], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x87]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x27
push eax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp + 0x14]
push eax
push esi
push dword [ebp + 0x14]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1071274
cmp byte [ebp - 0x88], al
je 0x1071274
mov al, byte [ebp + 0xf]
push esi
lea ecx, [ebp - 0x40]
mov byte [ebp - 0x40], al
call fcn.0101a650
lea eax, [ebp - 0x88]
push eax
call fcn.0104d0c0
pop ecx
push eax
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x40]
call fcn.0101af80
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 4], 2
call fcn.01072d38
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x40]
call fcn.0101a650
mov byte [ebp - 0xd], 1
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test byte [ebp + 0x10], 2
pop edi
je 0x10712ba
push dword [ebp + 8]
push dword [ebp + 0xc]
push SysReAllocStringLen
call fcn.010712ca
add esp, 0xc
test eax, eax
je 0x107129f
mov byte [ebp - 0xd], 1
push dword [ebp + 8]
push dword [ebp + 0xc]
push SysReAllocStringLen
call fcn.010712ca
add esp, 0xc
test eax, eax
je 0x10712ba
mov byte [ebp - 0xd], 1
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x10712ca
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x109c4a3
call fcn.0104c920
sub esp, 0x8c
mov al, byte [ebp + 0x13]
push ebx
push esi
xor esi, esi
push edi
push esi
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov byte [ebp - 0x24], al
call fcn.0101a650
mov edi, 0x100a340
push edi
call fcn.0104d0c0
pop ecx
push eax
push edi
lea ecx, [ebp - 0x24]
call fcn.0101af80
push dword [ebp + 0xc]
lea eax, [ebp - 0x24]
mov dword [ebp - 4], esi
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.01073282
push str.Info
push eax
lea eax, [ebp - 0x80]
mov byte [ebp - 4], 1
push eax
call fcn.01073282
mov eax, dword [eax + 4]
add esp, 0x18
cmp eax, esi
jne 0x1071342
mov eax, 0x1001f54
lea ecx, [ebp - 0x10]
push ecx
push 0x20019
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, eax
push 1
neg ebx
pop edi
lea ecx, [ebp - 0x80]
sbb bl, bl
push edi
inc bl
call fcn.0101a650
and byte [ebp - 4], 0
push edi
lea ecx, [ebp - 0x90]
call fcn.0101a650
or dword [ebp - 4], 0xffffffff
push edi
lea ecx, [ebp - 0x24]
call fcn.0101a650
test bl, bl
je 0x107146e
mov dword [ebp + 0xc], edi
mov al, byte [0x1001f54]
push 9
mov byte [ebp - 0x70], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x6f]
rep stosd dword es:[edi], eax
push dword [ebp + 0xc]
mov dword [ebp + 8], 0x27
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x48]
push eax
call fcn.01071484
pop ecx
pop ecx
mov eax, dword [ebp - 0x44]
mov dword [ebp - 4], 2
cmp eax, esi
jne 0x10713cf
mov eax, 0x1001f54
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x38]
push ecx
push esi
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1071480
cmp byte [ebp - 0x70], al
je 0x1071480
cmp dword [ebp + 0x10], esi
mov bl, 1
je 0x1071449
mov al, byte [ebp + 0x13]
push esi
lea ecx, [ebp - 0x34]
mov byte [ebp - 0x34], al
call fcn.0101a650
lea eax, [ebp - 0x70]
push eax
call fcn.0104d0c0
pop ecx
push eax
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x34]
call fcn.0101af80
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x98]
push eax
mov byte [ebp - 4], 3
call fcn.01072d38
push 1
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.0101a650
inc dword [ebp - 0x14]
inc dword [ebp + 0xc]
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x48]
call fcn.0101a650
test bl, bl
jne 0x1071392
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
xor bl, bl
jmp 0x107144f
Function at 0x1071534
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x109c4c0
call fcn.0104c920
sub esp, 0x70
lea eax, [ebp - 0x14]
push ebx
xor ebx, ebx
push eax
push 0x20019
push ebx
push 0x100a350
mov byte [ebp - 0xd], bl
push dword [ebp + 8]
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1071649
push ebx
push ebx
push ebx
lea eax, [ebp - 0x18]
push ebx
push eax
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x1c], ebx
push eax
push ebx
push dword [ebp - 0x14]
mov dword [ebp - 0x18], 0x40
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x1071640
push esi
push edi
mov esi, str.Plug_ins_
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0x2c], al
call fcn.0101a650
push esi
call fcn.0104d0c0
pop ecx
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.0101af80
lea eax, [ebp - 0x7c]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.01073282
add esp, 0xc
mov eax, dword [eax + 4]
mov byte [ebp - 4], 1
cmp eax, ebx
jne 0x10715e0
mov eax, 0x1001f54
push dword [ebp + 0xc]
push eax
push dword [ebp + 8]
call fcn.010712ca
add esp, 0xc
lea ecx, [ebp - 0x3c]
mov edi, eax
mov byte [ebp - 4], bl
push 1
call fcn.0101a650
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x2c]
call fcn.0101a650
cmp edi, ebx
je 0x1071614
mov byte [ebp - 0xd], 1
inc dword [ebp - 0x1c]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x18]
push ebx
push eax
lea eax, [ebp - 0x7c]
push eax
mov dword [ebp - 0x18], 0x40
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x1071599
pop edi
pop esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x1071a0c
Capabilities:
Set registry value

Disassembly:
mov eax, 0x109c4dc
call fcn.0104c920
sub esp, 0x38
mov al, byte [ebp + 0xf]
and byte [ebp - 0xd], 0
push ebx
push esi
push edi
xor edi, edi
push edi
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], edi
mov byte [ebp - 0x24], al
call fcn.0101a650
mov esi, 0x100a340
push esi
call fcn.0104d0c0
pop ecx
push eax
push esi
lea ecx, [ebp - 0x24]
call fcn.0101af80
mov eax, dword [ebp + 8]
mov dword [ebp - 4], edi
push dword [eax + 8]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.01073282
push str.Info
push eax
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 1
push eax
call fcn.01073282
mov eax, dword [eax + 4]
add esp, 0x18
cmp eax, edi
jne 0x1071a82
mov eax, 0x1001f54
lea ecx, [ebp - 0x14]
push edi
push ecx
push edi
push 0x20006
push edi
push edi
push edi
push eax
mov al, byte [ebp + 0xc]
neg al
sbb eax, eax
add eax, 0x80000002
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov ebx, eax
push 1
neg ebx
pop esi
lea ecx, [ebp - 0x34]
sbb bl, bl
push esi
inc bl
call fcn.0101a650
and byte [ebp - 4], 0
push esi
lea ecx, [ebp - 0x44]
call fcn.0101a650
or dword [ebp - 4], 0xffffffff
push esi
lea ecx, [ebp - 0x24]
call fcn.0101a650
test bl, bl
je 0x1071b25
push dword [ebp + 0x10]
call fcn.0104d0c0
pop ecx
inc eax
push eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0x10]
push esi
push edi
push str.User
push dword [ebp - 0x14]
call ebx
test eax, eax
jne 0x1071b1c
push dword [ebp + 0x14]
call fcn.0104d0c0
pop ecx
inc eax
push eax
push dword [ebp + 0x14]
push esi
push edi
push 0x10ac968
push dword [ebp - 0x14]
call ebx
test eax, eax
jne 0x1071b1c
mov byte [ebp - 0xd], 1
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x1071fb2
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x308
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
je 0x1072026
lea eax, [ebp - 0x108]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x107204a
lea eax, [ebp - 0x308]
push eax
lea eax, [ebp - 0x208]
push eax
push ebx
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.0104dc41
lea eax, [ebp - 0x308]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.010578b0
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call fcn.0105897f
add esp, 0x24
test eax, eax
jne 0x107204a
cmp dword [ebp + 0xc], ebx
jne 0x107202a
mov al, 1
jmp 0x107208e
lea eax, [ebp - 0x108]
push ebx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
cmp edi, ebx
je 0x107204a
push edi
call fcn.0104c270
mov esi, eax
pop ecx
cmp esi, ebx
jne 0x107204e
xor al, al
jmp 0x107208e
push esi
push edi
lea eax, [ebp - 0x108]
push ebx
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x1072085
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push 0x1002bd8
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x1072085
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
cmp dword [eax + 0x10], ecx
sbb bl, bl
inc bl
push esi
call fcn.0104ab95
pop ecx
mov al, bl
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10722d2
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 4]
push ebx
push eax
xor ebx, ebx
push 3
push ebx
push 0x100a310
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10722fd
xor al, al
jmp 0x10723a4
mov al, byte [0x1001f54]
push esi
push edi
mov byte [ebp - 0x18], al
xor eax, eax
lea edi, [ebp - 0x17]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 9
lea eax, [ebp - 8]
pop edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
push ebx
push ebx
push ebx
push ebx
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push dword [ebp - 4]
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], ebx
call esi
test eax, eax
jne 0x1072352
cmp byte [ebp - 0x18], bl
jne 0x107237c
inc dword [ebp - 0xc]
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 8], edi
push dword [ebp - 0xc]
push dword [ebp - 4]
jmp 0x107232d
cmp byte [ebp - 0x18], bl
jne 0x107237c
xor esi, esi
call fcn.01086abf
movsx eax, al
imul eax, eax, 0x39
cdq
mov ecx, 0x7fff
idiv ecx
add al, 0x41
mov byte [ebp + esi - 0x18], al
inc esi
cmp esi, 8
jb 0x1072359
mov byte [ebp + esi - 0x18], bl
push dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push dword [ebp + 8]
push 3
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
test eax, eax
setne bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov al, bl
pop esi
pop ebx
leave
ret
Function at 0x10723a7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push esi
xor esi, esi
mov dword [eax], esi
lea eax, [ebp - 4]
push eax
push 1
push esi
push 0x100a310
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10723d7
xor al, al
jmp 0x107248b
mov al, byte [0x1001f54]
push ebx
push edi
mov byte [ebp - 0x18], al
xor eax, eax
lea edi, [ebp - 0x17]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 9
lea eax, [ebp - 8]
pop edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
push dword [ebp + 0xc]
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], edi
push esi
push esi
push esi
push eax
lea eax, [ebp - 0x18]
push eax
push esi
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x1072430
cmp byte [ebp - 0x18], al
jne 0x1072430
push dword [ebp + 0xc]
inc dword [ebp - 0xc]
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push esi
push esi
push esi
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0xc]
push dword [ebp - 4]
jmp 0x1072409
xor bl, bl
cmp byte [ebp - 0x18], bl
je 0x1072468
mov eax, dword [ebp + 0xc]
push dword [eax]
call fcn.0108e46c
mov edi, dword [ebp + 8]
cmp eax, esi
pop ecx
mov dword [edi], eax
je 0x107246b
push dword [ebp + 0xc]
push eax
push esi
lea eax, [ebp - 0x18]
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
jmp 0x107246b
mov edi, dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
jne 0x1072487
push dword [edi]
call fcn.0108e495
mov eax, dword [ebp + 0xc]
mov dword [edi], esi
pop ecx
mov dword [eax], esi
mov al, bl
pop edi
pop ebx
pop esi
leave
ret

Function at 0x107248e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push 0x100a350
push SysReAllocStringLen
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10724e6
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], esi
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push str.EnableDemo
mov dword [ebp - 0xc], 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 8], esi
pop esi
setne al
leave
ret