joyce8/EMBER2024-capa huggingface dataset:
Function at 0x463190
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4db5c8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x513330]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
push str.____________________Entrance____________________
lea ecx, [esp + 0x30]
lea eax, [ebx + 0xa8]
push ecx
push eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], str.SetName
call fcn.00471a00
add esp, 0xc
lea edi, [ebx + 0xf4]
mov dword [esp + 0x40], 0
mov eax, dword [edi]
sub eax, 0x10
mov dword [esp + 0x18], edi
call fcn.00408230
add eax, 0x10
mov dword [esp + 0x24], eax
lea eax, [ebx + 0xf8]
mov dword [esp + 0x1c], eax
mov byte [esp + 0x40], 1
mov eax, dword [eax]
sub eax, 0x10
call fcn.00408230
add eax, 0x10
mov dword [esp + 0x20], eax
mov esi, dword [ebp + 8]
mov byte [esp + 0x40], 2
mov eax, dword [esi]
push 0x2e
push eax
call fcn.004a651b
add esp, 8
test eax, eax
jne 0x463249
mov dword [esp + 0x14], 0xffffffff
jmp 0x463251
sub eax, dword [esi]
sar eax, 1
mov dword [esp + 0x14], eax
mov eax, esi
call fcn.004082a0
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x4632e8
push esi
xor ecx, ecx
lea edx, [esp + 0x2c]
call fcn.0040b870
mov byte [esp + 0x40], 3
call fcn.004082a0
mov byte [esp + 0x40], 2
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4632a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp + 8]
inc ecx
lea esi, [esp + 0x14]
call fcn.0040b850
mov edi, dword [esp + 0x1c]
mov byte [esp + 0x40], 4
call fcn.004082a0
mov byte [esp + 0x40], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4632e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x18]
mov ecx, dword [ebx + 0x30]
cmp ecx, 6
jne 0x463310
push ebx
call fcn.00467340
test al, al
jne 0x463310
lea eax, [esp + 0x24]
call fcn.004082a0
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x20]
call fcn.004082a0
mov byte [esp + 0x40], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x463335
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x40], 0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46335a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.______________________Exit______________________
lea ecx, [esp + 0x30]
mov dword [esp + 0x44], 0xffffffff
mov edx, dword [esp + 0x34]
push ecx
push edx
call fcn.00471a00
add esp, 0xc
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x463420
Capabilities:
Access peb ldr_data
Create thread
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4de910
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x513330]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
push str.____________________Entrance____________________
lea ecx, [esp + 0x18]
lea edi, [esi + 0xa8]
mov eax, edi
push ecx
push eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], str.Prepare
call fcn.00471a00
add esp, 0xc
lea edx, [esp + 0x10]
mov dword [esp + 0x28], 0
mov ebx, dword [esi + 0x30]
push edx
call fcn.00465ac0
add esp, 4
mov byte [esp + 0x28], 1
mov eax, dword [eax]
push eax
push str.m_status_s
lea ecx, [esp + 0x1c]
push ecx
push edi
call fcn.004719c0
mov byte [esp + 0x38], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 0x10
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4634cd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.00463390
mov ecx, dword [esi + 0x30]
test ecx, ecx
je 0x46351c
mov edx, dword [esi + 0x30]
cmp edx, 7
je 0x46351c
mov eax, dword [esi + 0x30]
cmp eax, 3
je 0x46351c
push str.State_Failure._Check_why_double_Prepare___item.
lea ecx, [esp + 0x18]
push ecx
push edi
call fcn.00471980
add esp, 0xc
push str.______________________Exit______________________
lea edx, [esp + 0x18]
mov dword [esp + 0x2c], 0xffffffff
mov eax, dword [esp + 0x1c]
push edx
push eax
call fcn.00471a00
mov al, 1
jmp 0x46355e
push 0
push 0
push esi
push 0x464410
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
sete bl
test eax, eax
je 0x463540
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.______________________Exit______________________
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0xffffffff
mov edx, dword [esp + 0x1c]
push ecx
push edx
call fcn.00471a00
mov al, bl
add esp, 0xc
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x463890
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4db528
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x513330]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
push str.____________________Entrance____________________
lea ecx, [esp + 0x28]
lea eax, [ebx + 0xa8]
push ecx
push eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], str.ResumePaused
call fcn.00471a00
add esp, 0xc
xor edi, edi
mov dword [esp + 0x38], edi
mov dword [ebx + 0x10c], edi
mov edx, dword [ebx + 0x30]
mov dword [ebx + 0x34], edx
mov esi, ebx
mov dword [ebx + 0x30], 2
call fcn.00462a30
mov esi, dword [ebx + 0x1c4]
cmp dword [ebx + 0x1cc], edi
jne 0x46392a
mov eax, dword [ebx + 0x70]
push edi
push edi
push ebx
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
je 0x463948
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x463948
cmp esi, edi
jne 0x463984
push 0
push 0
push ebx
push 0x4645d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebx + 0x178], eax
push str.______________________Exit______________________
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], 0xffffffff
mov edx, dword [esp + 0x2c]
push ecx
push edx
call fcn.00471a00
add esp, 0xc
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0x14]
mov ecx, dword [ebx + 0xec]
mov eax, dword [ebx + 0x1cc]
push ecx
push eax
push str.subItems_d__Url_s
lea edx, [esp + 0x30]
push edx
lea eax, [ebx + 0xa8]
push eax
call fcn.004719c0
xor eax, eax
add esp, 0x14
test esi, esi
setne al
test eax, eax
je 0x463a8d
mov edi, dword [esi + 8]
mov eax, dword [esi]
mov dword [esp + 0x14], eax
test edi, edi
je 0x463a7d
mov edx, dword [edi]
mov eax, dword [edx + 0x24]
mov ecx, edi
call eax
mov edx, dword [edi]
mov esi, eax
mov eax, dword [edx + 0x20]
mov ecx, edi
mov dword [esp + 0x20], esi
call eax
mov ecx, dword [edi + 0x6c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], ecx
test ecx, ecx
je 0x463a31
mov eax, dword [ebx + 0x16c]
lea esi, [ebx + 0x168]
mov dword [esp + 0x1c], eax
cmp eax, dword [esi + 8]
jb 0x463a1d
inc eax
call fcn.00468380
test al, al
je 0x463a97
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, dword [esi]
lea eax, [edx + eax*4]
test eax, eax
je 0x463a28
mov dword [eax], ecx
inc dword [esi + 4]
mov esi, dword [esp + 0x20]
jmp 0x463a4b
push edi
push str.Failed_to_create_AsyncDownload_thread_pSubItem_x
lea eax, [esp + 0x2c]
push eax
lea eax, [ebx + 0xa8]
push eax
call fcn.00471980
add esp, 0x10
test esi, esi
jne 0x463a5a
cmp dword [esp + 0x10], esi
je 0x463a5a
cmp dword [edi + 0x6c], esi
jne 0x463a7d
mov ecx, dword [edi + 0x6c]
mov edx, dword [esp + 0x10]
push ecx
push edx
push esi
push str.IsRunning___d_spSubItem__AsyncResume___d_pSubItem__m_hThread_x
lea eax, [esp + 0x34]
push eax
lea eax, [ebx + 0xa8]
push eax
call fcn.00471980
add esp, 0x18
cmp dword [esp + 0x14], 0
jne 0x463980
jmp 0x46392e
push 0x80004005
call fcn.00405ef0
push 0x8007000e
call fcn.00405ef0
int3
Function at 0x463b80
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d8130
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x513330]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
push str.____________________Entrance____________________
lea ecx, [esp + 0x18]
lea esi, [edi + 0xa8]
mov eax, esi
push ecx
push eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], str.Stop
call fcn.00471a00
add esp, 0xc
mov bl, byte [ebp + 8]
mov dword [esp + 0x30], 0
mov byte [edi + 0x68], bl
test bl, bl
jne 0x463c0c
mov eax, dword [edi + 0x30]
cmp eax, 3
je 0x463bf9
cmp eax, 5
jle 0x463c0c
cmp eax, 7
jg 0x463c0c
push str.Should_not_get_here__Check_the_ActivityManager::IsStopSupported___
lea edx, [esp + 0x18]
push edx
push esi
call fcn.00471980
add esp, 0xc
lea eax, [edi + 0x188]
push eax
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x20], 1
xor ecx, ecx
test bl, bl
setne cl
mov byte [esp + 0x30], 1
mov eax, dword [edi + 0x30]
mov dword [edi + 0x34], eax
lea ecx, [ecx + ecx + 3]
mov dword [edi + 0x30], ecx
call fcn.00463cb0
xor esi, esi
cmp dword [edi + 0x16c], esi
jne 0x463c5e
mov edx, dword [edi + 0x30]
cmp edx, 3
jne 0x463c5e
call fcn.00467b00
mov eax, edi
call fcn.00467fa0
mov eax, dword [esp + 0x1c]
fldz
mov dword [edi + 0x44], esi
fstp qword [edi + 0x50]
mov dword [edi + 0x48], esi
or esi, 0xffffffff
push eax
mov dword [edi + 0x58], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push str.______________________Exit______________________
lea ecx, [esp + 0x18]
mov dword [esp + 0x34], esi
mov edx, dword [esp + 0x1c]
push ecx
push edx
call fcn.00471a00
add esp, 0xc
mov al, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x463cb0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d80f8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
mov eax, dword [0x513330]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
push str.____________________Entrance____________________
lea ecx, [esp + 0x20]
lea esi, [edi + 0xa8]
mov eax, esi
push ecx
push eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], str.StopAllSubItems
call fcn.00471a00
add esp, 0xc
lea edx, [esp + 0x18]
mov dword [esp + 0x30], 0
mov ebx, dword [edi + 0x30]
push edx
call fcn.00465ac0
add esp, 4
mov dword [esp + 0x10], eax
lea eax, [esp + 0x14]
mov byte [esp + 0x30], 1
mov ebx, dword [edi + 0x34]
push eax
call fcn.00465ac0
add esp, 4
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x30], 2
mov edx, dword [ecx]
mov eax, dword [eax]
push edx
push eax
push str.Yes_master__oldState_s_and_current_state_s
lea ecx, [esp + 0x28]
push ecx
push esi
call fcn.004719c0
mov ebx, 1
mov byte [esp + 0x44], bl
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 0x14
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x463d7e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x30], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x463da3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [edi + 0x10c], ebx
push str.______________________Exit______________________
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], 0xffffffff
mov edx, dword [esp + 0x24]
push ecx
push edx
call fcn.00471a00
add esp, 0xc
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x464bd0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4db4f0
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x513330]
xor eax, esp
mov dword [esp + 0x5c], eax
push ebx
push esi
mov eax, dword [0x513330]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
push edi
lea eax, [esp + 0x28]
push eax
mov ebx, 0x4f3628
call fcn.00471780
lea ecx, [esp + 0x24]
push str.____________________Entrance____________________
lea edx, [esp + 0x10]
push edx
mov eax, ecx
xor ebx, ebx
mov dword [esp + 0x80], ebx
push eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], str.PrepareTempFile
call fcn.00471a00
add esp, 0xc
mov byte [esp + 0x78], 1
cmp edi, ebx
jne 0x464c78
push str.______________________Exit______________________
lea ecx, [esp + 0x10]
mov byte [esp + 0x7c], bl
mov edx, dword [esp + 0x14]
push ecx
push edx
call fcn.00471a00
add esp, 0xc
lea ecx, [esp + 0x24]
call fcn.00471810
xor al, al
jmp 0x464d56
mov ecx, dword [edi + 0xe8]
lea eax, [esp + 0x18]
lea esi, [edi + 0xe8]
push eax
push ecx
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x464caa
call fcn.00405b90
test eax, eax
jl 0x464cb4
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, eax
mov dword [esp + 0x20], edx
mov eax, dword [edi + 0x64]
mov ecx, dword [edi + 0x60]
push eax
push ecx
call fcn.00462130
test eax, eax
jge 0x464d09
mov edx, dword [edi + 0x64]
mov eax, dword [edi + 0x60]
push edx
push eax
push str.Failed_to_m_fileOutput.SetSize_pItem__m_ulFileSize_lld_
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x34]
push edx
call fcn.00471980
add esp, 0x14
push 0xb
mov ecx, edi
call fcn.00465500
add esp, 4
push str.______________________Exit______________________
lea eax, [esp + 0x10]
mov byte [esp + 0x7c], 0
mov ecx, dword [esp + 0x14]
push eax
push ecx
jmp 0x464c60
mov eax, dword [esp + 0x20]
mov edx, ebx
or edx, eax
je 0x464d2f
cmp ebx, dword [edi + 0x60]
jne 0x464d1d
cmp eax, dword [edi + 0x64]
je 0x464d2f
lea ecx, [edi + 0x148]
mov dword [edi + 0x48], 0
call fcn.004680d0
push str.______________________Exit______________________
lea eax, [esp + 0x10]
mov byte [esp + 0x7c], 0
mov ecx, dword [esp + 0x14]
push eax
push ecx
call fcn.00471a00
add esp, 0xc
lea ecx, [esp + 0x24]
call fcn.00471810
mov al, 1
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.004a52a5
mov esp, ebp
pop ebp
ret
Function at 0x465130
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4db450
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x513330]
xor eax, esp
mov dword [esp + 0x4c], eax
push ebx
push edi
mov eax, dword [0x513330]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov edi, ecx
push edi
lea eax, [esp + 0x18]
push eax
mov ebx, 0x4f3628
call fcn.00471780
lea ecx, [esp + 0x14]
push str.____________________Entrance____________________
lea edx, [esp + 0x10]
push edx
mov eax, ecx
xor ebx, ebx
mov dword [esp + 0x70], ebx
push eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], str.RunOneStreamThread
call fcn.00471a00
add esp, 0xc
push esi
mov byte [esp + 0x6c], 1
call fcn.00465260
add esp, 4
test al, al
jne 0x465206
cmp esi, ebx
je 0x4651c4
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push 1
mov ecx, esi
call eax
push str.Failed_AddNewSubItemThread.
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00471980
add esp, 0xc
push str.______________________Exit______________________
lea eax, [esp + 0x10]
mov byte [esp + 0x6c], bl
mov ecx, dword [esp + 0x14]
push eax
push ecx
call fcn.00471a00
add esp, 0xc
lea ecx, [esp + 0x14]
call fcn.00471810
mov eax, 1
jmp 0x465242
push ebx
push ebx
push edi
push 0x4645d0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push str.______________________Exit______________________
lea edx, [esp + 0x10]
mov dword [edi + 0x178], eax
mov byte [esp + 0x6c], bl
mov eax, dword [esp + 0x14]
push edx
push eax
call fcn.00471a00
add esp, 0xc
lea ecx, [esp + 0x14]
call fcn.00471810
xor eax, eax
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.004a52a5
mov esp, ebp
pop ebp
ret
Function at 0x465500
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4db418
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x513330]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
push edi
mov eax, dword [0x513330]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov edi, ecx
push edi
lea eax, [esp + 0x20]
push eax
mov ebx, 0x4f3628
call fcn.00471780
lea ecx, [esp + 0x1c]
push str.____________________Entrance____________________
lea edx, [esp + 0x14]
push edx
mov eax, ecx
mov dword [esp + 0x78], 0
push eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], str.OnFailed
call fcn.00471a00
add esp, 0xc
mov ebx, dword [ebp + 8]
mov byte [esp + 0x70], 1
cmp ebx, 3
je 0x465596
cmp ebx, 0xd
je 0x465596
cmp ebx, 6
je 0x465596
cmp ebx, 0x10
je 0x465596
xor eax, eax
jmp 0x46559b
mov eax, 1
mov ecx, dword [edi + 0x30]
movzx edx, al
neg edx
sbb edx, edx
and edx, 0xfffffffd
add edx, 7
mov dword [edi + 0x34], ecx
mov dword [edi + 0x30], edx
mov dword [edi + 0x28], ebx
mov dword [edi + 0x110], 1
call fcn.00463cb0
cmp dword [edi + 0x1cc], 0
jne 0x4655e7
mov eax, dword [edi + 0x30]
cmp eax, 4
jne 0x4655e1
mov ecx, dword [edi + 0x30]
mov dword [edi + 0x34], ecx
mov dword [edi + 0x30], 5
push edi
call fcn.00467710
lea esi, [esp + 0x18]
mov eax, edi
call fcn.0041b8d0
push ebx
mov byte [esp + 0x74], 2
mov edx, dword [eax]
push edx
push str.Url_s_err_d
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.00471980
mov byte [esp + 0x84], 1
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 0x14
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46563a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.______________________Exit______________________
lea ecx, [esp + 0x14]
mov byte [esp + 0x74], 0
mov edx, dword [esp + 0x18]
push ecx
push edx
call fcn.00471a00
add esp, 0xc
lea esi, [esp + 0x40]
mov dword [esp + 0x1c], vtable.Logger.0
call fcn.00472670
mov eax, dword [esp + 0x40]
push eax
call fcn.004a529a
add esp, 4
cmp dword [esp + 0x3c], 8
jb 0x465688
mov ecx, dword [esp + 0x28]
push ecx
call fcn.004a529a
add esp, 4
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.004a52a5
mov esp, ebp
pop ebp
ret
Function at 0x4669c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db388
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x513330]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x14], esi
push str.____________________Entrance____________________
lea ecx, [ebp - 0x1c]
lea edi, [esi + 0x78]
mov eax, edi
push ecx
push eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], str.AsyncResume
call fcn.00471a00
add esp, 0xc
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
mov ecx, esi
call eax
test eax, eax
jne 0x466b0f
mov ecx, dword [esi + 0x64]
mov dword [ecx], eax
mov edx, dword [esi + 0xc8]
mov ecx, dword [esi + 0x6c]
mov eax, dword [esi + 0xcc]
push ecx
mov dword [esi + 0xb8], edx
mov edx, dword [esi + 0xc4]
push edx
mov edx, dword [esi + 0xb8]
mov dword [esi + 0xbc], eax
mov eax, dword [esi + 0xc0]
mov ecx, dword [esi + 0xbc]
push eax
push ecx
push edx
push str.m_ulStart_lld_m_ulEnd_lld_m_hThread_x.
lea eax, [ebp - 0x1c]
push eax
push edi
call fcn.004719c0
mov ecx, dword [esi + 0xbc]
add esp, 0x20
cmp ecx, dword [esi + 0xc4]
ja 0x466afb
jb 0x466a9a
mov edx, dword [esi + 0xb8]
cmp edx, dword [esi + 0xc0]
jae 0x466afb
push 0
push 0
push esi
push 0x4656b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x6c], eax
test eax, eax
jne 0x466b3d
push str.Failed_to_CreateThread_AsyncDownload_.
lea eax, [ebp - 0x1c]
push eax
push edi
call fcn.00471980
add esp, 0xc
push str.______________________Exit______________________
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
push ecx
push edx
call fcn.00471a00
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Failure_m_ulStart_lld_is_NOT_LESS_then_m_ulEnd_lld.
lea eax, [ebp - 0x1c]
push eax
push edi
call fcn.00471980
add esp, 0xc
jmp 0x466b3d
mov ecx, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov eax, dword [esi + 0xbc]
push ecx
mov ecx, dword [esi + 0xb8]
push edx
push eax
push ecx
push str.Failure._Trying_to_resume_running_item._m_ulStart_lld_m_ulEnd_lld.
lea edx, [ebp - 0x1c]
push edx
push edi
call fcn.00471980
add esp, 0x1c
push str.______________________Exit______________________
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
push eax
push ecx
call fcn.00471a00
add esp, 0xc
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x467b00
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d7e88
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
mov eax, dword [0x513330]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
push str.____________________Entrance____________________
lea ecx, [esp + 0x18]
lea esi, [edi + 0xa8]
mov eax, esi
push ecx
push eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], str.DeleteTempFile
call fcn.00471a00
add esp, 0xc
xor ebx, ebx
mov dword [esp + 0x28], ebx
cmp dword [edi + 0xe8], ebx
je 0x467b8a
mov eax, dword [edi + 0xe8]
cmp eax, ebx
je 0x467b77
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0xe8], ebx
push str.Just_closed_handle
lea edx, [esp + 0x18]
push edx
push esi
call fcn.004719c0
add esp, 0xc
lea esi, [esp + 0x10]
mov eax, edi
call fcn.00484920
mov ebx, eax
lea esi, [esp + 0xc]
mov eax, edi
mov byte [esp + 0x28], 1
call fcn.00484920
mov esi, eax
mov byte [esp + 0x28], 2
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
jne 0x467bba
xor al, al
jmp 0x467bc6
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne al
mov ecx, dword [esi]
movzx eax, al
push eax
push ecx
push str.Try_to_delete_the_outputFile_s_fileExist_d.
lea edx, [esp + 0x20]
push edx
lea eax, [edi + 0xa8]
push eax
call fcn.004719c0
mov byte [esp + 0x3c], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 0x14
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x467c0b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x28], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x467c30
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x10]
mov eax, edi
call fcn.00484920
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
je 0x467c4a
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x467c6a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.______________________Exit______________________
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0xffffffff
mov edx, dword [esp + 0x1c]
push ecx
push edx
call fcn.00471a00
add esp, 0xc
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret