joyce8/EMBER2024-capa huggingface dataset:
Function at 0x463033
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x56bd94
call fcn.0052efe4
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
mov edi, 0x64fedc
push str._sMediaProbe.exe
push edi
call fcn.00548b6f
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0xc
push dword [0x64fedc]
call esi
test eax, eax
jne 0x463077
push str.MediaProbe.exe
mov ecx, edi
call fcn.0054caeb
push ebx
mov edi, 0x64fee0
push str._sMediaEncode.exe
push edi
call fcn.00548b6f
add esp, 0xc
push dword [0x64fee0]
call esi
test eax, eax
jne 0x4630a3
push str.MediaEncode.exe
mov ecx, edi
call fcn.0054caeb
push dword [0x64fee0]
lea eax, [ebp - 0x14]
push eax
call fcn.0041f07b
pop ecx
pop ecx
and dword [ebp - 4], 0
push 0x5cb118
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0054cbf9
push eax
mov ecx, 0x64fee4
mov byte [ebp - 4], 1
call fcn.0054ca9b
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0054c954
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0054c954
push ebx
mov edi, 0x64fee8
push str._sMediaPlay.exe
push edi
call fcn.00548b6f
add esp, 0xc
push dword [0x64fee8]
call esi
test eax, eax
jne 0x46311a
push str.MediaPlay.exe
mov ecx, edi
call fcn.0054caeb
cmp dword [0x64feec], 0
jne 0x46321e
mov eax, dword [0x64b44c]
mov dword [ebp + 8], eax
push 2
lea eax, [ebp + 8]
pop edi
push ebx
push str._s_avcodec_60.dll
push eax
mov dword [ebp - 4], edi
call fcn.00548b6f
add esp, 0xc
push dword [ebp + 8]
call esi
test eax, eax
je 0x46315a
mov dword [0x64feec], 6
cmp dword [0x64feec], 0
jne 0x463212
push ebx
lea eax, [ebp + 8]
push str._s_avcodec_59.dll
push eax
call fcn.00548b6f
add esp, 0xc
push dword [ebp + 8]
call esi
test eax, eax
je 0x46318c
mov dword [0x64feec], 5
cmp dword [0x64feec], 0
jne 0x463212
push ebx
lea eax, [ebp + 8]
push str._s_avcodec_58.dll
push eax
call fcn.00548b6f
add esp, 0xc
push dword [ebp + 8]
call esi
test eax, eax
je 0x4631ba
mov dword [0x64feec], 4
cmp dword [0x64feec], 0
jne 0x463212
push ebx
lea eax, [ebp + 8]
push str._s_avcodec_57.dll
push eax
call fcn.00548b6f
add esp, 0xc
push dword [ebp + 8]
call esi
test eax, eax
je 0x4631e8
mov dword [0x64feec], 3
cmp dword [0x64feec], 0
jne 0x463212
push ebx
lea eax, [ebp + 8]
push str._s_avcodec_56.dll
push eax
call fcn.00548b6f
add esp, 0xc
push dword [ebp + 8]
call esi
test eax, eax
je 0x463212
mov dword [0x64feec], edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0054c954
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword [0x64fef0], 1
xor eax, eax
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x463239
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push dword [0x64fee8]
call esi
test eax, eax
je 0x463259
xor eax, eax
push eax
push eax
push eax
push dword [0x64fee8]
jmp 0x463289
push dword [0x64fee0]
call esi
test eax, eax
je 0x463272
xor eax, eax
push eax
push eax
push eax
push dword [0x64fee0]
jmp 0x463289
push dword [0x64fedc]
call esi
test eax, eax
je 0x463291
xor eax, eax
push eax
push eax
push eax
push dword [0x64fedc]
push eax
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
pop esi
ret

Function at 0x4634f6
Capabilities:
Check if file exists
Set current directory

Disassembly:
mov eax, 0x56bdf0
call fcn.0052efe4
sub esp, 0x1c
push ebx
push esi
push edi
mov esi, ecx
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x463534
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0041f07b
pop ecx
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [ebp - 0x10]
call fcn.0054c954
lea eax, [ebp - 0x14]
push eax
call fcn.004279e1
pop ecx
mov eax, dword [eax]
and dword [ebp - 4], 0
push 1
push 1
push eax
lea ecx, [ebp - 0x28]
call fcn.0041e118
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.0054c954
push dword [ebp + 8]
lea edi, [esi + 0x70]
mov ecx, edi
call fcn.0054caeb
push dword [ebp + 0x10]
mov eax, esi
neg eax
push dword [ebp - 0x24]
lea ecx, [esi + 0x68]
sbb eax, eax
and eax, ecx
mov ecx, esi
push eax
call fcn.004632b6
test eax, eax
je 0x46358b
mov esi, eax
jmp 0x4635c0
push dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov eax, dword [esi]
mov ecx, esi
push ebx
push dword [ebp - 0x24]
call dword [eax + 0x28]
test eax, eax
je 0x4635a5
or esi, 0xffffffff
jmp 0x4635c0
mov edi, dword [edi]
mov eax, dword [esi]
push edi
push ebx
mov ecx, esi
call dword [eax + 0x2c]
or esi, 0xffffffff
cmp eax, esi
je 0x4635c0
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc]
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0041e185
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc

Function at 0x4686b4
Capabilities:
Resume thread

