joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44f8c4
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, 0x60cb9f
call fcn.0060bcd8
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov ebx, edi
mov eax, dword [esi]
mov dword [ebp - 0x10], ebx
cmp dword [eax - 0xc], ebx
je 0x44f9a4
call fcn.00404f47
push eax
lea ecx, [ebp + 8]
call fcn.004065d8
mov dword [ebp - 4], edi
lea eax, [ebp + 8]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [esi]
push str._s_d._s
push eax
call fcn.00406cc8
mov esi, dword [ebp + 8]
add esp, 0x14
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x44f99c
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x44f992
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0x14]
and dword [ebp + 0x14], 0
push 0
push eax
push ebx
lea eax, [ebx + 0xa]
push eax
call fcn.00406a4b
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x44f988
cmp dword [ebp + 0x14], ebx
jne 0x44f988
mov ecx, dword [ebp + 0x10]
push ebx
call fcn.00413e9a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esi - 0x10]
call fcn.00404ea9
xor eax, eax
inc eax
jmp 0x44f9a6
mov ecx, dword [ebp + 0x10]
push 0
call fcn.00406b5c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x10]
lea ecx, [esi - 0x10]
call fcn.00404ea9
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x44fb92
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 0xc], 1
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, ecx
jne 0x44fbb6
push 0
push dword [esi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
and byte [esi + 0x14], 0xfd
jmp 0x44fc15
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
je 0x44fc1a
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
je 0x44fc1a
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x44fc15
or byte [esi + 0x14], 4
mov al, byte [esi + 0x14]
test al, 2
jne 0x44fc0c
push dword [ebp + 8]
or al, 2
mov ecx, esi
mov byte [esi + 0x14], al
call fcn.00450e9a
push 8
push dword [esi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x44fc15
cmp dword [esi + 0x18], edi
je 0x44fc15
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x44fc29
push 0
push dword [esi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
and byte [esi + 0x14], 0xfd
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x451a61
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
xor edi, edi
mov ebx, edi
mov dword [ebp - 4], edi
cmp dword [esi + 0x460], edi
je 0x451a90
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov dword [esi + 0x460], edi
mov ecx, dword [esi + 0x454]
test ecx, ecx
je 0x451b6f
call fcn.0046a6ea
mov edi, eax
test edi, edi
je 0x451b23
mov edx, dword [edi]
mov ecx, edi
push 2
push 0
call dword [edx + 0x38]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x48]
test eax, eax
je 0x451ac9
push 1
push edi
mov ecx, esi
call fcn.00451a1f
mov eax, dword [esi + 0x454]
cmp eax, dword [esi + 0x450]
jne 0x451b23
movzx ecx, word [ebp + 0x10]
movzx eax, word [ebp + 0xc]
shl ecx, 0x10
or ecx, eax
push ecx
push dword [ebp + 8]
mov ecx, edi
push 0x202
call fcn.0046a733
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x451b15
xor ecx, ecx
cmp word [eax], cx
je 0x451b15
push 1
push ecx
push ecx
push eax
push str.open
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x451b23
cmp dword [edi + 0xc], ebx
je 0x451b23
mov eax, dword [edi + 0xc]
xor ebx, ebx
inc ebx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [esi + 0x454], eax
test ebx, ebx
je 0x451b6f
mov eax, dword [esi + 4]
push eax
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x18], eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov dword [ebp - 0x14], eax
mov ecx, edi
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov eax, dword [edi]
call dword [eax + 8]
push dword [esi + 4]
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_GetParent]
lea ecx, [ebp - 0x18]
push ecx
push dword [ebp - 0x14]
push 0x4e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4522d1
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
push edi
push 0x30
pop esi
push esi
xor ebx, ebx
mov edi, ecx
push ebx
push edi
call fcn.005e1720
push 0x110
lea eax, [ebp - 0x110]
mov dword [ebp - 0x114], 0x114
push ebx
push eax
call fcn.005e1720
add esp, 0x18
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x452325
cmp dword [ebp - 0x110], 6
jae 0x452328
push 0x2c
pop esi
mov dword [edi], esi
mov esi, dword [ebp + 0xc]
push esi
mov dword [edi + 4], ebx
call dword [sym.imp.USER32.dll_GetParent]
or dword [edi + 4], 1
mov dword [edi + 8], eax
mov dword [edi + 0xc], esi
mov eax, dword [0x6c4548]
mov dword [edi + 0x20], eax
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x24], eax
mov eax, edi
mov dword [edi + 0x28], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x4584b8
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
call fcn.0045867d
test eax, eax
jne 0x4584cc
and dword [esi + 0x134], eax
pop esi
ret
push dword [esi + 0x140]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4584fd
push 0
push dword [esi + 0x140]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 0x140]
call dword [sym.imp.USER32.dll_DestroyWindow]
and dword [esi + 0x140], 0
pop esi
ret

Function at 0x45cbef
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x18]
xor eax, eax
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
inc eax
xor ecx, ecx
cmp edi, 0xf
jne 0x45cc30
mov dword [esi + 0x134], eax
mov dword [ebx], ecx
cmp dword [esi + 0x134], ecx
jne 0x45cc29
push ebx
push dword [ebp + 0x14]
mov ecx, esi
push dword [ebp + 0x10]
push edi
push dword [ebp + 8]
call fcn.0046a75f
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
cmp edi, 2
jne 0x45cc6e
push dword [esi + 0xc]
mov dword [esi + 0x134], eax
push dword [esi + 0x13c]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x45cc67
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45cc67
push 0
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
xor ecx, ecx
inc eax
jmp 0x45cc0d
cmp edi, 0x47
jne 0x45cc85
push dword [ebp + 0x14]
mov ecx, esi
mov dword [esi + 0x134], eax
call fcn.0045cb06
jmp 0x45cc67
cmp edi, 0x18
jne 0x45cc0f
mov dword [esi + 0x134], eax
mov eax, dword [esi]
cmp dword [ebp + 0x10], ecx
je 0x45cc9c
push 8
push ecx
jmp 0x45cc9f
push ecx
push 8
mov ecx, esi
call dword [eax + 0x38]
cmp dword [ebp + 0x10], 0
je 0x45ccc8
mov ecx, dword [esi + 8]
jmp 0x45ccbf
mov ecx, dword [eax + 0x30]
shr ecx, 3
not ecx
test cl, 1
je 0x45cc67
mov ecx, dword [eax + 8]
call fcn.0046a6ea
test eax, eax
jne 0x45ccaf
push dword [ebp + 0x10]
mov ecx, esi
call fcn.00463d87
jmp 0x45cc67
Function at 0x464619
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x610693
call fcn.0060bcd8
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
and dword [ebp - 4], 0
mov dword [edi], vtable.CBkWindow.0
call fcn.0046ac39
mov ebx, 0x6c8a94
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.0046ac39
inc dword [eax + 0x60]
mov esi, dword [eax + 0x60]
push esi
call fcn.0046ac39
mov ecx, eax
call fcn.004644f6
push ebx
mov dword [eax], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ebx, ebx
mov dword [edi + 4], esi
mov dword [edi + 8], ebx
lea esi, [edi + 0x10]
mov dword [edi + 0xc], ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [edi + 0x20], ebx
call fcn.00404f47
push eax
lea ecx, [edi + 0x24]
call fcn.004065d8
mov dword [edi + 0x28], ebx
mov dword [edi + 0x2c], ebx
mov dword [edi + 0x30], ebx
mov dword [edi + 0x34], ebx
mov dword [edi + 0x38], ebx
call fcn.00404f47
push eax
lea ecx, [edi + 0x3c]
call fcn.004065d8
mov dword [edi + 0x40], ebx
call fcn.00404f47
push eax
lea ecx, [edi + 0x44]
call fcn.004065d8
call fcn.00404f47
push eax
lea ecx, [edi + 0x48]
call fcn.004065d8
or dword [edi + 0x4c], 0xffffffff
lea ecx, [edi + 0xbc]
or dword [edi + 0x50], 0xffffffff
xor eax, eax
or dword [edi + 0x60], 0xffffffff
mov dword [edi + 0x54], ebx
mov word [edi + 0x58], ax
mov dword [edi + 0x5c], ebx
mov dword [edi + 0x64], ebx
mov dword [edi + 0x9c], ebx
mov dword [edi + 0xa0], ebx
mov dword [edi + 0xa4], ebx
mov dword [edi + 0xa8], 1
mov dword [edi + 0xac], ebx
mov dword [edi + 0xb0], ebx
mov dword [edi + 0xb4], ebx
mov dword [edi + 0xb8], ebx
call fcn.004669a4
call fcn.004669a4
mov byte [ecx + 0x28], 0xff
lea ecx, [edi + 0x100]
mov dword [edi + 0xec], ebx
mov dword [edi + 0xf0], ebx
mov dword [edi + 0xf4], ebx
mov dword [edi + 0xf8], vtable.CBkWindow::BkAnimationHandler.0
mov dword [edi + 0xfc], edi
call fcn.004669a4
call fcn.004669a4
mov byte [ecx + 0x28], 0xff
mov byte [edi + 0x130], bl
push esi
mov dword [edi + 0x134], ebx
mov dword [edi + 0x138], ebx
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x469942
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
and dword [ebp - 4], 0
lea eax, [ebp - 0x214]
push 0x210
push 0
push eax
call fcn.005e1720
add esp, 0xc
lea eax, [ebp - 0x214]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x214]
push eax
call fcn.00406173
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret 4
Function at 0x469be5
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x610930
call fcn.0060bcd8
sub esp, 0x18
push esi
push edi
mov edi, ecx
call fcn.00469b97
push dword [edi]
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
call fcn.0046999c
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], esi
je 0x469d05
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x469d02
push ebx
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.Gdiplus::PrivateFontCollection.0
push eax
mov dword [ebp - 0x20], esi
call dword [sym.imp.gdiplus.dll_GdipNewPrivateFontCollection]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 1
push dword [ebp - 0x10]
push dword [ebp - 0x20]
call dword [sym.imp.gdiplus.dll_GdipPrivateAddFontFile]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x20]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.gdiplus.dll_GdipGetFontCollectionFamilyCount]
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
test ebx, ebx
jle 0x469ce9
xor ecx, ecx
mov eax, ebx
push 8
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 dword [sym.imp.gdiplus.dll_GdipAlloc]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x469cb6
push 0x4166e9
push 0x469afc
push ebx
lea esi, [eax + 4]
mov dword [eax], ebx
push 8
push esi
call fcn.00499ea2
mov byte [ebp - 4], 1
mov dword [edi + 4], esi
test esi, esi
je 0x469ce9
lea eax, [ebp - 0x18]
push eax
push esi
push ebx
lea ecx, [ebp - 0x24]
call fcn.00469b06
test eax, eax
jne 0x469ce2
mov eax, dword [ebp - 0x18]
test eax, eax
jle 0x469ce2
mov dword [edi + 8], ebx
mov dword [edi + 0xc], eax
jmp 0x469ce9
mov ecx, edi
call fcn.00469b97
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.Gdiplus::PrivateFontCollection.0
push eax
call dword [sym.imp.gdiplus.dll_GdipDeletePrivateFontCollection]
mov dword [ebp - 0x24], vtable.Gdiplus::FontCollection.0
pop ebx
mov eax, dword [ebp - 0x10]
lea ecx, [eax - 0x10]
call fcn.00404ea9
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x46ab86
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x6109a0
call fcn.0060bcd8
push ecx
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
mov dword [ebp - 0x10], esi
push 0x11
or dword [esi + 0x18], 0xffffffff
pop ebx
push 0xa
pop edi
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], ebx
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0xc], 0x3f400000
mov dword [esi + 0x10], 0x3e800000
mov dword [esi + 0x14], 0x40100000
call fcn.0044ee5a
lea ecx, [esi + 0x30]
xor eax, eax
mov dword [ebp - 4], eax
or dword [ecx + 0x18], 0xffffffff
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], ebx
mov dword [ecx + 0x1c], eax
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x24], edi
mov dword [ecx + 0x28], eax
mov dword [ecx + 0x2c], eax
mov dword [ecx + 0xc], 0x3f400000
mov dword [ecx + 0x10], 0x3e800000
mov dword [ecx + 0x14], 0x40100000
call fcn.0044ee5a
mov byte [ebp - 4], 1
and dword [esi + 0x60], 0
push 0x6c8a94
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x46aed0
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
xor esi, esi
mov edi, ecx
push esi
push esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x46aef2
xor eax, eax
inc eax
jmp 0x46af5e
cmp dword [edi], esi
je 0x46aefb
xor esi, esi
inc esi
jmp 0x46af42
lea eax, [ebp - 8]
push eax
push 0x69bed8
push 1
push esi
push 0x69beb8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x46af1b
push 2
pop esi
jmp 0x46af42
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
jns 0x46af30
push 3
jmp 0x46af18
mov eax, dword [ebp - 4]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
push 4
test eax, eax
pop ecx
cmovs esi, ecx
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x46af4f
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 8]
test eax, eax
je 0x46af5c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x46b861
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x37c0
call fcn.0060b340
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
push esi
lea eax, [ebp - 0x110]
push str..PhysicalDrive_d
push eax
call fcn.0040b647
add esp, 0xc
lea eax, [ebp - 0x110]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x46ba0e
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push 0xc
push 0
push eax
call fcn.005e1720
xor eax, eax
push 0x2710
push eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x37c0]
push eax
call fcn.005e1720
add esp, 0x18
lea eax, [ebp - 4]
push 0
push eax
push 0x2710
lea eax, [ebp - 0x37c0]
push eax
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x46ba01
mov edx, dword [ebp - 0x37b4]
lea eax, [ebp - 0xcc8]
push eax
push 0
lea ecx, [ebp - 0x37c0]
call fcn.0046b6ff
mov edx, dword [ebp - 0x37b0]
lea eax, [ebp - 0x8e0]
push eax
push 0
lea ecx, [ebp - 0x37c0]
call fcn.0046b6ff
mov edx, dword [ebp - 0x37ac]
lea eax, [ebp - 0x10b0]
push eax
push 0
lea ecx, [ebp - 0x37c0]
call fcn.0046b6ff
mov edx, dword [ebp - 0x37a8]
lea eax, [ebp - 0x4f8]
push eax
push 1
lea ecx, [ebp - 0x37c0]
call fcn.0046b6ff
add esp, 0x20
cmp byte [0x6c7d78], 0
jne 0x46b9c8
movsx eax, byte [ebp - 0x4f8]
push eax
call fcn.005efe9a
pop ecx
test eax, eax
jne 0x46b9a0
movsx eax, byte [ebp - 0x4e5]
push eax
call fcn.005efe9a
pop ecx
test eax, eax
je 0x46b9c8
lea eax, [ebp - 0x4f8]
push eax
push 0x6c7d78
call fcn.005f35a0
lea eax, [ebp - 0x8e0]
push eax
push 0x6c8178
call fcn.005f35a0
xor ebx, ebx
add esp, 0x10
inc ebx
push 0x2710
lea eax, [ebp - 0x37c0]
push 0
push eax
call fcn.005e1720
add esp, 0xc
lea eax, [ebp - 4]
xor ecx, ecx
push ecx
push eax
push 0x2710
lea eax, [ebp - 0x37c0]
push eax
push ecx
push ecx
push 0x700a0
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
jmp 0x46ba07
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, 0x10
jl 0x46b875
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46c989
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
push 0x69c354
mov ebx, 0x6c8880
push ebx
call fcn.0048de14
mov esi, dword [ebp + 8]
pop ecx
pop ecx
mov ecx, esi
call fcn.0046c70f
test eax, eax
jne 0x46c9cc
push str.DownloadControl_curlExecuter_Invalid
push ebx
call fcn.0048de14
pop ecx
pop ecx
mov eax, 0x100
jmp 0x46cba1
push dword [ebp + 0xc]
push esi
call fcn.0046c835
mov edi, eax
test edi, edi
je 0x46c9ed
push str.DownloadControl_GetDownloadFileLength_Failure
push ebx
call fcn.0048de14
pop ecx
pop ecx
jmp 0x46cb9f
push dword [esi + 4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x46ca04
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ebx, [esi + 0x18]
cmp dword [ebx], 0
je 0x46ca17
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebx], 0
mov ecx, dword [esi + 4]
call fcn.0046e88e
test eax, eax
je 0x46ca32
sub esp, 0x18
mov ecx, ebx
push dword [esi + 4]
call fcn.0046c5c0
jmp 0x46ca37
mov eax, 0x80004005
test eax, eax
jns 0x46ca56
push str.DownloadControl_CreateFile_Failure
push 0x6c8880
call fcn.0048de14
pop ecx
pop ecx
mov eax, 0x102
jmp 0x46cba1
xor eax, eax
xor ebx, ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
jmp 0x46cb01
lea eax, [esp + 0x14]
mov edi, 0x103
push eax
push ecx
push esi
call fcn.0046cbaa
mov ebx, eax
mov eax, dword [esp + 0x14]
push eax
push dword [esi + 0xc]
mov dword [esp + 0x18], eax
push ebx
push str.DownloadControl____ExE_CurlCode___d__Step___d__ResCode___d
push 0x6c8880
call fcn.0048de14
add esp, 0x14
test ebx, ebx
je 0x46cac0
cmp ebx, 0x1c
jne 0x46cb19
push 0x69c484
push 0x6c8880
call fcn.0048de14
pop ecx
pop ecx
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x46cb01
mov edi, dword [esp + 0x10]
push edi
push 0x69c438
push 0x6c8880
call fcn.0048de14
add esp, 0xc
cmp edi, 0xce
je 0x46cae7
cmp edi, 0xc8
jne 0x46cb4e
push dword [esi + 0xc]
push 0x69c450
push 0x6c8880
call fcn.0048de14
add esp, 0xc
inc dword [esi + 0xc]
xor edi, edi
mov eax, dword [esi + 0x10]
xor edx, edx
mov ecx, dword [esi + 8]
dec eax
add eax, ecx
div ecx
cmp eax, dword [esi + 0xc]
jne 0x46ca67
jmp 0x46cb64
cmp ebx, 0x21
je 0x46cb38
cmp ebx, 0x2a
je 0x46cb4e
push ebx
push 0x69c4b8
push 0x6c8880
call fcn.0048de14
add esp, 0xc
jmp 0x46cb64
push 0x69c498
push 0x6c8880
call fcn.0048de14
mov edi, 0x10a
jmp 0x46cb62
push 0x69c46c
push 0x6c8880
call fcn.0048de14
mov edi, 0x109
pop ecx
pop ecx
mov ecx, esi
call fcn.0046c6c0
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x46cb7d
mov eax, dword [esp + 0x10]
test ebx, ebx
cmovne eax, ebx
mov dword [ecx], eax
mov ecx, 0x69c4d8
test edi, edi
mov eax, 0x69c4d0
cmovne eax, ecx
push eax
push 0x69c4e0
push 0x6c8880
call fcn.0048de14
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x46dfe3
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
xor eax, eax
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
mov ebx, eax
test ecx, ecx
je 0x46e066
push edi
push eax
push 0x80
push 3
push eax
push 1
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x46e065
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
inc eax
push eax
call fcn.004998d3
mov esi, eax
pop ecx
test esi, esi
je 0x46e05d
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
test ebx, ebx
je 0x46e056
mov ecx, dword [ebp - 4]
push esi
mov byte [esi + ecx], 0
mov ecx, dword [ebp - 8]
call fcn.00405d0b
push esi
call fcn.004998ce
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46e06d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
xor eax, eax
push edi
push edi
push 2
push edi
inc eax
mov ebx, edx
push eax
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0xc], esi
cmp esi, 0xffffffff
je 0x46e0e8
mov eax, dword [ebx]
mov dword [ebp - 8], edi
cmp dword [eax - 4], 1
mov ecx, dword [eax - 0xc]
mov dword [ebp - 4], ecx
jle 0x46e0b5
push ecx
mov ecx, ebx
call fcn.00406c12
mov ecx, dword [ebp - 4]
push edi
lea eax, [ebp - 8]
push eax
push ecx
push dword [ebx]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0xffffffffffffffff
mov ecx, ebx
mov esi, eax
call fcn.00413e9a
test esi, esi
je 0x46e0df
mov eax, dword [ebp - 4]
cmp dword [ebp - 8], eax
push 1
pop eax
cmove edi, eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret