joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f3c0
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x45e4b8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x100000
mov esi, ecx
call fcn.0042a02c
mov ecx, eax
add esp, 4
mov dword [ebp - 0x2c], ecx
test ecx, ecx
jne 0x40f412
mov eax, dword [esi + 8]
push 2
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esi + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
mov eax, dword [esi]
push esi
call dword [eax + 4]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428e73
mov esp, ebp
pop ebp
ret
push ebx
push edi
mov eax, dword [esi + 0xc]
cmp eax, 2
je 0x40f50f
push 0
lea eax, [ebp - 0x10]
push eax
push 0x100000
push ecx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40f50b
mov edi, dword [ebp - 0x10]
test edi, edi
je 0x40f507
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 0xc]
xor bl, bl
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x40f4e8
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x8004
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x40f4c1
push 0
push edi
mov edi, dword [ebp - 0x2c]
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x40f4b6
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x14
push eax
lea eax, [ebp - 0x28]
push eax
push 2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
setne bl
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x40f4c4
mov edi, dword [ebp - 0x2c]
push 0
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test bl, bl
je 0x40f4eb
mov eax, dword [esi + 8]
lea edx, [ebp - 0x28]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov ecx, dword [ebp - 0x2c]
jmp 0x40f414
mov edi, dword [ebp - 0x2c]
mov eax, dword [esi + 8]
push 2
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esi + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
mov eax, dword [esi]
push esi
call dword [eax + 4]
jmp 0x40f52c
push 0
jmp 0x40f511
push 2
jmp 0x40f511
push 1
mov eax, dword [esi + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esi + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov edi, dword [ebp - 0x2c]
push edi
call fcn.00429c25
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop ebx
pop esi
call fcn.00428e73
mov esp, ebp
pop ebp
ret
Function at 0x40f9d0
Capabilities:
Create http request
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x45e4b8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, 0x100
mov ebx, ecx
push edi
push esi
mov dword [ebp - 0xc], esi
call fcn.0042a02c
mov edi, eax
add esp, 4
test edi, edi
je 0x40fa36
lea esp, [esp]
lea eax, [ebp - 0xc]
push eax
push edi
push 0
call dword [sym.imp.urlmon.dll_ObtainUserAgentString]
mov esi, eax
test esi, esi
jns 0x40fa8d
push edi
call fcn.00429c25
add esp, 4
cmp esi, 0x8007000e
jne 0x40fa63
mov esi, dword [ebp - 0xc]
push esi
call fcn.0042a02c
mov edi, eax
add esp, 4
test edi, edi
jne 0x40fa00
mov eax, dword [ebx + 0x68]
push esi
push str.malloc__u__failed.
push str.HttpTask::CreateSession
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
add esp, 0x10
mov eax, 0x8007000e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428e73
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x68]
push esi
push str.ObtailUserAgentString_failed:_0x_08X.
push str.HttpTask::CreateSession
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428e73
mov esp, ebp
pop ebp
ret
push 0x10000000
push 0
push 0
push 0
push edi
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebx + 0x4c], eax
test eax, eax
je 0x40fafd
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionA]
lea ecx, [ebp - 8]
push 4
push ecx
push 2
push eax
mov dword [ebp - 8], 0xea60
call esi
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x7530
push eax
push 5
push dword [ebx + 0x4c]
call esi
push 4
lea eax, [ebp - 8]
push eax
push 6
push dword [ebx + 0x4c]
call esi
push edi
xor esi, esi
call fcn.00429c25
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428e73
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebx + 0x68]
push esi
push str.InternetOpenA_failed:__u.
push str.HttpTask::CreateSession
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
add esp, 0x10
test esi, esi
jle 0x40fb29
movzx esi, si
or esi, 0x80070000
push edi
call fcn.00429c25
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00428e73
mov esp, ebp
pop ebp
ret
Function at 0x40ff60
Capabilities:
Query remote server for available data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov ebx, dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
push esi
push edi
mov esi, ecx
push 0
push 0
lea edi, [esi + 0x58]
push edi
push dword [esi + 0x54]
call ebx
test eax, eax
je 0x40ff9c
mov ecx, esi
call fcn.004101b0
test al, al
je 0x40ffd9
push 0
push 0
push edi
push dword [esi + 0x54]
call ebx
test eax, eax
jne 0x40ff83
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x3e5
je 0x40ffd9
mov ecx, dword [esi + 0x68]
push edi
push str.InternetQueryDataAvailable_failed:__u.
push str.HttpTask::QueryAvailable
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
add esp, 0x10
test edi, edi
jle 0x40ffd0
movzx edi, di
or edi, 0x80070000
push edi
lea ecx, [esi + 4]
call fcn.00410a30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4101b0
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4493e8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x45e4b8]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
push esi
push edi
mov eax, dword [0x45e4b8]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esi + 0x58]
test edi, edi
jne 0x41025f
mov eax, dword [esi + 0x68]
push str.Complete.
push str.HttpTask::ProcessData
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
add esp, 0xc
add esi, 4
mov edx, SysReAllocStringLen
mov eax, dword [esi]
mov ecx, eax
or ecx, edx
lock cmpxchg dword [esi], ecx
jne 0x410210
mov ecx, eax
test ecx, ecx
js 0x410258
test esi, esi
je 0x410229
lea eax, [esi - 4]
jmp 0x41022b
xor eax, eax
mov dword [eax + 0x5c], 0
test ecx, ecx
jne 0x410258
test esi, esi
je 0x41024d
push dword [esi + 0x50]
add esi, 0xfffffffc
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor al, al
jmp 0x410368
xor esi, esi
push dword [esi + 0x54]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor al, al
jmp 0x410368
xorps xmm0, xmm0
movq qword [esp + 0x14], xmm0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
push 0
mov dword [esp + 0x34], 0
call fcn.00429c25
push edi
call fcn.0042a02c
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4102c9
push dword [esi + 0x58]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x68]
push str.Buffer::SetSize__u__failed.
push str.HttpTask::ProcessData
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
add esp, 0x10
lea ecx, [esi + 4]
push 0x8007000e
call fcn.00410a30
xor bl, bl
jmp 0x41035a
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], edi
push ecx
push edi
push eax
push dword [esi + 0x54]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x41031a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 0x68]
mov edi, eax
push edi
push str.InternetReadFile_failed:__u.
push str.HttpTask::ProcessData
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
add esp, 0x10
test edi, edi
jle 0x41030d
movzx edi, di
or edi, 0x80070000
push edi
lea ecx, [esi + 4]
call fcn.00410a30
xor bl, bl
jmp 0x41035a
mov eax, dword [esp + 0x1c]
cmp eax, dword [esi + 0x58]
je 0x41034a
mov eax, dword [esi + 0x68]
push str.InternetReadFile_doesnt_read_all_data.
push str.HttpTask::ProcessData
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
add esp, 0xc
lea ecx, [esi + 4]
push 0x80072ee4
call fcn.00410a30
xor bl, bl
jmp 0x41035a
mov eax, dword [esi + 0x48]
lea edx, [esp + 0x14]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov bl, 1
push dword [esp + 0x14]
call fcn.00429c25
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.00428e73
mov esp, ebp
pop ebp
ret
Function at 0x4128a0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x449568
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x45e4b8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34], edx
cmp dword [ecx + 0x14], 8
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
jb 0x4128dc
mov ecx, dword [ecx]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x412903
xor al, al
jmp 0x4129d2
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
call fcn.004250ec
add esp, 4
mov dword [ebp - 0x18], 0
mov edi, eax
lea eax, [ebp - 0x18]
push 0
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xf
xor eax, eax
mov dword [ebp - 0x1c], 7
push str._v1_reportError
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x20], 0
mov word [ebp - 0x30], ax
call fcn.00402490
push 7
push str._token
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0
call fcn.00402c40
push 0xffffffffffffffff
push 0
push dword [ebp - 0x34]
mov ecx, eax
call fcn.00402da0
push 0xb
push str.machineId
lea ecx, [ebp - 0x30]
call fcn.00402c40
push 0xffffffffffffffff
push 0
push dword [ebp - 0x38]
mov ecx, eax
call fcn.00402da0
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
push 0x455200
cmovae eax, dword [ebp - 0x30]
mov edx, esi
push eax
mov ecx, edi
call fcn.00412810
push edi
mov bl, al
call fcn.0042980d
add esp, 0xc
cmp dword [ebp - 0x1c], 8
jb 0x4129d0
push dword [ebp - 0x30]
call fcn.00429834
add esp, 4
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 - 0x14]
xor ecx, ebp
call fcn.00428e73
mov esp, ebp
pop ebp
ret
Function at 0x413110
Capabilities:
Prepare http request
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x449631
mov eax, dword fs:[0]
push eax
sub esp, 0x15c
mov eax, dword [0x45e4b8]
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 eax, dword [ebp + 0x14]
xor bl, bl
mov dword [ebp - 0x160], eax
call fcn.00412550
mov dword [ebp - 0x158], eax
test eax, eax
je 0x41334b
push 0
push 0x50
push str.download.wenya.cn
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [ebp - 0x164], eax
test eax, eax
je 0x413343
push 0x100
push 0
push 0
push 0
push 0x451e08
push 0x451e00
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov edi, eax
test edi, edi
je 0x41333b
push 0
push 0
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x413338
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x413338
xorps xmm0, xmm0
mov dword [ebp - 0x114], 0
xor ebx, ebx
movq qword [ebp - 0x11c], xmm0
xor esi, esi
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 0x118], esi
mov dword [ebp - 0x114], ebx
lea eax, [ebp - 0x150]
mov dword [ebp - 4], esi
push eax
push 0x100
lea eax, [ebp - 0x110]
mov dword [ebp - 0x150], esi
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x41327e
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpReadData]
lea ebx, [ebx]
mov eax, dword [ebp - 0x150]
test eax, eax
je 0x413278
push dword [ebp - 0x158]
lea ecx, [ebp - 0x110]
add eax, ecx
push eax
mov eax, ecx
lea ecx, [ebp - 0x11c]
push eax
push esi
call fcn.00415680
lea eax, [ebp - 0x150]
push eax
push 0x100
lea eax, [ebp - 0x110]
push eax
push edi
call ebx
mov esi, dword [ebp - 0x118]
test eax, eax
jne 0x413230
mov ebx, dword [ebp - 0x11c]
sub esi, ebx
lea ecx, [ebp - 0x134]
push esi
push ebx
call fcn.00410a00
mov byte [ebp - 4], 1
lea eax, [ebp - 0x15c]
cmp dword [ebp - 0x120], 0x10
lea esi, [ebp - 0x134]
push eax
cmovae esi, dword [ebp - 0x134]
lea ecx, [ebp - 0x134]
call fcn.0040e490
push dword [ebp - 0x15c]
xor ecx, ecx
mov dword [ebp - 0x138], 7
mov word [ebp - 0x14c], cx
lea ecx, [ebp - 0x14c]
push dword [eax]
mov dword [ebp - 0x13c], 0
push esi
call fcn.004157c0
mov ecx, dword [ebp - 0x160]
lea eax, [ebp - 0x14c]
push 0xffffffffffffffff
push 0
push eax
mov byte [ebp - 4], 2
call fcn.00401f30
lea ecx, [ebp - 0x14c]
mov byte [ebp - 0x151], 1
call fcn.00401cf0
lea ecx, [ebp - 0x134]
call fcn.00401b40
test ebx, ebx
je 0x41332c
push ebx
call fcn.00429834
add esp, 4
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov bl, byte [ebp - 0x151]
push edi
call esi
push dword [ebp - 0x164]
call esi
push dword [ebp - 0x158]
call esi
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.00428e73
mov esp, ebp
pop ebp
ret
Function at 0x415a50
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x449914
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x45e4b8]
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 + 4], 1
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x1c], eax
xor eax, eax
mov dword [esi], vtable.downloadmanagercore::HtmlExternal.0
mov dword [esi + 0x34], 7
mov dword [esi + 0x30], 0
mov word [esi + 0x20], ax
mov dword [esi + 0x4c], 7
mov dword [esi + 0x48], eax
mov word [esi + 0x38], ax
mov dword [esi + 0x64], 7
mov dword [esi + 0x60], eax
mov word [esi + 0x50], ax
mov dword [esi + 0x7c], 7
mov dword [esi + 0x78], eax
mov word [esi + 0x68], ax
mov byte [ebp - 4], 4
mov byte [esi + 0x80], al
lea eax, [esi + 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 1
mov ecx, esi
call fcn.00415cc0
push 0
mov ecx, esi
call fcn.00415e00
push ecx
mov ecx, esi
call fcn.00416290
lea ecx, [esi + 0x68]
call fcn.00418430
test eax, eax
je 0x415b38
lea ecx, [esi + 0x68]
call fcn.004182f0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x416060
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44993b
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x45e4b8]
xor eax, esp
mov dword [esp + 0x2c], eax
push esi
push edi
mov eax, dword [0x45e4b8]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov eax, ecx
mov dword [esp + 0x14], eax
mov edi, dword [ebp + 8]
lea esi, [eax + 0x38]
push 0xffffffffffffffff
push 0
add eax, 0x68
mov dword [esp + 0x28], edi
push eax
mov ecx, esi
mov dword [esp + 0x28], esi
call fcn.00401f30
cmp dword [edi + 0x14], 8
jb 0x4160c3
mov eax, dword [edi]
jmp 0x4160c5
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov edx, eax
cmp word [edx], 0
jne 0x4160d8
xor ecx, ecx
jmp 0x4160ef
mov ecx, edx
lea edi, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4160e0
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.00402c40
mov dword [esp + 0x10], 0xa
cmp dword [esi + 0x14], 8
xorps xmm0, xmm0
mov eax, dword [esp + 0x14]
movq qword [esp + 0x2c], xmm0
mov dword [esp + 0x34], 0
mov dword [esp + 0x2c], vtable.downloadmanagercore::DownloadCallback.0
mov byte [esp + 0x30], 0
mov dword [esp + 0x34], eax
jb 0x41612e
mov esi, dword [esi]
mov ecx, dword [esp + 0x20]
call fcn.00402220
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push esi
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [esp + 0x24], edi
cmp edi, 0xffffffff
jne 0x41617d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x416209
movzx edi, di
or edi, 0x80070000
jmp 0x416209
push 0x18
call fcn.00429884
mov esi, eax
add esp, 4
mov dword [esp + 0x28], esi
mov dword [esp + 0x48], 0
test esi, esi
je 0x4161d1
xorps xmm0, xmm0
lea eax, [esp + 0x2c]
movdqu xmmword [esi], xmm0
push eax
movq qword [esi + 0x10], xmm0
mov dword [esi], vtable.BSCHolder.0
mov dword [esi + 4], 1
mov dword [esi + 8], reloc.OLEAUT32.dll_VariantCopyInd
mov byte [esi + 0xc], 0
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x30]
call dword [eax + 4]
jmp 0x4161d3
xor esi, esi
push esi
push 0
push dword [esp + 0x20]
mov dword [esp + 0x54], 0xffffffff
push 0
call dword [sym.imp.urlmon.dll_URLOpenPullStreamW]
mov edi, eax
test edi, edi
js 0x4161f9
mov ecx, esi
call fcn.004209f0
mov edi, eax
mov eax, dword [esi]
push esi
call dword [eax + 8]
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x14]
push edi
call fcn.004176b0
mov edi, eax
cmp edi, 4
jne 0x416246
cmp byte [esp + 0x30], 0
je 0x416226
lea esi, [eax + 6]
jmp 0x41622b
mov esi, dword [esp + 0x10]
dec esi
push 0x3e8
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_Sleep]
test esi, esi
mov esi, dword [esp + 0x1c]
jg 0x416100
mov eax, edi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00428e73
mov esp, ebp
pop ebp
ret 4
Function at 0x4176b0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x45e4b8]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
push esi
push str.TransferDownloadError_HRESULT:__x
push dword [edi + 0x1c]
call fcn.00417ba0
add esp, 0xc
test esi, esi
jne 0x4176f0
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00428e73
mov esp, ebp
pop ebp
ret 4
cmp esi, 0x800c0006
jne 0x41770f
mov eax, 2
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00428e73
mov esp, ebp
pop ebp
ret 4
cmp esi, 0x800c0005
jne 0x41772e
mov eax, 4
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00428e73
mov esp, ebp
pop ebp
ret 4
cmp esi, 1
je 0x417717
cmp esi, 0x800c0008
jne 0x417778
cmp dword [edi + 0x7c], 8
lea eax, [edi + 0x68]
jb 0x417746
mov eax, dword [eax]
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x417717
mov eax, dword [ebp - 0x14]
or eax, dword [ebp - 0x10]
jne 0x417717
mov eax, 3
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00428e73
mov esp, ebp
pop ebp
ret 4
cmp esi, 0x800c000b
je 0x417717
mov ecx, dword [ebp - 8]
xor eax, eax
cmp esi, 0x80070070
pop edi
sete al
xor ecx, ebp
pop esi
lea eax, [eax*2 + 1]
call fcn.00428e73
mov esp, ebp
pop ebp
ret 4
Function at 0x417e60
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x45e4b8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
lea edx, [ebp - 8]
call fcn.00417ce0
mov ebx, eax
test ebx, ebx
js 0x417f44
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00417dc0
mov ebx, eax
add esp, 4
test ebx, ebx
js 0x417f28
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
jb 0x417ead
mov esi, dword [esi]
push eax
push esi
mov esi, dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
call esi
cmp dword [edi + 0x14], 8
mov ebx, eax
mov eax, 8
mov dword [ebp - 0x10], ebx
mov word [ebp - 0x20], ax
mov eax, dword [edi + 0x10]
jb 0x417ed0
mov edi, dword [edi]
push eax
push edi
call esi
mov edx, dword [ebp - 0xc]
sub esp, 0x10
mov ecx, esp
xorps xmm0, xmm0
sub esp, 0x10
mov edi, eax
mov dword [ebp - 0x18], edi
mov esi, dword [edx]
movdqu xmmword [ecx], xmm0
mov ecx, esp
sub esp, 0x10
mov eax, esp
sub esp, 0x10
movdqu xmmword [ecx], xmm0
movdqu xmmword [eax], xmm0
mov eax, esp
movdqu xmm0, xmmword [ebp - 0x20]
push ebx
push edx
movdqu xmmword [eax], xmm0
call dword [esi + 0x7c]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ebx, eax
call esi
push edi
call esi
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428e73
mov esp, ebp
pop ebp
ret
push 6
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
cmp dword [edi + 0x14], 8
jb 0x417f56
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x417f5e
mov esi, dword [esi]
push 1
push 0
push edi
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ecx, ecx
cmp eax, 0x20
cmovg ebx, ecx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00428e73
mov esp, ebp
pop ebp
ret

Function at 0x417fa0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x45e4b8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], 0
push eax
push 0
push 0
push 0x10
push 0
mov esi, edx
mov edi, ecx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp dword [esi + 0x14], 8
jb 0x417fe0
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
cmp word [ebp - 0x20c], ax
jne 0x418015
xor ecx, ecx
jmp 0x41802f
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418020
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.00402490
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00428e73
mov esp, ebp
pop ebp
ret
Function at 0x418050
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x45e4b8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x210]
mov edi, edx
push eax
push 0x451a3c
push 1
push 0
push 0x451c3c
mov esi, ecx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x41812c
cmp dword [esi + 0x14], 8
jb 0x418096
mov edx, dword [esi]
jmp 0x418098
mov edx, esi
mov eax, dword [ebp - 0x210]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
cmp dword [esi + 0x14], 8
jb 0x4180ad
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0042b01a
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword [ebp - 0x210]
lea edx, [ebp - 0x20c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x210]
lea edx, [ebp - 0x214]
push edx
push 0x451c4c
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x418120
cmp dword [edi + 0x14], 8
jb 0x418105
mov edi, dword [edi]
mov eax, dword [ebp - 0x214]
push 1
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x214]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x210]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00428e73
mov esp, ebp
pop ebp
ret