joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6c126310
Capabilities:
Get thread local storage value

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x38
mov eax, dword [0x6c147300]
mov esi, dword [ecx]
mov edi, dword [ecx + 4]
mov ebx, dword [ecx + 8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
mov edx, eax
test byte [0x6c1471a4], 8
jne 0x6c126450
test esi, esi
je 0x6c126428
test ebx, ebx
je 0x6c126428
test edx, edx
je 0x6c126400
mov eax, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
lea ecx, [edx + 4]
mov dword [ebp - 0x20], edx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], ecx
mov dword [ebp - 0x1c], ecx
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [ebp - 0x24], eax
call eax
sub esp, 0x18
dec eax
test edi, edi
je 0x6c126490
cmp dword [ebx], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
jb 0x6c126490
mov eax, dword [edx]
mov dword [esi], eax
mov eax, dword [ebx]
mov esi, 1
test eax, eax
je 0x6c126411
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
mov dword [esp], 0
call eax
mov dword [ebx], eax
sub esp, 0x18
jmp 0x6c126411
mov dword [esi], 0
mov esi, 1
mov dword [ebx], 0
lea esp, [ebp - 0x10]
mov eax, esi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x57
lea esp, [ebp - 0x10]
xor esi, esi
pop ecx
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0x6c14c392
mov dword [esp + 8], str.InternetGetLastResponseInfoW
mov dword [esp + 4], 0x6c1471a4
mov dword [esp], 3
mov dword [ebp - 0x1c], eax
call sym._wine_dbg_log.constprop.0_5
mov edx, dword [ebp - 0x1c]
jmp 0x6c12634c
mov dword [ebx], eax
xor esi, esi
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x7a
lea esp, [ebp - 0x10]
mov eax, esi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc
Function at 0x6c12b4c0
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea ebx, [ebp - 0x1c]
sub esp, 0x2c
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
test eax, eax
je 0x6c12b4f7
mov eax, dword [esi]
mov dword [ebp - 0x1c], 1
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x8004667e
mov dword [esp], eax
call dword [sym.imp.ws2_32.dll_ioctlsocket]
sub esp, 0xc
mov dword [esi + 8], 0
mov edi, dword [esi]
mov esi, dword [sym.imp.ws2_32.dll_recv]
jmp 0x6c12b51d
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x6c12b550
mov dword [esp + 0xc], 2
mov dword [esp + 8], 1
mov dword [esp + 4], ebx
mov dword [esp], edi
call esi
sub esp, 0x10
cmp eax, 0xffffffff
je 0x6c12b510
cmp eax, 1
sete al
lea esp, [ebp - 0xc]
pop ebx
movzx eax, al
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2733
sete al
lea esp, [ebp - 0xc]
pop ebx
movzx eax, al
pop esi
pop edi
pop ebp
ret
Function at 0x6c12be00
Capabilities:
Inspect section memory permissions
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov edx, dword [esi + 4]
test edx, edx
jne 0x6c12be50
mov eax, dword [esi + 0x28]
cmp eax, ebx
je 0x6c12be2f
mov dword [esp], eax
call sym._server_release
mov dword [esp], ebx
call sym._server_addref
mov dword [esi + 0x28], ebx
xor edx, edx
mov eax, esi
call sym._netcon_secure_connect_setup
mov ebx, eax
test eax, eax
je 0x6c12be45
cmp eax, 0x2f7d
je 0x6c12be88
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
mov ebx, 0x2efd
test byte [0x6c1471b4], 2
je 0x6c12be45
mov dword [esp + 0xc], str.already_connected_n
mov dword [esp + 8], str.NETCON_secure_connect
mov dword [esp + 4], 0x6c1471b4
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_6
jmp 0x6c12be45
mov eax, dword [0x6c147310]
test eax, eax
je 0x6c12be45
mov eax, dword [esi]
mov dword [esp], eax
call dword [sym.imp.ws2_32.dll_closesocket]
mov eax, dword [esi + 0x28]
mov ecx, 0x1f4
mov edx, esi
sub esp, 4
call sym._create_netconn_socket
mov ebx, eax
test eax, eax
jne 0x6c12be45
lea esp, [ebp - 8]
mov eax, esi
mov edx, 1
pop ebx
pop esi
pop ebp
jmp sym._netcon_secure_connect_setup
Function at 0x6c12c140
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov eax, 0x1005
mov ebp, esp
sub esp, 0x28
cmp dword [ebp + 0xc], 1
lea edx, [ebp + 0x10]
mov dword [esp + 0x10], 4
adc eax, 0
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0xffff
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.ws2_32.dll_setsockopt]
mov edx, eax
sub esp, 0x14
xor eax, eax
cmp edx, 0xffffffff
je 0x6c12c190
leave
ret
test byte [0x6c1471b4], 4
jne 0x6c12c1a8
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
leave
ret
mov dword [esp + 0xc], str.setsockopt_failed_n
mov dword [esp + 8], str.NETCON_set_timeout
mov dword [esp + 4], 0x6c1471b4
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_6
jmp 0x6c12c199

Function at 0x6c12c410
Capabilities:
Read file on windows

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x38
mov eax, dword [ecx + 8]
mov edi, dword [ecx]
mov esi, dword [ecx + 4]
mov ebx, dword [ecx + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx + 0x10]
test eax, eax
je 0x6c12c468
test byte [0x6c1471c4], 2
jne 0x6c12c4c0
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x57
xor ecx, ecx
lea esp, [ebp - 0x10]
mov eax, ecx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x14
mov dword [esp + 4], 8
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_IsBadReadPtr]
sub esp, 8
test eax, eax
jne 0x6c12c49e
lea eax, [edi + 4]
mov dword [esp + 4], 0x824
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrA]
sub esp, 8
test eax, eax
mov dword [ebp - 0x20], eax
je 0x6c12c4f0
xor ecx, ecx
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 6
lea esp, [ebp - 0x10]
mov eax, ecx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x14
mov dword [esp + 0xc], str.dwReserved___0_n
mov dword [esp + 8], str.ReadUrlCacheEntryStream
mov dword [esp + 4], 0x6c1471c4
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_7
jmp 0x6c12c442
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov eax, dword [edi]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
mov ecx, dword [ebp - 0x20]
sub esp, 0x10
cmp eax, 0xffffffff
je 0x6c12c451
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebx
mov eax, dword [ebx]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov eax, dword [edi]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ReadFile]
sub esp, 0x14
mov ecx, eax
jmp 0x6c12c451
Function at 0x6c132f40
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
test eax, eax
je 0x6c132fd0
mov dword [esp], eax
mov ebx, eax
call dword [sym.imp.ucrtbase.dll_wcslen]
mov dword [esp + 4], 0
lea edi, [eax + eax*2 + 1]
mov dword [esp + 8], edi
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x6c132fc6
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
sub esp, 0x20
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
xor esi, esi
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x6c132fe0
Capabilities:
Check for peb beingdebugged flag
Get process heap flags
Get process heap force flags

Disassembly:
test eax, eax
je 0x6c133048
push ebp
mov ebp, esp
push esi
push ebx
mov ebx, eax
sub esp, 0x10
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcslen]
mov dword [esp + 4], 0
lea esi, [eax + eax + 2]
mov dword [esp + 8], esi
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
test eax, eax
je 0x6c13303a
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym._memcpy
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
ret
xor eax, eax
ret

Function at 0x6c133100
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
pop ebp
jmp sym._x2nmodp.constprop.0

Function at 0x6c133110
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
pop ebp
jmp sym._x2nmodp.constprop.0
Function at 0x6c133d40
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
push ebx
mov ebx, edx
sub esp, 0x3c
cmp word [eax], 0
mov dword [ebp - 0x1c], ecx
je 0x6c133f00
mov esi, eax
lea esi, [esi]
add esi, 2
cmp word [esi], 0
jne 0x6c133d60
sub esi, edi
mov ecx, esi
sar ecx, 1
mov eax, dword [ebp - 0x1c]
mov edx, 0xaaaaaaab
lea eax, [eax*4 + 8]
mul edx
shr edx, 1
lea eax, [ecx + edx + 2]
add eax, eax
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x6c133eb4
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov edi, eax
mov dword [esp], eax
call sym._memcpy
mov edx, 0x20
mov ecx, dword [ebp - 0x1c]
mov word [edi + esi], dx
lea esi, [edi + esi + 2]
mov dword [ebp - 0x28], esi
test ecx, ecx
je 0x6c133f09
movsx eax, byte [ebx]
mov edx, eax
shl eax, 4
sar edx, 2
and eax, 0x30
and edx, 0x3f
movsx dx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov word [esi], dx
cmp ecx, 1
je 0x6c133f0e
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x20], 0
add ecx, 8
jmp 0x6c133e5e
movzx edi, byte [ebx + 2]
add ebx, 3
mov eax, edi
and edi, 0x3f
shr eax, 6
and eax, 3
or edx, eax
sub dword [ebp - 0x1c], 3
movsx ax, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov word [ecx - 4], ax
movsx ax, byte [edi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov word [ecx - 2], ax
je 0x6c133eaf
movsx eax, byte [ebx]
mov edx, dword [ebp - 0x24]
add ecx, 8
mov esi, eax
shl eax, 4
add edx, 5
sar esi, 2
and eax, 0x30
and esi, 0x3f
movsx si, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov word [ecx - 8], si
cmp dword [ebp - 0x1c], 1
je 0x6c133ec0
movsx edx, byte [ebx + 1]
mov esi, ecx
mov edi, edx
shl edx, 2
sar edi, 4
and edx, 0x3c
and edi, 0xf
or eax, edi
movsx ax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov word [ecx - 6], ax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
add eax, 4
cmp dword [ebp - 0x1c], 2
mov dword [ebp - 0x20], eax
lea eax, [ecx - 2]
jne 0x6c133e00
mov ebx, eax
movsx ax, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov word [ecx - 4], ax
mov ecx, 0x3d
mov word [ebx], cx
xor eax, eax
mov word [esi], ax
mov eax, dword [ebp - 0x2c]
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [ebp - 0x24]
add edx, edx
lea ecx, [ebx + ebx + 0xc]
lea ebx, [ecx + 2]
lea esi, [ecx + 4]
mov edi, dword [ebp - 0x28]
movsx ax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov word [edi + edx], ax
mov eax, 0x3d
add esi, edi
mov word [edi + ecx], ax
mov eax, 0x3d
mov word [edi + ebx], ax
xor eax, eax
mov word [esi], ax
jmp 0x6c133eb4
xor esi, esi
xor ecx, ecx
jmp 0x6c133d6f
mov esi, dword [ebp - 0x28]
jmp 0x6c133eaf
mov esi, 8
mov ebx, 6
mov ecx, 4
mov edx, 2
jmp 0x6c133ecf
Function at 0x6c134770
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x6c1347cb
cmp byte [esi + ebx - 1], 0xa
je 0x6c13479f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x6c147404], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x6c134c60
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x1c]
push ebx
mov ebx, eax
sub esp, 0x3c
mov dword [ebp - 0x1c], 0
mov esi, dword [sym.imp.kernel32.dll_GetComputerNameExA]
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], eax
call esi
sub esp, 0xc
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0xea
jne 0x6c134ce1
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
test eax, eax
je 0x6c134ce1
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [ebp - 0x2c], eax
mov dword [esp], ebx
call esi
mov edx, dword [ebp - 0x2c]
sub esp, 0xc
test eax, eax
je 0x6c134cd8
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0xc]
xor edx, edx
pop ebx
mov eax, edx
pop esi
pop edi
pop ebp
ret
Function at 0x6c136630
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
push ebx
mov ebx, eax
sub esp, 0x3c
test byte [0x6c147194], 8
jne 0x6c1366d0
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
call sym._is_valid_netconn
test eax, eax
je 0x6c1366c4
test esi, esi
je 0x6c13666b
mov eax, dword [ebx + 0x54]
mov edx, dword [eax + 0x4c]
test edx, edx
jne 0x6c136710
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x32
mov eax, dword [ebx + 0x14]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._INTERNET_SendCallback
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
call sym._close_netconn
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x33
mov eax, dword [ebx + 0x14]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._INTERNET_SendCallback
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x18], edx
mov eax, dword [eax + 0x54]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 0x6c14a2e0
mov dword [esp + 8], str.http_release_netconn
mov dword [esp + 4], 0x6c147194
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_4
jmp 0x6c13664a
mov dword [esp], 0x6c147224
mov esi, dword [sym.imp.kernel32.dll_EnterCriticalSection]
call esi
mov edx, dword [ebx + 0x54]
sub esp, 4
mov eax, dword [edx + 0x28]
lea ecx, [edx + 0x58]
mov edi, dword [eax + 0xf8]
mov dword [edx + 0x58], edi
lea edi, [eax + 0xf8]
mov dword [edx + 0x5c], edi
mov edx, dword [eax + 0xf8]
mov dword [edx + 4], ecx
mov dword [eax + 0xf8], ecx
call dword [sym.imp.kernel32.dll_GetTickCount64]
mov ecx, dword [ebx + 0x54]
mov edi, dword [0x6c14720c]
mov dword [0x6c14720c], 1
add eax, 0xea60
adc edx, 0
mov dword [ecx + 0x50], eax
mov dword [ecx + 0x54], edx
mov dword [ebx + 0x54], 0
mov ebx, dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov dword [esp], 0x6c147224
call ebx
sub esp, 4
test edi, edi
jne 0x6c1366c4
lea eax, [ebp - 0x1c]
mov dword [esp], 4
mov dword [esp + 8], eax
mov eax, dword [0x6c147120]
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_GetModuleHandleExW]
mov eax, dword [ebp - 0x1c]
sub esp, 0xc
test eax, eax
je 0x6c136810
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], sym._collect_connections_proc_4
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateThread]
sub esp, 0x18
test eax, eax
je 0x6c136810
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
jmp 0x6c1366c4
mov dword [esp], 0x6c147224
call esi
mov dword [0x6c14720c], 0
sub esp, 4
mov dword [esp], 0x6c147224
call ebx
mov eax, dword [ebp - 0x1c]
sub esp, 4
test eax, eax
je 0x6c1366c4
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FreeLibrary]
sub esp, 4
jmp 0x6c1366c4
Function at 0x6c13d6a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, edx
push esi
push ebx
mov ebx, eax
sub esp, 0x4c
mov eax, dword [eax + 0x20ec]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x2c], ecx
mov edx, dword [eax]
mov dword [esp + 0x14], esi
mov esi, dword [ebp + 8]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edi
mov dword [esp + 0x10], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [edx + 4]
mov ecx, dword [ebp - 0x2c]
test eax, eax
mov esi, eax
mov eax, dword [ebp + 8]
je 0x6c13d720
mov dword [eax], 0
mov edx, dword [ebx + 0xa8]
test edx, edx
je 0x6c13d710
mov eax, dword [ebx + 0x20ec]
mov edx, dword [eax]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [edx]
test eax, eax
je 0x6c13d710
mov eax, ebx
call sym._commit_cache_entry
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dword [eax], ecx
jbe 0x6c13d741
mov dword [esp + 8], 0xa38
mov dword [esp + 4], str..._src_wine_dlls_wininet_http.c
mov dword [esp], str.read___size
call dword [sym.imp.ucrtbase.dll__assert]
mov eax, dword [ebx + 0xa8]
test eax, eax
je 0x6c13d710
mov edx, dword [ebp + 8]
mov edx, dword [edx]
test edx, edx
je 0x6c13d709
lea ecx, [ebp - 0x1c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
test eax, eax
jne 0x6c13d784
test byte [0x6c147194], 1
jne 0x6c13d7a0
mov eax, dword [ebp + 8]
mov eax, dword [eax]
test eax, eax
jne 0x6c13d6f4
jmp 0x6c13d709
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.WriteFile_failed:__lu_n
mov dword [esp + 8], str.read_http_stream
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x6c147194
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_4
jmp 0x6c13d784

Function at 0x6c13dbc0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
lock dec dword [eax]
jne 0x6c13dbd8
pop ebp
jmp sym._req_file_release.part.0
pop ebp
ret

Function at 0x6c13dbe0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
mov ebx, eax
sub esp, 0x10
mov eax, dword [eax + 0x10]
test eax, eax
je 0x6c13dc20
mov eax, dword [ebx + 4]
lea edx, [eax - 1]
cmp edx, 0xfffffffd
jbe 0x6c13dc3a
mov eax, dword [ebx + 8]
mov esi, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call esi
mov dword [esp], ebx
call esi
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov eax, dword [ebx + 8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
mov eax, dword [ebx + 4]
sub esp, 4
lea edx, [eax - 1]
cmp edx, 0xfffffffd
ja 0x6c13dbfc
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
jmp 0x6c13dbfc
Function at 0x6c140160
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
jmp 0x6c140185
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x6c1401aa
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], esi
mov dword [esp], edi
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
call dword [sym.imp.ws2_32.dll_recv]
sub esp, 0x10
mov ebx, eax
cmp eax, 0xffffffff
je 0x6c140178
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x6c1401c0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
jmp 0x6c1401e5
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x6c14020a
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], esi
mov dword [esp], edi
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
call dword [sym.imp.ws2_32.dll_send]
sub esp, 0x10
mov ebx, eax
cmp eax, 0xffffffff
je 0x6c1401d8
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x6c1414e0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
push ebx
mov ebx, edx
sub esp, 0x26c
mov ecx, dword [ecx + 0x3c]
mov dword [ebp - 0x248], 0x208
test ecx, ecx
jne 0x6c141598
movzx eax, byte [esi + 0x38]
cmp eax, dword [ebx + 0x48]
jae 0x6c14151f
lea eax, [eax + eax*2]
lea edx, [ebx + eax*4]
mov eax, dword [edx + 0x4c]
test eax, eax
je 0x6c14151f
dec eax
mov dword [edx + 0x4c], eax
mov ecx, dword [esi + 0x40]
mov eax, dword [esi + 0x20]
mov edx, dword [esi + 0x24]
and ecx, 4
mov dword [ebp - 0x25c], ecx
jne 0x6c141560
mov esi, dword [ebx + 0x38]
mov edi, dword [ebx + 0x3c]
mov ecx, edx
cmp eax, esi
sbb ecx, edi
jae 0x6c141670
sub esi, eax
sbb edi, edx
mov dword [ebx + 0x38], esi
mov dword [ebx + 0x3c], edi
mov eax, dword [ebp - 0x25c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [ebx + 0x40]
mov edi, dword [ebx + 0x44]
mov ecx, edx
cmp eax, esi
sbb ecx, edi
jae 0x6c141690
mov dword [ebp - 0x25c], 0
sub esi, eax
mov eax, dword [ebp - 0x25c]
sbb edi, edx
mov dword [ebx + 0x40], esi
mov dword [ebx + 0x44], edi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea edx, [ebp - 0x248]
lea edi, [ebp - 0x220]
mov dword [esp + 0xc], 0
add ecx, esi
mov dword [esp + 8], edx
mov dword [esp + 4], edi
movzx edx, byte [esi + 0x38]
mov dword [esp], edx
mov edx, ebx
call sym._urlcache_create_file_pathW
test eax, eax
je 0x6c141505
lea eax, [ebp - 0x244]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_GetFileAttributesExW]
sub esp, 0xc
test eax, eax
je 0x6c141505
mov eax, dword [ebp - 0x230]
or eax, dword [ebp - 0x22c]
jne 0x6c1416c0
xor edx, edx
xor eax, eax
mov word [ebp - 0x24c], dx
mov word [ebp - 0x24a], ax
xor eax, eax
cmp word [esi + 0x5c], ax
jne 0x6c141505
movzx eax, word [ebp - 0x24a]
cmp word [esi + 0x5e], ax
jne 0x6c141505
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_DeleteFileW]
sub esp, 4
test eax, eax
jne 0x6c141505
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x25c], eax
cmp eax, 5
je 0x6c14154f
cmp eax, 0x20
je 0x6c14154f
jmp 0x6c141505
mov eax, dword [ebp - 0x25c]
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x3c], 0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x25c], 0
mov eax, dword [ebp - 0x25c]
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x44], 0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x24a]
mov dword [esp + 8], eax
lea eax, [ebp - 0x24c]
mov dword [esp + 4], eax
lea eax, [ebp - 0x230]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FileTimeToDosDateTime]
movzx eax, word [ebp - 0x24c]
sub esp, 0xc
jmp 0x6c141618