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

Disassembly:
mov eax, 0x5708b4
call fcn.004f894c
sub esp, 0xc0
push esi
lea ecx, [ebp - 0xcc]
call fcn.0045efac
push dword [ebp + 0x14]
xor esi, esi
lea ecx, [ebp - 0xcc]
mov dword [ebp - 4], esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0045ee87
cmp eax, esi
je 0x45f427
mov dword [ebp - 4], 1
mov esi, eax
jmp 0x45f447
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45f440
mov dword [ebp - 4], 2
or esi, 0xffffffff
jmp 0x45f447
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x5c]
call fcn.0054f9b4
lea ecx, [ebp - 0xcc]
mov dword [ebp - 0xcc], 0x584dec
call fcn.00432326
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x460135
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x5709d0
call fcn.004f894c
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
mov edi, 0x6533cc
push str._sMediaProbe.exe
push edi
call fcn.0054cc49
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0xc
push dword [0x6533cc]
call esi
test eax, eax
jne 0x460179
push str.MediaProbe.exe
mov ecx, edi
call fcn.0054fb4b
push ebx
mov edi, 0x6533d0
push str._sMediaEncode.exe
push edi
call fcn.0054cc49
add esp, 0xc
push dword [0x6533d0]
call esi
test eax, eax
jne 0x4601a5
push str.MediaEncode.exe
mov ecx, edi
call fcn.0054fb4b
push dword [0x6533d0]
lea eax, [ebp - 0x14]
push eax
call fcn.0041ec53
pop ecx
pop ecx
and dword [ebp - 4], 0
push str.Presets
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0054fc59
push eax
mov ecx, 0x6533d4
mov byte [ebp - 4], 1
call fcn.0054fafb
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0054f9b4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0054f9b4
push ebx
mov edi, 0x6533d8
push str._sMediaPlay.exe
push edi
call fcn.0054cc49
add esp, 0xc
push dword [0x6533d8]
call esi
test eax, eax
jne 0x46021c
push str.MediaPlay.exe
mov ecx, edi
call fcn.0054fb4b
cmp dword [0x6533dc], 0
jne 0x460320
mov eax, dword [0x64b640]
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.0054cc49
add esp, 0xc
push dword [ebp + 8]
call esi
test eax, eax
je 0x46025c
mov dword [0x6533dc], 6
cmp dword [0x6533dc], 0
jne 0x460314
push ebx
lea eax, [ebp + 8]
push str._s_avcodec_59.dll
push eax
call fcn.0054cc49
add esp, 0xc
push dword [ebp + 8]
call esi
test eax, eax
je 0x46028e
mov dword [0x6533dc], 5
cmp dword [0x6533dc], 0
jne 0x460314
push ebx
lea eax, [ebp + 8]
push str._s_avcodec_58.dll
push eax
call fcn.0054cc49
add esp, 0xc
push dword [ebp + 8]
call esi
test eax, eax
je 0x4602bc
mov dword [0x6533dc], 4
cmp dword [0x6533dc], 0
jne 0x460314
push ebx
lea eax, [ebp + 8]
push str._s_avcodec_57.dll
push eax
call fcn.0054cc49
add esp, 0xc
push dword [ebp + 8]
call esi
test eax, eax
je 0x4602ea
mov dword [0x6533dc], 3
cmp dword [0x6533dc], 0
jne 0x460314
push ebx
lea eax, [ebp + 8]
push str._s_avcodec_56.dll
push eax
call fcn.0054cc49
add esp, 0xc
push dword [ebp + 8]
call esi
test eax, eax
je 0x460314
mov dword [0x6533dc], edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0054f9b4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword [0x6533e0], 1
xor eax, eax
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x46033b
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push dword [0x6533d8]
call esi
test eax, eax
je 0x46035b
xor eax, eax
push eax
push eax
push eax
push dword [0x6533d8]
jmp 0x46038b
push dword [0x6533d0]
call esi
test eax, eax
je 0x460374
xor eax, eax
push eax
push eax
push eax
push dword [0x6533d0]
jmp 0x46038b
push dword [0x6533cc]
call esi
test eax, eax
je 0x460393
xor eax, eax
push eax
push eax
push eax
push dword [0x6533cc]
push eax
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
pop esi
ret

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

