joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401360
Capabilities:
Create pipe
Query environment variable
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.0040a320
mov eax, dword [0x248b2bc]
mov ecx, dword [0x248ad48]
push ebx
shr eax, 3
push esi
push edi
test eax, eax
je 0x401487
mov edi, dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
cmp dword [0x248b2bc], 0x959
jne 0x401471
push 0
lea eax, [ebp - 0xc08]
push eax
push 0
push 0
push 0
push 0
call edi
push str.zamuloguwatisofobus
push 0
call ebx
push 0
lea ecx, [ebp - 0x1808]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
push 0
push 0
push 0
call esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea edx, [ebp - 0x1408]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
push 0
lea eax, [ebp - 0x408]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push str.gotarurivocabowixetalakagaxahufijefisosefimazuwuhituwigoveyehucorocoyepep
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoW]
push 0
lea ecx, [ebp - 0x2008]
push ecx
push 0
call esi
mov edx, dword [ebp - 4]
push edx
call fcn.004010e0
add dword [ebp - 4], 8
dec dword [ebp - 8]
jne 0x40139e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403ff0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x472500]
jne 0x403ffa
repz ret
jmp fcn.0040786c

Function at 0x409d7e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x472500]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00405b0d
and dword [ebp - 0x14], 0
cmp dword [0x478bb0], 0
mov dword [ebp - 0x18], eax
jne 0x409e31
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x409ed9
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x409ed9
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x478bb0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x478bb4], eax
call edi
push eax
call esi
push 0x410814
push ebx
mov dword [0x478bb8], eax
call edi
push eax
call esi
mov dword [0x478bc0], eax
test eax, eax
je 0x409e31
push 0x4107fc
push ebx
call edi
push eax
call esi
mov dword [0x478bbc], eax
mov eax, dword [0x478bbc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x409e8a
cmp dword [0x478bc0], ecx
je 0x409e8a
push eax
call esi
push dword [0x478bc0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x409e8a
test ebx, ebx
je 0x409e8a
call edi
test eax, eax
je 0x409e81
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x409e81
test byte [ebp - 8], 1
jne 0x409e8a
or dword [ebp + 0x10], 0x200000
jmp 0x409ebd
mov eax, dword [0x478bb4]
cmp eax, dword [ebp - 0x18]
je 0x409ebd
push eax
call esi
test eax, eax
je 0x409ebd
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x409ebd
mov eax, dword [0x478bb8]
cmp eax, dword [ebp - 0x18]
je 0x409ebd
push eax
call esi
test eax, eax
je 0x409ebd
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x478bb0]
call esi
test eax, eax
je 0x409ed9
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x409edb
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403ff0
leave
ret
Function at 0x100020f1
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1dc
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esi
mov eax, dword [esi + 0x10c]
mov ecx, dword [eax + 0xd4]
cmp ecx, ebx
jge 0x1000211a
xor eax, eax
jmp 0x100022ca
lea edx, [ebp - 0xe4]
push edi
push edx
push 0x10037c28
push dword [eax + 0xd8]
push ecx
call fcn.1000102c
lea eax, [ebp - 0xe4]
mov byte [ebp - 0xe4], 0x62
push eax
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x100022c7
push 0xf8
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x10002183
push 0x3e
mov esi, eax
pop ecx
lea edi, [ebp - 0x1dc]
rep movsd dword es:[edi], dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [ebp - 0x10]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], ebx
je 0x100022c7
mov eax, dword [esi + 0x10c]
push 4
pop ecx
lea esi, [ebp - 0x19c]
mov edi, dword [eax + 0xdc]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x100022c7
lea eax, [ebp - 0xe4]
mov byte [ebp - 0xe4], 0x66
push eax
push ebx
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x100022c7
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push eax
lea eax, [ebp - 0x14c]
push ebx
push eax
push ebx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x100022be
cmp dword [ebp - 0xc], ebx
je 0x100022be
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x100022b5
push dword [ebp - 0x10]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
call esi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x144]
cdq
mov edi, eax
push 4
push dword [ebp - 8]
xor edi, edx
sub edi, edx
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
push ebx
mov dword [ebp - 0x14], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x10002298
push dword [ebp + 0xc]
push eax
call esi
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x1000228f
mov ecx, dword [ebp + 8]
push 0xcc0020
mov eax, dword [ecx + 8]
cdq
xor eax, edx
sub eax, edx
push eax
push dword [ecx + 4]
push ebx
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 0x148]
push ebx
push ebx
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_StretchBlt]
push dword [ebp + 0xc]
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp - 0x14]
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
push dword [ebp - 0x1c]
push dword [ebp - 8]
call esi
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp - 0x10]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x100022d0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d0
push ebx
mov ebx, ecx
push esi
push edi
mov eax, dword [ebx + 0x10c]
mov ecx, dword [eax + 0xd4]
test ecx, ecx
jl 0x10002467
lea edx, [ebp - 0xd8]
push edx
push 0x10037c34
push dword [eax + 0xd8]
push ecx
call fcn.1000102c
lea eax, [ebp - 0xd8]
mov byte [ebp - 0xd8], 0x62
push eax
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
test eax, eax
mov eax, dword [esi]
push esi
setne byte [ebp - 1]
call dword [eax + 0x2c]
mov edi, eax
cmp edi, dword [ebx + 0x14c]
mov dword [ebp - 0x10], edi
jl 0x10002378
and byte [ebp - 1], 0
push 0x64
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
push 0xa
push eax
push edi
mov dword [ebp + 8], eax
call dword [sym.imp.MSVCRT.dll__itoa]
add esp, 0xc
push 0
push str.error_
push dword [ebp + 8]
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [ebp + 8]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esi]
lea ecx, [ebp - 8]
push ecx
push esi
call dword [eax + 0xc]
test eax, eax
jne 0x1000238d
xor esi, esi
cmp dword [ebp - 8], esi
jne 0x10002397
mov eax, 0x80004005
jmp 0x10002469
cmp byte [ebp - 1], 0
je 0x10002467
push 0xf8
push esi
push esi
push 4
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, esi
mov dword [ebp + 8], eax
je 0x100023ce
push 0x3e
mov esi, eax
pop ecx
lea edi, [ebp - 0x1d0]
rep movsd dword es:[edi], dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 8], 0
je 0x10002467
mov eax, dword [ebx + 0x10c]
push 4
pop ecx
lea esi, [ebp - 0x190]
mov edi, dword [eax + 0xe4]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x10002467
lea eax, [ebp - 0xd8]
xor edi, edi
push eax
mov esi, 0xf001f
push edi
push esi
mov byte [ebp - 0xd8], 0x66
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
cmp eax, edi
mov dword [ebp + 8], eax
je 0x10002467
push dword [ebx + 0x14c]
push edi
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
je 0x1000245e
cmp byte [eax + 1], 0
jne 0x10002457
mov ecx, dword [ebp - 0x10]
lea edi, [eax + 8]
mov dword [eax + 4], ecx
mov esi, dword [ebp - 8]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [eax], 1
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1000a7c5
Capabilities:
Connect to http server
Create http request
Parse url

Disassembly:
push ecx
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov esi, ecx
push ebx
call fcn.1000a8bc
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionA]
lea eax, [esp + 0x10]
push 4
push eax
mov ebp, 0x80
push 0x49
push ebx
mov dword [esp + 0x20], ebp
call edi
lea eax, [esp + 0x10]
push 4
push eax
push 0x4a
push ebx
mov dword [esp + 0x20], ebp
call edi
push 0x3c
mov dword [esi + 0xc], 1
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov ebp, eax
push 0xf
pop ecx
xor eax, eax
mov edi, ebp
push ebp
rep stosd dword es:[edi], eax
mov dword [ebp], 0x3c
mov eax, dword [esi + 0x10]
mov dword [ebp + 0x10], eax
mov eax, 0x7e8
mov dword [ebp + 0x14], eax
mov ecx, dword [esi + 0x14]
push SysReAllocString
push ebx
mov dword [ebp + 0x2c], ecx
mov dword [ebp + 0x30], eax
push dword [esi + 0x18]
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
je 0x1000a89d
push ebx
push ebx
push ebx
push ebx
push 0x10038924
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, ebx
mov dword [esi], eax
je 0x1000a89d
mov cx, word [ebp + 0x18]
push ebx
push ebx
push 3
push ebx
push ebx
push ecx
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp eax, ebx
mov dword [esi + 4], eax
je 0x1000a89d
push ebx
push ebx
push 1
mov ecx, esi
mov dword [esi + 0xc], 2
call fcn.1000a90b
test al, al
jne 0x1000a8a1
mov dword [esi + 0xc], 6
mov byte [esi + 0x1c], 1
xor al, al
jmp 0x1000a8b6
push ebp
mov byte [esi + 0x1c], bl
mov dword [esi + 0xc], ebx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor eax, eax
cmp byte [esi + 0x1c], bl
sete al
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x1000c232
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x80], 0
jne 0x1000c285
push dword [esi + 0x7c]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [esp + 4]
push eax
push 0
push esi
push 0x1000c28a
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0x80], eax
jne 0x1000c285
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xffff
or ecx, 0x80070000
neg eax
sbb eax, eax
and eax, ecx
jmp 0x1000c287
xor eax, eax
pop esi
pop ecx
ret

