joyce8/EMBER2024-capa huggingface dataset:
Function at 0x452bdf
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 0x452c0e
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov dword [esi + 0x460], edi
mov ecx, dword [esi + 0x454]
test ecx, ecx
je 0x452ced
call fcn.0046b755
mov edi, eax
test edi, edi
je 0x452ca1
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 0x452c47
push 1
push edi
mov ecx, esi
call fcn.00452b9d
mov eax, dword [esi + 0x454]
cmp eax, dword [esi + 0x450]
jne 0x452ca1
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.0046b79e
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x452c93
xor ecx, ecx
cmp word [eax], cx
je 0x452c93
push 1
push ecx
push ecx
push eax
push str.open
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x452ca1
cmp dword [edi + 0xc], ebx
je 0x452ca1
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 0x452ced
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 0x45344f
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.005e26d0
push 0x110
lea eax, [ebp - 0x110]
mov dword [ebp - 0x114], 0x114
push ebx
push eax
call fcn.005e26d0
add esp, 0x18
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4534a3
cmp dword [ebp - 0x110], 6
jae 0x4534a6
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 [0x6c65c8]
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 0x459627
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
call fcn.004597ec
test eax, eax
jne 0x45963b
and dword [esi + 0x134], eax
pop esi
ret
push dword [esi + 0x140]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45966c
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 0x45dd0c
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 0x45dd4d
mov dword [esi + 0x134], eax
mov dword [ebx], ecx
cmp dword [esi + 0x134], ecx
jne 0x45dd46
push ebx
push dword [ebp + 0x14]
mov ecx, esi
push dword [ebp + 0x10]
push edi
push dword [ebp + 8]
call fcn.0046b7ca
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
cmp edi, 2
jne 0x45dd8b
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 0x45dd84
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45dd84
push 0
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
xor ecx, ecx
inc eax
jmp 0x45dd2a
cmp edi, 0x47
jne 0x45dda2
push dword [ebp + 0x14]
mov ecx, esi
mov dword [esi + 0x134], eax
call fcn.0045dc23
jmp 0x45dd84
cmp edi, 0x18
jne 0x45dd2c
mov dword [esi + 0x134], eax
mov eax, dword [esi]
cmp dword [ebp + 0x10], ecx
je 0x45ddb9
push 8
push ecx
jmp 0x45ddbc
push ecx
push 8
mov ecx, esi
call dword [eax + 0x38]
cmp dword [ebp + 0x10], 0
je 0x45dde5
mov ecx, dword [esi + 8]
jmp 0x45dddc
mov ecx, dword [eax + 0x30]
shr ecx, 3
not ecx
test cl, 1
je 0x45dd84
mov ecx, dword [eax + 8]
call fcn.0046b755
test eax, eax
jne 0x45ddcc
push dword [ebp + 0x10]
mov ecx, esi
call fcn.00464df6
jmp 0x45dd84
Function at 0x465688
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x611727
call fcn.0060cc48
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.0046bca4
mov ebx, 0x6cab2c
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.0046bca4
inc dword [eax + 0x60]
mov esi, dword [eax + 0x60]
push esi
call fcn.0046bca4
mov ecx, eax
call fcn.00465565
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.00467a16
call fcn.00467a16
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.00467a16
call fcn.00467a16
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 0x46a9ad
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.005e26d0
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 0x46ac50
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x6119c4
call fcn.0060cc48
sub esp, 0x18
push esi
push edi
mov edi, ecx
call fcn.0046ac02
push dword [edi]
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
call fcn.0046aa07
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], esi
je 0x46ad70
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46ad6d
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 0x46ad54
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 0x46ad21
push 0x417896
push 0x46ab67
push ebx
lea esi, [eax + 4]
mov dword [eax], ebx
push 8
push esi
call fcn.0049adf2
mov byte [ebp - 4], 1
mov dword [edi + 4], esi
test esi, esi
je 0x46ad54
lea eax, [ebp - 0x18]
push eax
push esi
push ebx
lea ecx, [ebp - 0x24]
call fcn.0046ab71
test eax, eax
jne 0x46ad4d
mov eax, dword [ebp - 0x18]
test eax, eax
jle 0x46ad4d
mov dword [edi + 8], ebx
mov dword [edi + 0xc], eax
jmp 0x46ad54
mov ecx, edi
call fcn.0046ac02
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 0x46bbf1
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x611a34
call fcn.0060cc48
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.0044ffeb
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.0044ffeb
mov byte [ebp - 4], 1
and dword [esi + 0x60], 0
push 0x6cab2c
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 0x46bf3b
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 0x46bf5d
xor eax, eax
inc eax
jmp 0x46bfc9
cmp dword [edi], esi
je 0x46bf66
xor esi, esi
inc esi
jmp 0x46bfad
lea eax, [ebp - 8]
push eax
push 0x69d270
push 1
push esi
push 0x69d250
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x46bf86
push 2
pop esi
jmp 0x46bfad
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 0x46bf9b
push 3
jmp 0x46bf83
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 0x46bfba
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 8]
test eax, eax
je 0x46bfc7
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 0x46c8cc
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x37c0
call fcn.0060c2b0
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 0x46ca79
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push 0xc
push 0
push eax
call fcn.005e26d0
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.005e26d0
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 0x46ca6c
mov edx, dword [ebp - 0x37b4]
lea eax, [ebp - 0xcc8]
push eax
push 0
lea ecx, [ebp - 0x37c0]
call fcn.0046c76a
mov edx, dword [ebp - 0x37b0]
lea eax, [ebp - 0x8e0]
push eax
push 0
lea ecx, [ebp - 0x37c0]
call fcn.0046c76a
mov edx, dword [ebp - 0x37ac]
lea eax, [ebp - 0x10b0]
push eax
push 0
lea ecx, [ebp - 0x37c0]
call fcn.0046c76a
mov edx, dword [ebp - 0x37a8]
lea eax, [ebp - 0x4f8]
push eax
push 1
lea ecx, [ebp - 0x37c0]
call fcn.0046c76a
add esp, 0x20
cmp byte [0x6ca408], 0
jne 0x46ca33
movsx eax, byte [ebp - 0x4f8]
push eax
call fcn.005f0de9
pop ecx
test eax, eax
jne 0x46ca0b
movsx eax, byte [ebp - 0x4e5]
push eax
call fcn.005f0de9
pop ecx
test eax, eax
je 0x46ca33
lea eax, [ebp - 0x4f8]
push eax
push 0x6ca408
call fcn.005f44d0
lea eax, [ebp - 0x8e0]
push eax
push 0x6c9df8
call fcn.005f44d0
xor ebx, ebx
add esp, 0x10
inc ebx
push 0x2710
lea eax, [ebp - 0x37c0]
push 0
push eax
call fcn.005e26d0
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 0x46ca72
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, 0x10
jl 0x46c8e0
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46d9f4
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 0x69d6ec
mov ebx, 0x6ca908
push ebx
call fcn.0048e9c0
mov esi, dword [ebp + 8]
pop ecx
pop ecx
mov ecx, esi
call fcn.0046d77a
test eax, eax
jne 0x46da37
push str.DownloadControl_curlExecuter_Invalid
push ebx
call fcn.0048e9c0
pop ecx
pop ecx
mov eax, 0x100
jmp 0x46dc0c
push dword [ebp + 0xc]
push esi
call fcn.0046d8a0
mov edi, eax
test edi, edi
je 0x46da58
push str.DownloadControl_GetDownloadFileLength_Failure
push ebx
call fcn.0048e9c0
pop ecx
pop ecx
jmp 0x46dc0a
push dword [esi + 4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x46da6f
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ebx, [esi + 0x18]
cmp dword [ebx], 0
je 0x46da82
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebx], 0
mov ecx, dword [esi + 4]
call fcn.0046f8f9
test eax, eax
je 0x46da9d
sub esp, 0x18
mov ecx, ebx
push dword [esi + 4]
call fcn.0046d62b
jmp 0x46daa2
mov eax, 0x80004005
test eax, eax
jns 0x46dac1
push str.DownloadControl_CreateFile_Failure
push 0x6ca908
call fcn.0048e9c0
pop ecx
pop ecx
mov eax, 0x102
jmp 0x46dc0c
xor eax, eax
xor ebx, ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
jmp 0x46db6c
lea eax, [esp + 0x14]
mov edi, 0x103
push eax
push ecx
push esi
call fcn.0046dc15
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 0x6ca908
call fcn.0048e9c0
add esp, 0x14
test ebx, ebx
je 0x46db2b
cmp ebx, 0x1c
jne 0x46db84
push 0x69d81c
push 0x6ca908
call fcn.0048e9c0
pop ecx
pop ecx
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x46db6c
mov edi, dword [esp + 0x10]
push edi
push 0x69d7d0
push 0x6ca908
call fcn.0048e9c0
add esp, 0xc
cmp edi, 0xce
je 0x46db52
cmp edi, 0xc8
jne 0x46dbb9
push dword [esi + 0xc]
push 0x69d7e8
push 0x6ca908
call fcn.0048e9c0
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 0x46dad2
jmp 0x46dbcf
cmp ebx, 0x21
je 0x46dba3
cmp ebx, 0x2a
je 0x46dbb9
push ebx
push 0x69d850
push 0x6ca908
call fcn.0048e9c0
add esp, 0xc
jmp 0x46dbcf
push 0x69d830
push 0x6ca908
call fcn.0048e9c0
mov edi, 0x10a
jmp 0x46dbcd
push 0x69d804
push 0x6ca908
call fcn.0048e9c0
mov edi, 0x109
pop ecx
pop ecx
mov ecx, esi
call fcn.0046d72b
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x46dbe8
mov eax, dword [esp + 0x10]
test ebx, ebx
cmovne eax, ebx
mov dword [ecx], eax
mov ecx, 0x69d870
test edi, edi
mov eax, 0x69d868
cmovne eax, ecx
push eax
push 0x69d878
push 0x6ca908
call fcn.0048e9c0
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x46f04e
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 0x46f0d1
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 0x46f0d0
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
inc eax
push eax
call fcn.0049a823
mov esi, eax
pop ecx
test esi, esi
je 0x46f0c8
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 0x46f0c1
mov ecx, dword [ebp - 4]
push esi
mov byte [esi + ecx], 0
mov ecx, dword [ebp - 8]
call fcn.00405d0b
push esi
call fcn.0049a81e
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 0x46f0d8
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 0x46f153
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 0x46f120
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 0x46f14a
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
Function at 0x46f2dc
Capabilities:
Get disk information

Disassembly:
mov eax, 0x60d965
call fcn.0060cc48
sub esp, 0x10
push esi
push edi
xor esi, esi
mov dword [ebp - 0x18], ecx
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov edi, eax
test edi, edi
je 0x46f3a3
push ebx
xor ecx, ecx
lea eax, [edi + 1]
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0049a823
mov ebx, eax
mov dword [ebp - 0x1c], ebx
pop ecx
test ebx, ebx
je 0x46f3a0
lea ecx, [edi*2 + 2]
push ecx
push esi
push ebx
call fcn.005e26d0
add esp, 0xc
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov edi, eax
call fcn.00404f47
push eax
lea ecx, [ebp - 0x10]
call fcn.004065d8
shr edi, 2
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], ebx
test edi, edi
je 0x46f38b
push ebx
lea ecx, [ebp - 0x10]
call fcn.004060f8
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], esi
je 0x46f383
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x10]
push eax
call fcn.0042ba75
lea ecx, [ebp - 0x10]
add ebx, 8
call fcn.00406271
sub edi, 1
jne 0x46f35b
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
xor esi, esi
add ecx, 0xfffffff0
inc esi
call fcn.00404ea9
push ebx
call fcn.0049a81e
pop ecx
mov eax, esi
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x46f3b3
Capabilities:
Get disk information
Get storage device properties

Disassembly:
mov eax, 0x60e50c
call fcn.0060cc48
sub esp, 0x40
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jne 0x46f3d4
xor eax, eax
jmp 0x46f47c
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x46f3cd
xor ebx, ebx
call fcn.00404f47
push eax
lea ecx, [ebp - 0x14]
call fcn.004065d8
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x14]
push dword [esi]
push 0x69d928
push eax
call fcn.00406cc8
mov esi, dword [ebp - 0x14]
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push 3
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edx, eax
mov dword [ebp - 0x14], edx
cmp edx, 0xffffffff
je 0x46f472
push 0xa
pop ecx
push 0x28
xor eax, eax
mov dword [ebp - 0x18], ebx
lea edi, [ebp - 0x4c]
mov dword [ebp - 0x24], ebx
rep stosd dword es:[edi], eax
pop ecx
push ebx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], ebx
push eax
push ecx
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x48], ecx
push eax
push 0xc
lea eax, [ebp - 0x24]
push eax
push 0x2d1400
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x46f469
xor eax, eax
inc eax
cmp dword [ebp - 0x30], 7
cmovne ebx, eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esi - 0x10]
call fcn.00404ea9
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46f48d
Capabilities:
Set registry value

Disassembly:
mov eax, 0x611c64
call fcn.0060cc48
sub esp, 0xc
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], edi
call fcn.00404f47
push eax
lea ecx, [ebp - 0x14]
call fcn.004065d8
push str.semauthority
push str.SOFTWAREKingsoft
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push str._s_s
push eax
call fcn.00406cc8
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
add esp, 0x10
push edi
push esi
push SysReAllocString
call fcn.0040af84
test eax, eax
je 0x46f510
push edi
call fcn.005f230f
pop ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x10], edi
je 0x46f510
push 8
lea eax, [ebp - 0x18]
push eax
push 0xb
push edi
push 0x6936e4
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [esi - 0x10]
call fcn.00404ea9
cmp dword [ebp - 0x10], 0
je 0x46f527
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x46f5d6
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov eax, 0x60d965
call fcn.0060cc48
push ecx
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x10]
push edi
call fcn.00406173
xor esi, esi
push edi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x46f64c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x46f64c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x46f64c
lea ecx, [ebp - 0x10]
call fcn.0046f570
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], esi
je 0x46f64f
mov ecx, eax
call fcn.0046f5d6
test eax, eax
je 0x46f64f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x46f64c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x46f64f
xor esi, esi
inc esi
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00404ea9
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret