joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100aee7
Capabilities:
Enumerate files on windows
Persist via run registry key

Disassembly:
mov eax, 0x101b34f
call fcn.0101a4c8
sub esp, 0x698
mov eax, dword [0x1020e7c]
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], eax
push esi
mov eax, 0x80000002
push edi
mov dword [ebp - 0x684], ecx
mov dword [ebp - 0x6a0], eax
mov dword [ebp - 0x69c], 0x80000001
mov dword [ebp - 0x698], ebx
mov dword [ebp - 0x694], 0x10026b4
mov dword [ebp - 0x690], 0x10026a4
mov dword [ebp - 0x68c], ebx
mov dword [ebp - 0x674], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x67c], eax
mov dword [ebp - 0x678], ebx
push 0x20019
push 0x1002620
push dword [ebp - 0x67c]
lea ecx, [ebp - 0x674]
call fcn.01009076
test eax, eax
jne 0x100b0c7
mov eax, dword [ebp - 0x678]
mov edi, dword [ebp + eax - 0x694]
cmp edi, ebx
mov dword [ebp - 0x688], 0x104
je 0x100b0bc
lea eax, [ebp - 0x688]
push eax
push edi
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x674]
call fcn.01005d38
test eax, eax
jne 0x100b0bc
lea ecx, [ebp - 0x674]
call fcn.01005d1a
push ebx
push 0x1002614
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push ebx
push eax
call dword [sym.imp.msvcrt.dll__wmakepath]
add esp, 0x14
lea eax, [ebp - 0x670]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x680], eax
je 0x100b0c7
test byte [ebp - 0x670], 2
je 0x100b025
lea eax, [ebp - 0x644]
push 0x10022f4
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x100b093
test byte [ebp - 0x670], 0x10
jne 0x100b093
push 0x1c
call sub.MFC42u.DLL_operatornew
pop ecx
mov ecx, eax
mov dword [ebp - 0x6a4], ecx
cmp ecx, ebx
mov byte [ebp - 4], 1
je 0x100b04f
call fcn.010088cf
mov esi, eax
jmp 0x100b051
xor esi, esi
cmp esi, ebx
mov byte [ebp - 4], bl
je 0x100b093
lea eax, [ebp - 0x218]
push eax
push edi
push 0x1002620
push dword [ebp - 0x67c]
lea eax, [ebp - 0x670]
push eax
mov ecx, esi
call fcn.0100a795
test eax, eax
je 0x100b08b
mov ecx, dword [ebp - 0x684]
push esi
call fcn.01009262
jmp 0x100b093
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
lea eax, [ebp - 0x670]
push eax
push dword [ebp - 0x680]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100b004
push dword [ebp - 0x680]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x100b0c7
lea ecx, [ebp - 0x674]
call fcn.01005d1a
add dword [ebp - 0x678], 4
mov eax, dword [ebp - 0x678]
mov eax, dword [ebp + eax - 0x6a0]
cmp eax, ebx
mov dword [ebp - 0x67c], eax
jne 0x100af54
lea ecx, [ebp - 0x674]
call fcn.01005d1a
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.010197bb
leave
ret
Function at 0x100c8df
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x101b57b
call fcn.0101a4c8
sub esp, 0x22c
mov eax, dword [0x1020e7c]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0xffffffffffffffff
mov edi, ecx
push 0
mov ecx, ebx
mov dword [ebp - 0x10], eax
call sub.MFC42u.DLL_CStringArray::SetSize
lea ecx, [ebp - 0x224]
call sub.MFC42u.DLL_CString::CString_1
push dword [edi + 0xb8]
and dword [ebp - 4], 0
lea eax, [ebp - 0x224]
push 0x1002ca4
push eax
call sub.MFC42u.DLL_CString::Format_1
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x100c959
xor esi, esi
jmp 0x100caea
lea ecx, [ebp - 0x21c]
push 0x1002c94
call sub.MFC42u.DLL_CString::CString_2
cmp dword [ebp + 0x10], 0
je 0x100c9b9
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x220]
push eax
mov byte [ebp - 4], 1
call fcn.0101664a
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 3
call sub.MFC42u.DLL_CString::CString
push dword [ebp - 0x220]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
lea ecx, [ebp - 0x220]
jmp 0x100c9d8
push 0
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
mov byte [ebp - 4], 4
call fcn.01017656
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x238]
call sub.MFC42u.DLL_CStdioFile::CStdioFile
push 0
push 0x4000
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 5
call sub.MFC42u.DLL_CStdioFile::Open
test eax, eax
je 0x100cad9
push 0x10
lea ecx, [ebp - 0x238]
call sub.MFC42u.DLL_CFile::GetLength
push 0x1e
pop ecx
xor edx, edx
div ecx
mov ecx, ebx
push eax
call sub.MFC42u.DLL_CStringArray::SetSize
lea ecx, [ebp - 0x220]
call sub.MFC42u.DLL_CString::CString_1
or dword [edi + 0xb0], 0xffffffff
mov byte [ebp - 4], 6
jmp 0x100caa4
push 0x1002c8c
lea ecx, [ebp - 0x220]
call sub.MFC42u.DLL_CString::TrimRight_1
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x21c]
call fcn.01019c28
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 7
call sub.MFC42u.DLL_CString::TrimLeft
mov eax, dword [ebp - 0x21c]
cmp dword [eax - 8], 0
je 0x100ca95
inc dword [esi]
mov eax, dword [esi]
lea ecx, [ebp - 0x220]
push ecx
push eax
mov ecx, ebx
call sub.MFC42u.DLL_CStringArray::SetAtGrow
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 6
call sub.MFC42u.DLL_CString::CString
lea eax, [ebp - 0x220]
lea ecx, [ebp - 0x238]
push eax
call sub.MFC42u.DLL_CStdioFile::ReadString
test eax, eax
jne 0x100ca45
lea ecx, [ebp - 0x238]
call sub.MFC42u.DLL_CStdioFile::Close
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 5
call sub.MFC42u.DLL_CString::CString
xor esi, esi
inc esi
jmp 0x100cadb
xor esi, esi
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 0
call fcn.01019e5c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.010197bb
leave
ret 0xc
Function at 0x100dbd2
Capabilities:
Manipulate boot configuration

Disassembly:
mov eax, 0x101b671
call fcn.0101a4c8
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push ebx
mov esi, ecx
push 0x6a
mov dword [ebp - 0x10], esi
call fcn.01019d30
lea eax, [esi + 0x90]
mov dword [ebp - 4], ebx
mov dword [eax], 0x1001d80
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
lea ecx, [esi + 0x9c]
mov byte [ebp - 4], 1
mov dword [esi], 0x1002f24
mov dword [eax], 0x1002efc
call sub.MFC42u.DLL_CStringArray::CStringArray
lea ecx, [esi + 0xc0]
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::CString_1
lea ecx, [esi + 0xc8]
mov byte [ebp - 4], 3
call sub.MFC42u.DLL_CString::CString_1
lea edi, [esi + 0xcc]
mov ecx, edi
mov byte [ebp - 4], 4
call sub.MFC42u.DLL_CString::CString_1
push 0x1002ee0
mov ecx, edi
mov byte [ebp - 4], 5
mov dword [esi + 0xc4], ebx
call sub.MFC42u.DLL_CString::operator_1
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x100f065
Capabilities:
Check if file exists
Get file attributes
Set file attributes
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
mov esi, ecx
je 0x100f150
cmp word [eax], di
je 0x100f150
push dword [esi + 0xcc]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x80
push dword [esi + 0xcc]
mov dword [ebp - 0x10], eax
call ebx
mov eax, dword [esi + 0xcc]
push edi
push edi
push 5
push edi
push edi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x100f141
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp eax, edi
mov dword [ebp - 0xc], eax
jne 0x100f0dd
mov dword [ebp - 8], edi
jmp 0x100f107
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
mov dword [ebp - 8], eax
add eax, 3
and eax, 0xfffffffc
call fcn.0101a510
mov eax, esp
push dword [ebp - 8]
push dword [ebp - 0xc]
push eax
call fcn.0100dfa3
mov dword [ebp - 8], eax
push edi
push edi
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push dword [eax - 8]
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
inc edi
push dword [ebp - 0x10]
push dword [esi + 0xcc]
call ebx
mov eax, edi
jmp 0x100f152
xor eax, eax
lea esp, [ebp - 0x20]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1014a64
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
mov eax, 0x101bc8a
call fcn.0101a4c8
sub esp, 0x50
push ebx
push esi
push edi
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 0x10], ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea ecx, [ebp - 0x18]
call sub.MFC42u.DLL_CString::CString_1
and dword [ebp - 4], 0
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
xor eax, eax
inc eax
cmp dword [ebp - 0x48], eax
mov dword [ebp - 0x14], eax
mov ebx, 0x143
jb 0x1014ade
push dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push 0x10032d4
push eax
call sub.MFC42u.DLL_CString::Format_1
mov eax, dword [ebp - 0x10]
add esp, 0xc
push 0x11b
push dword [eax + 4]
call edi
push dword [ebp - 0x18]
push 0
push ebx
push eax
call esi
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x48]
jbe 0x1014aa9
mov eax, dword [ebp - 0x10]
push 0x1003a28
push 0
push ebx
push 0x11c
push dword [eax + 4]
call edi
push eax
call esi
mov eax, dword [ebp - 0x10]
push 0x1003a1c
push 0
push ebx
push 0x11c
push dword [eax + 4]
call edi
push eax
call esi
mov eax, dword [ebp - 0x10]
push 0x1003a10
push 0
push ebx
push 0x11c
push dword [eax + 4]
call edi
push eax
call esi
mov eax, dword [ebp - 0x10]
push 0x1003a04
push 0
push ebx
push 0x11c
push dword [eax + 4]
call edi
push eax
call esi
mov eax, dword [ebp - 0x10]
push 0x1003870
push 0
push ebx
push 0x11c
push dword [eax + 4]
call edi
push eax
call esi
mov eax, dword [ebp - 0x10]
push 0x10039fc
push 0
push ebx
push 0x120
push dword [eax + 4]
call edi
push eax
call esi
mov eax, dword [ebp - 0x10]
push 0x10039f0
push 0
push ebx
push 0x120
push dword [eax + 4]
call edi
push eax
call esi
mov eax, dword [ebp - 0x10]
push 0x10039e4
push 0
push ebx
push 0x120
push dword [eax + 4]
call edi
push eax
call esi
mov eax, dword [ebp - 0x10]
push 0x10039d8
push 0
push ebx
push 0x120
push dword [eax + 4]
call edi
push eax
call esi
mov eax, dword [ebp - 0x10]
push 0x10039cc
push 0
push ebx
push 0x120
push dword [eax + 4]
call edi
push eax
call esi
mov eax, dword [ebp - 0x10]
push 0x10039c0
push 0
push ebx
push 0x120
push dword [eax + 4]
call edi
push eax
call esi
mov eax, dword [ebp - 0x10]
push 0x10039b4
push 0
push ebx
push 0x120
push dword [eax + 4]
call edi
push eax
call esi
mov eax, dword [ebp - 0x10]
push 0x10039a8
push 0
push ebx
push 0x120
push dword [eax + 4]
call edi
push eax
call esi
push 0x1003998
push 0
push ebx
mov ebx, dword [ebp - 0x10]
push 0x120
push dword [ebx + 4]
call edi
push eax
call esi
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
fild dword [ebp - 0x30]
mov eax, dword [ebp - 0x30]
test eax, eax
jge 0x1014c48
fadd qword [0x1003990]
fmul qword [0x1003988]
push ecx
push ecx
fstp qword [esp]
call dword [sym.imp.msvcrt.dll_ceil]
pop ecx
pop ecx
call sub.msvcrt.dll__ftol
mov ecx, ebx
mov dword [ebx + 0x20], eax
call fcn.01014c96
mov ecx, ebx
call fcn.01013dc4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x101664a
Capabilities:
Create directory
Query environment variable

