joyce8/EMBER2024-capa huggingface dataset:
Function at 0x499d30
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x545668
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push esi
push edi
mov eax, dword [0x580124]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x1c], ebx
mov edi, ecx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], 0
call fcn.00408090
mov ecx, eax
test ecx, ecx
jne 0x499d7e
push 0x80004005
call fcn.00407be0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x499d93
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x499d95
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x499e6b
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x499e6b
xor ecx, ecx
lea edx, [ebp - 0x58]
mov dword [ebp - 0x18], ecx
xor esi, esi
mov ecx, dword [ebp - 0x1c]
xor ebx, ebx
mov dword [ebp - 0x10], esi
mov ecx, dword [ecx]
call fcn.004984e0
test eax, eax
je 0x499df8
mov eax, dword [ebp - 0x50]
mov esi, eax
movzx eax, ax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x4c]
mov ebx, eax
movzx eax, ax
shr esi, 0x10
shr ebx, 0x10
mov dword [ebp - 0x18], eax
jmp 0x499dfa
xor eax, eax
push eax
push ebx
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push esi
push str._d._d._d._d
push eax
call fcn.004232b0
mov eax, dword [ebp + 8]
add esp, 0x18
test eax, eax
je 0x499e1a
mov dword [eax], esi
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x499e26
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x499e2f
mov dword [eax], ebx
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x499e3b
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
push eax
call fcn.00406f70
add esp, 4
lea ecx, [ebp - 0x14]
add eax, 0x10
mov dword [edi], eax
call fcn.00407b80
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
add esi, 0xfffffff0
push esi
call fcn.00406f70
add eax, 0x10
mov dword [ebp - 4], 0xffffffff
mov dword [edi], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x499ecf
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x499ecd
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x499ecd
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call edx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x499ef0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54569b
mov eax, dword fs:[0]
push eax
sub esp, 0x820
mov eax, dword [0x580124]
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 eax, dword [esi]
cmp dword [eax - 0xc], 0
jl 0x499f43
push 0x564d00
push eax
call fcn.004e8c3a
add esp, 8
test eax, eax
je 0x499f43
sub eax, dword [esi]
sar eax, 1
cmp eax, 1
je 0x499f72
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jl 0x49a114
push 0x5656fc
push eax
call fcn.004e8c3a
add esp, 8
test eax, eax
je 0x49a114
sub eax, dword [esi]
sar eax, 1
cmp eax, 1
jne 0x49a114
push 2
lea eax, [ebp - 0x828]
mov ecx, esi
push eax
call fcn.00415e40
lea eax, [ebp - 0x828]
mov dword [ebp - 4], 0
push eax
mov edx, 0x5656f0
lea ecx, [ebp - 0x824]
call fcn.0046e0e0
push 0x800
lea eax, [ebp - 0x810]
mov dword [ebp - 0x82c], 0
push 0
push eax
call fcn.004e8ae0
add esp, 0x10
push 0
push 0x80
push 3
push 0
push 1
push 0x20000
push dword [ebp - 0x824]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x49a038
push 0
lea eax, [ebp - 0x82c]
mov dword [ebp - 0x81c], 0
push eax
push 0x800
lea eax, [ebp - 0x810]
mov dword [ebp - 0x818], 0
push eax
push 0xc
lea eax, [ebp - 0x81c]
mov dword [ebp - 0x80c], 0x800
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x49a097
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
mov ecx, dword [ebp - 0x824]
or esi, 0xffffffff
add ecx, 0xfffffff0
mov eax, esi
lock xadd dword [ecx + 0xc], eax
dec eax
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
jg 0x49a0c9
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x820], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x49a0c1
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x820], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x49a0b7
push 0
push dword [edx + 4]
call ebx
jmp 0x49a0c9
mov eax, dword [ebp - 0x7f4]
xor edi, edi
cmp eax, 4
je 0x49a0a9
cmp eax, 7
jne 0x49a0ae
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x49a03a
mov ecx, edx
call dword [ebp - 0x820]
jmp 0x49a0c9
mov ecx, edx
call dword [ebp - 0x820]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x828]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], esi
dec esi
test esi, esi
jg 0x49a110
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x49a10c
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x49a10c
push 0
push dword [edx + 4]
call ebx
mov eax, edi
jmp 0x49a116
mov ecx, edx
call esi
mov eax, edi
jmp 0x49a116
xor eax, eax
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.004e4c11
mov esp, ebp
pop ebp
ret
Function at 0x49a750
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5457db
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x580124]
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 edi, ecx
mov dword [ebp - 0x21c], edi
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004e8ae0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov ebx, eax
test ebx, ebx
je 0x49a884
push dword [ebp - 0x220]
mov edx, dword [edi + 4]
push ecx
mov ecx, dword [edi]
call fcn.00448db0
mov eax, dword [edi]
lea esi, [ebp - 0x218]
add esp, 8
mov dword [edi + 4], eax
cmp word [ebp - 0x218], 0
je 0x49a87f
mov eax, esi
lea ecx, [ebp - 0x218]
sub eax, ecx
sar eax, 1
cmp eax, ebx
jae 0x49a87f
push esi
lea ecx, [ebp - 0x220]
call fcn.00407ab0
lea eax, [ebp - 0x220]
mov dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.00477f80
mov eax, dword [ebp - 0x220]
mov ecx, dword [eax - 0xc]
mov dword [ebp - 4], 0xffffffff
lea esi, [esi + ecx*2]
lea ecx, [eax - 0x10]
add esi, 2
or eax, 0xffffffff
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x49a875
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x49a86b
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x49a86b
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x49a86f
mov ecx, edx
call edi
mov edi, dword [ebp - 0x21c]
cmp word [esi], 0
jne 0x49a7e5
mov eax, 1
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.004e4c11
mov esp, ebp
pop ebp
ret
Function at 0x49a8a0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, ecx
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jl 0x49a8cc
push 0x5656fc
push eax
call fcn.004e8c3a
add esp, 8
test eax, eax
je 0x49a8cc
sub eax, dword [esi]
sar eax, 1
cmp eax, 1
je 0x49a8fb
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jl 0x49a987
push 0x564d00
push eax
call fcn.004e8c3a
add esp, 8
test eax, eax
je 0x49a987
sub eax, dword [esi]
sar eax, 1
cmp eax, 1
jne 0x49a987
push edi
xorps xmm0, xmm0
lea eax, [ebp - 4]
push 3
push eax
mov ecx, esi
movq qword [ebp - 0xc], xmm0
movq qword [ebp - 0x14], xmm0
call fcn.00415e40
push 0
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov edx, dword [ebp - 4]
mov edi, eax
add edx, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x49a966
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x49a98e
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x49a98e
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test edi, edi
pop edi
je 0x49a987
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x49a97d
mov eax, dword [ebp - 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
mov dword [ecx + 4], eax
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
call esi
jmp 0x49a966
Function at 0x49b190
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5458dd
mov eax, dword fs:[0]
push eax
sub esp, 0x1a0
mov eax, dword [0x580124]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x1a4], edi
push 0xc8
lea eax, [ebp - 0x1a0]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x1ac], edi
mov dword [ebp - 0x1a8], 0
call fcn.004e8ae0
push 0xc8
lea eax, [ebp - 0xd8]
push 0
push eax
call fcn.004e8ae0
add esp, 0x18
call fcn.00408090
mov ecx, eax
test ecx, ecx
jne 0x49b21c
push 0x80004005
call fcn.00407be0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x49b231
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x49b233
call edx
add eax, 0x10
mov dword [edi], eax
push 3
lea eax, [ebp - 0x1a4]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
mov dword [ebp - 0x1a8], 1
call fcn.00415e40
push 0xc8
lea eax, [ebp - 0xd8]
mov dword [ebp - 4], 1
mov esi, dword [ebp - 0x1a4]
push eax
push 0
push 0
push 0
push 0xc8
lea eax, [ebp - 0x1a0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x49b2be
lea ecx, [ebp - 0xd8]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49b2a0
sub ecx, edx
lea eax, [ebp - 0xd8]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.004078f0
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x49b2ff
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x49b2fd
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x49b2fd
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x49b2ff
call edx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e4c11
mov esp, ebp
pop ebp
ret
Function at 0x49d620
Capabilities:
Check for time delay via gettickcount
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
test ebx, ebx
jne 0x49d63e
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push edi
push ebx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call fcn.00477e90
mov edi, dword [ebp + 8]
mov ecx, esi
mov eax, dword [edi]
mov dword [edi + 4], eax
call fcn.0049d7a0
test edx, edx
jne 0x49d674
test eax, eax
je 0x49d67c
push eax
mov ecx, edi
call fcn.00477e90
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x10]
xorps xmm0, xmm0
mov dword [ebp - 8], eax
movlpd qword [ebp - 0x18], xmm0
test ecx, ecx
je 0x49d6b2
cmp dword [ecx], 0
je 0x49d6b2
push 0
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push 0
push dword [ecx]
call dword [sym.imp.WININET.dll_InternetSetFilePointer]
mov eax, dword [esi + 0x10]
lea ecx, [ebp - 4]
push ecx
push ebx
mov ebx, dword [ebp - 0x24]
push ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
push dword [eax]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x49d76f
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x49d784
mov edx, dword [edi + 4]
xor eax, eax
sub edx, dword [edi]
mov ebx, ecx
add ebx, esi
adc eax, dword [ebp + 8]
test eax, eax
jb 0x49d716
ja 0x49d708
cmp ebx, edx
jbe 0x49d716
lea eax, [esi + ecx]
mov ecx, edi
push eax
call fcn.00477e90
mov ecx, dword [ebp - 4]
mov eax, dword [edi]
mov ebx, dword [ebp - 0x24]
add eax, esi
push ecx
push ebx
push eax
call fcn.004e8560
add esp, 0xc
add esi, dword [ebp - 4]
adc dword [ebp + 8], 0
cmp dword [ebp + 0x10], 0xffffffff
je 0x49d743
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x10]
jae 0x49d76f
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 4]
push ecx
push dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov eax, dword [eax + 0x10]
push ebx
mov dword [ebp - 0xc], 0
push dword [eax]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x49d6e5
lea ecx, [ebp - 0x24]
xor esi, esi
call fcn.0046e620
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [ebp - 0x24]
mov esi, 1
call fcn.0046e620
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4a7470
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5469a6
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x580124]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004e4542
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.004cb32d
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4b04d0
Capabilities:
Delete file
Move file
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5473f8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x580124]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x18], esi
mov ebx, ecx
test ebx, ebx
je 0x4b05cf
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x4b05cf
test esi, esi
je 0x4b05cf
lea ecx, [ebp - 0x10]
call fcn.004081d0
push ebx
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push str._s.write_cache
push eax
call fcn.004232b0
mov esi, dword [ebp - 0x10]
add esp, 0xc
xor edi, edi
push edi
push 0x80
push 2
push edi
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
je 0x4b05b3
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], edi
mov edi, dword [ebp + 8]
push ecx
push edi
push dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x1c]
xor eax, eax
cmp dword [ebp - 0x14], edi
sete al
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x4b05b3
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 1
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x10]
call fcn.00407b80
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
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 0x4b05f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x547428
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x580124]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
test esi, esi
je 0x4b069a
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4b069a
mov dword [ebp - 0x1c], vtable.CxAutoArray_unsigned_char_.0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
lea edx, [ebp - 0x18]
mov dword [ebp - 0x10], 0
mov ecx, esi
call fcn.004930a0
mov esi, dword [ebp - 0x18]
add esp, 4
test eax, eax
je 0x4b0678
cmp dword [ebp - 0x10], 0
je 0x4b0678
mov edx, edi
mov ecx, esi
call fcn.004b0880
mov edi, eax
jmp 0x4b067a
xor edi, edi
test esi, esi
je 0x4b0687
push esi
call fcn.004e4d31
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4b06b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x547460
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x580124]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
push edi
lea ecx, [ebp - 0x10]
call fcn.00407ab0
mov dword [ebp - 4], 0
mov edx, 1
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x104
or ecx, edx
jge 0x4b0714
push 0x104
lea ecx, [ebp - 0x10]
call fcn.00407610
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword [ebp - 0x10]
push dword [eax - 8]
push eax
call fcn.005053f1
mov edx, eax
add esp, 8
test edx, edx
js 0x4b086e
mov ecx, dword [ebp - 0x10]
cmp edx, dword [ecx - 8]
jg 0x4b086e
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x10]
mov word [eax + edx*2], cx
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4b0763
push dword [ebp - 0x10]
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
call fcn.00408090
mov ecx, eax
test ecx, ecx
jne 0x4b0778
push 0x80004005
call fcn.00407be0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4b078d
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x4b078f
call edx
add eax, 0x10
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x14]
mov byte [ebp - 4], 1
mov ecx, esi
call fcn.004b0ab0
mov esi, dword [ebp - 0x14]
test eax, eax
je 0x4b07bd
push dword [esi - 0xc]
mov edx, esi
mov ecx, edi
call fcn.004b04d0
add esp, 4
mov ebx, eax
jmp 0x4b07bf
xor ebx, ebx
or edi, 0xffffffff
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4b0802
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4b0800
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x4b0800
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4b0802
call edx
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], edi
dec edi
test edi, edi
jg 0x4b085a
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4b0856
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x4b0856
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, edx
call esi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00407be0
int3
Function at 0x4b3b60
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x547c09
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push esi
push edi
mov eax, dword [0x580124]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
lea esi, [edi + 8]
mov dword [edi], vtable.CMessageCallbackSink_class_CHttpDownloader_.0
mov dword [ebp - 0x18], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004b6af0
mov dword [esi], eax
mov ecx, edi
mov dword [edi + 4], edi
mov dword [edi + 0x10], 0
call fcn.004b6cf0
lea eax, [edi + 0x14]
mov dword [ebp - 4], 0
xorps xmm0, xmm0
push 0
movups xmmword [eax], xmm0
push eax
movq qword [eax + 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x4b3bfb
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4b3bf3
movzx eax, ax
or eax, 0x80070000
test eax, eax
jns 0x4b3bfb
push eax
call fcn.00407be0
mov byte [ebp - 4], 1
lea esi, [edi + 0x2c]
mov dword [ebp - 0x18], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004b5e00
mov dword [esi], eax
mov dword [edi + 0x34], vtable.ATL::CThreadPool_class_CHttpDownloader::CDownloadWorker__class_ATL::CRTThreadTraits__class_ATL::Win32WaitTraits_.0
xorps xmm0, xmm0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
movups xmmword [edi + 0x48], xmm0
movq qword [edi + 0x58], xmm0
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0x8ca0
mov dword [edi + 0x68], 0
mov dword [edi + 0x6c], 0
mov dword [edi + 0x74], 0
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x1c]
mov dword [edi + 0x78], 0
push eax
lea ecx, [edi + 8]
mov dword [ebp - 0x10], 0x547
call fcn.004b7210
mov eax, dword [ebp - 0x1c]
lea ecx, [edi + 8]
mov dword [eax + 0x14], 0x4b4370
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x10], 0x548
push eax
call fcn.004b7210
mov eax, dword [ebp - 0x1c]
xorps xmm0, xmm0
mov dword [eax + 0x14], 0x4b4370
lea eax, [ebp - 0x40]
push eax
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x20], 0
movups xmmword [ebp - 0x30], xmm0
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov eax, dword [ebp - 0x2c]
mov ecx, 1
test eax, eax
cmove eax, ecx
sub esp, 8
mov dword [ebp - 0x2c], eax
lea ecx, [edi + 0x34]
add eax, 2
push eax
push edi
call fcn.004b4a90
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret