joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f19e
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5088a1
mov eax, dword fs:[0]
push eax
mov eax, 0x10ac
call fcn.004e07c0
mov eax, dword [0x547240]
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 + 8]
mov dword [ebp - 0x1054], eax
xor ebx, ebx
push ebx
lea eax, [ebp - 0x1060]
push eax
lea eax, [ebp - 0x104c]
push eax
xor edi, edi
lea eax, [ebp - 0x1050]
inc edi
push eax
mov dword [ebp - 0x1060], 0xc
mov dword [ebp - 0x1058], edi
mov dword [ebp - 0x105c], ebx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x40f387
push 0x44
pop esi
push esi
lea eax, [ebp - 0x10b8]
push ebx
push eax
call fcn.004de430
add esp, 0xc
lea eax, [ebp - 0x10b8]
push eax
mov dword [ebp - 0x10b8], esi
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [ebp - 0x104c]
mov dword [ebp - 0x1078], eax
mov dword [ebp - 0x107c], eax
xor eax, eax
push 0x10
mov word [ebp - 0x1088], ax
lea eax, [ebp - 0x1070]
push ebx
push eax
mov dword [ebp - 0x108c], 0x101
call fcn.004de430
add esp, 0xc
lea eax, [ebp - 0x1070]
push eax
lea eax, [ebp - 0x10b8]
push eax
push ebx
push ebx
push ebx
push edi
push ebx
push ebx
push str.ipconfig__all
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40f371
push 0x1388
push dword [ebp - 0x1070]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x1070]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x106c]
call esi
push 0xfff
lea eax, [ebp - 0x100f]
push ebx
push eax
mov byte [ebp - 0x1010], bl
call fcn.004de430
add esp, 0xc
push ebx
lea eax, [ebp - 0x1074]
push eax
push 0x1000
lea eax, [ebp - 0x1010]
push eax
push dword [ebp - 0x1050]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40f371
lea eax, [ebp - 0x1010]
push eax
lea ecx, [ebp - 0x102c]
call fcn.00402650
mov dword [ebp - 4], ebx
push ebx
jmp 0x40f34f
push 0x11
push esi
lea eax, [ebp - 0x1048]
push eax
call fcn.0040cc5b
mov ecx, dword [ebp - 0x1054]
push eax
mov byte [ebp - 4], 1
call fcn.00404fbf
push ebx
push edi
lea ecx, [ebp - 0x1048]
mov byte [ebp - 4], bl
call fcn.0040172d
add esi, 0xf
push esi
lea eax, [ebp - 0x102c]
push eax
call fcn.0040c7b9
mov esi, eax
pop ecx
pop ecx
lea ecx, [ebp - 0x102c]
cmp esi, 0xffffffff
jne 0x40f31c
push ebx
push edi
call fcn.0040172d
push dword [ebp - 0x104c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1050]
call esi
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.004dea60
leave
ret
Function at 0x40faba
Capabilities:
Set environment variable

Disassembly:
push 0xb0
mov eax, 0x501d5f
call fcn.004dead8
mov edi, dword [ebp + 0xc]
mov esi, 0x50d148
lea eax, [ebp - 0x2c]
push esi
push eax
call fcn.0040e4a5
pop ecx
pop ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x1c], ebx
jne 0x40fbb8
lea eax, [ebp - 0x9c]
push eax
call fcn.0040f7a7
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x80]
push eax
mov byte [ebp - 4], 1
call fcn.0040e793
push 0x50d144
push eax
lea eax, [ebp - 0x64]
push eax
mov byte [ebp - 4], 2
call fcn.0040288d
push dword [ebp - 0xbc]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.0040da35
add esp, 0x20
push ebx
push 1
lea ecx, [ebp - 0x64]
call fcn.0040172d
push ebx
push 1
lea ecx, [ebp - 0x80]
call fcn.0040172d
push ebx
push 1
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 7
call fcn.0040172d
cmp dword [ebp - 0x34], 0x10
mov eax, dword [ebp - 0x48]
jae 0x40fb68
lea eax, [ebp - 0x48]
push dword [ebp - 0x38]
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.004070c6
add esp, 0xc
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 8
call fcn.00406d59
push ebx
push 1
lea ecx, [ebp - 0xb8]
call fcn.00406991
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x40fba2
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push ebx
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], bl
call fcn.0040172d
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x2c]
push eax
mov ecx, edi
call fcn.00406c0f
cmp dword [edi + 0x14], 8
jb 0x40fbce
mov edi, dword [edi]
push edi
push str.OK__Result_is:__s.
push str.kupdate::KClientInfoGetter::GetInfoKeyHDID
push 0x287
push str.D:_fun_pow_4_20190808Coding_supportminisite_srcmiscKClientInfoGetter.cpp
push 7
call fcn.004081cf
add esp, 0x18
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00406991
xor eax, eax
call fcn.004deb5b
ret 8

Function at 0x410ac3
Capabilities:
Accept command line arguments

Disassembly:
push 0x24
mov eax, 0x505a4d
call fcn.004dead8
mov eax, dword [ebp + 8]
mov ebx, ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00406d28
and dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push 0x20
push eax
call fcn.00410028
and dword [ebp - 0x30], 0
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
pop ecx
pop ecx
jae 0x410afe
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x30]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
push dword [ebp - 0x30]
mov esi, eax
push str.argc_d.
push str.kupdate::KCommandLine::_DoParseCmdLine
push 0x74
push str.D:_fun_pow_4_20190808Coding_supportminisite_srcmiscKCommandLine.cpp
push 7
call fcn.004081cf
add esp, 0x18
push dword [ebp + 0xc]
mov ecx, ebx
push esi
push dword [ebp - 0x30]
call fcn.004108c3
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00406991
mov eax, ebx
call fcn.004deb5b
ret 8
Function at 0x410ec4
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
mov eax, dword [esi]
push edi
xor edi, edi
cmp eax, edi
je 0x410f50
cmp eax, 0xffffffff
je 0x410f50
mov ebx, dword [ebp + 8]
cmp ebx, edi
jne 0x410ee5
cmp dword [esi + 8], edi
jne 0x410eea
cmp dword [esi + 0xc], edi
jne 0x410ef1
mov eax, 0x80004005
jmp 0x410f52
mov eax, dword [esi + 4]
cmp eax, edi
je 0x410f26
cmp ebx, 1
jne 0x410f1a
push 0xbb8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x410f1a
push edi
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], edi
or dword [esi + 8], 0xffffffff
push 8
mov dword [ebp + 8], edi
call fcn.004de4e4
pop ecx
lea ecx, [ebp + 8]
push ecx
push edi
push eax
push 0x410e9c
push edi
push edi
mov dword [eax], ebx
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x4127fa
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push 0xc
mov eax, 0x50201a
call fcn.004dea6f
mov esi, ecx
mov ecx, dword [esi + 0x10]
cmp dword [ebp + 0xc], ecx
jne 0x4129bc
mov eax, dword [ebp + 0x10]
mov edx, 0x205
cmp ax, dx
jne 0x4128f1
xor edi, edi
cmp dword [esi + 0x410], edi
jne 0x4129bc
mov dword [ebp + 0xc], edi
push ecx
movzx ecx, cx
mov eax, esp
mov dword [eax], ecx
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], edi
mov dword [ebp + 0x10], esp
call fcn.00412719
cmp eax, edi
je 0x412976
push edi
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp + 0xc]
call fcn.004127dc
push dword [ebp + 0x10]
xor ebx, ebx
mov ecx, esi
mov eax, dword [ecx]
inc ebx
mov byte [ebp - 4], bl
call dword [eax]
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.USER32.dll_GetCursorPos]
push dword [esi - 0x28]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [esi + 0x3c4]
cmp eax, edi
jne 0x412897
push ebx
push edi
jmp 0x41289e
cmp eax, 0xffffffff
je 0x4128a7
push edi
push eax
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_SetMenuDefaultItem]
mov eax, dword [ebp - 0x14]
push eax
push dword [ebp - 0x18]
mov dword [esi + 0x40c], ebx
mov ebx, dword [esi - 0x28]
mov dword [ebp - 0x10], eax
call fcn.00412759
pop ecx
pop ecx
push edi
push ebx
push edi
push dword [ebp - 0x10]
push eax
push edi
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_TrackPopupMenu]
push edi
push edi
push edi
push dword [esi - 0x28]
call dword [sym.imp.USER32.dll_PostMessageW]
lea ecx, [ebp + 0xc]
call fcn.0041273e
mov dword [esi + 0x40c], edi
jmp 0x412976
mov ecx, 0x200
cmp ax, cx
jne 0x41290d
add esi, 0x404
push esi
call dword [sym.imp.USER32.dll_GetCursorPos]
jmp 0x4129bc
mov ecx, 0x203
cmp ax, cx
jne 0x412985
push dword [esi - 0x28]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push ecx
movzx ecx, word [esi + 0x10]
mov eax, esp
mov dword [eax], ecx
xor edi, edi
lea ecx, [ebp + 0xc]
mov dword [ebp + 0xc], edi
mov dword [ebp + 0x10], esp
call fcn.00412719
cmp eax, edi
je 0x412976
push edi
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp + 0xc]
call fcn.004127dc
mov eax, dword [esi + 0x3c4]
push edi
cmp eax, edi
jne 0x41295f
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_GetMenuItemID]
push edi
push eax
push 0x111
push dword [esi - 0x28]
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp + 0xc]
call fcn.0041273e
cmp dword [ebp + 0xc], edi
je 0x4129bc
lea ecx, [ebp + 0xc]
call fcn.0041273e
jmp 0x4129bc
mov ecx, 0x201
cmp ax, cx
je 0x4129bc
mov ecx, 0x405
cmp ax, cx
jne 0x4129bc
mov ecx, esi
call fcn.004126e3
test eax, eax
jne 0x4129bc
mov ecx, dword [esi + 0x414]
test ecx, ecx
je 0x4129bc
push dword [esi + 0x41c]
push dword [esi + 0x418]
call ecx
xor eax, eax
call fcn.004deb47
ret 0x10
Function at 0x412aca
Capabilities:
Read .ini file

