joyce8/EMBER2024-capa huggingface dataset:
Function at 0x64df50
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6e78a0
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x82f084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x64df9d
mov eax, dword [ecx]
push str.Waiting_for_the_async_thread_to_get_the_task_completed
push ecx
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x74835c]
call esi
add esp, 8
mov ecx, dword [ebx + 0x58]
mov dword [ebx], 3
call fcn.006299d0
push 0xffffffffffffffff
push dword [ebx + 0x4c]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
je 0x64dfe8
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x64dfdd
mov esi, dword [ecx]
push eax
push dword [ebx + 0x4c]
mov esi, dword [esi + 0x14]
push str.Forcing_the_thread___d__to_terminate_forcibly._Thread_seem_to_get_hanged_or_timeout_occurs._Error____d
push ecx
mov ecx, esi
call dword [0x74835c]
call esi
add esp, 0x10
push 0
push dword [ebx + 0x4c]
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
push dword [ebx + 0x4c]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [ebx + 4]
mov dword [ebx + 0x4c], 0
test ecx, ecx
je 0x64e017
mov eax, dword [ecx]
push str.Cleaning_up_the_event_queue
push ecx
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x74835c]
call esi
add esp, 8
mov ecx, dword [ebx + 0x58]
call fcn.00629b10
lea ecx, [ebx + 8]
call fcn.00651490
lea eax, [ebx + 0x34]
mov dword [ebx + 0x50], 0
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteCriticalSection]
lea ecx, [ebx + 0x1c]
call fcn.0042fd70
lea ecx, [ebx + 8]
call fcn.0044d2d0
push 0x5c
push ebx
call fcn.0067d913
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x650dc0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x709fe3
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x82f084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x2c], edi
lea esi, [edi + 8]
mov dword [ebp - 0x10], esi
push 8
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.0067d692
add esp, 4
mov dword [eax + 4], 0
mov dword [esi], eax
mov dword [eax], esi
xor eax, eax
mov dword [ebp - 4], 0
push eax
push 0x75c10c
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.0042fe00
add esi, 0x14
mov dword [ebp - 0x30], esi
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
cmp esi, eax
je 0x650e8c
cmp dword [ebp - 0x14], 8
mov ecx, esi
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0042fe00
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
lea ecx, [ebp - 0x28]
call fcn.0042fd70
mov dword [ebp - 4], 3
mov dword [edi + 4], 0
mov dword [edi + 0x4c], 0
mov dword [edi], 4
call fcn.006298b0
mov dword [edi + 0x58], eax
lea eax, [edi + 0x54]
push eax
push 0
push edi
push 0x650f00
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov ecx, dword [ebp + 8]
mov dword [edi + 0x4c], eax
mov eax, edi
mov dword [edi + 0x50], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x6536b0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x70a55c
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x82f084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
xor eax, eax
mov word [edi], 0
mov byte [edi + 2], 0
mov dword [edi + 4], 0x20000
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 7
mov word [edi + 8], ax
mov dword [ebp - 4], eax
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], 7
mov word [edi + 0x20], ax
mov dword [edi + 0x48], eax
mov dword [edi + 0x4c], 7
mov word [edi + 0x38], ax
mov dword [edi + 0x60], eax
mov dword [edi + 0x64], 7
mov word [edi + 0x50], ax
mov byte [ebp - 4], 3
lea esi, [edi + 0x84]
mov dword [edi + 0x68], 0x200000
mov dword [edi + 0x6c], eax
mov dword [edi + 0x70], eax
mov dword [edi + 0x74], eax
mov dword [edi + 0x78], eax
mov dword [edi + 0x7c], eax
mov word [edi + 0x80], 0x100
push 0x40
mov dword [ebp - 0x10], esi
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.0067d692
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov eax, edi
mov byte [edi + 0x8c], 0
mov dword [edi + 0x90], 0x3c
mov word [edi + 0x94], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x655c90
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6e78a0
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x82f084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 4], 0
mov eax, dword [edi + 0x24]
mov dword [edi], vtable.WorkerThread.0
test eax, eax
je 0x655d2f
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov ebx, eax
test ebx, ebx
je 0x655d1f
mov ecx, dword [0x855ab8]
test ecx, ecx
je 0x655ced
cmp byte [0x855a8a], 0
jne 0x655cf8
call fcn.00653890
mov ecx, dword [0x855ab8]
mov esi, dword [ecx]
push ebx
push dword [edi + 0x38]
mov esi, dword [esi + 0x14]
push str.Forcing_the_thread___d__to_terminate_forcibly._Thread_seem_to_get_hanged._Error____d
push ecx
mov ecx, esi
call dword [0x74835c]
call esi
add esp, 0x10
push 0
push dword [edi + 0x24]
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
push dword [edi + 0x24]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [edi + 0x24], 0
lea eax, [edi + 0xc]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteCriticalSection]
push 0x3c
push edi
call fcn.0067d913
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x657810
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
mov eax, ecx
mov ebx, edx
push 0x40000000
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x657896
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, dword [0x855ab8]
mov dword [ebx], eax
test edi, edi
je 0x65785b
cmp byte [0x855a8a], 0
jne 0x657866
call fcn.00653890
mov edi, dword [0x855ab8]
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [esi + 0x24]
mov ecx, esi
push eax
push dword [ebp - 4]
push str.Failed_to_open_the_file_handle_at__s._Error___d_
push 0x75c10c
push edi
call dword [0x74835c]
call esi
add esp, 0x14
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x855ab8]
test eax, eax
je 0x6578a8
cmp byte [0x855a8a], 0
jne 0x6578b2
call fcn.00653890
mov eax, dword [0x855ab8]
push dword [ebp + 0xc]
mov esi, dword [eax]
push dword [ebp + 8]
push str.file_size_to_which_we_have_to_extend_is__llu
mov esi, dword [esi + 4]
mov ecx, esi
push eax
call dword [0x74835c]
call esi
add esp, 0x10
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
test eax, eax
je 0x65793e
push edi
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
test eax, eax
je 0x657902
push edi
mov bl, 1
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebx], eax
mov ebx, dword [0x855ab8]
test ebx, ebx
je 0x65791d
cmp byte [0x855a8a], 0
jne 0x657928
call fcn.00653890
mov ebx, dword [0x855ab8]
mov esi, dword [ebx]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.Failed_to_set_the_end_of_the_file_to_size__llu._Error____d
jmp 0x657978
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebx], eax
mov ebx, dword [0x855ab8]
test ebx, ebx
je 0x657959
cmp byte [0x855a8a], 0
jne 0x657964
call fcn.00653890
mov ebx, dword [0x855ab8]
mov esi, dword [ebx]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.Failed_to_resize_the_file_to_size__ld._Error____d
mov esi, dword [esi + 0x24]
mov ecx, esi
push 0x75c10c
push ebx
call dword [0x74835c]
call esi
add esp, 0x18
xor bl, bl
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x6579a0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov esi, edx
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x6579f5
mov edx, dword [0x855ab8]
test edx, edx
je 0x6579c8
cmp byte [0x855a8a], al
jne 0x6579d3
call fcn.00653890
mov edx, dword [0x855ab8]
mov eax, dword [edx]
push ebx
push str.File_does_not_exist_at__s
push edx
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x74835c]
call esi
add esp, 0xc
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
mov byte [ebp - 1], 0
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
jne 0x6579ec
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, dword [0x855ab8]
mov dword [esi], eax
test edi, edi
je 0x657a1f
cmp byte [0x855a8a], 0
jne 0x657a2a
call fcn.00653890
mov edi, dword [0x855ab8]
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [esi + 4]
mov ecx, esi
push eax
push ebx
push str.Failed_to_delete_file_at_path:_ls_error:_d
push edi
call dword [0x74835c]
call esi
mov al, byte [ebp - 1]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x657a60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x657aca
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x657ad3
mov edi, dword [0x855ab8]
test edi, edi
je 0x657a98
cmp byte [0x855a8a], 0
jne 0x657aa3
call fcn.00653890
mov edi, dword [0x855ab8]
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [esi + 0x24]
mov ecx, esi
push eax
push dword [ebp - 4]
push str.Failed_to_get_the_directory_attributes_for____s._Error_is__d.
push 0x75c10c
push edi
call dword [0x74835c]
call esi
add esp, 0x14
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x855ab8]
test eax, eax
je 0x657ae5
cmp byte [0x855a8a], 0
jne 0x657aef
call fcn.00653890
mov eax, dword [0x855ab8]
mov esi, dword [eax]
push ebx
push edi
push str.The_file_attributes_of_directory____s_is__d
mov esi, dword [esi + 4]
mov ecx, esi
push eax
call dword [0x74835c]
call esi
add esp, 0x10
shr ebx, 4
and bl, 1
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x658760
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x70aaab
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x82f084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor eax, eax
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 7
mov word [esi + 0x30], ax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
lea ecx, [esi + 0x50]
mov dword [ebp - 4], eax
call fcn.0065d650
xor eax, eax
mov dword [esi + 0xa8], 0
mov word [esi + 0x98], ax
mov dword [esi + 0xac], 7
mov dword [esi], eax
mov dword [esi + 4], eax
lea eax, [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x6587f0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6d44d0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x82f084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi], 0
je 0x658820
call fcn.00658cd0
lea eax, [edi + 0xc]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteCriticalSection]
lea ecx, [edi + 0x98]
call fcn.0042fd70
lea ecx, [edi + 0x90]
call fcn.00452880
lea ecx, [edi + 0x88]
call fcn.00452880
lea ecx, [edi + 0x64]
call fcn.0042fd70
lea ecx, [edi + 0x50]
call fcn.00456700
lea ecx, [edi + 0x30]
call fcn.0042fd70
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x6589b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x82f084]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x658a08
mov ecx, dword [0x855ab8]
test ecx, ecx
je 0x6589e0
cmp byte [0x855a8a], 0
jne 0x6589eb
call fcn.00653890
mov ecx, dword [0x855ab8]
mov eax, dword [ecx]
push str.file_handler_not_initialized
push ecx
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x74835c]
call esi
add esp, 8
jmp 0x658af2
lea eax, [edi + 0xc]
push eax
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi]
call dword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
test eax, eax
je 0x658a8f
mov esi, dword [ebp + 0x14]
lea eax, [ebp - 8]
push 0
push eax
push esi
push ebx
push dword [edi]
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov ebx, eax
cmp dword [ebp - 8], esi
jb 0x658a51
test ebx, ebx
jne 0x658ae3
mov dword [edi + 0x24], 1
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, dword [0x855ab8]
mov dword [edi + 0x28], eax
test ebx, ebx
je 0x658a74
cmp byte [0x855a8a], 0
jne 0x658a7f
call fcn.00653890
mov ebx, dword [0x855ab8]
mov esi, dword [ebx]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.failed_to_write_data._Error_code____d
jmp 0x658acb
mov dword [edi + 0x24], 1
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, dword [0x855ab8]
mov dword [edi + 0x28], eax
test ebx, ebx
je 0x658ab2
cmp byte [0x855a8a], 0
jne 0x658abd
call fcn.00653890
mov ebx, dword [0x855ab8]
mov esi, dword [ebx]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.file_pointer_set_error____d
mov esi, dword [esi + 0x24]
mov ecx, esi
push 0x75c10c
push ebx
call dword [0x74835c]
call esi
add esp, 0x10
xor ebx, ebx
lea eax, [edi + 0xc]
push eax
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
cmp ebx, 1
je 0x658b16
push 0x41
push str.Failed_to_write_the_segment_in_the_file_which_is_to_be_downloaded
lea ecx, [edi + 0x30]
call fcn.0042fe00
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0067d681
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0067d681
mov esp, ebp
pop ebp
ret 0x10
Function at 0x658b30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x82f084]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x658b88
mov ecx, dword [0x855ab8]
test ecx, ecx
je 0x658b60
cmp byte [0x855a8a], 0
jne 0x658b6b
call fcn.00653890
mov ecx, dword [0x855ab8]
mov eax, dword [ecx]
push str.file_handler_to_read_not_initialized
push ecx
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x74835c]
call esi
add esp, 8
jmp 0x658c94
lea eax, [edi + 0xc]
push eax
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi]
call dword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
test eax, eax
je 0x658c2d
mov esi, dword [ebp + 0x14]
lea eax, [ebp - 8]
push 0
push eax
push esi
push ebx
push dword [edi]
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 8], esi
jb 0x658bd6
test eax, eax
jne 0x658c83
mov dword [edi + 0x24], 1
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, dword [0x855ab8]
mov dword [edi + 0x28], eax
test ebx, ebx
je 0x658bf9
cmp byte [0x855a8a], 0
jne 0x658c04
call fcn.00653890
mov ebx, dword [0x855ab8]
mov esi, dword [ebx]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [esi + 0x24]
mov ecx, esi
push eax
push str.failed_to_read_data._Error_code____d
push 0x75c10c
push ebx
call dword [0x74835c]
call esi
mov esi, dword [ebp - 0xc]
add esp, 0x10
jmp 0x658c85
mov dword [edi + 0x24], 1
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, dword [0x855ab8]
mov dword [edi + 0x28], eax
test ebx, ebx
je 0x658c50
cmp byte [0x855a8a], 0
jne 0x658c5b
call fcn.00653890
mov ebx, dword [0x855ab8]
mov esi, dword [ebx]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [esi + 0x24]
mov ecx, esi
push eax
push str.file_pointer_set_error____d
push 0x75c10c
push ebx
call dword [0x74835c]
call esi
add esp, 0x10
xor esi, esi
jmp 0x658c85
mov esi, eax
lea eax, [edi + 0xc]
push eax
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
cmp esi, 1
je 0x658cb8
push 0x33
push str.Failed_to_read_the_segment_from_the_downloaded_file
lea ecx, [edi + 0x30]
call fcn.0042fe00
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0067d681
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0067d681
mov esp, ebp
pop ebp
ret 0x10
Function at 0x65a620
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x82f084]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
mov dword [ebp - 0xc], eax
mov edi, ecx
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0
push 0
push ebx
push dword [edi + 0xb0]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp ebx, 0x24
jne 0x65a66e
cmp eax, 0x2f76
je 0x65a67b
cmp eax, 0x7a
je 0x65a690
push eax
mov ecx, edi
call fcn.00659c00
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0067d681
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 8]
test eax, eax
jne 0x65a6e6
mov ecx, dword [0x855ab8]
test ecx, ecx
je 0x65a6a9
cmp byte [0x855a8a], al
jne 0x65a6b4
call fcn.00653890
mov ecx, dword [0x855ab8]
mov eax, dword [ecx]
push str.retrieveHeaderFromHttpRequest:_Zero_buffer_required....
push 0x75c10c
push ecx
mov esi, dword [eax + 0x24]
mov ecx, esi
call dword [0x74835c]
call esi
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0067d681
mov esp, ebp
pop ebp
ret 8
xor ecx, ecx
shr eax, 1
mov edx, 2
mul edx
push 0x74d8a8
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0067dabc
mov esi, eax
add esp, 8
test esi, esi
jne 0x65a787
mov ecx, dword [0x855ab8]
test ecx, ecx
je 0x65a71e
cmp byte [0x855a8a], al
jne 0x65a729
call fcn.00653890
mov ecx, dword [0x855ab8]
mov eax, dword [ecx]
push str.failed_to_allocate_memory
push 0x75c10c
push ecx
mov esi, dword [eax + 0x24]
mov ecx, esi
call dword [0x74835c]
call esi
sub esp, 0xc
xor eax, eax
mov ecx, esp
push 0x18
push str.Memory_Allocation_Failed
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
call fcn.0042fe00
push 0
push 0x14
mov ecx, edi
call fcn.00659ac0
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0067d681
mov esp, ebp
pop ebp
ret 8
push 0
lea eax, [ebp - 8]
push eax
push esi
push 0
push ebx
push dword [edi + 0xb0]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x65a7cd
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
mov ecx, edi
call fcn.00659c00
push esi
call fcn.0067d944
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0067d681
mov esp, ebp
pop ebp
ret 8
mov edx, esi
lea edi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x65a7d2
mov ecx, dword [ebp - 0xc]
sub edx, edi
sar edx, 1
push edx
push esi
call fcn.0042fe00
push esi
call fcn.0067d944
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov al, 1
pop edi
pop esi
pop ebx
call fcn.0067d681
mov esp, ebp
pop ebp
ret 8
Function at 0x65a810
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x82f084]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0
mov esi, ecx
push 0
push 0x16
push dword [esi]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x7a
jne 0x65a8c5
mov eax, dword [ebp - 8]
xor ecx, ecx
shr eax, 1
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0067db39
add esp, 4
mov edi, eax
lea eax, [ebp - 8]
push 0
push eax
push edi
push 0
push 0x16
push dword [esi]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x65a8b8
mov ecx, dword [0x855ab8]
test ecx, ecx
je 0x65a894
cmp byte [0x855a8a], 0
jne 0x65a89f
call fcn.00653890
mov ecx, dword [0x855ab8]
mov eax, dword [ecx]
push edi
push str.Header_contents:__n_s
push ecx
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x74835c]
call esi
add esp, 0xc
test edi, edi
je 0x65a8c5
push edi
call fcn.0067d944
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0067d681
mov esp, ebp
pop ebp
ret