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

Disassembly:
mov eax, 0x58a514
call fcn.00510ecc
push ecx
mov eax, dword [0x66d540]
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.005651d9
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0xc
push dword [ebp - 0x10]
call edi
test eax, eax
je 0x464bec
lea eax, [ebp - 0x10]
lea ecx, [esi + 8]
push eax
call fcn.0056806a
cmp dword [esi + 4], 0
push 2
pop ebx
jne 0x464c04
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.005651d9
add esp, 0xc
push dword [ebp - 0x10]
call edi
test eax, eax
je 0x464c2d
lea eax, [ebp - 0x10]
lea ecx, [esi + 0x10]
push eax
call fcn.0056806a
cmp dword [esi + 0xc], 0
jne 0x464c42
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.005651d9
add esp, 0xc
push dword [ebp - 0x10]
call edi
test eax, eax
je 0x464c6b
lea eax, [ebp - 0x10]
lea ecx, [esi + 0x18]
push eax
call fcn.0056806a
cmp dword [esi + 0x14], 0
jne 0x464c80
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.005651d9
add esp, 0xc
push dword [ebp - 0x10]
call edi
test eax, eax
je 0x464ca9
lea eax, [ebp - 0x10]
lea ecx, [esi + 0x20]
push eax
call fcn.0056806a
cmp dword [esi + 0x1c], 0
jne 0x464cbe
push dword [esi + 0x20]
call edi
neg eax
sbb eax, eax
and eax, ebx
dec eax
mov dword [esi + 0x1c], eax
push str.cacert.pem
mov ebx, 0x5dd238
push dword [ebp + 8]
add esi, 0x24
push ebx
push esi
call fcn.005651d9
add esp, 0x10
push dword [esi]
call edi
test eax, eax
jne 0x464cf2
push str.ca_bundle.crt
push dword [ebp + 8]
push ebx
push esi
call fcn.005651d9
add esp, 0x10
push dword [esi]
call edi
test eax, eax
jne 0x464d0c
push str.ca_bundle.trust.crt
push dword [ebp + 8]
push ebx
push esi
call fcn.005651d9
add esp, 0x10
push dword [esi]
call edi
test eax, eax
jne 0x464d26
push str.curl_ca_bundle.crt
push dword [ebp + 8]
push ebx
push esi
call fcn.005651d9
add esp, 0x10
push dword [esi]
call edi
test eax, eax
jne 0x464d40
push str.cacert.pem
push dword [ebp + 8]
push ebx
push esi
call fcn.005651d9
add esp, 0x10
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00567f23
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x466423
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 0x466514
push dword [esi + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4664a1
push 1
pop ebx
cmp edi, ebx
jle 0x466465
cmp dword [esi + 0x88], ebx
jne 0x466465
push ebx
lea ecx, [esi + 0xa0]
call fcn.004663e1
test edi, edi
jle 0x466476
cmp dword [esi + 0x8c], 0
jle 0x466507
push dword [esi + 0xc]
call fcn.004112fc
test edx, edx
pop ecx
jg 0x466489
jl 0x4664a1
test eax, eax
jbe 0x4664a1
test byte [esi + 0x2c], bl
je 0x4664b4
cmp eax, dword [esi + 0x90]
lea ecx, [esi + 0x90]
jne 0x4664a1
cmp edx, dword [ecx + 4]
je 0x4664c6
push 0
lea ecx, [esi + 0xa0]
call fcn.004663e1
and dword [esi + 0x2c], 0xfffffffe
jmp 0x466514
cmp edi, ebx
jne 0x4664c6
mov ecx, dword [esi + 0xa4]
mov ecx, dword [ecx]
mov dword [ecx + 0x40], eax
mov dword [ecx + 0x44], edx
xor ecx, ecx
xor ebx, ebx
xor edx, edx
test edi, edi
jle 0x466507
mov eax, dword [esi + 0xa4]
mov eax, dword [eax + edx*4]
test eax, eax
je 0x4664fe
xor edi, edi
cmp dword [eax + 0x44], edi
jg 0x4664f1
jl 0x4664eb
cmp dword [eax + 0x40], edi
jae 0x4664f1
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 0x4664d0
or ecx, ebx
jne 0x466514
push 0
lea ecx, [esi + 0xa0]
call fcn.004663e1
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x467055
Capabilities:
Resume thread

Disassembly:
mov eax, 0x58a891
call fcn.00510ecc
push ecx
push ebx
push esi
push edi
mov edi, ecx
push 0x128
call fcn.00568512
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 0x467093
push dword [edi + 0x34]
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push esi
push edi
call fcn.0046584d
jmp 0x467095
xor eax, eax
or dword [ebp - 4], 0xffffffff
push ebx
push ebx
push 4
mov ecx, eax
mov dword [esi + 0x68], eax
call fcn.0056c236
test eax, eax
jne 0x4670c9
mov ecx, dword [esi + 0x68]
cmp ecx, ebx
je 0x4670b9
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 0x46710f
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 0x467112
mov eax, dword [edi + 0x10]
cmp eax, ebx
je 0x4670f6
cmp dword [eax], ebx
jne 0x46710d
push 0x64
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x467116
cmp dword [esi + 0x20], 0x14
jge 0x467112
jmp 0x4670eb
push 1
pop eax
jmp 0x46713c
xor eax, eax
jmp 0x46713c
mov ecx, dword [esi + 0x68]
push 0x14
call fcn.004660b6
mov ecx, dword [esi + 0x68]
call fcn.00449793
mov ecx, dword [esi + 0x68]
cmp ecx, ebx
je 0x467136
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 0x467368
Capabilities:
Resume thread

Disassembly:
mov eax, 0x58a8a5
call fcn.00510ecc
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x100], ebx
je 0x467387
push 1
pop eax
jmp 0x4673ef
push 0x6c
mov dword [edi + 0x104], ebx
call fcn.00568512
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
cmp ecx, ebx
mov dword [ebp - 4], ebx
je 0x4673ab
push edi
call fcn.00468789
mov esi, eax
jmp 0x4673ad
xor esi, esi
or eax, 0xffffffff
cmp esi, ebx
mov dword [ebp - 4], eax
je 0x4673ef
push ebx
push ebx
push 4
mov ecx, esi
call fcn.0056c236
test eax, eax
jne 0x4673d4
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
or eax, 0xffffffff
jmp 0x4673ef
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 0x487684
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
mov eax, 0x58cb82
call fcn.00510ecc
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.00487731
mov eax, dword [0x66d540]
lea ecx, [esi + 0x14]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ecx], eax
mov eax, dword [0x66d540]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], 0x5a4aac
mov dword [esi + 0x20], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x24], ebx
mov eax, dword [0x66d540]
mov dword [esi + 0x3c], eax
mov eax, dword [0x66d540]
mov dword [esi + 0x40], eax
mov eax, dword [0x66d540]
mov dword [esi + 0x44], eax
mov edi, 0x6752e4
mov byte [ebp - 4], 6
push edi
mov dword [esi], 0x5a4aa0
call fcn.005680ba
push edi
lea ecx, [esi + 0x18]
call fcn.005680ba
push edi
lea ecx, [esi + 0x3c]
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call fcn.005680ba
push edi
lea ecx, [esi + 0x40]
call fcn.005680ba
push edi
lea ecx, [esi + 0x44]
call fcn.005680ba
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x48eb85
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x58d1bf
call fcn.00510ecc
sub esp, 0xe4
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
je 0x48ece3
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48ece3
lea ecx, [ebp - 0xf0]
call fcn.00420bb6
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.00420d1f
mov ecx, eax
call fcn.00420533
test al, al
jne 0x48ebea
or esi, 0xffffffff
jmp 0x48ecb5
lea eax, [ebp - 0x10]
push str.MediaFormats
push eax
lea ecx, [ebp - 0xf0]
call fcn.0042075a
lea ecx, [ebp - 0x10]
call fcn.00420533
test al, al
jne 0x48ebe2
push 0x6752e4
lea eax, [ebp - 0x1c]
push 0x5de388
push eax
lea ecx, [ebp - 0x10]
call fcn.004207a1
mov ecx, eax
call fcn.0042053b
push eax
lea ecx, [ebp - 0x14]
call fcn.00567f97
mov esi, dword [ebp + 0xc]
mov byte [ebp - 4], 1
push dword [esi + 4]
push dword [ebp - 0x14]
call fcn.00510f85
pop ecx
test eax, eax
pop ecx
je 0x48ec4d
push 1
pop esi
jmp 0x48eca9
lea eax, [ebp - 0x18]
push str.Categories
push eax
lea ecx, [ebp - 0x10]
call fcn.0042075a
lea ecx, [ebp - 0x18]
call fcn.00420533
test al, al
je 0x48ec6f
or esi, 0xffffffff
jmp 0x48eca9
cmp dword [esi + 0x10], ebx
jle 0x48eca7
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.0042075a
lea ecx, [ebp + 8]
call fcn.00420533
test al, al
jne 0x48ecc8
lea eax, [ebp + 8]
push eax
push edi
call fcn.0048ecf7
inc ebx
pop ecx
cmp ebx, dword [esi + 0x10]
pop ecx
jl 0x48ec74
xor esi, esi
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00567f23
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf0]
call fcn.00420bcd
mov eax, esi
jmp 0x48ece6
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00567f23
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf0]
call fcn.00420bcd
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x4923af
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x58d7b9
call fcn.00510ecc
sub esp, 0xdc
and dword [ebp - 0x10], 0
push ebx
push esi
push edi
lea ecx, [ebp - 0x30]
call fcn.00567420
mov ebx, 0x5a56f0
mov dword [ebp - 0x30], ebx
and dword [ebp - 4], 0
push 0x4c
call fcn.00568512
mov esi, eax
pop ecx
mov dword [ebp - 0x18], esi
test esi, esi
mov byte [ebp - 4], 1
je 0x4923fe
mov ecx, esi
call fcn.0049256c
mov dword [esi], 0x5a56e8
jmp 0x492400
xor esi, esi
mov eax, dword [esi]
and byte [ebp - 4], 0
mov ecx, esi
call dword [eax]
test eax, eax
je 0x492422
test esi, esi
je 0x49247e
mov ecx, esi
call fcn.004926b3
push esi
call fcn.0056853b
pop ecx
jmp 0x49247e
push esi
lea ecx, [ebp - 0x30]
push dword [ebp - 0x28]
call fcn.005674ba
lea eax, [esi + 0x20]
push 0x5dd210
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.005681c8
add esi, 0x24
mov byte [ebp - 4], 2
push esi
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00568162
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.00567f23
push dword [ebp - 0x1c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x492472
mov dword [ebp - 0x10], 1
and byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00567f23
lea eax, [ebp - 0x14]
push eax
call fcn.00565a20
cmp dword [ebp - 0x10], 0
mov edi, str.LastServicesUpdate
mov esi, str.Settings
jne 0x4924e1
cmp dword [ebp + 8], 0
je 0x4924e1
call fcn.0057c6ff
mov eax, dword [eax + 4]
push 0
push edi
push esi
mov ecx, eax
call fcn.0057c8e4
push dword [0x67533c]
push eax
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
call fcn.00416055
call fcn.0041610e
add esp, 0xc
test eax, eax
jne 0x4924e1
mov dword [ebp - 0x30], ebx
push 1
mov dword [ebp - 4], 5
pop esi
jmp 0x492547
call fcn.0057c6ff
push dword [ebp - 0x14]
mov eax, dword [eax + 4]
mov ecx, eax
push edi
push esi
call fcn.00572dea
xor esi, esi
lea eax, [ebp - 0x30]
push esi
lea ecx, [ebp - 0xe8]
push dword [ebp + 8]
push str.Update_Download_Engine
push eax
call fcn.0049278b
mov eax, dword [0x675338]
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 6
mov dword [ebp - 0x34], eax
call fcn.0056d0b7
mov eax, dword [ebp - 0x34]
and byte [ebp - 4], 0
lea ecx, [ebp - 0xe8]
mov dword [0x675338], eax
call fcn.00492846
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], 7
lea ecx, [ebp - 0x30]
call fcn.00492657
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00567453
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x49256c
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x58d7fb
call fcn.00510ecc
push ecx
mov eax, dword [0x66d540]
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
lea ecx, [esi + 4]
mov dword [ecx], eax
mov eax, dword [0x66d540]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi + 8], eax
mov eax, dword [0x66d540]
mov dword [esi + 0x20], eax
mov eax, dword [0x66d540]
mov dword [esi + 0x24], eax
mov eax, dword [0x66d540]
mov dword [esi + 0x38], eax
mov edi, 0x6752e4
mov byte [ebp - 4], 4
push edi
mov dword [esi], method.Json::Writer.virtual_4
call fcn.005680ba
push edi
lea ecx, [esi + 8]
call fcn.005680ba
push edi
lea ecx, [esi + 0x20]
mov dword [esi + 0xc], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], ebx
call fcn.005680ba
push edi
lea ecx, [esi + 0x24]
call fcn.005680ba
push edi
lea ecx, [esi + 0x38]
mov dword [esi + 0x34], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x28], ebx
call fcn.005680ba
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x492f96
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push ebx
mov esi, ecx
push ebx
push 0x402
push dword [esi + 0x94]
call edi
push ebx
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0x8000000
push 2
push ebx
push 3
push 0x40000000
push dword [esp + 0x40]
call ebp
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x493002
push ebx
push 0x8000000
push 3
push ebx
push 3
push SysReAllocString
push dword [esp + 0x3c]
call ebp
cmp eax, ebx
mov dword [esp + 0x18], eax
jne 0x49300a
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
jmp 0x4930bf
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
push ebx
push 0x406
push dword [esi + 0x94]
call edi
mov ebp, 0x1000
mov dword [esp + 0x14], ebx
push ebp
call fcn.005118ae
pop ecx
mov dword [esp + 0x24], eax
cmp dword [esi + 0x68], ebx
jne 0x493092
lea eax, [esp + 0x28]
push ebx
push eax
push ebp
push dword [esp + 0x30]
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x493092
cmp dword [esp + 0x28], ebx
jbe 0x493071
lea eax, [esp + 0x1c]
push ebx
push eax
push dword [esp + 0x30]
push dword [esp + 0x30]
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x14]
push ebx
add eax, dword [esp + 0x20]
push eax
push 0x402
push dword [esi + 0x94]
mov dword [esp + 0x24], eax
call edi
cmp dword [esp + 0x28], ebp
jae 0x493035
push dword [esp + 0x24]
call fcn.005119e8
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
push dword [esp + 0x18]
call ebp
push dword [esp + 0x10]
call ebp
push ebx
push ebx
push 0x402
push dword [esi + 0x94]
call edi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
Function at 0x49fb38
Capabilities:
Get process heap force flags

