joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4015d0
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x442074]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov dword [ebp - 0x214], edx
xor esi, esi
call fcn.0040f550
mov edi, eax
test edi, edi
je 0x401705
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401601
sub ecx, edx
sar ecx, 1
je 0x401705
push edi
lea eax, [ebp - 0x218]
mov dword [ebp - 0x218], esi
push str._sSoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push eax
call fcn.0040fc50
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], esi
push 0
push eax
call fcn.00414870
add esp, 0x18
mov dword [ebp - 0x21c], 0x206
lea eax, [ebp - 0x210]
mov dword [ebp - 0x220], 1
push eax
push 0x20019
push 0
push dword [ebp - 0x218]
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4016ec
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x220]
push eax
push 0
push str.Local_AppData
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4016e0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push str._sTemp
push eax
call fcn.0040fc50
mov esi, dword [ebp - 0x214]
add esp, 0xc
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4016d1
sub esi, ecx
sar esi, 1
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411e49
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x214]
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00411e49
mov esp, ebp
pop ebp
ret
Function at 0x404480
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x4044b1
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x4044a0
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x40ac90
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0xc]
test eax, eax
je 0x40acaf
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 0xc], 0
mov eax, dword [esi + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x40acc6
push eax
call edi
mov dword [esi + 8], 0
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x40acd8
push eax
call edi
mov dword [esi + 4], 0xffffffff
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x40ad9e
push 0
push 0
push 0
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 8], eax
test eax, eax
je 0x40ad66
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0xc], eax
test eax, eax
je 0x40ad61
push 0x1c
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
xorps xmm0, xmm0
push ecx
push eax
movups xmmword [ebp - 0x18], xmm0
movq qword [ebp - 8], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40ad61
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x10], eax
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push dword [esi + 8]
call edi
mov eax, dword [esi + 0xc]
test eax, eax
je 0x40ad7b
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 0xc], 0
mov eax, dword [esi + 8]
test eax, eax
je 0x40ad8c
push eax
call edi
mov dword [esi + 8], 0
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x40ad9e
push eax
call edi
mov dword [esi + 4], 0xffffffff
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x40ae20
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push edi
mov edi, ecx
test eax, eax
jne 0x40ae34
xor al, al
pop edi
pop ebp
ret 4
mov ecx, 0x5a4d
push esi
cmp word [eax], cx
jne 0x40ae97
mov ecx, dword [eax + 0x3c]
cmp dword [ecx + eax], 0x4550
jne 0x40ae97
mov ecx, dword [ecx + eax + 0x98]
test ecx, ecx
je 0x40ae97
lea esi, [ecx + eax]
test esi, esi
je 0x40ae97
lea eax, [esi + 8]
test eax, eax
je 0x40ae97
cmp byte [eax], 0x30
lea edx, [eax + 1]
jne 0x40ae97
mov al, byte [edx]
cmp al, 0x82
jne 0x40ae97
movzx ecx, byte [edx + 1]
movzx eax, byte [edx + 2]
shl ecx, 8
add eax, 0x13
add eax, ecx
and eax, 0xffffff8
je 0x40ae97
mov dword [edi + 0x18], esi
mov dword [edi + 0x14], eax
mov al, 1
pop esi
pop edi
pop ebp
ret 4
pop esi
xor al, al
pop edi
pop ebp
ret 4
Function at 0x40bf90
Capabilities:
Check os version
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x944
mov eax, dword [0x442074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x114
xor edi, edi
mov dword [ebp - 0x93c], edx
lea eax, [ebp - 0x938]
mov dword [ebp - 0x940], 0x104
mov ebx, ecx
push edi
push eax
mov dword [ebp - 0x944], ebx
call fcn.00414870
add esp, 0xc
mov dword [ebp - 0x938], 0x114
lea eax, [ebp - 0x938]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x928], 2
jne 0x40c04d
cmp dword [ebp - 0x934], 6
jb 0x40c04d
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x43d874
call esi
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40c099
push str.QueryFullProcessImageNameW
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c044
lea ecx, [ebp - 0x940]
push ecx
push dword [ebp - 0x93c]
push edi
push dword [ebp - 0x944]
call eax
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x40c099
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.Window_is_XP_n
call esi
push dword [ebp - 0x940]
push dword [ebp - 0x93c]
push 0
push ebx
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
mov edi, eax
test edi, edi
jne 0x40c099
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x824]
push str.GetModulePathWrap___:_GetModuleFileNameEx___err___d_n
push eax
call fcn.0040af90
add esp, 0xc
lea eax, [ebp - 0x824]
push eax
call esi
push edi
push dword [ebp - 0x93c]
lea eax, [ebp - 0x824]
push str.GetModulePathWrap___Out_:_lpszModPath___s__ret__int____d_n
push eax
call fcn.0040af90
add esp, 0x10
lea eax, [ebp - 0x824]
push eax
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411e49
mov esp, ebp
pop ebp
ret
Function at 0x40c360
Capabilities:
Check mutex on windows
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
mov eax, dword [0x442074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
xor esi, esi
push edi
push str.IsMSISrvFree___In
mov dword [ebp - 0x82c], esi
lea edi, [esi + 0xa]
call ebx
push str.Global_MSIExecute
push esi
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [ebp - 0x828], eax
test eax, eax
je 0x40c4a1
push esi
push str.IsMSISrvFree___:_Mutex_is_opened__GetLastError_____d_n
lea eax, [ebp - 0x824]
push 0x104
push eax
call fcn.0040af70
add esp, 0x10
lea eax, [ebp - 0x824]
push eax
call ebx
push 0x4e20
push dword [ebp - 0x828]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, eax
cmp esi, 0x102
ja 0x40c430
je 0x40c427
test esi, esi
je 0x40c416
cmp esi, 0x80
jne 0x40c459
push str.IsMSISrvFree___:_WAIT_ABANDONED__iCount_set_to_0._n
lea eax, [ebp - 0x824]
xor edi, edi
push 0x104
push eax
call fcn.0040af70
add esp, 0xc
jmp 0x40c459
mov dword [ebp - 0x82c], 1
push str.IsMSISrvFree___:_Mutex_is_closed__iCount_set_to_0._n
jmp 0x40c3fe
dec edi
push edi
push str.IsMSISrvFree___:_WAIT_TIMEOUT__iCount___d_n
jmp 0x40c445
cmp esi, 0xffffffff
jne 0x40c459
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.IsMSISrvFree___:_WAIT_FAILED__iCount_set_to_0__ret___d_n
lea eax, [ebp - 0x824]
push 0x104
push eax
call fcn.0040af70
add esp, 0x10
lea eax, [ebp - 0x824]
push eax
call ebx
test edi, edi
jne 0x40c3d0
push esi
push str._nIsMSISrvFree___:_Do_not_wait_any_more._n_n
lea eax, [ebp - 0x824]
push 0x104
push eax
call fcn.0040af70
add esp, 0x10
lea eax, [ebp - 0x824]
push eax
call ebx
push dword [ebp - 0x828]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x82c]
jmp 0x40c4cf
mov esi, 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.IsMSISrvFree___:_OpenMutex___err_ret___d_n
lea eax, [ebp - 0x824]
push 0x104
push eax
call fcn.0040af70
add esp, 0x10
lea eax, [ebp - 0x824]
push eax
call ebx
push esi
push str.IsMSISrvFree___Out_ret___d_n
lea eax, [ebp - 0x824]
push 0x104
push eax
call fcn.0040af70
add esp, 0x10
lea eax, [ebp - 0x824]
push eax
call ebx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411e49
mov esp, ebp
pop ebp
ret
Function at 0x40cdd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a4
mov eax, dword [0x442074]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
lea eax, [ebp - 0x2a4]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
push eax
push 0
mov ecx, 0x23
mov eax, 0x1c
cmovne eax, ecx
mov ebx, edx
push 0
or eax, 0x8000
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x40ceb5
push 0x27
lea eax, [ebp - 0x9c]
push eax
lea eax, [esi + 0x8c]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
js 0x40ceb5
mov ecx, dword [esi + 0xa0]
mov edx, dword [esi + 0x9c]
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
movzx eax, dx
push eax
shr edx, 0x10
lea eax, [ebp - 0x4c]
push edx
push str._d._d._d._d
push 0x24
push eax
call fcn.0040ca70
add esp, 0x1c
test eax, eax
js 0x40ceb5
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x2a4]
push eax
push str._lsApplicationsCache_lsv_ls.msi
push edi
call fcn.0040fc50
add esp, 0x14
test eax, eax
js 0x40ceb5
push 1
push 1
push dword [edi]
push ebx
call fcn.004102c0
test eax, eax
jns 0x40ceb5
cmp dword [ebp + 8], 1
jne 0x40ceb5
push edi
push 0
mov edx, ebx
mov ecx, esi
call fcn.0040cdd0
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411e49
mov esp, ebp
pop ebp
ret

