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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 1
xor ebx, ebx
push ebx
push str.Control_PanelTabletPCPenTiltDataPortrait
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x101819e
lea eax, [ebp - 4]
push eax
push 1
push ebx
push str.Control_PanelTabletPCPenTiltDataLandscape
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x101823e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10
mov edi, dword [ebp + 8]
push edi
push ebx
push ebx
push ebx
push 0x10185d4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1018230
mov eax, dword [edi]
cmp eax, 0x28
jb 0x1018230
cmp eax, 0xffff
ja 0x1018230
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
cmp eax, ebx
je 0x10181d7
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov dword [esi], ebx
push dword [edi]
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov edx, eax
cmp edx, ebx
pop ecx
mov dword [esi], edx
je 0x101828f
mov ecx, dword [edi]
mov edi, edx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [ebp + 8]
push edi
push dword [esi]
push ebx
push ebx
push 0x10185d4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1018230
mov eax, dword [esi]
mov ecx, dword [eax]
cmp ecx, dword [edi]
jne 0x1018227
cmp dword [eax + 4], 2
je 0x1018230
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov dword [esi], ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1009658
mov edi, dword [ebp + 0x10]
push edi
push ebx
push ebx
push ebx
push 0x10185d4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10182e7
mov eax, dword [edi]
cmp eax, 0x28
jb 0x10182e7
cmp eax, 0xffff
ja 0x10182e7
mov esi, dword [ebp + 0x14]
mov eax, dword [esi]
cmp eax, ebx
je 0x101827f
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov dword [esi], ebx
push dword [edi]
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov edx, eax
cmp edx, ebx
pop ecx
mov dword [esi], edx
jne 0x10182a2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80004005
jmp 0x1009679
mov ecx, dword [edi]
mov edi, edx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [ebp + 0x10]
push edi
push dword [esi]
push ebx
push ebx
push 0x10185d4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10182e7
mov eax, dword [esi]
mov ecx, dword [eax]
cmp ecx, dword [edi]
jne 0x10182de
cmp dword [eax + 4], 2
je 0x10182e7
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov dword [esi], ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1009677
Function at 0x100a26b
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x1027090]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor esi, esi
cmp eax, esi
push edi
mov dword [ebp - 0x218], ecx
je 0x100a3db
cmp ecx, esi
je 0x100a3db
push dword [eax]
lea eax, [ebp - 0x208]
push 0x1008770
push 0x1008760
push 0x100
push eax
mov dword [ebp - 0x20c], esi
call fcn.0100cfad
add esp, 0x14
test eax, eax
jne 0x100a3db
lea eax, [ebp - 0x20c]
push eax
push 0x20019
push esi
lea eax, [ebp - 0x208]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100a3db
cmp dword [ebp - 0x20c], esi
je 0x100a3db
mov edi, 0x101
push edi
lea eax, [ebp - 0x208]
push eax
push esi
push dword [ebp - 0x20c]
mov dword [ebp - 0x214], esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
call esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x100a3d3
push dword [ebp - 0x218]
lea eax, [ebp - 0x208]
push 0x100d3e0
push eax
call dword [sym.imp.msvcrt.dll_swscanf]
add esp, 0xc
cmp eax, 1
jne 0x100a3b2
and dword [ebp - 0x210], 0
lea eax, [ebp - 0x210]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x208]
push eax
push dword [ebp - 0x20c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100a3b2
cmp dword [ebp - 0x210], eax
je 0x100a3b2
push eax
push 0x7fffffff
push eax
lea eax, [ebp - 0x21c]
push eax
push 0x100d278
push dword [ebp - 0x20c]
call fcn.01007995
test eax, eax
push dword [ebp - 0x210]
je 0x10157c1
call ebx
inc dword [ebp - 0x214]
push edi
lea eax, [ebp - 0x208]
push eax
push dword [ebp - 0x214]
push dword [ebp - 0x20c]
call esi
jmp 0x100a328
push dword [ebp - 0x20c]
call ebx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01007dc7
leave
ret 8
call ebx
push dword [ebp - 0x20c]
call ebx
xor eax, eax
inc eax
jmp 0x100a3dd
Function at 0x100ad44
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x320
mov eax, dword [0x1027090]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 0x318], eax
je 0x100af16
cmp eax, ebx
je 0x100af16
lea eax, [ebp - 0x308]
push eax
push 0x20019
push ebx
push 0x1008770
push 0x80000001
mov dword [ebp - 0x308], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100af16
cmp dword [ebp - 0x308], ebx
je 0x100af16
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push 0x80
lea eax, [ebp - 0x104]
push eax
mov dword [ebp - 0x310], ebx
push ebx
push dword [ebp - 0x308]
call edi
test eax, eax
jne 0x100af0a
push dword [ebp - 0x318]
lea eax, [ebp - 0x104]
push 0x100d3e0
push eax
call dword [sym.imp.msvcrt.dll_swscanf]
add esp, 0xc
cmp eax, 1
jne 0x100aedf
lea eax, [ebp - 0x30c]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x308]
mov dword [ebp - 0x30c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100aedf
cmp dword [ebp - 0x30c], ebx
je 0x100aedf
push 2
push 3
push 2
lea eax, [ebp - 0x31c]
push eax
push 0x100ee04
push dword [ebp - 0x30c]
mov dword [ebp - 0x314], 4
call fcn.01007995
test eax, eax
jl 0x100aed3
cmp dword [ebp - 0x31c], 2
jne 0x100aed3
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x304]
push eax
lea eax, [ebp - 0x320]
push eax
push ebx
push 0x100aefc
push dword [ebp - 0x30c]
mov byte [ebp - 0x304], bl
mov dword [ebp - 0x314], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100aed3
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x304]
mov dl, byte [esi]
mov cl, dl
cmp dl, byte [eax]
jne 0x100aec6
cmp cl, bl
je 0x100af27
mov dl, byte [esi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
je 0x1015a0f
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x1015a20
push dword [ebp - 0x30c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x310]
push 0x80
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x310]
jmp 0x100adc6
push dword [ebp - 0x308]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01007dc7
leave
ret 8
xor eax, eax
jmp 0x100aecb
inc esi
inc esi
inc eax
inc eax
cmp cl, bl
jne 0x100aeac
jmp 0x100af27
push dword [ebp - 0x30c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x308]
call esi
xor eax, eax
inc eax
jmp 0x100af18
Function at 0x100b87c
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1027090]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x100b9b8
mov dword [ebp - 4], eax
call fcn.01002ce0
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0x100b974
push 0x65
push 0x64
push esi
mov ebx, 0x1027098
push 0x102cf60
mov ecx, ebx
mov dword [ebp - 0x10], eax
call fcn.0100f639
push dword [ebp - 0x10]
mov ecx, ebx
call fcn.01009154
mov dword [ebp - 0x14], eax
call fcn.0100937e
mov esi, 0x100b9b0
lea edi, [ebp - 0xc]
lea eax, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
push eax
push dword [ebp - 0x10]
movsw word es:[edi], word [esi]
call fcn.0100b9ed
test eax, eax
mov dword [ebp - 0x10], eax
je 0x100b93f
mov esi, dword [sym.imp.KERNEL32.dll_CompareStringW]
mov edi, 0x409
push 0xffffffffffffffff
push 0x100b998
push 0xffffffffffffffff
push dword [ebp - 0x10]
push 1
push edi
call esi
cmp eax, 2
je 0x100b969
push 0xffffffffffffffff
push 0x100b984
push 0xffffffffffffffff
push dword [ebp - 0x10]
push 1
push edi
call esi
cmp eax, 2
je 0x1017bb0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
call fcn.0100b9ed
test eax, eax
mov dword [ebp - 0x10], eax
jne 0x100b8fc
push 0x56
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x100b951
cmp dword [ebp - 0x14], 0
je 0x100b958
mov ecx, ebx
call fcn.010066f3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01007dc7
leave
ret 0x10
mov ecx, ebx
call fcn.01020490
jmp 0x100b95a
push 0
push 1
mov ecx, ebx
call fcn.0102053f
jmp 0x100b95a

Function at 0x100c77f
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push 1
push 1
push 5
call fcn.0100c7aa
test eax, eax
je 0x1017bc0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
leave
ret 4
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0
push 0
call esi
test eax, eax
mov dword [ebp - 4], eax
je 0x1017c5e
push ebx
push edi
push dword [ebp + 8]
mov edi, dword [sym.imp.msvcrt.dll_wcslen]
call edi
add eax, dword [ebp - 4]
lea eax, [eax + eax + 4]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
je 0x1017c5c
push dword [ebp + 8]
call edi
pop ecx
mov ecx, dword [ebp - 4]
lea eax, [eax + ecx + 2]
push eax
push ebx
call esi
test eax, eax
jne 0x1017c12
push ebx
jmp 0x1017c42
lea esi, [ebx + eax*2]
cmp word [esi - 2], 0x5c
je 0x1017c29
mov word [esi], 0x5c
lea esi, [ebx + eax*2 + 2]
and word [esi], 0
push dword [ebp + 8]
push dword [ebp + 8]
call edi
pop ecx
inc eax
push eax
push esi
call fcn.0100a210
cmp eax, 0x8007007a
push ebx
jne 0x1017c4b
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
xor eax, eax
jmp 0x1017c5b
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push ebx
mov esi, eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, esi
pop ecx
pop edi
pop ebx
pop esi
jmp 0x100c7a1
Function at 0x100cdc0
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x1027090]
push ebx
push esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x114]
push eax
xor edi, edi
lea eax, [ebp - 0x10c]
push eax
push edi
mov esi, 0x20006
push esi
push edi
push edi
push edi
push 0x1008770
push 0x80000001
mov dword [ebp - 0x108], ecx
mov dword [ebp - 0x10c], edi
call ebx
test eax, eax
jne 0x100ceae
cmp dword [ebp - 0x10c], edi
je 0x100ceae
push 0xa
lea eax, [ebp - 0x104]
push eax
mov eax, dword [ebp - 0x108]
push dword [eax + 4]
call dword [sym.imp.msvcrt.dll__itow]
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x110]
push eax
push edi
push esi
push edi
push edi
push edi
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x10c]
mov dword [ebp - 0x110], edi
call ebx
test eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x100cea6
cmp dword [ebp - 0x110], edi
je 0x100cea6
push 4
lea eax, [ebp - 0x118]
push eax
push 4
push edi
push 0x100ee04
push dword [ebp - 0x110]
mov dword [ebp - 0x118], 3
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x110]
call esi
push dword [ebp - 0x10c]
call esi
mov esi, dword [ebp - 0x108]
lea eax, [esi + 0x10]
neg esi
sbb esi, esi
and esi, eax
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
add esi, 4
cmp eax, ecx
mov dword [ebp - 0x108], eax
je 0x100cef4
mov eax, dword [eax + 0x10]
cmp eax, edi
je 0x100cf01
lea ecx, [eax - 8]
call fcn.0100cf0a
lea ecx, [ebp - 0x108]
call fcn.010111df
mov eax, dword [ebp - 0x108]
cmp eax, dword [esi + 4]
jne 0x100cecf
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01007dc7
leave
ret
xor ecx, ecx
jmp 0x100ced9
Function at 0x100d02a
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x1027090]
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x110]
push eax
xor ebx, ebx
lea eax, [ebp - 0x10c]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push 0x1008770
push 0x80000001
mov esi, ecx
mov dword [ebp - 0x10c], ebx
call edi
test eax, eax
jne 0x100d141
cmp dword [ebp - 0x10c], ebx
je 0x100d141
push 0xa
lea eax, [ebp - 0x104]
push eax
push dword [esi + 4]
call dword [sym.imp.msvcrt.dll__itow]
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x108]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x10c]
mov dword [ebp - 0x108], ebx
call edi
test eax, eax
jne 0x100d135
cmp dword [ebp - 0x108], ebx
je 0x100d135
push 4
lea eax, [ebp - 0x114]
push eax
push 4
push ebx
push 0x100ee04
push dword [ebp - 0x108]
mov dword [ebp - 0x114], 2
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea edi, [esi + 0x44c]
mov eax, dword [edi]
push dword [eax]
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 2]
push eax
mov eax, dword [edi]
push dword [eax]
push 1
push ebx
push 0x100d194
push dword [ebp - 0x108]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x108]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi + 0x10]
neg esi
sbb esi, esi
and esi, eax
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
add esi, 4
cmp eax, ecx
mov dword [ebp - 0x108], eax
je 0x100d181
mov eax, dword [eax + 0x10]
cmp eax, ebx
je 0x100d18e
lea ecx, [eax - 8]
call fcn.0100d1b5
lea ecx, [ebp - 0x108]
call fcn.010111df
mov eax, dword [ebp - 0x108]
cmp eax, dword [esi + 4]
jne 0x100d15c
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01007dc7
leave
ret
xor ecx, ecx
jmp 0x100d166