Disassembly:
mov eax, 0x58e180
call fcn.00510ecc
sub esp, 0x14
push ebx
push esi
push edi
mov esi, ecx
push dword [ebp + 0x14]
lea ecx, [ebp + 0x14]
mov dword [ebp - 0x10], esi
call fcn.00567f97
push dword [ebp + 0xc]
lea eax, [ebp - 0x20]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp + 0x10]
add eax, 0xffffffed
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx]
cmp eax, 0xffffffff
jne 0x49fbf1
push dword [ebp + 0x14]
push edi
push 0x1057
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [ebp + 0x18], edi
mov dword [ebx], eax
je 0x49fba5
mov esi, dword [ebp - 0x18]
mov ecx, esi
sub ecx, eax
sub ecx, 0xc
mov dword [ebp - 0x20], ecx
jmp 0x49fbaf
mov ecx, dword [ebp - 0x20]
lea esi, [eax + ecx + 0xc]
mov dword [ebp - 0x18], esi
mov eax, esi
push 4
sub eax, ecx
pop edi
mov dword [ebp + 0x10], eax
cdq
idiv edi
test edx, edx
je 0x49fbeb
cmp dword [ebp + 0x18], 0
mov eax, dword [ebp + 0x10]
je 0x49fbdc
add eax, edi
push edi
cdq
pop ecx
idiv ecx
mov ecx, esi
shl eax, 2
sub ecx, eax
mov dword [ebp - 0x20], ecx
jmp 0x49fbeb
add eax, 4
push 4
cdq
pop esi
idiv esi
lea esi, [ecx + eax*4]
mov dword [ebp - 0x18], esi
sub esi, ecx
mov dword [ebx], esi
jmp 0x49fc08
cmp dword [ebp + 0x18], edi
je 0x49fc00
mov ecx, dword [ebp - 0x18]
sub ecx, eax
mov dword [ebp - 0x20], ecx
jmp 0x49fc08
mov ecx, dword [ebp - 0x20]
add eax, ecx
mov dword [ebp - 0x18], eax
sub esp, 0x10
lea esi, [ebp - 0x20]
mov edi, esp
mov ecx, dword [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 8]
push esi
call fcn.0049fb0d
mov eax, dword [esi]
push 0x202020
mov ecx, esi
call dword [eax + 0x30]
dec dword [ebp - 0x14]
mov edx, dword [esi]
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 0x14]
lea edi, [ebp - 0x20]
push 0x8825
mov ecx, dword [eax - 8]
push edi
push ecx
push eax
mov ecx, esi
call dword [edx + 0x68]
mov eax, dword [esi]
push dword [ebp + 0x18]
mov ecx, esi
call dword [eax + 0x30]
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0xc]
neg ecx
sbb ecx, ecx
or dword [ebp - 4], 0xffffffff
and ecx, 0xfffffffe
add ecx, 6
add ecx, dword [ebx]
add dword [eax], ecx
lea ecx, [ebp + 0x14]
call fcn.00567f23
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x18

