joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5828b0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x5828de
call fcn.0057e620
push ebx
push str.File_does_not_exist_at__s
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
add esp, 0xc
mov al, 1
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 0x5828d7
mov ebx, dword [sym.imp.KERNEL32.DLL_GetLastError]
push esi
push edi
call ebx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
call fcn.0057e620
mov esi, eax
mov edi, dword [esi]
call ebx
push eax
push dword [ebp + 8]
push str.Failed_to_delete_file_at_path:_ls_error:_d
push esi
call dword [edi + 4]
mov al, byte [ebp - 1]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x582930
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
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, eax
mov dword [ebp - 8], ebx
cmp ebx, 0xffffffff
jne 0x582994
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call esi
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
call fcn.0057e620
mov edi, eax
mov ebx, dword [edi]
call esi
push eax
push dword [ebp + 8]
push str.Failed_to_open_the_file_handle_at__s._Error___d_
push 0x622628
push edi
call dword [ebx + 0x24]
add esp, 0x14
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0057e620
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
push esi
mov ecx, dword [eax]
push edi
push str.file_size_to_which_we_have_to_extend_is__llu
push eax
call dword [ecx + 4]
add esp, 0x10
push 0
push 0
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
test eax, eax
je 0x582a08
push ebx
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
test eax, eax
je 0x5829e0
push ebx
mov byte [ebp - 1], 1
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call esi
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
call fcn.0057e620
mov edi, eax
mov ebx, dword [edi]
call esi
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
push str.Failed_to_set_the_end_of_the_file_to_size__llu._Error____d
jmp 0x582a2e
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call esi
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
call fcn.0057e620
mov edi, eax
mov ebx, dword [edi]
call esi
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
push str.Failed_to_resize_the_file_to_size__ld._Error____d
push 0x622628
push edi
call dword [ebx + 0x24]
mov ebx, dword [ebp - 8]
add esp, 0x18
mov byte [ebp - 1], 0
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x582d30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x582d47
xor al, al
pop esi
pop ebp
ret
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x582d82
push edi
call fcn.0057e620
mov esi, eax
mov edi, dword [esi]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push dword [ebp + 8]
push str.Failed_to_get_the_directory_attributes_for____s._Error_is__d.
push 0x622628
push esi
call dword [edi + 0x24]
add esp, 0x14
xor al, al
pop edi
pop ebx
pop esi
pop ebp
ret
call fcn.0057e620
push ebx
push esi
push str.The_file_attributes_of_directory____s_is__d
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
add esp, 0x10
shr ebx, 4
and bl, 1
mov al, bl
pop ebx
pop esi
pop ebp
ret

Function at 0x582db0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x582dda
call fcn.0057e620
push dword [ebp + 8]
push str.File_does_not_exist_at__s
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
add esp, 0xc
xor al, al
pop ebp
ret
mov al, 1
pop ebp
ret

Function at 0x582e10
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x582e6f
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x582e6f
push ebx
push eax
call fcn.005cd994
add esp, 8
test eax, eax
je 0x582e6a
push esi
push edi
call fcn.005c8b45
mov ecx, dword [eax]
mov eax, dword [ebp + 0x10]
mov dword [eax], ecx
call fcn.0057e620
mov esi, eax
mov edi, dword [esi]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push ebx
push dword [ebp + 0xc]
push str.Failed_to_rename_file_from__s_to__s._The_error_is_:_d
push 0x622628
push esi
call dword [edi + 0x24]
add esp, 0x18
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret
mov al, 1
pop ebx
pop ebp
ret
call fcn.0057e620
push 0x607890
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
add esp, 8
xor al, al
pop ebx
pop ebp
ret

Function at 0x583040
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
mov edi, eax
test edi, edi
jne 0x583059
xor al, al
pop edi
pop ebp
ret
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
push esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005bca01
mov esi, eax
add esp, 4
test esi, esi
je 0x583091
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
push esi
test eax, eax
jne 0x583097
call fcn.005b3b4d
add esp, 4
pop esi
xor al, al
pop edi
pop ebp
ret
mov ecx, dword [ebp + 8]
call fcn.00407010
push esi
call fcn.005b3b4d
add esp, 4
mov al, 1
pop esi
pop edi
pop ebp
ret
Function at 0x584f80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x67d070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 0xc], eax
cmp dword [edi], 0
jne 0x584fc9
call fcn.0057e620
push str.file_handler_to_read_not_initialized
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
add esp, 8
xor al, al
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599c70
mov esp, ebp
pop ebp
ret 0x14
lea eax, [ebx + 8]
push esi
mov ecx, eax
mov dword [ebp - 0x10], eax
call fcn.005830b0
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [edi]
call dword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
test eax, eax
je 0x585049
mov esi, dword [ebp + 0x18]
lea eax, [ebp - 8]
push 0
push eax
push esi
push dword [ebp - 0xc]
mov dword [ebp - 8], 0
push dword [edi]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 8], esi
jb 0x585015
test eax, eax
jne 0x58507c
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebx + 0x24], 1
call esi
mov dword [ebx + 0x28], eax
call fcn.0057e620
mov edi, eax
mov ebx, dword [edi]
call esi
push eax
push str.failed_to_read_data._Error_code____d
push 0x622628
push edi
call dword [ebx + 0x24]
mov esi, dword [ebp - 0xc]
add esp, 0x10
jmp 0x58507e
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebx + 0x24], 1
call esi
mov dword [ebx + 0x28], eax
call fcn.0057e620
mov edi, eax
mov ebx, dword [edi]
call esi
push eax
push str.file_pointer_set_error____d
push 0x622628
push edi
call dword [ebx + 0x24]
add esp, 0x10
xor esi, esi
jmp 0x58507e
mov esi, eax
mov ecx, dword [ebp - 0x10]
call fcn.005830c0
mov ecx, dword [ebp - 4]
xor eax, eax
cmp esi, 1
pop esi
sete al
xor ecx, ebp
pop edi
pop ebx
call fcn.00599c70
mov esp, ebp
pop ebp
ret 0x14
Function at 0x5850f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x67d070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 0xc], eax
cmp dword [edi], 0
jne 0x585139
call fcn.0057e620
push str.file_handler_not_initialized
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
add esp, 8
xor al, al
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599c70
mov esp, ebp
pop ebp
ret 0x14
lea eax, [ebx + 8]
push esi
mov ecx, eax
mov dword [ebp - 0x10], eax
call fcn.005830b0
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [edi]
call dword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
test eax, eax
je 0x5851a9
mov esi, dword [ebp + 0x18]
lea eax, [ebp - 8]
push 0
push eax
push esi
push dword [ebp - 0xc]
mov dword [ebp - 8], 0
push dword [edi]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov edi, eax
cmp dword [ebp - 8], esi
jb 0x585184
test edi, edi
jne 0x5851da
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebx + 0x24], 1
call esi
mov dword [ebx + 0x28], eax
call fcn.0057e620
mov edi, eax
mov ebx, dword [edi]
call esi
push eax
push str.failed_to_write_data._Error_code____d
jmp 0x5851cc
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebx + 0x24], 1
call esi
mov dword [ebx + 0x28], eax
call fcn.0057e620
mov edi, eax
mov ebx, dword [edi]
call esi
push eax
push str.file_pointer_set_error____d
push 0x622628
push edi
call dword [ebx + 0x24]
add esp, 0x10
xor edi, edi
mov ecx, dword [ebp - 0x10]
call fcn.005830c0
mov ecx, dword [ebp - 4]
xor eax, eax
cmp edi, 1
pop esi
sete al
xor ecx, ebp
pop edi
pop ebx
call fcn.00599c70
mov esp, ebp
pop ebp
ret 0x14

Function at 0x58b4b0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e9d30
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x67d070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x24]
mov dword [esi], vtable.WorkerThread.0
test eax, eax
je 0x58b524
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov edi, eax
test edi, edi
je 0x58b514
call fcn.0057e620
push edi
push dword [esi + 0x38]
mov ecx, dword [eax]
push str.Forcing_the_thread___d__to_terminate_forcibly._Thread_seem_to_get_hanged._Error____d
push eax
call dword [ecx + 0x14]
add esp, 0x10
push 0
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [esi + 0x24], 0
lea ecx, [esi + 8]
call fcn.00597a30
lea ecx, [esi + 8]
call fcn.00408ff0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x58b740
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x67d070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x24], 0
je 0x58b776
call fcn.0057e620
push dword [esi + 0x38]
push str.thread___d__is_already_running._Closing_it_first
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
add esp, 0xc
mov ecx, esi
call fcn.0058b9c0
lea eax, [ebp - 8]
push eax
push 4
push esi
push 0x58b550
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [esi + 0x24], eax
test eax, eax
jne 0x58b7bc
call fcn.0057e620
push str.failed_to_create_a_new_thread._Fatal_Error
push 0x622628
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
add esp, 0xc
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599c70
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
cmp eax, 0xffffffff
jne 0x58b801
call fcn.0057e620
push str.thread_failed_to_resumed._fatal_error
push 0x622628
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
add esp, 0xc
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [esi + 0x24], 0
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599c70
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov dword [esi + 0x38], eax
xor ecx, ebp
mov al, 1
pop esi
call fcn.00599c70
mov esp, ebp
pop ebp
ret
Function at 0x58b9c0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 4], 0
je 0x58bac1
push edi
lea ecx, [esi + 8]
mov dword [esi + 0x34], 2
call fcn.005830b0
mov ecx, dword [esi + 0x28]
test ecx, ecx
je 0x58ba66
mov eax, dword [ecx]
call dword [eax + 0x10]
mov eax, dword [esi + 0x28]
xor edi, edi
cmp dword [eax + 8], 3
je 0x58ba66
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_Sleep]
nop
mov eax, dword [esi + 0x28]
cmp dword [eax + 8], 5
je 0x58ba65
inc edi
cmp edi, 0x12c
jne 0x58ba35
call fcn.0057e620
mov ecx, dword [esi + 0x28]
mov edx, dword [eax]
push dword [ecx + 4]
push str.forcing_the_job___d__to_terminate.
push eax
call dword [edx + 0x14]
mov ecx, dword [esi + 0x28]
add esp, 0xc
mov eax, dword [ecx]
call dword [eax + 0x14]
jmp 0x58ba3d
cmp edi, 0x3e8
je 0x58ba4c
push 0xa
call ebx
mov eax, dword [esi + 0x28]
cmp dword [eax + 8], 3
jne 0x58ba00
jmp 0x58ba65
call fcn.0057e620
mov edx, dword [esi + 0x28]
mov edi, dword [eax]
push dword [edx + 4]
push str.job___d__is_still_not_terminated._Closing_the_thread_handle_now
push eax
call dword [edi + 0x14]
add esp, 0xc
pop ebx
lea ecx, [esi + 8]
call fcn.005830c0
mov eax, dword [esi + 0x24]
test eax, eax
je 0x58bab9
push 0x61a8
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov edi, eax
test edi, edi
je 0x58baa9
call fcn.0057e620
push edi
push dword [esi + 0x38]
mov ecx, dword [eax]
push str.Forcing_the_thread___d__to_terminate_forcibly._Thread_seem_to_get_hanged._Error____d
push eax
call dword [ecx + 0x14]
add esp, 0x10
push 0
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [esi + 0x24], 0
mov dword [esi + 0x34], 3
pop edi
mov al, 1
pop esi
ret
Function at 0x58dde0
Capabilities:
Prepare http request

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x20], 0
jne 0x58de12
sub esp, 0x18
mov ecx, esp
push 0x622628
call fcn.00406e60
push 0
push 0x13
mov ecx, esi
call fcn.0058f4a0
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0xb0]
test eax, eax
je 0x58de2d
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [esi + 0xb0], 0
mov eax, dword [esi + 0x24]
mov edi, 0x100
mov ecx, 0x800100
lea edx, [eax + 0x140]
cmp dword [eax + 0x15c], 1
cmove edi, ecx
cmp dword [edx + 0x14], 8
jb 0x58de52
mov edx, dword [edx]
cmp dword [esi + 0x90], 8
lea eax, [esi + 0x7c]
jb 0x58de60
mov eax, dword [eax]
cmp dword [esi + 0xa8], 8
lea ecx, [esi + 0x94]
jb 0x58de71
mov ecx, dword [ecx]
push edi
push 0
push edx
push 0
push eax
push ecx
push dword [esi + 0xac]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [esi + 0xb0], eax
test eax, eax
jne 0x58deba
call fcn.0057e620
push str.createRequest_:_failed_to_open_the_request_handle
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
add esp, 8
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
mov ecx, esi
call fcn.0058eb80
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x58ded0
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x67d070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
cmp byte [esi + 0x20], 0
je 0x58e06b
cmp byte [esi + 0x28], 0
je 0x58e06b
lea eax, [ebp - 8]
mov dword [ebx], 0
push eax
push dword [esi + 0xb0]
mov dword [ebp - 8], 0
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x58df62
mov ebx, dword [sym.imp.KERNEL32.DLL_GetLastError]
call ebx
push eax
mov ecx, esi
call fcn.0058eb80
call fcn.0057e620
mov esi, eax
mov edi, dword [esi]
call ebx
push eax
push str.Error__d_in_WinHttpQueryDataAvailable._n
push 0x622628
push esi
call dword [edi + 0x24]
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599c70
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 0x14]
cmova ecx, dword [ebp + 0x14]
mov dword [ebp - 8], ecx
test ecx, ecx
jne 0x58df89
lea eax, [ecx + 2]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599c70
mov esp, ebp
pop ebp
ret 0x10
cmp byte [ebp + 0x10], 0
je 0x58dff0
push 0x688780
push ecx
call fcn.0059a545
add esp, 8
mov dword [edi], eax
test eax, eax
jne 0x58dfed
call fcn.0057e620
push dword [ebp - 8]
push str.failed_to_allote_mmeory_of_size__d
mov ecx, dword [eax]
push 0x622628
push eax
call dword [ecx + 0x24]
sub esp, 8
mov ecx, esp
push 0x622628
call fcn.00406e60
push 0
push 0x14
mov ecx, esi
call fcn.0058f4a0
mov eax, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599c70
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 8]
push ecx
push 0
push dword [edi]
call fcn.005b3770
add esp, 0xc
push ebx
push dword [ebp - 8]
push dword [edi]
push dword [esi + 0xb0]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x58e04e
call fcn.0057e620
push str.Error__u_in_WinHttpReadData._n
push 0x622628
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
add esp, 0xc
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
mov ecx, esi
call fcn.0058eb80
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599c70
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp - 8]
neg eax
sbb eax, eax
add eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599c70
mov esp, ebp
pop ebp
ret 0x10
call fcn.0057e620
push str.downloader_is_not_initialized
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
sub esp, 0x10
xor eax, eax
mov ecx, esp
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push 0x622628
mov word [ecx], ax
call fcn.00407060
push 0
push 0x13
mov ecx, esi
call fcn.0058f4a0
mov ecx, dword [ebp - 4]
mov eax, 3
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00599c70
mov esp, ebp
pop ebp
ret 0x10
Function at 0x58e0d0
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
cmp byte [edi + 0x20], 0
je 0x58e1cc
cmp byte [edi + 0x28], 0
je 0x58e1cc
mov esi, dword [ebp + 0x18]
cmp esi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0xc]
cmova esi, dword [ebp + 0x14]
mov dword [ebx], 0
test esi, esi
jne 0x58e10d
lea eax, [esi + 2]
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
cmp byte [ebp + 0x10], 0
je 0x58e166
push 0x688780
push esi
call fcn.0059a545
mov ecx, dword [ebp + 8]
add esp, 8
mov dword [ecx], eax
test eax, eax
jne 0x58e169
call fcn.0057e620
push esi
push str.failed_to_allote_mmeory_of_size__d
push 0x622628
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
sub esp, 8
mov ecx, esp
push 0x622628
call fcn.00406e60
push 0
push 0x14
mov ecx, edi
call fcn.0058f4a0
mov eax, 4
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
mov ecx, dword [ebp + 8]
push esi
push 0
push dword [ecx]
call fcn.005b3770
mov eax, dword [ebp + 8]
add esp, 0xc
push ebx
push esi
push dword [eax]
push dword [edi + 0xb0]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x58e1bc
call fcn.0057e620
push str.Error__u_in_WinHttpReadData._n
push 0x622628
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
add esp, 0xc
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
mov ecx, edi
call fcn.0058eb80
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
mov eax, dword [ebx]
neg eax
sbb eax, eax
add eax, 2
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
call fcn.0057e620
push str.downloader_is_not_initialized
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
sub esp, 0x10
xor eax, eax
mov ecx, esp
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push 0x622628
mov word [ecx], ax
call fcn.00407060
push 0
push 0x13
mov ecx, edi
call fcn.0058f4a0
pop edi
pop esi
mov eax, 3
pop ebx
pop ebp
ret 0x14
Function at 0x58e680
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x67d070]
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 0x58e6ce
cmp eax, 0x2f76
je 0x58e6db
cmp eax, 0x7a
je 0x58e6f0
push eax
mov ecx, edi
call fcn.0058eb80
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599c70
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 8]
test eax, eax
jne 0x58e724
call fcn.0057e620
push str.retrieveHeaderFromHttpRequest:_Zero_buffer_required....
push 0x622628
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599c70
mov esp, ebp
pop ebp
ret 8
xor ecx, ecx
shr eax, 1
mov edx, 2
mul edx
push 0x688780
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0059a545
mov esi, eax
add esp, 8
test esi, esi
jne 0x58e78d
call fcn.0057e620
push str.failed_to_allocate_memory
push 0x622628
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
sub esp, 0xc
mov ecx, esp
push str.Memory_Allocation_Failed
call fcn.00406e60
push esi
push 0x14
mov ecx, edi
call fcn.0058f4a0
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599c70
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 0x58e7d3
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
mov ecx, edi
call fcn.0058eb80
push esi
call fcn.00599f1f
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599c70
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0xc]
push esi
call fcn.00407010
push esi
call fcn.00599f1f
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov al, 1
pop edi
pop esi
pop ebx
call fcn.00599c70
mov esp, ebp
pop ebp
ret 8
Function at 0x58e8e0
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x67d070]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 8]
push 0
push eax
push 0
push 0
push 0x16
push dword [edi]
mov dword [ebp - 8], 0
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x7a
jne 0x58e974
mov eax, dword [ebp - 8]
xor ecx, ecx
shr eax, 1
mov edx, 2
mul edx
push esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0059a123
add esp, 4
mov esi, eax
lea eax, [ebp - 8]
push 0
push eax
push esi
push 0
push 0x16
push dword [edi]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x58e966
call fcn.0057e620
push esi
push str.Header_contents:__n_s
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
add esp, 0xc
test esi, esi
je 0x58e973
push esi
call fcn.00599f1f
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00599c70
mov esp, ebp
pop ebp
ret