Function at 0x100d1b5
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1027090]
push esi
mov esi, ecx
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x3c]
push edi
xor edi, edi
cmp eax, edi
mov dword [ebp - 0x20c], edi
je 0x100d271
add eax, 0xfffffff8
push dword [esi + 4]
push dword [eax + 4]
lea eax, [ebp - 0x208]
push 0x1008770
push 0x10087b8
push 0x100
push eax
call fcn.0100cfad
add esp, 0x18
test eax, eax
jne 0x100d265
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
push 0x20006
push edi
push edi
push edi
lea eax, [ebp - 0x208]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x100d265
cmp dword [ebp - 0x20c], edi
je 0x100d265
push 4
add esi, 0x44
push esi
push 4
push edi
push 0x100d278
push dword [ebp - 0x20c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x20c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01007dc7
leave
ret
xor eax, eax
jmp 0x100d1e2
Function at 0x100d295
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x1027090]
mov ecx, dword [ebp + 0xc]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
push esi
push edi
mov dword [ebp - 0x218], ecx
je 0x100d3da
cmp ecx, ebx
je 0x100d3da
push dword [eax]
lea eax, [ebp - 0x208]
push 0x1008770
push 0x1008760
push 0x100
push eax
mov dword [ebp - 0x20c], ebx
call fcn.0100cfad
add esp, 0x14
test eax, eax
jne 0x100d3da
lea eax, [ebp - 0x20c]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x208]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100d3da
cmp dword [ebp - 0x20c], ebx
je 0x100d3da
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x101
push edi
lea eax, [ebp - 0x208]
push eax
mov dword [ebp - 0x214], ebx
push ebx
push dword [ebp - 0x20c]
call esi
test eax, eax
jne 0x10157ec
push dword [ebp - 0x218]
lea eax, [ebp - 0x208]
push 0x100d3e0
push eax
call dword [sym.imp.msvcrt.dll_swscanf]
add esp, 0xc
cmp eax, 1
jne 0x10157d3
lea eax, [ebp - 0x210]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x208]
push eax
push dword [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10157d3
cmp dword [ebp - 0x210], ebx
je 0x10157d3
push dword [ebp - 0x210]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x20c]
call esi
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01007dc7
leave
ret 8
xor eax, eax
jmp 0x100d3cb
inc dword [ebp - 0x214]
push edi
lea eax, [ebp - 0x208]
push eax
push dword [ebp - 0x214]
jmp 0x100d344
push dword [ebp - 0x20c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100d3da
Function at 0x100e4ed
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x102d810], 0
push esi
jne 0x100e500
call fcn.0100e52e
test eax, eax
je 0x100e525
mov eax, dword [0x102d810]
cmp eax, 1
jne 0x1018002
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x100e525
pop esi
ret
xor eax, eax
pop esi
ret
push eax
call dword [0x102dac8]
test eax, eax
jne 0x101806c
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x100e525
mov eax, dword [esi]
push edi
push dword [0x102d810]
call dword [0x102dac8]
mov edi, eax
test edi, edi
je 0x101804d
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x1018069
mov edi, esi
add esi, 0xff0
push edi
push dword [0x102d810]
call dword [0x102dac4]
add edi, 0x10
cmp edi, esi
jb 0x1018055
mov eax, edi
pop edi
pop esi
ret

