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

Disassembly:
push ebp
mov eax, 0x1020
mov ebp, esp
push edi
push esi
push ebx
call fcn.10001590
sub esp, eax
mov ebx, dword [ebp + 8]
mov dword [esp + 8], 6
mov dword [esp + 4], 0x10014170
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll__wcsnicmp]
test eax, eax
je 0x100045b0
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x1010]
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareMicrosoftWindows_NTCurrentVersionDrivers32
mov dword [esp], 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
je 0x10004620
test byte [0x10010080], 4
je 0x100045a2
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.unable_to_open_registry_key___0x_08lx_n
mov dword [esp + 8], str.MSACM_RegisterDriverFromRegistry
mov dword [esp + 4], 0x10010080
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_3
jmp 0x100045a2
lea eax, [ebp - 0x1014]
lea edi, [ebp - 0x100c]
mov dword [esp + 4], ebx
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x1010]
mov dword [ebp - 0x1014], 0x1000
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
mov esi, eax
test eax, eax
je 0x100046c8
test byte [0x10010080], 4
jne 0x10004690
mov eax, dword [ebp - 0x1010]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
xor eax, eax
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.unable_to_query_requested_subkey__s___0x_08lx_n
mov dword [esp + 8], str.MSACM_RegisterDriverFromRegistry
mov dword [esp + 4], 0x10010080
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_3
jmp 0x10004673
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], ebx
call sym._MSACM_RegisterDriver
jmp 0x10004673
Function at 0x10004ac0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x20
mov ebx, dword [0x10010020]
mov esi, dword [0x10010028]
test ebx, ebx
je 0x10004bf2
mov dword [ebp - 0x14], esi
mov eax, ebx
call sym._MSACM_GetRegistryKey
mov esi, eax
test eax, eax
je 0x10004bdd
lea eax, [ebp - 0x10]
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov dword [esp], 0x80000002
call dword [sym.imp.advapi32.dll_RegCreateKeyW]
sub esp, 0xc
test eax, eax
jne 0x10004bc0
lea eax, [ebx + 0x24]
mov dword [esp + 0x14], 4
mov edi, dword [sym.imp.advapi32.dll_RegSetValueExA]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.cFormatTags
mov dword [esp], eax
call edi
sub esp, 0x18
test eax, eax
jne 0x10004bc0
lea eax, [ebx + 0x20]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.cFilterTags
mov dword [esp], eax
call edi
sub esp, 0x18
test eax, eax
jne 0x10004bc0
lea eax, [ebx + 0x28]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.fdwSupport
mov dword [esp], eax
call edi
sub esp, 0x18
test eax, eax
je 0x10004c18
lea esi, [esi]
mov eax, dword [0x10010018]
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
mov dword [esp], ebx
call sym._MSACM_UnregisterDriver
mov ebx, eax
test eax, eax
jne 0x10004ae0
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x10004c0c
mov eax, esi
lea esi, [esi]
nop
mov dword [esp], eax
call sym._MSACM_UnRegisterNotificationWindow
test eax, eax
jne 0x10004c00
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebx + 0x24]
shl eax, 3
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp + 0xc], 3
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], 0
mov dword [esp + 4], str.aFormatTagCache
mov dword [esp], eax
call edi
sub esp, 0x18
jmp 0x10004bc0
Function at 0x1000e970
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x1000e9c8
cmp byte [esi + ebx - 1], 0xa
je 0x1000e99c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x10010198], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x10007baf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x10007bbe
pop dword [ebp - 0x20]
mov eax, 0x1eb63ae2
sub eax, 0xeb5bf24
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0xc113d9af
add dword [ebp - 0x30], 0x8d3e6b9c
mov dword [ebp - 0x2c], 0x8966bc6e
add dword [ebp - 0x2c], 0xa8cc8fd7
mov dword [ebp - 0x28], 0x6328f4cb
sub dword [ebp - 0x28], 0x16dcb09d
mov dword [ebp - 0x24], 0xf9ce2642
add dword [ebp - 0x24], 0x631d9be
lea eax, [ebp - 0x30]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0x168e26e0
sub dword [ebp - 0x30], 0xa21bbd8a
mov dword [ebp - 0x2c], 0x32a36e41
add dword [ebp - 0x2c], 0xec8f334
mov dword [ebp - 0x28], 0x543d765e
add dword [ebp - 0x28], 0xf31f60e
mov dword [ebp - 0x24], 0xacf15344
sub dword [ebp - 0x24], 0xacf15344
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x384ea
push 0
call eax
mov ecx, 0xd8b3441f
sub ecx, 0xd8b2f590
xor esi, esi
add esi, eax
mov edx, 0xc02c02de
sub edx, 0xb02b08de
add edx, dword [ebp - 0x20]
mov ebx, 0x5e04e602
sub ebx, 0x9915b8e3
add dword [ebp - 4], esi
mov edi, dword [edx]
sub edi, ebx
xor dword [ebp - 0x18], 0x78428ad5
mov dword [esi], edi
xor dword [ebp - 0x18], ebx
add esi, 0x84caea4b
sub esi, 0x84caea47
add edx, 0x633b80ca
add edx, 0x9cc47f3a
loop 0x10007cd8
add eax, 0x98443023
add eax, 0x67bcfcec
mov ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x20]
call ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x50ce50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.QNhjSkbP
lea edi, [esi - 0x9000]
push edi
or ebp, 0xffffffff
jmp 0x50ce72
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x50ce79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50ce68
mov eax, 1
add ebx, ebx
jne 0x50ce8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x50ce80
jne 0x50ce9c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50ce80
xor ecx, ecx
sub eax, 3
jb 0x50ceb0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x50cf22
mov ebp, eax
add ebx, ebx
jne 0x50cebb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x50cec8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x50ceec
inc ecx
add ebx, ebx
jne 0x50ced8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x50cecd
jne 0x50cee9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50cecd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x50cf0c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x50cefd
jmp 0x50ce6e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x50cf0c
add edi, ecx
jmp 0x50ce6e
pop esi
lea edi, [esi + 0xa000]
mov eax, dword [edi]
or eax, eax
je 0x50cf6b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xeacc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xeb24]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x50cf29
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xeb2c]
or eax, eax
je 0x50cf65
mov dword [ebx], eax
add ebx, 4
jmp 0x50cf46
call dword [esi + 0xeb28]
mov ebp, dword [esi + 0xeb30]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x50cf9f
sub esp, 0xffffff80
jmp section.bUItIFMf

Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43300c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x41eec4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov word [ebp - 2], dx
xor eax, eax
push ebp
push 0x5ae473
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x41eeff
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41ef18
lea eax, [ebp - 0x10]
mov edx, dword [0x5c82a4]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x41ef2b
lea eax, [ebp - 0x10]
mov edx, dword [0x5c82a4]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41ef37
adc edx, 0
mov edx, dword [edx*4 + 0x5c710c]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x41f045
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x41f038
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41f038
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x41f038
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41f038
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41f038
cmp dx, 0x150
ja 0x41f038
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x41f038
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41f038
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x41f05d
inc ebx
cmp ebx, 0x19
jne 0x41eef1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5ae47a
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x1002805a
Capabilities:
Print debug messages

