joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7ea77a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x7ea78a
xor eax, eax
jmp 0x7ea953
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x7ea90b
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x811bbc]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x811bbc]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x811bbc]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x811bbc]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x811bbc]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x811bbc]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x811bbc]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x811bbc]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0x10]
sub ecx, 8
mov dword [ebp + 0x10], ecx
jmp 0x7ea793
cmp dword [ebp + 0x10], 0
je 0x7ea94d
mov edx, dword [ebp + 0xc]
xor eax, eax
mov al, byte [edx]
mov ecx, dword [ebp + 8]
xor ecx, eax
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
mov eax, dword [ecx*4 + 0x811bbc]
xor eax, edx
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
cmp dword [ebp + 0x10], 0
jne 0x7ea911
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x7f4100
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x80f388
cmp edx, dword [eax]
je 0x7f4122
add eax, 8
inc ecx
cmp eax, 0x80f418
jl 0x7f4113
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x80f388]
jne 0x7f4250
mov eax, dword [0x813798]
cmp eax, 1
je 0x7f422a
test eax, eax
jne 0x7f4153
cmp dword [0x80f0c4], 1
je 0x7f422a
cmp edx, 0xfc
je 0x7f4250
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x7f418a
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.007f2460
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.007f21e0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x7f41cd
lea eax, [ebp - 0x1a4]
push eax
call fcn.007f21e0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x812fd4
push edi
call fcn.007f2610
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.007f2460
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.007f2470
lea eax, [ebp - 0xa0]
push 0x812fb4
push eax
call fcn.007f2470
push dword [esi + 0x80f38c]
lea eax, [ebp - 0xa0]
push eax
call fcn.007f2470
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.007f66c8
add esp, 0x2c
pop edi
jmp 0x7f4250
lea eax, [ebp + 8]
lea esi, [esi + 0x80f38c]
push 0
push eax
push dword [esi]
call fcn.007f21e0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x449060
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
mov esi, dword [eax*4 + 0x47f098]
mov eax, esi
mov dword [esp + 0xc], esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x449088
sub eax, edx
mov edi, eax
mov ecx, edi
shr ecx, 5
inc ecx
mov ebx, edi
mov dword [esp + 0x14], edi
mov edx, edi
cmp edi, ecx
jb 0x4490c8
movzx eax, byte [esi + edx - 1]
mov esi, ebx
shl esi, 5
add eax, esi
mov esi, ebx
shr esi, 2
add eax, esi
mov esi, dword [esp + 0xc]
sub edx, ecx
xor ebx, eax
cmp edx, ecx
jae 0x4490a5
mov dword [esp + 0x14], ebx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
mov edx, dword [eax + 8]
mov eax, dword [eax]
dec edx
and edx, ebx
mov eax, dword [eax + edx*4]
test eax, eax
je 0x449142
lea ecx, [ecx]
cmp dword [eax + 0xc], edi
jne 0x44913c
mov ecx, edi
lea edx, [eax + 0x10]
cmp edi, 4
jb 0x449104
nop
mov ebx, dword [esi]
cmp ebx, dword [edx]
jne 0x449134
sub ecx, 4
add edx, 4
add esi, 4
cmp ecx, 4
jae 0x4490f0
test ecx, ecx
je 0x4491b3
mov bl, byte [edx]
cmp bl, byte [esi]
jne 0x449134
cmp ecx, 1
jbe 0x4491b3
mov bl, byte [edx + 1]
cmp bl, byte [esi + 1]
jne 0x449134
cmp ecx, 2
jbe 0x4491b3
mov cl, byte [edx + 2]
cmp cl, byte [esi + 2]
je 0x4491b3
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0xc]
mov eax, dword [eax]
test eax, eax
jne 0x4490e0
mov eax, dword [ebp + 8]
push esi
push eax
mov eax, ebx
call fcn.0042fd90
add esp, 8
mov ecx, dword [esp + 0x10]
or byte [eax + 5], 0x20
lea edx, [ecx + 1]
inc ecx
mov byte [eax + 6], dl
mov dword [esp + 0x10], ecx
cmp ecx, 0x1f
jl 0x449074
mov ecx, dword [str.type]
test ecx, ecx
je 0x4491ac
mov esi, 0x47f170
mov bl, 0x2d
mov edi, edi
mov eax, ecx
add esi, 4
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x449188
sub eax, edi
push eax
mov eax, dword [ebp + 8]
push ecx
push eax
call fcn.0042fe60
or byte [eax + 5], 0x20
mov byte [eax + 6], bl
mov ecx, dword [esi]
add esp, 0xc
test ecx, ecx
jne 0x449180
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
mov cl, byte [eax + 5]
mov esi, dword [esi + 0x10]
movzx ebx, byte [esi + 0x14]
movzx edx, cl
and edx, 3
not ebx
test bl, dl
je 0x449151
xor cl, 3
mov byte [eax + 5], cl
jmp 0x449151
Function at 0x401000
Capabilities:
Read .ini file

Disassembly:
push ebp
xor ecx, ecx
mov ebp, esp
sub esp, 0x1ac
mov eax, dword [0x407220]
push ebx
push esi
mov dword [ebp - 4], ecx
push edi
mov esi, 5
mov dword [ebp - 8], ecx
cmp eax, ecx
je 0x401035
mov edi, dword [eax]
push eax
push 0
call fcn.00401230
add esp, 8
mov eax, edi
test edi, edi
jne 0x401022
mov dword [0x407220], 0
mov dword [ebp - 0xa8], 0x94
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x401068
cmp dword [ebp - 0x98], 2
jne 0x401068
mov esi, 4
lea eax, [ebp - 8]
lea ecx, [ebp - 4]
push eax
push ecx
push 0
push 0
push esi
push 0
push 2
call sub.ZSPOOL.dll_EnumPrintersA
cmp dword [ebp - 4], 0
je 0x401139
mov eax, dword [ebp - 4]
add eax, 3
and eax, 0xfffffffc
call fcn.00404fe0
mov edi, esp
test edi, edi
je 0x401139
lea eax, [ebp - 8]
lea ecx, [ebp - 4]
push eax
mov edx, dword [ebp - 4]
push ecx
push edx
push edi
push esi
push 0
push 2
call sub.ZSPOOL.dll_EnumPrintersA
test eax, eax
je 0x401139
sub esi, 4
cmp esi, 1
sbb ebx, ebx
xor esi, esi
and ebx, 0xfffffff8
add ebx, 0x14
cmp dword [ebp - 8], esi
jbe 0x401139
push 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [edi]
push ecx
call sub.ZSPOOL.dll_OpenPrinterA
test eax, eax
je 0x401131
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x1ac]
push eax
lea edx, [ebp - 0x10]
push 0x104
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
push ecx
push edx
push str.ZSpoolDir
push eax
call sub.ZSPOOL.dll_GetPrinterDataA
test eax, eax
jne 0x401128
mov eax, dword [edi]
lea ecx, [ebp - 0x1ac]
push eax
push ecx
call fcn.004011a0
add esp, 8
mov eax, dword [ebp - 0xc]
push eax
call sub.ZSPOOL.dll_ClosePrinter
inc esi
add edi, ebx
cmp dword [ebp - 8], esi
ja 0x4010d0
push str.ZSCRIPT.INI
lea eax, [ebp - 0x1ac]
push 0x104
push eax
push 0x407460
push str.ZPSDirectory
push str.ZScript32
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x401174
push 0
lea eax, [ebp - 0x1ac]
push eax
call fcn.004011a0
add esp, 8
cmp dword [0x407220], 1
sbb eax, eax
inc eax
push eax
call fcn.00401250
add esp, 4
xor eax, eax
lea esp, [ebp - 0x1b8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x401550
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x10], 0x407010
push ebx
push esi
push edi
xor ebx, ebx
mov edi, dword [0x407010]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ebx
cmp edi, ebx
je 0x4016ea
mov esi, dword [ebp + 8]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 0
cmp dword [ebp + 0xc], 0
je 0x4015bc
lea eax, [edi + 4]
mov edx, dword [ebp + 0xc]
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x4015b3
or cl, cl
je 0x4015af
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x4015b3
add eax, 2
add edx, 2
or cl, cl
jne 0x401593
xor eax, eax
jmp 0x4015b8
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4015d2
push 0
lea eax, [ebp - 8]
push eax
lea ecx, [edi + 4]
push ecx
call sub.ZSPOOL.dll_OpenPrinterA
test eax, eax
je 0x4015d2
mov esi, dword [ebp - 8]
test esi, esi
je 0x40169c
cmp dword [edi + 0x20c], 0
je 0x40169c
mov dword [ebp - 4], 0
cmp dword [ebp + 0x10], 0
je 0x401607
push 3
mov eax, dword [edi + 0x20c]
push 0
push 0
push eax
push esi
call sub.ZSPOOL.dll_SetJobA
lea eax, [ebp - 4]
mov ecx, dword [edi + 0x20c]
push eax
push 0
push 0
push 2
push ecx
push esi
call sub.ZSPOOL.dll_GetJobA
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40169c
cmp dword [ebp - 4], 0
je 0x40169c
cmp ebx, dword [ebp - 4]
jae 0x401651
cmp dword [ebp - 4], 0x8000
jae 0x401651
mov ebx, dword [ebp - 4]
lea eax, [ebx + 0x67]
add ebx, 0x64
and eax, 0xfffffffc
call fcn.00404fe0
mov dword [ebp - 0xc], esp
cmp dword [ebp - 0xc], 0
je 0x40169c
lea eax, [ebp - 4]
mov ecx, dword [ebp - 0xc]
push eax
mov edx, dword [edi + 0x20c]
push ebx
push ecx
push 2
push edx
push esi
call sub.ZSPOOL.dll_GetJobA
test eax, eax
je 0x40169c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x34]
cmp eax, 0x80
je 0x401695
cmp eax, 0x100
je 0x401695
cmp eax, 2
je 0x401695
mov dword [ebp - 0x14], 0
jmp 0x40169c
mov dword [ebp - 0x14], 1
cmp dword [ebp - 0x14], 0
je 0x4016cb
lea eax, [edi + 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
mov eax, dword [ebp - 0x10]
mov dword [edi + 0x20c], 0
push eax
call fcn.00401230
add esp, 8
mov edi, dword [ebp - 0x10]
jmp 0x4016ce
inc dword [ebp - 0x18]
cmp dword [ebp - 8], 0
je 0x4016dd
mov eax, dword [ebp - 8]
push eax
call sub.ZSPOOL.dll_ClosePrinter
mov dword [ebp - 0x10], edi
mov edi, dword [edi]
test edi, edi
jne 0x401579
mov eax, dword [ebp - 0x18]
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401f00
Capabilities:
Get session user name

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0xc
push ebx
mov ecx, dword [eax + 4]
push esi
xor ebx, ebx
push edi
push ebp
push ecx
call fcn.00401de0
add esp, 4
mov esi, eax
cmp esi, ebx
je 0x4020a7
call fcn.00401b80
mov ebp, eax
xor ecx, ecx
mov eax, dword [esi + 0xc]
mov dword [esp + 0x18], ebx
cmp eax, ecx
je 0x401f44
mov ecx, eax
inc dword [esp + 0x18]
mov eax, dword [eax + 4]
test eax, eax
jne 0x401f37
test ebp, ebp
je 0x4020a7
test ecx, ecx
je 0x4020a7
mov edi, pe_nt_image_headers32
push ebp
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0x40
push ecx
call fcn.00401bb0
mov eax, dword [esp + 0x28]
add esp, 8
cmp dword [eax + 0x1c], 0
jne 0x401fce
push 2
call fcn.00401b70
add esp, 4
cmp dword [eax + 4], 0
jne 0x401f92
call fcn.004027d0
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x18]
push ecx
push 2
call fcn.00401b70
add esp, 4
push eax
call fcn.00401d10
add esp, 8
test eax, eax
je 0x401fce
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 8]
sub eax, eax
mov edi, ecx
mov dword [esp + 0x10], ecx
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea edi, [ecx + 0x80]
mov esi, dword [esp + 0x24]
add edi, esi
push edi
call dword [sym.imp.MSVCRT40.dll_malloc]
add esp, 4
mov dword [ebp + 8], eax
test eax, eax
je 0x4020a7
lea ebx, [esi + eax]
push 0xb
mov eax, dword [esp + 0x24]
push 0x4074a0
push esi
mov dword [ebp + 0xc], edi
push eax
mov ecx, dword [ebp + 8]
push eax
push ecx
push ecx
call sub.ZSPOOL.dll_ZSP_StructCopy
cmp dword [esp + 0x10], 0
je 0x40204c
mov eax, dword [ebp + 8]
mov edi, dword [esp + 0x10]
mov ecx, 0xffffffff
mov dword [eax + 0x1c], ebx
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov eax, dword [ebp + 8]
shr ecx, 2
mov esi, edi
mov edi, dword [eax + 0x1c]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x10]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
add ebx, ecx
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.ZSPOOL.dll_GetUserNameA]
test eax, eax
je 0x402066
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], ebx
add ebx, dword [esp + 0x14]
mov ecx, dword [str.Bogus]
mov eax, str.Bogus
mov dword [ebx], ecx
mov ax, word [eax + 4]
mov word [ebx + 4], ax
mov edx, dword [ebp + 8]
mov dword [edx + 0x2c], ebx
mov edx, dword [ebp + 8]
mov dword [edx + 0x34], 8
mov eax, dword [ebp + 8]
mov ebx, 1
add eax, 0x50
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov ecx, dword [ebp + 8]
mov eax, dword [esp + 0x18]
mov dword [ecx + 0x3c], eax
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x4020c0
Capabilities:
Read file via mapping

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x20
push ebx
push esi
push edi
xor esi, esi
push ebp
push eax
push esi
call fcn.00401d70
add esp, 8
mov edi, eax
cmp edi, esi
je 0x402145
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x10]
push eax
push str.ZSPOOL__X
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x1c]
add esp, 0xc
push ecx
push esi
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
cmp eax, esi
mov ebx, eax
je 0x402145
push esi
push esi
push esi
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebp, eax
test ebp, ebp
je 0x40213e
push 0xb
mov eax, dword [edi + 0xc]
push 0x4074a0
mov ecx, dword [edi + 8]
push eax
push ecx
push ecx
push esi
push ebp
call sub.ZSPOOL.dll_ZSP_StructCopy
mov esi, dword [edi + 0xc]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
call ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x20
ret
Function at 0x402970
Capabilities:
Delete file

Disassembly:
sub esp, 0x104
push ebx
push esi
push edi
xor esi, esi
mov ebx, dword [esp + 0x11c]
push ebp
push ebx
push esi
call fcn.00401d70
add esp, 8
mov edi, eax
cmp edi, esi
je case.0x4029c7.4
mov eax, 1
mov ebp, dword [edi + 0x14]
test ebp, ebp
je 0x4029b8
mov eax, dword [esp + 0x11c]
push ebx
push eax
push 0x8bc
push ebp
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, eax
mov eax, dword [esp + 0x11c]
dec eax
cmp eax, 4
ja case.0x4029c7.4
jmp dword [eax*4 + 0x402a40]
mov eax, dword [edi + 8]
or dword [eax + 0x34], 1
jmp case.0x4029c7.4
mov eax, dword [edi + 8]
mov edx, dword [esp + 0x118]
and dword [eax + 0x34], 0xfffffffe
mov eax, dword [edi + 8]
mov ecx, dword [eax + 4]
push ecx
push 0
push 0x857
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
jmp case.0x4029c7.4
test ebp, ebp
je case.0x4029c7.5
mov eax, dword [edi + 8]
or dword [eax + 0x34], 4
jmp case.0x4029c7.4
lea eax, [esp + 0x10]
push 0x104
push eax
push ebx
call sub.ZSPOOL.dll_ZSP_MakeSpoolFilePath
test eax, eax
je 0x402a2a
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
push edi
call fcn.00401ca0
add esp, 4
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x104
ret