Function at 0x100ecb2
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x1027090]
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
xor esi, esi
cmp dword [ebp + 8], esi
push edi
mov dword [ebp - 0x118], eax
je 0x100edff
cmp eax, esi
je 0x100edff
lea eax, [ebp - 0x108]
push eax
push 0x20019
push esi
push 0x1008770
push 0x80000001
mov dword [ebp - 0x108], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100edff
cmp dword [ebp - 0x108], esi
je 0x100edff
mov edi, 0x80
push edi
lea eax, [ebp - 0x104]
push eax
push esi
push dword [ebp - 0x108]
mov dword [ebp - 0x110], esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
call esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x1016b5f
push dword [ebp - 0x118]
lea eax, [ebp - 0x104]
push 0x100d3e0
push eax
call dword [sym.imp.msvcrt.dll_swscanf]
add esp, 0xc
cmp eax, 1
jne 0x1016b3e
and dword [ebp - 0x10c], 0
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x108]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1016b3e
cmp dword [ebp - 0x10c], eax
je 0x1016b3e
push 2
push 3
push 2
lea eax, [ebp - 0x114]
push eax
push 0x100ee04
push dword [ebp - 0x10c]
call fcn.01007995
test eax, eax
jl 0x1016b36
cmp dword [ebp - 0x114], 3
jne 0x1016b36
push dword [ebp - 0x10c]
call ebx
push dword [ebp - 0x108]
call ebx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01007dc7
leave
ret 8
xor eax, eax
jmp 0x100edf0
push dword [ebp - 0x10c]
call ebx
inc dword [ebp - 0x110]
push edi
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x110]
push dword [ebp - 0x108]
call esi
jmp 0x100ed43
push dword [ebp - 0x108]
call ebx
jmp 0x100edff

Function at 0x100f1f6
Capabilities:
Create thread

Disassembly:
mov edi, edi
push esi
mov esi, ecx
lea eax, [esi + 0x44c]
push eax
xor eax, eax
push eax
push esi
push 0x100f22e
push eax
push eax
call dword [sym.imp.msvcrt.dll__beginthreadex]
mov dword [esi + 0x70], eax
add esp, 0x18
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
pop esi
ret
Function at 0x101321a
Capabilities:
Create thread

Disassembly:
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
push edi
push edi
push edi
push edi
call ebx
cmp eax, edi
mov dword [esi + 0x78], eax
je 0x1008005
push edi
push edi
push edi
push edi
call ebx
cmp eax, edi
mov dword [esi + 0x7c], eax
je 0x1008005
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x1012e2d
push edi
push edi
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
cmp eax, edi
mov dword [esi + 0x74], eax
jne 0x1013230
mov ecx, esi
call fcn.01020be2
jmp 0x1017a40
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x74], edi
je 0x1007fc4
mov eax, dword [esi + 0x74]
pop edi
pop esi
pop ebx
leave
ret
xor eax, eax
jmp 0x1013233
Function at 0x102053f
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1027090]
push ebx
push edi
push 2
xor edi, edi
push edi
mov dword [ebp - 4], eax
mov ebx, ecx
call dword [sym.imp.ole32.dll_CoInitializeEx]
cmp eax, edi
jl 0x102066b
push esi
push edi
push edi
push 1
push 0x64
push ebx
call dword [sym.imp.ATL.DLL_AtlModuleUpdateRegistryFromResourceD]
mov esi, 0x20006
push esi
push 0x1020720
push 0x80000000
lea ecx, [ebp - 0x208]
mov dword [ebp - 0x208], edi
call fcn.0101fcff
cmp eax, edi
je 0x10205a3
mov edi, eax
jmp 0x102065d
push esi
push 0x10206d0
push dword [ebp - 0x208]
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x210], edi
call fcn.0101fcff
cmp eax, edi
je 0x10205cb
mov edi, eax
jmp 0x1020652
push edi
push dword [ebp + 8]
push ebx
call dword [sym.imp.ATL.DLL_AtlModuleRegisterServer]
mov esi, 0x80000002
push esi
mov ecx, ebx
call fcn.0101fd99
cmp eax, edi
jl 0x10205c4
lea eax, [ebp - 0x20c]
push eax
push 0x1006db0
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x1020605
mov edi, 0x80004005
jmp 0x1020652
lea eax, [ebp - 0x204]
push 0x1020680
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
add esp, 0xc
shl eax, 1
push eax
lea eax, [ebp - 0x204]
push eax
push 1
push edi
push dword [ebp - 0x20c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
push dword [ebp - 0x20c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [ebp - 0x210]
call fcn.0101fce1
lea ecx, [ebp - 0x208]
call fcn.0101fce1
mov eax, edi
pop esi
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.01007dc7
leave
ret 8