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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10236b20
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x102e91c0]
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 0x10191aef
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
test ebx, ebx
je 0x10191adf
mov ecx, dword [0x102eec4c]
test ecx, ecx
je 0x10191aad
cmp byte [0x102eec26], 0
jne 0x10191ab8
call fcn.1018f140
mov ecx, dword [0x102eec4c]
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 [0x1024852c]
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.101d02bd
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 0x10193440
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 0x101934c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [0x102eec4c]
mov dword [ebx], eax
test edi, edi
je 0x1019348b
cmp byte [0x102eec26], 0
jne 0x10193496
call fcn.1018f140
mov edi, dword [0x102eec4c]
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 0x1025b044
push edi
call dword [0x1024852c]
call esi
add esp, 0x14
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x102eec4c]
test eax, eax
je 0x101934d8
cmp byte [0x102eec26], 0
jne 0x101934e2
call fcn.1018f140
mov eax, dword [0x102eec4c]
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 [0x1024852c]
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 0x1019356e
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x10193532
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 [0x102eec4c]
test ebx, ebx
je 0x1019354d
cmp byte [0x102eec26], 0
jne 0x10193558
call fcn.1018f140
mov ebx, dword [0x102eec4c]
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 0x101935a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], eax
mov ebx, dword [0x102eec4c]
test ebx, ebx
je 0x10193589
cmp byte [0x102eec26], 0
jne 0x10193594
call fcn.1018f140
mov ebx, dword [0x102eec4c]
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 0x1025b044
push ebx
call dword [0x1024852c]
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 0x101935d0
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 0x10193625
mov edx, dword [0x102eec4c]
test edx, edx
je 0x101935f8
cmp byte [0x102eec26], al
jne 0x10193603
call fcn.1018f140
mov edx, dword [0x102eec4c]
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 [0x1024852c]
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 0x1019361c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [0x102eec4c]
mov dword [esi], eax
test edi, edi
je 0x1019364f
cmp byte [0x102eec26], 0
jne 0x1019365a
call fcn.1018f140
mov edi, dword [0x102eec4c]
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 [0x1024852c]
call esi
mov al, byte [ebp - 1]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10193690
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 0x101936fa
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10193703
mov edi, dword [0x102eec4c]
test edi, edi
je 0x101936c8
cmp byte [0x102eec26], 0
jne 0x101936d3
call fcn.1018f140
mov edi, dword [0x102eec4c]
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 0x1025b044
push edi
call dword [0x1024852c]
call esi
add esp, 0x14
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x102eec4c]
test eax, eax
je 0x10193715
cmp byte [0x102eec26], 0
jne 0x1019371f
call fcn.1018f140
mov eax, dword [0x102eec4c]
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 [0x1024852c]
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 0x10194480
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1023f5f0
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x102e91c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 0x30], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 7
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
lea ecx, [esi + 0x50]
mov dword [ebp - 4], 0
call fcn.10199630
xor eax, eax
mov dword [esi + 0x98], 0
mov word [esi + 0x98], ax
mov dword [esi + 0xa8], 0
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 0x101946f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x102e91c0]
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 0x10194748
mov ecx, dword [0x102eec4c]
test ecx, ecx
je 0x10194720
cmp byte [0x102eec26], 0
jne 0x1019472b
call fcn.1018f140
mov ecx, dword [0x102eec4c]
mov eax, dword [ecx]
push str.file_handler_not_initialized
push ecx
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1024852c]
call esi
add esp, 8
jmp 0x10194865
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 0x10194809
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 0x10194791
test ebx, ebx
jne 0x101947e5
mov dword [edi + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [0x102eec4c]
mov dword [edi + 0x28], eax
test ebx, ebx
je 0x101947b4
cmp byte [0x102eec26], 0
jne 0x101947bf
call fcn.1018f140
mov ebx, dword [0x102eec4c]
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_write_data._Error_code____d
push 0x1025b044
push ebx
call dword [0x1024852c]
call esi
add esp, 0x10
xor ebx, ebx
lea eax, [edi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp ebx, 1
jne 0x10194865
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101cff65
mov esp, ebp
pop ebp
ret 0x10
mov dword [edi + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [0x102eec4c]
mov dword [edi + 0x28], eax
test ebx, ebx
je 0x1019482c
cmp byte [0x102eec26], 0
jne 0x10194837
call fcn.1018f140
mov ebx, dword [0x102eec4c]
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 0x1025b044
push ebx
call dword [0x1024852c]
call esi
add esp, 0x10
lea eax, [edi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x41
push str.Failed_to_write_the_segment_in_the_file_which_is_to_be_downloaded
lea ecx, [edi + 0x30]
call fcn.10010360
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101cff65
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10194890
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x102e91c0]
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 0x101948e8
mov ecx, dword [0x102eec4c]
test ecx, ecx
je 0x101948c0
cmp byte [0x102eec26], 0
jne 0x101948cb
call fcn.1018f140
mov ecx, dword [0x102eec4c]
mov eax, dword [ecx]
push str.file_handler_to_read_not_initialized
push ecx
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1024852c]
call esi
add esp, 8
jmp 0x10194a05
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 0x101949a9
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 0x10194932
test eax, eax
jne 0x10194984
mov dword [edi + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [0x102eec4c]
mov dword [edi + 0x28], eax
test ebx, ebx
je 0x10194955
cmp byte [0x102eec26], 0
jne 0x10194960
call fcn.1018f140
mov ebx, dword [0x102eec4c]
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 0x1025b044
push ebx
call dword [0x1024852c]
call esi
add esp, 0x10
lea eax, [edi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0xc], 1
jne 0x10194a05
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101cff65
mov esp, ebp
pop ebp
ret 0x10
mov dword [edi + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [0x102eec4c]
mov dword [edi + 0x28], eax
test ebx, ebx
je 0x101949cc
cmp byte [0x102eec26], 0
jne 0x101949d7
call fcn.1018f140
mov ebx, dword [0x102eec4c]
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 0x1025b044
push ebx
call dword [0x1024852c]
call esi
add esp, 0x10
lea eax, [edi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x33
push str.Failed_to_read_the_segment_from_the_downloaded_file
lea ecx, [edi + 0x30]
call fcn.10010360
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101cff65
mov esp, ebp
pop ebp
ret 0x10
Function at 0x101963b0
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x102e91c0]
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 0x101963fe
cmp eax, 0x2f76
je 0x1019640b
cmp eax, 0x7a
je 0x10196420
push eax
mov ecx, edi
call fcn.10195900
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101cff65
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 8]
test eax, eax
jne 0x10196476
mov ecx, dword [0x102eec4c]
test ecx, ecx
je 0x10196439
cmp byte [0x102eec26], al
jne 0x10196444
call fcn.1018f140
mov ecx, dword [0x102eec4c]
mov eax, dword [ecx]
push str.retrieveHeaderFromHttpRequest:_Zero_buffer_required....
push 0x1025b044
push ecx
mov esi, dword [eax + 0x24]
mov ecx, esi
call dword [0x1024852c]
call esi
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101cff65
mov esp, ebp
pop ebp
ret 8
xor ecx, ecx
shr eax, 1
mov edx, 2
mul edx
push 0x1024e498
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.101d0c95
mov esi, eax
add esp, 8
test esi, esi
jne 0x10196518
mov ecx, dword [0x102eec4c]
test ecx, ecx
je 0x101964ae
cmp byte [0x102eec26], al
jne 0x101964b9
call fcn.1018f140
mov ecx, dword [0x102eec4c]
mov eax, dword [ecx]
push str.failed_to_allocate_memory
push 0x1025b044
push ecx
mov esi, dword [eax + 0x24]
mov ecx, esi
call dword [0x1024852c]
call esi
sub esp, 0xc
mov ecx, esp
push 0x18
push str.Memory_Allocation_Failed
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.1000aef0
push 0
push 0x14
mov ecx, edi
call fcn.101957c0
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101cff65
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 0x1019655e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, edi
call fcn.10195900
push esi
call fcn.101d0625
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101cff65
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 0x10196563
mov ecx, dword [ebp - 0xc]
sub edx, edi
sar edx, 1
push edx
push esi
call fcn.10010360
push esi
call fcn.101d0625
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov al, 1
pop edi
pop esi
pop ebx
call fcn.101cff65
mov esp, ebp
pop ebp
ret 8
Function at 0x101965a0
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x102e91c0]
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 0x10196651
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.101d062a
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 0x10196648
mov ecx, dword [0x102eec4c]
test ecx, ecx
je 0x10196624
cmp byte [0x102eec26], 0
jne 0x1019662f
call fcn.1018f140
mov ecx, dword [0x102eec4c]
mov eax, dword [ecx]
push edi
push str.Header_contents:__n_s
push ecx
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x1024852c]
call esi
add esp, 0xc
push edi
call fcn.101d0625
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.101cff65
mov esp, ebp
pop ebp
ret
Function at 0x101973d0
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [0x102e91c0]
xor eax, esp
mov dword [esp + 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
cmp byte [edi + 0x20], 0
je 0x10197557
cmp byte [edi + 0x28], 0
je 0x10197557
lea eax, [esp + 0x10]
mov dword [esi], 0
push eax
push dword [edi + 0xb0]
mov dword [esp + 0x18], 0
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x1019748c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, edi
call fcn.10195900
mov edi, dword [0x102eec4c]
test edi, edi
je 0x10197447
cmp byte [0x102eec26], 0
jne 0x10197452
call fcn.1018f140
mov edi, dword [0x102eec4c]
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esi + 0x24]
mov ecx, esi
push eax
push str.Error__d_in_WinHttpQueryDataAvailable._n
push 0x1025b044
push edi
call dword [0x1024852c]
call esi
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.101cff65
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [esp + 0x10]
cmp ecx, dword [ebp + 0x14]
cmova ecx, dword [ebp + 0x14]
mov dword [esp + 0x10], ecx
test ecx, ecx
jne 0x101974b6
lea eax, [ecx + 2]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.101cff65
mov esp, ebp
pop ebp
ret 0x10
push ecx
push 0
push dword [ebx]
call fcn.101d28f0
add esp, 0xc
push esi
push dword [esp + 0x14]
push dword [ebx]
push dword [edi + 0xb0]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x10197538
mov ecx, dword [0x102eec4c]
test ecx, ecx
je 0x101974ec
cmp byte [0x102eec26], al
jne 0x101974f7
call fcn.1018f140
mov ecx, dword [0x102eec4c]
mov eax, dword [ecx]
push str.Error__u_in_WinHttpReadData._n
push 0x1025b044
push ecx
mov esi, dword [eax + 0x24]
mov ecx, esi
call dword [0x1024852c]
call esi
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, edi
call fcn.10195900
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.101cff65
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [esp + 0x10]
neg eax
sbb eax, eax
add eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.101cff65
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [0x102eec4c]
test ecx, ecx
je 0x1019756a
cmp byte [0x102eec26], 0
jne 0x10197575
call fcn.1018f140
mov ecx, dword [0x102eec4c]
mov eax, dword [ecx]
push str.downloader_is_not_initialized
push ecx
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1024852c]
call esi
sub esp, 0x10
mov ecx, esp
push 0
push 0x1025b044
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.1000aef0
push 0
push 0x13
mov ecx, edi
call fcn.101957c0
mov ecx, dword [esp + 0x14]
mov eax, 3
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.101cff65
mov esp, ebp
pop ebp
ret 0x10
Function at 0x101975e0
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov ebx, ecx
push esi
push edi
cmp byte [ebx + 0x20], 0
je 0x101976b1
cmp byte [ebx + 0x28], 0
je 0x101976b1
mov edi, dword [ebp + 0x18]
cmp edi, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
cmova edi, dword [ebp + 0x14]
mov dword [eax], 0
test edi, edi
jne 0x10197623
lea eax, [edi + 2]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov esi, dword [ebp + 8]
push edi
push 0
push dword [esi]
call fcn.101d28f0
add esp, 0xc
push dword [ebp + 0xc]
push edi
push dword [esi]
push dword [ebx + 0xb0]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x1019769c
mov ecx, dword [0x102eec4c]
test ecx, ecx
je 0x1019765b
cmp byte [0x102eec26], al
jne 0x10197666
call fcn.1018f140
mov ecx, dword [0x102eec4c]
mov eax, dword [ecx]
push str.Error__u_in_WinHttpReadData._n
push 0x1025b044
push ecx
mov esi, dword [eax + 0x24]
mov ecx, esi
call dword [0x1024852c]
call esi
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, ebx
call fcn.10195900
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
neg eax
sbb eax, eax
add eax, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [0x102eec4c]
test ecx, ecx
je 0x101976c4
cmp byte [0x102eec26], 0
jne 0x101976cf
call fcn.1018f140
mov ecx, dword [0x102eec4c]
mov eax, dword [ecx]
push str.downloader_is_not_initialized
push ecx
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1024852c]
call esi
sub esp, 0x10
mov ecx, esp
push 0
push 0x1025b044
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.1000aef0
push 0
push 0x13
mov ecx, ebx
call fcn.101957c0
pop edi
pop esi
mov eax, 3
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x1019a140
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x102e91c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
cmp byte [edi + 4], 0
jne 0x1019a1a7
mov ecx, dword [0x102eec4c]
test ecx, ecx
je 0x1019a16d
cmp byte [0x102eec26], 0
jne 0x1019a178
call fcn.1018f140
mov ecx, dword [0x102eec4c]
push str.Thread_is_not_initialized__so_it_cannot_run
mov eax, dword [ecx]
push 0x1025b044
push ecx
mov esi, dword [eax + 0x24]
mov ecx, esi
call dword [0x1024852c]
call esi
add esp, 0xc
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101cff65
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x24], 0
mov dword [edi + 0x34], 1
je 0x1019a1f2
mov eax, dword [0x102eec4c]
test eax, eax
je 0x1019a1c6
cmp byte [0x102eec26], 0
jne 0x1019a1d0
call fcn.1018f140
mov eax, dword [0x102eec4c]
mov esi, dword [eax]
push dword [edi + 0x38]
push str.thread___d__is_already_running._Closing_it_first
mov esi, dword [esi + 4]
mov ecx, esi
push eax
call dword [0x1024852c]
call esi
add esp, 0xc
mov ecx, edi
call fcn.1019a490
lea eax, [ebp - 8]
push eax
push 4
push edi
push 0x10199f10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x24], eax
test eax, eax
jne 0x1019a236
mov ecx, dword [0x102eec4c]
test ecx, ecx
je 0x1019a221
cmp byte [0x102eec26], al
jne 0x1019a22c
call fcn.1018f140
mov ecx, dword [0x102eec4c]
push str.failed_to_create_a_new_thread._Fatal_Error
jmp 0x1019a17d
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x1019a29f
mov ecx, dword [0x102eec4c]
test ecx, ecx
je 0x1019a255
cmp byte [0x102eec26], 0
jne 0x1019a260
call fcn.1018f140
mov ecx, dword [0x102eec4c]
mov eax, dword [ecx]
push str.thread_failed_to_resumed._fatal_error
push 0x1025b044
push ecx
mov esi, dword [eax + 0x24]
mov ecx, esi
call dword [0x1024852c]
call esi
add esp, 0xc
push dword [edi + 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x24], 0
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101cff65
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov dword [edi + 0x38], eax
xor ecx, ebp
pop edi
mov al, 1
pop esi
call fcn.101cff65
mov esp, ebp
pop ebp
ret