Function at 0x1000ca48
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push esi
push ebx
push ebx
push 3
push ebx
push 3
push SysReAllocString
mov esi, ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x1000ca75
xor eax, eax
jmp 0x1000cadc
lea ecx, [ebp - 8]
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [ebp - 0xc], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
pop ecx
cmp edi, ebx
je 0x1000cad0
lea eax, [ebp - 4]
push ebx
push eax
push dword [ebp - 0xc]
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000cac9
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 4], eax
jne 0x1000cac9
mov dword [esi + 0x1f0], eax
mov eax, dword [ebp - 8]
push 1
mov dword [esi + 0x1f8], edi
mov dword [esi + 0x1f4], eax
pop ebx
jmp 0x1000cad0
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1000d579
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push edi
push eax
push dword [esi + 0x10]
and byte [esi + 0x2c], 0
mov edi, 0x80004005
mov dword [ebp - 4], edi
call fcn.1000d4c4
test al, al
je 0x1000d61a
cmp dword [ebp - 0x1c], 0x46464952
jne 0x1000d61a
cmp dword [ebp - 0x14], 0x20495641
jne 0x1000d61a
lea eax, [ebp - 0x1c]
push eax
push dword [esi + 0x10]
call fcn.1000d4c4
test al, al
je 0x1000d61a
cmp dword [ebp - 0x1c], 0x5453494c
jne 0x1000d61a
cmp dword [ebp - 0x14], 0x6c726468
jne 0x1000d61a
mov eax, dword [ebp - 0x18]
add eax, 0xffffffec
push eax
mov dword [esi + 0x18], eax
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
xor ebx, ebx
push 1
push ebx
push ebx
push dword [esi + 0x10]
mov dword [esi + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esi + 0x14], eax
lea eax, [ebp + 8]
push ebx
push eax
push dword [esi + 0x18]
push dword [esi + 0x1c]
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000d61a
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 0x18]
je 0x1000d621
mov eax, edi
jmp 0x1000d71e
mov edi, dword [esi + 0x1c]
mov ecx, dword [ebp - 0x18]
add ecx, edi
lea eax, [edi + 8]
cmp eax, ecx
jae 0x1000d673
mov ecx, dword [edi]
cmp ecx, 0x5453494c
je 0x1000d647
cmp ecx, 0x68697661
jne 0x1000d661
mov dword [esi + 0x20], edi
jmp 0x1000d661
cmp dword [eax], 0x6c727473
jne 0x1000d661
lea eax, [edi + 0xc]
mov ecx, esi
push eax
mov eax, dword [edi + 4]
sub eax, 4
push eax
call fcn.1000d518
mov eax, dword [edi + 4]
mov ecx, dword [esi + 0x1c]
add ecx, dword [ebp - 0x18]
lea edi, [edi + eax + 8]
lea eax, [edi + 8]
jmp 0x1000d62c
mov ebx, dword [esi + 0x20]
test ebx, ebx
je 0x1000d71b
mov eax, dword [esi + 0x24]
test eax, eax
je 0x1000d71b
cmp dword [esi + 0x28], 0
je 0x1000d71b
mov ecx, dword [ebx + 8]
test ecx, ecx
mov dword [ebp - 8], ecx
jbe 0x1000d71b
mov eax, dword [eax + 0x28]
test eax, eax
jbe 0x1000d71b
mov edi, dword [ebp + 0x14]
mov ecx, dword [edi + 4]
mov edx, dword [edi]
test ecx, ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], ecx
jl 0x1000d6db
jg 0x1000d6bc
test edx, edx
jbe 0x1000d6db
fild qword [ebp - 0x10]
and dword [ebp - 0xc], 0
mov dword [ebp - 0x10], eax
fmul qword [0x10038d48]
fild qword [ebp - 0x10]
fdivp st(1)
call sub.MSVCRT.dll__ftol
mov dword [ebx + 8], eax
jmp 0x1000d6ea
imul eax, dword [ebp - 8]
lea eax, [eax + eax*4]
shl eax, 1
mov dword [edi], eax
and dword [edi + 4], 0
mov eax, dword [edi]
mov dword [esi + 0x38], eax
mov eax, dword [edi + 4]
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x38]
or eax, dword [esi + 0x3c]
je 0x1000d71b
mov eax, dword [esi + 0x24]
mov ecx, dword [ebp + 0xc]
and dword [ebp - 4], 0
mov eax, dword [eax + 0x28]
mov dword [ecx], eax
mov eax, dword [esi + 0x20]
mov ecx, dword [ebp + 0x10]
mov eax, dword [eax + 8]
mov dword [ecx], eax
mov byte [esi + 0x2c], 1
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x1000d7ff
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov eax, 0x80004005
push edi
cmp byte [esi + 0x20], bl
mov edi, eax
je 0x1000d8bf
mov ecx, dword [esi + 0x14]
cmp ecx, ebx
je 0x1000d8a0
mov eax, dword [esi + 0x18]
cmp eax, ebx
je 0x1000d8a0
cmp dword [esi + 0x1c], ebx
je 0x1000d8a0
cmp dword [esi + 0x30], ebx
jl 0x1000d8a0
jg 0x1000d83b
cmp dword [esi + 0x2c], ebx
jbe 0x1000d8a0
mov eax, dword [eax + 0x28]
cmp eax, ebx
jbe 0x1000d8a0
mov dword [ecx + 0x18], eax
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x24]
mov dword [ebp - 4], ebx
mov dword [eax + 8], ecx
mov edi, dword [esi + 0x18]
mov eax, dword [edi + 0x20]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x14]
fild qword [ebp - 8]
mov eax, dword [eax + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], eax
fild qword [ebp - 8]
fdivr qword [0x100382e8]
fdivp st(1)
call sub.MSVCRT.dll__ftol
push ebx
push ebx
mov dword [edi + 0x1c], eax
push dword [esi + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp + 8]
push ebx
push eax
push dword [esi + 0xc]
push dword [esi + 0x10]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor edi, edi
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esi + 0x20], bl
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x1000d8bd
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [esi + 0x10], ebx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4

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

Disassembly:
mov eax, 0x10033907
call fcn.10031d20
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov dword [esi + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0xc], eax
lea edi, [esi + 0x10]
lea eax, [esi + 0x18]
mov dword [ebp - 0x10], esi
push eax
mov dword [esi], 0xff
mov dword [edi], ebx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [esi + 8]
mov dword [esi + 0x30], ebx
mov dword [esi + 0xfd4], ebx
lea ecx, [ebp + 8]
mov eax, dword [eax + 0x40]
push ecx
push eax
mov dword [ebp - 4], ebx
call fcn.1001015f
mov ebx, dword [ebp + 0x10]
push edi
push dword [ebp + 8]
mov dword [ebx], eax
call fcn.100101d7
mov dword [ebx], eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x1000f735
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [ecx + 0x10]
test eax, eax
je 0x1000f79f
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push 0x1003a774
push eax
call dword [ecx]
test eax, eax
je 0x1000f775
push eax
lea eax, [ebp - 0x408]
push str._CPATProcessor::MapPmtPid__::_QI_the_IMPEG2PIDMap_inf_on_PSI_out_pin_failed
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x408]
jmp 0x1000f798
mov eax, dword [ebp - 4]
test eax, eax
jne 0x1000f7a3
push eax
lea eax, [ebp - 0x408]
push str.CPATProcessor::MapPmtPid__::pIPmtPIDMap_is_null
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
jmp 0x1000f7cc
mov ecx, dword [ebp + 8]
push esi
lea edx, [ebp - 8]
push 2
push edx
push 1
pop esi
mov dword [ebp - 8], ecx
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0xc]
test eax, eax
jge 0x1000f7c0
xor esi, esi
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, esi
pop esi
leave
ret 4

