joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100e93ad
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x1019fbfc]
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 0x100e941c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x100e94e4
movzx eax, ax
or eax, 0x80070000
jmp 0x100e94e4
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 0x100e9497
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
jne 0x100e944b
mov eax, 0x8007000e
jmp 0x100e94e3
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 0x100e9466
push esi
jmp 0x100e9491
lea eax, [ebp - 0x214]
mov dword [ebp - 0x210], edi
push eax
lea eax, [ebp - 0x210]
mov dword [ebp - 0x214], edi
push eax
push 0x10018fc0
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
push esi
test eax, eax
jne 0x100e94ab
call dword [sym.imp.KERNEL32.dll_LocalFree]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x100e94e3
movzx eax, ax
or eax, 0x80070000
jmp 0x100e94e3
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.101637b0
leave
ret 8
Function at 0x100ed4fe
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 0x100ed566
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 0x100ed55c
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 0x100ed56e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or edi, 0xffffffff
test ebx, ebx
jne 0x100ed56e
xor eax, eax
jmp 0x100ed598
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.100ef67f
mov edx, edi
mov ecx, ebx
mov esi, eax
call fcn.1010a14f
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x100f0467
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1019fbfc]
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.100f0696
mov ecx, dword [ebp - 4]
add eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101637b0
leave
ret 4

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1019fbfc]
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 0x100f0570
cmp word [edx], ax
je 0x100f0570
push eax
push eax
push 3
push eax
push 1
push SysReAllocString
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x100f0570
push ebx
push 0x10
pop ebx
xor eax, eax
mov dword [ebp - 0x14], 0x52415644
push eax
push esi
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 0x100f0564
mov edx, esi
mov ecx, edi
call fcn.100f0607
add dword [ebp - 0x18], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
jmp 0x100f0572
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.101637b0
leave
ret

Function at 0x100f0580
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1019fbfc]
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 0x100f05f4
mov eax, dword [ebp + 8]
test eax, eax
je 0x100f05f4
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 0x100f05f4
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 0x100f05f4
mov eax, dword [ebp - 0x18]
add eax, dword [ebp + 8]
jmp 0x100f05f6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101637b0
leave
ret 4
Function at 0x100f0607
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x1019fbfc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
xor esi, esi
jmp 0x100f0661
cmp dword [ebp - 0x808], 0
je 0x100f0692
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 0x100f0681
mov eax, dword [ebp - 0x80c]
cmp eax, dword [ebp - 0x808]
jne 0x100f0681
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 0x100f0627
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101637b0
leave
ret
mov eax, esi
jmp 0x100f0683

Function at 0x100f0ef3
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 0x100f0f0f
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 0x100f0ff0
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.1003fc94
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x100f0f54
sub ecx, edx
sar ecx, 1
dec ecx
push 0x2e
pop eax
test ecx, ecx
jle 0x100f0f7a
cmp word [edi + ecx*2], ax
je 0x100f0f76
dec ecx
test ecx, ecx
jg 0x100f0f6b
test ecx, ecx
jg 0x100f0f95
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x100f0f7f
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 0x10027790
lea ecx, [edi + ecx*2]
call fcn.1003fc94
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100f0fe9
mov edx, dword [ebp - 8]
mov ecx, edi
call fcn.100f105a
mov ecx, eax
mov dword [ebx], ecx
test ecx, ecx
je 0x100f0fe9
cmp dword [ecx], 0x6c666e66
mov dword [ebx + 4], ecx
jne 0x100f0fe9
mov eax, dword [ecx + 8]
cmp dword [ecx + eax], 0x63657266
jne 0x100f0fe9
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
leave
ret 4
Function at 0x100f105a
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 0x100f10ab
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 0x100f10ab
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 0x100f7371
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x100f7493
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x100f7493
xor edi, edi
cmp dword [esi + 8], edi
jne 0x100f73a1
xor eax, eax
inc eax
jmp 0x100f749d
push edi
xor edx, edx
call fcn.100fd870
mov ebx, eax
test ebx, ebx
jne 0x100f73b6
push 0x66
jmp 0x100f7495
mov eax, dword [ebx + 0x24]
cmp dword [eax + 0x128], edi
jne 0x100f7486
mov edx, ebx
mov ecx, esi
call fcn.100f74a4
test eax, eax
je 0x100f7481
mov edx, ebx
mov ecx, esi
call fcn.100f7643
test eax, eax
je 0x100f7481
mov eax, dword [ebx + 0x28]
mov dword [ebp - 4], 1
mov ecx, dword [eax + 4]
lea edi, [eax + 0x14]
test ecx, ecx
je 0x100f7486
dec ecx
cmp dword [edi + 0x10], 0
mov dword [ebp - 8], ecx
je 0x100f746f
cmp dword [edi + 0x24], 0
je 0x100f7436
push dword [edi + 0x1c]
mov edx, ebx
mov ecx, edi
push dword [ebx + 0x2c]
push esi
call fcn.100d71df
cmp eax, 0x80004001
je 0x100f746c
xor ecx, ecx
test eax, eax
setns cl
mov dword [ebp - 4], ecx
test eax, eax
js 0x100f747c
jmp 0x100f746c
test byte [edi + 0x3c], 0x20
je 0x100f7441
mov eax, dword [edi + 0x54]
jmp 0x100f744e
push 5
pop edx
mov ecx, edi
call fcn.1010e691
mov ecx, dword [ebp - 8]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x100f746f
push dword [edi + 0x1c]
mov ecx, eax
push dword [ebx + 0x2c]
push esi
push ebx
call dword [0x101a27b8]
call dword [ebp - 0xc]
test eax, eax
je 0x100f7478
mov ecx, dword [ebp - 8]
add edi, 0x78
test ecx, ecx
jne 0x100f73ff
jmp 0x100f747c
and dword [ebp - 4], 0
mov esi, dword [ebp - 4]
jmp 0x100f7489
mov dword [ebp - 4], edi
jmp 0x100f747c
xor esi, esi
inc esi
push ebx
call fcn.100fd810
mov eax, esi
jmp 0x100f749d
push 0x65
push esi
call fcn.100d8d26
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x100fd870
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 0x100fda31
mov ecx, edi
test edi, edi
jne 0x100fd8b7
mov ecx, 0x10019380
call fcn.1010a2b1
mov dword [esi + 0xc], eax
test eax, eax
je 0x100fda31
mov dword [esi + 8], esi
mov dword [esi + 0x14], ebx
test bl, 5
je 0x100fd8f6
mov eax, ebx
and al, 4
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x1019ff40
push eax
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.WINSPOOL.DRV_OpenPrinterW]
test eax, eax
je 0x100fda31
mov eax, dword [ebp - 4]
mov dword [esi + 0x10], eax
test bl, 2
je 0x100fd95a
mov ecx, dword [ebp - 4]
push 2
pop edx
mov dword [ebp - 8], 0x603
call fcn.1010a79c
mov edi, eax
test edi, edi
je 0x100fd93e
cmp dword [edi], 0
jne 0x100fd942
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x100255a4
push dword [ebp - 4]
call dword [sym.imp.WINSPOOL.DRV_GetPrinterDataW]
test eax, eax
je 0x100fd942
and dword [ebp - 8], 0
test edi, edi
je 0x100fd94d
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 8], 0x603
jne 0x100fda31
mov ecx, dword [ebp - 4]
push 3
call fcn.1010a9b3
mov edi, eax
mov dword [ebp - 8], edi
test edi, edi
je 0x100fda31
test bl, 8
je 0x100fd993
push 4
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x603
push eax
push 4
push 0x100255a4
push dword [ebp - 4]
call dword [sym.imp.WINSPOOL.DRV_SetPrinterDataW]
test bl, 0x40
je 0x100fd9b8
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x100fd9b8
call fcn.1015b397
mov edi, eax
test edi, edi
je 0x100fd9b8
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.100fc5ce
cmp dword [ebp - 8], 0
mov dword [esi + 0x18], eax
je 0x100fd9de
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [esi + 0x18]
test edx, edx
je 0x100fda31
mov eax, dword [edi]
test eax, eax
je 0x100fda31
mov ecx, dword [eax + 0x2c]
add eax, ecx
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [esi + 0x24], ecx
je 0x100fda31
mov edx, dword [edx + 0x10]
push edx
mov edx, dword [edx + 0x14]
call fcn.1010e10d
mov dword [esi + 0x28], eax
test eax, eax
je 0x100fda31
mov dword [eax], esi
mov ecx, esi
mov edx, dword [esi + 0x28]
push 1
call fcn.1010e541
test eax, eax
je 0x100fda31
mov dword [esi], 8
mov eax, esi
mov dword [esi + 4], 0x1000586c
jmp 0x100fda39
push esi
call fcn.100fd810
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x100fda40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0xc
push ebx
xor ebx, ebx
inc ebx
push esi
test eax, eax
je 0x100fdbe1
cmp dword [ebp + 8], ebx
je 0x100fda67
cmp dword [ebp + 8], 2
jne 0x100fdbe1
mov edx, dword [eax]
xor ecx, ecx
push 0x104c
call fcn.100fd870
mov esi, eax
mov dword [ebp - 0xc], esi
test esi, esi
je 0x100fdbe9
push edi
mov ecx, esi
call fcn.100f9ec1
mov ecx, dword [esi + 0x10]
lea edx, [ebp - 8]
call fcn.10158756
mov edi, eax
test edi, edi
je 0x100fdaaf
push dword [ebp - 8]
mov ecx, dword [esi + 0x10]
mov edx, edi
call fcn.10158925
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, esi
call fcn.100fdbf1
mov ecx, dword [esi + 0x10]
call fcn.100e0d1a
mov ecx, esi
call fcn.100e0408
test eax, eax
je 0x100fdae7
mov ecx, esi
call fcn.100fd2eb
test eax, eax
je 0x100fdae7
mov eax, dword [esi + 0x24]
cmp dword [eax + 0x134], 0
je 0x100fdae7
mov edx, esi
call fcn.10108652
cmp dword [esi + 0x38], 0
je 0x100fdaf1
or dword [esi + 0x48], 0xc
mov eax, dword [esi + 0x28]
lea edi, [eax + 0x14]
mov eax, dword [eax + 4]
test eax, eax
je 0x100fdbb0
mov esi, dword [ebp + 0xc]
dec eax
cmp dword [edi + 0x10], 0
mov dword [ebp - 4], eax
je 0x100fdb9e
cmp dword [edi + 0x24], 0
je 0x100fdb34
mov edx, dword [ebp + 8]
mov ecx, edi
push esi
call fcn.100d72ae
cmp eax, 0x80004001
je 0x100fdb9b
xor ebx, ebx
test eax, eax
setns bl
jmp 0x100fdb9b
cmp byte [edi + 0x3c], 0
jge 0x100fdb3f
mov eax, dword [edi + 0x5c]
jmp 0x100fdb49
push 7
pop edx
mov ecx, edi
call fcn.1010e691
mov dword [ebp - 8], eax
test eax, eax
je 0x100fdb65
push esi
push dword [ebp + 8]
mov ecx, eax
call dword [0x101a27b8]
call dword [ebp - 8]
neg eax
sbb eax, eax
and ebx, eax
test byte [edi + 0x3d], 4
je 0x100fdb70
mov eax, dword [edi + 0x68]
jmp 0x100fdb7a
push 0xa
pop edx
mov ecx, edi
call fcn.1010e691
mov dword [ebp - 8], eax
test eax, eax
je 0x100fdb9b
push fcn.100e1980
push esi
push dword [ebp + 8]
mov ecx, eax
call dword [0x101a27b8]
call dword [ebp - 8]
neg eax
sbb eax, eax
and ebx, eax
mov eax, dword [ebp - 4]
add edi, 0x78
test eax, eax
jne 0x100fdb05
mov esi, dword [ebp - 0xc]
test ebx, ebx
je 0x100fdbd6
test dword [esi + 0x48], 0x100
je 0x100fdbd6
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.1010b411
mov ebx, eax
push esi
call fcn.100fd810
mov eax, ebx
pop edi
jmp 0x100fdbeb
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
pop ebx
leave
ret 8
Function at 0x100fdd9d
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
xor edx, edx
push edi
mov dword [ebp - 0xc], edx
mov ecx, dword [esi + 0x4f8]
mov eax, dword [esi + 0x4f4]
mov dword [ebp - 4], ecx
test ecx, ecx
jne 0x100fddca
mov dword [esi + 0x4d0], eax
jmp 0x100fddd6
cmp dword [esi + 0x4d0], eax
jne 0x100fdee1
mov ebx, dword [esi + 0x28]
mov eax, dword [ebx + 4]
test eax, eax
je 0x100fdf35
add ebx, 0x14
dec eax
cmp dword [ebx + 0x10], 0
mov dword [ebp - 8], eax
je 0x100fdf2a
cmp dword [ebx + 0x24], 0
jne 0x100fde23
test byte [ebx + 0x3c], 4
je 0x100fde06
mov edx, dword [ebx + 0x48]
jmp 0x100fde18
push 2
pop edx
mov ecx, ebx
call fcn.1010e691
mov ecx, dword [ebp - 4]
mov edx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], edx
test edx, edx
je 0x100fdf2a
mov edi, dword [ebx + 0x14]
test edi, edi
jne 0x100fde84
test ecx, ecx
jne 0x100fdf2a
push 0x3c
push 8
push dword [esi + 0x44]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x100fdee1
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 + 0x58]
mov dword [edi + 0x20], eax
mov eax, dword [esi + 0x4d4]
mov dword [edi + 0x24], eax
mov eax, dword [esi + 0x4d0]
mov dword [edi + 0x28], eax
mov eax, dword [ebp - 4]
mov dword [edi + 0x2c], eax
cmp dword [ebx + 0x24], 0
mov eax, dword [edi + 0x30]
mov ecx, dword [esi + 0x54]
mov dword [ebp - 0x10], eax
push edi
je 0x100fdee8
xor edx, edx
test ecx, ecx
mov ecx, ebx
setne dl
inc edx
call fcn.100d7184
cmp eax, 0x80004001
jne 0x100fded7
push edi
push 0
push dword [esi + 0x44]
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [ebx + 0x14], 0
mov ecx, dword [ebp - 4]
jmp 0x100fdf27
test eax, eax
jns 0x100fdf01
cmp dword [ebp - 4], 0
je 0x100fdec2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
xor eax, eax
test ecx, ecx
mov ecx, dword [ebp - 0xc]
setne al
inc eax
push eax
call dword [0x101a27b8]
call dword [ebp - 0xc]
test eax, eax
je 0x100fdedb
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x100fdf1e
mov eax, dword [edi + 0x30]
cmp dword [ebp - 0x10], eax
jne 0x100fdee1
imul eax, eax, 0x34
add ecx, eax
add dword [esi + 0x4f8], eax
mov dword [ebp - 4], ecx
mov eax, dword [edi + 0x30]
add dword [esi + 0x4f4], eax
mov eax, dword [ebp - 8]
add ebx, 0x78
test eax, eax
jne 0x100fdde7
xor eax, eax
inc eax
jmp 0x100fdee3
Function at 0x100fdf3a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, ecx
mov dword [ebp - 8], edx
push esi
push edi
mov edi, dword [ebx + 0x28]
mov eax, dword [edi + 4]
test eax, eax
je 0x100fe025
add edi, 0x14
dec eax
cmp dword [edi + 0x10], 0
mov dword [ebp - 4], eax
je 0x100fe01a
cmp dword [edi + 0x24], 0
mov ecx, dword [ebx + 0x54]
je 0x100fdf83
test ecx, ecx
jne 0x100fdf7c
mov esi, 0x100e1670
jmp 0x100fdfb5
mov esi, 0x100e16f0
jmp 0x100fdfb5
mov dl, byte [edi + 0x3c]
test ecx, ecx
jne 0x100fdf98
test dl, 8
je 0x100fdf94
mov esi, dword [edi + 0x4c]
jmp 0x100fdfb1
push 3
jmp 0x100fdfa4
test dl, 0x10
je 0x100fdfa2
mov esi, dword [edi + 0x50]
jmp 0x100fdfb1
push 4
pop edx
mov ecx, edi
call fcn.1010e691
mov esi, eax
mov eax, dword [ebp - 4]
test esi, esi
je 0x100fe01a
push 0x2c
push 8
push dword [ebx + 0x44]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
test edx, edx
je 0x100fe02d
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 - 8]
mov dword [edx + 0x24], eax
mov dword [edx + 0x28], edi
mov esi, dword [ebx + 0x6c]
mov ecx, esi
push dword [ebx + 0x70]
call dword [0x101a27b8]
call esi
mov eax, dword [ebp - 4]
add edi, 0x78
test eax, eax
jne 0x100fdf5a
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
xor eax, eax
jmp 0x100fe028
Function at 0x10102b2b
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, edx
mov ebx, ecx
xor ecx, ecx
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
mov dword [esi], ecx
push edi
mov edi, ecx
test ebx, ebx
je 0x10102cfc
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x10102cfc
cmp dword [eax + 4], ecx
je 0x10102cfc
lea ecx, [ebp - 0xc]
push ecx
push dword [eax + 0x14]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x10102bf9
push eax
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x10102bba
push edi
push dword [ebp - 0x10]
xor eax, eax
push eax
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 0x10]
push dword [eax + 0x14]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x10102bf9
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
push 0x10018fc0
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x10102bf9
cmp dword [ebp - 0x14], 0x14
jae 0x10102c15
mov esi, 0x8000ffff
jmp 0x10102b94
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x10102c10
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x10102b94
mov esi, dword [ebp - 4]
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 4]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x18]
jne 0x10102c21
sub ecx, edx
mov eax, 0x80070057