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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x1039fb98]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 6
pop ecx
mov esi, 0x1014a428
lea edi, [ebp - 0x20]
rep movsd dword es:[edi], dword [esi]
xor ebx, ebx
push 0x118
lea eax, [ebp - 0x138]
push ebx
push eax
mov dword [ebp - 0x140], ebx
movsw word es:[edi], word [esi]
mov dword [ebp - 0x13c], ebx
call fcn.102f835e
add esp, 0xc
lea eax, [ebp - 0x144]
push eax
push 1
push ebx
push 0x1014a3fc
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x102ed51e
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x150]
push eax
push ebx
push 0x1014a3ec
push dword [ebp - 0x144]
mov dword [ebp - 0x14c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x102ed510
push dword [ebp - 0x148]
push 0x22df
call fcn.102d5cef
push dword [ebp - 0x144]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x102ed529
push ebx
push 0x66397234
call fcn.102d8670
lea eax, [ebp - 0x13c]
push eax
mov dword [ebp - 0x13c], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x102ed5b3
push dword [ebp - 0x130]
push 0x1a
call fcn.102d5cef
movzx eax, word [ebp - 0x28]
movzx ecx, word [ebp - 0x26]
shl eax, 0x10
or eax, ecx
push eax
push 0x43
call fcn.102d5cef
movzx eax, word [ebp - 0x24]
push eax
push 0x3a5
call fcn.102d5cef
push dword [ebp - 0x138]
push 0x22e1
call fcn.102d5cef
push dword [ebp - 0x134]
push 0x22e2
call fcn.102d5cef
movzx eax, word [ebp - 0x28]
push eax
push 0x22e4
call fcn.102d5cef
movzx eax, word [ebp - 0x26]
push eax
push 0x22e5
call fcn.102d5cef
call fcn.101f5ee1
test eax, eax
je 0x102ed646
lea eax, [ebp - 0x20]
push eax
call fcn.102254c9
mov esi, eax
cmp esi, ebx
jne 0x102ed5d7
push ebx
push 0x38317137
jmp 0x102ed624
push 0x1014a3dc
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
jne 0x102ed5ef
push ebx
push 0x38317138
jmp 0x102ed624
lea ecx, [ebp - 0x140]
push ecx
movzx ecx, word [ebp - 0x26]
push ecx
movzx ecx, word [ebp - 0x28]
push ecx
push dword [ebp - 0x134]
push dword [ebp - 0x138]
call eax
test eax, eax
jne 0x102ed62b
push 0xffffffffffffffff
push 0x1af7
call fcn.102d5cef
push ebx
push 0x38317139
call fcn.102d8670
jmp 0x102ed63b
push dword [ebp - 0x140]
push 0x1af7
call fcn.102d5cef
cmp esi, ebx
je 0x102ed646
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.102f77a6
leave
ret
Function at 0x102ed8ae
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
xor ebx, ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
je 0x102ed91e
push esi
lea eax, [ebp - 4]
push eax
call fcn.102ea902
test eax, eax
je 0x102ed91e
push dword [ebp - 4]
push esi
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x102ed916
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x10003b00
push dword [ebp - 4]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x102ed916
cmp dword [ebp - 8], ebx
je 0x102ed916
mov esi, dword [ebp - 0xc]
push edi
mov edi, dword [ebp + 0xc]
push 0xd
pop ecx
rep movsd dword es:[edi], dword [esi]
mov bl, 1
pop edi
push dword [ebp - 4]
call fcn.102eaa09
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x102ee784
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x1039fb98]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x50], ebx
cmp edi, ebx
jne 0x102ee7ba
push ebx
push 0x386f706a
call fcn.102d8670
xor eax, eax
jmp 0x102ee916
cmp dword [0x103ac6ac], ebx
je 0x102ee7d1
mov eax, dword [0x1039fabc]
mov dword [edi], eax
xor eax, eax
inc eax
jmp 0x102ee916
push esi
lea eax, [ebp - 0x4c]
push eax
push 0x20008
mov dword [edi], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x102ee800
push ebx
push 0x386f706b
call fcn.102d8670
xor esi, esi
jmp 0x102ee8f0
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x50]
push eax
push ebx
push ebx
push 2
push dword [ebp - 0x4c]
call esi
test eax, eax
je 0x102ee81f
push ebx
push 0x386f706c
jmp 0x102ee7f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x102ee832
push ebx
push 0x386f706d
jmp 0x102ee7f4
push dword [ebp - 0x50]
call fcn.102f7fef
mov edi, eax
pop ecx
cmp edi, ebx
jne 0x102ee849
push ebx
push 0x386f706e
jmp 0x102ee898
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x50]
push edi
push 2
push dword [ebp - 0x4c]
call esi
test eax, eax
jne 0x102ee864
push ebx
push 0x386f706f
jmp 0x102ee898
push 0x43
lea eax, [ebp - 0x47]
push ebx
push eax
mov byte [ebp - 0x48], bl
call fcn.102f835e
add esp, 0xc
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x48]
push eax
push ebx
push 0xb
mov dword [ebp - 0x5c], 0x44
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
jne 0x102ee8a1
push ebx
push 0x386f7070
call fcn.102d8670
xor esi, esi
jmp 0x102ee8e2
mov dword [ebp - 0x54], ebx
cmp dword [edi], ebx
jbe 0x102ee8df
lea esi, [edi + 4]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x102ee8c7
push dword [esi]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x102ee8d6
inc dword [ebp - 0x54]
mov eax, dword [ebp - 0x54]
add esi, 8
cmp eax, dword [edi]
jb 0x102ee8ab
jmp 0x102ee8df
mov eax, dword [ebp - 0x58]
mov dword [eax], 1
xor esi, esi
inc esi
cmp edi, ebx
je 0x102ee8ed
push edi
call fcn.102f72fe
pop ecx
mov edi, dword [ebp - 0x58]
cmp dword [ebp - 0x4c], ebx
je 0x102ee8fe
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
je 0x102ee913
mov dword [0x103ac6ac], 1
mov eax, dword [edi]
mov dword [0x1039fabc], eax
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.102f77a6
leave
ret

Function at 0x102efd11
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x1039fb98]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x804]
push 0x7ff
push eax
call fcn.102fc39f
add esp, 0x10
lea eax, [ebp - 0x804]
push eax
mov byte [ebp - 5], 0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.102f77a6
leave
ret
Function at 0x102f348c
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
mov esi, ecx
xor ecx, ecx
mov eax, 0x103acf04
inc ecx
lock xadd dword [eax], ecx
inc ecx
cmp ecx, 1
jne 0x102f34dd
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [ebp - 0x28]
mov dword [0x103acf08], eax
mov ax, word [ebp - 0x30]
mov word [0x103acf0c], ax
mov eax, dword [ebp - 0x18]
mov dword [0x103acf10], eax
mov eax, dword [ebp - 0x40]
mov dword [0x103acf14], eax
mov eax, esi
pop esi
leave
ret

Function at 0x102f5741
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push dword [ebp + 8]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x102f57a1
cmp eax, edi
je 0x102f57a1
push edi
push edi
push edi
push 2
push edi
push eax
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, 0xffffffff
je 0x102f57a1
cmp eax, edi
je 0x102f57a1
push edi
push edi
push edi
push 4
push eax
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0xc], eax
xor eax, eax
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], edi
inc eax
jmp 0x102f57a3
xor eax, eax
pop edi
pop esi
pop ebp
ret 4
Function at 0x102f77a6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1039fb98]
jne 0x102fe966
repz ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x103ad1b8], eax
mov dword [0x103ad1b4], ecx
mov dword [0x103ad1b0], edx
mov dword [0x103ad1ac], ebx
mov dword [0x103ad1a8], esi
mov dword [0x103ad1a4], edi
mov word [0x103ad1d0], ss
mov word [0x103ad1c4], cs
mov word [0x103ad1a0], ds
mov word [0x103ad19c], es
mov word [0x103ad198], fs
mov word [0x103ad194], gs
pushfd
pop dword [0x103ad1c8]
mov eax, dword [ebp]
mov dword [0x103ad1bc], eax
mov eax, dword [ebp + 4]
mov dword [0x103ad1c0], eax
lea eax, [ebp + 8]
mov dword [0x103ad1cc], eax
mov eax, dword [ebp - 0x320]
mov dword [0x103ad108], 0x10001
mov eax, dword [0x103ad1c0]
mov dword [0x103ad0bc], eax
mov dword [0x103ad0b0], 0xc0000409
mov dword [0x103ad0b4], 1
mov eax, dword [0x1039fb98]
mov dword [ebp - 0x328], eax
mov eax, dword [0x1039fb9c]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x103ad100], eax
push 1
call fcn.102feb09
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x1014b248
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x103ad100], 0
jne 0x102fea52
push 1
call fcn.102feb09
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret
Function at 0x1030a2c6
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.102fc5ee
and dword [ebp - 4], 0
cmp dword [0x103ad898], 0
mov ebx, eax
jne 0x1030a377
push 0x10151b94
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1030a428
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10151b88
push edi
call esi
test eax, eax
je 0x1030a428
push eax
call fcn.102fc57c
mov dword [esp], 0x10151b78
push edi
mov dword [0x103ad898], eax
call esi
push eax
call fcn.102fc57c
mov dword [esp], 0x10151b64
push edi
mov dword [0x103ad89c], eax
call esi
push eax
call fcn.102fc57c
mov dword [esp], 0x10151b48
push edi
mov dword [0x103ad8a0], eax
call esi
push eax
call fcn.102fc57c
pop ecx
mov dword [0x103ad8a8], eax
test eax, eax
je 0x1030a377
push 0x10151b30
push edi
call esi
push eax
call fcn.102fc57c
pop ecx
mov dword [0x103ad8a4], eax
mov eax, dword [0x103ad8a4]
cmp eax, ebx
je 0x1030a3cf
cmp dword [0x103ad8a8], ebx
je 0x1030a3cf
push eax
call fcn.102fc5f7
push dword [0x103ad8a8]
mov esi, eax
call fcn.102fc5f7
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1030a3cf
test edi, edi
je 0x1030a3cf
call esi
test eax, eax
je 0x1030a3c6
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1030a3c6
test byte [ebp - 0xc], 1
jne 0x1030a3cf
or dword [ebp + 0x10], 0x200000
jmp 0x1030a408
mov eax, dword [0x103ad89c]
cmp eax, ebx
je 0x1030a408
push eax
call fcn.102fc5f7
pop ecx
test eax, eax
je 0x1030a408
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1030a408
mov eax, dword [0x103ad8a0]
cmp eax, ebx
je 0x1030a408
push eax
call fcn.102fc5f7
pop ecx
test eax, eax
je 0x1030a408
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x103ad898]
call fcn.102fc5f7
pop ecx
test eax, eax
je 0x1030a428
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1030a42a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10311512
Capabilities:
Write file on windows

Disassembly:
push 0x10c
mov eax, 0x1034382f
call fcn.102f781d
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0xc0], eax
call fcn.10311410
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 4]
push dword [0x103a130c]
lea ecx, [ebp - 0x118]
mov esi, eax
call fcn.1031252c
mov eax, dword [esi]
push 1
push 1
xor edi, edi
push edi
lea ecx, [ebp - 0x118]
push ecx
lea ecx, [ebp - 0xb8]
push ecx
mov ecx, esi
mov dword [ebp - 4], edi
call dword [eax + 0x24]
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 2
call fcn.101a4c07
lea ecx, [ebp - 0xb8]
call fcn.10311ca4
test al, al
je 0x10311595
cmp dword [ebp - 0xc0], edi
je 0x10311633
lea eax, [ebp - 0xb9]
push eax
lea ecx, [ebp - 0x64]
call fcn.10312168
push ebx
lea eax, [ebp - 0x64]
push eax
mov byte [ebp - 4], 3
call fcn.1031a5ca
lea ecx, [ebp - 0xb8]
call fcn.10311ca4
test al, al
jne 0x10311618
push edi
push 0x80
push 2
push edi
push 1
push 0x40000000
lea ecx, [ebp - 0xb8]
call fcn.10311e77
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10311618
lea ecx, [ebp - 0x64]
mov dword [ebp - 0xc4], edi
call fcn.10258c37
push edi
lea ecx, [ebp - 0xc4]
push ecx
push eax
lea ecx, [ebp - 0x64]
call fcn.10311e77
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc0]
cmp ecx, edi
je 0x1031162b
lea eax, [ebp - 0x64]
push eax
call fcn.103126af
lea ecx, [ebp - 0x64]
call fcn.101a4c07
lea ecx, [ebp - 0xb8]
call fcn.101a4c07
call fcn.102f78a0
ret 8
Function at 0x103203df
Capabilities:
Get common file path

Disassembly:
push 0x210
mov eax, 0x10346061
call fcn.102f781d
mov edi, dword [ebp + 8]
xor ebx, ebx
mov esi, 0x103ae2b8
cmp byte [0x103ae2b8], bl
jne 0x10320554
push 0x103
lea eax, [ebp - 0x113]
push ebx
push eax
mov byte [ebp - 0x114], bl
call fcn.102f835e
add esp, 0xc
push 0x104
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x10320475
push 0x5c
call fcn.102f724d
pop ecx
mov ecx, eax
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 4], ebx
cmp ecx, ebx
je 0x10320458
push 0x80004005
call fcn.10312b70
jmp 0x1032045a
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x170], eax
push 0x1035b7ac
lea eax, [ebp - 0x170]
push eax
call fcn.102f72b2
push 0x10154334
lea ecx, [ebp - 0x21c]
call fcn.1031252c
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x1c8]
mov dword [ebp - 4], 1
call fcn.1031252c
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x1c8]
push eax
lea eax, [ebp - 0x168]
push eax
mov byte [ebp - 4], 2
call fcn.103202be
lea ecx, [ebp - 0x1c8]
call fcn.101a4c07
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 5
call fcn.101a4c07
push ebx
push ebx
lea eax, [ebp - 0x174]
push eax
push esi
lea ecx, [ebp - 0x168]
mov dword [ebp - 0x174], 0x84
call fcn.10311e77
push eax
call sub.msi.dll_MsiMessageBoxA
test eax, eax
je 0x10320545
push 0x5c
mov byte [0x103ae2b8], bl
call fcn.102f724d
pop ecx
mov ecx, eax
mov dword [ebp - 0x170], ecx
mov byte [ebp - 4], 6
cmp ecx, ebx
je 0x10320529
push 0x80004005
call fcn.10312b70
jmp 0x1032052b
xor eax, eax
mov dword [ebp - 0x16c], eax
mov byte [ebp - 4], 5
push 0x1035b7ac
lea eax, [ebp - 0x16c]
jmp 0x1032046f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x168]
call fcn.101a4c07
push esi
mov ecx, edi
call fcn.10312463
call fcn.102f78a0
ret 4

Function at 0x10320685
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x1039fb98]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x103206bc
push 4
pop eax
jmp 0x10320736
push 2
pop ecx
cmp dword [ebp - 0x88], ecx
jne 0x10320707
push 4
pop eax
cmp dword [ebp - 0x94], eax
jne 0x103206da
mov dword [esi], 3
jmp 0x10320734
cmp dword [ebp - 0x94], 5
jne 0x103206ff
cmp dword [ebp - 0x90], 0
je 0x103206fb
xor eax, eax
cmp dword [ebp - 0x90], 1
setne al
add eax, 5
mov dword [esi], eax
jmp 0x10320734
mov dword [esi], 6
jmp 0x10320734
xor eax, eax
inc eax
cmp dword [ebp - 0x88], eax
jne 0x10320734
cmp dword [ebp - 0x90], 0
je 0x10320731
cmp dword [ebp - 0x90], 0xa
je 0x103206fb
cmp dword [ebp - 0x90], 0x5a
jne 0x10320734
mov dword [esi], ecx
jmp 0x10320734
and dword [esi], 0
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.102f77a6
leave
ret 4
Function at 0x10323f78
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10346aec
mov eax, dword fs:[0]
push eax
mov eax, 0x453c
call fcn.102f7e1b
mov eax, dword [0x1039fb98]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov ecx, esi
mov dword [ebp - 0x4548], eax
call fcn.10311ca4
test al, al
jne 0x103240c8
mov ecx, edi
call fcn.10311ca4
test al, al
jne 0x103240c8
xor ebx, ebx
mov dword [ebp - 0x453c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x4540], ebx
mov eax, 0x104
push eax
mov dword [ebp - 0x4544], eax
lea eax, [ebp - 0x117]
push ebx
push eax
mov byte [ebp - 4], 1
mov byte [ebp - 0x118], bl
call fcn.102f835e
add esp, 0xc
lea eax, [ebp - 0x4544]
push eax
lea eax, [ebp - 0x118]
push eax
push 0x10154a7c
mov ecx, esi
call fcn.10311e77
push eax
call sub.msi.dll_MsiGetProductPropertyA
test eax, eax
jne 0x103240a2
lea ecx, [ebp - 0x453c]
call fcn.10320745
push eax
push ebx
lea eax, [ebp - 0x118]
push eax
call sub.msi.dll_MsiOpenProductA
test eax, eax
jne 0x103240a2
mov esi, dword [ebp - 0x453c]
lea ecx, [ebp - 0x4540]
call fcn.10320745
push eax
push 0x10154a20
push esi
call sub.msi.dll_MsiEnumClientsA
test eax, eax
jne 0x103240a2
push 1
push dword [ebp - 0x4540]
lea eax, [ebp - 0x4538]
push eax
call fcn.10323c3a
test al, al
je 0x103240a2
mov ecx, edi
call fcn.10311e77
push eax
lea eax, [ebp - 0x4538]
push eax
push dword [ebp - 0x4548]
call fcn.10323e52
cmp dword [ebp - 0x4540], ebx
je 0x103240b5
push dword [ebp - 0x4540]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x453c], ebx
je 0x103240c8
push dword [ebp - 0x453c]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.102f77a6
leave
ret 0xc
Function at 0x103242a6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 0x14]
push eax
call fcn.10320685
cmp eax, 4
jne 0x103242be
xor al, al
leave
ret
cmp dword [ebp - 0x14], 2
jle 0x103242c8
mov al, 1
leave
ret
push ebx
lea eax, [ebp - 0xc]
push eax
push 1
xor ebx, ebx
push ebx
push 0x10154844
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
je 0x103242f4
cmp eax, 2
sete bl
jmp 0x1032437a
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
mov edi, 0x1014a1a8
push edi
push dword [ebp - 0xc]
mov dword [ebp - 8], ebx
call esi
cmp eax, ebx
je 0x1032431d
cmp eax, 2
sete bl
jmp 0x10324378
mov eax, dword [ebp - 8]
inc eax
push eax
call fcn.102f7fef
pop ecx
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x10324378
lea ecx, [ebp - 8]
push ecx
push eax
push ebx
push ebx
push edi
push dword [ebp - 0xc]
call esi
cmp eax, ebx
je 0x10324348
cmp eax, 2
sete bl
jmp 0x1032436f
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
push 0x76
push esi
mov byte [eax + esi], bl
call fcn.1030648b
pop ecx
pop ecx
test eax, eax
jne 0x1032436f
push 0x56
push esi
call fcn.1030648b
pop ecx
pop ecx
test eax, eax
jne 0x1032436f
mov bl, 1
push dword [ebp - 0x10]
call fcn.102f72fe
pop ecx
pop edi
pop esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
leave
ret

Function at 0x10328fba
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push dword [ebp + 0xc]
and dword [ebp - 4], 0
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x1032908a
push dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp + 0x10], eax
test eax, eax
je 0x1032908a
push edi
mov edi, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x10329089
mov eax, dword [edi + 0x3c]
add eax, edi
cmp dword [eax], 0x4550
jne 0x10329089
push esi
mov esi, dword [eax + 0x80]
add esi, edi
cmp esi, eax
je 0x10329088
jmp 0x10329038
mov eax, dword [esi + 0xc]
lea ecx, [edi + eax]
cmp eax, 0xffff
je 0x10329035
push dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1032903e
add esi, 0x14
cmp dword [esi + 0xc], 0
jne 0x1032901a
cmp dword [esi + 0xc], 0
je 0x10329088
mov esi, dword [esi + 0x10]
add esi, edi
jmp 0x10329057
cmp eax, dword [ebp + 0x10]
jne 0x10329054
test eax, eax
jne 0x1032905f
add esi, 4
mov eax, dword [esi]
test eax, eax
jne 0x1032904b
jmp 0x10329088
lea eax, [ebp + 0xc]
push eax
push 4
lea eax, [ebp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, dword [ebp - 8]
push eax
call fcn.10328c81
test eax, eax
je 0x10329088
mov eax, dword [ebp + 0x18]
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
pop esi
pop edi
mov eax, dword [ebp - 4]
leave
ret 0x14
Function at 0x103291e3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
xor esi, esi
mov dword [ebp - 4], ebx
cmp dword [0x103b0d6c], ebx
je 0x10329208
mov dword [eax], 1
jmp 0x103292ca
push edi
mov dword [eax], ebx
lea eax, [ebp - 4]
push eax
push 0x20119
push ebx
push 0x10155258
push SysReAllocString
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x103292c7
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push 0x10155230
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10329255
mov edi, dword [ebp - 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebx
je 0x103292c9
mov eax, dword [0x103b0d7c]
push dword [eax + 8]
lea ecx, [ebp - 0xc]
push ecx
push 0x38
call dword [eax]
mov ecx, dword [ebp - 0xc]
cmp ecx, ebx
je 0x10329280
call fcn.10328c69
jmp 0x10329282
xor eax, eax
mov dword [0x103b0d6c], eax
cmp eax, ebx
jne 0x10329290
push 8
pop esi
jmp 0x103292b9
add eax, 0x34
push eax
push 0x10155204
call fcn.10329d26
mov esi, eax
cmp esi, ebx
jne 0x103292b9
mov ecx, dword [0x103b0d6c]
xor edi, edi
inc edi
push edi
call fcn.10329091
mov esi, eax
cmp esi, ebx
je 0x103292c0
call fcn.1032919e
jmp 0x103292c9
mov eax, dword [ebp + 8]
mov dword [eax], edi
jmp 0x103292c9
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4

Function at 0x10329304
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
push eax
push 0x20119
push 0
push 0x10155258
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10329368
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x10155348
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1032935f
cmp dword [ebp - 0xc], 4
jne 0x1032935f
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov dword [eax + 0x28], ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 4