Function at 0x1000f7d0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x1000f891
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push 0x1003a774
push eax
call dword [ecx]
cmp eax, ebx
je 0x1000f822
push eax
lea eax, [ebp - 0x408]
push str._CPATProcessor::SetupMPEGDeMux__::_QI_the_IMPEG2PIDMap_inf_on_PSI_out_pin_failed
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x1000f891
cmp dword [ebp - 4], ebx
jne 0x1000f845
push ebx
lea eax, [ebp - 0x408]
push str.CPATProcessor::SetupMPEGDeMux__::pIPmtPIDMap_is_null
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x408]
jmp 0x1000f819
cmp dword [esi + 0xfd4], ebx
jle 0x1000f877
lea edi, [esi + 0x804]
mov eax, dword [edi]
lea edx, [ebp - 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
push edx
push 1
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
test eax, eax
jl 0x1000f888
inc ebx
add edi, 4
cmp ebx, dword [esi + 0xfd4]
jl 0x1000f853
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
jmp 0x1000f883
Function at 0x1000f8f9
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc10
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
movzx eax, word [edi + 1]
mov ecx, eax
and ecx, 0xf
shl ecx, 8
shr eax, 8
or ecx, eax
cmp ecx, 0x3fd
jg 0x1000fa48
cmp ecx, 5
jl 0x1000fa48
mov al, byte [edi + 7]
cmp al, byte [edi + 6]
jb 0x1000fa48
mov al, byte [edi + 1]
and al, 0x80
cmp al, 0x80
jne 0x1000fa48
lea eax, [ecx - 9]
push 4
cdq
pop ecx
idiv ecx
test edx, edx
jne 0x1000fa48
cmp byte [edi], dl
jne 0x1000fa48
push dword [ebp + 0xc]
push edi
call fcn.10010346
test eax, eax
je 0x1000fa48
push edi
lea ecx, [ebp - 0x810]
call fcn.1000fa51
test eax, eax
je 0x1000fa48
mov eax, dword [ebp - 0x7e8]
mov ecx, dword [ebp - 0x7fc]
mov dword [esi], eax
mov eax, dword [ebp - 0x804]
and dword [ebp + 8], 0
mov dword [esi + 4], eax
mov eax, dword [esi + 0x30]
mov dword [esi + eax*4 + 0x34], ecx
inc dword [esi + 0x30]
cmp dword [ebp - 0x7e4], 0
jle 0x1000fa26
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea edi, [ebp - 0x7dc]
push str.add_new_program_n
call ebx
push dword [ebp + 8]
mov ecx, dword [esi + 0xc]
lea eax, [ebp - 0x810]
push eax
call fcn.1000fbce
push dword [edi - 4]
mov ecx, esi
call fcn.1000fce2
test eax, eax
jne 0x1000fa15
push dword [edi]
lea eax, [ebp - 0xc10]
push str.map_new_pmt_pid__d_to_demux_output_pin_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0xc10]
push eax
call ebx
push dword [edi]
mov ecx, esi
call fcn.1000f735
test eax, eax
je 0x1000fa48
inc dword [ebp + 8]
add edi, 8
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x7e4]
jl 0x1000f9c1
mov esi, dword [esi + 8]
test esi, esi
je 0x1000fa32
lea eax, [esi + 0xc]
jmp 0x1000fa34
xor eax, eax
push eax
push 0
push 0x8223
mov ecx, esi
call fcn.10022c40
push 1
pop eax
jmp 0x1000fa4a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8