joyce8/EMBER2024-capa huggingface dataset:
Function at 0x425e85
Capabilities:
Create http request
Delete file
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
push ebx
xor eax, eax
mov dword [ebp - 4], ecx
push eax
push eax
push eax
push 1
push str.Mozilla_4.0__compatible__MSIE_5.5__Windows_NT_5.0_
mov ebx, 0x80004005
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edx, eax
mov dword [ebp - 8], edx
test edx, edx
je 0x425f9a
push esi
push edi
push 8
pop ecx
mov esi, str.Accept:___r_n_r_n
lea edi, [ebp - 0x2c]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x2c]
xor edi, edi
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x425ecd
push edi
push 0x4000000
sub ecx, esi
lea eax, [ebp - 0x2c]
sar ecx, 1
push ecx
push eax
mov eax, dword [ebp - 4]
push dword [eax + 0x88]
push edx
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov edi, eax
test edi, edi
je 0x425f8b
xor eax, eax
push eax
push eax
push 2
push eax
push eax
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x425f7d
xor eax, eax
push 0xff
push eax
mov byte [ebp - 0x12c], al
lea eax, [ebp - 0x12b]
push eax
call fcn.00443c10
add esp, 0xc
jmp 0x425f5e
cmp dword [ebp - 4], 0
je 0x425f7b
xor eax, eax
push eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x12c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 4]
push eax
push 0x100
lea eax, [ebp - 0x12c]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x425f3d
jmp 0x425f7d
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 8]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
pop esi
test ebx, ebx
jns 0x425fa3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x425fac
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
xor eax, eax
xor esi, esi
push 0x206
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x206]
push esi
push eax
call fcn.00443c10
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
push esi
push esi
push 0x10
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x426038
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edi, [ebp - 0x208]
sub edi, 2
mov ax, word [edi + 2]
add edi, 2
cmp ax, si
jne 0x426006
mov esi, str..url
lea eax, [ebp - 0x208]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop edi
cmp eax, 0xffffffff
je 0x426038
shr eax, 4
not eax
and eax, 1
jmp 0x42603a
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x426041
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x608
push ebx
xor eax, eax
mov ebx, 0x80004005
push 0x206
push eax
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x206]
push eax
call fcn.00443c10
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
xor eax, eax
push eax
push eax
push 0x10
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x426136
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edi, [ebp - 0x208]
sub edi, 2
xor ecx, ecx
mov ax, word [edi + 2]
add edi, 2
cmp ax, cx
jne 0x4260a6
push esi
mov esi, str..url
mov byte [ebp - 0x608], cl
push 0x3ff
push ecx
lea eax, [ebp - 0x607]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.00443c10
push dword [ebp + 0x14]
lea eax, [ebp - 0x608]
push dword [ebp + 0xc]
push str._InternetShortcut__r_nURL_S_r_nIconFile_S_r_nIconIndex0_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
mov edi, eax
xor eax, eax
push eax
push eax
push 2
push eax
push eax
push 0xc0000000
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x426134
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push 0
push eax
push edi
lea eax, [ebp - 0x608]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
pop esi
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x426c6e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0x64
mov edi, ecx
call fcn.00426c20
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jmp 0x426c95
mov eax, dword [edi + 8]
mov ecx, edi
add eax, 0x64
push eax
call fcn.00426c20
mov eax, dword [edi + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push dword [edi]
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
mov ebx, eax
cmp ebx, 0xea
je 0x426c87
test ebx, ebx
jne 0x426cf1
mov eax, dword [ebp - 8]
test eax, eax
je 0x426cdb
cmp eax, 2
jbe 0x426cce
cmp eax, 7
jne 0x426cdb
mov esi, dword [ebp - 4]
test esi, esi
je 0x426cde
dec esi
mov dword [ebp - 4], esi
jmp 0x426cde
mov esi, dword [ebp - 4]
push esi
mov ecx, edi
call fcn.00426c20
mov eax, dword [edi]
mov dword [edi + 4], esi
mov byte [esi + eax], 0
jmp 0x426d03
push 0
mov ecx, edi
call fcn.00426c20
mov eax, dword [edi]
and dword [edi + 4], 0
mov byte [eax], 0
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4271ba
Capabilities:
Get system information on windows

Disassembly:
mov eax, 0x4747d3
call fcn.00473e04
sub esp, 0x38
push ebx
push esi
push edi
mov esi, ecx
call fcn.00427188
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x44]
push 0xffffffffffffffff
call fcn.00427357
push eax
lea ecx, [esi + 0xc]
call fcn.00426d0e
mov ebx, dword [ebp - 0x30]
xor ecx, ecx
push 0x30
pop edx
mov eax, ebx
mov dword [esi + 8], ebx
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.0043d6b0
pop ecx
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
test eax, eax
je 0x42723c
push fcn.00427055
push 0x426ff6
push ebx
lea edi, [eax + 4]
mov dword [eax], ebx
push 0x30
push edi
call fcn.00441b6c
jmp 0x42723e
xor edi, edi
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
push str.HARDWAREDESCRIPTIONSystemCentralProcessor
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esi + 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [esi + 0x18], eax
test eax, eax
jne 0x4272c3
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x4272ba
xor ebx, ebx
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0xa
lea eax, [ebp - 0x20]
push eax
push edi
call fcn.00441755
add esp, 0xc
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [esi + 0x18], eax
test eax, eax
jne 0x4272b1
mov ecx, dword [esi + 4]
push dword [ebp - 0x10]
add ecx, ebx
call fcn.0042707e
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc edi
add ebx, 0x30
cmp edi, dword [esi + 8]
jb 0x427270
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esi + 0x18], 0
je 0x4272d0
mov ecx, esi
call fcn.00427188
mov eax, dword [esi + 0x18]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x42745b
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
push ebx
mov ebx, ecx
push esi
push edi
lea ecx, [ebx + 4]
call fcn.00426bf6
lea ecx, [ebx + 0x10]
call fcn.00426bf6
lea ecx, [ebx + 0x1c]
call fcn.00426bf6
push 0xffffffffffffffff
push dword [ebp + 8]
xor edi, edi
lea ecx, [ebx + 4]
mov dword [ebx + 0x48], edi
call fcn.00426d0e
lea eax, [ebx + 0x40]
push eax
lea eax, [ebx + 0x38]
push eax
lea eax, [ebx + 0x30]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x42754b
mov esi, 0x104
lea eax, [ebp - 0x220]
push esi
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebx + 0x28]
push eax
push esi
lea eax, [ebp - 0x118]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x42754b
push 0xffffffffffffffff
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebx + 0x10]
call fcn.00426d0e
push 0xffffffffffffffff
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebx + 0x1c]
call fcn.00426d0e
push esi
lea eax, [ebp - 0x328]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push edi
push edi
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x328]
push eax
call fcn.00441bce
push edi
push edi
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.00441bce
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.004418dd
add esp, 0x30
test eax, eax
jne 0x427553
or dword [ebx + 0x48], 1
jmp 0x427553
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4275dd
Capabilities:
Get disk information