Disassembly:
push 8
mov eax, 0x1009c064
call fcn.10094b6a
mov esi, ecx
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call fcn.10027a4c
xor eax, eax
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x14]
cmp dword [ecx - 0xc], eax
je 0x10028092
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push dword [ebp - 0x14]
call fcn.10084769
jmp 0x100280cd
push eax
push eax
lea ecx, [ebp - 0x10]
push ecx
push 0x400
push dword [ebp + 8]
mov dword [ebp - 0x10], eax
push eax
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x100280cd
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push dword [ebp - 0x10]
call fcn.10084769
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.10084b37
call fcn.10094c56
ret 4

Function at 0x1002837e
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100a2b45
mov eax, dword fs:[0]
push eax
sub esp, 0x190
mov eax, dword [0x100bc210]
xor eax, esp
mov dword [esp + 0x188], eax
push ebx
push esi
push edi
mov eax, dword [0x100bc210]
xor eax, esp
push eax
lea eax, [esp + 0x1a0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 9
mov dword [esp + 0x18], eax
xor esi, esi
mov dword [esp + 0x1c], esi
pop ecx
xor eax, eax
mov dword [esp + 0x4c], 0x1001af10
lea edi, [esp + 0x50]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea edi, [esp + 0x74]
lea ebx, [esp + 0x4c]
mov dword [esp + 0x1a8], esi
call fcn.10027cc1
test al, al
jne 0x10028418
push 0x100042bc
push dword [esp + 0x18]
call fcn.1005f361
mov eax, dword [esp + 0x14]
jmp 0x100284f9
push 8
pop ecx
xor eax, eax
mov dword [esp + 0x28], esi
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x28]
push eax
call fcn.100285a8
mov eax, dword [0x100bcf90]
mov ecx, 0x100bcf90
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
lea esi, [esp + 0x74]
lea edi, [esp + 0x24]
mov byte [esp + 0x1a8], 1
call fcn.10028731
mov esi, eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0x1b0], 2
call fcn.100286c2
mov edi, eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x1a8], 3
call fcn.10028308
lea ecx, [esp + 0x88]
push ecx
mov byte [esp + 0x1ac], 4
push dword [esi]
push dword [edi]
push dword [eax]
lea eax, [esp + 0x28]
push 0x100042d4
push eax
call fcn.100847a7
mov eax, dword [esp + 0x38]
add esp, 0x18
add eax, 0xfffffff0
call fcn.10084b37
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
call fcn.10084b37
mov byte [esp + 0x1a8], 1
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
call fcn.10084b37
mov esi, dword [esp + 0x18]
lea eax, [esi - 0x10]
call fcn.10084ad6
mov edi, dword [esp + 0x14]
add eax, 0x10
mov dword [edi], eax
lea eax, [esi - 0x10]
call fcn.10084b37
mov eax, edi
mov ecx, dword [esp + 0x1a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x188]
xor ecx, esp
call fcn.10086de1
mov esp, ebp
pop ebp
ret 4
Function at 0x10028524
Capabilities:
Check if file exists
Create directory

Disassembly:
push 4
mov eax, 0x1009bc21
call fcn.10094b6a
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.10084ad6
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.1005ffe4
mov edi, dword [ebp - 0x10]
test eax, eax
jne 0x1002857b
mov esi, 0x800700a1
lea eax, [edi - 0x10]
call fcn.10084b37
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.10084b37
mov eax, esi
call fcn.10094c56
ret 4
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1002855e
push esi
push edi
push esi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
cmp eax, esi
je 0x1002855e
jle 0x1002859f
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x1002855e

Function at 0x10029f79
Capabilities:
Get common file path

Disassembly:
push 0x18
mov eax, 0x1009bb99
call fcn.10094b6a
and dword [ebp - 4], 0
and dword [ebp - 0x1c], 0
mov eax, dword [0x100bcf90]
mov edi, 0x100bcf90
mov ecx, edi
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 1
mov esi, dword [ebp + 8]
mov ecx, edi
call fcn.10084a73
mov eax, dword [ebx - 8]
xor ecx, ecx
inc ecx
mov dword [ebp - 0x1c], ecx
sub ecx, dword [ebx - 4]
mov edx, 0x104
sub eax, edx
or eax, ecx
jge 0x10029fd7
mov eax, edx
lea ecx, [ebp - 0x10]
call fcn.1008495f
mov ebx, dword [ebp - 0x10]
push ebx
xor eax, eax
push eax
push eax
push 0x25
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x1002a070
or eax, 0xffffffff
lea esi, [ebp - 0x10]
call fcn.1008472b
mov eax, dword [0x100bcf90]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push 0x10004b8c
push ebx
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.1005ff00
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov dword [ebp - 0x18], 0x104
mov dword [ebp - 0x20], eax
call fcn.10084ad6
lea edi, [eax + 0x10]
mov dword [ebp - 0x24], edi
mov byte [ebp - 4], 3
push dword [ebp - 0x18]
mov esi, dword [ebp + 8]
call fcn.100849b4
push 0
push 0
lea ecx, [ebp - 0x18]
push ecx
push eax
push edi
call dword [sym.imp.msi.dll_MsiMessageBoxW]
lea eax, [edi - 0x10]
mov byte [ebp - 4], 2
call fcn.10084b37
or eax, 0xffffffff
call fcn.1008472b
mov eax, dword [ebp - 0x20]
call fcn.10084b37
lea eax, [ebx - 0x10]
call fcn.10084b37
mov eax, dword [ebp + 8]
call fcn.10094c56
ret 4
Function at 0x1002a494
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100a28bb
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push edi
mov eax, dword [0x100bc210]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [0x100bcf90]
mov ecx, 0x100bcf90
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, esi
mov dword [esp + 0x30], ebx
call fcn.10028eae
test al, al
je 0x1002a51f
mov dword [esp + 0x14], ebx
push esi
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 1
call fcn.1002805a
push dword [esp + 0x14]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
lea eax, [esp + 0x10]
jne 0x1002a513
push esi
push 0x10004bf8
jmp 0x1002a567
push dword [esp + 0x14]
push esi
push 0x10004c98
jmp 0x1002a57c
cmp esi, 0x80004004
jne 0x1002a53c
push 0x10004d48
push 0x22
pop ebx
lea eax, [esp + 0x14]
call fcn.10084807
xor ebx, ebx
jmp 0x1002a593
mov dword [esp + 0x14], ebx
push esi
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 2
call fcn.1002805a
push dword [esp + 0x14]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
lea eax, [esp + 0x10]
jne 0x1002a572
push esi
push 0x10004d90
push eax
call fcn.100847a7
add esp, 0xc
jmp 0x1002a585
push dword [esp + 0x14]
push esi
push 0x10004e10
push eax
call fcn.100847a7
add esp, 0x10
mov byte [esp + 0x30], bl
push dword [esp + 0x14]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push 0x100044f8
lea eax, [esp + 0x1c]
push eax
call fcn.1005f361
mov byte [esp + 0x30], 3
mov eax, dword [edi]
or eax, dword [edi + 4]
je 0x1002a5f3
push ebx
call fcn.10087787
pop ecx
mov ecx, dword [edi]
mov edi, dword [edi + 4]
sub eax, ecx
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x14]
sbb edx, edi
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x24], edx
call fcn.1002a1bf
lea edi, [esp + 0x18]
mov byte [esp + 0x30], 4
call fcn.1005f4dc
mov byte [esp + 0x30], 3
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.10084b37
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push eax
lea edi, [esp + 0x18]
call fcn.1005fc9d
mov ecx, dword [ebp + 8]
mov byte [esp + 0x30], 5
push dword [eax]
mov edx, dword [ecx]
call dword [edx + 0x4c]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.10084b37
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.10084b37
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.10084b37
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1002a652
Capabilities:
Get file version info

Disassembly:
push 0x14
mov eax, 0x1009de3e
call fcn.10094b6a
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0x10004ed4
mov dword [ebp - 0x18], ebx
push dword [ebp + 8]
call fcn.1005f361
mov dword [ebp - 4], ebx
mov eax, dword [0x100bcf90]
xor esi, esi
inc esi
mov ecx, 0x100bcf90
mov dword [ebp - 0x18], esi
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], esi
mov ecx, dword [edi - 8]
mov edx, esi
sub edx, dword [edi - 4]
mov eax, 0x105
sub ecx, eax
or ecx, edx
jge 0x1002a6b0
lea ecx, [ebp - 0x10]
call fcn.1008495f
mov edi, dword [ebp - 0x10]
push 0x104
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
or eax, 0xffffffff
lea esi, [ebp - 0x10]
call fcn.1008472b
lea eax, [ebp - 0x14]
push eax
push edi
mov dword [ebp - 0x14], ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
cmp esi, ebx
je 0x1002a73d
push esi
call fcn.100878a8
pop ecx
mov ebx, eax
push ebx
push esi
push dword [ebp - 0x14]
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x1002a736
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x1000440c
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x1002a736
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx + 0xc]
mov ecx, dword [ecx + 8]
movzx edx, ax
push edx
shr eax, 0x10
push eax
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
push 0x10004ee4
push dword [ebp + 8]
call fcn.100847a7
add esp, 0x18
push ebx
call fcn.100878b8
pop ecx
lea eax, [edi - 0x10]
call fcn.10084b37
mov eax, dword [ebp + 8]
call fcn.10094c56
ret 4

Function at 0x1002a755
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x100bc210]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x210]
push eax
push 0x20019
xor esi, esi
push esi
mov ebx, 0x10004f00
push ebx
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push edi
mov dword [ebp - 0x210], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1002a7ff
push esi
lea eax, [ebp - 0x210]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1002a7ff
lea edi, [ebp - 0x20c]
call fcn.1002a81f
push 0x208
mov eax, edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push eax
push 2
push esi
push 0x10004f80
push dword [ebp - 0x210]
call edi
push 4
lea eax, [ebp - 0x214]
push eax
push 4
push esi
push 0x10004fa4
push dword [ebp - 0x210]
mov dword [ebp - 0x214], 7
call edi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10086de1
leave
ret