Disassembly:
mov eax, 0x570a2c
call fcn.004f894c
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 0x460636
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0041ec53
pop ecx
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [ebp - 0x10]
call fcn.0054f9b4
lea eax, [ebp - 0x14]
push eax
call fcn.00427643
pop ecx
mov eax, dword [eax]
and dword [ebp - 4], 0
push 1
push 1
push eax
lea ecx, [ebp - 0x28]
call fcn.0041db5e
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.0054f9b4
push dword [ebp + 8]
lea edi, [esi + 0x70]
mov ecx, edi
call fcn.0054fb4b
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.004603b8
test eax, eax
je 0x46068d
mov esi, eax
jmp 0x4606c2
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 0x4606a7
or esi, 0xffffffff
jmp 0x4606c2
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 0x4606c2
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.0041dbcb
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc

Function at 0x4658d5
Capabilities:
Resume thread

Disassembly:
mov eax, 0x5716f5
call fcn.004f894c
push ecx
push esi
mov esi, ecx
push 0x74
call fcn.0054ffa3
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
and dword [ebp - 4], 0
test ecx, ecx
je 0x4658fa
push dword [ebp + 8]
push esi
call fcn.00466bb5
mov esi, eax
jmp 0x4658fc
xor esi, esi
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x46591e
push 0
push 0
push 4
mov ecx, esi
call fcn.00553ddb
test eax, eax
jne 0x465922
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
xor eax, eax
jmp 0x465938
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 0x4695e0
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 0x6533b4
mov dword [edi], esi
call fcn.0054fb4b
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 0x4696c1
cmp dword [ebp + 8], esi
je 0x4696c1
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 0x469660
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 0x4696b4
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x80c]
push eax
call fcn.0054fb4b
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4696c4
or eax, 0xffffffff
pop edi
pop esi
leave
ret 8
Function at 0x46b2b8
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x571ac8
call fcn.004f894c
push ecx
mov eax, dword [0x64b640]
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.0054cc49
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0xc
push dword [ebp - 0x10]
call edi
test eax, eax
je 0x46b303
lea eax, [ebp - 0x10]
lea ecx, [esi + 8]
push eax
call fcn.0054fafb
cmp dword [esi + 4], 0
push 2
pop ebx
jne 0x46b31b
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.0054cc49
add esp, 0xc
push dword [ebp - 0x10]
call edi
test eax, eax
je 0x46b344
lea eax, [ebp - 0x10]
lea ecx, [esi + 0x10]
push eax
call fcn.0054fafb
cmp dword [esi + 0xc], 0
jne 0x46b359
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.0054cc49
add esp, 0xc
push dword [ebp - 0x10]
call edi
test eax, eax
je 0x46b382
lea eax, [ebp - 0x10]
lea ecx, [esi + 0x18]
push eax
call fcn.0054fafb
cmp dword [esi + 0x14], 0
jne 0x46b397
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.0054cc49
add esp, 0xc
push dword [ebp - 0x10]
call edi
test eax, eax
je 0x46b3c0
lea eax, [ebp - 0x10]
lea ecx, [esi + 0x20]
push eax
call fcn.0054fafb
cmp dword [esi + 0x1c], 0
jne 0x46b3d5
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, 0x5bbfa0
push dword [ebp + 8]
add esi, 0x24
push ebx
push esi
call fcn.0054cc49
add esp, 0x10
push dword [esi]
call edi
test eax, eax
jne 0x46b409
push str.ca_bundle.trust.crt
push dword [ebp + 8]
push ebx
push esi
call fcn.0054cc49
add esp, 0x10
push dword [esi]
call edi
test eax, eax
jne 0x46b423
push 0x5d6f48
push dword [ebp + 8]
push ebx
push esi
call fcn.0054cc49
add esp, 0x10
push dword [esi]
call edi
test eax, eax
jne 0x46b43d
push str.ca_bundle.crt
push dword [ebp + 8]
push ebx
push esi
call fcn.0054cc49
add esp, 0x10
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0054f9b4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x46cb01
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 0x46cbe5
push dword [esi + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46cb2b
push eax
jmp 0x46cb76
push 1
pop ebx
cmp edi, ebx
jle 0x46cb43
cmp dword [esi + 0x38], ebx
jne 0x46cb43
push ebx
lea ecx, [esi + 0xa0]
call fcn.0046cabf
test edi, edi
jle 0x46cb51
cmp dword [esi + 0x3c], 0
jle 0x46cbd8
push dword [esi + 0xc]
call fcn.0041ee11
pop ecx
xor ecx, ecx
cmp edx, ecx
jg 0x46cb66
jl 0x46cb75
cmp eax, ecx
jbe 0x46cb75
test byte [esi + 0x68], bl
je 0x46cb87
cmp eax, dword [esi + 0x40]
jne 0x46cb75
cmp edx, dword [esi + 0x44]
je 0x46cb99
push ecx
lea ecx, [esi + 0xa0]
call fcn.0046cabf
and dword [esi + 0x68], 0xfffffffe
jmp 0x46cbe5
cmp edi, ebx
jne 0x46cb99
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 0x46cbd8
mov eax, dword [esi + 0xa4]
mov eax, dword [eax + edx*4]
test eax, eax
je 0x46cbcf
xor edi, edi
cmp dword [eax + 0x44], edi
jg 0x46cbc2
jl 0x46cbbc
cmp dword [eax + 0x40], edi
jae 0x46cbc2
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 0x46cba1
or ecx, ebx
jne 0x46cbe5
push 0
lea ecx, [esi + 0xa0]
call fcn.0046cabf
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x46d6c3
Capabilities:
Resume thread

Disassembly:
mov eax, 0x571e25
call fcn.004f894c
push ecx
push ebx
push esi
push edi
mov edi, ecx
push 0x128
call fcn.0054ffa3
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 0x46d701
push dword [edi + 0x34]
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push esi
push edi
call fcn.0046bf23
jmp 0x46d703
xor eax, eax
or dword [ebp - 4], 0xffffffff
push ebx
push ebx
push 4
mov ecx, eax
mov dword [esi + 0x68], eax
call fcn.00553ddb
test eax, eax
jne 0x46d737
mov ecx, dword [esi + 0x68]
cmp ecx, ebx
je 0x46d727
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 0x46d77d
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 0x46d780
mov eax, dword [edi + 0x10]
cmp eax, ebx
je 0x46d764
cmp dword [eax], ebx
jne 0x46d77b
push 0x64
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x46d784
cmp dword [esi + 0x20], 0x14
jge 0x46d780
jmp 0x46d759
push 1
pop eax
jmp 0x46d7aa
xor eax, eax
jmp 0x46d7aa
mov ecx, dword [esi + 0x68]
push 0x14
call fcn.0046c783
mov ecx, dword [esi + 0x68]
call fcn.0046c79b
mov ecx, dword [esi + 0x68]
cmp ecx, ebx
je 0x46d7a4
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 0x48db49
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
mov eax, 0x5740f6
call fcn.004f894c
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.0048dbf6
mov eax, dword [0x64b640]
lea ecx, [esi + 0x14]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ecx], eax
mov eax, dword [0x64b640]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], 0x58a70c
mov dword [esi + 0x20], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x24], ebx
mov eax, dword [0x64b640]
mov dword [esi + 0x3c], eax
mov eax, dword [0x64b640]
mov dword [esi + 0x40], eax
mov eax, dword [0x64b640]
mov dword [esi + 0x44], eax
mov edi, 0x6533b4
mov byte [ebp - 4], 6
push edi
mov dword [esi], 0x58a700
call fcn.0054fb4b
push edi
lea ecx, [esi + 0x18]
call fcn.0054fb4b
push edi
lea ecx, [esi + 0x3c]
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call fcn.0054fb4b
push edi
lea ecx, [esi + 0x40]
call fcn.0054fb4b
push edi
lea ecx, [esi + 0x44]
call fcn.0054fb4b
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x495040
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x574733
call fcn.004f894c
sub esp, 0xe4
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
je 0x49519e
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x49519e
lea ecx, [ebp - 0xf0]
call fcn.0042e4b9
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.0042e622
mov ecx, eax
call fcn.0042e4b1
test al, al
jne 0x4950a5
or esi, 0xffffffff
jmp 0x495170
lea eax, [ebp - 0x10]
push str.MediaFormats
push eax
lea ecx, [ebp - 0xf0]
call fcn.0042e058
lea ecx, [ebp - 0x10]
call fcn.0042e4b1
test al, al
jne 0x49509d
push 0x6533b4
lea eax, [ebp - 0x1c]
push 0x5bd894
push eax
lea ecx, [ebp - 0x10]
call fcn.0042e09f
mov ecx, eax
call fcn.0042de44
push eax
lea ecx, [ebp - 0x14]
call fcn.0054fa28
mov esi, dword [ebp + 0xc]
mov byte [ebp - 4], 1
push dword [esi + 4]
push dword [ebp - 0x14]
call fcn.004f8a05
pop ecx
test eax, eax
pop ecx
je 0x495108
push 1
pop esi
jmp 0x495164
lea eax, [ebp - 0x18]
push str.Categories
push eax
lea ecx, [ebp - 0x10]
call fcn.0042e058
lea ecx, [ebp - 0x18]
call fcn.0042e4b1
test al, al
je 0x49512a
or esi, 0xffffffff
jmp 0x495164
cmp dword [esi + 0x10], ebx
jle 0x495162
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.0042e058
lea ecx, [ebp + 8]
call fcn.0042e4b1
test al, al
jne 0x495183
lea eax, [ebp + 8]
push eax
push edi
call fcn.004951b2
inc ebx
pop ecx
cmp ebx, dword [esi + 0x10]
pop ecx
jl 0x49512f
xor esi, esi
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0054f9b4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf0]
call fcn.0042e4d0
mov eax, esi
jmp 0x4951a1
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0054f9b4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf0]
call fcn.0042e4d0
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x49898d
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x574c9c
call fcn.004f894c
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x11c]
push edi
call fcn.00424499
pop ecx
push edi
lea ecx, [esi + 0x88]
call fcn.0054fafb
mov eax, dword [0x64b640]
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.0054cc49
add esp, 0xc
lea eax, [ebp - 0x10]
push dword [ebp + 8]
push str._sMX_ytdlp_32.exe
push eax
call fcn.0054cc49
add esp, 0xc
mov ecx, 0x6531ec
call fcn.0041f8b5
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 0x40
jne 0x498a35
push dword [ebp - 0x14]
call edi
test eax, eax
je 0x498a27
lea ebx, [esi + 0x78]
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
call fcn.0054fafb
mov dword [esi + 0x7c], 0x40
jmp 0x498a4a
push dword [ebp - 0x10]
call edi
test eax, eax
lea ebx, [esi + 0x78]
jne 0x498a38
jmp 0x498a13
lea ebx, [esi + 0x78]
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
call fcn.0054fafb
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 [0x6533f4], eax
call fcn.0054f9b4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0054f9b4
lea eax, [esi + 0x11c]
lea ecx, [esi + 0x114]
push eax
call fcn.0054fafb
push dword [ebp + 8]
add esi, 0x104
push str._sMX_ytdlpa_64.exe
push esi
call fcn.0054cc49
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 [0x6533f0], eax
xor eax, eax
leave
ret 8
Function at 0x4be0be
Capabilities:
Get process heap force flags

Disassembly:
mov eax, 0x5797e0
call fcn.004f894c
push ecx
push esi
mov esi, ecx
push dword [ebp + 8]
mov dword [ebp - 0x10], esi
call fcn.0049c3f1
and dword [ebp - 4], 0
push str.Internal:_youtube.com
lea ecx, [esi + 8]
mov dword [esi], 0x58cdbc
mov dword [esi + 4], 0x70100
call fcn.0054fb4b
push str.youtube.com
lea ecx, [esi + 0x10]
call fcn.0054fb4b
push str.YouTube
lea ecx, [esi + 0x14]
call fcn.0054fb4b
push str.https:__www.youtube.com_
lea ecx, [esi + 0x18]
call fcn.0054fb4b
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 0x4c6c90
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x57a7f2
call fcn.004f894c
push ecx
mov eax, dword [0x64b640]
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov dword [esi + 0x18], eax
mov eax, dword [0x64b640]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x1c], eax
mov eax, dword [0x64b640]
mov dword [esi + 0x20], eax
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 2
call fcn.004c6d41
mov eax, dword [0x64b640]
mov dword [esi + 0x4c], eax
mov eax, dword [0x64b640]
mov dword [esi + 0x50], eax
mov edi, 0x6533b4
mov dword [esi + 8], ebx
push edi
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 5
mov dword [esi], 0x58d680
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
call fcn.0054fb4b
push edi
lea ecx, [esi + 0x1c]
call fcn.0054fb4b
push edi
lea ecx, [esi + 0x20]
call fcn.0054fb4b
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.0054fb4b
push edi
lea ecx, [esi + 0x50]
call fcn.0054fb4b
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4c79a8
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x57a96d
call fcn.004f894c
sub esp, 0x100
push dword [ebp + 8]
mov dword [ebp - 0x28], ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4c79d0
or eax, 0xffffffff
jmp 0x4c7bb2
push esi
lea ecx, [ebp - 0x10c]
call fcn.0042e4b9
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.0042e622
mov ecx, eax
call fcn.0042e4b1
test al, al
jne 0x4c7a09
or esi, 0xffffffff
jmp 0x4c7ba0
lea eax, [ebp - 0x18]
push str.Languages
push eax
lea ecx, [ebp - 0x10c]
call fcn.0042e058
lea ecx, [ebp - 0x18]
call fcn.0042e4b1
test al, al
jne 0x4c7a01
mov eax, dword [0x64b640]
push ebx
push edi
mov dword [ebp - 0x24], eax
mov edi, 0x6533b4
lea eax, [ebp + 8]
push edi
push 0x5bd894
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0042e09f
mov ecx, eax
call fcn.0042de44
push eax
lea ecx, [ebp - 0x24]
call fcn.0054fb4b
mov eax, dword [0x64b640]
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.0042e058
lea ecx, [ebp - 0x10]
call fcn.0042e03b
test eax, eax
je 0x4c7b6c
push edi
lea eax, [ebp + 8]
push str.Code
push eax
lea ecx, [ebp - 0x10]
call fcn.0042e09f
mov ecx, eax
call fcn.0042de44
push eax
lea ecx, [ebp - 0x14]
call fcn.0054fb4b
push edi
lea eax, [ebp - 0x38]
push str.Original
push eax
lea ecx, [ebp - 0x10]
call fcn.0042e09f
mov ecx, eax
call fcn.0042de44
push eax
lea ecx, [ebp - 0x1c]
call fcn.0054fb4b
push edi
lea eax, [ebp - 0x34]
push str.Translated
push eax
lea ecx, [ebp - 0x10]
call fcn.0042e09f
mov ecx, eax
call fcn.0042de44
push eax
lea ecx, [ebp - 0x20]
call fcn.0054fb4b
mov eax, dword [ebp - 0x14]
xor esi, esi
cmp dword [eax - 8], esi
je 0x4c7b55
push 0xc
call fcn.0054ffa3
pop ecx
mov dword [ebp - 0x2c], eax
cmp eax, esi
mov byte [ebp - 4], 5
je 0x4c7b1e
mov ecx, eax
call fcn.004c77d7
mov esi, eax
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
mov byte [ebp - 4], 4
call fcn.0054fafb
lea eax, [ebp - 0x1c]
lea ecx, [esi + 4]
push eax
call fcn.0054fafb
lea eax, [ebp - 0x20]
lea ecx, [esi + 8]
push eax
call fcn.0054fafb
mov eax, dword [ebp - 0x28]
push esi
lea ecx, [eax + 4]
mov eax, dword [eax + 0xc]
push eax
call fcn.0054eeb1
lea eax, [ebp - 0x30]
push ebx
push eax
lea ecx, [ebp - 0x10]
call fcn.0042e0e6
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
jmp 0x4c7a82
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.0054f9b4
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.0054f9b4
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0054f9b4
and byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.0054f9b4
pop edi
xor esi, esi
pop ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10c]
call fcn.0042e4d0
mov eax, esi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 4