joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401d50
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x4b1120]
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 0x401d97
mov ecx, dword [ebp + 0xc]
push ecx
push str.InstallToolbarRemote__s___File_doesnt_exist_
call fcn.00437970
add esp, 8
mov eax, dword [ebp - 0x80c]
jmp 0x401ee5
xor edx, edx
mov word [ebp - 0x808], dx
push 0x7fe
push 0
lea eax, [ebp - 0x806]
push eax
call fcn.00447660
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.00447c36
add esp, 0x10
movzx eax, byte [ebp + 0x14]
cmp eax, 3
jne 0x401df7
push str.__ff
push 0x400
lea ecx, [ebp - 0x808]
push ecx
call fcn.00447b21
add esp, 0xc
jmp 0x401e10
push str.__ie
push 0x400
lea edx, [ebp - 0x808]
push edx
call fcn.00447b21
add esp, 0xc
cmp dword [ebp + 0x18], 0
je 0x401e31
push str.__DefaultSearchTRUE
push 0x400
lea eax, [ebp - 0x808]
push eax
call fcn.00447b21
add esp, 0xc
jmp 0x401e4a
push str.__DefaultSearchFALSE
push 0x400
lea ecx, [ebp - 0x808]
push ecx
call fcn.00447b21
add esp, 0xc
cmp dword [ebp + 0x1c], 0
je 0x401e6b
push str.__StartPageTRUE
push 0x400
lea edx, [ebp - 0x808]
push edx
call fcn.00447b21
add esp, 0xc
jmp 0x401e84
push str.__StartPageFALSE
push 0x400
lea eax, [ebp - 0x808]
push eax
call fcn.00447b21
add esp, 0xc
mov dword [ebp - 4], 0
push 0
lea ecx, [ebp - 4]
push ecx
push 1
push 1
push 0x489e80
push 0x489e84
lea edx, [ebp - 0x808]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00436040
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.00437970
add esp, 0x14
mov eax, dword [ebp - 0x80c]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00447645
mov esp, ebp
pop ebp
ret
Function at 0x408da0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x48af90
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 0x408e21
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 0x408e21
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 0x408dff
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x408e21
cmp dword [ebp + 0x10], 0
je 0x408e0f
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
push str.CheckDataRes____DATA_Resource_found_
call fcn.00437970
add esp, 4
mov eax, dword [ebp - 8]
jmp 0x408e30
push str.CheckDataRes____No_DATA_Resource_found_
call fcn.00437970
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x408e40
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.0041af20
add esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x408fa4
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 0x408fa4
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.00437970
add esp, 0xc
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0x14]
jbe 0x408f7f
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 0x408f7d
cmp dword [0x4c9c48], 0
jne 0x408f7d
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.00437970
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, 0x4b34a8
call fcn.0040fc60
mov edx, dword [ebp - 0x24]
cmp edx, dword [ebp - 0x14]
jbe 0x408f57
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
jmp 0x408f59
jmp 0x408f7d
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [ebp - 0x14]
jbe 0x408f69
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x20], edx
jmp 0x408f6f
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 0x408ee3
jmp 0x408f9a
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 0x40a3a0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x4b1120]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
push 0
lea eax, [ebp - 0x128]
push eax
call fcn.00447660
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 0x40a403
mov dword [ebp - 0x128], 0x114
lea edx, [ebp - 0x128]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x40a403
xor eax, eax
jmp 0x40a42b
mov eax, dword [ebp - 0x124]
push eax
push str.IsVistaOrMore____MajorVersion_d
call fcn.00437970
add esp, 8
cmp dword [ebp - 0x124], 6
jb 0x40a429
mov eax, 1
jmp 0x40a42b
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00447645
mov esp, ebp
pop ebp
ret

Function at 0x40a440
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x4b1120]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
push 0
lea eax, [ebp - 0x128]
push eax
call fcn.00447660
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 0x40a4a3
mov dword [ebp - 0x128], 0x114
lea edx, [ebp - 0x128]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x40a4a3
xor eax, eax
jmp 0x40a4e4
mov eax, dword [ebp - 0x120]
push eax
mov ecx, dword [ebp - 0x124]
push ecx
push str.IsSevenOrMore____MajorVersion_d_osvi.dwMinorVersion_d
call fcn.00437da0
add esp, 0xc
cmp dword [ebp - 0x124], 6
ja 0x40a4d9
cmp dword [ebp - 0x124], 6
jne 0x40a4e2
cmp dword [ebp - 0x120], 0
jbe 0x40a4e2
mov eax, 1
jmp 0x40a4e4
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00447645
mov esp, ebp
pop ebp
ret
Function at 0x40a640
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 0x40a664
mov dword [ebp - 4], 1
jmp 0x40a6fb
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 0x40a6c6
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 0x40a6d3
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 0x40a6ef
push 9
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x40a6fb
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 0x40a840
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x4b1120]
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.00447660
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 0x40a8aa
mov dword [ebp - 0x128], 0x114
lea edx, [ebp - 0x128]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x40a8aa
xor eax, eax
jmp 0x40a922
mov eax, dword [ebp + 0x10]
and eax, 0x80000
je 0x40a8cf
cmp dword [ebp - 0x124], 5
jb 0x40a8c6
cmp dword [ebp - 0x120], 1
jae 0x40a8cf
cmp dword [ebp - 0x124], 6
jbe 0x40a91f
push str.User32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0
je 0x40a91f
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 0x40a91f
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.00447645
mov esp, ebp
pop ebp
ret
Function at 0x40a930
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 0x40a9d6
movzx ecx, byte [ebp + 0xc]
test ecx, ecx
je 0x40a98e
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x40a98c
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.0040a640
add esp, 4
jmp 0x40a9d6
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40a9d6
cmp dword [ebp + 0x10], 0
je 0x40a9aa
mov edx, dword [ebp + 0x10]
mov dword [ebp - 4], edx
jmp 0x40a9b1
mov dword [ebp - 4], 0x1f4
push 0x50004
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040a840
add esp, 0xc
test eax, eax
jne 0x40a9d6
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov esp, ebp
pop ebp
ret
Function at 0x40bae0
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 0x40bc1c
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
push 1
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
jne 0x40bb32
cmp dword [ebp + 0x14], 0
je 0x40bb2b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
xor eax, eax
jmp 0x40bc59
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x40bb58
cmp dword [ebp + 0x14], 0
je 0x40bb51
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
xor eax, eax
jmp 0x40bc59
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40bbfe
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 0x40bbf3
mov eax, dword [ebp - 0x14]
push eax
call fcn.004480c0
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40bbda
mov ecx, dword [ebp - 8]
add ecx, 1
push ecx
call fcn.00448217
add esp, 4
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
je 0x40bbd3
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.00449d9d
add esp, 0xc
mov dword [ebp - 4], 1
jmp 0x40bbda
mov dword [ebp - 0xc], 8
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test eax, eax
jne 0x40bbf1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
jmp 0x40bbfc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
jmp 0x40bc07
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
call dword [sym.imp.USER32.dll_CloseClipboard]
test eax, eax
jne 0x40bc1a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
jmp 0x40bc23
mov dword [ebp - 0xc], 0x57
cmp dword [ebp + 0x10], 0
je 0x40bc31
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
cmp dword [ebp + 0x14], 0
je 0x40bc3f
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0xc]
mov dword [edx], eax
cmp dword [ebp - 0xc], 0
je 0x40bc56
mov ecx, dword [ebp - 0xc]
push ecx
push str.GetClipboardText___returns_with_the_error_code__d
call fcn.00437970
add esp, 8
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x40bfa0
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4b1120]
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 0x40c023
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 0x40c021
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
jmp 0x40c02c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 4], 0
je 0x40c043
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 0x40c05d
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], edx
push 0x4ad284
lea eax, [ebp - 0x1c]
push eax
call fcn.00447e1d
mov ecx, dword [ebp - 8]
push ecx
push str.IsRunAsAdmin_____d
call fcn.00437da0
add esp, 8
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00447645
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x4b1120]
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 0x40c33b
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 0x40c2c2
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 0x40c2d0
xor eax, eax
jmp 0x40c345
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40c339
push 0x5c
mov eax, dword [ebp + 8]
push eax
call fcn.0040e7d0
add esp, 8
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
je 0x40c324
xor ecx, ecx
mov edx, dword [ebp - 0x21c]
mov word [edx], cx
mov eax, dword [ebp + 8]
push eax
call fcn.0040c260
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 0x40c339
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 8], eax
jmp 0x40c342
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00447645
mov esp, ebp
pop ebp
ret
Function at 0x40c690
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4b1120]
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 0x40c6df
lea edx, [ebp - 0x210]
push edx
push str.CreateFreeDirectory____SHGetFolderPath__s__failed_
call fcn.00437970
add esp, 8
xor eax, eax
jmp 0x40c794
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax]
cmp ecx, 0x5c
je 0x40c6fc
push 0x48b6b8
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.0044a60d
add esp, 8
test eax, eax
je 0x40c75e
push 0x5c
lea eax, [ebp - 0x210]
push eax
call fcn.0040e7d0
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.0040c260
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 0x40c77e
push str.CreateFreeDirectory____CreateDirectory_failed_
call fcn.00437da0
add esp, 4
push 3
push 0x10000000
lea ecx, [ebp - 0x210]
push ecx
call fcn.0040c480
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00447645
mov esp, ebp
pop ebp
ret
Function at 0x40cdb0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x4b1120]
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.00447660
add esp, 0xc
cmp dword [ebp - 4], 0
jle 0x40ced4
mov eax, dword [ebp + 8]
push eax
push 0x104
lea ecx, [ebp - 0x218]
push ecx
call fcn.0044a00d
add esp, 0xc
mov edx, dword [ebp - 4]
movzx eax, word [ebp + edx*2 - 0x21a]
cmp eax, 0x5c
jne 0x40ce35
xor ecx, ecx
mov edx, dword [ebp - 4]
mov word [ebp + edx*2 - 0x21a], cx
movzx eax, word [ebp - 0x218]
test eax, eax
jne 0x40ce47
xor eax, eax
jmp 0x40ced7
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40ced4
push 0x5c
lea edx, [ebp - 0x218]
push edx
call fcn.0040e7d0
add esp, 8
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
je 0x40cea4
xor eax, eax
mov ecx, dword [ebp - 0x21c]
mov word [ecx], ax
lea edx, [ebp - 0x218]
push edx
call fcn.0040cdb0
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 0x40ced4
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.00437970
add esp, 0xc
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00447645
mov esp, ebp
pop ebp
ret
Function at 0x40cef0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x4b1120]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 1
mov eax, dword [ebp + 8]
push eax
call fcn.004480c0
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.00447660
add esp, 0xc
cmp dword [ebp - 4], 0
jbe 0x40cff0
mov edx, dword [ebp + 8]
push edx
push 0x104
lea eax, [ebp - 0x118]
push eax
call fcn.00449d9d
add esp, 0xc
mov ecx, dword [ebp - 4]
movsx edx, byte [ebp + ecx - 0x119]
cmp edx, 0x5c
jne 0x40cf73
mov eax, dword [ebp - 4]
mov byte [ebp + eax - 0x119], 0
movsx ecx, byte [ebp - 0x118]
test ecx, ecx
jne 0x40cf82
xor eax, eax
jmp 0x40cff3
lea edx, [ebp - 0x118]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40cff0
push 0x5c
lea eax, [ebp - 0x118]
push eax
call fcn.0040e7f0
add esp, 8
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
je 0x40cfd8
mov ecx, dword [ebp - 0x11c]
mov byte [ecx], 0
lea edx, [ebp - 0x118]
push edx
call fcn.0040cef0
add esp, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x11c]
mov byte [eax], 0x5c
cmp dword [ebp - 8], 0
je 0x40cff0
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.00447645
mov esp, ebp
pop ebp
ret
Function at 0x40d490
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x468
mov eax, dword [0x4b1120]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
mov word [ebp - 0x468], ax
push 0x206
push 0
lea ecx, [ebp - 0x466]
push ecx
call fcn.00447660
add esp, 0xc
mov dword [ebp - 8], 0
push 0x48b920
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x468]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0x260]
push ecx
lea edx, [ebp - 0x468]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40d502
cmp dword [ebp - 0xc], 0xffffffff
jne 0x40d509
xor eax, eax
jmp 0x40d613
lea eax, [ebp - 0x234]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
movzx edx, word [ecx + 2]
test edx, edx
jne 0x40d52f
mov eax, dword [ebp - 4]
movzx ecx, word [eax]
cmp ecx, 0x2e
jne 0x40d52f
jmp 0x40d5ed
mov edx, dword [ebp - 4]
movzx eax, word [edx + 4]
test eax, eax
jne 0x40d556
mov ecx, dword [ebp - 4]
movzx edx, word [ecx]
cmp edx, 0x2e
jne 0x40d556
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 2]
cmp ecx, 0x2e
jne 0x40d556
jmp 0x40d5ed
lea edx, [ebp - 0x234]
push edx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x468]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov edx, dword [ebp - 0x260]
and edx, 0x10
je 0x40d595
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x468]
push edx
call fcn.0040d490
add esp, 0xc
mov dword [ebp - 8], eax
jmp 0x40d5cd
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x234]
push ecx
call fcn.0044b2ae
add esp, 8
test eax, eax
jne 0x40d5cd
mov dword [ebp - 8], 1
lea edx, [ebp - 0x468]
push edx
push 0x104
mov eax, dword [ebp + 0x10]
push eax
call fcn.0044a00d
add esp, 0xc
jmp 0x40d606
mov ecx, dword [ebp - 8]
push ecx
lea edx, [ebp - 0x468]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str.FindMyFile__s___s___File_s_d
call fcn.00437970
add esp, 0x14
lea edx, [ebp - 0x260]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40d509
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00447645
mov esp, ebp
pop ebp
ret