Disassembly:
push 0x5c
mov eax, 0x502076
call fcn.004dead8
lea eax, [ebp - 0x48]
push 7
xor edi, edi
push eax
mov dword [ebp - 0x68], edi
call fcn.0044ff30
mov ecx, eax
call fcn.0044fa5e
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
mov dword [ebp - 4], edi
jae 0x412afc
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x68]
push ecx
push eax
call fcn.004433a0
pop ecx
pop ecx
cmp eax, edi
jl 0x412b15
cmp dword [ebp - 0x68], edi
jne 0x412b9b
push str._MulLang::GetCurrentLangID_Failed_to_ReadDWord.
push str.kupdate::KMullangResLoader::_GetCurrentLangID
push 0x8c
push str.D:_fun_pow_4_20190808Coding_supportminisite_srcpublic_MulLang.h
push 5
call fcn.004081cf
lea eax, [ebp - 0x64]
push 0x15
push eax
call fcn.00441178
add esp, 0x1c
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 1
jb 0x412b4a
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040ccd0
push edi
push 1
lea ecx, [ebp - 0x64]
call fcn.00406991
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x412b6a
lea eax, [ebp - 0x2c]
push eax
push edi
push str.UILanguage
push str.Local
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push edi
push 1
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x68], eax
call fcn.00406991
cmp dword [ebp - 0x68], edi
jne 0x412b9b
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx eax, ax
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0x804
je 0x412bcc
mov eax, 0x409
cmp dword [ebp - 0x68], eax
je 0x412bcc
cmp dword [ebp - 0x68], 0x411
je 0x412bcc
cmp dword [ebp - 0x68], 0x404
je 0x412bcc
cmp dword [ebp - 0x68], 0x42a
je 0x412bcc
mov dword [ebp - 0x68], eax
movzx esi, word [ebp - 0x68]
push edi
push 1
lea ecx, [ebp - 0x48]
call fcn.00406991
mov ax, si
call fcn.004deb5b
ret