Disassembly:
mov eax, 0x47491f
call fcn.00473e04
sub esp, 0x18
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esi + 0xc], ebx
call fcn.004275b2
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov edi, eax
mov dword [ebp - 0x10], edi
test edi, edi
je 0x427723
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
push edi
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], ebx
call fcn.00426c20
mov eax, dword [ebp - 0x24]
push eax
push edi
mov dword [ebp - 0x20], edi
mov byte [eax + edi], bl
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
je 0x427719
cmp dword [ebp - 0x10], ebx
mov edi, 0x48086e
cmovne edi, dword [ebp - 0x24]
jmp 0x427667
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x427656
inc dword [esi + 8]
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42765b
sub ecx, edx
inc edi
add edi, ecx
cmp byte [edi], 0
jne 0x427647
mov edi, dword [esi + 8]
test edi, edi
je 0x427719
xor ecx, ecx
mov eax, edi
push 0x50
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.0043d6b0
pop ecx
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x4276c5
push fcn.004277a7
push 0x42778a
push edi
mov dword [eax], edi
add eax, 4
push 0x50
push eax
mov dword [ebp - 0x14], eax
call fcn.00441b6c
mov eax, dword [ebp - 0x14]
jmp 0x4276c7
mov eax, ebx
mov byte [ebp - 4], bl
mov edi, 0x48086e
cmp dword [ebp - 0x10], 0
mov dword [esi + 4], eax
cmovne edi, dword [ebp - 0x24]
cmp byte [edi], 0
je 0x427719
mov dword [ebp - 0x10], ebx
cmp ebx, dword [esi + 8]
jae 0x427719
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x427704
mov ecx, dword [ebp - 0x10]
add ecx, dword [esi + 4]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
inc ebx
add dword [ebp - 0x10], 0x50
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x427709
sub ecx, edx
inc edi
add edi, ecx
cmp byte [edi], al
jne 0x4276e2
lea ecx, [ebp - 0x24]
call fcn.00426bf6
jmp 0x42772c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4328de
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4752e9
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push esi
mov esi, ecx
push edi
mov ecx, dword [esi + 0x58]
cmp dword [ecx + 0x14], 0x10
jb 0x43290e
mov eax, dword [ecx]
jmp 0x432910
mov eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 0x34]
mov dword [esp + 0x14], eax
lea eax, [ecx + 0x38]
cmp dword [eax + 0x14], 0x10
jb 0x432926
mov eax, dword [eax]
mov dword [esp + 0x18], eax
lea edx, [esp + 0x10]
mov eax, dword [ecx + 0x50]
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + 0x54]
mov dword [esp + 0x20], eax
lea eax, [ecx + 0x58]
mov ecx, dword [esi + 0x5c]
mov dword [esp + 0x24], eax
push 1
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esi + 0x60], eax
lea edi, [esi + 0x20]
mov eax, dword [esi + 0x58]
xor ebx, ebx
add eax, 0x18
cmp edi, eax
je 0x43296b
push 0xffffffffffffffff
push ebx
push eax
mov ecx, edi
call fcn.004080f2
cmp dword [esi + 0x60], ebx
je 0x432a9d
push 0x48086e
lea ecx, [esp + 0x44]
call fcn.004074b1
mov dword [esp + 0x7c], ebx
lea ecx, [esp + 0x28]
mov eax, dword [esi + 0x58]
add eax, 0x38
push eax
call fcn.0040748b
sub esp, 0x18
mov byte [esp + 0x94], 1
mov ecx, esp
push edi
call fcn.0040748b
mov dword [esp + 0x84], 0xf
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
mov byte [esp + 0x94], 2
lea eax, [esp + 0x58]
push dword [esi + 0x54]
mov ecx, dword [esi + 0x60]
lea edx, [esp + 0x28]
push eax
lea eax, [esp + 0x78]
push eax
call fcn.0043248d
add esp, 0x24
movzx ebx, ax
lea ecx, [esp + 0x58]
mov byte [esp + 0x7c], 1
push 0
push 1
call fcn.00408186
test ebx, 0x8000
jne 0x432a7a
cmp dword [esp + 0x3c], 0x10
lea eax, [esp + 0x28]
push dword [esp + 0x38]
cmovae eax, dword [esp + 0x2c]
push eax
push dword [esp + 0x58]
push ecx
lea ecx, [esp + 0x50]
call fcn.0042a247
test eax, eax
je 0x432a7e
mov eax, 0x8302
mov word [esi + 0x48], ax
call fcn.00432429
mov ecx, dword [eax]
test ecx, ecx
je 0x432a55
cmp dword [edi + 0x14], 0x10
jb 0x432a41
mov edi, dword [edi]
movzx eax, word [esi + 0x48]
mov edx, dword [ecx]
push edi
push eax
push 0xb3
push 0x486008
call dword [edx]
push dword [esi + 0x60]
call fcn.0043d685
pop ecx
push 0
push 1
lea ecx, [esp + 0x30]
call fcn.00408186
push 0
push 1
lea ecx, [esp + 0x48]
call fcn.00408186
jmp 0x432ac3
mov word [esi + 0x48], bx
push 0
push 1
lea ecx, [esp + 0x30]
call fcn.00408186
or dword [esp + 0x7c], 0xffffffff
lea ecx, [esp + 0x40]
push 0
push 1
call fcn.00408186
movzx eax, word [esi + 0x48]
mov ecx, 0x8004
cmp ax, cx
jne 0x432aaf
mov byte [esi + 4], 1
mov ecx, dword [esi + 0x5c]
shr eax, 0xf
and al, 1
movzx eax, al
mov edx, dword [ecx]
push eax
push dword [esi + 0x60]
call dword [edx + 8]
mov ecx, dword [esp + 0x74]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4343ba
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x4754ad
call fcn.00473e04
sub esp, 0xd4
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x3c], 0x4861ec
xor ebx, ebx
mov dword [ebp - 0x38], vtable.DataBuffer.0
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov eax, dword [esi]
mov edx, dword [esi + 8]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x2c], ebx
push 0x48095c
push eax
mov dword [ebp - 0x20], edx
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
push eax
push 0xffffffffffffffff
push 0x4341c1
push 0x4341e7
push 0x4341d4
push 0x4341a7
push 0x434202
push 0x4341a2
push 0x434199
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.004010a8
push dword [esi + 4]
mov ebx, eax
lea eax, [ebp - 0x5c]
push 0
push 0x434246
push 0
push 0x48086e
push eax
push ebx
call fcn.00402137
mov esi, eax
add esp, 0x4c
test esi, esi
jne 0x4344a3
push 0x7f
push eax
mov byte [ebp - 0xdc], al
lea eax, [ebp - 0xdb]
push eax
call fcn.00443c10
mov ecx, dword [ebp - 0x1c]
call fcn.0043432e
push eax
push ecx
lea eax, [ebp - 0xdc]
push str.FDICopy_failed_with_error_code__d:__s_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
lea eax, [ebp - 0xdc]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push ebx
call fcn.00401bf1
pop ecx
xor ecx, ecx
mov dword [ebp - 0x3c], 0x4861ec
test esi, esi
mov eax, 0x8002
cmovne eax, ecx
movzx esi, ax
and dword [ebp - 4], ecx
mov ecx, dword [ebp - 0x28]
push 0
mov edx, dword [ecx]
call dword [edx + 0xc]
lea ecx, [ebp - 0x38]
call fcn.00434640
mov ecx, dword [ebp - 0xc]
mov ax, si
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x436021
Capabilities:
Check http status code
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
push 5
mov ebx, 0x80ff
pop eax
mov dword [edi + 0x28], esi
mov dword [edi + 0x24], esi
push esi
push esi
push esi
push esi
add eax, 0xffff
push str.QDownload_Agent
mov dword [ebp - 0x14], eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [edi + 4], eax
test eax, eax
je 0x4361cc
push 4
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0x3180
push ecx
push 0x1f
push eax
call dword [sym.imp.WININET.dll_InternetSetOptionA]
push 4
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x32
push eax
push 0x49
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionA]
lea esi, [edi + 0xc]
cmp dword [esi + 0x14], 0x10
jb 0x436097
mov eax, dword [esi]
jmp 0x436099
mov eax, esi
xor ecx, ecx
push ecx
push 0x4400300
push ecx
push ecx
push eax
push dword [edi + 4]
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov dword [edi + 8], eax
cmp eax, 0xffffffff
je 0x436156
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
push 0
push ecx
lea ecx, [ebp - 4]
mov dword [ebp - 0x10], 4
push ecx
push 0x20000013
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x436119
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x24], eax
mov eax, 0xc000
or ax, word [edi + 0x24]
movzx ebx, ax
call fcn.00432429
mov edx, dword [eax]
test edx, edx
je 0x436119
cmp dword [esi + 0x14], 0x10
jb 0x436108
mov ecx, dword [esi]
jmp 0x43610a
mov ecx, esi
mov eax, dword [edx]
push ecx
push ebx
push 0x3a
push str.download_stream.cpp
mov ecx, edx
call dword [eax]
mov eax, dword [ebp - 4]
mov dword [edi + 0x28], eax
cmp eax, 0xc8
jb 0x436131
cmp eax, 0x12c
jb 0x4361c3
mov eax, 0xc000
or ax, word [edi + 0x28]
movzx ebx, ax
call fcn.00432429
mov ecx, dword [eax]
test ecx, ecx
je 0x4361a1
cmp dword [esi + 0x14], 0x10
jb 0x436150
mov esi, dword [esi]
push esi
push ebx
push 0x70
jmp 0x436198
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x436181
or eax, 0xc000
movzx ebx, ax
call fcn.00432429
mov ecx, dword [eax]
test ecx, ecx
je 0x4361a1
cmp dword [esi + 0x14], 0x10
jb 0x43617b
mov esi, dword [esi]
push esi
push ebx
push 0x79
jmp 0x436198
call fcn.00432429
mov ecx, dword [eax]
test ecx, ecx
je 0x4361a1
cmp dword [esi + 0x14], 0x10
jb 0x436194
mov esi, dword [esi]
push esi
push ebx
push 0x7e
mov eax, dword [ecx]
push str.download_stream.cpp
call dword [eax]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
test ebx, 0x8000
je 0x4361c7
mov eax, dword [ebp - 0x14]
test ax, ax
je 0x4361c7
xor esi, esi
jmp 0x43603c
xor eax, eax
jmp 0x436200
mov ax, bx
jmp 0x436200
call dword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0xc000
movzx esi, ax
call fcn.00432429
mov ecx, dword [eax]
test ecx, ecx
je 0x4361fd
lea eax, [edi + 0xc]
cmp dword [eax + 0x14], 0x10
jb 0x4361f0
mov eax, dword [eax]
mov edx, dword [ecx]
push eax
push esi
push 0x50
push str.download_stream.cpp
call dword [edx]
mov ax, si
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x436207
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push eax
push dword [ebp + 0xc]
mov esi, ecx
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x436261
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0xc000
movzx edi, ax
call fcn.00432429
mov edx, dword [eax]
test edx, edx
je 0x436260
lea ecx, [esi + 0xc]
cmp dword [ecx + 0x14], 0x10
jb 0x43624e
mov ecx, dword [ecx]
mov eax, dword [edx]
push ecx
push edi
push 0x95
push str.download_stream.cpp
mov ecx, edx
call dword [eax]
pop edi
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x43626b
Capabilities:
Hash data using sha1

Disassembly:
xor eax, eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov dword [ecx + 0x10], 0xc3d2e1f0
mov dword [ecx + 0x60], eax
mov dword [ecx + 0x64], eax
mov eax, ecx
ret
Function at 0x436376
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x14], esi
xor edi, edi
lea edx, [esi + 0x21]
movzx ecx, byte [edx - 1]
movzx eax, byte [edx]
lea edx, [edx + 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 2]
shl ecx, 8
or ecx, eax
mov dword [ebp + edi*4 - 0x154], ecx
inc edi
cmp edi, 0x10
jl 0x43638c
push 0x40
lea ecx, [ebp - 0x14c]
pop edx
mov eax, dword [ecx + 0x2c]
xor eax, dword [ecx + 0x18]
xor eax, dword [ecx - 8]
xor eax, dword [ecx]
lea ecx, [ecx + 4]
rol eax, 1
mov dword [ecx + 0x34], eax
dec edx
jne 0x4363c3
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov edi, dword [esi + 8]
and dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x10]
mov esi, dword [ebp - 4]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0xc]
mov ecx, ebx
not ecx
rol edx, 5
and ecx, esi
mov eax, edi
and eax, ebx
or ecx, eax
mov eax, dword [ebp - 0x10]
add edx, ecx
mov ecx, dword [ebp - 8]
add ecx, 0x5a827999
mov dword [ebp - 8], esi
mov esi, edi
mov edi, ebx
add edx, dword [ebp + eax*4 - 0x154]
mov ebx, dword [ebp - 0xc]
add edx, ecx
ror edi, 2
inc eax
push 0x14
pop ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], eax
cmp eax, ecx
jl 0x4363f6
mov dword [ebp - 4], esi
mov eax, esi
xor eax, edi
rol edx, 5
xor eax, ebx
add edx, eax
mov eax, dword [ebp - 8]
add edx, dword [ebp + ecx*4 - 0x154]
add eax, 0x6ed9eba1
add edx, eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, edi
mov edi, ebx
mov dword [ebp - 4], eax
mov ebx, dword [ebp - 0xc]
ror edi, 2
inc ecx
mov dword [ebp - 0xc], edx
cmp ecx, 0x28
jl 0x43643f
push 0x28
pop esi
mov ecx, edi
rol edx, 5
or ecx, ebx
add edx, 0x8f1bbcdc
add edx, dword [ebp - 8]
and ecx, eax
mov eax, edi
and eax, ebx
or ecx, eax
mov eax, dword [ebp - 4]
add ecx, dword [ebp + esi*4 - 0x154]
mov dword [ebp - 8], eax
add edx, ecx
mov eax, edi
mov edi, ebx
mov ebx, dword [ebp - 0xc]
ror edi, 2
inc esi
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], edx
cmp esi, 0x3c
jl 0x436478
mov esi, dword [ebp - 0x14]
push 0x3c
pop ecx
xor eax, edi
rol edx, 5
add edx, dword [ebp - 8]
xor eax, ebx
add eax, 0xca62c1d6
add eax, dword [ebp + ecx*4 - 0x154]
add edx, eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, edi
mov edi, ebx
mov dword [ebp - 4], eax
mov ebx, dword [ebp - 0xc]
ror edi, 2
inc ecx
mov dword [ebp - 0xc], edx
cmp ecx, 0x50
jl 0x4364bb
add dword [esi + 0xc], eax
add dword [esi + 8], edi
add dword [esi + 4], ebx
add dword [esi], edx
mov eax, dword [ebp - 8]
add dword [esi + 0x10], eax
and dword [esi + 0x1c], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret