joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41200a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4560d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004267c0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x412086
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x426
push str.cache.cpp
call fcn.004300d9
push str.Failed_to_get_temp_path_for_working_folder.
jmp 0x4120a7
push esi
lea eax, [ebp - 0x20c]
push eax
push str._ls_ls_
push edi
call fcn.00433cea
mov esi, eax
add esp, 0x10
test esi, esi
jns 0x4120af
push str.Failed_to_append_bundle_id_on_to_temp_path_for_working_folder.
push esi
call fcn.00430a57
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004267af
leave
ret 8

Function at 0x4125c9
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ebx
mov eax, 0x20000004
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], edi
cmp dword [ebp + 8], ebx
je 0x41265b
lea eax, [ebp - 4]
push eax
push 0x1a
call fcn.00411f61
mov esi, eax
test esi, esi
jns 0x412601
push str.Failed_to_allocate_administrator_SID.
jmp 0x412646
push 2
push 8
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
jne 0x412653
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x562
push str.cache.cpp
call fcn.004300d9
push str.Failed_to_initialize_ACL.
push esi
call fcn.00430a57
mov edi, dword [ebp - 4]
pop ecx
pop ecx
jmp 0x412684
mov edi, dword [ebp - 4]
mov eax, 0x20000005
push 0x7d0
push 3
push ebx
lea ecx, [ebp - 0xc]
push ecx
push ebx
push edi
push eax
push 1
push dword [ebp + 0xc]
call fcn.004380b4
push 0x80
push dword [ebp + 0xc]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test edi, edi
je 0x41268e
push edi
call fcn.00431137
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x413414
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x4560d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
xor eax, eax
push 0x250
push eax
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x25c], eax
lea eax, [ebp - 0x254]
push eax
call fcn.004267c0
add esp, 0xc
lea eax, [ebp - 0x258]
push eax
push str..unverified
push dword [ebp + 8]
call fcn.00413be9
test eax, eax
js 0x413479
push 7
push dword [ebp - 0x258]
call fcn.0043740c
cmp dword [ebp + 8], 0
jne 0x41355c
lea eax, [ebp - 0x258]
push eax
push esi
call fcn.0041200a
test eax, eax
js 0x41355c
lea eax, [ebp - 0x260]
push eax
push 0x44574c
push dword [ebp - 0x258]
call fcn.004314a9
test eax, eax
js 0x41355c
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41355c
test byte [ebp - 0x254], 0x10
jne 0x413543
xor eax, eax
mov word [ebp - 0x22], ax
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 2
jbe 0x41351b
push 0x2e
pop ecx
cmp cx, word [ebp + eax*2 - 0x22c]
jne 0x41351b
movzx eax, word [ebp + eax*2 - 0x22a]
push 0x52
pop ecx
cmp cx, ax
je 0x413543
push 0x72
pop ecx
cmp cx, ax
je 0x413543
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 0x258]
call fcn.004314a9
test eax, eax
js 0x413543
push dword [ebp - 0x25c]
call fcn.00436816
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4134d5
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x25c], 0
pop esi
je 0x413571
push dword [ebp - 0x25c]
call fcn.004380ab
cmp dword [ebp - 0x260], 0
je 0x413585
push dword [ebp - 0x260]
call fcn.004380ab
cmp dword [ebp - 0x258], 0
je 0x413599
push dword [ebp - 0x258]
call fcn.004380ab
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004267af
leave
ret 8
Function at 0x416312
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
push 0xa
xor eax, eax
and dword [ebp - 8], eax
and dword [ebp - 4], eax
pop ecx
push 0xa
mov esi, dword [ebp + 8]
lea edi, [ebp - 0x58]
rep stosd dword es:[edi], eax
pop ecx
mov edx, dword [ebp + 0x24]
mov ebx, dword [ebp + 0x1c]
lea edi, [ebp - 0x30]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x28]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 0x20]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xc], ecx
xor ecx, ecx
push ecx
push ecx
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x58]
push eax
push 0x41438b
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x30], esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x4163e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x3ec
push str.elevation.cpp
call fcn.004300d9
push str.Failed_to_create_elevated_cache_thread.
push esi
call fcn.00430a57
pop ecx
pop ecx
jmp 0x416430
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x30]
push eax
push 0x41596e
push esi
call fcn.0040f6a6
mov esi, eax
test esi, esi
jns 0x416410
push str.Failed_to_pump_messages_in_child_process.
push esi
call fcn.00430a57
pop ecx
pop ecx
jmp 0x416429
push dword [ebp - 8]
push edi
call fcn.00416002
mov ecx, dword [ebp + 0x34]
mov eax, dword [ebp - 8]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x38]
mov eax, dword [ebp - 4]
mov dword [ecx], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x34
Function at 0x417453
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
push edi
push edi
push 1
push edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x4174b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x44
push str.splashscreen.cpp
call fcn.004300d9
push str.Failed_to_create_modal_event.
jmp 0x417515
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0x1c]
push eax
push 0x4171da
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
test eax, eax
jne 0x41751f
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x4d
push str.splashscreen.cpp
call fcn.004300d9
push str.Failed_to_create_UI_thread.
push esi
call fcn.00430a57
pop ecx
pop ecx
jmp 0x41752e
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0xc]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], edi
je 0x417541
push dword [ebp - 8]
call esi
mov dword [ebp - 8], edi
cmp dword [ebp - 0xc], edi
je 0x41754b
push dword [ebp - 0xc]
call esi
pop edi
pop esi
leave
ret 0xc
Function at 0x41787a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor ebx, ebx
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
push ebx
push ebx
stosd dword es:[edi], eax
push 1
push ebx
mov esi, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 8], eax
test eax, eax
jne 0x4178d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x3e
push str.uithread.cpp
call fcn.004300d9
push str.Failed_to_create_initialization_event.
jmp 0x417932
mov edi, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push 0x4175be
push ebx
push ebx
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
test eax, eax
jne 0x41793f
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x47
push str.uithread.cpp
call fcn.004300d9
push str.Failed_to_create_the_UI_thread.
push esi
call fcn.00430a57
mov eax, dword [ebp - 4]
pop ecx
pop ecx
jmp 0x41795c
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 8]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov eax, dword [ebp - 4]
mov dword [edi + 0x3ac], eax
mov eax, ebx
mov dword [ebp - 4], eax
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x41796c
push eax
call edi
mov dword [ebp - 4], ebx
cmp dword [ebp - 8], ebx
je 0x417976
push dword [ebp - 8]
call edi
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x4203c0
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov eax, dword [edi + 4]
mov dword [ebp - 4], esi
mov ebx, 0x43b580
test eax, eax
je 0x4203df
mov edx, dword [eax]
jmp 0x4203ec
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x4203ea
mov edx, dword [ecx]
jmp 0x4203ec
mov edx, ebx
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x4203f5
mov ebx, dword [ecx]
test eax, eax
je 0x420407
xor eax, eax
test ecx, ecx
setne al
add eax, 0x20000150
jmp 0x420415
cmp dword [edi + 8], esi
mov eax, 0x2000014f
lea ecx, [eax + 3]
cmovne eax, ecx
push dword [ebp + 0xc]
push str.copy
push ebx
push edx
push eax
push 2
call fcn.00402003
mov ebx, dword [ebp + 0x10]
add esp, 0x18
lea eax, [ebp - 4]
push eax
push ebx
call fcn.00436af7
test eax, eax
je 0x420493
mov eax, dword [ebp - 4]
test al, 1
je 0x420493
and eax, 0xfffffffe
push eax
push ebx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x420493
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x540
push str.apply.cpp
call fcn.004300d9
push ebx
push str.Failed_to_clear_readonly_bit_on_payload_destination_path:__ls
push esi
call fcn.00430a57
add esp, 0xc
jmp 0x420511
push esi
lea eax, [edi + 0x20]
push eax
push edi
push fcn.004202b5
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
jne 0x420511
cmp dword [edi + 0x20], esi
je 0x4204d1
mov esi, 0x80070642
push esi
push 0x54a
push str.apply.cpp
call fcn.004300d9
push ebx
push dword [ebp + 0xc]
push str.BA_aborted_copy_of_payload_from:__ls_to:__ls.
jmp 0x420508
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x54e
push str.apply.cpp
call fcn.004300d9
push ebx
push dword [ebp + 0xc]
push str.Failed_attempt_to_copy_payload_from:__ls_to:__ls.
push esi
call fcn.00430a57
add esp, 0x10
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x420946
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x43b580
mov ecx, dword [esi + 4]
push edi
mov dword [ebp - 8], ebx
test ecx, ecx
je 0x420969
mov eax, dword [ecx]
jmp 0x420972
mov eax, dword [esi + 8]
test eax, eax
je 0x420977
mov eax, dword [eax]
mov dword [ebp + 8], eax
jmp 0x42097a
mov dword [ebp + 8], ebx
mov edx, dword [esi + 0xc]
test edx, edx
je 0x420986
mov eax, dword [edx]
mov dword [ebp - 8], eax
lea ebx, [ecx + 0x2c]
test ecx, ecx
jne 0x4209b6
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [edx + 0x14]
lea ebx, [edx + 0x40]
mov dword [ebp - 0xc], eax
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
test ecx, ecx
je 0x4209c1
xor eax, eax
test edx, edx
setne al
add eax, 0x20000150
jmp 0x4209d0
mov eax, dword [ecx + 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ecx + 0x1c]
jmp 0x420999
cmp dword [esi + 8], 0
mov eax, 0x2000014f
lea ecx, [eax + 3]
cmovne eax, ecx
push dword [ebx]
push str.download
push dword [ebp - 8]
push dword [ebp + 8]
push eax
push 2
call fcn.00402003
mov edi, dword [ebp + 0xc]
add esp, 0x18
lea eax, [ebp - 4]
push eax
push edi
call fcn.00436af7
test eax, eax
je 0x420a54
mov eax, dword [ebp - 4]
test al, 1
je 0x420a54
and eax, 0xfffffffe
push eax
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x420a54
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x56e
push str.apply.cpp
call fcn.004300d9
push edi
push str.Failed_to_clear_readonly_bit_on_payload_destination_path:__ls
push esi
call fcn.00430a57
add esp, 0xc
jmp 0x420ae3
and dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], fcn.004202b5
mov dword [ebp - 0x14], esi
mov eax, dword [ebx]
push 0x62
pop ecx
cmp cx, word [eax]
jne 0x420ab3
push 0x69
pop ecx
cmp cx, word [eax + 2]
jne 0x420ab3
push 0x74
pop ecx
cmp cx, word [eax + 4]
jne 0x420ab3
push 0x73
pop edx
cmp dx, word [eax + 6]
jne 0x420ab3
movzx ecx, word [eax + 8]
mov dword [ebp + 0xc], 0x3a
cmp word [ebp + 0xc], cx
je 0x420aa6
cmp dx, cx
jne 0x420ab3
mov ecx, dword [ebp + 0xc]
cmp cx, word [eax + 0xa]
jne 0x420ab3
push edi
push ebx
lea eax, [ebp - 0x1c]
push eax
call fcn.00426408
jmp 0x420acc
push edi
push dword [ebp - 0xc]
lea eax, [ebp - 0x1c]
push dword [ebp - 0x10]
push ebx
push dword [ebp - 8]
push dword [ebp + 8]
push eax
push dword [esi]
call fcn.00425c78
mov esi, eax
test esi, esi
jns 0x420ae3
push edi
push dword [ebx]
push str.Failed_attempt_to_download_URL:__ls_to:__ls
push esi
call fcn.00430a57
add esp, 0x10
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x4240d7
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
or dword [edi + 0x3c], 0xffffffff
push ebx
push dword [ebp + 0xc]
lea eax, [edi + 0x1c]
push eax
call fcn.00433f88
mov esi, eax
test esi, esi
jns 0x424103
push str.Failed_to_copy_file_name.
jmp 0x4241ef
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push ebx
push 1
push ebx
call esi
mov dword [edi + 0x24], eax
test eax, eax
jne 0x42414f
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x97
push str.cabextract.cpp
call fcn.004300d9
push str.Failed_to_create_begin_operation_event.
jmp 0x4241ef
push ebx
push ebx
push 1
push ebx
call esi
mov dword [edi + 0x28], eax
test eax, eax
jne 0x424192
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x9a
push str.cabextract.cpp
call fcn.004300d9
push str.Failed_to_create_operation_complete_event.
jmp 0x4241ef
push ebx
push ebx
push edi
push 0x423a9c
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x20], eax
test eax, eax
jne 0x4241de
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x9e
push str.cabextract.cpp
call fcn.004300d9
push str.Failed_to_create_extraction_thread.
jmp 0x4241ef
push edi
call fcn.00423e70
mov esi, eax
test esi, esi
jns 0x4241f7
push str.Failed_to_wait_for_operation_complete.
push esi
call fcn.00430a57
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4254b6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor eax, eax
push edi
push dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
call fcn.00413c6f
mov esi, eax
test esi, esi
jns 0x4254f6
push dword [ebp + 8]
push str.Failed_to_calculate_resume_path_from_working_path:__ls
push esi
call fcn.00430a57
add esp, 0xc
jmp 0x4255e6
push 0
push 0x80
push 4
push 0
push 4
push 0xc0000000
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x425551
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0xd3
push str.downloadengine.cpp
call fcn.004300d9
mov eax, dword [ebp + 0xc]
push dword [eax]
push str.Failed_to_create_resume_file:__ls
jmp 0x4254e8
mov ecx, dword [ebp - 4]
push 0
lea eax, [ebp - 8]
push eax
push 8
pop eax
sub eax, ecx
push eax
lea eax, [ecx + ebx]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x425599
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 8]
cmp dword [ebp - 8], 0
mov dword [ebp - 4], ecx
je 0x425583
cmp ecx, 8
jb 0x425554
cmp ecx, 8
je 0x42558f
and dword [ebx], 0
and dword [ebx + 4], 0
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
or edi, 0xffffffff
jmp 0x4255da
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0xda
push str.downloadengine.cpp
call fcn.004300d9
mov eax, dword [ebp + 0xc]
push dword [eax]
push str.Failed_to_read_resume_file:__ls
push esi
call fcn.00430a57
add esp, 0xc
cmp edi, 0xffffffff
je 0x4255e6
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10
Function at 0x425ada
Capabilities:
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push esi
push edi
mov edi, dword [ebp + 0x10]
push 0
push 0
push dword [edi + 4]
push dword [edi]
push dword [ebp + 0xc]
call fcn.00436faf
mov esi, eax
test esi, esi
jns 0x425b11
push str.Failed_to_seek_to_start_point_in_file.
push esi
call fcn.00430a57
pop ecx
pop ecx
jmp 0x425c70
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x425c34
cmp dword [ebp - 4], 0
je 0x425c6f
xor ebx, ebx
and dword [ebp + 0x10], ebx
push 0
lea eax, [ebp + 0x10]
push eax
mov eax, dword [ebp - 4]
sub eax, ebx
push eax
mov eax, dword [ebp + 0x20]
add eax, ebx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x425bff
add ebx, dword [ebp + 0x10]
cmp dword [ebp + 0x10], 0
je 0x425b6d
cmp ebx, dword [ebp - 4]
jb 0x425b3c
add dword [edi], ebx
push 0
pop eax
adc dword [edi + 4], eax
cmp dword [ebp + 0x14], 0xffffffff
je 0x425bc6
push eax
push eax
push eax
push eax
push dword [ebp + 0x14]
mov ebx, eax
mov dword [ebp - 8], eax
call fcn.00436faf
test eax, eax
jns 0x425b9f
push str.Failed_to_seek_to_start_point_in_file.
push eax
call fcn.00430a57
pop ecx
pop ecx
jmp 0x425bc6
push 0
lea eax, [ebp - 8]
push eax
push 8
pop eax
sub eax, ebx
push eax
lea eax, [edi + ebx*8]
push eax
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
add ebx, dword [ebp - 8]
cmp dword [ebp - 8], 0
je 0x425bc6
cmp ebx, 8
jb 0x425b9f
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x425bec
cmp dword [eax], 0
je 0x425bec
push dword [ebp + 0xc]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [edi + 4]
push dword [edi]
push eax
call fcn.00414038
mov esi, eax
test esi, esi
js 0x425bf8
cmp dword [ebp - 4], 0
jne 0x425b12
jmp 0x425c6f
push str.UX_aborted_on_cache_progress.
jmp 0x425c67
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x1bc
push str.downloadengine.cpp
call fcn.004300d9
push str.Failed_to_write_data_from_internet.
jmp 0x425c67
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x1b0
push str.downloadengine.cpp
call fcn.004300d9
push str.Failed_while_reading_from_internet.
push esi
call fcn.00430a57
pop ecx
pop ecx
pop ebx
pop edi
mov eax, esi
pop esi
leave
ret 0x24