joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a6a0
Capabilities:
Set environment variable

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x40a85e
push 0x3d
push edi
call fcn.0040bed0
mov esi, eax
add esp, 8
test esi, esi
je 0x40a85e
cmp edi, esi
je 0x40a85e
mov dl, byte [esi + 1]
mov ecx, dword [0x412bc4]
xor eax, eax
test dl, dl
sete al
mov ebp, eax
mov eax, dword [0x412bc0]
cmp eax, ecx
jne 0x40a6f7
push eax
call fcn.0040a930
add esp, 4
mov dword [0x412bc0], eax
test eax, eax
jne 0x40a772
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40a71e
mov eax, dword [0x412bc8]
test eax, eax
je 0x40a71e
call fcn.00408d30
test eax, eax
je 0x40a76d
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
test ebp, ebp
je 0x40a72a
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 4
call fcn.0040a9a0
add esp, 4
mov dword [0x412bc0], eax
test eax, eax
je 0x40a85e
mov dword [eax], 0
mov eax, dword [0x412bc8]
test eax, eax
jne 0x40a76d
push 4
call fcn.0040a9a0
add esp, 4
mov dword [0x412bc8], eax
test eax, eax
je 0x40a85e
mov dword [eax], 0
mov eax, dword [0x412bc0]
mov ebx, eax
mov eax, esi
sub eax, edi
push eax
push edi
mov dword [esp + 0x18], eax
call fcn.0040a8b0
mov esi, eax
add esp, 8
test esi, esi
jl 0x40a86f
cmp dword [ebx], 0
je 0x40a86f
test ebp, ebp
je 0x40a867
mov ecx, dword [ebx + esi*4]
lea edi, [ebx + esi*4]
push ecx
call fcn.0040aa50
mov eax, dword [edi]
add esp, 4
test eax, eax
je 0x40a7c9
mov eax, edi
mov edx, dword [eax + 4]
add eax, 4
mov dword [edi], edx
inc esi
mov ecx, dword [eax]
mov edi, eax
test ecx, ecx
jne 0x40a7b8
lea eax, [esi*4]
push eax
push ebx
call fcn.0040bd30
add esp, 8
test eax, eax
je 0x40a7e3
mov dword [0x412bc0], eax
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40a856
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.0040a9a0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40a856
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x10]
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
neg ebp
rep movsb byte es:[edi], byte [esi]
sbb ebp, ebp
mov byte [ebx + eax], 0
lea eax, [ebx + eax + 1]
not ebp
and ebp, eax
push ebp
push ebx
call dword [0x40d138]
push ebx
call fcn.0040aa50
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov dword [ebx + esi*4], edi
jmp 0x40a7e7
test ebp, ebp
jne 0x40a856
test esi, esi
jge 0x40a879
neg esi
lea ecx, [esi*4 + 8]
push ecx
push ebx
call fcn.0040bd30
add esp, 8
test eax, eax
je 0x40a85e
mov dword [eax + esi*4], edi
mov dword [eax + esi*4 + 4], 0
mov dword [0x412bc0], eax
jmp 0x40a7e7

Function at 0x40c9b0
Capabilities:
Create directory

Disassembly:
mov eax, dword [esp + 4]
push 0
push eax
call dword [0x40d100]
test eax, eax
jne 0x40c9c9
call dword [0x40d0b0]
jmp 0x40c9cb
xor eax, eax
test eax, eax
je 0x40c9dc
push eax
call fcn.0040c0b0
add esp, 4
or eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x4019a8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x4019b0
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x401ae2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
lea edx, [ebp - 0x10]
xor eax, eax
call sub.rtl100.bpl__System_ParamStr_qqri
mov eax, dword [ebp - 0x10]
call sub.rtl100.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
jbe 0x401ac7
mov eax, ebx
call sub.rtl100.bpl__System__GetMem_qqri
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x401ac0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
push ebx
push 0
lea edx, [ebp - 0x14]
xor eax, eax
call sub.rtl100.bpl__System_ParamStr_qqri
mov eax, dword [ebp - 0x14]
call sub.rtl100.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
call sub.version.dll_GetFileVersionInfoA
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x401af0
mov eax, dword [ebp - 8]
push eax
call sub.version.dll_VerQueryValueA
mov ebx, dword [ebp - 0xc]
push 0x401afc
mov eax, dword [ebx + 8]
call fcn.004012e0
movzx eax, ax
lea edx, [ebp - 0x18]
call sub.rtl100.bpl__Sysutils_IntToStr_qqri
push dword [ebp - 0x18]
push 0x401b0c
lea edx, [ebp - 0x1c]
movzx eax, word [ebx + 8]
call sub.rtl100.bpl__Sysutils_IntToStr_qqri
push dword [ebp - 0x1c]
push 0x401b0c
mov eax, dword [ebx + 0xc]
call fcn.004012e0
movzx eax, ax
lea edx, [ebp - 0x20]
call sub.rtl100.bpl__Sysutils_IntToStr_qqri
push dword [ebp - 0x20]
push 0x401b0c
lea edx, [ebp - 0x24]
movzx eax, word [ebx + 0xc]
call sub.rtl100.bpl__Sysutils_IntToStr_qqri
push dword [ebp - 0x24]
mov eax, esi
mov edx, 8
call sub.rtl100.bpl__System__LStrCatN_qqrv
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x401ac7
mov eax, dword [ebp - 8]
call sub.rtl100.bpl__System__FreeMem_qqrpv
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x401ae9
lea eax, [ebp - 0x24]
mov edx, 6
call sub.rtl100.bpl__System__LStrArrayClr_qqrpvi
ret

Function at 0x40c6c4
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x40c749
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x800]
push eax
call sub.kernel32.dll_FreeLibrary
xor eax, eax
mov dword [ebx + 0x800], eax
lea eax, [ebp - 4]
mov edx, 0x420020
call sub.rtl100.bpl__System__LStrFromString_qqrr17System_AnsiStringrx28System__SmallString_iuc_255_
mov eax, dword [ebp - 4]
call sub.rtl100.bpl__Sysutils_DeleteFile_qqrx17System_AnsiString
lea eax, [ebp - 8]
mov edx, 0x420020
call sub.rtl100.bpl__System__LStrFromString_qqrr17System_AnsiStringrx28System__SmallString_iuc_255_
mov eax, dword [ebp - 8]
call sub.rtl100.bpl__Sysutils_FileExists_qqrx17System_AnsiString
test al, al
je 0x40c72c
push 4
push 0
push 0x420021
call sub.kernel32.dll_MoveFileExA
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c750
lea eax, [ebp - 8]
mov edx, 2
call sub.rtl100.bpl__System__LStrArrayClr_qqrpvi
ret
Function at 0x40104a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push 0x56e3f0
call fcn.00402396
mov ecx, esi
push str.EBWebViewx86EmbeddedBrowserWebView.dll
call fcn.00402396
mov ecx, esi
call fcn.00402476
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
pop esi
pop ebp
ret

Function at 0x401125
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov esi, dword [ebp + 0xc]
mov eax, dword [0x58cb30]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov ecx, esi
push 0x104
call fcn.0040224e
mov ecx, esi
push dword [ebp + 8]
call fcn.004022c6
mov ecx, esi
call fcn.00402476
mov edi, eax
mov ecx, esi
call fcn.00402462
cmp eax, 3
jb 0x40119b
movzx eax, word [edi + 2]
cmp ax, 0x3a
jne 0x40118b
cmp word [edi + 4], 0x5c
jne 0x40119b
movzx eax, word [edi]
and eax, 0xffffffdf
add eax, 0xffffffbf
cmp ax, 0x1a
jae 0x40119b
jmp 0x401229
cmp word [edi], 0x5c
jne 0x40119b
cmp ax, 0x5c
je 0x401229
xor eax, eax
dec eax
lea edi, [ebp - 0x1c]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov ecx, edi
call fcn.004021dc
push edi
push 0
call fcn.00401080
add esp, 8
test eax, eax
js 0x401261
lea edi, [ebp - 0x1c]
mov ecx, edi
call fcn.00402462
mov ebx, eax
mov ecx, edi
call fcn.00402476
mov ecx, esi
push ebx
push eax
call fcn.004022f0
mov ecx, edi
call fcn.00402476
push 0x5c
push eax
call fcn.0053252b
add esp, 8
test eax, eax
je 0x401270
mov ebx, eax
lea edi, [ebp - 0x1c]
mov ecx, edi
call fcn.00402476
sub ebx, eax
add ebx, 2
sar ebx, 1
mov ecx, edi
call fcn.00402476
mov ecx, esi
push ebx
push eax
call fcn.004022f0
mov ecx, esi
push dword [ebp + 8]
call fcn.00402396
mov ecx, edi
call fcn.004021ee
xor edi, edi
push esi
call fcn.0040104a
add esp, 4
test al, al
jne 0x40127d
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.WebView2:_Failed_to_find_the_WebView2_client_dll_at:
call edi
mov ecx, esi
call fcn.00402476
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x56e456
call edi
mov edi, 0x80070002
jmp 0x40127d
mov edi, eax
push str.WebView2:_Failed_to_find_the_app_exe_path._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x401275
mov edi, 0x80004005
lea ecx, [ebp - 0x1c]
call fcn.004021ee
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00530218
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401f53
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x230
mov edi, edx
mov esi, ecx
mov eax, dword [0x58cb30]
xor eax, ebp
mov dword [esp + 0x228], eax
lea eax, [esp + 0x20]
push 0x208
push 0xff
push eax
call fcn.00532770
add esp, 0xc
mov dword [esp + 0xc], 0x104
lea eax, [esp + 8]
mov dword [eax], 0xffffffff
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
sub ecx, edi
push eax
push 0x20219
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ebx, ebx
test eax, eax
jne 0x402050
lea eax, [esp + 0xc]
push eax
lea edi, [esp + 0x24]
push edi
push ebx
push ebx
push str.EBWebView
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40204e
cmp dword [esp + 0xc], 3
mov ebx, 0
jb 0x402050
mov esi, dword [ebp + 0xc]
mov ecx, esi
push edi
call fcn.004022c6
mov ecx, esi
call fcn.00402476
push 0x5c
push eax
call fcn.0053252b
add esp, 8
test eax, eax
je 0x40204e
mov edi, eax
add edi, 2
pcmpeqd xmm0, xmm0
lea edx, [esp + 0x10]
movdqa xmmword [edx], xmm0
mov ecx, edi
call fcn.00401df8
test al, al
je 0x40204e
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x40203f
push edi
call fcn.004022c6
lea ecx, [esp + 0x10]
mov edx, esi
call fcn.00402068
mov ebx, eax
jmp 0x402050
xor ebx, ebx
mov ecx, dword [esp + 0x228]
xor ecx, ebp
call fcn.00530218
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x402068
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
xor eax, eax
mov edx, dword [eax + 0x56e7b8]
cmp dword [ecx + eax], edx
ja 0x402086
jb 0x402091
add eax, 4
cmp eax, 0x10
jne 0x402071
push esi
call fcn.0040104a
add esp, 4
jmp 0x4020b1
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.Loader_skipped_an_incompatible_version:
call edi
mov ecx, esi
call fcn.00402476
push eax
call edi
push 0x56e81a
call edi
xor eax, eax
pop esi
pop edi
pop ebp
ret
Function at 0x4029a6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov esi, edx
mov edi, ecx
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [0x58cb30]
xor eax, ebp
mov dword [ebp - 0x10], eax
test ebx, ebx
je 0x402a21
mov dword [ebp - 0x1c], ecx
xor eax, eax
lea ecx, [ebp - 0x14]
mov dword [ecx], eax
lea edx, [ebp - 0x18]
mov dword [edx], 4
push edx
push ecx
push eax
push 0x10
push esi
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x402a3b
mov ecx, edi
mov edx, esi
push dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
push esi
call fcn.00402a65
add esp, 8
test al, al
je 0x402a4b
mov eax, dword [esi]
test eax, eax
je 0x402a61
push 0xa
push 0
push eax
call fcn.0053d562
add esp, 0xc
cmp eax, 1
jmp 0x402a3f
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00530218
mov ecx, edi
mov edx, esi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.00402a65
cmp dword [ebp - 0x14], 1
sete al
movzx eax, al
mov dword [ebx], eax
mov bl, 1
jmp 0x402a4d
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00530218
mov eax, ebx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
jmp 0x402a42

Function at 0x402a65
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x214
mov edi, edx
mov dword [ebp - 0x220], ecx
mov eax, dword [0x58cb30]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor ebx, ebx
lea esi, [ebp - 0x218]
push 0x208
push ebx
push esi
call fcn.00532770
add esp, 0xc
lea eax, [ebp - 0x21c]
mov dword [eax], 0x104
push eax
push esi
push ebx
push 2
push edi
push ebx
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov esi, eax
test eax, eax
jne 0x402adc
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov ecx, edi
lea eax, [ebp - 0x218]
push eax
call fcn.004022c6
mov ecx, edi
call fcn.00402476
mov dword [ebx], eax
test esi, esi
sete bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00530218
mov eax, ebx
add esp, 0x214
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402b84
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, dword [0x58cb30]
xor eax, ebp
mov dword [ebp - 0x10], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x402be2
mov edi, eax
push str.CreateWebViewEnvironmentWithOptionsInternal
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402c54
mov ecx, eax
mov esi, dword [ebp + 0x1c]
mov bl, byte [ebp + 0xc]
call dword [0x55770c]
movzx eax, bl
push esi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call ecx
mov esi, eax
mov dword [ebp - 0x14], eax
jmp 0x402cbf
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
lea ebx, [ebp - 0x14]
mov dword [ebx], esi
xor eax, eax
dec eax
lea edi, [ebp - 0x20]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov ecx, edi
call fcn.004021dc
push edi
push 1
push 4
push ebx
call fcn.00402af8
add esp, 0x10
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.WebView2:_CoreWebView2Environment_failed_when_trying_to_LoadLibrary:_hr0x
call ebx
mov ecx, edi
call fcn.00402476
push eax
call ebx
push str._path
call ebx
push dword [ebp + 8]
call ebx
push 0x56e81a
call ebx
mov ecx, edi
call fcn.004021ee
jmp 0x402cd6
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
lea eax, [ebp - 0x14]
mov dword [eax], esi
xor eax, eax
dec eax
lea ebx, [ebp - 0x20]
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov ecx, ebx
call fcn.004021dc
push ebx
push 1
push 4
lea eax, [ebp - 0x14]
push eax
call fcn.00402af8
add esp, 0x10
push str.WebView2:_CoreWebView2Environment_failed_when_trying_to_call_into_EmbeddedBrowserWebView.dll._hr0x
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, ebx
call fcn.00402476
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x56e81a
call eax
mov ecx, ebx
call fcn.004021ee
push str.DllCanUnloadNow
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402cd6
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00530218
mov eax, esi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x403c00
Capabilities:
Get common file path
Get file system object information

Disassembly:
sub esp, 0x2d4
mov eax, dword [0x58cb30]
xor eax, esp
mov dword [esp + 0x2d0], eax
push ebx
mov ebx, ecx
push esi
mov esi, dword [esp + 0x2e0]
push edi
mov eax, dword [ebx]
mov edi, dword [esp + 0x2e8]
test eax, eax
je 0x403c34
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
push 0
mov dword [ebx + 4], 0xffffffff
push dword [0x5d375c]
push edi
push esi
push 0xdc
push 0x3c
push 0
push 0
push 0x44200046
push 0
push str.ComboBoxEx32
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0
push 4
push 0x408
push eax
mov dword [ebx], eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x407
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x403c91
push eax
call fcn.004fefe0
mov eax, dword [ebx]
test eax, eax
je 0x403da4
push 0
push 0
push 0x14b
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
jne 0x403d21
push 0x4209
push 0x2b4
lea eax, [esp + 0x1c]
push eax
push 0
push dword [esp + 0x1c]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push eax
push 0
push 0x402
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [0x600948]
push dword [esp + 0xc]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x55770c]
call esi
push 0
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x2c]
mov ecx, ebx
push eax
push dword [esp + 0x28]
push 0
push 1
push eax
call fcn.00403f10
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
jne 0x403d49
push eax
push eax
push dword [esp + 0x18]
mov ecx, ebx
call fcn.004036c0
test al, al
jne 0x403d9d
push ebp
call fcn.004fd290
mov ebp, eax
xor edi, edi
mov esi, 1
test ebp, esi
je 0x403d94
lea eax, [edi + 0x41]
push eax
push str._c:_
lea eax, [esp + 0x2d4]
push 0xa
push eax
call fcn.00404ce0
add esp, 0x10
lea eax, [esp + 0x2cc]
mov ecx, ebx
push 1
push 0xffffffffffffffff
push 2
push 0
push 0xffffffffffffffff
push 0
push 0
push eax
call fcn.00403f10
inc edi
rol esi, 1
cmp edi, 0x20
jl 0x403d58
pop ebp
mov ecx, ebx
call fcn.00404450
mov ecx, dword [esp + 0x2dc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00530218
add esp, 0x2d4
ret 8
Function at 0x403dc0
Capabilities:
Get common file path
Get file system object information

Disassembly:
sub esp, 0x2d4
mov eax, dword [0x58cb30]
xor eax, esp
mov dword [esp + 0x2d0], eax
push ebx
mov ebx, ecx
mov eax, dword [ebx]
test eax, eax
je 0x403eee
push esi
push 0
push 0
push 0x14b
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [esp + 8]
push eax
push 0
push 0
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
jne 0x403e68
push 0x4209
push 0x2b4
lea eax, [esp + 0x18]
push eax
push 0
push dword [esp + 0x18]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push eax
push 0
push 0x402
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [0x600948]
push dword [esp + 8]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x55770c]
call esi
push 0
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x28]
mov ecx, ebx
push eax
push dword [esp + 0x24]
push 0
push 1
push eax
call fcn.00403f10
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
jne 0x403e90
push eax
push eax
push dword [esp + 0x14]
mov ecx, ebx
call fcn.004036c0
test al, al
jne 0x403ee6
push ebp
push edi
call fcn.004fd290
mov ebp, eax
xor edi, edi
mov esi, 1
test ebp, esi
je 0x403edc
lea eax, [edi + 0x41]
push eax
push str._c:_
lea eax, [esp + 0x2d4]
push 0xa
push eax
call fcn.00404ce0
add esp, 0x10
lea eax, [esp + 0x2cc]
mov ecx, ebx
push 1
push 0xffffffffffffffff
push 2
push 0
push 0xffffffffffffffff
push 0
push 0
push eax
call fcn.00403f10
inc edi
rol esi, 1
cmp edi, 0x20
jl 0x403ea0
pop edi
pop ebp
mov ecx, ebx
call fcn.00404450
pop esi
mov ecx, dword [esp + 0x2d4]
pop ebx
xor ecx, esp
call fcn.00530218
add esp, 0x2d4
ret
Function at 0x403f10
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x2e4
mov eax, dword [0x58cb30]
xor eax, esp
mov dword [esp + 0x2e0], eax
push ebx
mov ebx, dword [esp + 0x2f0]
push ebp
mov ebp, dword [esp + 0x2f0]
push esi
mov esi, dword [esp + 0x304]
push edi
push 0x1008
mov dword [esp + 0x18], ecx
call fcn.0052ffdd
mov ecx, dword [esp + 0x304]
add esp, 4
mov edi, eax
mov dword [esp + 0x10], edi
push 0x800
push ebp
mov dword [edi], ebx
mov dword [edi + 4], ecx
call fcn.004bd740
push eax
lea ecx, [edi + 8]
push ecx
call fcn.004bdae0
cmp byte [esp + 0x314], 0
mov edi, dword [esp + 0x304]
jne 0x404000
cmp edi, 0xffffffff
je 0x403fb3
test esi, esi
jne 0x404000
xor eax, eax
cmp ebx, 2
sete al
lea eax, [eax*2 + 0x4201]
push eax
push 0x2b4
lea eax, [esp + 0x44]
push eax
push esi
push ebp
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
jmp 0x403fde
xor eax, eax
cmp ebx, 2
sete al
lea eax, [eax*2 + 0x4201]
push eax
push 0x2b4
lea eax, [esp + 0x44]
push eax
push 0
push ebp
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov edi, dword [esp + 0x40]
test esi, esi
jne 0x404000
lea esi, [esp + 0x48]
mov dword [esp + 0x24], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x18], 0x37
mov dword [esp + 0x20], esi
jmp 0x40402a
mov dword [esp + 0x24], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x18], 0x37
test esi, esi
je 0x404022
mov dword [esp + 0x20], esi
jmp 0x40402a
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [esp + 0x10]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x310]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x30c]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push 0
push 0x40b
mov dword [esp + 0x34], edi
push dword [eax]
mov dword [esp + 0x3c], edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x2f0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00530218
add esp, 0x2e4
ret 0x20
Function at 0x4040d0
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x2bc
mov eax, dword [0x58cb30]
xor eax, esp
mov dword [esp + 0x2b8], eax
mov eax, dword [esp + 0x2c4]
mov ecx, dword [esp + 0x2c0]
push esi
mov esi, dword [esp + 0x2d0]
cmp eax, 0x4e
jne 0x4041ea
mov eax, dword [esi + 8]
cmp eax, 0xfffffcd9
je 0x404141
cmp eax, 0xfffffcda
jne 0x404127
cmp dword [esi + 0x21c], 2
jne 0x404127
mov ecx, 0x5c63d4
call fcn.00404220
xor eax, eax
pop esi
mov ecx, dword [esp + 0x2b8]
xor ecx, esp
call fcn.00530218
add esp, 0x2bc
ret 0x10
mov eax, dword [esi + 0xc]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x2c]
push ebx
push edi
mov ebx, dword [eax]
cmp ebx, 4
jne 0x404159
mov edi, dword [eax + 4]
jmp 0x40415c
lea edi, [eax + 8]
mov eax, dword [esp + 0xc]
test al, 1
je 0x404196
xor eax, eax
cmp ebx, 4
sete al
lea eax, [eax*8 + 0x200]
push eax
push 0x2b4
lea eax, [esp + 0x18]
push eax
push 0
push edi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x404192
lea eax, [esp + 0x1c]
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0xc]
test al, 6
je 0x4041c7
xor eax, eax
cmp ebx, 4
sete al
lea eax, [eax*8 + 0x4001]
push eax
push 0x2b4
lea eax, [esp + 0x18]
push eax
push 0
push edi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [esp + 0x14]
mov dword [esi + 0x20], eax
mov dword [esi + 0x1c], eax
or dword [esi + 0xc], 0x10000000
xor eax, eax
pop edi
pop ebx
pop esi
mov ecx, dword [esp + 0x2b8]
xor ecx, esp
call fcn.00530218
add esp, 0x2bc
ret 0x10
push esi
push dword [esp + 0x2d0]
push eax
push ecx
call dword [sym.imp.USER32.dll_DefWindowProcW]
mov ecx, dword [esp + 0x2bc]
pop esi
xor ecx, esp
call fcn.00530218
add esp, 0x2bc
ret 0x10