joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b5b60
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x5edd38]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
mov dword [esi + 0x24], 0
test eax, eax
je 0x4b5b96
push eax
call dword [sym.imp.GDI32.dll_CloseEnhMetaFile]
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov eax, dword [esi + 8]
test eax, eax
je 0x4b5bab
push eax
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
mov dword [esi + 8], 0
cmp dword [esi + 0x1c], 0
je 0x4b5bdc
cmp dword [esi + 0x20], 8
lea eax, [esi + 0xc]
jb 0x4b5bbd
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esi + 0x1c], 0
lea eax, [esi + 0xc]
cmp dword [esi + 0x20], 8
jb 0x4b5bd7
mov eax, dword [esi + 0xc]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x414]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4b5c81
lea eax, [ebp - 0x20c]
push eax
push 0
push 0x5a7070
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4b5c81
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
movaps xmm0, xmmword [0x5a70f0]
lea eax, [ebp - 0x424]
push 0
push eax
push 0
push 0
movups xmmword [ebp - 0x424], xmm0
call dword [sym.imp.GDI32.dll_CreateEnhMetaFileW]
lea edx, [ebp - 0x20c]
mov dword [esi + 4], eax
mov dword [esi + 8], 0
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4b5c56
sub edx, ecx
lea eax, [ebp - 0x20c]
sar edx, 1
lea ecx, [esi + 0xc]
push edx
push eax
call fcn.00408f30
push dword [esi + 0x44]
push dword [esi + 4]
call dword [sym.imp.GDI32.dll_SetPolyFillMode]
mov ecx, dword [ebp - 4]
pop edi
mov dword [esi + 0x28], 0
xor ecx, ebp
pop esi
call fcn.00401682
mov esp, ebp
pop ebp
ret

Function at 0x4b5fb0
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x4b5fcb
push eax
call dword [sym.imp.GDI32.dll_CloseEnhMetaFile]
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov eax, dword [esi + 8]
test eax, eax
je 0x4b5fe0
push eax
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
mov dword [esi + 8], 0
cmp dword [esi + 0x1c], 0
je 0x4b6017
cmp dword [esi + 0x20], 8
push edi
lea edi, [esi + 0xc]
mov eax, edi
jb 0x4b5ff4
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [edi + 0x10], 0
cmp dword [edi + 0x14], 8
jb 0x4b600a
mov edi, dword [edi]
xor eax, eax
mov word [edi], ax
pop edi
mov dword [esi + 0x24], eax
mov dword [esi], eax
pop esi
ret
mov dword [esi + 0x24], 0
mov dword [esi], 0
pop esi
ret
Function at 0x4bc5c0
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x576ff0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5edd38]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea esi, [edi + 0x18]
push esi
mov dword [ebp - 0x24], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [edi + 0x14]
mov dword [ebp - 4], 0
test ebx, ebx
jne 0x4bc699
nop dword [eax]
push 0
push 0x5a7100
push 0x5a7100
push 0
push 0x5a7100
inc ebx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4bc689
mov eax, dword [edi + 0x10]
add edi, 0x10
mov dword [ebp - 0x18], eax
cmp dword [edi + 4], 0x15555555
je 0x4bc6e0
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], 0
push 0xc
lfence
call fcn.00406a5e
mov edx, dword [ebp - 0x18]
add esp, 4
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
mov dword [eax + 8], ecx
inc dword [edi + 4]
mov ecx, dword [edx + 4]
mov edi, dword [ebp - 0x10]
mov dword [eax], edx
mov dword [eax + 4], ecx
mov dword [edx + 4], eax
mov dword [ebp - 0x1c], 0
mov dword [ecx], eax
cmp ebx, 3
jl 0x4bc610
mov ebx, dword [edi + 0x14]
test ebx, ebx
jne 0x4bc699
xor edi, edi
jmp 0x4bc6c5
mov eax, dword [edi + 0x10]
push 0xc
mov edx, dword [eax]
push edx
mov eax, dword [edx + 8]
mov ecx, dword [edx]
mov dword [ebp - 0x10], eax
lea eax, [ebx - 1]
mov dword [edi + 0x14], eax
mov eax, dword [edx + 4]
mov dword [eax], ecx
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
call fcn.00409f25
mov edi, dword [ebp - 0x10]
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
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
push str.list_too_long
call fcn.0053b6e7
int3

Function at 0x4c1860
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x577048
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x5edd38]
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 - 0x14], edi
mov dword [edi], vtable.acrobat_broker::WininetCallbackReceiver.0
lea esi, [edi + 0xc]
mov word [edi + 4], 0
mov byte [edi + 6], 0
mov dword [edi + 8], 0
mov dword [ebp - 4], 0
mov dword [esi], 0
mov dword [esi + 4], 0
push 0x18
mov dword [ebp - 0x10], esi
lfence
call fcn.00406a5e
add esp, 4
lea ecx, [edi + 0x14]
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
push ecx
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4d9b30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x579028
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5edd38]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 8
mov dword [ebx + 0x30], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0x201
mov dword [ebx + 0x18], 6
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0xc], 0
call fcn.00406a5e
mov edi, eax
add esp, 4
test edi, edi
je 0x4d9bd4
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0046ce4a
add esp, 4
mov dword [edi + 4], eax
jmp 0x4d9bd6
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [ebx + 0x30], edi
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], 0
mov edi, dword [edi + 4]
mov dword [ebp - 0x14], edi
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x5817c0]
mov ecx, edi
call esi
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 1
push eax
call fcn.0047da60
mov edi, eax
add esp, 4
mov ecx, dword [edi]
push 0x20
mov esi, dword [ecx + 0x20]
mov ecx, esi
call dword [0x5817c0]
mov ecx, edi
call esi
mov edi, dword [ebp - 0x14]
mov byte [ebp - 0xd], al
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x4d9c62
mov edx, dword [edi]
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x5817c0]
mov ecx, edi
call esi
mov edi, eax
test edi, edi
je 0x4d9c5f
mov ecx, dword [edi]
push 1
mov esi, dword [ecx]
mov ecx, esi
call dword [0x5817c0]
mov ecx, edi
call esi
mov al, byte [ebp - 0xd]
cmp dword [ebx + 0x38], 0
mov byte [ebx + 0x40], al
jne 0x4d9c7e
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x10]
and eax, 0x13
or eax, 4
mov dword [ebx + 0xc], eax
and ecx, eax
jne 0x4d9ca1
cmp byte [ebp + 0xc], 0
je 0x4d9c8d
push ebx
call fcn.0053bb79
add esp, 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
test cl, 4
je 0x4d9cad
mov esi, str.ios_base::badbit_set
jmp 0x4d9cbd
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x18]
push 1
push eax
call fcn.0047c830
add esp, 8
lea ecx, [ebp - 0x2c]
push eax
push esi
call fcn.0047acc0
push 0x5d83a0
lea eax, [ebp - 0x2c]
push eax
call fcn.0053e427
int3
Function at 0x4e1ff0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x579cbb
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x5edd38]
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
mov dword [ebp - 0x238], edi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x10], 0
jne 0x4e2036
mov al, 1
jmp 0x4e218f
xor bl, bl
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4e2042
mov eax, dword [esi]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x4e2061
cmp eax, 0x50
je 0x4e2061
cmp eax, 0xb7
jne 0x4e218d
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.0053f340
add esp, 0xc
lea ecx, [ebp - 0x234]
push esi
call fcn.0040a1e0
mov edi, dword [edi]
lea edx, [ebp - 0x234]
cmp dword [ebp - 0x220], 8
mov dword [ebp - 4], 0
cmovae edx, dword [ebp - 0x234]
mov eax, dword [edi]
push edx
push 0
push 0
mov esi, dword [eax + 0x60]
mov ecx, esi
call dword [0x5817c0]
mov ecx, edi
call esi
test eax, eax
jne 0x4e2166
mov edi, dword [ebp - 0x220]
lea esi, [ebp - 0x234]
cmp edi, 8
lea ecx, [ebp - 0x21c]
mov eax, ecx
mov edx, 0x105
cmovae esi, dword [ebp - 0x234]
sub esi, eax
lea eax, [edx + 0x7ffffef9]
test eax, eax
je 0x4e2101
movzx eax, word [esi + ecx]
test ax, ax
je 0x4e2101
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x4e20e3
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
test edx, edx
je 0x4e216c
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
test eax, eax
je 0x4e2166
push 0x5aa190
push 0x105
lea eax, [ebp - 0x21c]
push eax
call fcn.0042f0d0
test eax, eax
js 0x4e2166
mov edi, dword [ebp - 0x238]
lea ecx, [ebp - 0x21c]
push ecx
push 0
push 0
mov edi, dword [edi]
mov eax, dword [edi]
mov esi, dword [eax + 0x60]
mov ecx, esi
call dword [0x5817c0]
mov ecx, edi
call esi
test eax, eax
sete bl
mov edi, dword [ebp - 0x220]
mov dword [ebp - 4], 1
cmp edi, 8
jb 0x4e218d
lea ecx, [edi + 1]
push ecx
push dword [ebp - 0x234]
lea ecx, [ebp - 0x234]
call fcn.0040a2e0
mov al, bl
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.00401682
mov esp, ebp
pop ebp
ret 4

Function at 0x4e21b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
cmp dword [esi + 0x10], 0
je 0x4e2200
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4e21ca
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4e2200
cmp dword [esi + 0x14], 8
jb 0x4e21dd
mov esi, dword [esi]
mov edi, dword [edi]
push esi
push 5
push 2
mov eax, dword [edi]
mov esi, dword [eax + 0x60]
mov ecx, esi
call dword [0x5817c0]
mov ecx, edi
call esi
test eax, eax
pop edi
sete al
pop esi
pop ebp
ret 4
pop edi
mov al, 1
pop esi
pop ebp
ret 4
Function at 0x4eb5b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57a282
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x5edd38]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x44], 0
xor ecx, ecx
mov esi, 0x5f4134
xor eax, eax
lock cmpxchg dword [esi], ecx
test eax, eax
jne 0x4eb747
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push 0x20019
push 0x5b4ca8
push 0x80000002
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.0040c860
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
push ecx
push str.Path
mov ecx, eax
mov dword [ebp - 0x44], 1
call fcn.0041f7a0
test eax, eax
jne 0x4eb66e
cmp dword [ebp - 0x30], eax
je 0x4eb66e
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4eb66e
mov bl, 1
jmp 0x4eb670
xor bl, bl
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], 1
call fcn.0040c8e0
test bl, bl
je 0x4eb68a
mov ecx, 1
jmp 0x4eb6f8
push 0x20019
push str.SOFTWAREMicrosoftOffice11.0OutlookInstallRoot
push 0x80000002
lea ecx, [ebp - 0x4c]
call fcn.0040c860
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
push ecx
push str.Path
mov ecx, eax
mov dword [ebp - 0x44], 2
call fcn.0041f7a0
test eax, eax
jne 0x4eb6df
cmp dword [ebp - 0x18], eax
je 0x4eb6df
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4eb6df
mov bl, 1
jmp 0x4eb6e1
xor bl, bl
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], 1
call fcn.0040c8e0
xor ecx, ecx
test bl, bl
sete cl
inc ecx
mov byte [ebp - 4], 4
xor eax, eax
lock cmpxchg dword [esi], ecx
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4eb717
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0040a2e0
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 4], 5
cmp eax, 8
jb 0x4eb747
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.0040a2e0
xor ecx, ecx
xor eax, eax
lock cmpxchg dword [esi], ecx
cmp eax, 1
sete al
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.00401682
mov esp, ebp
pop ebp
ret
Function at 0x4f1a70
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57ab31
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5edd38]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov ecx, edi
mov ebx, dword [ebp + 0x10]
push ebx
mov dword [ebp - 0x18], edi
call fcn.0040a1e0
lea eax, [ebx + 0x18]
mov dword [ebp - 4], 0
push eax
lea ecx, [edi + 0x18]
call fcn.0040a1e0
lea eax, [ebx + 0x30]
mov byte [ebp - 4], 1
push eax
lea ecx, [edi + 0x30]
call fcn.0040a1e0
lea eax, [ebx + 0x48]
mov byte [ebp - 4], 2
push eax
lea ecx, [edi + 0x48]
call fcn.0040a1e0
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0
mov dword [edi + 0x68], 0
mov eax, dword [ebx + 0x60]
mov ecx, dword [ebx + 0x64]
mov byte [ebp - 4], 3
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
cmp eax, ecx
je 0x4f1b4b
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
lea ecx, [edi + 0x60]
sar edx, 2
mov esi, edx
shr esi, 0x1f
add esi, edx
push esi
call fcn.00408e00
lea edx, [edi + 0x60]
mov dword [edx], eax
lea ecx, [esi + esi*2]
mov dword [edx + 4], eax
lea eax, [eax + ecx*8]
mov dword [ebp - 0x1c], edx
mov dword [edx + 8], eax
push dword [edx]
mov ecx, edx
mov byte [ebp - 4], 4
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.00497c70
mov dword [edi + 0x64], eax
mov eax, dword [ebx + 0x6c]
mov dword [edi + 0x6c], 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 0x4f1f50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56d600
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5edd38]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00406a5e
mov esi, eax
add esp, 4
test esi, esi
je 0x4f1fb0
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0046ce4a
add esp, 4
mov dword [esi + 4], eax
jmp 0x4f1fb2
xor esi, esi
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 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 0x4f87c0
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x78], 0
je 0x4f87eb
cmp dword [esi + 0x7c], 0
je 0x4f87eb
cmp dword [esi + 0x80], 0
je 0x4f87eb
cmp dword [esi + 0x84], 0
je 0x4f87eb
cmp dword [esi + 0x88], 0
jne 0x4f8866
push str.prntvpt.dll
call fcn.0042ec60
mov edi, eax
add esp, 4
test edi, edi
je 0x4f886b
push str.PTOpenProvider
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x78], eax
test eax, eax
je 0x4f886b
push str.PTConvertDevModeToPrintTicket
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x7c], eax
test eax, eax
je 0x4f886b
push str.PTCloseProvider
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x80], eax
test eax, eax
je 0x4f886b
push str.PTConvertPrintTicketToDevMode
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x84], eax
test eax, eax
je 0x4f886b
push str.PTReleaseMemory
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x88], eax
test eax, eax
je 0x4f886b
pop edi
mov al, 1
pop esi
ret
pop edi
xor al, al
pop esi
ret

Function at 0x4f9d50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x5edd38]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x4f9e2b
cmp byte [ebx + 0x3d], 0
je 0x4f9e2b
mov eax, dword [ebx]
push esi
push 0xffffffffffffffff
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x5817c0]
mov ecx, ebx
call esi
cmp eax, 0xffffffff
je 0x4f9e19
push edi
mov edi, dword [ebx + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov esi, dword [edi]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebx + 0x40]
push eax
mov esi, dword [esi + 0x20]
mov ecx, esi
call dword [0x5817c0]
mov ecx, edi
call esi
pop edi
sub eax, 0
je 0x4f9dde
sub eax, 1
je 0x4f9de2
sub eax, 2
jne 0x4f9e19
mov byte [ebx + 0x3d], al
mov al, 1
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401682
mov esp, ebp
pop ebp
ret
mov byte [ebx + 0x3d], 0
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x4f9e02
lfence
push dword [ebx + 0x4c]
push esi
push 1
push eax
call fcn.0054ad53
add esp, 0x10
cmp esi, eax
jne 0x4f9e19
cmp byte [ebx + 0x3d], 0
pop esi
sete al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401682
mov esp, ebp
pop ebp
ret
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401682
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop ebx
call fcn.00401682
mov esp, ebp
pop ebp
ret
Function at 0x4fa450
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x5edd38]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
cmp ebx, 0xffffffff
jne 0x4fa480
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401682
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi + 0x20]
push esi
mov ecx, dword [eax]
test ecx, ecx
je 0x4fa4bc
mov edx, dword [edi + 0x30]
mov esi, dword [edx]
lea eax, [esi + ecx]
cmp ecx, eax
jae 0x4fa4bc
lea ecx, [esi - 1]
mov dword [edx], ecx
mov edx, dword [edi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop edi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401682
mov esp, ebp
pop ebp
ret 4
cmp dword [edi + 0x4c], 0
je 0x4fa5b7
mov esi, dword [edi + 0xc]
lea eax, [edi + 0x3c]
cmp dword [esi], eax
jne 0x4fa4e4
mov edx, dword [edi + 0x54]
mov ecx, dword [edi + 0x50]
sub edx, ecx
mov dword [esi], ecx
mov eax, dword [edi + 0x1c]
mov dword [eax], ecx
mov eax, dword [edi + 0x2c]
mov dword [eax], edx
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x34], eax
test eax, eax
jne 0x4fa51a
push dword [edi + 0x4c]
movsx eax, bl
push eax
call fcn.0054daeb
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop esi
pop edi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401682
mov esp, ebp
pop ebp
ret 4
mov byte [ebp - 0x28], bl
mov esi, dword [eax]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
mov esi, dword [esi + 0x1c]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
mov ecx, esi
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [edi + 0x40]
push eax
call dword [0x5817c0]
mov ecx, dword [ebp - 0x34]
call esi
test eax, eax
js 0x4fa5b7
cmp eax, 1
jle 0x4fa587
cmp eax, 3
jne 0x4fa5b7
lfence
push dword [edi + 0x4c]
push dword [ebp - 0x28]
call fcn.004f1830
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop esi
pop edi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401682
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x4fa5a7
lfence
push dword [edi + 0x4c]
push esi
push 1
push eax
call fcn.0054ad53
add esp, 0x10
cmp esi, eax
jne 0x4fa5b7
lea eax, [ebp - 0x28]
mov byte [edi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x4fa4a7
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.00401682
mov esp, ebp
pop ebp
ret 4
Function at 0x4fad80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
je 0x4fae61
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
test esi, esi
jl 0x4fae50
jg 0x4fadb8
test edx, edx
je 0x4fae50
call fcn.00497170
mov esi, eax
mov eax, edx
mov dword [ebp - 0xc], eax
test eax, eax
jl 0x4fae06
jg 0x4fadce
test esi, esi
je 0x4fae06
cmp ebx, eax
jg 0x4faddd
jl 0x4fadd8
cmp edi, esi
jae 0x4faddd
mov esi, edi
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 8]
push esi
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
push dword [eax]
call fcn.0053e840
mov ecx, dword [ebp - 4]
add esp, 0xc
sub edi, esi
sbb ebx, dword [ebp - 0xc]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x4fae35
mov eax, dword [ebp - 8]
movzx ecx, byte [eax]
mov eax, dword [ebp - 4]
push ecx
mov eax, dword [eax]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x5817c0]
mov ecx, dword [ebp - 4]
call esi
cmp eax, 0xffffffff
je 0x4fae4a
mov ecx, dword [ebp - 4]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [ebp - 8], esi
test ebx, ebx
jg 0x4fadb8
jl 0x4fae4a
test edi, edi
jne 0x4fadb8
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
pop edi
sbb esi, ebx
mov eax, edx
mov edx, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x10], esi
mov eax, dword [eax]
mov dword [ebp - 0x14], edi
mov dword [ebp - 8], eax
test eax, eax
je 0x4fae80
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x4fae82
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [ebp - 0xc], eax
test edi, edi
jl 0x4faefb
jg 0x4fae94
test esi, esi
je 0x4faefb
test eax, eax
jl 0x4faed5
jg 0x4fae9e
test ebx, ebx
je 0x4faed5
cmp edi, eax
jg 0x4faead
jl 0x4faea8
cmp esi, ebx
jae 0x4faead
mov ebx, esi
mov dword [ebp - 0xc], edi
push ebx
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.0053e840
mov ecx, dword [ebp - 4]
add esp, 0xc
mov edx, dword [ebp + 8]
add edx, ebx
sub esi, ebx
mov eax, dword [ecx + 0x30]
sbb edi, dword [ebp - 0xc]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
jmp 0x4faed8
mov edx, dword [ebp + 8]
test edi, edi
jl 0x4faefb
jg 0x4faee2
test esi, esi
je 0x4faefb
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x4faefb
push eax
push esi
push 1
push edx
call fcn.0054ad53
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc