joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4184e0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52ae70
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x588790]
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, str._ZFile::Copyfile_Start
mov dword [ebp - 4], 1
call fcn.00408b90
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x50], esp
xor ebx, ebx
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 8]
mov esi, 0xf
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], ebx
push eax
mov byte [ecx], bl
call fcn.00404580
lea ecx, [ebp - 0x48]
push ecx
call fcn.00420700
add esp, 4
mov ecx, esp
mov dword [ebp - 0x50], esp
push 0xffffffffffffffff
mov byte [ebp - 4], 2
push ebx
lea edx, [ebp + 0x24]
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], ebx
push edx
mov byte [ecx], bl
call fcn.00404580
lea eax, [ebp - 0x2c]
push eax
call fcn.00420700
add esp, 0x20
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x2c]
mov esi, 8
cmp dword [ebp - 0x18], esi
jae 0x418588
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], esi
jae 0x418593
lea eax, [ebp - 0x48]
movzx edx, byte [ebp + 0x40]
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
setne al
mov byte [ebp - 0x49], al
cmp al, bl
jne 0x4185c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edi, str._CopyFile_Fail_ErrorCode:
call fcn.00408c90
add esp, 4
mov edi, str._ZFile::Copyfile_End
call fcn.00408b90
cmp dword [ebp - 0x18], esi
jb 0x4185db
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004ad85d
add esp, 4
xor ecx, ecx
mov edi, 7
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
cmp dword [ebp - 0x34], esi
jb 0x4185fd
mov edx, dword [ebp - 0x48]
push edx
call fcn.004ad85d
add esp, 4
mov dword [ebp - 0x34], edi
xor eax, eax
mov edi, 0x10
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], ax
cmp dword [ebp + 0x1c], edi
jb 0x41861f
mov ecx, dword [ebp + 8]
push ecx
call fcn.004ad85d
add esp, 4
mov dword [ebp + 0x1c], 0xf
mov dword [ebp + 0x18], ebx
mov byte [ebp + 8], bl
cmp dword [ebp + 0x38], edi
jb 0x41863d
mov edx, dword [ebp + 0x24]
push edx
call fcn.004ad85d
add esp, 4
mov al, byte [ebp - 0x49]
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.00503edf
mov esp, ebp
pop ebp
ret
Function at 0x418660
Capabilities:
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52ae28
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x588790]
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
xor ebx, ebx
mov edi, str._ZFile::Deletefile_Start
mov dword [ebp - 4], ebx
call fcn.00408b90
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x84], esp
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 8]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push eax
mov byte [ecx], bl
call fcn.00404580
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00420700
add esp, 0x20
push 1
lea eax, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.00419ae0
mov edx, dword [ebp + 0x18]
push edx
lea ecx, [eax + 1]
lea esi, [ebp - 0x64]
lea edx, [ebp + 8]
call fcn.004043c0
mov byte [ebp - 4], 2
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x4186f9
lea eax, [ebp - 0x2c]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
test eax, eax
setne al
mov esi, 0x10
cmp al, bl
jne 0x41879d
push 0x13
push str.taskkill__f__t__im
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
call fcn.004047d0
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x80]
push edx
mov byte [ebp - 4], 3
call fcn.004121e0
add esp, 0xc
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 4
call fcn.00404500
cmp dword [ebp - 0x6c], esi
jb 0x418766
mov eax, dword [ebp - 0x80]
push eax
call fcn.004ad85d
add esp, 4
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], esi
jae 0x418771
lea eax, [ebp - 0x48]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x418785
lea eax, [ebp - 0x2c]
push eax
call edi
mov byte [ebp - 4], 2
cmp dword [ebp - 0x34], esi
jb 0x41879d
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004ad85d
add esp, 4
mov edi, str._ZFile::Deletefile_End
call fcn.00408b90
cmp dword [ebp - 0x50], esi
jb 0x4187b8
mov edx, dword [ebp - 0x64]
push edx
call fcn.004ad85d
add esp, 4
cmp dword [ebp - 0x18], 8
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
jb 0x4187d7
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004ad85d
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
cmp dword [ebp + 0x1c], esi
jb 0x4187f8
mov edx, dword [ebp + 8]
push edx
call fcn.004ad85d
add esp, 4
mov al, 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.00503edf
mov esp, ebp
pop ebp
ret
Function at 0x418bd0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52add0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x588790]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, str._ZFile::CreateDir_Start
mov dword [ebp - 4], 0
call fcn.00408b90
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x30], esp
push 0xffffffffffffffff
push 0
lea eax, [ebp + 8]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00404580
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00420700
add esp, 0x20
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x418c4d
lea eax, [ebp - 0x2c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
test bl, bl
jne 0x418c73
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edi, str._CreateDirectory_Fail_ErrorCode:
call fcn.00408c90
add esp, 4
mov edi, str._ZFile::CreateDir_End
call fcn.00408b90
cmp dword [ebp - 0x18], 8
jb 0x418c8f
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004ad85d
add esp, 4
xor eax, eax
cmp dword [ebp + 0x1c], 0x10
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
jb 0x418cb5
mov ecx, dword [ebp + 8]
push ecx
call fcn.004ad85d
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00503edf
mov esp, ebp
pop ebp
ret
Function at 0x418ce0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52a128
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x588790]
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 ebx, 0x10
mov ecx, ebx
lea esi, [ebp + 8]
lea edi, [ebp - 0x50]
rep movsd dword es:[edi], dword [esi]
mov edi, str._ZFile::WriteStruct2File_Start
mov dword [ebp - 4], 0
call fcn.00408b90
mov eax, dword [ebp + 0x48]
cmp dword [ebp + 0x5c], ebx
jae 0x418d36
lea eax, [ebp + 0x48]
push 0x53a9ec
push eax
call fcn.00504d6d
mov esi, eax
add esp, 8
test esi, esi
jne 0x418d73
mov edi, str._fopen_Fail
call fcn.00408b90
mov edi, str._ZFile::WriteStruct2File_End
call fcn.00408b90
cmp dword [ebp + 0x5c], ebx
jb 0x418d6f
mov eax, dword [ebp + 0x48]
push eax
call fcn.004ad85d
add esp, 4
xor al, al
jmp 0x418de0
push esi
push 1
lea ecx, [ebp - 0x50]
push 0x40
push ecx
call fcn.00504f22
add esp, 0x10
push esi
cmp eax, 1
je 0x418dbb
call fcn.005055b7
add esp, 4
mov edi, str._fwrite_Fail
call fcn.00408b90
mov edi, str._ZFile::WriteStruct2File_End
call fcn.00408b90
cmp dword [ebp + 0x5c], ebx
jb 0x418d6f
mov edx, dword [ebp + 0x48]
push edx
call fcn.004ad85d
add esp, 4
xor al, al
jmp 0x418de0
call fcn.005055b7
add esp, 4
mov edi, str._ZFile::WriteStruct2File_End
call fcn.00408b90
cmp dword [ebp + 0x5c], ebx
jb 0x418dde
mov eax, dword [ebp + 0x48]
push eax
call fcn.004ad85d
add esp, 4
mov al, 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.00503edf
mov esp, ebp
pop ebp
ret
Function at 0x418e00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52a0f8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x588790]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x1c], eax
xor ebx, ebx
mov edi, str._ZFile::ReadStruct2File_Start
mov dword [ebp - 4], ebx
call fcn.00408b90
mov eax, dword [ebp + 8]
mov esi, 0x10
cmp dword [ebp + 0x1c], esi
jae 0x418e4d
lea eax, [ebp + 8]
push eax
mov edi, str._PackagePath
call fcn.00408e10
mov eax, dword [ebp + 8]
add esp, 4
cmp dword [ebp + 0x1c], esi
jae 0x418e66
lea eax, [ebp + 8]
push 0x53a190
push eax
call fcn.00504d6d
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x418e97
mov edi, str._cant_open_the_file
call fcn.00408b90
cmp dword [ebp + 0x1c], 0x10
jb 0x418f83
mov ecx, dword [ebp + 8]
push ecx
jmp 0x418f7b
push 2
push ebx
push esi
call fcn.005054ce
push esi
call fcn.00505130
push 2
mov edi, 0xfffffff8
push edi
push esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.005054ce
push esi
push 1
lea edx, [ebp - 0x18]
push 8
push edx
call fcn.00505cac
mov ebx, 0x99d668fa
add esp, 0x2c
cmp dword [ebp - 0x18], ebx
jne 0x418ee0
cmp dword [ebp - 0x14], 0xc2630a1c
je 0x418f17
mov edi, edi
mov eax, edi
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x5000
jg 0x418f67
push 2
dec edi
push edi
push esi
call fcn.005054ce
push esi
push 1
lea eax, [ebp - 0x18]
push 8
push eax
call fcn.00505cac
add esp, 0x1c
cmp dword [ebp - 0x18], ebx
jne 0x418ee0
cmp dword [ebp - 0x14], 0xc2630a1c
jne 0x418ee0
push 2
push edi
push esi
call fcn.005054ce
mov ecx, dword [ebp - 0x1c]
push esi
push 1
push 0x40
push ecx
call fcn.00505cac
push esi
call fcn.005055b7
add esp, 0x20
mov edi, str._ZFile::ReadStruct2File_End
call fcn.00408b90
cmp dword [ebp + 0x1c], 0x10
jb 0x418f53
mov edx, dword [ebp + 8]
push edx
call fcn.004ad85d
add esp, 4
mov al, 1
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 edi, str._ZFile::ReadStruct2File_Fail
call fcn.00408b90
cmp dword [ebp + 0x1c], 0x10
jb 0x418f83
mov eax, dword [ebp + 8]
push eax
call fcn.004ad85d
add esp, 4
xor al, al
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 0x41a110
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, str._ZProgram::KillProcess_Start
call fcn.00408b90
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
sub ecx, eax
sar ecx, 2
xor esi, esi
test ecx, ecx
je 0x41a178
mov edx, dword [eax + esi*4]
push edx
push 0
push 0x42b
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x41a189
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x41a169
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edi, str._TerminateProcess_Fail__ErrorCode:
call fcn.00408c90
add esp, 4
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
sub ecx, eax
inc esi
sar ecx, 2
cmp esi, ecx
jb 0x41a133
mov edi, str._ZProgram::KillProcess_End
call fcn.00408b90
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edi, str._OpenProcess_Fail__ErrorCode:
call fcn.00408c90
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret
Function at 0x41a680
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52a04b
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x588790]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, str._ZProgram::GetSystem32Path_Start
call fcn.00408b90
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.00509940
add esp, 0xc
lea ecx, [ebp - 0x23c]
push ecx
push 0x25
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x41a7c0
mov eax, dword [ebp - 0x23c]
lea edx, [ebp - 0x218]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
setne byte [ebp - 0x235]
sub esp, 0x1c
mov ecx, esp
xor edx, edx
lea eax, [ebp - 0x218]
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
mov dword [ebp - 0x240], esp
mov word [ecx], dx
lea edi, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x41a726
sub eax, edi
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00404a10
lea ecx, [ebp - 0x234]
push ecx
call fcn.00420800
add esp, 0x20
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.00404500
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x220], 0x10
jb 0x41a77b
mov edx, dword [ebp - 0x234]
push edx
call fcn.004ad85d
add esp, 4
mov eax, dword [ebp - 0x23c]
push eax
mov dword [ebp - 0x220], 0xf
mov dword [ebp - 0x224], ebx
mov byte [ebp - 0x234], bl
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov edi, esi
call fcn.004194f0
mov bl, byte [ebp - 0x235]
movzx ecx, bl
push ecx
mov edi, str._ZProgram::GetSystem32Path_End
call fcn.00408c90
add esp, 4
mov al, bl
jmp 0x41a7c2
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00503edf
mov esp, ebp
pop ebp
ret
Function at 0x41ae40
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52a090
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x588790]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, str._ZProgram::CreateShortcut_Start
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x54], edx
call fcn.00408b90
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x41afe4
lea eax, [ebp - 0x4c]
push eax
push 0x53281c
push 1
push 0
push 0x53285c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x41afde
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push esi
push eax
call edx
xor eax, eax
mov word [ebp - 0x2c], ax
mov eax, esi
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
lea edx, [eax + 2]
jmp 0x41aee0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41aee0
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.00404a10
push 2
push 0xffffffffffffffff
push 0x53ae80
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.004081e0
push eax
push 0
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.0041c6a0
mov esi, 8
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], esi
jb 0x41af30
mov eax, dword [eax]
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x24]
push ecx
call eax
mov byte [ebp - 4], 0
cmp dword [ebp - 0x34], esi
jb 0x41af51
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004ad85d
add esp, 4
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x58]
mov edx, dword [eax]
mov edx, dword [edx + 0x2c]
push ecx
push eax
call edx
mov ecx, dword [ebp - 0x54]
test ecx, ecx
je 0x41af75
mov eax, dword [ebp - 0x4c]
mov edx, dword [eax]
push 0
push ecx
push eax
mov eax, dword [edx + 0x44]
call eax
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax]
lea edx, [ebp - 0x50]
push edx
push 0x53287c
push eax
mov eax, dword [ecx]
call eax
test eax, eax
js 0x41afc2
mov eax, dword [ebp - 0x50]
mov edx, dword [ebp - 0x5c]
mov ecx, dword [eax]
push 0
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
test eax, eax
js 0x41afb7
mov edi, str._ZProgram::CreateShortcut_End
call fcn.00408b90
lea ecx, [ebp - 0x2c]
call fcn.00401c30
mov al, 1
jmp 0x41afe6
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp dword [ebp - 0x18], esi
jb 0x41afde
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004ad85d
add esp, 4
call dword [sym.imp.ole32.dll_CoUninitialize]
xor al, al
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.00503edf
mov esp, ebp
pop ebp
ret
Function at 0x41b010
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52a04b
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x588790]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, str._ZProgram::getDesktopPath_Start
call fcn.00408b90
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.00509940
add esp, 0xc
lea ecx, [ebp - 0x23c]
push ecx
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x41b14f
mov eax, dword [ebp - 0x23c]
lea edx, [ebp - 0x218]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
setne byte [ebp - 0x235]
sub esp, 0x1c
mov ecx, esp
xor edx, edx
lea eax, [ebp - 0x218]
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
mov dword [ebp - 0x240], esp
mov word [ecx], dx
lea edi, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x41b0b5
sub eax, edi
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00404a10
lea ecx, [ebp - 0x234]
push ecx
call fcn.00420800
add esp, 0x20
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.00404500
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x220], 0x10
jb 0x41b10a
mov edx, dword [ebp - 0x234]
push edx
call fcn.004ad85d
add esp, 4
mov eax, dword [ebp - 0x23c]
push eax
mov dword [ebp - 0x220], 0xf
mov dword [ebp - 0x224], ebx
mov byte [ebp - 0x234], bl
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov edi, esi
call fcn.004194f0
mov bl, byte [ebp - 0x235]
movzx ecx, bl
push ecx
mov edi, str._ZProgram::getDesktopPath_End
call fcn.00408c90
add esp, 4
mov al, bl
jmp 0x41b151
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00503edf
mov esp, ebp
pop ebp
ret
Function at 0x41b170
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52a04b
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x588790]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, str._ZProgram::getStartMenuPath_Start
call fcn.00408b90
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.00509940
add esp, 0xc
lea ecx, [ebp - 0x23c]
push ecx
push 0x16
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x41b2b0
mov eax, dword [ebp - 0x23c]
lea edx, [ebp - 0x218]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
setne byte [ebp - 0x235]
sub esp, 0x1c
mov ecx, esp
xor edx, edx
lea eax, [ebp - 0x218]
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
mov dword [ebp - 0x240], esp
mov word [ecx], dx
lea edi, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x41b216
sub eax, edi
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00404a10
lea ecx, [ebp - 0x234]
push ecx
call fcn.00420800
add esp, 0x20
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.00404500
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x220], 0x10
jb 0x41b26b
mov edx, dword [ebp - 0x234]
push edx
call fcn.004ad85d
add esp, 4
mov eax, dword [ebp - 0x23c]
push eax
mov dword [ebp - 0x220], 0xf
mov dword [ebp - 0x224], ebx
mov byte [ebp - 0x234], bl
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov edi, esi
call fcn.004194f0
mov bl, byte [ebp - 0x235]
movzx ecx, bl
push ecx
mov edi, str._ZProgram::getStartMenuPath_True_End_
call fcn.00408c90
add esp, 4
mov al, bl
jmp 0x41b2b2
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00503edf
mov esp, ebp
pop ebp
ret
Function at 0x41bb50
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52a016
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x588790]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, str._ZProgram::GetAppDataPath_Start
call fcn.00408b90
xor ebx, ebx
push ebx
push 0x1a
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edi, 7
xor ecx, ecx
lea eax, [ebp - 0x218]
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], cx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x41bbc0
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x234]
call fcn.00404a10
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x254], esp
push 0xffffffffffffffff
mov dword [ebp - 4], ebx
push ebx
lea edx, [ebp - 0x234]
xor eax, eax
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
push edx
mov word [ecx], ax
call fcn.00401c60
lea eax, [ebp - 0x250]
push eax
call fcn.00420800
add esp, 0x20
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00404500
mov byte [ebp - 4], bl
cmp dword [ebp - 0x23c], 0x10
jb 0x41bc40
mov ecx, dword [ebp - 0x250]
push ecx
call fcn.004ad85d
add esp, 4
mov edi, esi
call fcn.004194f0
mov edi, str._ZProgram::GetAppDataPath_End
call fcn.00408b90
cmp dword [ebp - 0x220], 8
jb 0x41bc69
mov edx, dword [ebp - 0x234]
push edx
call fcn.004ad85d
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00503edf
mov esp, ebp
pop ebp
ret
Function at 0x41bc90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x529fd1
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x588790]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, str._ZProgram::getTempPath_Start
call fcn.00408b90
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.00509940
add esp, 0xc
lea ecx, [ebp - 0x218]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor edx, edx
mov edi, 7
lea eax, [ebp - 0x218]
mov word [ebp - 0x234], dx
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x224], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x41bd13
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x234]
call fcn.00404a10
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x254], esp
push 0xffffffffffffffff
mov dword [ebp - 4], ebx
push ebx
lea eax, [ebp - 0x234]
xor edx, edx
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
push eax
mov word [ecx], dx
call fcn.00401c60
lea ecx, [ebp - 0x250]
push ecx
call fcn.00420800
add esp, 0x20
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00404500
mov byte [ebp - 4], bl
cmp dword [ebp - 0x23c], 0x10
jb 0x41bd93
mov edx, dword [ebp - 0x250]
push edx
call fcn.004ad85d
add esp, 4
mov edi, esi
call fcn.004194f0
push 1
push 0x537530
mov eax, esi
call fcn.004046e0
mov ecx, dword [esi + 0x10]
dec ecx
cmp eax, ecx
je 0x41bdec
push 0x537530
lea eax, [ebp - 0x250]
push esi
push eax
call fcn.00404cc0
add esp, 0xc
push eax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00404500
mov byte [ebp - 4], bl
cmp dword [ebp - 0x23c], 0x10
jb 0x41bdec
mov ecx, dword [ebp - 0x250]
push ecx
call fcn.004ad85d
add esp, 4
mov edi, str._ZProgram::getTempPath_End
call fcn.00408b90
cmp dword [ebp - 0x220], 8
jb 0x41be0e
mov edx, dword [ebp - 0x234]
push edx
call fcn.004ad85d
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00503edf
mov esp, ebp
pop ebp
ret