Disassembly:
mov eax, 0x56ca8d
call fcn.0052efe4
push ecx
push esi
mov esi, ecx
push 0x74
call fcn.0054c68d
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
and dword [ebp - 4], 0
test ecx, ecx
je 0x4686d9
push dword [ebp + 8]
push esi
call fcn.00469945
mov esi, eax
jmp 0x4686db
xor esi, esi
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4686fd
push 0
push 0
push 4
mov ecx, esi
call fcn.0054bb3d
test eax, eax
jne 0x468701
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
xor eax, eax
jmp 0x468717
push 0
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x46c370
Capabilities:
Get proxy
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push 0x64fd0c
mov dword [edi], esi
call fcn.0054caeb
lea eax, [ebp + 8]
mov dword [ebp + 8], esi
push eax
push 1
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x46c451
cmp dword [ebp + 8], esi
je 0x46c451
push ebx
push 4
pop eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], esi
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push esi
push str.ProxyEnable
push dword [ebp + 8]
call ebx
test eax, eax
jne 0x46c3f0
cmp dword [ebp - 0xc], esi
setne al
mov dword [edi], eax
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x80a]
mov word [ebp - 0x80c], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 8]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 4]
push eax
push esi
push str.ProxyServer
mov dword [ebp - 8], 0x400
push dword [ebp + 8]
call ebx
test eax, eax
pop ebx
jne 0x46c444
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x80c]
push eax
call fcn.0054caeb
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x46c454
or eax, 0xffffffff
pop edi
pop esi
leave
ret 8
Function at 0x46e048
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x56ce60
call fcn.0052efe4
push ecx
mov eax, dword [0x64b44c]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], eax
push dword [ebp + 8]
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push str._sNIO_curl.exe
push eax
call fcn.00548b6f
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0xc
push dword [ebp - 0x10]
call edi
test eax, eax
je 0x46e093
lea eax, [ebp - 0x10]
lea ecx, [esi + 8]
push eax
call fcn.0054ca9b
cmp dword [esi + 4], 0
push 2
pop ebx
jne 0x46e0ab
push dword [esi + 8]
call edi
neg eax
sbb eax, eax
and eax, ebx
dec eax
mov dword [esi + 4], eax
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push str._sNIO_wget.exe
push eax
call fcn.00548b6f
add esp, 0xc
push dword [ebp - 0x10]
call edi
test eax, eax
je 0x46e0d4
lea eax, [ebp - 0x10]
lea ecx, [esi + 0x10]
push eax
call fcn.0054ca9b
cmp dword [esi + 0xc], 0
jne 0x46e0e9
push dword [esi + 0x10]
call edi
neg eax
sbb eax, eax
and eax, ebx
dec eax
mov dword [esi + 0xc], eax
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push str._sNIO_msdl.exe
push eax
call fcn.00548b6f
add esp, 0xc
push dword [ebp - 0x10]
call edi
test eax, eax
je 0x46e112
lea eax, [ebp - 0x10]
lea ecx, [esi + 0x18]
push eax
call fcn.0054ca9b
cmp dword [esi + 0x14], 0
jne 0x46e127
push dword [esi + 0x18]
call edi
neg eax
sbb eax, eax
and eax, ebx
dec eax
mov dword [esi + 0x14], eax
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push str._sNIO_rtmp.exe
push eax
call fcn.00548b6f
add esp, 0xc
push dword [ebp - 0x10]
call edi
test eax, eax
je 0x46e150
lea eax, [ebp - 0x10]
lea ecx, [esi + 0x20]
push eax
call fcn.0054ca9b
cmp dword [esi + 0x1c], 0
jne 0x46e165
push dword [esi + 0x20]
call edi
neg eax
sbb eax, eax
and eax, ebx
dec eax
mov dword [esi + 0x1c], eax
push str.ca_bundle.crt
mov ebx, 0x5b8244
push dword [ebp + 8]
add esi, 0x24
push ebx
push esi
call fcn.00548b6f
add esp, 0x10
push dword [esi]
call edi
test eax, eax
jne 0x46e199
push str.ca_bundle.trust.crt
push dword [ebp + 8]
push ebx
push esi
call fcn.00548b6f
add esp, 0x10
push dword [esi]
call edi
test eax, eax
jne 0x46e1b3
push 0x5d3c98
push dword [ebp + 8]
push ebx
push esi
call fcn.00548b6f
add esp, 0x10
push dword [esi]
call edi
test eax, eax
jne 0x46e1cd
push str.ca_bundle.crt
push dword [ebp + 8]
push ebx
push esi
call fcn.00548b6f
add esp, 0x10
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0054c954
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x46f879
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0xa8]
test edi, edi
mov dword [ebp - 4], edi
je 0x46f95d
push dword [esi + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46f8a3
push eax
jmp 0x46f8ee
push 1
pop ebx
cmp edi, ebx
jle 0x46f8bb
cmp dword [esi + 0x38], ebx
jne 0x46f8bb
push ebx
lea ecx, [esi + 0xa0]
call fcn.0046f837
test edi, edi
jle 0x46f8c9
cmp dword [esi + 0x3c], 0
jle 0x46f950
push dword [esi + 0xc]
call fcn.0041f239
pop ecx
xor ecx, ecx
cmp edx, ecx
jg 0x46f8de
jl 0x46f8ed
cmp eax, ecx
jbe 0x46f8ed
test byte [esi + 0x68], bl
je 0x46f8ff
cmp eax, dword [esi + 0x40]
jne 0x46f8ed
cmp edx, dword [esi + 0x44]
je 0x46f911
push ecx
lea ecx, [esi + 0xa0]
call fcn.0046f837
and dword [esi + 0x68], 0xfffffffe
jmp 0x46f95d
cmp edi, ebx
jne 0x46f911
mov ebx, dword [esi + 0xa4]
mov ebx, dword [ebx]
mov dword [ebx + 0x40], eax
mov dword [ebx + 0x44], edx
xor ebx, ebx
xor edx, edx
test edi, edi
jle 0x46f950
mov eax, dword [esi + 0xa4]
mov eax, dword [eax + edx*4]
test eax, eax
je 0x46f947
xor edi, edi
cmp dword [eax + 0x44], edi
jg 0x46f93a
jl 0x46f934
cmp dword [eax + 0x40], edi
jae 0x46f93a
mov dword [eax + 0x40], edi
mov dword [eax + 0x44], edi
mov edi, dword [eax + 0x40]
mov eax, dword [eax + 0x44]
add ecx, edi
mov edi, dword [ebp - 4]
adc ebx, eax
inc edx
cmp edx, edi
jl 0x46f919
or ecx, ebx
jne 0x46f95d
push 0
lea ecx, [esi + 0xa0]
call fcn.0046f837
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x470430
Capabilities:
Resume thread

Disassembly:
mov eax, 0x56d1bd
call fcn.0052efe4
push ecx
push ebx
push esi
push edi
mov edi, ecx
push 0x128
call fcn.0054c68d
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp ecx, ebx
mov dword [ebp - 4], ebx
je 0x47046e
push dword [edi + 0x34]
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push esi
push edi
call fcn.0046ecb6
jmp 0x470470
xor eax, eax
or dword [ebp - 4], 0xffffffff
push ebx
push ebx
push 4
mov ecx, eax
mov dword [esi + 0x68], eax
call fcn.0054bb3d
test eax, eax
jne 0x4704a4
mov ecx, dword [esi + 0x68]
cmp ecx, ebx
je 0x470494
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov dword [esi + 0x68], ebx
mov eax, dword [edi]
push 0xfffffffffffffffe
mov ecx, edi
call dword [eax + 0x14]
push 0xfffffffffffffffe
jmp 0x4704ea
mov eax, dword [esi + 0x68]
push ebx
mov eax, dword [eax + 0x28]
push eax
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [esi + 0x68]
push dword [eax + 0x28]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp dword [ebp + 0x14], ebx
je 0x4704ed
mov eax, dword [edi + 0x10]
cmp eax, ebx
je 0x4704d1
cmp dword [eax], ebx
jne 0x4704e8
push 0x64
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4704f1
cmp dword [esi + 0x20], 0x14
jge 0x4704ed
jmp 0x4704c6
push 1
pop eax
jmp 0x470517
xor eax, eax
jmp 0x470517
mov ecx, dword [esi + 0x68]
push 0x14
call fcn.0046f516
mov ecx, dword [esi + 0x68]
call fcn.00471b04
mov ecx, dword [esi + 0x68]
cmp ecx, ebx
je 0x470511
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov dword [esi + 0x68], ebx
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10

Function at 0x47073a
Capabilities:
Resume thread

Disassembly:
mov eax, 0x56d1d1
call fcn.0052efe4
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x100], ebx
je 0x470759
push 1
pop eax
jmp 0x4707c1
push 0x6c
mov dword [edi + 0x104], ebx
call fcn.0054c68d
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
cmp ecx, ebx
mov dword [ebp - 4], ebx
je 0x47077d
push edi
call fcn.00471aa2
mov esi, eax
jmp 0x47077f
xor esi, esi
or eax, 0xffffffff
cmp esi, ebx
mov dword [ebp - 4], eax
je 0x4707c1
push ebx
push ebx
push 4
mov ecx, esi
call fcn.0054bb3d
test eax, eax
jne 0x4707a6
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
or eax, 0xffffffff
jmp 0x4707c1
push ebx
mov dword [edi + 0x100], esi
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4908ec
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
mov eax, 0x56f48e
call fcn.0052efe4
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.00490999
mov eax, dword [0x64b44c]
lea ecx, [esi + 0x14]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ecx], eax
mov eax, dword [0x64b44c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], 0x5864e4
mov dword [esi + 0x20], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x24], ebx
mov eax, dword [0x64b44c]
mov dword [esi + 0x3c], eax
mov eax, dword [0x64b44c]
mov dword [esi + 0x40], eax
mov eax, dword [0x64b44c]
mov dword [esi + 0x44], eax
mov edi, 0x64fd0c
mov byte [ebp - 4], 6
push edi
mov dword [esi], 0x5864d8
call fcn.0054caeb
push edi
lea ecx, [esi + 0x18]
call fcn.0054caeb
push edi
lea ecx, [esi + 0x3c]
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call fcn.0054caeb
push edi
lea ecx, [esi + 0x40]
call fcn.0054caeb
push edi
lea ecx, [esi + 0x44]
call fcn.0054caeb
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x497dd6
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x56facb
call fcn.0052efe4
sub esp, 0xe4
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
je 0x497f34
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x497f34
lea ecx, [ebp - 0xf0]
call fcn.0042e8b0
push ebx
push 0x74
push dword [ebp + 8]
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0xf0]
mov dword [ebp - 4], ebx
push eax
call fcn.0042ea19
mov ecx, eax
call fcn.0042e230
test al, al
jne 0x497e3b
or esi, 0xffffffff
jmp 0x497f06
lea eax, [ebp - 0x10]
push str.MediaFormats
push eax
lea ecx, [ebp - 0xf0]
call fcn.0042e44c
lea ecx, [ebp - 0x10]
call fcn.0042e230
test al, al
jne 0x497e33
push 0x64fd0c
lea eax, [ebp - 0x1c]
push 0x5b9fa0
push eax
lea ecx, [ebp - 0x10]
call fcn.0042e493
mov ecx, eax
call fcn.0042e238
push eax
lea ecx, [ebp - 0x14]
call fcn.0054c9c8
mov esi, dword [ebp + 0xc]
mov byte [ebp - 4], 1
push dword [esi + 4]
push dword [ebp - 0x14]
call fcn.0052f185
pop ecx
test eax, eax
pop ecx
je 0x497e9e
push 1
pop esi
jmp 0x497efa
lea eax, [ebp - 0x18]
push str.Categories
push eax
lea ecx, [ebp - 0x10]
call fcn.0042e44c
lea ecx, [ebp - 0x18]
call fcn.0042e230
test al, al
je 0x497ec0
or esi, 0xffffffff
jmp 0x497efa
cmp dword [esi + 0x10], ebx
jle 0x497ef8
mov eax, dword [esi + 0xc]
lea ecx, [ebp - 0x18]
mov edi, dword [eax + ebx*4]
lea eax, [ebp + 8]
push dword [edi + 8]
push eax
call fcn.0042e44c
lea ecx, [ebp + 8]
call fcn.0042e230
test al, al
jne 0x497f19
lea eax, [ebp + 8]
push eax
push edi
call fcn.00497f48
inc ebx
pop ecx
cmp ebx, dword [esi + 0x10]
pop ecx
jl 0x497ec5
xor esi, esi
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0054c954
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf0]
call fcn.0042e8c7
mov eax, esi
jmp 0x497f37
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0054c954
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf0]
call fcn.0042e8c7
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x49b71f
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x570034
call fcn.0052efe4
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x11c]
push edi
call fcn.0041fdf7
pop ecx
push edi
lea ecx, [esi + 0x88]
call fcn.0054ca9b
mov eax, dword [0x64b44c]
mov dword [ebp - 0x14], eax
and dword [ebp - 4], 0
mov dword [ebp - 0x10], eax
push dword [ebp + 8]
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push str._sMX_ytdlp_64.exe
push eax
call fcn.00548b6f
add esp, 0xc
lea eax, [ebp - 0x10]
push dword [ebp + 8]
push str._sMX_ytdlp_32.exe
push eax
call fcn.00548b6f
add esp, 0xc
mov ecx, 0x64fd14
call fcn.0041fcdd
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 0x40
jne 0x49b7c7
push dword [ebp - 0x14]
call edi
test eax, eax
je 0x49b7b9
lea ebx, [esi + 0x78]
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
call fcn.0054ca9b
mov dword [esi + 0x7c], 0x40
jmp 0x49b7dc
push dword [ebp - 0x10]
call edi
test eax, eax
lea ebx, [esi + 0x78]
jne 0x49b7ca
jmp 0x49b7a5
lea ebx, [esi + 0x78]
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
call fcn.0054ca9b
mov dword [esi + 0x7c], 0x20
push dword [ebx]
call edi
neg eax
sbb eax, eax
and byte [ebp - 4], 0
and eax, 2
lea ecx, [ebp - 0x10]
dec eax
mov dword [0x64ff04], eax
call fcn.0054c954
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0054c954
lea eax, [esi + 0x11c]
lea ecx, [esi + 0x114]
push eax
call fcn.0054ca9b
push dword [ebp + 8]
add esi, 0x104
push str._sMX_ytdlpa_64.exe
push esi
call fcn.00548b6f
add esp, 0xc
push dword [esi]
call edi
mov ecx, dword [ebp - 0xc]
pop edi
neg eax
sbb eax, eax
pop esi
and eax, 2
pop ebx
dec eax
mov dword fs:[0], ecx
mov dword [0x64ff00], eax
xor eax, eax
leave
ret 8
Function at 0x4c0f86
Capabilities:
Get process heap force flags

Disassembly:
mov eax, 0x574b9c
call fcn.0052efe4
push ecx
push esi
mov esi, ecx
push dword [ebp + 8]
mov dword [ebp - 0x10], esi
call fcn.0049f2b0
and dword [ebp - 4], 0
push str.Internal:_youtube.com
lea ecx, [esi + 8]
mov dword [esi], 0x588b94
mov dword [esi + 4], 0x70100
call fcn.0054caeb
push str.youtube.com
lea ecx, [esi + 0x10]
call fcn.0054caeb
push str.YouTube
lea ecx, [esi + 0x14]
call fcn.0054caeb
push str.https:__www.youtube.com_
lea ecx, [esi + 0x18]
call fcn.0054caeb
mov ecx, dword [ebp - 0xc]
push 1
pop eax
mov dword [esi + 0x1c], 0xa
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4c9b5c
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x575bc6
call fcn.0052efe4
push ecx
mov eax, dword [0x64b44c]
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov dword [esi + 0x18], eax
mov eax, dword [0x64b44c]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x1c], eax
mov eax, dword [0x64b44c]
mov dword [esi + 0x20], eax
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 2
call fcn.004c9c0d
mov eax, dword [0x64b44c]
mov dword [esi + 0x4c], eax
mov eax, dword [0x64b44c]
mov dword [esi + 0x50], eax
mov edi, 0x64fd0c
mov dword [esi + 8], ebx
push edi
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 5
mov dword [esi], 0x589458
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
call fcn.0054caeb
push edi
lea ecx, [esi + 0x1c]
call fcn.0054caeb
push edi
lea ecx, [esi + 0x20]
call fcn.0054caeb
push edi
lea ecx, [esi + 0x4c]
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
call fcn.0054caeb
push edi
lea ecx, [esi + 0x50]
call fcn.0054caeb
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4ca8ad
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x575d41
call fcn.0052efe4
sub esp, 0x100
push dword [ebp + 8]
mov dword [ebp - 0x28], ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4ca8d5
or eax, 0xffffffff
jmp 0x4caab7
push esi
lea ecx, [ebp - 0x10c]
call fcn.0042e8b0
and dword [ebp - 4], 0
push 0
push 0x74
lea eax, [ebp - 0x44]
push dword [ebp + 8]
lea ecx, [ebp - 0x10c]
push eax
call fcn.0042ea19
mov ecx, eax
call fcn.0042e230
test al, al
jne 0x4ca90e
or esi, 0xffffffff
jmp 0x4caaa5
lea eax, [ebp - 0x18]
push str.Languages
push eax
lea ecx, [ebp - 0x10c]
call fcn.0042e44c
lea ecx, [ebp - 0x18]
call fcn.0042e230
test al, al
jne 0x4ca906
mov eax, dword [0x64b44c]
push ebx
push edi
mov dword [ebp - 0x24], eax
mov edi, 0x64fd0c
lea eax, [ebp + 8]
push edi
push 0x5b9fa0
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0042e493
mov ecx, eax
call fcn.0042e238
push eax
lea ecx, [ebp - 0x24]
call fcn.0054caeb
mov eax, dword [0x64b44c]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
mov ebx, str.Language
lea eax, [ebp - 0x10]
push ebx
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.0042e44c
lea ecx, [ebp - 0x10]
call fcn.0042e42f
test eax, eax
je 0x4caa71
push edi
lea eax, [ebp + 8]
push str.Code
push eax
lea ecx, [ebp - 0x10]
call fcn.0042e493
mov ecx, eax
call fcn.0042e238
push eax
lea ecx, [ebp - 0x14]
call fcn.0054caeb
push edi
lea eax, [ebp - 0x38]
push str.Original
push eax
lea ecx, [ebp - 0x10]
call fcn.0042e493
mov ecx, eax
call fcn.0042e238
push eax
lea ecx, [ebp - 0x1c]
call fcn.0054caeb
push edi
lea eax, [ebp - 0x34]
push str.Translated
push eax
lea ecx, [ebp - 0x10]
call fcn.0042e493
mov ecx, eax
call fcn.0042e238
push eax
lea ecx, [ebp - 0x20]
call fcn.0054caeb
mov eax, dword [ebp - 0x14]
xor esi, esi
cmp dword [eax - 8], esi
je 0x4caa5a
push 0xc
call fcn.0054c68d
pop ecx
mov dword [ebp - 0x2c], eax
cmp eax, esi
mov byte [ebp - 4], 5
je 0x4caa23
mov ecx, eax
call fcn.004ca6dc
mov esi, eax
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
mov byte [ebp - 4], 4
call fcn.0054ca9b
lea eax, [ebp - 0x1c]
lea ecx, [esi + 4]
push eax
call fcn.0054ca9b
lea eax, [ebp - 0x20]
lea ecx, [esi + 8]
push eax
call fcn.0054ca9b
mov eax, dword [ebp - 0x28]
push esi
lea ecx, [eax + 4]
mov eax, dword [eax + 0xc]
push eax
call fcn.0054ad08
lea eax, [ebp - 0x30]
push ebx
push eax
lea ecx, [ebp - 0x10]
call fcn.0042e4da
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
jmp 0x4ca987
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.0054c954
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.0054c954
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0054c954
and byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.0054c954
pop edi
xor esi, esi
pop ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10c]
call fcn.0042e8c7
mov eax, esi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 4