Function at 0x4167f3
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 4], 0x80004005
cmp ebx, edi
je 0x416856
push ebx
call fcn.0043fdd5
pop ecx
test al, al
je 0x416856
push esi
call fcn.0045f507
mov ecx, eax
call fcn.0045fc8d
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteW]
push edi
push edi
push edi
push ebx
push str.taskbarunpin
push edi
call esi
push edi
push edi
push edi
push ebx
push 0x50e9ac
push edi
call esi
mov esi, eax
call fcn.0045f507
mov ecx, eax
call fcn.0045fc13
cmp esi, 0x20
pop esi
jle 0x416856
mov dword [ebp - 4], edi
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret
Function at 0x416909
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x547240]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0xa0]
push 0x13
push eax
call fcn.00441178
xor eax, eax
push 0x7e
push eax
mov word [ebp - 0x84], ax
lea eax, [ebp - 0x82]
push eax
call fcn.004de430
mov eax, dword [ebp - 0xa0]
add esp, 0x14
cmp dword [ebp - 0x8c], 8
jae 0x41695a
lea eax, [ebp - 0xa0]
push ebx
push eax
push 0x40
lea eax, [ebp - 0x84]
push eax
push str.false
push str.InstallPerUser
push 0x50bbbc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x84]
push str.true
push eax
call fcn.004e2c8f
pop ecx
pop ecx
mov ebx, eax
neg ebx
push 0
sbb bl, bl
push 1
lea ecx, [ebp - 0xa0]
inc bl
call fcn.00406991
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004dea60
leave
ret
Function at 0x417b9d
Capabilities:
Get common file path

Disassembly:
push 0x228
mov eax, 0x502a36
call fcn.004dead8
mov esi, dword [ebp + 8]
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
xor edi, edi
lea eax, [ebp - 0x216]
push edi
push eax
call fcn.004de430
add esp, 0xc
push edi
push 0x10
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.00440495
push esi
mov dword [ebp - 4], edi
call fcn.004df380
add esp, 0xc
push eax
push esi
lea ecx, [ebp - 0x234]
call fcn.004082b9
mov esi, str..lnk
push esi
call fcn.004df380
pop ecx
push eax
push esi
lea ecx, [ebp - 0x234]
call fcn.004082b9
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x417c3a
lea eax, [ebp - 0x234]
push eax
call fcn.0043fdd5
pop ecx
push edi
push 1
lea ecx, [ebp - 0x234]
movzx esi, al
call fcn.00406991
mov eax, esi
call fcn.004deb5b
ret
Function at 0x417c5a
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push 0x24c
mov eax, 0x502a74
call fcn.004dead8
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x254], esi
mov dword [ebp - 0x258], ebx
mov dword [ebp - 0x23c], 7
mov dword [ebp - 0x240], ebx
mov word [ebp - 0x250], ax
mov dword [ebp - 4], ebx
cmp edi, ebx
je 0x417e0d
push edi
call fcn.004df380
pop ecx
test eax, eax
je 0x417e0d
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
call fcn.004de430
add esp, 0xc
push ebx
push 0x1a
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x417cf0
push ebx
mov ecx, esi
call fcn.00406d28
jmp 0x417e1b
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x234]
call fcn.00406d28
mov esi, str.MicrosoftInternet_ExplorerQuick_Launch_
push esi
mov byte [ebp - 4], 1
call fcn.004df380
pop ecx
push eax
push esi
lea ecx, [ebp - 0x234]
call fcn.004082b9
call fcn.00441a9a
test al, al
je 0x417d41
mov esi, str.User_PinnedTaskBar_
push esi
call fcn.004df380
pop ecx
push eax
push esi
lea ecx, [ebp - 0x234]
call fcn.004082b9
push edi
call fcn.004df380
pop ecx
push eax
push edi
lea ecx, [ebp - 0x234]
call fcn.004082b9
mov esi, str..lnk
push esi
call fcn.004df380
pop ecx
push eax
push esi
lea ecx, [ebp - 0x234]
call fcn.004082b9
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x417d83
lea eax, [ebp - 0x234]
push eax
push str.taskbarpinLink_check___s.
push str.kupdate::KDesktopLink::getTaskbarPinned
push 0x190
push str.D:_fun_pow_4_20190808Coding_supportminisite_srcprotocolKProcedureImpl.cpp
push ebx
call fcn.004081cf
mov eax, dword [ebp - 0x234]
add esp, 0x18
cmp dword [ebp - 0x220], 8
jae 0x417db6
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x417dd7
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x250]
call fcn.00406c0f
mov ecx, dword [ebp - 0x254]
lea eax, [ebp - 0x250]
push eax
call fcn.00406db5
push ebx
push 1
lea ecx, [ebp - 0x234]
call fcn.00406991
push ebx
push 1
lea ecx, [ebp - 0x250]
call fcn.00406991
mov eax, dword [ebp - 0x254]
jmp 0x417e2b
lea eax, [ebp - 0x250]
push eax
mov ecx, esi
call fcn.00406db5
push ebx
push 1
lea ecx, [ebp - 0x250]
call fcn.00406991
mov eax, esi
call fcn.004deb5b
ret
Function at 0x417e74
Capabilities:
Get common file path

Disassembly:
push 0x23c
mov eax, 0x502aa7
call fcn.004dead8
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x23c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x238], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x248], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x240], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x244], eax
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
xor ebx, ebx
lea eax, [ebp - 0x216]
push ebx
push eax
call fcn.004de430
add esp, 0xc
push ebx
push 0x10
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.00440495
push edi
mov dword [ebp - 4], ebx
call fcn.004df380
add esp, 0xc
push eax
push edi
lea ecx, [ebp - 0x234]
call fcn.004082b9
mov esi, str..lnk
push esi
call fcn.004df380
pop ecx
push eax
push esi
lea ecx, [ebp - 0x234]
call fcn.004082b9
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x417f3e
lea eax, [ebp - 0x234]
push dword [ebp - 0x244]
push dword [ebp + 0x1c]
push dword [ebp - 0x240]
push dword [ebp - 0x248]
push dword [ebp - 0x238]
push dword [ebp - 0x23c]
push edi
push eax
call fcn.00416ac5
mov esi, eax
add esp, 0x20
cmp esi, ebx
jl 0x417f87
push ebx
lea eax, [ebp - 0x218]
push eax
push 0x1005
push 0x80001000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
push ebx
push 1
lea ecx, [ebp - 0x234]
call fcn.00406991
mov eax, esi
call fcn.004deb5b
ret

Function at 0x417f9d
Capabilities:
Get common file path

Disassembly:
push 0x240
mov eax, 0x502ada
call fcn.004dead8
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x240], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x23c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x24c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x244], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x248], eax
xor eax, eax
push 0x208
mov word [ebp - 0x21c], ax
xor ebx, ebx
lea eax, [ebp - 0x21a]
push ebx
push eax
call fcn.004de430
add esp, 0xc
push ebx
push 0x1a
lea eax, [ebp - 0x21c]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x238]
call fcn.00406d28
mov esi, str.MicrosoftInternet_ExplorerQuick_Launch_
push esi
mov dword [ebp - 4], ebx
call fcn.004df380
pop ecx
push eax
push esi
lea ecx, [ebp - 0x238]
call fcn.004082b9
push edi
call fcn.004df380
pop ecx
push eax
push edi
lea ecx, [ebp - 0x238]
call fcn.004082b9
mov esi, str..lnk
push esi
call fcn.004df380
pop ecx
push eax
push esi
lea ecx, [ebp - 0x238]
call fcn.004082b9
cmp dword [ebp - 0x224], 8
mov eax, dword [ebp - 0x238]
jae 0x41807d
lea eax, [ebp - 0x238]
push dword [ebp - 0x248]
push dword [ebp + 0x1c]
push dword [ebp - 0x244]
push dword [ebp - 0x24c]
push dword [ebp - 0x23c]
push dword [ebp - 0x240]
push edi
push eax
call fcn.00416ac5
add esp, 0x20
push ebx
push 1
lea ecx, [ebp - 0x238]
mov esi, eax
call fcn.00406991
mov eax, esi
call fcn.004deb5b
ret
Function at 0x4180c0
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x34
mov eax, 0x502b12
call fcn.004dead8
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x40], ecx
jb 0x4180dd
mov eax, dword [eax]
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x30], edi
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], ebx
call fcn.004087da
test al, al
je 0x418152
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x41811e
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
push esi
push str.Failed_open_file:_0x_08x.
push str.kupdate::KDiffVerify::_LoadItemsFromFile
push 0x29
push str.D:_fun_pow_4_20190808Coding_supportminisite_srcprotocolKProcedureImpl.cpp
push ebx
call fcn.004081cf
add esp, 0x18
cmp edi, ebx
je 0x41814b
cmp edi, 0xffffffff
je 0x41814b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x4182a2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp esi, 0x100000
jae 0x418273
cmp esi, ebx
je 0x418273
lea edi, [esi + 2]
push edi
call fcn.004dc6d3
pop ecx
mov dword [ebp - 0x34], eax
cmp eax, ebx
je 0x418194
push edi
push ebx
push eax
call fcn.004de430
mov edi, dword [ebp - 0x34]
add esp, 0xc
jmp 0x418196
xor edi, edi
mov eax, 0x400
mov dword [ebp - 0x38], esi
cmp esi, eax
jb 0x4181a5
mov dword [ebp - 0x38], eax
xor esi, esi
cmp dword [ebp - 0x3c], ebx
jbe 0x4181d0
push ebx
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x38]
lea eax, [esi + edi]
push eax
push dword [ebp - 0x30]
mov dword [ebp - 0x34], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x418221
add esi, dword [ebp - 0x34]
cmp esi, dword [ebp - 0x3c]
jb 0x4181ac
lea eax, [edi + 2]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00406d28
push dword [ebp - 0x40]
lea eax, [ebp - 0x2c]
push 0x50b84c
push eax
mov byte [ebp - 4], 1
call fcn.0040f115
add esp, 0xc
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00406991
push edi
call fcn.004de5b0
pop ecx
cmp dword [ebp - 0x30], ebx
je 0x41821a
cmp dword [ebp - 0x30], 0xffffffff
je 0x41821a
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4182a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x418235
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
push esi
push str.Failed_read_file:_0x_08x.
push str.kupdate::KDiffVerify::_LoadItemsFromFile
push 0x3a
push str.D:_fun_pow_4_20190808Coding_supportminisite_srcprotocolKProcedureImpl.cpp
push ebx
call fcn.004081cf
push edi
call fcn.004de5b0
add esp, 0x1c
cmp dword [ebp - 0x30], ebx
je 0x41814b
cmp dword [ebp - 0x30], 0xffffffff
je 0x41814b
push dword [ebp - 0x30]
jmp 0x418145
push str.File_size_too_long.
push str.kupdate::KDiffVerify::_LoadItemsFromFile
push 0x30
push str.D:_fun_pow_4_20190808Coding_supportminisite_srcprotocolKProcedureImpl.cpp
push ebx
call fcn.004081cf
add esp, 0x14
cmp edi, ebx
je 0x41829d
cmp edi, 0xffffffff
je 0x41829d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x80004005
call fcn.004deb5b
ret