Function at 0x4029fc
Capabilities:
Delete file

Disassembly:
sub esp, 0x104
push ebx
push esi
push edi
xor esi, esi
mov ebx, dword [esp + 0x11c]
push ebp
push ebx
push esi
call fcn.00401d70
add esp, 8
mov edi, eax
cmp edi, esi
je case.0x4029c7.4
mov eax, 1
mov ebp, dword [edi + 0x14]
test ebp, ebp
je 0x4029b8
mov eax, dword [esp + 0x11c]
push ebx
push eax
push 0x8bc
push ebp
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, eax
mov eax, dword [esp + 0x11c]
dec eax
cmp eax, 4
ja case.0x4029c7.4
jmp dword [eax*4 + 0x402a40]
mov eax, dword [edi + 8]
or dword [eax + 0x34], 1
jmp case.0x4029c7.4
mov eax, dword [edi + 8]
mov edx, dword [esp + 0x118]
and dword [eax + 0x34], 0xfffffffe
mov eax, dword [edi + 8]
mov ecx, dword [eax + 4]
push ecx
push 0
push 0x857
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
jmp case.0x4029c7.4
test ebp, ebp
je case.0x4029c7.5
mov eax, dword [edi + 8]
or dword [eax + 0x34], 4
jmp case.0x4029c7.4
lea eax, [esp + 0x10]
push 0x104
push eax
push ebx
call sub.ZSPOOL.dll_ZSP_MakeSpoolFilePath
test eax, eax
je 0x402a2a
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
push edi
call fcn.00401ca0
add esp, 4
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x104
ret
Function at 0x403110
Capabilities:
Identify system language via api

Disassembly:
sub esp, 0x60c
xor eax, eax
mov ecx, 0x40
push ebx
push esi
xor ebx, ebx
mov byte [esp + 0x110], bl
push edi
lea edi, [esp + 0x115]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edi, [esp + 0x519]
mov ecx, 0x3f
mov byte [esp + 0x518], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edi, [esp + 0x219]
mov ecx, 0x3f
mov byte [esp + 0xc], bl
mov byte [esp + 0x218], bl
mov word [esp + 0xd], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edi, [esp + 0x319]
mov ecx, 0x3f
mov byte [esp + 0x318], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edi, [esp + 0x419]
mov ecx, 0x3f
mov byte [esp + 0x418], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edi, [esp + 0x11]
mov ecx, 0x40
mov byte [esp + 0x10], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov si, ax
lea eax, [esp + 0x318]
movzx ecx, si
push eax
push ecx
call fcn.004030b0
lea ecx, [esp + 0x420]
add esp, 8
push ecx
and si, 0x3ff
or si, 0x400
movzx eax, si
push eax
call fcn.004030b0
lea eax, [esp + 0x220]
lea ecx, [esp + 0x520]
lea edx, [esp + 0x11c]
add esp, 8
push eax
push ecx
lea eax, [esp + 0x14]
push edx
mov ecx, dword [esp + 0x62c]
push eax
push ecx
call dword [sym.imp.MSVCRT40.dll__splitpath]
lea ecx, [esp + 0x22c]
lea eax, [esp + 0x32c]
add esp, 0x14
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push ecx
push eax
call esi
test eax, eax
je 0x4032e5
lea eax, [esp + 0x218]
lea ecx, [esp + 0x418]
push eax
push ecx
call esi
test eax, eax
je 0x4032e5
lea eax, [esp + 0x318]
lea ecx, [esp + 0x518]
lea edx, [esp + 0x114]
push eax
lea eax, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
push edx
push eax
mov edi, dword [sym.imp.MSVCRT40.dll__makepath]
push ecx
call edi
lea ecx, [esp + 0x24]
add esp, 0x14
mov esi, dword [sym.imp.MSVCRT40.dll__access]
push 4
push ecx
call esi
add esp, 8
test eax, eax
je 0x4032cd
lea eax, [esp + 0x418]
lea ecx, [esp + 0x518]
lea edx, [esp + 0x114]
push eax
lea eax, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
push edx
push eax
push ecx
call edi
lea ecx, [esp + 0x24]
add esp, 0x14
push 4
push ecx
call esi
add esp, 8
test eax, eax
jne 0x4032e5
lea eax, [esp + 0x10]
mov ecx, dword [esp + 0x61c]
push eax
mov ebx, 1
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, ebx
pop edi
pop esi
pop ebx
add esp, 0x60c
ret
Function at 0x403be0
Capabilities:
Delete file

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [esp + 0x14]
push edi
push ebp
test esi, esi
je 0x403cd9
cmp dword [esi], 0x99887766
jne 0x403cd9
lea eax, [esi + 0x188]
mov ebx, 0
mov ebp, 0
mov edi, dword [eax]
cmp edi, 1
adc ebx, 0xffffffff
and ebx, eax
lea eax, [esi + 0x14]
mov ecx, 0
cmp byte [eax], 1
adc ebp, 0xffffffff
and ebp, eax
lea eax, [esi + 0x118]
cmp byte [eax], 1
adc ecx, 0xffffffff
and ecx, eax
mov dword [esp + 0x10], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
lea ecx, [esi + 0x158]
push 0
mov dword [esi + 0x10], eax
mov dword [esi + 0x158], 0x30
mov eax, dword [esp + 0x18]
push eax
push ecx
call sub.QDPRINT.dll_QdOpenProgress
push esi
mov ecx, dword [esi + 8]
mov dword [esp + 0x18], eax
push 0x403b30
mov edx, dword [esp + 0x18]
push 0
push 0
mov eax, dword [esi + 4]
push ebx
push ecx
push ebp
push edx
push eax
call sub.QDPRINT.dll_QdSMF
cmp dword [esp + 0x14], 0
je 0x403c98
lea eax, [esi + 0x158]
push eax
call sub.QDPRINT.dll_QdCloseProgress
cmp dword [esi + 0xc], 0
je 0x403ca9
test ebp, ebp
je 0x403ca9
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test edi, edi
je 0x403ccf
add ebx, 4
mov ebp, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 0xc
mov eax, dword [ebx]
push eax
call ebp
test eax, eax
jne 0x403cc9
mov eax, dword [ebx]
mov dword [eax], 5
add ebx, 4
dec edi
jne 0x403cb6
push esi
call dword [sym.imp.MSVCRT40.dll_free]
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret 4

Function at 0x403cf0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 4
push esi
xor esi, esi
test eax, eax
je 0x403d4e
cmp dword [eax], 0x99887766
jne 0x403d4e
mov dword [esp + 4], esi
cmp dword [0x4077e8], esi
je 0x403d21
push eax
call fcn.00403be0
mov esi, eax
mov eax, esi
pop esi
add esp, 4
ret
lea ecx, [esp + 4]
push ecx
push 0
push eax
push fcn.00403be0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x403d4e
mov eax, dword [esp + 0xc]
push str.CreateThread:SMFPrint
push eax
call fcn.00404cc0
add esp, 8
mov eax, esi
pop esi
add esp, 4
ret
Function at 0x403ec0
Capabilities:
Delete file

Disassembly:
sub esp, 0x68
mov dword [esp + 4], 0xffffffff
mov dword [esp + 8], 0
lea eax, [esp + 0x28]
push ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 8
push esi
push edi
push ebp
push eax
mov esi, dword [esp + 0x80]
mov ecx, dword [esi]
push ecx
push esi
call fcn.00403410
add esp, 0xc
test eax, eax
je 0x403fd5
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x40]
mov edi, dword [esp + 0x44]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
mov edx, dword [esp + 0x3c]
push ecx
push edx
call sub.ZSPOOL.dll_OpenPrinterA
test eax, eax
je 0x403fce
lea eax, [esp + 0x28]
mov dword [esp + 0x24], 0
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x24], ebx
lea ebx, [esp + 0x24]
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], 0x407614
push ebx
push 2
push ecx
call sub.ZSPOOL.dll_StartDocPrinterA
mov ebx, eax
test ebx, ebx
je 0x403fc4
push str.IMF32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
test ebp, ebp
je 0x403fba
push str.ImfPrintJob
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x403fb3
mov ecx, dword [esp + 0x10]
push 0
push 0
push 0
push ebx
push 0
push edi
push ecx
call eax
mov dword [esp + 0x14], eax
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x10]
push eax
call sub.ZSPOOL.dll_EndDocPrinter
mov eax, dword [esp + 0x10]
push eax
call sub.ZSPOOL.dll_ClosePrinter
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call dword [sym.imp.MSVCRT40.dll_free]
mov eax, dword [esp + 0x18]
add esp, 4
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x68
ret 4