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

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 8
mov edi, ecx
call fcn.006d0976
add esp, 4
mov esi, eax
xorps xmm0, xmm0
mov dword [ebp - 4], esi
push 0
push 0
push esi
push 0x670d70
push 0
movq qword [esi], xmm0
push 0
mov dword [esi], 0x6a5db0
mov dword [esi + 4], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x6a5367
push 8
push esi
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.006d0bf7
add esp, 8
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x29c], eax
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x6a9a70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x74ce28
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x857060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x6a9ab0
mov eax, dword [edi]
push 0x808d60
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push eax
call fcn.00703e30
mov eax, dword [ebp - 0x30]
add esp, 0xc
mov dword [esi + 0x30], eax
test eax, eax
jne 0x6a9b07
call fcn.006a6f40
cmp dword [eax], 0
je 0x6a9b0e
call fcn.006a6f40
cmp dword [edi + 0x14], 8
mov ecx, dword [eax]
jb 0x6a9aec
mov edi, dword [edi]
mov eax, dword [ecx]
push edi
push str.Data_file_could_not_be_opened_at_path__s
push str.Validator
push ecx
call dword [eax + 0x1c]
add esp, 0x10
xor al, al
jmp 0x6a9bd6
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x6a9b15
xor al, al
jmp 0x6a9bd6
push eax
mov bl, 1
mov dword [esi + 4], eax
call fcn.006d0f4b
add esp, 4
mov dword [ebp - 0x14], 0
mov edi, eax
mov dword [ebp - 0x1c], 0
xor eax, eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x30]
test eax, eax
je 0x6a9ba2
push eax
push dword [esi + 4]
push 1
push edi
call fcn.006f7196
mov ecx, eax
add esp, 0x10
test ecx, ecx
je 0x6a9ba2
mov eax, dword [esi]
lea edx, [ebp - 0x2c]
push edx
push ecx
mov dword [esi + 8], ecx
mov ecx, esi
mov eax, dword [eax + 0x10]
push edi
call eax
neg al
lea ecx, [esi + 0x10]
sbb al, al
and bl, al
lea eax, [ebp - 0x14]
push eax
call fcn.006aa5c0
lea ecx, [ebp - 0x2c]
cmp eax, ecx
je 0x6a9b9d
cmp dword [ebp - 0x18], 8
push dword [ebp - 0x1c]
cmovae ecx, dword [ebp - 0x2c]
push ecx
mov ecx, eax
call fcn.00426d40
inc dword [ebp - 0x14]
jmp 0x6a9b43
test bl, bl
je 0x6a9bb4
mov eax, dword [esi]
mov ecx, esi
push dword [ebp - 0x34]
mov eax, dword [eax + 0x28]
call eax
mov bl, al
push edi
call fcn.006d0c28
push dword [esi + 0x30]
call fcn.006f212d
add esp, 8
test eax, eax
jne 0x6a9bcc
mov dword [esi + 0x30], eax
lea ecx, [ebp - 0x2c]
call fcn.00426ce0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006d0965
mov esp, ebp
pop ebp
ret 0xc
Function at 0x6aa200
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x74cee8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x857060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x6aa23a
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x6aa311
cmp dword [esi + 4], 0
je 0x6aa311
cmp dword [edi + 0x14], 8
xorps xmm0, xmm0
movlpd qword [ebp - 0x30], xmm0
mov eax, edi
jb 0x6aa265
mov eax, dword [edi]
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x6aa29c
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
jmp 0x6aa2a5
mov ebx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x14]
call eax
cmp dword [ebp - 0x2c], eax
jne 0x6aa311
cmp ebx, edx
jne 0x6aa311
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x6aa2c1
mov eax, dword [edi]
push 0x808d60
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
call fcn.00703e30
mov eax, dword [ebp - 0x2c]
add esp, 0xc
mov dword [esi + 0x30], eax
test eax, eax
jne 0x6aa331
call fcn.006a6f40
cmp dword [eax], 0
je 0x6aa311
call fcn.006a6f40
cmp dword [edi + 0x14], 8
mov ecx, dword [eax]
jb 0x6aa2fd
mov edi, dword [edi]
mov eax, dword [ecx]
push edi
push str.Data_file_could_not_be_opened_at_path__s
push str.Validator
push ecx
call dword [eax + 0x1c]
add esp, 0x10
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006d0965
mov esp, ebp
pop ebp
ret 4
push dword [esi + 4]
mov byte [ebp - 0x31], 1
call fcn.006d0f4b
xor edi, edi
mov dword [ebp - 0x14], 7
add esp, 4
mov dword [ebp - 0x18], edi
mov ebx, eax
xor eax, eax
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x30]
test eax, eax
je 0x6aa38a
push eax
push dword [esi + 4]
push 1
push ebx
call fcn.006f7196
mov ecx, eax
add esp, 0x10
test ecx, ecx
je 0x6aa38a
mov eax, dword [esi]
push edi
push ecx
push ebx
mov eax, dword [eax + 0xc]
mov ecx, esi
call eax
test al, al
je 0x6aa386
inc edi
jmp 0x6aa357
mov byte [ebp - 0x31], 0
push ebx
call fcn.006d0c28
push dword [esi + 0x30]
call fcn.006f212d
add esp, 8
test eax, eax
jne 0x6aa3a2
mov dword [esi + 0x30], eax
lea ecx, [ebp - 0x28]
call fcn.00426ce0
mov al, byte [ebp - 0x31]
jmp 0x6aa313
Function at 0x6aa9d0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x74cffc
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x857060]
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
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 byte [ebp - 4], 3
mov dword [ebp - 0x10], esi
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.006d0976
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 0x6aeca0
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 0x6aecce
call fcn.006aafd0
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 0x6aecc7
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.006aafd0
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 0x6af3a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
test edi, edi
je 0x6af3ec
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.006f782c
mov esi, eax
add esp, 4
test esi, esi
je 0x6af3ec
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x6af3f2
push esi
call fcn.006f6ded
add esp, 4
pop edi
xor al, al
pop esi
pop ebp
ret
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x6af3f7
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp + 8]
push esi
call fcn.00426d40
push esi
call fcn.006f6ded
add esp, 4
mov al, 1
pop edi
pop esi
pop ebp
ret
Function at 0x6b1360
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x857060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], ebx
cmp dword [ebx], 0
jne 0x6b1397
call fcn.006aafd0
push str.file_handler_to_read_not_initialized
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
add esp, 8
jmp 0x6b1459
push esi
lea ecx, [ebx + 8]
call fcn.006af420
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x6b1413
mov esi, dword [ebp + 0x14]
lea eax, [ebp - 8]
push 0
push eax
push esi
push edi
push dword [ebx]
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 8], esi
jb 0x6b13dc
test eax, eax
jne 0x6b1449
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x24], 1
call esi
mov dword [ebx + 0x28], eax
call fcn.006aafd0
mov edi, eax
mov ebx, dword [edi]
call esi
push eax
push str.failed_to_read_data._Error_code____d
push 0x799430
push edi
call dword [ebx + 0x24]
mov ebx, dword [ebp - 0xc]
add esp, 0x10
mov esi, dword [ebp - 0x10]
jmp 0x6b144b
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x24], 1
call esi
mov dword [ebx + 0x28], eax
call fcn.006aafd0
mov edi, eax
mov ebx, dword [edi]
call esi
push eax
push str.file_pointer_set_error____d
push 0x799430
push edi
call dword [ebx + 0x24]
mov ebx, dword [ebp - 0xc]
add esp, 0x10
xor esi, esi
jmp 0x6b144b
mov esi, eax
lea ecx, [ebx + 8]
call fcn.006af440
cmp esi, 1
pop esi
je 0x6b147c
push 0x33
push str.Failed_to_read_the_segment_from_the_downloaded_file
lea ecx, [ebx + 0x30]
call fcn.00426d40
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006d0965
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop ebx
call fcn.006d0965
mov esp, ebp
pop ebp
ret 0x10
Function at 0x6b1490
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x857060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], ebx
cmp dword [ebx], 0
jne 0x6b14c7
call fcn.006aafd0
push str.file_handler_not_initialized
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
add esp, 8
jmp 0x6b1572
push esi
lea ecx, [ebx + 8]
call fcn.006af420
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x6b1530
mov esi, dword [ebp + 0x14]
lea eax, [ebp - 8]
push 0
push eax
push esi
push edi
push dword [ebx]
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
cmp dword [ebp - 8], esi
jb 0x6b150b
test edi, edi
jne 0x6b1564
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x24], 1
call esi
mov dword [ebx + 0x28], eax
call fcn.006aafd0
mov edi, eax
mov ebx, dword [edi]
call esi
push eax
push str.failed_to_write_data._Error_code____d
jmp 0x6b1553
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x24], 1
call esi
mov dword [ebx + 0x28], eax
call fcn.006aafd0
mov edi, eax
mov ebx, dword [edi]
call esi
push eax
push str.file_pointer_set_error____d
push 0x799430
push edi
call dword [ebx + 0x24]
mov ebx, dword [ebp - 0xc]
add esp, 0x10
xor edi, edi
lea ecx, [ebx + 8]
call fcn.006af440
pop esi
cmp edi, 1
je 0x6b1595
push 0x41
push str.Failed_to_write_the_segment_in_the_file_which_is_to_be_downloaded
lea ecx, [ebx + 0x30]
call fcn.00426d40
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006d0965
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop ebx
call fcn.006d0965
mov esp, ebp
pop ebp
ret 0x10
Function at 0x6b3650
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x74d9e3
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x857060]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], edi
call fcn.006b35c0
lea ecx, [edi + 0x30]
mov dword [ebp - 4], 0
call fcn.006b35c0
lea ecx, [edi + 0x60]
mov dword [ebp - 4], 1
call fcn.006bb0d0
lea esi, [edi + 0x218]
mov byte [ebp - 4], 2
mov dword [ebp - 0x10], esi
push 0x20
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.006d0976
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
lea ecx, [edi + 0x228]
mov byte [ebp - 4], 3
call fcn.006b0d80
mov byte [edi + 0x2d8], 0
mov word [edi + 0x2d9], 0x100
mov byte [edi + 0x2db], 0
mov dword [edi + 0x2dc], 0
lea ecx, [edi + 0x2e4]
mov byte [ebp - 4], 5
call fcn.006afdf0
lea ecx, [edi + 0x340]
mov byte [ebp - 4], 6
mov dword [edi + 0x330], 0
mov dword [edi + 0x334], 0
mov dword [edi + 0x338], 0
mov dword [edi + 0x33c], 3
call fcn.006aaad0
lea esi, [edi + 0x36c]
mov byte [ebp - 4], 7
mov dword [ebp - 0x10], esi
push 0x20
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.006d0976
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
lea ecx, [edi + 0x374]
mov byte [ebp - 4], 8
call fcn.006b1b80
lea ecx, [edi + 0x48c]
mov byte [ebp - 4], 9
call fcn.006b15b0
lea ecx, [edi + 0x4b0]
mov byte [ebp - 4], 0xa
call fcn.00426cd0
lea ecx, [edi + 0x4cc]
mov byte [ebp - 4], 0xb
call fcn.00426cd0
mov eax, edi
mov byte [ebp - 4], 0xc
mov dword [eax + 0x4e8], 0
mov dword [eax + 0x4ec], 0
mov dword [eax + 0x4f0], 0
lea esi, [eax + 0x508]
mov dword [eax + 0x4f4], 0
mov dword [eax + 0x4f8], 0
mov dword [eax + 0x4fc], 0
mov word [eax + 0x500], 0
mov dword [eax + 0x504], 0
mov dword [ebp - 0x10], esi
push 0x40
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.006d0976
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov esi, edi
mov byte [ebp - 4], 0xd
add esi, 0x510
mov dword [ebp - 0x10], esi
push 0x40
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.006d0976
add esp, 8
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov esi, edi
mov byte [ebp - 4], 0xe
lea ecx, [edi + 0x4b0]
mov dword [esi + 0x518], 0
mov dword [esi + 0x51c], 0
call fcn.006af450
lea ecx, [edi + 0x4cc]
call fcn.006af450
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x6b7340
Capabilities:
Terminate thread

Disassembly:
push edi
mov edi, ecx
cmp byte [edi + 4], 0
je 0x6b743e
push esi
lea ecx, [edi + 8]
mov dword [edi + 0x34], 2
call fcn.006af420
mov ecx, dword [edi + 0x28]
test ecx, ecx
je 0x6b73e3
mov eax, dword [ecx]
call dword [eax + 0x10]
mov eax, dword [edi + 0x28]
xor esi, esi
cmp dword [eax + 8], 3
je 0x6b73e3
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax + eax]
cmp dword [eax + 8], 5
je 0x6b73e2
inc esi
cmp esi, 0x12c
jne 0x6b73b2
call fcn.006aafd0
mov ecx, dword [edi + 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 [edi + 0x28]
add esp, 0xc
mov eax, dword [ecx]
call dword [eax + 0x14]
jmp 0x6b73ba
cmp esi, 0x3e8
je 0x6b73c9
push 0xa
call ebx
mov eax, dword [edi + 0x28]
cmp dword [eax + 8], 3
jne 0x6b7380
jmp 0x6b73e2
call fcn.006aafd0
mov edx, dword [edi + 0x28]
mov esi, dword [eax]
push dword [edx + 4]
push str.job___d__is_still_not_terminated._Closing_the_thread_handle_now
push eax
call dword [esi + 0x14]
add esp, 0xc
pop ebx
lea ecx, [edi + 8]
call fcn.006af440
mov eax, dword [edi + 0x24]
test eax, eax
je 0x6b7436
push 0x61a8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, eax
test esi, esi
je 0x6b7426
call fcn.006aafd0
push esi
push dword [edi + 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 [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
mov dword [edi + 0x34], 3
pop esi
mov al, 1
pop edi
ret
Function at 0x6b9790
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x857060]
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 0x6b992b
cmp byte [esi + 0x28], 0
je 0x6b992b
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 0x6b9822
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
push eax
mov ecx, esi
call fcn.006ba450
call fcn.006aafd0
mov esi, eax
mov edi, dword [esi]
call ebx
push eax
push str.Error__d_in_WinHttpQueryDataAvailable._n
push 0x799430
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.006d0965
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 0x6b9849
lea eax, [ecx + 2]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006d0965
mov esp, ebp
pop ebp
ret 0x10
cmp byte [ebp + 0x10], 0
je 0x6b98b0
push 0x87c070
push ecx
call fcn.006d1230
add esp, 8
mov dword [edi], eax
test eax, eax
jne 0x6b98ad
call fcn.006aafd0
push dword [ebp - 8]
push str.failed_to_allote_mmeory_of_size__d
mov ecx, dword [eax]
push 0x799430
push eax
call dword [ecx + 0x24]
sub esp, 8
mov ecx, esp
push 0x799430
call fcn.00426b40
push 0
push 0x14
mov ecx, esi
call fcn.006bae10
mov eax, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006d0965
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 8]
push ecx
push 0
push dword [edi]
call fcn.006e9470
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 0x6b990e
call fcn.006aafd0
push str.Error__u_in_WinHttpReadData._n
push 0x799430
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.006ba450
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006d0965
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.006d0965
mov esp, ebp
pop ebp
ret 0x10
call fcn.006aafd0
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
push 0x799430
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
call fcn.00426d40
push 0
push 0x13
mov ecx, esi
call fcn.006bae10
mov ecx, dword [ebp - 4]
mov eax, 3
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006d0965
mov esp, ebp
pop ebp
ret 0x10
Function at 0x6b9990
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], eax
cmp byte [edi + 0x20], 0
je 0x6b9a9a
cmp byte [edi + 0x28], 0
je 0x6b9a9a
mov esi, dword [ebp + 0x18]
cmp esi, dword [ebp + 0x14]
mov dword [ebx], 0
cmova esi, dword [ebp + 0x14]
test esi, esi
jne 0x6b99d6
lea eax, [esi + 2]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
cmp byte [ebp + 0x10], 0
je 0x6b9a31
push 0x87c070
push esi
call fcn.006d1230
mov ecx, dword [ebp - 4]
add esp, 8
mov dword [ecx], eax
test eax, eax
jne 0x6b9a33
call fcn.006aafd0
push esi
push str.failed_to_allote_mmeory_of_size__d
push 0x799430
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
sub esp, 8
mov ecx, esp
push 0x799430
call fcn.00426b40
push 0
push 0x14
mov ecx, edi
call fcn.006bae10
mov eax, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ecx, eax
push esi
push 0
push dword [ecx]
call fcn.006e9470
mov eax, dword [ebp - 4]
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 0x6b9a88
call fcn.006aafd0
push str.Error__u_in_WinHttpReadData._n
push 0x799430
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.006ba450
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebx]
neg eax
sbb eax, eax
add eax, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
call fcn.006aafd0
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
push 0x799430
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
call fcn.00426d40
push 0
push 0x13
mov ecx, edi
call fcn.006bae10
pop edi
pop esi
mov eax, 3
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x6b9ef0
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x857060]
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 0x6b9f3e
cmp eax, 0x2f76
je 0x6b9f4b
cmp eax, 0x7a
je 0x6b9f60
push eax
mov ecx, edi
call fcn.006ba450
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006d0965
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 8]
test eax, eax
jne 0x6b9f94
call fcn.006aafd0
push str.retrieveHeaderFromHttpRequest:_Zero_buffer_required....
push 0x799430
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.006d0965
mov esp, ebp
pop ebp
ret 8
xor ecx, ecx
shr eax, 1
mov edx, 2
mul edx
push 0x87c070
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.006d1230
mov esi, eax
add esp, 8
test esi, esi
jne 0x6b9ffd
call fcn.006aafd0
push str.failed_to_allocate_memory
push 0x799430
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
sub esp, 0xc
mov ecx, esp
push str.Memory_Allocation_Failed
call fcn.00426b40
push esi
push 0x14
mov ecx, edi
call fcn.006bae10
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006d0965
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 0x6ba043
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, edi
call fcn.006ba450
push esi
call fcn.006d0c28
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006d0965
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0xc]
push esi
call fcn.0048f910
push esi
call fcn.006d0c28
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov al, 1
pop edi
pop esi
pop ebx
call fcn.006d0965
mov esp, ebp
pop ebp
ret 8