joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001d020
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005f0d0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x10081708]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
call fcn.1001d210
mov eax, dword [ebp - 0x10]
or esi, 0xffffffff
mov dword [ebp - 4], 0
cmp dword [eax - 0xc], 0
je 0x1001d1bc
call fcn.10003510
mov ecx, eax
test ecx, ecx
je 0x1001d1f9
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edx, [eax + 0x10]
mov dword [ebp + 0xc], edx
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x800
or eax, ecx
mov edi, dword [ebx]
mov byte [ebp - 4], 1
jge 0x1001d0af
push 0x800
lea ecx, [ebp + 0xc]
call fcn.100035f0
mov edx, dword [ebp + 0xc]
cmp dword [edx - 8], 0x800
jl 0x1001d1ef
push edi
mov dword [edx - 0xc], 0x800
xor ecx, ecx
mov eax, dword [ebp + 0xc]
push 0x800
push edx
push 0x10061598
mov word [eax + 0x1000], cx
push dword [ebp - 0x10]
push str.PopTaskbar
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [ebp + 0xc]
mov edi, eax
push dword [ecx - 8]
push ecx
call fcn.1003c752
mov edx, eax
add esp, 8
test edx, edx
js 0x1001d1ef
mov ecx, dword [ebp + 0xc]
cmp edx, dword [ecx - 8]
jg 0x1001d1ef
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp + 0xc]
mov word [eax + edx*2], cx
cmp edi, 0x7ff
je 0x1001d12c
cmp edi, 0x7fe
jne 0x1001d18f
mov ecx, dword [ebp + 0xc]
mov edx, 1
mov edi, dword [ebx]
mov eax, dword [ecx - 8]
sub edx, dword [ecx - 4]
sub eax, 0x1000
or eax, edx
jge 0x1001d155
push 0x1000
lea ecx, [ebp + 0xc]
call fcn.100035f0
mov ecx, dword [ebp + 0xc]
cmp dword [ecx - 8], 0x1000
jl 0x1001d1ef
push edi
mov dword [ecx - 0xc], 0x1000
xor edx, edx
mov eax, dword [ebp + 0xc]
push 0x1000
push ecx
push 0x10061598
mov word [eax + 0x2000], dx
push dword [ebp - 0x10]
push str.PopTaskbar
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.10005b40
mov edx, dword [ebp + 0xc]
add esp, 8
mov byte [ebp - 4], 0
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001d1bc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x1001d1db
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 esp, ebp
pop ebp
ret 8
push 0x80070057
call fcn.100031a0
push 0x80004005
call fcn.100031a0
int3
Function at 0x1001f4c0
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push esi
push edi
push str.Dwmapi.dll
mov esi, ecx
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x1001f54e
push str.DwmInvalidateIconicBitmaps
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.DwmSetIconicThumbnail
push edi
mov dword [esi + 0xe4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.DwmSetIconicLivePreviewBitmap
push edi
mov dword [esi + 0xe8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.DwmSetWindowAttribute
push edi
mov dword [esi + 0xec], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0xf0], eax
cmp dword [esi + 0xe4], ebx
je 0x1001f54e
cmp dword [esi + 0xe8], ebx
je 0x1001f54e
cmp dword [esi + 0xec], ebx
je 0x1001f54e
test eax, eax
je 0x1001f54e
push str._Taskbar_CTaskbarWnd::InitFunc_Dwmapi_Suc
mov ebx, 1
call fcn.100133d0
add esp, 4
xor edi, edi
test ebx, ebx
je 0x1001f58b
push str.Shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.SHGetPropertyStoreForWindow
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0xf4], eax
test eax, eax
je 0x1001f587
push str._Taskbar_CTaskbarWnd::InitFunc_Shell32_Suc
mov edi, 1
call fcn.100133d0
add esp, 4
test edi, edi
jne 0x1001f59f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._Taskbar_CTaskbarWnd::InitFunc_Faild_err_d
call fcn.100133d0
add esp, 8
test ebx, ebx
je 0x1001f5b0
test edi, edi
je 0x1001f5b0
pop edi
pop esi
mov eax, 1
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x1001f880
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push str._Taskbar_CTaskbarWnd__Get_WM_DWMSENDICONICTHUMBNAIL_suc
mov edi, ecx
call fcn.100133d0
mov eax, dword [edi + 0x54]
add esp, 4
inc dword [edi + 0x98]
cmp dword [eax + 0x34], 0
jle 0x1001f8ca
push 2
push dword [edi + 8]
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [edi + 0x54]
push 0
imul eax, dword [eax + 0x34], 0x3e8
push eax
push 2
push dword [edi + 8]
call dword [sym.imp.USER32.dll_SetTimer]
mov ebx, dword [ebp + 0x10]
mov eax, dword [edi + 8]
movzx esi, bx
push esi
shr ebx, 0x10
push ebx
push str._Taskbar_CTaskbarWnd::SendThumbnail_begin__maxwidth_d__maxheight_d
mov dword [ebp - 8], eax
call fcn.100133d0
mov eax, 0xc8
add esp, 0xc
cmp ebx, eax
cmova ebx, eax
mov eax, 0x6c
cmp esi, eax
cmova esi, eax
cmp dword [edi + 0xc8], 8
mov dword [ebp - 4], esi
lea esi, [edi + 0xb4]
mov eax, esi
jb 0x1001f912
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1001f93e
cmp dword [esi + 0x14], 8
jb 0x1001f925
mov esi, dword [esi]
push esi
push str.Load_Thumbnail_faild_path_s
call fcn.100133d0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x1001f948
mov eax, dword [esi]
lea ecx, [edi + 0x48]
push eax
call fcn.10012b60
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x1001f979
cmp dword [esi + 0x14], 8
jb 0x1001f960
mov esi, dword [esi]
push esi
push str.LoadBitmapFromFile_Thumbnail_File_faild__path_s
call fcn.100133d0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 1
push dword [ebp - 4]
lea ecx, [edi + 0x48]
push ebx
push eax
call fcn.10012bb0
mov ebx, eax
test ebx, ebx
je 0x1001f958
push 0xff000000
lea eax, [ebp + 0x10]
push eax
push dword [ebx + 4]
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
test eax, eax
je 0x1001f9a6
mov dword [ebx + 8], eax
mov eax, dword [edi + 0xe8]
push 0
push dword [ebp + 0x10]
push dword [ebp - 8]
call eax
push dword [ebp + 0x10]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax]
mov ecx, dword [ebp - 0xc]
push 1
mov eax, dword [ecx]
call dword [eax]
push str._Taskbar_CTaskbarWnd::SendThumbnail_End
call fcn.100133d0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1001f9f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push str._Taskbar_CTaskbarWnd::SendPreview_begin
mov ebx, ecx
call fcn.100133d0
lea esi, [ebx + 0xcc]
add esp, 4
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x1001fa17
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1001fa40
cmp dword [esi + 0x14], 8
jb 0x1001fa2a
mov esi, dword [esi]
push esi
push str._Taskbar_Load_Preview_faild_path_s
call fcn.100133d0
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x1001fa4a
mov eax, dword [esi]
push edi
lea ecx, [ebx + 0x48]
push eax
call fcn.10012b60
mov edi, eax
test edi, edi
jne 0x1001fa79
cmp dword [esi + 0x14], 8
jb 0x1001fa62
mov esi, dword [esi]
push esi
push str._Taskbar_LoadBitmapFromFile_Preview_File_faild__path_s
call fcn.100133d0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 0x780
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 0x438
push eax
call fcn.10019770
mov eax, dword [ebx + 0x68]
add esp, 8
sub eax, dword [ebx + 0x60]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x6c]
mov ecx, eax
sub eax, dword [ebx + 0x7c]
sub ecx, dword [ebx + 0x64]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x20], 0
push dword [edi + 4]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 0
call sub.gdiplus.dll_GdipGetImageWidth
test eax, eax
je 0x1001fad2
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 4], eax
ja 0x1001fb2f
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push dword [edi + 4]
call sub.gdiplus.dll_GdipGetImageHeight
test eax, eax
je 0x1001faf4
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 4], eax
ja 0x1001fb2f
mov ecx, edi
call fcn.1001f3f0
mov ecx, edi
mov dword [ebp - 4], eax
call fcn.1001f330
mov ecx, eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 4]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
jmp 0x1001fb36
mov eax, 1
mov ecx, eax
push 1
push ecx
push eax
push edi
lea ecx, [ebx + 0x48]
call fcn.10012bb0
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x1001fb69
cmp dword [esi + 0x14], 8
jb 0x1001fb52
mov esi, dword [esi]
push esi
push str.ResizeBitmap_Preview_File_faild__path_s
call fcn.100133d0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0xff000000
lea ecx, [ebp - 0x10]
push ecx
push dword [eax + 4]
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
mov esi, dword [ebp - 0xc]
test eax, eax
je 0x1001fb84
mov dword [esi + 8], eax
push 0
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x10]
mov eax, dword [ebx + 0xec]
push dword [ebp + 8]
call eax
push dword [ebp - 0x10]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
push str._Taskbar_CTaskbarWnd::SendPreview_End
call fcn.100133d0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10022170
Capabilities:
Check if file exists
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005f8f0
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x10081708]
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]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov esi, eax
push str.RunDll.exe
push esi
call fcn.10044517
add esp, 8
test eax, eax
je 0x10022309
push str.32.exe
push esi
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
je 0x10022309
push 0x10063ec0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
je 0x10022209
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Wow64DisableWow64FsRedirection
push ebx
call esi
push str.Wow64RevertWow64FsRedirection
push ebx
mov dword [ebp - 0x428], eax
call esi
mov dword [ebp - 0x424], eax
jmp 0x1002220f
mov eax, dword [ebp - 0x424]
mov ecx, dword [ebp - 0x428]
test ecx, ecx
je 0x10022226
test eax, eax
je 0x10022226
lea eax, [ebp - 0x42c]
push eax
call ecx
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
cmp dword [ebp - 0x428], 0
mov dword [ebp - 4], 0
je 0x10022251
mov ecx, dword [ebp - 0x424]
test ecx, ecx
je 0x10022251
push dword [ebp - 0x42c]
call ecx
test esi, esi
je 0x10022302
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10022302
push 0x208
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.10037300
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10037300
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
call fcn.1004468c
add esi, eax
lea eax, [ebp - 0x420]
push esi
push eax
push str._slds__u.tmp
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.10012a00
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea eax, [ebp - 0x218]
add esp, 0x14
push 1
push eax
push edi
call esi
push 4
push 0
test eax, eax
je 0x100222ff
lea eax, [ebp - 0x218]
push eax
call esi
mov eax, 1
jmp 0x1002230b
push edi
call esi
mov eax, 1
jmp 0x1002230b
xor eax, eax
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.1002bf51
mov esp, ebp
pop ebp
ret
Function at 0x100253b0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005fbd0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x10081708]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 8], 0
je 0x1002543e
cmp dword [esi + 4], 0
je 0x1002543e
push 0
push 0
push 0x12
push dword [esi]
mov dword [esi + 0xc], 1
call dword [sym.imp.USER32.dll_PostThreadMessageW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
cmp dword [esi + 8], 0
mov dword [ebp - 0x10], eax
je 0x1002543e
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
call ebx
sub eax, dword [ebp - 0x10]
cmp eax, 0x1f4
jae 0x10025426
push 0xa
call edi
cmp dword [esi + 8], 0
jne 0x10025410
cmp dword [esi + 8], 0
je 0x1002543e
push 0x1f4
push str.CWorkThread::Stop__wait_thread_stop_timeout___d
call fcn.10013100
add esp, 8
mov ecx, dword [esi + 0x34]
add esi, 0x10
test ecx, ecx
je 0x1002545d
mov edx, dword [ecx]
cmp ecx, esi
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [esi + 0x24], 0
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 0x100256c0
Capabilities:
Check for time delay via gettickcount
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005fc78
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x10081708]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], 0
cmp dword [esi + 4], 0
mov dword [ebp - 4], 0
je 0x10025714
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x38]
mov dword [esi + 8], 0
push eax
lea ecx, [esi + 0x10]
mov dword [esi + 0xc], 0
call fcn.10025470
push esi
push 0
push esi
push 0x10025870
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
test eax, eax
jne 0x10025760
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CWorkThread::Start__CreateThread_failed__errno_d
call fcn.10013100
add esp, 8
xor edi, edi
jmp 0x100257a8
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
cmp dword [esi + 8], 0
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
jne 0x100257a3
call ebx
sub eax, dword [ebp - 0x10]
cmp eax, edi
jae 0x1002578b
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esi + 8], 0
je 0x10025774
cmp dword [esi + 8], 0
jne 0x100257a3
push edi
push str.CWorkThread::Start__wait_thread_running_timeout___d
call fcn.10013100
add esp, 8
xor edi, edi
jmp 0x100257a8
mov edi, 1
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x100257c0
mov esi, dword [ecx]
lea eax, [ebp - 0x38]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
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 4
Function at 0x100257e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 4], 0
jne 0x100257f6
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
push ebx
push 0
push 0
push 0x12
push dword [esi]
mov dword [esi + 0xc], 1
call dword [sym.imp.USER32.dll_PostThreadMessageW]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [esi + 8], 0
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], eax
je 0x1002585b
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 4]
cmp eax, ebx
jae 0x1002583c
push 0xa
call edi
cmp dword [esi + 8], 0
jne 0x10025825
cmp dword [esi + 8], 0
pop edi
je 0x1002585b
push ebx
push str.CWorkThread::Stop__wait_thread_stop_timeout___d
call fcn.10013100
add esp, 8
xor eax, eax
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4
pop ebx
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x1002a240
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x10081708]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
js 0x1002a3ac
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.10037300
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0x10000000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x20c]
push eax
call edi
test esi, esi
jle 0x1002a2af
lea eax, [ebp - 0x20c]
push eax
call edi
sub esi, 1
jne 0x1002a2a1
mov eax, dword [0x10083c58]
mov esi, dword [eax]
cmp esi, eax
je 0x1002a3ac
mov edi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
nop word [eax + eax]
push 0x208
lea eax, [ebp - 0x61c]
push 0
push eax
call fcn.10037300
add esp, 0xc
lea eax, [ebp - 0x20c]
push dword [esi + 0x14]
push eax
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [esi + 0x10]
test eax, eax
jne 0x1002a3d3
cmp ecx, 9
jne 0x1002a364
push 0x208
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.10037300
add esp, 0xc
lea eax, [ebp - 0x414]
push 0
push 0x1a
push eax
push 0
call edi
push str.MasterPDFData
lea eax, [ebp - 0x414]
push eax
call ebx
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x1002a3bf
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x1002a38a
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x1002a386
cmp esi, dword [eax + 8]
jne 0x1002a386
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x1002a376
mov esi, eax
jmp 0x1002a3a0
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x1002a3a0
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x1002a394
cmp esi, dword [0x10083c58]
jne 0x1002a2d0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002bf51
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002bf51
mov esp, ebp
pop ebp
ret
mov eax, ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002bf51
mov esp, ebp
pop ebp
ret
Function at 0x1002a4a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1002a511
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x1002a4df
cmp eax, 2
jne 0x1002a4fb
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x1002a50b
test ecx, ecx
je 0x1002a506
test cl, 1
jne 0x1002a4fb
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x1002a50b
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x1002d6d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
xor al, al
push edi
xor edi, edi
test esi, esi
je 0x1002d797
push ebx
mov ecx, dword [ebp + 8]
mov dl, byte [edi + ecx]
xor dl, al
mov cl, dl
shr cl, 1
mov al, cl
xor al, 0x8c
and dl, 1
movzx ebx, al
movzx eax, cl
cmove ebx, eax
mov cl, bl
shr cl, 1
mov al, cl
xor al, 0x8c
and bl, 1
movzx edx, al
movzx eax, cl
cmove edx, eax
mov cl, dl
shr cl, 1
mov al, cl
xor al, 0x8c
and dl, 1
movzx ebx, al
movzx eax, cl
cmove ebx, eax
mov cl, bl
shr cl, 1
mov al, cl
xor al, 0x8c
and bl, 1
movzx edx, al
movzx eax, cl
cmove edx, eax
mov cl, dl
shr cl, 1
mov al, cl
xor al, 0x8c
and dl, 1
movzx ebx, al
movzx eax, cl
cmove ebx, eax
mov cl, bl
shr cl, 1
mov al, cl
xor al, 0x8c
and bl, 1
movzx edx, al
movzx eax, cl
cmove edx, eax
mov cl, dl
shr cl, 1
mov al, cl
xor al, 0x8c
and dl, 1
movzx ebx, al
movzx eax, cl
cmove ebx, eax
mov cl, bl
shr cl, 1
mov al, cl
movzx ecx, cl
xor al, 0x8c
and bl, 1
movzx eax, al
cmove eax, ecx
inc edi
cmp edi, esi
jb 0x1002d6e5
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x1002f0d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100603f3
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x10081708]
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, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x8c], 0
mov dword [ebx], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
push 0x201
push dword [0x10081720]
lea ecx, [ebp - 0x8c]
mov dword [ebp - 4], 0
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.1002ef60
mov edi, dword [ebp - 0x8c]
test eax, eax
jne 0x1002f2b1
push 0x64
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.10037300
add esp, 0xc
mov dword [ebp - 0x78], 0x64
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x7c]
push eax
push 0
push 0x1006ca94
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1002f2b1
mov eax, dword [ebp - 0x7c]
cmp eax, 1
je 0x1002f1a5
cmp eax, 2
jne 0x1002f2b1
mov ecx, dword [ebp - 0x78]
test ecx, ecx
je 0x1002f1c6
test cl, 1
jne 0x1002f2b1
mov eax, ecx
shr eax, 1
cmp word [ebp + eax*2 - 0x76], 0
je 0x1002f1cc
jmp 0x1002f2b1
xor eax, eax
mov word [ebp - 0x74], ax
shr ecx, 1
cmp ecx, 0x2d
jne 0x1002f2b1
call fcn.10003510
mov ecx, eax
test ecx, ecx
je 0x1002f2dc
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x78]
call fcn.1002d140
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x7c], 0
push eax
lea eax, [ebp - 0x20]
push 0x1006ca9c
push eax
call fcn.10003c70
mov esi, dword [ebp - 0x78]
push 0x2a
push esi
call fcn.1002d6d0
movzx eax, al
add esp, 0x14
cmp dword [ebp - 0x7c], eax
jne 0x1002f295
lea edx, [ebp - 0x74]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1002f236
sub edx, ecx
lea eax, [ebp - 0x74]
mov ecx, dword [ebp - 0x80]
sar edx, 1
push edx
push eax
call fcn.1002f330
push dword [0x10081728]
lea eax, [ebp - 0x74]
push dword [0x10081724]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x1002f272
mov dword [ebx], 1
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1002f28e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, 1
jmp 0x1002f2b3
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1002f2b1
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor esi, esi
test edi, edi
je 0x1002f2be
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
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.1002bf51
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100031a0
int3