Function at 0x4a1bc6
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [ecx]
push dword [esp + 4]
call dword [eax + 0xc8]
mov eax, dword [eax + 0x44]
xor ecx, ecx
cmp dword [eax - 8], ecx
jne 0x4a1be1
or eax, 0xffffffff
jmp 0x4a1bf4
push 1
push ecx
push ecx
push eax
push str.open
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
ret 4
Function at 0x4a9be2
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
cmp dword [edi + 0x38], 0x32
je 0x4a9c83
mov esi, dword [ebp + 8]
push dword [esi + 0x1c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4a9c0d
push 0xfffffffffffffffe
jmp 0x4a9c80
lea eax, [esi + 8]
lea ecx, [edi + 0x54]
push eax
call fcn.0056806a
lea ecx, [esi + 0x38]
push 0x6752e4
call fcn.005680ba
mov eax, dword [esi]
xor ebx, ebx
push edi
mov ecx, esi
mov dword [esi + 0x3c], ebx
call dword [eax + 0x18]
test eax, eax
je 0x4a9c6c
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x4a9c42
cmp dword [eax], ebx
jne 0x4a9c7e
cmp dword [esi + 0x34], ebx
je 0x4a9c83
mov eax, dword [ebp - 4]
add eax, 0x18
mov ecx, dword [eax]
cmp dword [ecx - 8], ebx
je 0x4a9c83
push eax
lea ecx, [esi + 0x38]
call fcn.0056806a
mov eax, dword [esi]
push edi
mov ecx, esi
mov dword [esi + 0x3c], ebx
call dword [eax + 0x18]
test eax, eax
jne 0x4a9c73
mov dword [edi + 0x5c], ebx
xor eax, eax
jmp 0x4a9c86
mov edi, dword [edi + 4]
cmp edi, ebx
je 0x4a9c83
cmp dword [edi], ebx
je 0x4a9c83
push 1
pop eax
jmp 0x4a9c86
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4a9d23
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
cmp dword [edi + 0x38], 0x32
je 0x4a9dc9
mov esi, dword [ebp + 8]
push dword [esi + 0x1c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4a9d4f
push 0xfffffffffffffffe
pop eax
jmp 0x4a9dcc
lea eax, [esi + 8]
lea ecx, [edi + 0x54]
push eax
call fcn.0056806a
lea ecx, [esi + 0x38]
push 0x6752e4
call fcn.005680ba
mov eax, dword [esi]
push 1
pop ebx
mov ecx, esi
push edi
mov dword [esi + 0x3c], ebx
call dword [eax + 0x18]
test eax, eax
je 0x4a9db1
mov eax, dword [edi + 4]
xor ecx, ecx
cmp eax, ecx
je 0x4a9d87
cmp dword [eax], ecx
jne 0x4a9dc5
cmp dword [esi + 0x34], ecx
je 0x4a9dc9
mov eax, dword [ebp - 4]
add eax, 0x18
mov edx, dword [eax]
cmp dword [edx - 8], ecx
je 0x4a9dc9
push eax
lea ecx, [esi + 0x38]
call fcn.0056806a
mov eax, dword [esi]
push edi
mov ecx, esi
mov dword [esi + 0x3c], ebx
call dword [eax + 0x18]
test eax, eax
jne 0x4a9db9
and dword [edi + 0x5c], 0
xor eax, eax
jmp 0x4a9dcc
mov edi, dword [edi + 4]
test edi, edi
je 0x4a9dc9
cmp dword [edi], 0
je 0x4a9dc9
mov eax, ebx
jmp 0x4a9dcc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4c9a40
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x592bf1
call fcn.00510ecc
push ecx
mov eax, dword [0x66d540]
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
lea ebx, [esi + 4]
mov dword [ebx], eax
mov eax, dword [0x66d540]
and dword [ebp - 4], 0
mov dword [esi + 8], eax
lea edi, [esi + 0xc]
push 0
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.0050f6ce
mov dword [edi], 0x59d728
add edi, 8
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov edi, 0x6752e4
mov ecx, ebx
push edi
mov byte [ebp - 4], 2
mov dword [esi], 0x5ab3ec
call fcn.005680ba
push edi
lea ecx, [esi + 8]
call fcn.005680ba
mov ecx, dword [ebp - 0xc]
xor eax, eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4d2045
Capabilities:
Get process heap force flags

Disassembly:
mov eax, 0x593d28
call fcn.00510ecc
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.004b0982
and dword [ebp - 4], 0
mov edi, str.youtube.com
push edi
lea ecx, [esi + 8]
mov dword [esi], 0x5ab3fc
mov dword [esi + 4], 0x70000
call fcn.005680ba
push edi
lea ecx, [esi + 0x10]
call fcn.005680ba
push str.YouTube
lea ecx, [esi + 0x14]
call fcn.005680ba
push str.https:__www.youtube.com_
lea ecx, [esi + 0x18]
call fcn.005680ba
mov ecx, dword [ebp - 0xc]
push 1
pop eax
mov dword [esi + 0x1c], 0x65
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x4d2050
Capabilities:
Get process heap force flags

Disassembly:
mov eax, 0x593d28
call fcn.00510ecc
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.004b0982
and dword [ebp - 4], 0
mov edi, str.youtube.com
push edi
lea ecx, [esi + 8]
mov dword [esi], 0x5ab3fc
mov dword [esi + 4], 0x70000
call fcn.005680ba
push edi
lea ecx, [esi + 0x10]
call fcn.005680ba
push str.YouTube
lea ecx, [esi + 0x14]
call fcn.005680ba
push str.https:__www.youtube.com_
lea ecx, [esi + 0x18]
call fcn.005680ba
mov ecx, dword [ebp - 0xc]
push 1
pop eax
mov dword [esi + 0x1c], 0x65
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret