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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x4540d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
xor edi, edi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00427e30
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
mov esi, 0x104
push esi
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x218], edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x411df0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x411dcb
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, edi
jl 0x411dd6
mov esi, 0x80004005
push esi
push 0x271
push str.logging.cpp
call fcn.0043294e
push str.Failed_to_get_temp_folder.
jmp 0x411ed2
lea eax, [ebp - 0x214]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.00411ca7
mov esi, eax
cmp esi, edi
jge 0x411e14
push str.Failed_to_get_length_of_temp_folder.
jmp 0x411ed2
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x411eb4
push dword [ebp - 0x21c]
lea eax, [ebp - 0x210]
push 0x444370
push eax
call fcn.0043177a
mov esi, eax
add esp, 0xc
cmp esi, edi
jge 0x411e57
push str.Failed_to_format_session_id_as_a_string.
jmp 0x411ed2
lea eax, [ebp - 0x218]
push eax
push SysReAllocString
push dword [ebp - 0x210]
call fcn.00411ca7
mov esi, eax
cmp esi, edi
jge 0x411e7b
push str.Failed_to_get_length_of_session_id_string.
jmp 0x411ed2
push dword [ebp - 0x218]
mov esi, dword [ebp - 0x214]
push dword [ebp - 0x210]
sub esi, dword [ebp - 0x218]
push dword [ebp - 0x218]
lea eax, [ebp + esi*2 - 0x20c]
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x411eb4
mov dword [ebp - 0x214], esi
push dword [ebp - 0x214]
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.00431171
mov esi, eax
cmp esi, edi
jge 0x411eda
push str.Failed_to_copy_temp_folder.
push esi
call fcn.0042fa86
pop ecx
pop ecx
cmp dword [ebp - 0x210], edi
je 0x411eed
push dword [ebp - 0x210]
call fcn.004301e8
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00427eaa
leave
ret
Function at 0x41638e
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 eax, eax
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
push edi
push edi
push 1
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0xc], eax
cmp eax, edi
jne 0x4163f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x4163d1
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, edi
jl 0x4163dc
mov esi, 0x80004005
push esi
push 0x41
push str.splashscreen.cpp
call fcn.0043294e
push str.Failed_to_create_modal_event.
jmp 0x416453
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 0x4161cc
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
cmp eax, edi
jne 0x41645d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x416436
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, edi
jl 0x416441
mov esi, 0x80004005
push esi
push 0x4a
push str.splashscreen.cpp
call fcn.0043294e
push str.Failed_to_create_UI_thread.
push esi
call fcn.0042fa86
pop ecx
pop ecx
jmp 0x41646c
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 0x41647f
push dword [ebp - 8]
call esi
mov dword [ebp - 8], edi
cmp dword [ebp - 0xc], edi
je 0x416489
push dword [ebp - 0xc]
call esi
pop edi
pop esi
leave
ret 0xc

Function at 0x417654
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4540d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
mov esi, ecx
call fcn.00427e30
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x4176cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4176aa
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
js 0x4176b5
mov esi, 0x80004005
push esi
push 0x433
push str.cache.cpp
call fcn.0043294e
push str.Failed_to_get_temp_path_for_working_folder.
jmp 0x4176ed
push esi
lea eax, [ebp - 0x20c]
push eax
push str._ls_ls_
push edi
call fcn.0043177a
mov esi, eax
add esp, 0x10
test esi, esi
jns 0x4176f5
push str.Failed_to_append_bundle_id_on_to_temp_path_for_working_folder.
push esi
call fcn.0042fa86
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00427eaa
leave
ret
Function at 0x417800
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor eax, eax
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
mov ecx, 0x20000004
mov dword [ebp - 4], edi
cmp dword [ebp + 8], edi
je 0x41788b
lea eax, [ebp - 4]
push eax
push 0x1a
call fcn.00417753
mov esi, eax
cmp esi, edi
jge 0x417836
push str.Failed_to_allocate_administrator_SID.
jmp 0x41787c
push 2
push 8
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
jne 0x417886
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x41785c
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, edi
jl 0x417867
mov esi, 0x80004005
push esi
push 0x573
push str.cache.cpp
call fcn.0043294e
push str.Failed_to_initialize_ACL.
push esi
call fcn.0042fa86
pop ecx
pop ecx
jmp 0x4178b6
mov ecx, 0x20000005
push 0x7d0
push 3
push edi
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp - 4]
push ecx
push 1
push dword [ebp + 0xc]
call fcn.0042fa9a
push 0x80
push dword [ebp + 0xc]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp - 4], edi
je 0x4178c3
push dword [ebp - 4]
call fcn.004324f6
pop edi
mov eax, esi
pop esi
leave
ret 8
Function at 0x418be8
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x4540d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push 0x250
lea eax, [ebp - 0x254]
push ebx
push eax
mov dword [ebp - 0x258], ebx
mov dword [ebp - 0x260], ebx
mov dword [ebp - 0x25c], ebx
call fcn.00427e30
add esp, 0xc
lea eax, [ebp - 0x258]
push eax
push str..unverified
push dword [ebp + 8]
call fcn.0041743f
test eax, eax
js 0x418c4e
push 7
push dword [ebp - 0x258]
call fcn.004366a3
cmp dword [ebp + 8], ebx
jne 0x418d38
push edi
lea edi, [ebp - 0x258]
mov ecx, esi
call fcn.00417654
pop edi
test eax, eax
js 0x418d38
lea eax, [ebp - 0x260]
push eax
push 0x447840
push dword [ebp - 0x258]
call fcn.0043201f
test eax, eax
js 0x418d38
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x418d38
test byte [ebp - 0x254], 0x10
jne 0x418d1b
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 0x418cf3
push 0x2e
add eax, eax
pop ecx
cmp cx, word [ebp + eax - 0x22c]
jne 0x418cf3
movzx eax, word [ebp + eax - 0x22a]
push 0x52
pop ecx
cmp cx, ax
je 0x418d1b
push 0x72
pop ecx
cmp cx, ax
je 0x418d1b
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 0x258]
call fcn.0043201f
test eax, eax
js 0x418d1b
push dword [ebp - 0x25c]
call fcn.00435bbe
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x418cab
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x25c], ebx
je 0x418d4b
push dword [ebp - 0x25c]
call fcn.004301e8
cmp dword [ebp - 0x260], ebx
je 0x418d5e
push dword [ebp - 0x260]
call fcn.004301e8
cmp dword [ebp - 0x258], ebx
pop esi
pop ebx
je 0x418d73
push dword [ebp - 0x258]
call fcn.004301e8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00427eaa
leave
ret 8
Function at 0x41e7dc
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4540d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push 1
push edx
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x41e847
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x41e81f
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
js 0x41e82a
mov esi, 0x80004005
push esi
push 0x1ef
push str.msuengine.cpp
call fcn.0043294e
push str.Failed_to_stop_wusa_service.
push esi
call fcn.0042fa86
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00427eaa
leave
ret
Function at 0x421c3a
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, eax
mov eax, dword [esi + 4]
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
mov edi, 0x43a5c8
cmp eax, ebx
je 0x421c58
mov ecx, dword [eax]
jmp 0x421c65
mov ecx, dword [esi + 8]
cmp ecx, ebx
je 0x421c63
mov ecx, dword [ecx]
jmp 0x421c65
mov ecx, edi
mov edx, dword [esi + 0xc]
test edx, edx
je 0x421c6e
mov edi, dword [edx]
test eax, eax
je 0x421c80
xor eax, eax
test edx, edx
setne al
add eax, 0x20000150
jmp 0x421c8f
mov eax, dword [esi + 8]
neg eax
sbb eax, eax
and eax, 3
add eax, 0x2000014f
push dword [ebp + 8]
push str.copy
push edi
push ecx
push eax
push 2
call fcn.00401566
add esp, 0x18
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call fcn.00435710
test eax, eax
je 0x421d13
test byte [ebp - 4], 1
je 0x421d13
and dword [ebp - 4], 0xfffffffe
push dword [ebp - 4]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x421d13
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x421ce2
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
js 0x421ced
mov ebx, 0x80004005
push ebx
push 0x548
push str.apply.cpp
call fcn.0043294e
push dword [ebp + 0xc]
push str.Failed_to_clear_readonly_bit_on_payload_destination_path:__ls
push ebx
call fcn.0042fa86
add esp, 0xc
jmp 0x421d9b
push 0
lea edi, [esi + 0x20]
push edi
push esi
push fcn.0042145d
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
jne 0x421d9b
cmp dword [edi], ebx
je 0x421d58
mov esi, 0x80070642
push esi
push 0x552
push str.apply.cpp
mov ebx, esi
call fcn.0043294e
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.BA_aborted_copy_of_payload_from:__ls_to:__ls.
push esi
jmp 0x421d93
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x421d6c
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
js 0x421d77
mov ebx, 0x80004005
push ebx
push 0x556
push str.apply.cpp
call fcn.0043294e
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.Failed_attempt_to_copy_payload_from:__ls_to:__ls.
push ebx
call fcn.0042fa86
add esp, 0x10
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8
Function at 0x421da4
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 4], 0
push ebx
push esi
mov esi, eax
mov ecx, dword [esi + 4]
push edi
mov edi, 0x43a5c8
test ecx, ecx
je 0x421dc3
mov eax, dword [ecx]
jmp 0x421dcc
mov eax, dword [esi + 8]
test eax, eax
je 0x421dd1
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x421dd4
mov dword [ebp - 8], edi
mov edx, dword [esi + 0xc]
test edx, edx
je 0x421de2
mov eax, dword [edx]
mov dword [ebp - 0xc], eax
jmp 0x421de5
mov dword [ebp - 0xc], edi
lea ebx, [ecx + 0x2c]
test ecx, ecx
jne 0x421e15
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [edx + 0x14]
lea ebx, [edx + 0x40]
mov dword [ebp - 0x10], eax
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
test ecx, ecx
je 0x421e20
xor eax, eax
test edx, edx
setne al
add eax, 0x20000150
jmp 0x421e2f
mov eax, dword [ecx + 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ecx + 0x1c]
jmp 0x421df8
mov eax, dword [esi + 8]
neg eax
sbb eax, eax
and eax, 3
add eax, 0x2000014f
push dword [ebx]
push str.download
push dword [ebp - 0xc]
push dword [ebp - 8]
push eax
push 2
call fcn.00401566
mov edi, dword [ebp + 8]
add esp, 0x18
lea eax, [ebp - 4]
push eax
push edi
call fcn.00435710
test eax, eax
je 0x421eb3
test byte [ebp - 4], 1
je 0x421eb3
and dword [ebp - 4], 0xfffffffe
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x421eb3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x421e84
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
js 0x421e8f
mov esi, 0x80004005
push esi
push 0x577
push str.apply.cpp
call fcn.0043294e
push edi
push str.Failed_to_clear_readonly_bit_on_payload_destination_path:__ls
push esi
call fcn.0042fa86
add esp, 0xc
jmp 0x421f43
and dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], fcn.0042145d
mov dword [ebp - 0x18], esi
mov eax, dword [ebx]
push 0x62
pop ecx
cmp cx, word [eax]
jne 0x421f13
push 0x69
pop ecx
cmp cx, word [eax + 2]
jne 0x421f13
push 0x74
pop ecx
cmp cx, word [eax + 4]
jne 0x421f13
push 0x73
pop ecx
cmp cx, word [eax + 6]
jne 0x421f13
movzx ecx, word [eax + 8]
push 0x3a
pop edx
cmp dx, cx
je 0x421f03
push 0x73
pop edx
cmp dx, cx
jne 0x421f13
push 0x3a
pop ecx
cmp cx, word [eax + 0xa]
jne 0x421f13
push dword [ebp + 0xc]
lea eax, [ebp - 0x20]
push edi
push ebx
push eax
call fcn.00427a58
jmp 0x421f2c
push edi
push dword [ebp - 0x10]
lea eax, [ebp - 0x20]
push dword [ebp - 0x14]
push ebx
push dword [ebp - 0xc]
push dword [ebp - 8]
push eax
push dword [esi]
call fcn.00427214
mov esi, eax
test esi, esi
jns 0x421f43
push edi
push dword [ebx]
push str.Failed_attempt_to_download_URL:__ls_to:__ls
push esi
call fcn.0042fa86
add esp, 0x10
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x426477
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
or dword [esi + 0x3c], 0xffffffff
push edi
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
lea eax, [esi + 0x1c]
push eax
call fcn.00431171
mov edi, eax
cmp edi, ebx
jge 0x4264a3
push str.Failed_to_copy_file_name.
jmp 0x426591
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push ebx
push 1
push ebx
call edi
mov dword [esi + 0x24], eax
cmp eax, ebx
jne 0x4264f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x4264cb
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
cmp edi, ebx
jl 0x4264d6
mov edi, 0x80004005
push edi
push 0x94
push str.cabextract.cpp
call fcn.0043294e
push str.Failed_to_create_begin_operation_event.
jmp 0x426591
push ebx
push ebx
push 1
push ebx
call edi
mov dword [esi + 0x28], eax
cmp eax, ebx
jne 0x426534
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x426512
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
cmp edi, ebx
jl 0x42651d
mov edi, 0x80004005
push edi
push 0x97
push str.cabextract.cpp
call fcn.0043294e
push str.Failed_to_create_operation_complete_event.
jmp 0x426591
push ebx
push ebx
push esi
push 0x426231
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x20], eax
cmp eax, ebx
jne 0x426581
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x42655f
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
cmp edi, ebx
jl 0x42656a
mov edi, 0x80004005
push edi
push 0x9b
push str.cabextract.cpp
call fcn.0043294e
push str.Failed_to_create_extraction_thread.
jmp 0x426591
call fcn.00425bb3
mov edi, eax
cmp edi, ebx
jge 0x426599
push str.Failed_to_wait_for_operation_complete.
push edi
call fcn.0042fa86
pop ecx
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x426851
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
push dword [ebp + 0xc]
xor ebx, ebx
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 8], ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
call fcn.004174c4
mov dword [ebp - 4], eax
cmp eax, ebx
jge 0x42688c
push dword [ebp + 8]
push str.Failed_to_calculate_resume_path_from_working_path:__ls
push eax
call fcn.0042fa86
add esp, 0xc
jmp 0x426940
mov eax, dword [ebp + 0xc]
push ebx
push 0x80
push 4
push ebx
push 4
push 0xc0000000
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x4268f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x4268c3
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp eax, ebx
jl 0x4268d1
mov dword [ebp - 4], 0x80004005
push dword [ebp - 4]
push 0xd0
push str.downloadengine.cpp
call fcn.0043294e
mov eax, dword [ebp + 0xc]
push dword [eax]
push str.Failed_to_create_resume_file:__ls
push dword [ebp - 4]
jmp 0x42687f
push ebx
lea eax, [ebp - 8]
push eax
push 8
pop eax
sub eax, edi
push eax
lea eax, [edi + esi]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x426949
add edi, dword [ebp - 8]
cmp dword [ebp - 8], ebx
je 0x42691b
cmp edi, 8
jb 0x4268f2
cmp edi, 8
je 0x426925
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
or dword [ebp + 8], 0xffffffff
mov dword [eax], ecx
cmp dword [ebp + 8], 0xffffffff
je 0x426940
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x42695d
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp eax, ebx
jl 0x42696b
mov dword [ebp - 4], 0x80004005
push dword [ebp - 4]
push 0xd7
push str.downloadengine.cpp
call fcn.0043294e
mov eax, dword [ebp + 0xc]
push dword [eax]
push str.Failed_to_read_resume_file:__ls
push dword [ebp - 4]
call fcn.0042fa86
add esp, 0xc
jmp 0x426931
Function at 0x426994
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
sub esp, 0x10
push ebx
xor ebx, ebx
push ebx
push ebx
push dword [esi + 4]
mov dword [ebp - 8], ebx
push dword [esi]
push dword [ebp + 0xc]
call fcn.00435640
mov dword [ebp - 4], eax
cmp eax, ebx
jge 0x4269c8
push str.Failed_to_seek_to_start_point_in_file.
push eax
call fcn.0042fa86
pop ecx
pop ecx
jmp 0x426b35
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x426aae
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x426b34
xor edi, edi
mov dword [ebp - 0xc], ebx
push ebx
lea ecx, [ebp - 0xc]
push ecx
sub eax, edi
push eax
mov eax, dword [ebp + 0x1c]
add eax, edi
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x426aec
add edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
cmp dword [ebp - 0xc], ebx
je 0x426a22
cmp edi, eax
jb 0x4269f4
add dword [esi], edi
adc dword [esi + 4], ebx
cmp dword [ebp + 0x10], 0xffffffff
je 0x426a76
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 0x10]
xor edi, edi
mov dword [ebp - 0x10], ebx
call fcn.00435640
cmp eax, ebx
jge 0x426a51
push str.Failed_to_seek_to_start_point_in_file.
push eax
call fcn.0042fa86
pop ecx
pop ecx
jmp 0x426a76
push ebx
lea eax, [ebp - 0x10]
push eax
push 8
pop eax
sub eax, edi
push eax
lea eax, [esi + edi*8]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
add edi, dword [ebp - 0x10]
cmp dword [ebp - 0x10], ebx
je 0x426a76
cmp edi, 8
jb 0x426a51
mov eax, dword [ebp + 0x24]
cmp eax, ebx
je 0x426aa0
cmp dword [eax], ebx
je 0x426aa0
push dword [ebp + 0xc]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [esi + 4]
push dword [esi]
push eax
call fcn.004174f5
mov dword [ebp - 4], eax
cmp eax, ebx
jl 0x426b27
cmp dword [ebp - 8], ebx
jne 0x4269c9
jmp 0x426b34
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x426ac2
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp eax, ebx
jl 0x426ad0
mov dword [ebp - 4], 0x80004005
push dword [ebp - 4]
push 0x1ad
push str.downloadengine.cpp
call fcn.0043294e
push str.Failed_while_reading_from_internet.
push dword [ebp - 4]
jmp 0x426b2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x426b00
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp eax, ebx
jl 0x426b0e
mov dword [ebp - 4], 0x80004005
push dword [ebp - 4]
push 0x1b9
push str.downloadengine.cpp
call fcn.0043294e
push str.Failed_to_write_data_from_internet.
jmp 0x426ae7
push str.UX_aborted_on_cache_progress.
push eax
call fcn.0042fa86
pop ecx
pop ecx
pop edi
mov eax, dword [ebp - 4]
pop ebx
leave
ret 0x20
Function at 0x426d0b
Capabilities:
Connect to http server

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push edi
push 7
xor esi, esi
pop ecx
xor eax, eax
lea edi, [ebp - 0x24]
mov dword [ebp - 4], esi
rep stosd dword es:[edi], eax
push ebx
xor ebx, ebx
mov dword [ebp - 8], ebx
cmp dword [ebp - 4], ebx
je 0x426d39
push dword [ebp - 4]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 4], ebx
cmp esi, ebx
je 0x426d46
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor esi, esi
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp + 0x14]
push dword [eax]
call fcn.00437ca7
mov edi, eax
cmp edi, ebx
jl 0x426e75
mov ebx, dword [ebp + 0x24]
xor edx, edx
cmp ebx, edx
je 0x426d6e
mov ecx, ebx
cmp word [ebx], dx
jne 0x426d71
mov ecx, dword [ebp - 0x14]
mov edi, dword [ebp + 0x20]
cmp edi, edx
je 0x426d7f
mov eax, edi
cmp word [edi], dx
jne 0x426d82
mov eax, dword [ebp - 0x18]
push edx
push edx
xor edx, edx
cmp dword [ebp - 0x24], 1
setne dl
lea edx, [edx + edx + 1]
push edx
push ecx
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp + 0x10]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov esi, eax
test esi, esi
je 0x426e84
test edi, edi
je 0x426de9
cmp word [edi], 0
je 0x426de9
test ebx, ebx
je 0x426de9
cmp word [ebx], 0
je 0x426de9
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
call ebx
push eax
push edi
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 0x2b
push esi
call edi
test eax, eax
je 0x426de9
push dword [ebp + 0x24]
call ebx
push eax
push dword [ebp + 0x24]
push 0x2c
push esi
call edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x1c]
mov eax, dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x24]
push dword [ebp + 0x18]
push esi
call fcn.0042662a
mov edi, eax
test edi, edi
js 0x426ebf
push dword [ebp + 0x30]
mov edi, dword [ebp + 0x14]
mov ebx, dword [ebp - 4]
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00426b3d
mov edi, eax
test edi, edi
js 0x426ecb
cmp dword [ebp - 8], 0
jne 0x426d23
mov eax, dword [ebp + 0x28]
mov dword [eax], esi
mov eax, dword [ebp + 0x2c]
xor esi, esi
and dword [ebp - 4], esi
mov ecx, ebx
mov dword [eax], ecx
lea eax, [ebp - 0x24]
push eax
call fcn.004379f6
cmp dword [ebp - 4], 0
pop ebx
je 0x426e62
push dword [ebp - 4]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
test esi, esi
je 0x426e6d
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, edi
pop edi
pop esi
leave
ret 0x2c
push str.Failed_to_break_URL_into_server_and_resource_parts.
push edi
call fcn.0042fa86
pop ecx
pop ecx
jmp 0x426e49
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x426e98
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
js 0x426ea3
mov edi, 0x80004005
push edi
push 0x213
push str.downloadengine.cpp
call fcn.0043294e
mov eax, dword [ebp + 0x14]
push dword [eax]
push str.Failed_to_connect_to_URL:__ls
jmp 0x426ed5
mov eax, dword [ebp + 0x14]
push dword [eax]
push str.Failed_to_open_internet_URL:__ls
jmp 0x426ed5
mov eax, dword [ebp + 0x14]
push dword [eax]
push str.Failed_to_send_request_to_URL:__ls
push edi
call fcn.0042fa86
add esp, 0xc
jmp 0x426e49