joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100e28b5
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x101a4c2c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push edi
mov edi, dword [ebp + 0xc]
inc ebx
test edi, edi
jne 0x100e28e2
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x100e2a7a
cmp dword [ebp + 8], ebx
je 0x100e28ed
cmp dword [ebp + 8], 2
jne 0x100e28d3
mov edx, dword [edi]
xor ecx, ecx
push esi
push 0x104c
call fcn.100e26f0
mov esi, eax
mov dword [ebp - 0x10], esi
test esi, esi
je 0x100e2a79
mov ecx, esi
call fcn.100ddb45
mov ecx, dword [esi + 0x10]
lea edx, [ebp - 8]
call fcn.10128f5a
mov dword [ebp - 0xc], eax
test eax, eax
je 0x100e2938
push dword [ebp - 8]
mov ecx, dword [esi + 0x10]
mov edx, eax
call fcn.101290f5
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, esi
call fcn.100e2a8c
mov ecx, dword [esi + 0x10]
call fcn.100e24e4
cmp dword [ebp + 8], 2
jne 0x100e2956
mov edx, edi
mov ecx, esi
call fcn.100f0e45
mov ecx, esi
call fcn.100e1bc9
test eax, eax
je 0x100e297f
mov ecx, esi
call fcn.100e1cb4
test eax, eax
je 0x100e297f
mov eax, dword [esi + 0x24]
cmp dword [eax + 0x134], 0
je 0x100e297f
mov edx, esi
call fcn.100f0dc4
cmp dword [esi + 0x38], 0
je 0x100e2989
or dword [esi + 0x48], 0xc
mov eax, dword [esi + 0x28]
mov ecx, dword [eax + 4]
lea edi, [eax + 0x14]
test ecx, ecx
je 0x100e2a4b
mov esi, dword [ebp + 0xc]
dec ecx
cmp dword [edi + 0x10], 0
mov dword [ebp - 0xc], ecx
je 0x100e2a39
cmp dword [edi + 0x24], 0
je 0x100e29cf
mov edx, dword [ebp + 8]
mov ecx, edi
push esi
call fcn.100d89aa
mov ecx, dword [ebp - 0xc]
cmp eax, 0x80004001
je 0x100e2a39
xor ebx, ebx
test eax, eax
setns bl
jmp 0x100e2a39
cmp byte [edi + 0x3c], 0
jge 0x100e29da
mov eax, dword [edi + 0x5c]
jmp 0x100e29e4
push 7
pop edx
mov ecx, edi
call fcn.10110711
mov dword [ebp - 8], eax
test eax, eax
je 0x100e2a00
push esi
push dword [ebp + 8]
mov ecx, eax
call dword [0x101a77c4]
call dword [ebp - 8]
neg eax
sbb eax, eax
and ebx, eax
test byte [edi + 0x3d], 4
je 0x100e2a0b
mov eax, dword [edi + 0x68]
jmp 0x100e2a15
push 0xa
pop edx
mov ecx, edi
call fcn.10110711
mov dword [ebp - 8], eax
test eax, eax
je 0x100e2a36
push fcn.100e3210
push esi
push dword [ebp + 8]
mov ecx, eax
call dword [0x101a77c4]
call dword [ebp - 8]
neg eax
sbb eax, eax
and ebx, eax
mov ecx, dword [ebp - 0xc]
add edi, 0x78
test ecx, ecx
jne 0x100e299d
mov esi, dword [ebp - 0x10]
test ebx, ebx
je 0x100e2a71
test dword [esi + 0x48], 0x100
je 0x100e2a71
mov edx, dword [esi + 0x18]
mov eax, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
and eax, 0x100000
push eax
push ecx
push dword [esi + 0x34]
mov ecx, dword [esi + 0x10]
call fcn.1010d1ec
mov ebx, eax
push esi
call fcn.100e2690
mov eax, ebx
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.10166ce0
mov esp, ebp
pop ebp
ret 8
Function at 0x100e2c4e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x101a4c2c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
xor edx, edx
mov dword [ebp - 0x10], edx
mov ecx, dword [esi + 0x4fc]
mov eax, dword [esi + 0x4f8]
mov dword [ebp - 8], ecx
test ecx, ecx
jne 0x100e2c92
mov dword [esi + 0x4d4], eax
push ebx
mov ebx, dword [esi + 0x28]
mov eax, dword [ebx + 4]
test eax, eax
jne 0x100e2ca1
inc eax
jmp 0x100e2df2
cmp dword [esi + 0x4d4], eax
je 0x100e2c81
xor eax, eax
jmp 0x100e2df3
add ebx, 0x14
push edi
dec eax
cmp dword [ebx + 0x10], 0
mov dword [ebp - 0xc], eax
je 0x100e2de5
cmp dword [ebx + 0x24], 0
jne 0x100e2ce1
test byte [ebx + 0x3c], 4
je 0x100e2cc4
mov edx, dword [ebx + 0x48]
jmp 0x100e2cd6
push 2
pop edx
mov ecx, ebx
call fcn.10110711
mov ecx, dword [ebp - 8]
mov edx, eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], edx
test edx, edx
je 0x100e2de5
mov edi, dword [ebx + 0x14]
test edi, edi
jne 0x100e2d42
test ecx, ecx
jne 0x100e2de5
push 0x3c
push 8
push dword [esi + 0x44]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x100e2d9f
mov dword [ebx + 0x14], edi
mov dword [edi], 0x3c
mov ecx, dword [esi + 0x28]
mov ecx, dword [ecx]
mov dword [edi + 4], ecx
mov ecx, dword [esi + 0x10]
mov dword [edi + 8], ecx
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [ebx + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x44]
mov dword [edi + 0x14], eax
mov eax, dword [esi + 0x2c]
mov dword [edi + 0x18], eax
mov eax, dword [ebx + 0x1c]
mov dword [edi + 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [edi + 0x20], eax
mov eax, dword [esi + 0x4d8]
mov dword [edi + 0x24], eax
mov eax, dword [esi + 0x4d4]
mov dword [edi + 0x28], eax
mov eax, dword [ebp - 8]
mov dword [edi + 0x2c], eax
cmp dword [ebx + 0x24], 0
mov eax, dword [edi + 0x30]
mov ecx, dword [esi + 0x58]
mov dword [ebp - 0x14], eax
push edi
je 0x100e2da3
xor edx, edx
test ecx, ecx
mov ecx, ebx
setne dl
inc edx
call fcn.100d883b
cmp eax, 0x80004001
jne 0x100e2d95
push edi
push 0
push dword [esi + 0x44]
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [ebx + 0x14], 0
mov ecx, dword [ebp - 8]
jmp 0x100e2de2
test eax, eax
jns 0x100e2dbc
cmp dword [ebp - 8], 0
je 0x100e2d80
xor eax, eax
jmp 0x100e2df1
xor eax, eax
test ecx, ecx
mov ecx, dword [ebp - 0x10]
setne al
inc eax
push eax
call dword [0x101a77c4]
call dword [ebp - 0x10]
test eax, eax
je 0x100e2d99
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x100e2dd9
mov eax, dword [edi + 0x30]
cmp dword [ebp - 0x14], eax
jne 0x100e2d9f
imul eax, eax, 0x34
add ecx, eax
add dword [esi + 0x4fc], eax
mov dword [ebp - 8], ecx
mov eax, dword [edi + 0x30]
add dword [esi + 0x4f8], eax
mov eax, dword [ebp - 0xc]
add ebx, 0x78
test eax, eax
jne 0x100e2ca5
inc eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10166ce0
mov esp, ebp
pop ebp
ret
Function at 0x100e2fcb
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x101a4c2c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov dword [ebp - 0xc], edx
push edi
mov edi, dword [ebx + 0x28]
mov eax, dword [edi + 4]
test eax, eax
jne 0x100e2ff4
inc eax
jmp 0x100e30c5
add edi, 0x14
push esi
dec eax
cmp dword [edi + 0x10], 0
mov dword [ebp - 8], eax
je 0x100e30b8
cmp dword [edi + 0x24], 0
mov ecx, dword [ebx + 0x58]
je 0x100e3021
test ecx, ecx
jne 0x100e301a
mov esi, 0x100e2eb0
jmp 0x100e3053
mov esi, 0x100e2f40
jmp 0x100e3053
mov dl, byte [edi + 0x3c]
test ecx, ecx
jne 0x100e3036
test dl, 8
je 0x100e3032
mov esi, dword [edi + 0x4c]
jmp 0x100e304f
push 3
jmp 0x100e3042
test dl, 0x10
je 0x100e3040
mov esi, dword [edi + 0x50]
jmp 0x100e304f
push 4
pop edx
mov ecx, edi
call fcn.10110711
mov esi, eax
mov eax, dword [ebp - 8]
test esi, esi
je 0x100e30b8
push 0x2c
push 8
push dword [ebx + 0x44]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
test edx, edx
je 0x100e30d5
mov dword [edx], 0x2c
mov ecx, dword [ebx + 0x28]
push edx
push esi
push 5
mov ecx, dword [ecx]
mov dword [edx + 4], ecx
mov ecx, dword [ebx + 0x10]
mov dword [edx + 8], ecx
mov eax, dword [ebx + 0xc]
mov dword [edx + 0xc], eax
mov eax, dword [edi + 0x10]
mov dword [edx + 0x10], eax
mov eax, dword [ebx + 0x44]
mov dword [edx + 0x14], eax
mov eax, dword [ebx + 0x2c]
mov dword [edx + 0x18], eax
mov eax, dword [edi + 0x1c]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp - 0xc]
mov dword [edx + 0x24], eax
mov dword [edx + 0x28], edi
mov esi, dword [ebx + 0x70]
mov ecx, esi
push dword [ebx + 0x74]
call dword [0x101a77c4]
call esi
mov eax, dword [ebp - 8]
add edi, 0x78
test eax, eax
jne 0x100e2ff8
inc eax
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.10166ce0
mov esp, ebp
pop ebp
ret
xor eax, eax
jmp 0x100e30c4
Function at 0x100eac77
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x101a4c2c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov eax, edx
mov ebx, ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push esi
xor esi, esi
mov dword [ebp - 0x218], eax
mov dword [ebx], esi
mov dword [eax], esi
lea eax, [ebp - 0x20c]
push 0x104
push eax
mov dword [ecx], esi
push esi
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x220], edx
mov dword [edx], esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x100eace6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x100eadae
movzx eax, ax
or eax, 0x80070000
jmp 0x100eadae
push edi
push esi
lea eax, [ebp - 0x20c]
push eax
push 2
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeExW]
mov edi, eax
test edi, edi
je 0x100ead61
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
jne 0x100ead15
mov eax, 0x8007000e
jmp 0x100eadad
push esi
push edi
xor edi, edi
lea eax, [ebp - 0x20c]
push edi
push eax
push 2
call dword [sym.imp.VERSION.dll_GetFileVersionInfoExW]
test eax, eax
jne 0x100ead30
push esi
jmp 0x100ead5b
lea eax, [ebp - 0x214]
mov dword [ebp - 0x210], edi
push eax
lea eax, [ebp - 0x210]
mov dword [ebp - 0x214], edi
push eax
push 0x10018f30
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
push esi
test eax, eax
jne 0x100ead75
call dword [sym.imp.KERNEL32.dll_LocalFree]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x100eadad
movzx eax, ax
or eax, 0x80070000
jmp 0x100eadad
mov ecx, dword [ebp - 0x210]
mov edx, dword [ebp - 0x218]
movzx eax, word [ecx + 0xa]
mov dword [ebx], eax
movzx eax, word [ecx + 8]
mov dword [edx], eax
movzx eax, word [ecx + 0xe]
mov edx, dword [ebp - 0x21c]
mov dword [edx], eax
movzx eax, word [ecx + 0xc]
mov ecx, dword [ebp - 0x220]
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10166ce0
mov esp, ebp
pop ebp
ret 8
Function at 0x100eee2f
Capabilities:
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], edx
push ebx
push 0x100080
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x100eee97
push ebx
push ebx
push ebx
push 2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
test esi, esi
je 0x100eee8d
push ebx
push ebx
push ebx
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x100eee9f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or edi, 0xffffffff
test ebx, ebx
jne 0x100eee9f
xor eax, eax
jmp 0x100eeec9
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
push eax
push ebx
mov edx, dword [edx + 8]
call fcn.100f1069
mov edx, edi
mov ecx, ebx
mov esi, eax
call fcn.1010bf24
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100f1e61
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x101a4c2c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
and dword [ebp - 8], 0
mov edi, ecx
push 0x10
mov ecx, dword [esi + 0x34]
add ecx, dword [esi + 0x2c]
add ecx, dword [esi + 0x1c]
add ecx, dword [esi + 0x14]
mov eax, dword [esi + 4]
add ecx, dword [esi + 0xc]
add eax, 0x3c
pop ebx
add eax, ecx
mov dword [ebp - 0x14], 0x49464944
push 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x18]
push eax
push ebx
lea eax, [ebp - 0x14]
mov word [ebp - 0x10], bx
push eax
push edi
mov word [ebp - 0xe], dx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, esi
mov ecx, edi
call fcn.100f2098
mov ecx, dword [ebp - 4]
add eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10166ce0
mov esp, ebp
pop ebp
ret 4

Function at 0x100f1edb
Capabilities:
Get file size
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x101a4c2c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
mov dword [ebp - 0x18], eax
push edi
mov edi, ecx
test edx, edx
je 0x100f1f6c
cmp word [edx], ax
je 0x100f1f6c
push eax
push eax
push 3
push eax
push 1
push SysReAllocString
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
xor eax, eax
cmp esi, 0xffffffff
je 0x100f1f6e
push ebx
push 0x10
pop ebx
push eax
push esi
mov dword [ebp - 0x14], 0x52415644
mov word [ebp - 0x10], bx
mov word [ebp - 0xe], ax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
and dword [ebp - 8], 0
push 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x18]
push eax
push ebx
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebx
test eax, eax
je 0x100f1f60
mov edx, esi
mov ecx, edi
call fcn.100f2007
add dword [ebp - 0x18], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
jmp 0x100f1f6e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10166ce0
mov esp, ebp
pop ebp
ret

Function at 0x100f1f7e
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x101a4c2c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
xor ebx, ebx
mov dword [ebp - 0x18], ebx
push edi
mov edi, ecx
test esi, esi
je 0x100f1ff2
mov eax, dword [ebp + 8]
test eax, eax
je 0x100f1ff2
push 0x10
pop edx
push ebx
mov dword [ebp - 0xc], eax
xor ecx, ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x52415644
push eax
push edx
lea eax, [ebp - 0x14]
mov word [ebp - 0x10], dx
push eax
push edi
mov word [ebp - 0xe], cx
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100f1ff2
push ebx
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100f1ff2
mov eax, dword [ebp - 0x18]
add eax, dword [ebp + 8]
jmp 0x100f1ff4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10166ce0
mov esp, ebp
pop ebp
ret 4
Function at 0x100f2007
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x101a4c2c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
xor esi, esi
jmp 0x100f2061
cmp dword [ebp - 0x808], 0
je 0x100f2094
push 0
lea eax, [ebp - 0x80c]
push eax
push dword [ebp - 0x808]
lea eax, [ebp - 0x804]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100f2081
mov eax, dword [ebp - 0x80c]
cmp eax, dword [ebp - 0x808]
jne 0x100f2081
add esi, eax
push 0
lea eax, [ebp - 0x808]
push eax
push 0x800
lea eax, [ebp - 0x804]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100f2027
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10166ce0
mov esp, ebp
pop ebp
ret
mov eax, esi
jmp 0x100f2083

Function at 0x100f2943
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov ecx, dword [ebp + 8]
push esi
xor esi, esi
push edi
mov dword [ebx], esi
lea edx, [ecx + 2]
mov dword [ebx + 4], esi
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x100f295f
sub ecx, edx
sar ecx, 1
lea ecx, [ecx*2 + 0xa]
push ecx
push 0x40
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x100f2a40
mov eax, dword [ebp - 4]
mov ecx, edi
push dword [ebp + 8]
shr eax, 1
mov edx, eax
mov dword [ebp - 4], eax
call fcn.1003f1d4
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x100f29a4
sub ecx, edx
sar ecx, 1
dec ecx
push 0x2e
pop eax
test ecx, ecx
jle 0x100f29ca
cmp word [edi + ecx*2], ax
je 0x100f29c6
dec ecx
test ecx, ecx
jg 0x100f29bb
test ecx, ecx
jg 0x100f29e5
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x100f29cf
sub ecx, edx
sar ecx, 1
push 0x2e
pop eax
mov word [edi + ecx*2], ax
mov edx, dword [ebp - 4]
inc ecx
sub edx, ecx
push 0x10027338
lea ecx, [edi + ecx*2]
call fcn.1003f1d4
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100f2a39
mov edx, dword [ebp - 8]
mov ecx, edi
call fcn.100f2ab0
mov ecx, eax
mov dword [ebx], ecx
test ecx, ecx
je 0x100f2a39
cmp dword [ecx], 0x6c666e66
mov dword [ebx + 4], ecx
jne 0x100f2a39
mov eax, dword [ecx + 8]
cmp dword [ecx + eax], 0x63657266
jne 0x100f2a39
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], esi
mov dword [ebx + 0x10], esi
mov esi, dword [ecx + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100f2ab0
Capabilities:
Read file via mapping

Disassembly:
mov edi, edi
push esi
push edi
xor esi, esi
mov edi, edx
push esi
push 0x100080
push 3
or dword [edi], 0xffffffff
push esi
push 1
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x100f2b01
push esi
push esi
push esi
push 2
push esi
push eax
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
test edi, edi
je 0x100f2b01
push esi
push esi
push esi
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
ret
Function at 0x100f8e56
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x101a4c2c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x100f8f82
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x100f8f82
xor edi, edi
cmp dword [esi + 8], edi
jne 0x100f8e90
xor eax, eax
inc eax
jmp 0x100f8f8c
push edi
xor edx, edx
call fcn.100ff4d0
mov ebx, eax
test ebx, ebx
jne 0x100f8ea5
push 0x66
jmp 0x100f8f84
mov eax, dword [ebx + 0x24]
cmp dword [eax + 0x128], edi
jne 0x100f8f75
mov edx, ebx
mov ecx, esi
call fcn.100f8f9f
test eax, eax
je 0x100f8f70
mov edx, ebx
mov ecx, esi
call fcn.100f913e
test eax, eax
je 0x100f8f70
mov eax, dword [ebx + 0x28]
mov dword [ebp - 8], 1
mov ecx, dword [eax + 4]
lea edi, [eax + 0x14]
test ecx, ecx
je 0x100f8f75
dec ecx
cmp dword [edi + 0x10], 0
mov dword [ebp - 0xc], ecx
je 0x100f8f5e
cmp dword [edi + 0x24], 0
je 0x100f8f25
push dword [edi + 0x1c]
mov edx, ebx
mov ecx, edi
push dword [ebx + 0x2c]
push esi
call fcn.100d88ad
cmp eax, 0x80004001
je 0x100f8f5b
xor ecx, ecx
test eax, eax
setns cl
mov dword [ebp - 8], ecx
test eax, eax
js 0x100f8f6b
jmp 0x100f8f5b
test byte [edi + 0x3c], 0x20
je 0x100f8f30
mov eax, dword [edi + 0x54]
jmp 0x100f8f3d
push 5
pop edx
mov ecx, edi
call fcn.10110711
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x100f8f5e
push dword [edi + 0x1c]
mov ecx, eax
push dword [ebx + 0x2c]
push esi
push ebx
call dword [0x101a77c4]
call dword [ebp - 0x10]
test eax, eax
je 0x100f8f67
mov ecx, dword [ebp - 0xc]
add edi, 0x78
test ecx, ecx
jne 0x100f8eee
jmp 0x100f8f6b
and dword [ebp - 8], 0
mov esi, dword [ebp - 8]
jmp 0x100f8f78
mov dword [ebp - 8], edi
jmp 0x100f8f6b
xor esi, esi
inc esi
push ebx
call fcn.100ff470
mov eax, esi
jmp 0x100f8f8c
push 0x65
push esi
call fcn.100da506
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10166ce0
mov esp, ebp
pop ebp
ret 4
Function at 0x100ff4d0
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
mov eax, ebx
and al, 0x10
mov dword [ebp - 4], ecx
movzx eax, al
neg eax
push esi
sbb eax, eax
push edi
and eax, 0x4e0
mov edi, edx
add eax, 0x50
mov dword [ebp - 0x10], edi
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x100ff691
mov ecx, edi
test edi, edi
jne 0x100ff517
mov ecx, 0x10019320
call fcn.1010c088
mov dword [esi + 0xc], eax
test eax, eax
je 0x100ff691
mov dword [esi + 8], esi
mov dword [esi + 0x14], ebx
test bl, 5
je 0x100ff556
mov eax, ebx
and al, 4
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x101a4f70
push eax
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.WINSPOOL.DRV_OpenPrinterW]
test eax, eax
je 0x100ff691
mov eax, dword [ebp - 4]
mov dword [esi + 0x10], eax
test bl, 2
je 0x100ff5ba
mov ecx, dword [ebp - 4]
push 2
pop edx
mov dword [ebp - 8], 0x603
call fcn.1010c57f
mov edi, eax
test edi, edi
je 0x100ff59e
cmp dword [edi], 0
jne 0x100ff5a2
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x10025144
push dword [ebp - 4]
call dword [sym.imp.WINSPOOL.DRV_GetPrinterDataW]
test eax, eax
je 0x100ff5a2
and dword [ebp - 8], 0
test edi, edi
je 0x100ff5ad
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 8], 0x603
jne 0x100ff691
mov ecx, dword [ebp - 4]
push 3
call fcn.1010c79c
mov edi, eax
mov dword [ebp - 8], edi
test edi, edi
je 0x100ff691
test bl, 8
je 0x100ff5f3
push 4
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x603
push eax
push 4
push 0x10025144
push dword [ebp - 4]
call dword [sym.imp.WINSPOOL.DRV_SetPrinterDataW]
test bl, 0x40
je 0x100ff618
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x100ff618
call fcn.1015e708
mov edi, eax
test edi, edi
je 0x100ff618
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [ebp - 0x10]
lea edi, [esi + 0x20]
mov ecx, dword [ebp - 4]
lea eax, [ebp - 8]
push edi
push eax
push ebx
call fcn.100fe20b
cmp dword [ebp - 8], 0
mov dword [esi + 0x18], eax
je 0x100ff63e
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [esi + 0x18]
test edx, edx
je 0x100ff691
mov eax, dword [edi]
test eax, eax
je 0x100ff691
mov ecx, dword [eax + 0x2c]
add eax, ecx
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [esi + 0x24], ecx
je 0x100ff691
mov edx, dword [edx + 0x10]
push edx
mov edx, dword [edx + 0x14]
call fcn.10110158
mov dword [esi + 0x28], eax
test eax, eax
je 0x100ff691
mov dword [eax], esi
mov ecx, esi
mov edx, dword [esi + 0x28]
push 1
call fcn.101105a7
test eax, eax
je 0x100ff691
mov dword [esi], 8
mov eax, esi
mov dword [esi + 4], 0x1000598c
jmp 0x100ff699
push esi
call fcn.100ff470
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4