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

Disassembly:
mov eax, 0x2014
call fcn.0040bc20
mov eax, dword [0x41a174]
xor eax, esp
mov dword [esp + 0x2010], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2024]
lea eax, [esp + 0x1c]
push edi
mov ebp, 0x800
mov dword [esp + 0x1c], esi
xor ebx, ebx
push ebp
push ebx
push eax
mov edi, ebx
call sub.VCRUNTIME140.dll_memset
push ebp
lea eax, [esp + 0x830]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
mov dword [esp + 0x10], ebp
lea eax, [esp + 0x18]
push eax
push 0x20019
push ebx
push 0x4161c0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40b6f3
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea eax, [esp + 0x10]
push ebx
push ebx
push ebx
push ebx
push eax
lea eax, [esp + 0x34]
push eax
push ebx
push dword [esp + 0x34]
call ebp
test eax, eax
jne 0x40b6f3
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x20]
push eax
push str.SOFTWAREJavaSoftJava_Runtime_Environment
push str._s_s
lea eax, [esp + 0x82c]
push 0x800
push eax
call fcn.00407496
add esp, 0x14
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
lea eax, [esp + 0x82c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40b6cb
push 0x800
push eax
lea eax, [esp + 0x1028]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0x10], 0x800
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1024]
push eax
lea eax, [esp + 0x24]
push eax
push 0
push str.RuntimeLib
push dword [esp + 0x28]
call ebx
test eax, eax
jne 0x40b6cb
cmp dword [esp + 0x10], eax
jbe 0x40b6cb
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x800
push eax
lea eax, [esp + 0x1824]
push eax
lea eax, [esp + 0x24]
push eax
push 0
push 0x41622c
push dword [esp + 0x28]
call ebx
xor eax, eax
mov dword [esp + 0x10], 0x800
push eax
push eax
push eax
push eax
lea eax, [esp + 0x20]
inc edi
push eax
lea eax, [esp + 0x34]
push eax
push edi
push dword [esp + 0x34]
call ebp
test eax, eax
je 0x40b616
lea eax, [esp + 0x1820]
mov ecx, esi
push eax
call fcn.0040994d
mov ecx, dword [esp + 0x2020]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040bc01
add esp, 0x2014
ret
Function at 0x4252f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x16000]
push edi
or ebp, 0xffffffff
jmp 0x425312
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x425319
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x425308
mov eax, 1
add ebx, ebx
jne 0x42532b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x425320
jne 0x42533c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x425320
xor ecx, ecx
sub eax, 3
jb 0x425350
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4253c2
mov ebp, eax
add ebx, ebx
jne 0x42535b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x425368
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42538c
inc ecx
add ebx, ebx
jne 0x425378
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42536d
jne 0x425389
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42536d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4253ac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42539d
jmp 0x42530e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4253ac
add edi, ecx
jmp 0x42530e
pop esi
mov edi, esi
mov ecx, 0x788
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4253ca
cmp byte [edi], 0x11
jne 0x4253ca
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4253cf
lea edi, [esi + 0x22000]
mov eax, dword [edi]
or eax, eax
je 0x42543e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x251dc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x25234]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4253fc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2523c]
or eax, eax
je 0x425438
mov dword [ebx], eax
add ebx, 4
jmp 0x425419
call dword [esi + 0x25238]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x42546f
cmp al, 0xef
ja 0x425462
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x425444
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x425451
mov ebp, dword [esi + 0x25240]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
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 0x4254a3
sub esp, 0xffffff80
jmp 0x404031
Function at 0x100294f
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x2001f
push 0
push dword [0x1004024]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100298d
push dword [0x1004028]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret

Function at 0x100ac01
Capabilities:
Resolve function by parsing pe exports

Disassembly:
movzx eax, word [esi]
pop esi
add esi, dword [edi + eax*4]
ret 4
mov esi, ebx
mov eax, ebx
add eax, dword [ebx + 0x3c]
add edx, dword [eax + 0x78]
push 0xffffffffffffffff
jmp 0x10060c3
sbb eax, dword [esp + 4]
jne 0x10060c7
lea edi, [ebx]
lea esi, [ebx]
add edi, dword [edx + 0x1c]
jmp 0x100ac19
add esi, dword [edx + 0x20]
pop ecx
lodsd eax, dword [esi]
jmp 0x100abad
cmp byte [edi], 1
pop eax
ja 0x100aca2
xor eax, 0x3993acd1
jmp 0x1006094
inc ecx
cmp ecx, dword [edx + 0x18]
lea edi, [eax + ebx]
je 0x100ac46
push 0
jmp 0x100aca1
mov edx, ebx
jmp 0x1006072
add esi, dword [edx + 0x24]
push ebx
lea esi, [esi + ecx*2]
jmp 0x100601e
ret
pop eax
imul eax, eax, 0xf
push eax
jmp 0x100acab
movzx eax, byte [edi]
lea edi, [edi + 1]
sub dword [esp], eax
jmp 0x10060dc

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x408944
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x4085d8
call fcn.00408969
xor dword [edx], edi
or ecx, ebx
mov ebx, 0x5b68fbf7
inc edx
add ebx, ebx
inc ecx
cmp edx, eax
jne fcn.00408944
add ebx, 0x665f10b0
inc ecx
ret
Function at 0x10001b17
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x100174a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x20c], esi
call fcn.100013e5
mov ebx, eax
cmp ebx, esi
je 0x10001b88
lea ecx, [ebp - 0x214]
call fcn.1000136e
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10006a5a
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x10001ba6
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x214]
call fcn.10001b17
cmp eax, esi
jne 0x10001bed
lea eax, [ebp - 0x220]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x208], 0x100
call ebx
test eax, eax
je 0x10001b90
lea ecx, [ebp - 0x214]
call fcn.1000136e
push dword [ebp - 0x218]
mov ecx, edi
call fcn.1000134c
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.1000136e
mov eax, esi
jmp 0x10001b77
Function at 0x100045f4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x100110fd
call fcn.10006f29
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0x430], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x41c], eax
cmp eax, esi
jne 0x1000464d
call fcn.100011ac
mov esi, eax
jmp 0x10004723
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x10004666
call fcn.100011ac
jmp 0x10004715
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x420], eax
cmp eax, esi
je 0x1000465c
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x424], edi
cmp eax, edi
jae 0x100046a0
mov esi, 0x8007000e
jmp 0x10004717
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.10002c1b
mov dword [ebp - 4], 1
jmp 0x100046ce
cmp dword [ebp - 0x418], esi
je 0x10004699
push edi
push dword [ebp - 0x418]
push edi
push dword [ebp - 0x420]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x1000465c
mov edx, dword [ebp - 0x418]
push dword [ebp + 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
push dword [ebp - 0x418]
lea ecx, [ebp - 0x42c]
call fcn.10004047
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x1000473c
lea ecx, [ebp - 0x418]
call fcn.10001a25
mov eax, esi
call fcn.10006f85
ret 0x10
Function at 0x10004c69
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc14
mov eax, dword [0x100174a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x414], ax
xor edi, edi
lea eax, [ebp - 0x412]
push edi
push eax
call fcn.100069e0
lea eax, [ebp - 0x414]
push str.C:log_
push eax
call fcn.100078f4
xor eax, eax
push 0x3e6
mov word [ebp - 0xc0c], ax
lea eax, [ebp - 0xc0a]
push edi
push eax
call fcn.100069e0
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x61c]
push str._sgswb.log
push eax
call fcn.10007824
xor eax, eax
push esi
mov word [ebp - 0x824], ax
lea eax, [ebp - 0x822]
push edi
push eax
call fcn.100069e0
xor eax, eax
push esi
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push edi
push eax
call fcn.100069e0
add esp, 0x44
push 0x104
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.10007366
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop ecx
pop ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x61c]
push eax
call esi
test eax, eax
je 0x10004e69
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.10007809
lea eax, [ebp + eax*2 - 0x20a]
push eax
lea eax, [ebp - 0x824]
push eax
call fcn.100078f4
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x61c]
push str._s_s.txt
push eax
call fcn.10007824
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0xc0c]
push 0x1f3
push eax
call fcn.100077ec
xor eax, eax
mov word [ebp - 0x826], ax
add esp, 0x2c
lea eax, [ebp - 0x61c]
push eax
mov dword [ebp - 0xc10], edi
call esi
xor ebx, ebx
inc ebx
test eax, eax
je 0x10004dd0
mov dword [ebp - 0xc10], ebx
lea eax, [ebp - 0x61c]
push 0x100128dc
push eax
call fcn.10007704
mov esi, eax
pop ecx
pop ecx
cmp esi, edi
je 0x10004e68
cmp dword [ebp - 0xc10], edi
jne 0x10004e0e
push esi
push 2
lea eax, [ebp - 0xc14]
push ebx
push eax
mov dword [ebp - 0xc14], 0xfeff
call fcn.100075cc
add esp, 0x10
lea eax, [ebp - 0xc0c]
push eax
call fcn.10007809
push esi
add eax, eax
push eax
lea eax, [ebp - 0xc0c]
push ebx
push eax
call fcn.100075cc
push esi
push 2
lea eax, [ebp - 0xc10]
push ebx
push eax
mov dword [ebp - 0xc10], 0xd
call fcn.100075cc
push esi
push 2
lea eax, [ebp - 0xc10]
push ebx
push eax
mov dword [ebp - 0xc10], 0xa
call fcn.100075cc
push esi
call fcn.10007401
add esp, 0x38
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10006a5a
leave
ret
Function at 0x10004e77
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x100174a0]
xor eax, ebp
mov dword [ebp - 4], eax
push str.STDMETHODIMP_CSHProtectx86::ISHPoint__
call fcn.10004c69
mov dword [esp], 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [0x100183e0]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.10007366
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push str.DFMutual.exe
push eax
call fcn.100078c3
lea eax, [ebp - 0x20c]
push eax
push str.STDMETHODIMP_CSHProtectx86::ISHPoint___________s
call fcn.10004c69
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10004f4a
push esi
push 0x40
xor esi, esi
lea eax, [ebp - 0x24c]
push esi
push eax
mov dword [ebp - 0x250], 0x44
call fcn.100069e0
add esp, 0xc
xor eax, eax
inc eax
mov dword [ebp - 0x224], eax
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x250]
push eax
push esi
push esi
push 0x10
push esi
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.10006a5a
leave
ret 4

Function at 0x10006a5a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100174a0]
jne 0x10006a64
repz ret
jmp fcn.10008822
Function at 0x1000d36b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100174a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.10009605
and dword [ebp - 0x14], 0
cmp dword [0x10019110], 0
mov dword [ebp - 0x18], eax
jne 0x1000d41e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1000d4c6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x1000d4c6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x10019110], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x10019114], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x10019118], eax
call edi
push eax
call esi
mov dword [0x10019120], eax
test eax, eax
je 0x1000d41e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1001911c], eax
mov eax, dword [0x1001911c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x1000d477
cmp dword [0x10019120], ecx
je 0x1000d477
push eax
call esi
push dword [0x10019120]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x1000d477
test ebx, ebx
je 0x1000d477
call edi
test eax, eax
je 0x1000d46e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1000d46e
test byte [ebp - 8], 1
jne 0x1000d477
or dword [ebp + 0x10], 0x200000
jmp 0x1000d4aa
mov eax, dword [0x10019114]
cmp eax, dword [ebp - 0x18]
je 0x1000d4aa
push eax
call esi
test eax, eax
je 0x1000d4aa
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1000d4aa
mov eax, dword [0x10019118]
cmp eax, dword [ebp - 0x18]
je 0x1000d4aa
push eax
call esi
test eax, eax
je 0x1000d4aa
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x10019110]
call esi
test eax, eax
je 0x1000d4c6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x1000d4c8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10006a5a
leave
ret
Function at 0x401ea0
Capabilities:
Delete registry key

Disassembly:
sub esp, 0x804
mov eax, dword [0x427acc]
xor eax, esp
mov dword [esp + 0x800], eax
push esi
push 0x7fe
lea eax, [esp + 0xa]
push 0
push eax
mov word [esp + 0x10], 0
call fcn.0040f3c0
push str.SOFTWAREMicrosoftOfficeExcelAddinsNitroPDFProfessional.MSExcelAddin
push str.MS_Excel_try_to_delete_Key:__s
lea ecx, [esp + 0x18]
push 0x400
push ecx
call fcn.0040d10e
add esp, 0x1c
lea esi, [esp + 4]
call fcn.004027f0
cmp byte [esp + 0x80c], 0
je 0x401f12
mov esi, str.In_HKEY_LOCAL_MACHINE
call fcn.004027f0
push str.SOFTWAREMicrosoftOfficeExcelAddinsNitroPDFProfessional.MSExcelAddin
push 0x80000002
jmp 0x401f26
mov esi, str.In_HKEY_CURRENT_USER
call fcn.004027f0
push str.SOFTWAREMicrosoftOfficeExcelAddinsNitroPDFProfessional.MSExcelAddin
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x401f59
push edi
mov esi, str.Error_delete_key
mov edi, 3
call fcn.004027f0
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.0040ce0c
add esp, 0x804
ret
mov ecx, dword [esp + 0x804]
pop esi
xor ecx, esp
mov eax, 6
call fcn.0040ce0c
add esp, 0x804
ret
Function at 0x401f80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41ea50
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x427acc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.00401870
cmp eax, 1
jne 0x401fdd
mov esi, str.MS_Excel_application_dosent_installed
call fcn.004027f0
mov edi, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 8], bl
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
je 0x40200c
mov esi, str.Check_In_HKEY_LOCAL_MACHINE
call fcn.004027f0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
push ecx
push ebx
push 1
push ebx
push ebx
push ebx
push str.SOFTWAREMicrosoftOfficeExcelAddinsNitroPDFProfessional.MSExcelAddin
push 0x80000002
jmp 0x40202e
mov esi, str.Check_In_HKEY_CURRENT_USER
call fcn.004027f0
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x14]
push eax
push ebx
push 1
push ebx
push ebx
push ebx
push str.SOFTWAREMicrosoftOfficeExcelAddinsNitroPDFProfessional.MSExcelAddin
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x402122
lea ecx, [ebp - 0x18]
test ecx, ecx
je 0x40208c
cmp dword [ebp - 0x18], 2
je 0x40208c
mov esi, str.REG_CREATED_NEW_KEY__dwDisposition
call fcn.004027f0
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 8]
push eax
call fcn.00401ea0
add esp, 4
mov esi, str.Newly_created_key__was_removed
call fcn.004027f0
mov edi, 6
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, str.Plug_in_key_exists
call fcn.004027f0
mov eax, 4
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x1c]
push edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push ebx
push str.LoadBehavior
push ecx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4020f5
cmp dword [ebp - 0x1c], 3
jne 0x4020f5
mov esi, str.MS_Excel_plug_in:_installed
lea edi, [eax + 5]
call fcn.004027f0
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, str.MS_Excel_plug_in:_uninstalled
mov edi, 6
call fcn.004027f0
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, str.Error_open_registry_key
call fcn.004027f0
mov edi, 3
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4025c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4025d9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402614
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402610
lea ebx, [ebx]
cmp esi, eax
jae 0x402614
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402600
cmp esi, eax
jb 0x40261a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x4027f0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x808
mov eax, dword [0x427acc]
xor eax, esp
mov dword [esp + 0x804], eax
push 0x7fe
lea eax, [esp + 0xa]
push 0
push eax
mov word [esp + 0x10], 0
call fcn.0040f3c0
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.AddinSetupTool.txt
lea edx, [esp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x422874
lea eax, [esp + 8]
push eax
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0
call fcn.0040cf3c
mov eax, dword [esp + 0xc]
add esp, 0xc
test eax, eax
je 0x402896
push esi
push 0x42287c
push eax
call fcn.0040cf8c
mov edx, dword [esp + 0xc]
push edx
call fcn.0040d092
add esp, 0x10
mov al, 1
mov ecx, dword [esp + 0x804]
xor ecx, esp
call fcn.0040ce0c
add esp, 0x808
ret
mov ecx, dword [esp + 0x804]
xor ecx, esp
xor al, al
call fcn.0040ce0c
add esp, 0x808
ret
Function at 0x402f30
Capabilities:
Delete registry key

Disassembly:
sub esp, 0x804
mov eax, dword [0x427acc]
xor eax, esp
mov dword [esp + 0x800], eax
push esi
push 0x7fe
lea eax, [esp + 0xa]
push 0
push eax
mov word [esp + 0x10], 0
call fcn.0040f3c0
push str.SOFTWAREMicrosoftOfficePowerPointAddinsNitroPDFProfessional.MSPowerPointAddin
push str.MS_PowerPoint_try_to_delete_Key:__s
lea ecx, [esp + 0x18]
push 0x400
push ecx
call fcn.0040d10e
add esp, 0x1c
lea esi, [esp + 4]
call fcn.004027f0
cmp byte [esp + 0x80c], 0
je 0x402fa2
mov esi, str.In_HKEY_LOCAL_MACHINE
call fcn.004027f0
push str.SOFTWAREMicrosoftOfficePowerPointAddinsNitroPDFProfessional.MSPowerPointAddin
push 0x80000002
jmp 0x402fb6
mov esi, str.In_HKEY_CURRENT_USER
call fcn.004027f0
push str.SOFTWAREMicrosoftOfficePowerPointAddinsNitroPDFProfessional.MSPowerPointAddin
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x402fe9
push edi
mov esi, str.Error_delete_key
mov edi, 3
call fcn.004027f0
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.0040ce0c
add esp, 0x804
ret
mov ecx, dword [esp + 0x804]
pop esi
xor ecx, esp
mov eax, 6
call fcn.0040ce0c
add esp, 0x804
ret