Disassembly:
mov eax, 0x101bea9
call fcn.0101a4c8
sub esp, 0x22c
mov eax, dword [0x1020e7c]
and dword [ebp - 0x22c], 0
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x230], eax
mov eax, dword [0x1021050]
cmp dword [eax - 8], 0
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x238], edi
mov esi, 0x1021050
jne 0x10166d4
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x1003f18
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, 0x104
jae 0x10166d4
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call sub.MFC42u.DLL_CString::operator_1
push esi
call fcn.010161ad
test eax, eax
jne 0x10166d4
push eax
push dword [0x1021050]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ebx
lea ecx, [ebp - 0x21c]
call sub.MFC42u.DLL_CString::CString_2
xor ebx, ebx
inc ebx
push 0x5c
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], ebx
call sub.MFC42u.DLL_CString::ReverseFind
inc eax
push eax
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x21c]
call sub.MFC42u.DLL_CString::Mid
push 0x1001c30
push esi
lea eax, [ebp - 0x234]
push eax
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_operator_2
lea ecx, [ebp - 0x224]
push ecx
push eax
lea eax, [ebp - 0x228]
push eax
mov byte [ebp - 4], 3
call sub.MFC42u.DLL_operator
push dword [ebp - 0x230]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x220]
push eax
call sub.MFC42u.DLL_operator
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 7
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 6
call sub.MFC42u.DLL_CString::CString
lea eax, [ebp - 0x220]
push eax
mov ecx, edi
call fcn.01019c28
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x22c], ebx
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], bl
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 0
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.010197bb
leave
ret 0xc
Function at 0x1016db8
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [sym.imp.msvcrt.dll_malloc]
push edi
mov ebx, ecx
mov edi, 0x2000
push edi
mov dword [ebp - 0x18], ebx
call esi
test eax, eax
pop ecx
mov dword [ebp - 0x10], eax
jne 0x1016de8
mov eax, 0x8007000e
jmp 0x1016f51
push eax
mov ecx, ebx
call fcn.01016cbf
test eax, eax
jge 0x1016dfb
mov edi, eax
jmp 0x1016f41
lea eax, [ebp - 2]
push eax
push dword [ebp - 0x10]
call fcn.01016b35
test eax, eax
jne 0x1016e15
mov edi, 0x80020009
jmp 0x1016f41
push edi
call esi
mov esi, eax
test esi, esi
pop ecx
mov dword [ebp - 0xc], esi
jne 0x1016e2c
mov edi, 0x8007000e
jmp 0x1016f41
mov ecx, ebx
call fcn.01016c96
push esi
mov ecx, ebx
call fcn.01016cbf
test eax, eax
jl 0x1016f37
movzx eax, word [ebp - 2]
sub eax, 8
je 0x1016f1c
sub eax, 9
je 0x1016e7f
dec eax
dec eax
jne 0x1016f28
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push esi
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push dword [ebp - 0x14]
call fcn.01006843
jmp 0x1016f28
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test al, 1
mov dword [ebp - 8], eax
je 0x1016e97
mov edi, 0x80004005
jmp 0x1016f39
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
mov eax, ebx
add eax, 3
and eax, 0xfffffffc
call fcn.0101a510
mov ecx, ebx
mov edx, ecx
shr ecx, 2
mov edi, esp
mov dword [ebp - 4], edi
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
xor edi, edi
cmp esp, edi
je 0x1016e8d
cmp dword [ebp - 8], edi
jle 0x1016f03
mov ecx, dword [ebp - 4]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ecx]
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + edi*2]
push eax
call fcn.01016bbf
mov ecx, edi
and ecx, 1
shl ecx, 2
mov edx, ecx
push 4
pop ecx
sub ecx, edx
shl al, cl
or byte [esi], al
inc edi
cmp edi, dword [ebp - 8]
jl 0x1016ecd
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ebx
push dword [ebp - 4]
push 3
push 0
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x1016f28
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push esi
call fcn.01005d62
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x18]
call fcn.01016cbf
test eax, eax
jge 0x1016f4f
mov edi, eax
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov eax, edi
jmp 0x1016f51
xor eax, eax
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1017656
Capabilities:
Copy file
Set file attributes

Disassembly:
mov eax, 0x101beee
call fcn.0101a4c8
push ecx
push ecx
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString_2
push dword [ebp + 0xc]
and dword [ebp - 4], 0
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0101664a
cmp dword [ebp + 0x10], 0
mov byte [ebp - 4], 1
jne 0x101769d
lea eax, [ebp - 0x10]
push eax
call fcn.010161ad
test eax, eax
je 0x101769d
xor esi, esi
inc esi
jmp 0x10176d1
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
mov edi, 0x80
push edi
push dword [ebp - 0x10]
call esi
push 0
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x10176cb
push edi
push dword [ebp - 0x10]
call esi
xor esi, esi
jmp 0x10176d0
mov esi, 0x80004005
pop edi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0
call sub.MFC42u.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x1017fb5
Capabilities:
Manipulate boot configuration

Disassembly:
mov eax, 0x101bfe7
call fcn.0101a4c8
sub esp, 0x21c
mov eax, dword [0x1020e7c]
push 0x1002ee0
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x10], eax
call sub.MFC42u.DLL_CString::CString_2
and dword [ebp - 4], 0
and dword [ebp - 0x224], 0
push 0xf003f
push 0x10033e8
push 0x80000002
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 1
call fcn.01009076
test eax, eax
jne 0x1018048
lea eax, [ebp - 0x228]
push eax
push 0x10033d4
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x228], 0x104
call fcn.01005d38
test eax, eax
jne 0x1018048
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x220]
call sub.MFC42u.DLL_CString::operator_1
lea eax, [ebp - 0x220]
push eax
call fcn.010161ad
test eax, eax
je 0x1018087
push 0xd4
call sub.MFC42u.DLL_operatornew
pop ecx
mov ecx, eax
mov dword [ebp - 0x21c], ecx
test ecx, ecx
mov byte [ebp - 4], 2
je 0x101807a
call fcn.0100dbd2
jmp 0x101807c
xor eax, eax
mov byte [ebp - 4], 1
mov dword [0x1020f48], eax
jmp 0x101808e
and dword [0x1020f48], 0
push 0xdc
call sub.MFC42u.DLL_operatornew
pop ecx
mov ecx, eax
mov dword [ebp - 0x21c], ecx
test ecx, ecx
mov byte [ebp - 4], 3
je 0x10180b0
call fcn.01006d67
jmp 0x10180b2
xor eax, eax
push 0xac
mov byte [ebp - 4], 1
mov dword [0x1020f40], eax
call sub.MFC42u.DLL_operatornew
pop ecx
mov ecx, eax
mov dword [ebp - 0x21c], ecx
test ecx, ecx
mov byte [ebp - 4], 4
je 0x10180dd
call fcn.010091fb
jmp 0x10180df
xor eax, eax
push esi
mov esi, pe_nt_image_headers32
push esi
mov byte [ebp - 4], 1
mov dword [0x1020f44], eax
call sub.MFC42u.DLL_operatornew
pop ecx
mov ecx, eax
mov dword [ebp - 0x21c], ecx
test ecx, ecx
mov byte [ebp - 4], 5
je 0x101810c
call fcn.0100c804
jmp 0x101810e
xor eax, eax
push esi
mov byte [ebp - 4], 1
mov dword [0x1020f4c], eax
call sub.MFC42u.DLL_operatornew
pop ecx
mov ecx, eax
mov dword [ebp - 0x21c], ecx
test ecx, ecx
mov byte [ebp - 4], 6
pop esi
je 0x1018136
call fcn.0100c804
jmp 0x1018138
xor eax, eax
push 0xa0
mov byte [ebp - 4], 1
mov dword [0x1020f50], eax
call sub.MFC42u.DLL_operatornew
pop ecx
mov ecx, eax
mov dword [ebp - 0x21c], ecx
test ecx, ecx
mov byte [ebp - 4], 7
je 0x1018163
call fcn.0100b7b3
jmp 0x1018165
xor eax, eax
mov ecx, dword [0x1020f4c]
push 0x1004154
mov byte [ebp - 4], 1
mov dword [0x1020f54], eax
call fcn.0100bfc3
mov ecx, dword [0x1020f50]
push 0x100413c
call fcn.0100bfc3
lea ecx, [ebp - 0x224]
call fcn.01005d1a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x220]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.010197bb
leave
ret
Function at 0x10181c1
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
mov eax, 0x101c043
call fcn.0101a4c8
sub esp, 0x224
mov eax, dword [0x1020e7c]
push esi
xor esi, esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x21c], esi
push 0xf003f
push 0x10023e0
push 0x80000002
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], esi
call fcn.01009076
test eax, eax
jne 0x101834d
cmp dword [ebp + 8], esi
je 0x101833c
push 0x104
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x101834d
push ebx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x220]
call sub.MFC42u.DLL_CString::CString_2
lea eax, [ebp - 0x220]
push eax
mov byte [ebp - 4], 1
call fcn.010161ad
mov ebx, eax
neg ebx
sbb bl, bl
lea ecx, [ebp - 0x220]
inc bl
mov byte [ebp - 4], 0
call sub.MFC42u.DLL_CString::CString
test bl, bl
pop ebx
jne 0x101834d
push edi
push 0x1004164
lea ecx, [ebp - 0x22c]
call sub.MFC42u.DLL_CString::CString_2
mov esi, eax
push 0x1003094
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::CString_2
mov edi, eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 3
call sub.MFC42u.DLL_CString::CString_2
push edi
push eax
lea eax, [ebp - 0x220]
push eax
mov byte [ebp - 4], 4
call sub.MFC42u.DLL_operator
push esi
push eax
lea eax, [ebp - 0x224]
push eax
mov byte [ebp - 4], 5
call sub.MFC42u.DLL_operator
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 0xa
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 9
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 8
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 7
call sub.MFC42u.DLL_CString::CString
push 0x1003ec0
push dword [ebp - 0x224]
lea ecx, [ebp - 0x21c]
call fcn.01005d62
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 0
call sub.MFC42u.DLL_CString::CString
pop edi
jmp 0x101834d
push 0x1003ec0
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea ecx, [ebp - 0x21c]
call fcn.01005d1a
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
call fcn.010197bb
leave
ret 4
Function at 0x10187b5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 0xc], 0
push ebx
push esi
push edi
push 2
push 0
push dword [ebp + 8]
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 4], ebx
jne 0x1018807
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x10187f2
call esi
mov esi, eax
jmp 0x10188cd
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x10188cd
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x1018828
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x101884d
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x101883b
call esi
jmp 0x10188c2
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x10188c4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp byte [ebx + esi], 0
mov edi, esi
je 0x101888c
lea edi, [ebx + 1]
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.0101a510
mov ecx, edi
mov edx, ecx
mov eax, esp
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp + 8], eax
mov byte [eax + ebx], 0
mov edi, esp
test edi, edi
jne 0x1018894
xor eax, eax
jmp 0x10188b6
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and eax, 0xfffffffc
call fcn.0101a510
mov eax, esp
push esi
push edi
push eax
call fcn.0100df85
push dword [ebp + 0x14]
lea ecx, [ebp - 0xc]
push eax
call fcn.010183a8
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret 0x10