joyce8/EMBER2024-capa huggingface dataset:
Function at 0x457c50
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 0
mov esi, ecx
call dword [sym.imp.ole32.dll_CoInitialize]
mov edx, dword [esi]
lea eax, [esi + 8]
push eax
lea eax, [esi + 4]
mov ecx, esi
push eax
call dword [edx + 8]
mov edi, eax
test edi, edi
jne 0x457c91
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
mov edi, eax
test edi, edi
jne 0x457c91
mov eax, dword [esi]
mov ecx, esi
push dword [ebp + 8]
call dword [eax + 4]
mov edi, eax
test edi, edi
je 0x457cd4
mov eax, dword [esi + 0x18]
mov dword [esi + 0x1c], edi
push ebx
lea ebx, [esi + 0x18]
test eax, eax
je 0x457cac
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebx], 0
push 0
push 0
push ebx
push 0x400
push dword [esi + 0x1c]
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov eax, dword [ebx]
pop ebx
test eax, eax
je 0x457cd4
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
mov eax, edi
pop edi
pop esi
pop ebp
ret 4

Function at 0x458920
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
test ecx, ecx
jne 0x458939
or eax, 0xffffffff
or edx, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x458980
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x458980
mov edi, dword [ebp - 8]
mov ebx, dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov edx, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
or edi, 0xffffffff
push esi
or ebx, edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov edx, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x458a20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push ecx
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x458a59
push esi
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x458a87
cmp dword [ebp - 4], edi
jne 0x458a87
pop edi
push esi
mov bl, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
push esi
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x458aa0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push ecx
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x458ad9
push esi
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x458b07
cmp edi, dword [ebp - 4]
jne 0x458b07
pop edi
push esi
mov bl, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
push esi
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45add0
Capabilities:
Encode data using xor
Encrypt data using blowfish
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x6165ec], 0
jne 0x45b013
push 0x48
call fcn.005643c2
add esp, 4
mov dword [0x6165e0], eax
test eax, eax
je 0x45ae24
push 0x1000
call fcn.005643c2
add esp, 4
mov dword [0x6165e4], eax
test eax, eax
jne 0x45ae2c
push dword [0x6165e0]
call fcn.0055c217
add esp, 4
mov dword [0x6165e0], 0
xor al, al
mov esp, ebp
pop ebp
ret 0xc
mov eax, 0xc
mov dword [0x6165e8], 0
sub eax, 0x5e4354
mov dword [ebp - 8], eax
mov eax, 0x10
push esi
sub eax, 0x5e4354
xor esi, esi
push edi
mov dword [ebp - 4], eax
mov edi, 8
mov eax, 0x14
sub edi, 0x5e4354
sub eax, 0x5e4354
mov dword [ebp - 0xc], eax
nop dword [eax]
mov eax, dword [0x6165e0]
lea edx, [edi + 0x5e4354]
mov ecx, dword [esi + 0x5e4350]
add edx, esi
mov dword [esi + eax], ecx
mov eax, dword [0x6165e0]
mov ecx, dword [esi + 0x5e4354]
mov dword [esi + eax + 4], ecx
mov eax, dword [0x6165e0]
mov ecx, dword [esi + 0x5e4358]
mov dword [edx + eax], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [esi + 0x5e435c]
lea edx, [eax + 0x5e4354]
mov eax, dword [0x6165e0]
add edx, esi
mov dword [edx + eax], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [esi + 0x5e4360]
lea edx, [eax + 0x5e4354]
mov eax, dword [0x6165e0]
add edx, esi
mov dword [edx + eax], ecx
mov eax, dword [ebp - 0xc]
mov ecx, dword [esi + 0x5e4364]
lea edx, [eax + 0x5e4354]
mov eax, dword [0x6165e0]
add edx, esi
add esi, 0x18
mov dword [edx + eax], ecx
cmp esi, 0x48
jl 0x45ae70
xor eax, eax
nop dword [eax]
mov esi, 0x100
nop word [eax + eax]
mov ecx, dword [0x6165e4]
mov edx, dword [eax + 0x5e43a0]
mov dword [eax + ecx], edx
add eax, 4
sub esi, 1
jne 0x45af10
cmp eax, 0x1000
jl 0x45af00
xor edi, edi
lea ecx, [esi + 0x24]
movzx eax, byte [esi + str.a7b863b0_61b0_4825_a7d4_d93c6a2fad6e]
mov byte [ebp - 1], al
lea eax, [esi + 1]
cdq
idiv ecx
movzx eax, byte [edx + str.a7b863b0_61b0_4825_a7d4_d93c6a2fad6e]
mov byte [ebp - 2], al
lea eax, [esi + 2]
cdq
idiv ecx
movzx eax, byte [edx + str.a7b863b0_61b0_4825_a7d4_d93c6a2fad6e]
mov byte [ebp - 3], al
lea eax, [esi + 3]
cdq
idiv ecx
mov ecx, dword [0x6165e0]
movzx eax, byte [edx + str.a7b863b0_61b0_4825_a7d4_d93c6a2fad6e]
mov byte [ebp - 4], al
mov eax, dword [ebp - 4]
xor dword [ecx + edi], eax
lea eax, [esi + 4]
cdq
mov ecx, 0x24
idiv ecx
add edi, 4
mov esi, edx
cmp edi, 0x48
jl 0x45af33
mov dword [ebp - 8], 0
xor esi, esi
mov dword [ebp - 4], 0
nop
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.0045a8f0
mov ecx, dword [0x6165e0]
mov eax, dword [ebp - 4]
mov dword [esi + ecx], eax
mov eax, dword [0x6165e0]
mov ecx, dword [ebp - 8]
mov dword [esi + eax + 4], ecx
add esi, 8
cmp esi, 0x48
jl 0x45afa0
xor esi, esi
nop
mov edi, 0x80
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.0045a8f0
mov ecx, dword [0x6165e4]
mov eax, dword [ebp - 4]
mov dword [esi + ecx], eax
mov eax, dword [0x6165e4]
mov ecx, dword [ebp - 8]
mov dword [esi + eax + 4], ecx
add esi, 8
sub edi, 1
jne 0x45afd5
cmp esi, 0x1000
jl 0x45afd0
pop edi
mov byte [0x6165ec], 1
pop esi
mov al, 1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x45b2c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58b5b1
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x60e9b0]
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 ebx, ecx
mov dword [ebp - 0x1c], ebx
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], esi
mov dword [ebx], 0
call fcn.00402a90
mov ecx, eax
test ecx, ecx
jne 0x45b322
push 0x80004005
call fcn.00402b10
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 1
call fcn.00439be0
cmp dword [0x615f44], 0
mov ecx, 0x100
mov eax, 0x200
cmovne eax, ecx
lea ecx, [ebp - 0x18]
push ecx
or eax, 0x20019
push eax
push 0
push str.SOFTWAREMutextPdfProtect
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x45b434
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push esi
push dword [ebp - 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
call esi
test eax, eax
jne 0x45b42b
mov eax, dword [ebp - 0x14]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0055622a
mov ecx, dword [ebp - 0x14]
add esp, 4
mov edi, eax
mov dword [ebp - 0x1c], edi
add ecx, 1
je 0x45b3cd
xor eax, eax
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push eax
push edi
push 0
push 0
push dword [ebp - 0x24]
push dword [ebp - 0x18]
call esi
mov esi, dword [ebp - 0x14]
call fcn.00402a90
push eax
push esi
push edi
lea ecx, [ebp - 0x1c]
call fcn.00415260
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 1
push eax
mov ecx, ebx
call fcn.00405dc0
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45b422
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push edi
call fcn.00556225
add esp, 4
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
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.00555b37
mov esp, ebp
pop ebp
ret
Function at 0x45c170
Capabilities:
Print debug messages
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58b670
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x60e9b0]
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
cmp dword [ecx + 8], 0
jne 0x45c1b1
push 0x5f49c8
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x45c2b9
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
mov dword [ecx + 8], 0
or edi, 0xffffffff
push 0x3e8
call ebx
push str.ProtectMutex
push ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
call fcn.0045b2c0
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
jg 0x45c21b
lea edx, [eax - 0x10]
mov dword [ebp - 4], 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45c210
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
inc esi
cmp esi, 0x1e
jl 0x45c1c3
jmp 0x45c2b9
xor esi, esi
mov dword [ebp - 0x18], 0
xorps xmm0, xmm0
mov dword [ebp - 0x18], esi
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 1
call fcn.00439be0
cmp dword [0x615f44], esi
mov ecx, 0x100
mov eax, 0x200
mov dword [ebp - 0x24], esi
cmovne eax, ecx
lea ecx, [ebp - 0x24]
push ecx
or eax, 0x20006
push eax
push esi
push str.SOFTWAREMutextPdfProtect
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov eax, dword [ebp - 0x14]
cmove esi, dword [ebp - 0x24]
mov ecx, dword [eax - 0xc]
add ecx, ecx
push ecx
push eax
push 1
push 0
push str.xdMutex
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test esi, esi
je 0x45c29a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x45c2b9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.00555b37
mov esp, ebp
pop ebp
ret
Function at 0x45c2e0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58b6b8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x60e9b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.0045c480
push str.ProtectMutex
push ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
call fcn.0045b2c0
add esp, 8
push str.xdMutex
push ecx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
call fcn.0045b2c0
add esp, 8
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
je 0x45c414
mov ecx, dword [ebp - 0x18]
mov edx, eax
nop word [eax + eax]
mov si, word [ecx]
cmp si, word [edx]
jne 0x45c386
test si, si
je 0x45c382
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x45c386
add ecx, 4
add edx, 4
test si, si
jne 0x45c360
xor ecx, ecx
jmp 0x45c38b
sbb ecx, ecx
or ecx, 1
test ecx, ecx
setne cl
test cl, cl
je 0x45c41b
cmp dword [eax - 0xc], 0
je 0x45c414
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movq qword [ebp - 0x24], xmm0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 2
call fcn.00439be0
cmp dword [0x615f44], 0
mov ecx, 0x100
mov eax, 0x200
cmovne eax, ecx
lea ecx, [ebp - 0x24]
or eax, 0x2001f
push eax
push str.SOFTWAREMutextPdfProtect
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00411000
mov esi, dword [ebp - 0x24]
push str.ProtectMutex
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test esi, esi
je 0x45c411
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
mov dword [ebx + 8], 1
or esi, 0xffffffff
mov byte [ebp - 4], 0
lea edx, [eax - 0x10]
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45c439
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x45c458
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00555b37
mov esp, ebp
pop ebp
ret
Function at 0x45c800
Capabilities:
Get session user name
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x60e9b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x100
lea eax, [ebp - 0x308]
mov esi, ecx
push 0
push eax
mov dword [ebp - 0x420], esi
call fcn.00559270
add esp, 0xc
lea eax, [ebp - 0x108]
push 0x100
push 0
push eax
call fcn.00559270
add esp, 0xc
mov dword [ebp - 0x40c], 0x100
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x308]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push 0x100
lea eax, [ebp - 0x208]
push 0
push eax
call fcn.00559270
add esp, 0xc
lea eax, [ebp - 0x408]
push 0x100
push 0
push eax
call fcn.00559270
add esp, 0xc
mov dword [ebp - 0x418], 0x100
lea eax, [ebp - 0x414]
mov dword [ebp - 0x410], 0x100
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x308]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.ADVAPI32.dll_GetSidIdentifierAuthority]
push 1
push str.S__lu_
mov edi, eax
lea eax, [ebp - 0x108]
push 0x100
push eax
call fcn.0045cba0
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x418], eax
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45c913
movzx eax, byte [edi + 5]
sub ecx, edx
push eax
mov eax, 0x100
sub eax, ecx
push str.__lu
push eax
lea eax, [ebp - 0x108]
add eax, ecx
push eax
call fcn.0045cba0
add dword [ebp - 0x418], eax
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
xor edi, edi
movzx eax, byte [eax]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x45c9b3
mov ebx, dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
mov esi, eax
nop dword [eax]
push edi
lea eax, [ebp - 0x208]
push eax
call ebx
push dword [eax]
mov eax, 0x100
sub eax, dword [ebp - 0x418]
push 0x5f32a0
push eax
lea eax, [ebp - 0x108]
add eax, dword [ebp - 0x418]
push eax
call fcn.0045cba0
add dword [ebp - 0x418], eax
inc edi
add esp, 0x10
cmp edi, esi
jl 0x45c970
mov esi, dword [ebp - 0x420]
lea edx, [ebp - 0x108]
mov ecx, 0x100
sub edx, esi
lea eax, [ecx + 0x7ffffefe]
test eax, eax
je 0x45c9d9
mov al, byte [edx + esi]
test al, al
je 0x45c9d9
mov byte [esi], al
inc esi
sub ecx, 1
jne 0x45c9c0
test ecx, ecx
lea eax, [esi - 1]
mov ecx, dword [ebp - 4]
cmovne eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
mov byte [eax], 0
mov al, 1
call fcn.00555b37
mov esp, ebp
pop ebp
ret
Function at 0x45f3f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push edi
mov edi, ecx
lea ebx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45f400
sub eax, ebx
sar eax, 1
add eax, eax
push eax
push dword [ebp + 8]
push 1
push 0
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
pop edi
sbb eax, eax
and eax, 0x80004005
pop ebx
pop ebp
ret
Function at 0x45f7e0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x60e9b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x424]
mov ecx, dword [ebp + 8]
push edx
push 0xf003f
push 0
push eax
push ecx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x424], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x45f98a
push ebx
push esi
push edi
push eax
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x420]
push eax
push 0
push 0
push 0
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x45f8c1
push 0x20a
xor esi, esi
lea eax, [ebp - 0x41c]
push esi
push eax
call fcn.00559270
add esp, 0xc
cmp dword [ebp - 0x420], esi
jbe 0x45f8c1
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
nop word [eax + eax]
push 0x105
lea eax, [ebp - 0x41c]
push eax
push esi
push dword [ebp - 0x424]
call ebx
test eax, eax
jne 0x45f8b8
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x424]
call edi
inc esi
cmp esi, dword [ebp - 0x420]
jb 0x45f890
push dword [ebp - 0x424]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
push 0x20a
lea eax, [ebp - 0x210]
mov dword [ebp - 0x424], 0
push 0
push eax
call fcn.00559270
push dword [ebp - 0x428]
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.0056af0b
lea eax, [ebp - 0x210]
push 0x5c
push eax
call fcn.00558e77
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x45f931
lea eax, [ebp - 0x210]
push 0x2f
push eax
call fcn.00558e77
mov esi, eax
add esp, 8
test esi, esi
je 0x45f987
mov eax, esi
lea ecx, [ebp - 0x210]
sub eax, ecx
and eax, 0xfffffffe
cmp eax, 0x20a
jae 0x45f99a
xor ecx, ecx
mov word [ebp + eax - 0x210], cx
lea eax, [ebp - 0x424]
push eax
push 0xf003f
push ecx
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x45f97f
lea eax, [esi + 2]
push eax
push dword [ebp - 0x424]
call edi
push dword [ebp - 0x424]
call ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00555b37
mov esp, ebp
pop ebp
ret 8
call fcn.00556356
int3
Function at 0x45f9a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58ba48
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x60e9b0]
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 edi, dword [ebp + 8]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x14], 0
call fcn.00421b00
mov dword [ebp - 4], 0
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45fa2f
push 0x5e90d4
mov ecx, edi
call fcn.004078d0
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov esi, dword [ebp - 0x14]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x45fb04
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x45fb04
call fcn.00402a90
mov ecx, eax
test ecx, ecx
jne 0x45fa44
push 0x80004005
call fcn.00402b10
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push str.InstallTime
call fcn.004078d0
push ecx
mov byte [ebp - 4], 2
mov esi, esp
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], esi
lea ecx, [ecx - 0x10]
call fcn.00407c00
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 1
call fcn.0045fb30
test eax, eax
je 0x45fab8
mov ebx, dword [ebp - 0x18]
add ebx, 0xfffffff0
mov ecx, ebx
call fcn.00407c00
add eax, 0x10
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov dword [edi], eax
mov eax, esi
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x45fae5
mov ecx, dword [ebx]
push ebx
jmp 0x45fae0
push 0x5e90d4
mov ecx, edi
call fcn.004078d0
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov edx, dword [ebp - 0x18]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45fae5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x45fb04
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
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.00555b37
mov esp, ebp
pop ebp
ret 4
Function at 0x45fb30
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x588710
mov eax, dword fs:[0]
push eax
sub esp, 0x20c
mov eax, dword [0x60e9b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x10]
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 1
push 0
push eax
call fcn.00559270
add esp, 0xc
lea eax, [ebp - 0x218]
push dword [ebp + 8]
push 0x104
push eax
push 0x5e8ea4
push dword [ebp + 0xc]
push str.masterpdf
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, 0x2a
cmp ax, word [ebp - 0x218]
je 0x45fbdb
lea edx, [ebp - 0x218]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x45fbb6
sub edx, esi
lea eax, [ebp - 0x218]
sar edx, 1
mov ecx, edi
push edx
push eax
call fcn.00407d30
mov edi, 1
jmp 0x45fbdd
xor edi, edi
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov edx, dword [ebp + 8]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45fbfe
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x45fc1d
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00555b37
mov esp, ebp
pop ebp
ret 0xc

Function at 0x45fc40
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45fc63
push dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push str.masterpdf
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edx, dword [ebp + 8]
push esi
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45fc81
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
pop esi
jg 0x45fc9a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
pop ebp
ret 8

Function at 0x45fca0
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x60e9b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
call fcn.00421b00
push dword [ebp - 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45fcd2
lea esi, [eax + 1]
jmp 0x45fcef
push dword [ebp - 8]
push 1
push str.Activate
push str.masterpdf
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
neg esi
sbb esi, esi
neg esi
mov eax, dword [ebp - 8]
or ecx, 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x45fd0a
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00555b37
mov esp, ebp
pop ebp
ret