joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412281
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x412290
pop dword [ebp - 0x4c]
mov eax, 0x4a81d866
sub eax, 0x4a40b5d6
sub dword [ebp - 0x4c], eax
push 0x40
push 0x1000
push 0x36d32
push 0
mov eax, 0xda333066
add eax, 0x260f5fc6
add eax, dword [ebp - 0x4c]
call dword [eax]
mov ecx, 0xc6ba96df
sub ecx, 0xc6ba57c2
mov ebx, eax
mov edx, 0x436e00
add edx, dword [ebp - 0x4c]
mov edi, 0x23ac5a6b
xor dword [ebp - 0x40], eax
mov esi, dword [edx]
xor dword [ebp - 8], ebx
add esi, edi
xor dword [ebp - 0x3c], ebx
mov dword [ebx], esi
mov dword [ebp - 0x24], 0x8389745c
add ebx, 0x2a32990f
add ebx, 0xd5cd66f5
add edx, 4
loop 0x4122e3
add eax, 0x505a696d
sub eax, 0x50597a26
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xe9bc67d6
add ecx, 0x1683982a
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x401db0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x4cd724]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x80c], 0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x401df7
mov ecx, dword [ebp + 0xc]
push ecx
push str.InstallToolbarRemote__s___File_doesnt_exist_
call fcn.00456a00
add esp, 8
mov eax, dword [ebp - 0x80c]
jmp 0x401f45
xor edx, edx
mov word [ebp - 0x808], dx
push 0x7fe
push 0
lea eax, [ebp - 0x806]
push eax
call fcn.004677c0
add esp, 0xc
mov ecx, dword [ebp + 0x10]
push ecx
push str._ctid_s__s__openuninstallpageFALSE__openwelcomedialogFALSE
push 0x400
lea edx, [ebp - 0x808]
push edx
call fcn.00467d96
add esp, 0x10
movzx eax, byte [ebp + 0x14]
cmp eax, 3
jne 0x401e57
push str.__ff
push 0x400
lea ecx, [ebp - 0x808]
push ecx
call fcn.00467c81
add esp, 0xc
jmp 0x401e70
push str.__ie
push 0x400
lea edx, [ebp - 0x808]
push edx
call fcn.00467c81
add esp, 0xc
cmp dword [ebp + 0x18], 0
je 0x401e91
push str.__DefaultSearchTRUE
push 0x400
lea eax, [ebp - 0x808]
push eax
call fcn.00467c81
add esp, 0xc
jmp 0x401eaa
push str.__DefaultSearchFALSE
push 0x400
lea ecx, [ebp - 0x808]
push ecx
call fcn.00467c81
add esp, 0xc
cmp dword [ebp + 0x1c], 0
je 0x401ecb
push str.__StartPageTRUE
push 0x400
lea edx, [ebp - 0x808]
push edx
call fcn.00467c81
add esp, 0xc
jmp 0x401ee4
push str.__StartPageFALSE
push 0x400
lea eax, [ebp - 0x808]
push eax
call fcn.00467c81
add esp, 0xc
mov dword [ebp - 4], 0
push 0
lea ecx, [ebp - 4]
push ecx
push 1
push 1
push 0x4abec0
push 0x4abec4
lea edx, [ebp - 0x808]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00454880
add esp, 0x24
mov dword [ebp - 0x80c], eax
mov edx, dword [ebp - 0x80c]
push edx
lea eax, [ebp - 0x808]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push str.InstallToolbarRemote__d___s___s___End__d_
call fcn.00456a00
add esp, 0x14
mov eax, dword [ebp - 0x80c]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004677af
mov esp, ebp
pop ebp
ret
Function at 0x408590
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x4acf28
push 0x83
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x408611
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x408611
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
cmp dword [ebp + 0xc], 0
ja 0x4085ef
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x408611
cmp dword [ebp + 0x10], 0
je 0x4085ff
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
push str.CheckDataRes____DATA_Resource_found_
call fcn.00456a00
add esp, 4
mov eax, dword [ebp - 8]
jmp 0x408620
push str.CheckDataRes____No_DATA_Resource_found_
call fcn.00456a00
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x408630
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00438830
add esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40879b
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
mov ecx, dword [ebp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40879b
mov dword [ebp - 0x18], 0
mov edx, dword [ebp - 8]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], 0x100000
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push str.ExtractRes__s___LgData_d_oct
call fcn.00456a00
add esp, 0xc
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0x14]
jbe 0x408776
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], 0
cmp dword [ebp - 0x24], 0
jbe 0x408774
cmp dword [0x4e7810], 0
jne 0x408774
push 0
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
push str.ExtractRes_____WriteFile__d____d
call fcn.00456a00
add esp, 0xc
mov edx, dword [ebp - 0x28]
add edx, dword [ebp - 0x18]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
xor ecx, ecx
push ecx
push eax
mov ecx, 0x4cf9c0
call fcn.004126f0
mov edx, dword [ebp - 0x24]
cmp edx, dword [ebp - 0x14]
jbe 0x40874e
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
jmp 0x408750
jmp 0x408774
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [ebp - 0x14]
jbe 0x408760
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x20], edx
jmp 0x408766
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 0x18]
mov dword [ebp - 0xc], ecx
jmp 0x4086da
jmp 0x408791
push 0
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x409bc0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x4cd724]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x128], 0x11c
push 0x118
push 0
lea eax, [ebp - 0x124]
push eax
call fcn.004677c0
add esp, 0xc
lea ecx, [ebp - 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp + 8], 0
je 0x409c38
cmp dword [ebp - 0x124], 6
jne 0x409c24
cmp dword [ebp - 0x120], 0
jne 0x409c24
mov dword [ebp - 0x12c], 1
jmp 0x409c2e
mov dword [ebp - 0x12c], 0
mov eax, dword [ebp - 0x12c]
jmp 0x409c44
cmp dword [ebp - 0x124], 6
sbb eax, eax
add eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004677af
mov esp, ebp
pop ebp
ret

Function at 0x409c60
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x4cd724]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x128], 0x11c
push 0x118
push 0
lea eax, [ebp - 0x124]
push eax
call fcn.004677c0
add esp, 0xc
lea ecx, [ebp - 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp + 8], 0
je 0x409cd8
cmp dword [ebp - 0x124], 6
jne 0x409cc4
cmp dword [ebp - 0x120], 1
jne 0x409cc4
mov dword [ebp - 0x12c], 1
jmp 0x409cce
mov dword [ebp - 0x12c], 0
mov eax, dword [ebp - 0x12c]
jmp 0x409d0f
cmp dword [ebp - 0x124], 6
ja 0x409cff
cmp dword [ebp - 0x124], 6
jne 0x409cf3
cmp dword [ebp - 0x120], 0
ja 0x409cff
mov dword [ebp - 0x130], 0
jmp 0x409d09
mov dword [ebp - 0x130], 1
mov eax, dword [ebp - 0x130]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004677af
mov esp, ebp
pop ebp
ret
Function at 0x40a910
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp dword [ebp + 8], eax
jne 0x40a934
mov dword [ebp - 4], 1
jmp 0x40a9cb
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [ebp - 0xc], eax
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 8]
je 0x40a996
push 1
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov dword [ebp - 4], eax
push 0
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_BringWindowToTop]
jmp 0x40a9a3
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x40a9bf
push 9
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x40a9cb
push 5
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x40ab20
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x4cd724]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
push 0x11c
push 0
lea eax, [ebp - 0x128]
push eax
call fcn.004677c0
add esp, 0xc
mov dword [ebp - 0x128], 0x11c
lea ecx, [ebp - 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x40ab8a
mov dword [ebp - 0x128], 0x114
lea edx, [ebp - 0x128]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x40ab8a
xor eax, eax
jmp 0x40ac02
mov eax, dword [ebp + 0x10]
and eax, 0x80000
je 0x40abaf
cmp dword [ebp - 0x124], 5
jb 0x40aba6
cmp dword [ebp - 0x120], 1
jae 0x40abaf
cmp dword [ebp - 0x124], 6
jbe 0x40abff
push str.User32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0
je 0x40abff
push str.AnimateWindow
mov ecx, dword [ebp - 0x12c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0
je 0x40abff
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [ebp - 0x130]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004677af
mov esp, ebp
pop ebp
ret
Function at 0x40ac10
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40acb6
movzx ecx, byte [ebp + 0xc]
test ecx, ecx
je 0x40ac6e
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x40ac6c
push 5
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [ebp + 8]
push eax
call fcn.0040a910
add esp, 4
jmp 0x40acb6
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40acb6
cmp dword [ebp + 0x10], 0
je 0x40ac8a
mov edx, dword [ebp + 0x10]
mov dword [ebp - 4], edx
jmp 0x40ac91
mov dword [ebp - 4], 0x1f4
push 0x50004
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040ab20
add esp, 0xc
test eax, eax
jne 0x40acb6
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov esp, ebp
pop ebp
ret
Function at 0x40bee0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
cmp dword [ebp + 0xc], 0
je 0x40c01c
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
push 1
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
jne 0x40bf32
cmp dword [ebp + 0x14], 0
je 0x40bf2b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
xor eax, eax
jmp 0x40c059
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x40bf58
cmp dword [ebp + 0x14], 0
je 0x40bf51
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
xor eax, eax
jmp 0x40c059
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40bffe
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40bff3
mov eax, dword [ebp - 0x14]
push eax
call fcn.00468280
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40bfda
mov ecx, dword [ebp - 8]
add ecx, 1
push ecx
call fcn.004683d7
add esp, 4
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
je 0x40bfd3
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 8]
add edx, 1
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
call fcn.00469f5d
add esp, 0xc
mov dword [ebp - 4], 1
jmp 0x40bfda
mov dword [ebp - 0xc], 8
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test eax, eax
jne 0x40bff1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
jmp 0x40bffc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
jmp 0x40c007
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
call dword [sym.imp.USER32.dll_CloseClipboard]
test eax, eax
jne 0x40c01a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
jmp 0x40c023
mov dword [ebp - 0xc], 0x57
cmp dword [ebp + 0x10], 0
je 0x40c031
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
cmp dword [ebp + 0x14], 0
je 0x40c03f
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0xc]
mov dword [edx], eax
cmp dword [ebp - 0xc], 0
je 0x40c056
mov ecx, dword [ebp - 0xc]
push ecx
push str.GetClipboardText___returns_with_the_error_code__d
call fcn.00456a00
add esp, 8
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x40c3a0
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4cd724]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
mov byte [ebp - 0x18], 0
mov byte [ebp - 0x17], 0
mov byte [ebp - 0x16], 0
mov byte [ebp - 0x15], 0
mov byte [ebp - 0x14], 0
mov byte [ebp - 0x13], 5
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea ecx, [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x40c423
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x40c421
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
jmp 0x40c42c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 4], 0
je 0x40c443
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [ebp - 4], 0
cmp dword [ebp - 0xc], 0
je 0x40c45d
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], edx
push 0x4c6b94
lea eax, [ebp - 0x1c]
push eax
call fcn.00467f72
mov ecx, dword [ebp - 8]
push ecx
push str.IsRunAsAdmin_____d
call fcn.00456e30
add esp, 8
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004677af
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x4cd724]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 1
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jle 0x40c73b
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov dword [ebp + 8], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + eax*2 - 2]
cmp edx, 0x5c
jne 0x40c6c2
xor eax, eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov word [edx + ecx*2 - 2], ax
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x40c6d0
xor eax, eax
jmp 0x40c745
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40c739
push 0x5c
mov eax, dword [ebp + 8]
push eax
call fcn.0040fe40
add esp, 8
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
je 0x40c724
xor ecx, ecx
mov edx, dword [ebp - 0x21c]
mov word [edx], cx
mov eax, dword [ebp + 8]
push eax
call fcn.0040c660
add esp, 4
mov dword [ebp - 8], eax
mov ecx, 0x5c
mov edx, dword [ebp - 0x21c]
mov word [edx], cx
cmp dword [ebp - 8], 0
je 0x40c739
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 8], eax
jmp 0x40c742
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004677af
mov esp, ebp
pop ebp
ret
Function at 0x40ca90
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4cd724]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x210]
push eax
push 0
push 0
mov ecx, dword [ebp + 8]
or ecx, 0x8000
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x40cadf
lea edx, [ebp - 0x210]
push edx
push str.CreateFreeDirectory____SHGetFolderPath__s__failed_
call fcn.00456a00
add esp, 8
xor eax, eax
jmp 0x40cb94
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax]
cmp ecx, 0x5c
je 0x40cafc
push 0x4adea8
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x5c
mov edx, dword [ebp + 0xc]
push edx
call fcn.0046a90d
add esp, 8
test eax, eax
je 0x40cb5e
push 0x5c
lea eax, [ebp - 0x210]
push eax
call fcn.0040fe40
add esp, 8
mov dword [ebp - 0x214], eax
xor ecx, ecx
mov edx, dword [ebp - 0x214]
mov word [edx], cx
lea eax, [ebp - 0x210]
push eax
call fcn.0040c660
add esp, 4
mov ecx, 0x5c
mov edx, dword [ebp - 0x214]
mov word [edx], cx
push 0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40cb7e
push str.CreateFreeDirectory____CreateDirectory_failed_
call fcn.00456e30
add esp, 4
push 3
push 0x10000000
lea ecx, [ebp - 0x210]
push ecx
call fcn.0040c880
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004677af
mov esp, ebp
pop ebp
ret
Function at 0x40d2e0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x4cd724]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 1
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 4], eax
xor ecx, ecx
mov word [ebp - 0x218], cx
push 0x206
push 0
lea edx, [ebp - 0x216]
push edx
call fcn.004677c0
add esp, 0xc
cmp dword [ebp - 4], 0
jle 0x40d404
mov eax, dword [ebp + 8]
push eax
push 0x104
lea ecx, [ebp - 0x218]
push ecx
call fcn.0046a10d
add esp, 0xc
mov edx, dword [ebp - 4]
movzx eax, word [ebp + edx*2 - 0x21a]
cmp eax, 0x5c
jne 0x40d365
xor ecx, ecx
mov edx, dword [ebp - 4]
mov word [ebp + edx*2 - 0x21a], cx
movzx eax, word [ebp - 0x218]
test eax, eax
jne 0x40d377
xor eax, eax
jmp 0x40d407
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40d404
push 0x5c
lea edx, [ebp - 0x218]
push edx
call fcn.0040fe40
add esp, 8
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
je 0x40d3d4
xor eax, eax
mov ecx, dword [ebp - 0x21c]
mov word [ecx], ax
lea edx, [ebp - 0x218]
push edx
call fcn.0040d2e0
add esp, 4
mov dword [ebp - 8], eax
mov eax, 0x5c
mov ecx, dword [ebp - 0x21c]
mov word [ecx], ax
cmp dword [ebp - 8], 0
je 0x40d404
push 0
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
lea ecx, [ebp - 0x218]
push ecx
push str.CreateAllDirectory__s____d
call fcn.00456a00
add esp, 0xc
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004677af
mov esp, ebp
pop ebp
ret
Function at 0x40d420
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x4cd724]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 1
mov eax, dword [ebp + 8]
push eax
call fcn.00468280
add esp, 4
mov dword [ebp - 4], eax
mov byte [ebp - 0x118], 0
push 0x103
push 0
lea ecx, [ebp - 0x117]
push ecx
call fcn.004677c0
add esp, 0xc
cmp dword [ebp - 4], 0
jbe 0x40d520
mov edx, dword [ebp + 8]
push edx
push 0x104
lea eax, [ebp - 0x118]
push eax
call fcn.00469f5d
add esp, 0xc
mov ecx, dword [ebp - 4]
movsx edx, byte [ebp + ecx - 0x119]
cmp edx, 0x5c
jne 0x40d4a3
mov eax, dword [ebp - 4]
mov byte [ebp + eax - 0x119], 0
movsx ecx, byte [ebp - 0x118]
test ecx, ecx
jne 0x40d4b2
xor eax, eax
jmp 0x40d523
lea edx, [ebp - 0x118]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40d520
push 0x5c
lea eax, [ebp - 0x118]
push eax
call fcn.0040fe60
add esp, 8
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
je 0x40d508
mov ecx, dword [ebp - 0x11c]
mov byte [ecx], 0
lea edx, [ebp - 0x118]
push edx
call fcn.0040d420
add esp, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x11c]
mov byte [eax], 0x5c
cmp dword [ebp - 8], 0
je 0x40d520
push 0
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004677af
mov esp, ebp
pop ebp
ret