joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a6cb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x41c00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x800
xor esi, esi
lea eax, [ebp - 0x808]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x808]
push esi
push 0x1a
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40a740
push 0x4134c4
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x80c]
mov dword [ebp - 0x80c], esi
lea ecx, [ebp - 0x808]
call fcn.00409fdc
test eax, eax
jne 0x40a740
cmp dword [ebp - 0x80c], esi
jne 0x40a743
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040d390
leave
ret
Function at 0x40ad13
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x41c00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
test edi, edi
je 0x40adb5
push 0x400
xor ebx, ebx
lea eax, [ebp - 0x404]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov esi, ebx
lea eax, [ebp - 0x404]
push eax
push ebx
push ebx
push dword [esi + 0x414fd0]
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x40adad
lea ecx, [ebp - 0x404]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40ad6f
sub ecx, edx
je 0x40adad
cmp byte [ebp + ecx - 0x405], 0x5c
jne 0x40ad97
lea eax, [ecx - 1]
mov ecx, eax
cmp eax, 0x400
jae 0x40adcb
mov byte [ebp + eax - 0x404], bl
push ecx
lea eax, [ebp - 0x404]
push eax
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x40adc6
add esi, 4
cmp esi, 8
jb 0x40ad4c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d390
leave
ret
xor eax, eax
inc eax
jmp 0x40adb7
call fcn.0040d9a0
int3

Function at 0x40b0a4
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
mov eax, dword [0x41c00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
cmp dword [edi + 0xc30], esi
je 0x40b0d6
cmp dword [edi + 0xc34], esi
je 0x40b0d6
xor eax, eax
inc eax
jmp 0x40b205
cmp dword [ebp + 8], esi
jne 0x40b0e2
xor eax, eax
jmp 0x40b205
push 0x410
lea eax, [ebp - 0x418]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
pop ecx
pop ecx
push dword [ebp + 8]
mov edx, 0x82
push ecx
lea ecx, [ebp - 0x418]
call fcn.0040ae2a
mov ebx, 0x104
lea ecx, [ebp - 0x418]
push 0x4145a4
mov edx, ebx
call fcn.0040add1
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
test eax, eax
jne 0x40b14a
push str._CptShareAPIWrapper::Init__Failed_to_call_SetDllDirectory_to:
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x410
lea eax, [ebp - 0x828]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
pop ecx
pop ecx
lea eax, [ebp - 0x418]
mov edx, 0x82
push eax
push ecx
lea ecx, [ebp - 0x828]
call fcn.0040ae2a
push str.ucrtbase.dll
mov edx, ebx
lea ecx, [ebp - 0x828]
call fcn.0040add1
push 8
push esi
lea eax, [ebp - 0x828]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push str.CptShare.dll
mov edx, ebx
lea ecx, [ebp - 0x418]
call fcn.0040add1
push ecx
lea ecx, [ebp - 0x418]
call fcn.0040aee4
mov ecx, eax
lea eax, [edi + 0xc34]
mov dword [edi + 0xc30], ecx
mov dword [eax], esi
test ecx, ecx
je 0x40b1f4
push str.cpt_create_helper
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
lea eax, [edi + 0xc34]
test ebx, ebx
je 0x40b1f4
push eax
mov ecx, ebx
call dword [0x411650]
call ebx
pop ecx
lea eax, [edi + 0xc34]
cmp dword [edi + 0xc30], esi
je 0x40b203
cmp dword [eax], esi
je 0x40b203
xor esi, esi
inc esi
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d390
leave
ret 8
Function at 0x40b216
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x41c00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x40b2da
mov ecx, esi
xor edi, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x40b23d
sub ecx, edx
sar ecx, 1
je 0x40b2da
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40b2da
push 0x410
lea eax, [ebp - 0x414]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
push 0x207
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x414]
push eax
push edi
push 0x411cb4
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x414]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x40b2ce
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40b2da
lea esi, [ebp - 0x414]
push 4
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x40b2dd
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040d390
leave
ret 4
Function at 0x40b570
Capabilities:
Create process on windows

Disassembly:
push 0x5c
mov eax, 0x40fe40
call fcn.0040e688
push ecx
lea ecx, [ebp - 0x2c]
call dword [sym.imp.Cmmlib.dll_public:_void___thiscall_Cmm::CStringT_wchar_t_::constructor_class_Cmm::CStringT_wchar_t__const__]
xor ebx, ebx
lea ecx, [ebp - 0x2c]
push 0x4145a4
mov dword [ebp - 4], ebx
call dword [sym.imp.Cmmlib.dll_public:_class_Cmm::CStringT_wchar_t_____thiscall_Cmm::CStringT_wchar_t_::operator_wchar_t_const__]
push str.Installer.exe
lea ecx, [ebp - 0x64]
call dword [sym.imp.Cmmlib.dll_public:_void___thiscall_Cmm::CStringT_wchar_t_::constructor_wchar_t_const__]
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call dword [sym.imp.Cmmlib.dll_public:_class_Cmm::CStringT_wchar_t_____thiscall_Cmm::CStringT_wchar_t_::operator_class_Cmm::CStringT_wchar_t__const__]
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], bl
call dword [sym.imp.Cmmlib.dll_public_virtual:_void___thiscall_Cmm::CStringT_wchar_t_::destructor_void_]
push str._upgrade
lea ecx, [ebp - 0x48]
call dword [sym.imp.Cmmlib.dll_public:_void___thiscall_Cmm::CStringT_wchar_t_::constructor_wchar_t_const__]
mov byte [ebp - 4], 2
call dword [sym.imp.Cmmlib.dll_public:_static_class_Cmm::CommandLine____cdecl_Cmm::CommandLine::ForCurrentProcess_void_]
mov esi, eax
test esi, esi
je 0x40b5f7
push str.___prevParam
lea ecx, [ebp - 0x48]
call dword [sym.imp.Cmmlib.dll_public:_class_Cmm::CStringT_wchar_t_____thiscall_Cmm::CStringT_wchar_t_::operator_wchar_t_const__]
push esi
lea ecx, [ebp - 0x48]
call dword [sym.imp.Cmmlib.dll_public:_class_Cmm::CStringT_wchar_t_____thiscall_Cmm::CStringT_wchar_t_::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
call fcn.004010b0
test eax, eax
jne 0x40b618
lea ecx, [ebp - 0x2c]
call dword [sym.imp.Cmmlib.dll_public:_wchar_t_const____thiscall_Cmm::CStringT_wchar_t_::c_str_void_const]
push ebx
xor edx, edx
mov ecx, eax
call fcn.0040180c
pop ecx
test eax, eax
je 0x40b63f
push 1
push ebx
lea ecx, [ebp - 0x48]
call dword [sym.imp.Cmmlib.dll_public:_wchar_t_const____thiscall_Cmm::CStringT_wchar_t_::c_str_void_const]
push eax
lea ecx, [ebp - 0x2c]
call dword [sym.imp.Cmmlib.dll_public:_wchar_t_const____thiscall_Cmm::CStringT_wchar_t_::operator_wchar_t_const__void_const]
push eax
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ebx, ebx
cmp eax, 0x20
setg bl
lea ecx, [ebp - 0x48]
call dword [sym.imp.Cmmlib.dll_public_virtual:_void___thiscall_Cmm::CStringT_wchar_t_::destructor_void_]
lea ecx, [ebp - 0x2c]
call dword [sym.imp.Cmmlib.dll_public_virtual:_void___thiscall_Cmm::CStringT_wchar_t_::destructor_void_]
mov eax, ebx
call fcn.0040e643
ret
Function at 0x40b659
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x41c00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x14]
mov word [ebp - 8], 0x500
push eax
mov esi, ecx
lea eax, [ebp - 0xc]
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push 0x220
push 0x20
push 2
push eax
mov dword [ebp - 0xc], ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x40b6be
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push esi
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
neg eax
sbb eax, eax
and dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x10]
test eax, eax
mov ecx, dword [ebp - 4]
setne al
xor ecx, ebp
pop esi
call fcn.0040d390
leave
ret

Function at 0x40b6ce
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
lea eax, [ebp - 8]
xor ebx, ebx
push eax
push 0xf01ff
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40b6fb
xor al, al
jmp 0x40b772
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
push 4
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 1
push eax
push 0x12
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
cmp dword [ebp - 0xc], 3
jne 0x40b741
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 0x14]
push eax
push 0x13
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x40b750
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], ecx
jmp 0x40b753
lea eax, [ebp - 4]
push eax
push 2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x40b767
call fcn.0040b659
push dword [ebp - 4]
mov bl, al
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop ebx
leave
ret
Function at 0x40b775
Capabilities:
Encode data using xor

Disassembly:
push 0x28
mov eax, 0x40fe7e
call fcn.0040e688
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x30], edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], edi
call dword [sym.imp.Cmmlib.dll_public:_void___thiscall_Cmm::CStringT_wchar_t_::constructor_void_]
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
push esi
call dword [sym.imp.Cmmlib.dll_unsigned_char____cdecl_Cmm::base64Decode_class_Cmm::CStringT_wchar_t__const___unsigned_int__]
mov dword [ebp - 0x34], eax
pop ecx
pop ecx
test eax, eax
je 0x40b7fb
mov ecx, dword [ebp - 0x30]
test cl, 1
jne 0x40b7f3
xor esi, esi
mov bl, 1
mov edx, esi
test ecx, ecx
je 0x40b7d2
xor byte [edx + eax], bl
inc bl
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, dword [ebp - 0x34]
cmp edx, ecx
jb 0x40b7c2
shr ecx, 1
cmp word [eax + ecx*2 - 2], si
je 0x40b7e7
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.Cmmlib.dll_void___cdecl_Cmm::base64FreeDecodeBuffer_unsigned_char___]
jmp 0x40b7fa
push eax
lea ecx, [ebp - 0x2c]
call dword [sym.imp.Cmmlib.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_Cmm::CStringT_wchar_t_::assign_wchar_t_const__]
jmp 0x40b7db
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
call dword [sym.imp.Cmmlib.dll_public:_void___thiscall_Cmm::CStringT_wchar_t_::constructor_class_Cmm::CStringT_wchar_t__const__]
lea ecx, [ebp - 0x2c]
call dword [sym.imp.Cmmlib.dll_public_virtual:_void___thiscall_Cmm::CStringT_wchar_t_::destructor_void_]
mov eax, edi
call fcn.0040e643
ret

Function at 0x40b818
Capabilities:
Get common file path

Disassembly:
push 0x424
mov eax, 0x40fed8
call fcn.0040e688
mov esi, ecx
mov dword [ebp - 0x42c], esi
xor ebx, ebx
lea eax, [ebp - 0x424]
push 0x412
mov dword [ebp - 4], ebx
push ebx
mov dword [ebp - 0x430], esi
push eax
mov dword [ebp - 0x428], ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x424]
push 0x208
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.system32msiexec.exe
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov edi, 0x415164
mov ecx, esi
push edi
call dword [sym.imp.Cmmlib.dll_public:_void___thiscall_Cmm::CStringT_wchar_t_::constructor_wchar_t_const__]
lea eax, [ebp - 0x424]
mov dword [ebp - 4], ebx
push eax
mov ecx, esi
mov dword [ebp - 0x428], 1
call dword [sym.imp.Cmmlib.dll_public:_class_Cmm::CStringT_wchar_t_____thiscall_Cmm::CStringT_wchar_t_::operator_wchar_t_const__]
push edi
mov ecx, esi
call dword [sym.imp.Cmmlib.dll_public:_class_Cmm::CStringT_wchar_t_____thiscall_Cmm::CStringT_wchar_t_::operator_wchar_t_const__]
mov eax, esi
call fcn.0040e643
ret
Function at 0x4028a9
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x42a008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x414]
push edi
push 0x410
push 0
push eax
mov edi, ecx
call fcn.0040e2f0
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
push 0x207
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x40290b
lea eax, [ebp - 0x414]
push eax
call fcn.00411336
pop ecx
push eax
lea eax, [ebp - 0x414]
mov ecx, edi
push eax
call fcn.004053ec
cmp dword [esi + 0x14], 8
jb 0x402913
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040c4a7
leave
ret 4
Function at 0x408c60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41f018
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x42a008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.004021e4
test al, al
je 0x408c9b
xor al, al
jmp 0x408dc8
push ecx
lea ecx, [ebp - 0x28]
call fcn.004051ca
mov dword [ebp - 4], 0
mov edx, 4
lea ecx, [ebp - 0x28]
call fcn.0040a250
lea ecx, [ebp - 0x28]
call fcn.0040512e
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x408db5
lea ecx, [ebp - 0x40]
call fcn.004021ec
mov byte [ebp - 4], 1
mov edx, ecx
lea ecx, [ebp - 0x28]
call fcn.0040b4d0
test al, al
je 0x408cfb
lea ecx, [ebp - 0x40]
call fcn.0040512e
push eax
call edi
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00401913
cmp esi, 0xffffffff
jne 0x408db5
lea ecx, [ebp - 0x28]
call fcn.004018b9
cmp eax, 2
jbe 0x408db1
call fcn.004018b9
mov esi, eax
call fcn.0040192d
mov edx, eax
mov ecx, edx
mov ebx, dword [edx + 0x14]
cmp ebx, 8
jb 0x408d3b
mov ecx, dword [edx]
cmp word [ecx + esi*2 - 2], 0x5c
je 0x408d5a
lea ecx, [ebp - 0x28]
call fcn.004018b9
cmp ebx, 8
jb 0x408d52
mov edx, dword [edx]
cmp word [edx + eax*2 - 2], 0x2f
jne 0x408db1
mov edx, 0x20
lea ecx, [ebp - 0x28]
call fcn.0040a250
lea ecx, [ebp - 0x28]
call fcn.0040512e
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x408db5
lea ecx, [ebp - 0x40]
call fcn.004021ec
mov byte [ebp - 4], 2
mov edx, ecx
lea ecx, [ebp - 0x28]
call fcn.0040b4d0
test al, al
je 0x408da0
lea ecx, [ebp - 0x40]
call fcn.0040512e
push eax
call edi
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00401913
cmp esi, 0xffffffff
jne 0x408db5
xor bl, bl
jmp 0x408db7
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00401913
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040c4a7
mov esp, ebp
pop ebp
ret
Function at 0x408df0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41f050
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x42a008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.004021e4
test al, al
je 0x408e29
xor al, al
jmp 0x408eb4
push ecx
lea ecx, [ebp - 0x28]
call fcn.004051ca
mov dword [ebp - 4], 0
mov edx, 4
lea ecx, [ebp - 0x28]
call fcn.0040a250
lea ecx, [ebp - 0x28]
call fcn.0040512e
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x408e98
lea ecx, [ebp - 0x40]
call fcn.004021ec
mov byte [ebp - 4], 1
mov edx, ecx
lea ecx, [ebp - 0x28]
call fcn.0040b4d0
test al, al
je 0x408e87
lea ecx, [ebp - 0x40]
call fcn.0040512e
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00401913
cmp ebx, 0xffffffff
je 0x408ea1
test bl, 0x10
je 0x408ea1
mov bl, 1
jmp 0x408ea3
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00401913
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040c4a7
mov esp, ebp
pop ebp
ret
Function at 0x409540
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41f1a0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x42a008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.004021e4
test al, al
je 0x40957d
xor al, al
jmp 0x40971f
call fcn.00408df0
test al, al
je 0x40958d
mov al, 1
jmp 0x40971f
push 0
mov ecx, edi
call fcn.0040512e
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call ebx
test eax, eax
jne 0x4095db
lea ecx, [ebp - 0x28]
call fcn.004021ec
mov dword [ebp - 4], 0
mov edx, ecx
mov ecx, edi
call fcn.0040b4d0
test al, al
je 0x4095cc
push 0
lea ecx, [ebp - 0x28]
call fcn.0040512e
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00401913
mov ecx, edi
call fcn.00408df0
test al, al
jne 0x409586
mov ecx, edi
call fcn.004018b9
xor esi, esi
mov dword [ebp - 0x44], eax
test eax, eax
je 0x4096c5
call fcn.0040192d
mov ebx, eax
mov ecx, dword [ebx + 0x14]
mov eax, ebx
cmp ecx, 8
jb 0x40960d
mov eax, dword [ebx]
mov edx, 0x2f
cmp dx, word [eax + esi*2]
mov edx, 0x5c
je 0x409630
mov eax, ebx
cmp ecx, 8
jb 0x409626
mov eax, dword [ebx]
cmp dx, word [eax + esi*2]
jne 0x4096b5
push esi
push 0
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00407e50
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.004021e4
test al, al
jne 0x4096a6
call fcn.00408c60
test al, al
jne 0x4096a6
push 0
lea ecx, [ebp - 0x28]
call fcn.0040512e
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4096a6
lea ecx, [ebp - 0x40]
call fcn.004021ec
mov byte [ebp - 4], 2
mov edx, ecx
lea ecx, [ebp - 0x28]
call fcn.0040b4d0
test al, al
je 0x40969a
push 0
lea ecx, [ebp - 0x40]
call fcn.0040512e
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00401913
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00401913
inc esi
cmp esi, dword [ebp - 0x44]
jb 0x409601
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, edi
call fcn.00408c60
test al, al
jne 0x409718
push 0
mov ecx, edi
call fcn.0040512e
push eax
call ebx
test eax, eax
jne 0x409718
lea ecx, [ebp - 0x40]
call fcn.004021ec
mov dword [ebp - 4], 3
mov edx, ecx
mov ecx, edi
call fcn.0040b4d0
test al, al
je 0x409709
push 0
lea ecx, [ebp - 0x40]
call fcn.0040512e
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00401913
mov ecx, edi
call fcn.00408df0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040c4a7
mov esp, ebp
pop ebp
ret
Function at 0x40a850
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41f298
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x42a008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov ebx, ecx
cmp esi, 0xffffffff
jne 0x40a887
xor al, al
jmp 0x40a8e9
and esi, 0xffffb1af
push esi
call fcn.0040512e
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x40a8a2
mov al, 1
jmp 0x40a8e9
lea ecx, [ebp - 0x28]
call fcn.004021ec
mov dword [ebp - 4], 0
mov edx, ecx
mov ecx, ebx
call fcn.0040b4d0
test al, al
je 0x40a8d6
push esi
lea ecx, [ebp - 0x28]
call fcn.0040512e
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x40a8d6
mov bl, 1
jmp 0x40a8d8
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00401913
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040c4a7
mov esp, ebp
pop ebp
ret
Function at 0x40aa20
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41f330
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x42a008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0040512e
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40aa64
mov al, 1
jmp 0x40abf7
mov ecx, esi
call fcn.0040512e
push eax
lea ecx, [ebp - 0x40]
call fcn.00405199
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.0040512e
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call ebx
mov edi, eax
cmp edi, 0xffffffff
jne 0x40aac6
lea ecx, [ebp - 0x28]
call fcn.004021ec
mov byte [ebp - 4], 1
mov edx, ecx
lea ecx, [ebp - 0x40]
call fcn.0040b4d0
test al, al
je 0x40aaba
lea ecx, [ebp - 0x28]
call fcn.0040512e
push eax
call ebx
mov edi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00401913
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00401913
cmp edi, 0xffffffff
jne 0x40aae1
xor al, al
jmp 0x40abf7
mov ecx, esi
call fcn.0040512e
push eax
lea ecx, [ebp - 0x40]
call fcn.00405199
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x40]
push 0
call fcn.0040512e
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push eax
call ebx
test eax, eax
je 0x40ab13
xor bl, bl
jmp 0x40ab5c
lea ecx, [ebp - 0x28]
call fcn.004021ec
mov byte [ebp - 4], 3
mov edx, ecx
lea ecx, [ebp - 0x40]
call fcn.0040b4d0
test al, al
je 0x40ab4e
push 0
lea ecx, [ebp - 0x28]
call fcn.0040512e
push eax
call ebx
test eax, eax
je 0x40ab4e
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.00401913
xor bl, bl
jmp 0x40ab5c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.00401913
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00401913
test bl, bl
jne 0x40aada
mov ecx, esi
call fcn.0040512e
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call ebx
test eax, eax
jne 0x40aa5d
lea ecx, [ebp - 0x40]
call fcn.004021ec
mov dword [ebp - 4], 4
mov edx, ecx
mov ecx, esi
call fcn.0040b4d0
test al, al
je 0x40abba
lea ecx, [ebp - 0x40]
call fcn.0040512e
push eax
call ebx
test eax, eax
je 0x40abba
mov bl, 1
jmp 0x40abe6
mov ecx, esi
call fcn.0040512e
push eax
lea ecx, [ebp - 0x28]
call fcn.00405199
mov byte [ebp - 4], 5
mov edx, edi
lea ecx, [ebp - 0x28]
call fcn.0040a850
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.00401913
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00401913
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040c4a7
mov esp, ebp
pop ebp
ret
Function at 0x40cb0a
Capabilities:
Encode data using xor

Disassembly:
add al, 0x4e
inc ch
xchg bh, dh
cmp ecx, 0xbf29
add byte [eax], al
jb 0x40cb14
mov edi, ebp
xchg cl, ch
mov eax, eax
test dl, 0x58
xor ebp, 0x2d1c
not ah
push 0x83420b
push edi
call 0x40cb2a
xor eax, ebx
imul eax, edx
mov edi, 0xdcf
add byte [eax], al