Function at 0x40ced0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a4
mov eax, dword [0x442074]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
lea eax, [ebp - 0x2a4]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
push eax
push 0
mov ecx, 0x23
mov eax, 0x1c
cmovne eax, ecx
mov ebx, edx
push 0
or eax, 0x8000
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x40cfb5
push 0x27
lea eax, [ebp - 0x9c]
push eax
lea eax, [esi + 0x8c]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
js 0x40cfb5
mov ecx, dword [esi + 0xa0]
mov edx, dword [esi + 0x9c]
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
movzx eax, dx
push eax
shr edx, 0x10
lea eax, [ebp - 0x4c]
push edx
push str._d._d._d._d
push 0x24
push eax
call fcn.0040ca70
add esp, 0x1c
test eax, eax
js 0x40cfb5
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x2a4]
push eax
push str._lsApplicationsCache_lsv_ls.mst
push edi
call fcn.0040fc50
add esp, 0x14
test eax, eax
js 0x40cfb5
push 1
push 1
push dword [edi]
push ebx
call fcn.004102c0
test eax, eax
jns 0x40cfb5
cmp dword [ebp + 8], 1
jne 0x40cfb5
push edi
push 0
mov edx, ebx
mov ecx, esi
call fcn.0040ced0
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411e49
mov esp, ebp
pop ebp
ret
Function at 0x40ebb0
Capabilities:
Get session information
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x840
mov eax, dword [0x442074]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x83c]
push esi
push edi
push eax
lea eax, [ebp - 0x830]
mov dword [ebp - 0x838], edx
push eax
push 0x18
xor esi, esi
mov dword [ebp - 0x834], ecx
push 0xffffffffffffffff
push esi
mov dword [ebp - 0x83c], esi
mov dword [ebp - 0x830], esi
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
je 0x40ec85
mov edi, dword [ebp - 0x830]
test edi, edi
je 0x40ecc3
mov ecx, dword [ebp - 0x834]
mov esi, 1
test ecx, ecx
je 0x40ec26
mov eax, dword [edi + 4]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x838]
test ecx, ecx
je 0x40ec45
lea eax, [edi + 0x82]
push eax
push 0x104
push ecx
call fcn.0040af70
add esp, 0xc
test ebx, ebx
je 0x40ec5b
lea eax, [edi + 0x60]
push eax
push 0x104
push ebx
call fcn.0040af70
add esp, 0xc
mov eax, dword [ebp - 0x834]
push dword [eax]
lea eax, [ebp - 0x82c]
push ebx
push dword [ebp - 0x838]
push str.GetLoggedCreds_WTSSessionInfo__:_szUserName___s__szDomain___s__dwSessionId___d_n
push 0x410
push eax
call fcn.0040af70
add esp, 0x18
jmp 0x40eca5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetLoggedCreds_WTSSessionInfo__:_WTSQuerySessionInformation___err___d_n
lea eax, [ebp - 0x82c]
push 0x410
push eax
call fcn.0040af70
add esp, 0x10
lea eax, [ebp - 0x82c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 0x830]
test eax, eax
je 0x40ecc3
push eax
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411e49
mov esp, ebp
pop ebp
ret
Function at 0x40f380
Capabilities:
Get user security identifier
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc50
mov eax, dword [0x442074]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc48], eax
push 0x410
lea eax, [ebp - 0x41c]
mov dword [ebp - 0xc44], ebx
push ebx
push eax
mov edi, edx
mov dword [ebp - 0xc40], ebx
mov esi, ecx
call fcn.00414870
add esp, 0xc
lea eax, [ebp - 0x41c]
push esi
push edi
push str._s_s
push 0x208
push eax
call fcn.0040af70
add esp, 0x14
lea eax, [ebp - 0x41c]
push eax
push str.Resolve__:_szAccountName___s_n
lea eax, [ebp - 0xc3c]
push 0x410
push eax
call fcn.0040af70
add esp, 0x10
lea eax, [ebp - 0xc4c]
push eax
lea eax, [ebp - 0xc40]
push eax
push ebx
lea eax, [ebp - 0xc44]
push eax
push ebx
lea eax, [ebp - 0x41c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov eax, dword [ebp - 0xc44]
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x40f446
push eax
push 8
call esi
push eax
call edi
mov ebx, eax
mov ecx, dword [ebp - 0xc40]
test ecx, ecx
je 0x40f45e
add ecx, ecx
push ecx
push 8
call esi
push eax
call edi
mov edi, eax
jmp 0x40f460
xor edi, edi
test ebx, ebx
je 0x40f4ef
lea eax, [ebp - 0xc4c]
push eax
lea eax, [ebp - 0xc40]
push eax
push edi
lea eax, [ebp - 0xc44]
push eax
push ebx
lea eax, [ebp - 0x41c]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x40f4b1
push dword [ebp - 0xc48]
push ebx
call dword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
test eax, eax
jne 0x40f4df
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetSidFromEnumSess__:_ConvertSidToStringSid___err___d_n
jmp 0x40f4bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.UserByExplorer__:_LookupAccountNameW___err___d_n
lea eax, [ebp - 0xc3c]
push 0x410
push eax
call fcn.0040af70
add esp, 0x10
lea eax, [ebp - 0xc3c]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call eax
push ebx
push 0
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
call ebx
jmp 0x40f4f5
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
test edi, edi
je 0x40f501
push edi
push 0
call esi
push eax
call ebx
mov ebx, dword [ebp - 0xc48]
lea eax, [ebp - 0xc3c]
push dword [ebx]
push str.Resolve__:_lpszSid___s_n
push 0x410
push eax
call fcn.0040af70
add esp, 0x10
lea eax, [ebp - 0xc3c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 8]
xor eax, eax
cmp dword [ebx], eax
pop edi
setne al
xor ecx, ebp
pop esi
pop ebx
call fcn.00411e49
mov esp, ebp
pop ebp
ret
Function at 0x40fe70
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
mov dword [ebp - 8], 0
push eax
lea eax, [ebp - 8]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 8]
mov dword [ebp - 0x10], 0
push 0
mov dword [ebp - 0xc], 0
call fcn.0040ff80
mov esi, eax
test esi, esi
js 0x40ff6e
push edi
push 0
push 0x80
push dword [ebp + 0x10]
push 0
push 0
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40ff04
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x40fee8
movzx esi, si
or esi, 0x80070000
test esi, esi
mov eax, 0x80004005
cmovns esi, eax
push esi
push 0xe7
push str.resrutil.cpp
call fcn.00410870
jmp 0x40ff58
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 1
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40ff51
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x40ff37
movzx esi, si
or esi, 0x80070000
test esi, esi
mov eax, 0x80004005
cmovns esi, eax
push esi
push 0xed
push str.resrutil.cpp
call fcn.00410870
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
test esi, esi
jns 0x40ff6c
cmp dword [ebp - 0xc], 0
je 0x40ff6c
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x410140
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x442074]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x218], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x214], eax
mov eax, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x220], eax
mov esi, 0x80004005
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x21c], eax
or edi, 0xffffffff
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], 0
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x4101cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4101b8
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x4101cf
push esi
push 0x4be
push str.fileutil.cpp
call fcn.00410870
jmp 0x41029c
push ebx
xor ebx, ebx
cmp edi, 0xffffffff
jne 0x410264
push dword [ebp - 0x214]
lea eax, [ebp - 0x20c]
push ebx
push dword [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push str._s_s_05d._s
push eax
call fcn.0040fc50
mov esi, eax
add esp, 0x18
test esi, esi
js 0x41029b
push 0
push 0x80
push 1
push 0
push 1
push 0x40000000
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x410257
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x410247
movzx esi, si
or esi, 0x80070000
cmp esi, 0x80070050
jne 0x410253
xor esi, esi
jmp 0x410257
test esi, esi
js 0x41029b
inc ebx
cmp ebx, 0x3e8
jl 0x4101d2
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x410273
mov dword [eax], edi
or edi, 0xffffffff
mov ecx, dword [ebp - 0x220]
test ecx, ecx
je 0x41028f
mov eax, dword [ebp - 0x210]
mov dword [ecx], eax
mov dword [ebp - 0x210], 0
cmp edi, 0xffffffff
je 0x41029b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x4102ac
push eax
call fcn.0040fe60
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00411e49
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4102c0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, eax
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
test edi, edi
setne al
mov ecx, eax
or ecx, 2
cmp dword [ebp + 0x14], esi
cmove ecx, eax
push ecx
push ebx
push dword [ebp + 8]
mov dword [ebp + 0x10], ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4103c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test edi, edi
jne 0x41031d
cmp esi, 0x50
je 0x41030f
cmp esi, 0xb7
jne 0x41031d
mov esi, 1
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x10
cmp esi, 3
jne 0x4103b4
movzx ecx, word [ebx]
xor edi, edi
mov eax, ebx
test cx, cx
je 0x4103a6
cmp cx, 0x5c
movzx ecx, word [eax + 2]
cmove edi, eax
add eax, 2
test cx, cx
jne 0x410332
test edi, edi
je 0x4103a6
xor eax, eax
push eax
push ebx
mov word [edi], ax
call fcn.00410770
mov esi, eax
mov eax, 0x5c
mov word [edi], ax
test esi, esi
js 0x4103c1
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4103c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x41038b
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x4103c1
push esi
push 0x42e
push str.fileutil.cpp
call fcn.00410870
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x10
mov esi, 0x80070003
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x10
test esi, esi
jle 0x4103c1
movzx esi, si
or esi, 0x80070000
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x10

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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push dword [ebp + 0xc]
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x410866
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4107a3
xor esi, esi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
cmp eax, 3
je 0x4107b8
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4107b8
test al, 0x10
jne 0x410799
movzx ecx, word [ebx]
mov eax, ebx
push edi
xor edi, edi
test cx, cx
je 0x410850
nop dword [eax]
cmp cx, 0x5c
movzx ecx, word [eax + 2]
cmove edi, eax
add eax, 2
test cx, cx
jne 0x4107d0
test edi, edi
je 0x410850
push dword [ebp + 0xc]
xor eax, eax
push ebx
mov word [edi], ax
call fcn.00410770
mov esi, eax
mov eax, 0x5c
mov word [edi], ax
test esi, esi
js 0x410865
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x410845
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xb7
jne 0x41082f
mov esi, 1
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
test esi, esi
jle 0x410865
movzx esi, si
or esi, 0x80070000
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
mov esi, 0x80070003
push esi
push 0x82
push str.dirutil.cpp
call fcn.00410870
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x432003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..reloc
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x432072
mov ebx, 0x40c7d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x9ad0ab4
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x432060
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
je 0x4320d2
nop
nop
nop
nop
nop
mov ebx, 0x42f314
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x178719d7
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x4320c0
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx