joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411534
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor ebx, ebx
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
push ebx
push ebx
stosd dword es:[edi], eax
push 1
push ebx
mov dword [ebp - 4], ebx
stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0xc], eax
cmp eax, ebx
jne 0x41159b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x411577
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp eax, ebx
jl 0x411585
mov dword [ebp - 4], 0x80004005
push dword [ebp - 4]
push 0x3b
push str.uithread.cpp
call fcn.00432f06
push str.Failed_to_create_initialization_event.
jmp 0x4115fa
mov esi, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push 0x411380
push ebx
push ebx
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x411606
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x4115d8
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp eax, ebx
jl 0x4115e6
mov dword [ebp - 4], 0x80004005
push dword [ebp - 4]
push 0x44
push str.uithread.cpp
call fcn.00432f06
push str.Failed_to_create_the_UI_thread.
push dword [ebp - 4]
call fcn.00430126
pop ecx
pop ecx
jmp 0x411621
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0xc]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov eax, dword [ebp - 8]
mov dword [esi + 0x3d4], eax
mov dword [ebp - 8], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], ebx
je 0x411634
push dword [ebp - 8]
call esi
mov dword [ebp - 8], ebx
cmp dword [ebp - 0xc], ebx
je 0x41163e
push dword [ebp - 0xc]
call esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x411d65
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x456130]
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.004284d0
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 0x411df9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x411dd4
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, edi
jl 0x411ddf
mov esi, 0x80004005
push esi
push 0x271
push str.logging.cpp
call fcn.00432f06
push str.Failed_to_get_temp_folder.
jmp 0x411edb
lea eax, [ebp - 0x214]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.00411cb0
mov esi, eax
cmp esi, edi
jge 0x411e1d
push str.Failed_to_get_length_of_temp_folder.
jmp 0x411edb
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 0x411ebd
push dword [ebp - 0x21c]
lea eax, [ebp - 0x210]
push 0x4453a0
push eax
call fcn.00431d32
mov esi, eax
add esp, 0xc
cmp esi, edi
jge 0x411e60
push str.Failed_to_format_session_id_as_a_string.
jmp 0x411edb
lea eax, [ebp - 0x218]
push eax
push SysReAllocString
push dword [ebp - 0x210]
call fcn.00411cb0
mov esi, eax
cmp esi, edi
jge 0x411e84
push str.Failed_to_get_length_of_session_id_string.
jmp 0x411edb
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 0x411ebd
mov dword [ebp - 0x214], esi
push dword [ebp - 0x214]
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.00431729
mov esi, eax
cmp esi, edi
jge 0x411ee3
push str.Failed_to_copy_temp_folder.
push esi
call fcn.00430126
pop ecx
pop ecx
cmp dword [ebp - 0x210], edi
je 0x411ef6
push dword [ebp - 0x210]
call fcn.00430887
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042854a
leave
ret
Function at 0x416669
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 0x4166cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x4166ac
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, edi
jl 0x4166b7
mov esi, 0x80004005
push esi
push 0x47
push str.splashscreen.cpp
call fcn.00432f06
push str.Failed_to_create_modal_event.
jmp 0x41672e
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 0x416467
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
cmp eax, edi
jne 0x416738
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x416711
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, edi
jl 0x41671c
mov esi, 0x80004005
push esi
push 0x50
push str.splashscreen.cpp
call fcn.00432f06
push str.Failed_to_create_UI_thread.
push esi
call fcn.00430126
pop ecx
pop ecx
jmp 0x416747
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 0x41675a
push dword [ebp - 8]
call esi
mov dword [ebp - 8], edi
cmp dword [ebp - 0xc], edi
je 0x416764
push dword [ebp - 0xc]
call esi
pop edi
pop esi
leave
ret 0xc

Function at 0x4178d8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x456130]
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.004284d0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x417950
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x41792e
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
js 0x417939
mov esi, 0x80004005
push esi
push 0x440
push str.cache.cpp
call fcn.00432f06
push str.Failed_to_get_temp_path_for_working_folder.
jmp 0x417971
push esi
lea eax, [ebp - 0x20c]
push eax
push str._ls_ls_
push edi
call fcn.00431d32
mov esi, eax
add esp, 0x10
test esi, esi
jns 0x417979
push str.Failed_to_append_bundle_id_on_to_temp_path_for_working_folder.
push esi
call fcn.00430126
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042854a
leave
ret
Function at 0x417c65
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 0x417cf0
lea eax, [ebp - 4]
push eax
push 0x1a
call fcn.00417bb8
mov esi, eax
cmp esi, edi
jge 0x417c9b
push str.Failed_to_allocate_administrator_SID.
jmp 0x417ce1
push 2
push 8
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
jne 0x417ceb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x417cc1
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, edi
jl 0x417ccc
mov esi, 0x80004005
push esi
push 0x5cc
push str.cache.cpp
call fcn.00432f06
push str.Failed_to_initialize_ACL.
push esi
call fcn.00430126
pop ecx
pop ecx
jmp 0x417d1b
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.0043013a
push 0x80
push dword [ebp + 0xc]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp - 4], edi
je 0x417d28
push dword [ebp - 4]
call fcn.00432aae
pop edi
mov eax, esi
pop esi
leave
ret 8
Function at 0x419065
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x456130]
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.004284d0
add esp, 0xc
lea eax, [ebp - 0x258]
push eax
push str..unverified
push dword [ebp + 8]
call fcn.004188b9
test eax, eax
js 0x4190cb
push 7
push dword [ebp - 0x258]
call fcn.00436cb2
cmp dword [ebp + 8], ebx
jne 0x4191b5
push edi
lea edi, [ebp - 0x258]
mov ecx, esi
call fcn.004178d8
pop edi
test eax, eax
js 0x4191b5
lea eax, [ebp - 0x260]
push eax
push 0x448b30
push dword [ebp - 0x258]
call fcn.004325d7
test eax, eax
js 0x4191b5
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4191b5
test byte [ebp - 0x254], 0x10
jne 0x419198
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 0x419170
push 0x2e
add eax, eax
pop ecx
cmp cx, word [ebp + eax - 0x22c]
jne 0x419170
movzx eax, word [ebp + eax - 0x22a]
push 0x52
pop ecx
cmp cx, ax
je 0x419198
push 0x72
pop ecx
cmp cx, ax
je 0x419198
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 0x258]
call fcn.004325d7
test eax, eax
js 0x419198
push dword [ebp - 0x25c]
call fcn.004361cd
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x419128
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x25c], ebx
je 0x4191c8
push dword [ebp - 0x25c]
call fcn.00430887
cmp dword [ebp - 0x260], ebx
je 0x4191db
push dword [ebp - 0x260]
call fcn.00430887
cmp dword [ebp - 0x258], ebx
pop esi
pop ebx
je 0x4191f0
push dword [ebp - 0x258]
call fcn.00430887
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042854a
leave
ret 8
Function at 0x41ee2a
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x456130]
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 0x41ee95
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x41ee6d
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
js 0x41ee78
mov esi, 0x80004005
push esi
push 0x1ef
push str.msuengine.cpp
call fcn.00432f06
push str.Failed_to_stop_wusa_service.
push esi
call fcn.00430126
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042854a
leave
ret
Function at 0x422294
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, 0x43b5f8
cmp eax, ebx
je 0x4222b2
mov ecx, dword [eax]
jmp 0x4222bf
mov ecx, dword [esi + 8]
cmp ecx, ebx
je 0x4222bd
mov ecx, dword [ecx]
jmp 0x4222bf
mov ecx, edi
mov edx, dword [esi + 0xc]
test edx, edx
je 0x4222c8
mov edi, dword [edx]
test eax, eax
je 0x4222da
xor eax, eax
test edx, edx
setne al
add eax, 0x20000150
jmp 0x4222e9
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.00435d1f
test eax, eax
je 0x42236d
test byte [ebp - 4], 1
je 0x42236d
and dword [ebp - 4], 0xfffffffe
push dword [ebp - 4]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x42236d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x42233c
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
js 0x422347
mov ebx, 0x80004005
push ebx
push 0x548
push str.apply.cpp
call fcn.00432f06
push dword [ebp + 0xc]
push str.Failed_to_clear_readonly_bit_on_payload_destination_path:__ls
push ebx
call fcn.00430126
add esp, 0xc
jmp 0x4223f5
push 0
lea edi, [esi + 0x20]
push edi
push esi
push fcn.00421ab7
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
jne 0x4223f5
cmp dword [edi], ebx
je 0x4223b2
mov esi, 0x80070642
push esi
push 0x552
push str.apply.cpp
mov ebx, esi
call fcn.00432f06
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.BA_aborted_copy_of_payload_from:__ls_to:__ls.
push esi
jmp 0x4223ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4223c6
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
js 0x4223d1
mov ebx, 0x80004005
push ebx
push 0x556
push str.apply.cpp
call fcn.00432f06
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.Failed_attempt_to_copy_payload_from:__ls_to:__ls.
push ebx
call fcn.00430126
add esp, 0x10
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8
Function at 0x4223fe
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, 0x43b5f8
test ecx, ecx
je 0x42241d
mov eax, dword [ecx]
jmp 0x422426
mov eax, dword [esi + 8]
test eax, eax
je 0x42242b
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x42242e
mov dword [ebp - 8], edi
mov edx, dword [esi + 0xc]
test edx, edx
je 0x42243c
mov eax, dword [edx]
mov dword [ebp - 0xc], eax
jmp 0x42243f
mov dword [ebp - 0xc], edi
lea ebx, [ecx + 0x2c]
test ecx, ecx
jne 0x42246f
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 0x42247a
xor eax, eax
test edx, edx
setne al
add eax, 0x20000150
jmp 0x422489
mov eax, dword [ecx + 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ecx + 0x1c]
jmp 0x422452
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.00435d1f
test eax, eax
je 0x42250d
test byte [ebp - 4], 1
je 0x42250d
and dword [ebp - 4], 0xfffffffe
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x42250d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4224de
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
js 0x4224e9
mov esi, 0x80004005
push esi
push 0x577
push str.apply.cpp
call fcn.00432f06
push edi
push str.Failed_to_clear_readonly_bit_on_payload_destination_path:__ls
push esi
call fcn.00430126
add esp, 0xc
jmp 0x42259d
and dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], fcn.00421ab7
mov dword [ebp - 0x18], esi
mov eax, dword [ebx]
push 0x62
pop ecx
cmp cx, word [eax]
jne 0x42256d
push 0x69
pop ecx
cmp cx, word [eax + 2]
jne 0x42256d
push 0x74
pop ecx
cmp cx, word [eax + 4]
jne 0x42256d
push 0x73
pop ecx
cmp cx, word [eax + 6]
jne 0x42256d
movzx ecx, word [eax + 8]
push 0x3a
pop edx
cmp dx, cx
je 0x42255d
push 0x73
pop edx
cmp dx, cx
jne 0x42256d
push 0x3a
pop ecx
cmp cx, word [eax + 0xa]
jne 0x42256d
push dword [ebp + 0xc]
lea eax, [ebp - 0x20]
push edi
push ebx
push eax
call fcn.004280b2
jmp 0x422586
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.0042786c
mov esi, eax
test esi, esi
jns 0x42259d
push edi
push dword [ebx]
push str.Failed_attempt_to_download_URL:__ls_to:__ls
push esi
call fcn.00430126
add esp, 0x10
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x426acf
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.00431729
mov edi, eax
cmp edi, ebx
jge 0x426afb
push str.Failed_to_copy_file_name.
jmp 0x426be9
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 0x426b48
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x426b23
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
cmp edi, ebx
jl 0x426b2e
mov edi, 0x80004005
push edi
push 0x94
push str.cabextract.cpp
call fcn.00432f06
push str.Failed_to_create_begin_operation_event.
jmp 0x426be9
push ebx
push ebx
push 1
push ebx
call edi
mov dword [esi + 0x28], eax
cmp eax, ebx
jne 0x426b8c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x426b6a
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
cmp edi, ebx
jl 0x426b75
mov edi, 0x80004005
push edi
push 0x97
push str.cabextract.cpp
call fcn.00432f06
push str.Failed_to_create_operation_complete_event.
jmp 0x426be9
push ebx
push ebx
push esi
push 0x426889
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x20], eax
cmp eax, ebx
jne 0x426bd9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x426bb7
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
cmp edi, ebx
jl 0x426bc2
mov edi, 0x80004005
push edi
push 0x9b
push str.cabextract.cpp
call fcn.00432f06
push str.Failed_to_create_extraction_thread.
jmp 0x426be9
call fcn.0042620b
mov edi, eax
cmp edi, ebx
jge 0x426bf1
push str.Failed_to_wait_for_operation_complete.
push edi
call fcn.00430126
pop ecx
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x426ea9
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.0041771a
mov dword [ebp - 4], eax
cmp eax, ebx
jge 0x426ee4
push dword [ebp + 8]
push str.Failed_to_calculate_resume_path_from_working_path:__ls
push eax
call fcn.00430126
add esp, 0xc
jmp 0x426f98
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 0x426f4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x426f1b
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp eax, ebx
jl 0x426f29
mov dword [ebp - 4], 0x80004005
push dword [ebp - 4]
push 0xd0
push str.downloadengine.cpp
call fcn.00432f06
mov eax, dword [ebp + 0xc]
push dword [eax]
push str.Failed_to_create_resume_file:__ls
push dword [ebp - 4]
jmp 0x426ed7
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 0x426fa1
add edi, dword [ebp - 8]
cmp dword [ebp - 8], ebx
je 0x426f73
cmp edi, 8
jb 0x426f4a
cmp edi, 8
je 0x426f7d
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 0x426f98
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 0x426fb5
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp eax, ebx
jl 0x426fc3
mov dword [ebp - 4], 0x80004005
push dword [ebp - 4]
push 0xd7
push str.downloadengine.cpp
call fcn.00432f06
mov eax, dword [ebp + 0xc]
push dword [eax]
push str.Failed_to_read_resume_file:__ls
push dword [ebp - 4]
call fcn.00430126
add esp, 0xc
jmp 0x426f89
Function at 0x426fec
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.00435c4f
mov dword [ebp - 4], eax
cmp eax, ebx
jge 0x427020
push str.Failed_to_seek_to_start_point_in_file.
push eax
call fcn.00430126
pop ecx
pop ecx
jmp 0x42718d
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 0x427106
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x42718c
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 0x427144
add edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
cmp dword [ebp - 0xc], ebx
je 0x42707a
cmp edi, eax
jb 0x42704c
add dword [esi], edi
adc dword [esi + 4], ebx
cmp dword [ebp + 0x10], 0xffffffff
je 0x4270ce
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 0x10]
xor edi, edi
mov dword [ebp - 0x10], ebx
call fcn.00435c4f
cmp eax, ebx
jge 0x4270a9
push str.Failed_to_seek_to_start_point_in_file.
push eax
call fcn.00430126
pop ecx
pop ecx
jmp 0x4270ce
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 0x4270ce
cmp edi, 8
jb 0x4270a9
mov eax, dword [ebp + 0x24]
cmp eax, ebx
je 0x4270f8
cmp dword [eax], ebx
je 0x4270f8
push dword [ebp + 0xc]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [esi + 4]
push dword [esi]
push eax
call fcn.0041774b
mov dword [ebp - 4], eax
cmp eax, ebx
jl 0x42717f
cmp dword [ebp - 8], ebx
jne 0x427021
jmp 0x42718c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x42711a
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp eax, ebx
jl 0x427128
mov dword [ebp - 4], 0x80004005
push dword [ebp - 4]
push 0x1ad
push str.downloadengine.cpp
call fcn.00432f06
push str.Failed_while_reading_from_internet.
push dword [ebp - 4]
jmp 0x427185
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x427158
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp eax, ebx
jl 0x427166
mov dword [ebp - 4], 0x80004005
push dword [ebp - 4]
push 0x1b9
push str.downloadengine.cpp
call fcn.00432f06
push str.Failed_to_write_data_from_internet.
jmp 0x42713f
push str.UX_aborted_on_cache_progress.
push eax
call fcn.00430126
pop ecx
pop ecx
pop edi
mov eax, dword [ebp - 4]
pop ebx
leave
ret 0x20