joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100043a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100470d7
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x100632c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x10], 0
mov dword [edi], 0x1004b9b8
mov dword [ebp - 0x14], edi
mov dword [edi + 0x50], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [edi]
lea esi, [edi + 4]
push 0
push esi
mov dword [ebp - 4], 0
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], 1
mov dword [edi + eax], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov ecx, dword [eax + 4]
add ecx, edi
call fcn.100078b0
mov eax, dword [edi]
push 8
mov dword [ebp - 4], 2
mov dword [ebp - 0x18], esi
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ecx + edi - 4], eax
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.1001b26d
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10004467
push 1
mov byte [ebp - 4], 3
call fcn.100121c1
add esp, 4
mov dword [ebx + 4], eax
jmp 0x10004469
xor ebx, ebx
lea eax, [esi + 4]
mov dword [esi + 0x34], ebx
mov dword [esi + 0xc], eax
lea ecx, [esi + 8]
lea eax, [esi + 0x14]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov dword [esi], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 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
Function at 0x10005840
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2024
call fcn.1001b630
mov eax, dword [0x100632c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x10005870
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001b60e
mov esp, ebp
pop ebp
ret
push 0x2000
xorps xmm0, xmm0
mov dword [ebp - 0x200c], 0
lea eax, [ebp - 0x2004]
movq qword [ebp - 0x2014], xmm0
push 0
movups xmmword [ebp - 0x2024], xmm0
push eax
mov word [ebp - 0x2008], 0
mov dword [ebp - 0x2020], 3
call fcn.10024530
push 0x1000
lea eax, [ebp - 0x2004]
push esi
push eax
call fcn.1003180a
lea eax, [ebp - 0x2004]
add esp, 0x18
mov dword [ebp - 0x201c], eax
mov eax, 0x614
mov word [ebp - 0x2014], ax
lea eax, [ebp - 0x2024]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.1001b60e
mov esp, ebp
pop ebp
ret

Function at 0x10005dd0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.1001b630
mov eax, dword [0x100632c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x4004]
push edi
mov edi, dword [ebp + 0xc]
push 0x4000
push 0
push eax
call fcn.10024530
add esp, 0xc
mov dword [ebp - 0x4008], 0
test esi, esi
je 0x10005ec7
test edi, edi
je 0x10005ec7
lea eax, [ebp - 0x4008]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x10005ec7
cmp eax, 0x3fff
ja 0x10005ec7
lea ecx, [ebp - 0x4004]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x10005ec7
lea eax, [ebp - 0x4010]
push eax
lea eax, [ebp - 0x400c]
push eax
push 0x1004b79c
lea eax, [ebp - 0x4004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x10005ec7
mov esi, dword [ebp + 0x10]
lea eax, [esi + esi]
push eax
push 0
push edi
call fcn.10024530
mov ecx, dword [ebp - 0x400c]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push str._d._d._d._d
push esi
lea eax, [esi - 1]
push eax
push edi
call fcn.100083c0
add esp, 0x2c
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001b60e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.1001b60e
mov esp, ebp
pop ebp
ret
Function at 0x100062c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x100632c0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x210]
push 1
push eax
call fcn.10018530
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x218], 1
push 0
push eax
mov dword [ebp - 0x214], 0x208
call fcn.10024530
mov eax, dword [str.ludashi]
add esp, 0x14
test eax, eax
je 0x100064ab
mov ecx, dword [ebp - 0x210]
nop
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x10006346
test dx, dx
je 0x10006342
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x10006346
add ecx, 4
add eax, 4
test dx, dx
jne 0x10006320
xor eax, eax
jmp 0x1000634b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10006373
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x218]
push eax
push 0x1004ba7c
push str.SOFTWARELudashi
jmp 0x10006461
push dword [0x10062090]
lea eax, [ebp - 0x210]
push eax
call fcn.10004f20
add esp, 8
test al, al
je 0x100063b5
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x218]
push eax
push 0x1004ba7c
push str.Software360WallPaper
push 0x80000001
jmp 0x10006466
push dword [0x1006208c]
lea eax, [ebp - 0x210]
push eax
call fcn.10004f20
add esp, 8
test al, al
je 0x100063ef
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x218]
push eax
push 0x1004ba7c
push str.SOFTWARELdsLite
jmp 0x10006461
push dword [0x10062094]
lea eax, [ebp - 0x210]
push eax
call fcn.10004f20
add esp, 8
test al, al
je 0x10006429
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x218]
push eax
push 0x1004ba7c
push str.SOFTWARELDSGameMaster
jmp 0x10006461
push dword [0x10062098]
lea eax, [ebp - 0x210]
push eax
call fcn.10004f20
add esp, 8
test al, al
je 0x1000646c
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x218]
push eax
push 0x1004ba7c
push str.SOFTWARECouponMaster
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
push ebx
xor ebx, ebx
cmp word [ebp - 0x20c], 0x31
push esi
mov esi, dword [ebp - 0x210]
sete bl
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10006499
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.1001b60e
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10003270
int3
Function at 0x100065e0
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10047396
mov eax, dword fs:[0]
push eax
sub esp, 0x130
push ebx
push esi
push edi
mov eax, dword [0x100632c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 0xffffffff
je 0x100066eb
test al, 0x10
je 0x100066eb
push ebx
mov esi, 1
call fcn.10005840
add esp, 4
test eax, eax
jne 0x10006773
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x10006773
push ebx
test esi, esi
jne 0x1000676b
call edi
test eax, eax
je 0x10006773
call fcn.10016490
test eax, eax
je 0x10006773
call fcn.10016490
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x10006773
call fcn.10016490
lea ecx, [ebp - 0x13c]
mov edi, eax
call fcn.100043a0
mov esi, eax
push 0x1004bb58
push esi
mov dword [ebp - 4], 1
call fcn.10003f20
test ebx, ebx
mov ecx, 0x1004b9c0
cmovne ecx, ebx
push ecx
push esi
call fcn.10003f20
push str._suceesss
push esi
call fcn.10003f20
mov eax, dword [edi]
add esp, 0x18
mov ecx, edi
push esi
call dword [eax + 0x14]
lea ecx, [ebp - 0x13c]
call fcn.10005100
jmp 0x10006773
push ebx
call edi
test eax, eax
je 0x10006644
call fcn.10016490
test eax, eax
je 0x10006773
call fcn.10016490
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x10006773
call fcn.10016490
lea ecx, [ebp - 0xa4]
mov edi, eax
call fcn.100043a0
mov esi, eax
push 0x1004bb58
push esi
mov dword [ebp - 4], 0
call fcn.10003f20
test ebx, ebx
mov ecx, 0x1004b9c0
cmovne ecx, ebx
push ecx
push esi
call fcn.10003f20
push str._suceesss
push esi
call fcn.10003f20
mov eax, dword [edi]
add esp, 0x18
mov ecx, edi
push esi
call dword [eax + 0x14]
lea ecx, [ebp - 0xa4]
call fcn.10005100
jmp 0x10006773
call fcn.10005840
add esp, 4
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
neg eax
sbb eax, eax
inc 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
Function at 0x10006b00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x10], 0
jne 0x10006b17
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push edi
push 0
push 0
push 0x80
push 2
push 1
push 0x40000000
push dword [ebp + 8]
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call fcn.100057a0
mov edi, dword [ebp - 8]
test eax, eax
js 0x10006b95
cmp dword [esi + 0x14], 0x10
mov eax, dword [esi + 0x10]
jb 0x10006b55
mov esi, dword [esi]
push 0
lea ecx, [ebp + 0xc]
push ecx
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10006b73
call fcn.10005570
mov esi, eax
test esi, esi
js 0x10006b8e
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x10006b8c
call fcn.10005570
mov esi, eax
not esi
shr esi, 0x1f
jmp 0x10006b97
xor esi, esi
not esi
shr esi, 0x1f
jmp 0x10006b97
xor esi, esi
test edi, edi
je 0x10006ba2
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10006ce0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10006d39
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10006d39
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x10006d2a
cmp esi, edx
jae 0x10006d39
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x10006d18
cmp esi, edx
jae 0x10006d39
cmp word [esi], 0
je 0x10006d39
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x1000a870
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100478c0
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x100632c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
lea eax, [ebp - 0x5c]
push eax
call fcn.1000ab10
push dword [ebp - 0x5c]
mov dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1000a8c2
xor esi, esi
jmp 0x1000aa26
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
push dword [ebp - 0x5c]
call fcn.100059c0
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
push 0x20
push str.45476F8083D74BA28A2DD8ED399737B7
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
call fcn.1000dbd0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.10013640
mov edx, dword [ebp - 0x44]
add esp, 0xc
mov byte [ebp - 4], 2
mov edi, eax
cmp edx, 0x10
jb 0x1000a970
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1000a966
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000aa65
push edx
push ecx
call fcn.1001b29d
add esp, 8
test edi, edi
je 0x1000a994
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.10009a70
lea ecx, [esi + 0x98]
call fcn.100087e0
mov esi, 1
jmp 0x1000a996
xor esi, esi
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x1000a9ce
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1000a9c4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000aa6a
push edx
push ecx
call fcn.1001b29d
add esp, 8
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x1000aa14
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1000aa0a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000aa6f
push edx
push ecx
call fcn.1001b29d
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov edi, dword [ebp - 0x5c]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x1000aa48
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
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.1001b60e
mov esp, ebp
pop ebp
ret
call fcn.100271ce
call fcn.100271ce
call fcn.100271ce
int3
Function at 0x1000f310
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10047dee
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
push ebx
push esi
push edi
mov eax, dword [0x100632c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
call fcn.10016490
test eax, eax
je 0x1000f3b2
call fcn.10016490
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x1000f3b2
mov edi, dword [ebx + 0x5c]
sub edi, dword [ebx + 0x58]
sar edi, 5
call fcn.10016490
lea ecx, [ebp - 0xb0]
mov ebx, eax
call fcn.100043a0
mov esi, eax
push str.config_ready__concurrence_count_
push esi
mov dword [ebp - 4], 0
call fcn.10003f20
add esp, 8
mov ecx, esi
push edi
call fcn.1000a3c0
mov eax, dword [ebx]
mov ecx, ebx
push esi
call dword [eax + 0x14]
lea ecx, [ebp - 0xb0]
mov dword [ebp - 4], 0xffffffff
call fcn.10005100
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebx + 0x5c]
mov eax, edx
sub eax, dword [ebx + 0x58]
cmp eax, 0x20
jb 0x1000f43a
lea esi, [ebx + 0x3c]
mov dword [ebp - 0x18], vtable._BaseModule::CAutoLocker.0
mov dword [ebp - 0x14], esi
test esi, esi
je 0x1000f3d8
mov eax, dword [esi]
push esi
call dword [eax]
mov edx, dword [ebx + 0x5c]
mov ecx, dword [ebx + 0x58]
xor edi, edi
sub edx, ecx
mov dword [ebp - 4], 1
sar edx, 5
test edx, edx
je 0x1000f422
xor esi, esi
nop
lea eax, [esi + ecx]
mov ecx, ebx
push eax
call fcn.10010b10
test eax, eax
je 0x1000f40c
mov eax, dword [ebx + 0x58]
mov ecx, ebx
add eax, esi
push eax
call fcn.100100a0
mov eax, dword [ebx + 0x5c]
inc edi
mov ecx, dword [ebx + 0x58]
add esi, 0x20
sub eax, ecx
sar eax, 5
cmp edi, eax
jb 0x1000f3f0
lea esi, [ebx + 0x3c]
mov dword [ebp - 4], 2
test esi, esi
je 0x1000f433
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
call fcn.10016490
test eax, eax
je 0x1000f4a5
call fcn.10016490
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x1000f4a5
mov edi, dword [ebx + 0x68]
sub edi, dword [ebx + 0x64]
sar edi, 5
call fcn.10016490
lea ecx, [ebp - 0xb0]
mov ebx, eax
call fcn.100043a0
mov esi, eax
push str.config_ready__sequential_count_
push esi
mov dword [ebp - 4], 3
call fcn.10003f20
add esp, 8
mov ecx, esi
push edi
call fcn.1000a3c0
mov eax, dword [ebx]
mov ecx, ebx
push esi
call dword [eax + 0x14]
lea ecx, [ebp - 0xb0]
call fcn.10005100
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x68]
sub eax, dword [ebx + 0x64]
test eax, 0xffffffe0
je 0x1000f4f1
cmp dword [ebx + 0x74], 0
jne 0x1000f4c9
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebx + 0x74], eax
cmp dword [ebx + 0x70], 0
jne 0x1000f4f1
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0
push ebx
push 0x10010330
push 0
push 0
call fcn.10033277
add esp, 0x18
mov dword [ebx + 0x70], eax
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 0x10
Function at 0x10016a90
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004848b
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x100632c0]
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, ecx
cmp dword [edi + 0x20], 8
lea esi, [edi + 0xc]
jb 0x10016acb
mov esi, dword [esi]
push 0x180
push 0x40
push 0x8101
lea ebx, [edi + 0x24]
push esi
push ebx
call fcn.10034b24
add esp, 0x14
mov dword [ebp - 0xac], eax
test eax, eax
je 0x10016b9c
push 0x98
lea eax, [ebp - 0xa8]
push 0
push eax
call fcn.10024530
add esp, 0xc
lea ecx, [ebp - 0xa8]
push 1
push 2
call fcn.10015620
push 0x10050cc0
push dword [ebp - 0xac]
lea eax, [ebp - 0xa8]
mov dword [ebp - 4], 0
push str._error.__
push esi
push str.open
push eax
call fcn.10003f20
add esp, 8
push eax
call fcn.10003f20
add esp, 8
push eax
call fcn.10003f20
add esp, 8
mov ecx, eax
call fcn.1000a210
push eax
call fcn.10003f20
add esp, 8
lea eax, [ebp - 0xc4]
lea ecx, [ebp - 0xa8]
push eax
call fcn.10016be0
cmp dword [eax + 0x14], 8
jb 0x10016b7f
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0xc4]
call fcn.10008670
lea ecx, [ebp - 0xa8]
call fcn.10005100
mov eax, dword [ebx]
cmp eax, 0xffffffff
je 0x10016bb5
push 2
push 0
push eax
call fcn.10034f4d
add esp, 0xc
mov dword [edi + 4], eax
jmp 0x10016bbc
mov dword [edi + 4], 0xffffffff
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.1001b60e
mov esp, ebp
pop ebp
ret
Function at 0x10016f20
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10048588
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x100632c0]
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, ecx
mov eax, dword [edi + 0x44]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x30], esi
cmp eax, 2
je 0x10017102
cmp eax, 1
jne 0x1001711a
cmp byte [edi + 8], 0
je 0x10016f76
call fcn.10016a90
mov byte [edi + 8], 0
cmp dword [edi + 4], 0x40000000
jle 0x10016fb2
mov eax, dword [edi + 0x24]
cmp eax, 0xffffffff
je 0x10016f97
push eax
call fcn.10034bee
add esp, 4
mov dword [edi + 0x24], 0xffffffff
cmp dword [edi + 0x20], 8
lea eax, [edi + 0xc]
jb 0x10016fa2
mov eax, dword [eax]
push eax
call fcn.10034216
add esp, 4
mov ecx, edi
call fcn.10016a90
cmp dword [edi + 0x28], 0
jne 0x1001704d
push 0
lea eax, [ebp - 0x60]
push esi
push eax
call fcn.10016ca0
add esp, 0xc
push 2
push 0x10050d14
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.10007280
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x48], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x38], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x48]
cmp dword [ebp - 0x34], 0x10
mov ecx, dword [edi + 0x24]
cmovae eax, dword [ebp - 0x48]
cmp ecx, 0xffffffff
je 0x10017032
push dword [ebp - 0x38]
push eax
push ecx
call fcn.10035503
add esp, 0xc
jmp 0x10017035
or eax, 0xffffffff
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x2c], eax
call fcn.10004ba0
lea ecx, [ebp - 0x60]
call fcn.10004ba0
jmp 0x100170f6
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
push 0
lea eax, [ebp - 0x60]
mov dword [ebp - 4], 1
push esi
push eax
call fcn.10016ca0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
push ecx
lea ecx, [edi + 0x2c]
push ecx
push eax
call fcn.10013b00
add esp, 0x18
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x60]
mov esi, eax
call fcn.10004ba0
test esi, esi
jne 0x100170a8
push 0xd
push str.write_failed.
lea ecx, [ebp - 0x28]
call fcn.1000dbd0
push 0x10050d14
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.10014e00
add esp, 0xc
cmp dword [eax + 0x14], 0x10
mov edx, dword [eax + 0x10]
jb 0x100170c8
mov eax, dword [eax]
mov ecx, dword [edi + 0x24]
cmp ecx, 0xffffffff
je 0x100170dd
push edx
push eax
push ecx
call fcn.10035503
add esp, 0xc
jmp 0x100170e0
or eax, 0xffffffff
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x2c], eax
call fcn.10004ba0
lea ecx, [ebp - 0x28]
call fcn.10004ba0
mov esi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
test eax, eax
jle 0x10017102
add dword [edi + 4], eax
jmp 0x1001711a
cmp dword [esi + 0x14], 8
jb 0x1001710a
mov esi, dword [esi]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call esi
push 0x10050d0c
call esi
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.1001b60e
mov esp, ebp
pop ebp
ret 4
Function at 0x10018640
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x100632c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
js 0x100187ac
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.10024530
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 0x100186af
lea eax, [ebp - 0x20c]
push eax
call edi
sub esi, 1
jne 0x100186a1
mov eax, dword [0x10064b6c]
mov esi, dword [eax]
cmp esi, eax
je 0x100187ac
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.10024530
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 0x100187d3
cmp ecx, 9
jne 0x10018764
push 0x208
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.10024530
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 0x100187bf
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x1001878a
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x10018786
cmp esi, dword [eax + 8]
jne 0x10018786
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x10018776
mov esi, eax
jmp 0x100187a0
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x100187a0
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x10018794
cmp esi, dword [0x10064b6c]
jne 0x100186d0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001b60e
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.1001b60e
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.1001b60e
mov esp, ebp
pop ebp
ret