joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100095f0
Capabilities:
Acquire debug privileges
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x10047140]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x124
lea eax, [ebp - 0x138]
push 0
push eax
mov dword [ebp - 0x140], esi
mov dword [ebp - 0x13c], 0
call fcn.100105b0
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x144], eax
cmp eax, 0xffffffff
jne 0x10009652
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000db11
mov esp, ebp
pop ebp
ret
push ebx
push edi
lea ecx, [ebp - 0x13c]
push ecx
push eax
mov dword [ebp - 0x13c], 0x128
call sub.KERNEL32.dll_Process32First
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1000974f
xor ebx, ebx
jmp 0x10009680
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.1000e7e6
add esp, 8
test eax, eax
jne 0x10009733
push dword [ebp - 0x134]
push eax
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x10009719
lea eax, [ebp - 0x148]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1000972d
lea eax, [ebp - 0x10]
push eax
push str.SeDebugPrivilege
push esi
mov dword [ebp - 0x14], 1
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push esi
push esi
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 0x148]
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push esi
call edi
push dword [ebp - 0x134]
push 1
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x1000972d
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
mov ebx, eax
call edi
cmp byte [ebp + 0xc], 0
je 0x10009751
mov esi, dword [ebp - 0x140]
lea eax, [ebp - 0x13c]
push eax
push dword [ebp - 0x144]
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x10009680
jmp 0x10009751
xor ebx, ebx
mov eax, dword [ebp - 0x144]
test eax, eax
je 0x1000975e
push eax
call edi
mov ecx, dword [ebp - 4]
pop edi
mov eax, ebx
pop ebx
xor ecx, ebp
pop esi
call fcn.1000db11
mov esp, ebp
pop ebp
ret
Function at 0x10009780
Capabilities:
Acquire debug privileges
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x10047140]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x124
lea eax, [ebp - 0x138]
push 0
push eax
mov dword [ebp - 0x13c], 0
call fcn.100105b0
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x100097d5
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000db11
mov esp, ebp
pop ebp
ret
push ebx
push esi
lea eax, [ebp - 0x13c]
push eax
push edi
mov dword [ebp - 0x13c], 0x128
call sub.KERNEL32.dll_Process32First
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x100098a5
xor eax, eax
mov edi, edi
mov eax, dword [ebp - 0x134]
cmp eax, dword [ebp + 8]
jne 0x10009890
push eax
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x100098c1
lea eax, [ebp - 0x144]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x10009890
lea eax, [ebp - 0x10]
push eax
push str.SeDebugPrivilege
push esi
mov dword [ebp - 0x14], 1
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push esi
push esi
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 0x144]
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push esi
call ebx
push dword [ebp - 0x134]
push 1
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x100098c1
lea eax, [ebp - 0x13c]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x10009800
xor esi, esi
test edi, edi
je 0x100098ae
push edi
call ebx
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
pop ebx
xor ecx, ebp
pop edi
call fcn.1000db11
mov esp, ebp
pop ebp
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
mov dword [ebp - 0x140], eax
call ebx
mov esi, dword [ebp - 0x140]
jmp 0x100098a7
Function at 0x10009b80
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x95c
mov eax, dword [0x10047140]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push edi
push ebx
push esi
push str._SKUtil__SK_LaunchAppAndWait_program_s__cmdline_s__wait_d_n
call fcn.10001080
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10009bdc
push 0x10036d74
call fcn.10001080
add esp, 4
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000db11
mov esp, ebp
pop ebp
ret
push 0xff
lea eax, [ebp - 0x103]
push 0
push eax
mov byte [ebp - 0x104], 0
call fcn.100105b0
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0
push esi
call fcn.1000f47d
lea eax, [ebp - 0x104]
push 0x10036da0
push eax
call fcn.1000e7e6
add esp, 0x28
test eax, eax
jne 0x10009d24
push 0x7ff
push eax
mov byte [ebp - 0x904], al
lea eax, [ebp - 0x903]
push eax
call fcn.100105b0
push 0x44
xorps xmm0, xmm0
lea eax, [ebp - 0x95c]
push 0
push eax
mov dword [ebp - 0x908], 0
movq qword [ebp - 0x918], xmm0
movq qword [ebp - 0x910], xmm0
call fcn.100105b0
push ebx
push esi
lea eax, [ebp - 0x904]
push 0x10036da8
push eax
mov dword [ebp - 0x95c], 0x44
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x28
lea eax, [ebp - 0x918]
push eax
lea eax, [ebp - 0x95c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x904]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x10009bc8
test edi, edi
je 0x10009cee
push str._SKUtil__SK_LaunchAppAndWait_Waiting
call fcn.10001080
add esp, 4
push 0xffffffffffffffff
push dword [ebp - 0x918]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x908]
push eax
push dword [ebp - 0x918]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x918]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x914]
call esi
mov eax, dword [ebp - 0x910]
test edi, edi
cmovne eax, dword [ebp - 0x908]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000db11
mov esp, ebp
pop ebp
ret
push 0x3c
lea eax, [ebp - 0x954]
push 0
push eax
call fcn.100105b0
add esp, 0xc
lea eax, [ebp - 0x954]
push eax
mov dword [ebp - 0x954], 0x3c
mov dword [ebp - 0x950], 0x40
mov dword [ebp - 0x944], esi
mov dword [ebp - 0x940], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x10009bc8
test edi, edi
je 0x10009d97
push str._SKUtil__SK_LaunchAppAndWait_Waiting
call fcn.10001080
add esp, 4
push 0xffffffffffffffff
push dword [ebp - 0x91c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x91c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.1000db11
mov esp, ebp
pop ebp
ret
Function at 0x1000a2b0
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
test ebx, ebx
jne 0x1000a2ca
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x10]
push eax
push 0x1003a714
push 0
push 0
push 0
push dword [ebp + 8]
mov dword [ebx], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
call dword [sym.imp.OLEAUT32.dll_VarUI4FromI8]
test eax, eax
js 0x1000a412
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [ebp + 0x14]
mov edi, eax
push dword [ebp + 0x10]
mov dword [ebp + 0xc], edi
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push esi
push 0
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0xc]
test eax, eax
js 0x1000a3f3
push 4
push edi
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
lea eax, [ebp - 0x28]
push eax
push 0x18
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_GetObjectA]
movq xmm0, qword [ebp - 0x28]
sub esp, 0x18
mov eax, esp
movq qword [eax], xmm0
movq xmm0, qword [ebp - 0x20]
movq qword [eax + 8], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [eax + 0x10], xmm0
call fcn.10002a90
add esp, 0x18
mov dword [ebp - 0xc], eax
test eax, eax
je 0x1000a3f3
push dword [ebp - 4]
push edi
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
call edi
push 0
push dword [ebp - 0xc]
mov esi, eax
push 0
push 0
push 0
push dword [ebp - 8]
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_GetDIBits]
push 0xcc0020
push 0
push dword [ebp - 0xc]
push dword [ebp - 0x14]
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push 0
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0
push 0
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_StretchDIBits]
push esi
push dword [ebp + 0xc]
call edi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 4]
mov edi, dword [ebp + 0xc]
mov dword [ebx], eax
jmp 0x1000a3f6
mov eax, dword [ebp - 4]
cmp dword [ebx], 0
jne 0x1000a402
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000a420
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x3c
push ebx
push esi
push edi
test eax, eax
jne 0x1000a43c
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [eax], 0
push 0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call sub.gdiplus.dll_GdiplusStartup
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov ebx, eax
test ebx, ebx
je 0x1000a49e
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
mov dword [ebx], vtable.Gdiplus::Bitmap.0
mov dword [ebp - 0x10], 0
call sub.gdiplus.dll_GdipCreateBitmapFromFile
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [ebx + 4], eax
jmp 0x1000a4a0
xor ebx, ebx
mov eax, dword [ebx + 8]
mov dword [ebx + 8], 0
test eax, eax
jne 0x1000a5ce
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [ebp + 0x14]
mov edi, eax
push dword [ebp + 0x10]
mov dword [ebp - 4], edi
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push esi
push 0
mov dword [ebp - 0x10], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
push 4
push edi
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
push 0
lea eax, [ebp - 8]
push eax
push dword [ebx + 4]
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
test eax, eax
je 0x1000a501
mov dword [ebx + 8], eax
lea eax, [ebp - 0x3c]
push eax
push 0x18
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_GetObjectA]
movq xmm0, qword [ebp - 0x3c]
sub esp, 0x18
mov eax, esp
movq qword [eax], xmm0
movq xmm0, qword [ebp - 0x34]
movq qword [eax + 8], xmm0
movq xmm0, qword [ebp - 0x2c]
movq qword [eax + 0x10], xmm0
call fcn.10002a90
add esp, 0x18
mov dword [ebp - 0xc], eax
test eax, eax
je 0x1000a5ae
push dword [ebp - 0x10]
push edi
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
call edi
push 0
push dword [ebp - 0xc]
mov esi, eax
push 0
push 0
push 0
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_GetDIBits]
push 0xcc0020
push 0
push dword [ebp - 0xc]
push dword [ebp - 0x28]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push 0
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0
push 0
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_StretchDIBits]
push esi
push dword [ebp - 4]
call edi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
mov edi, dword [ebp - 4]
mov dword [eax], ecx
xor esi, esi
jmp 0x1000a5b9
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
mov esi, 1
cmp dword [eax], 0
jne 0x1000a5c5
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x1000a5d3
mov esi, 1
mov edx, dword [ebx]
push 1
mov ecx, ebx
call dword [edx]
push dword [ebp - 0x14]
call sub.gdiplus.dll_GdiplusShutdown
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000a5f0
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
push 0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call sub.gdiplus.dll_GdiplusStartup
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov ebx, eax
test ebx, ebx
je 0x1000a655
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
mov dword [ebx], vtable.Gdiplus::Bitmap.0
mov dword [ebp - 0xc], 0
call sub.gdiplus.dll_GdipCreateBitmapFromFile
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + 4], eax
jmp 0x1000a657
xor ebx, ebx
mov eax, dword [ebx + 8]
mov dword [ebx + 8], 0
test eax, eax
jne 0x1000a789
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [ebp + 0x10]
mov dword [ebp - 4], eax
push dword [ebp + 0xc]
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push esi
mov edi, eax
push 0
mov dword [ebp - 0x10], edi
call dword [sym.imp.USER32.dll_ReleaseDC]
mov esi, dword [ebp - 4]
push 1
push esi
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
push 0
lea eax, [ebp - 8]
push eax
push dword [ebx + 4]
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
test eax, eax
je 0x1000a6bb
mov dword [ebx + 8], eax
cmp byte [ebp + 0x14], 0
je 0x1000a6d2
push dword [ebp - 4]
mov esi, dword [ebp - 8]
call dword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x1000a78b
lea eax, [ebp - 0x3c]
push eax
push 0x18
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_GetObjectA]
movq xmm0, qword [ebp - 0x3c]
sub esp, 0x18
mov eax, esp
movq qword [eax], xmm0
movq xmm0, qword [ebp - 0x34]
movq qword [eax + 8], xmm0
movq xmm0, qword [ebp - 0x2c]
movq qword [eax + 0x10], xmm0
call fcn.10002a90
add esp, 0x18
mov dword [ebp - 0xc], eax
test eax, eax
je 0x1000a77c
push edi
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push esi
call edi
push 0
push dword [ebp - 0xc]
mov esi, eax
push 0
push 0
push 0
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_GetDIBits]
push 0xcc0020
push 0
push dword [ebp - 0xc]
push dword [ebp - 0x28]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 0
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_StretchDIBits]
push esi
push dword [ebp - 4]
call edi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 4]
mov esi, dword [ebp - 0x10]
call dword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x1000a78b
push dword [ebp - 4]
xor esi, esi
call dword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x1000a78b
xor esi, esi
mov edx, dword [ebx]
push 1
mov ecx, ebx
call dword [edx]
push dword [ebp - 0x14]
call sub.gdiplus.dll_GdiplusShutdown
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000b7d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [0x10047140]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x810], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x814], eax
test edi, edi
je 0x1000b932
cmp dword [ebp + 0x18], 0
je 0x1000b932
push esi
push 0x400
lea eax, [ebp - 0x804]
push 0
push eax
mov dword [ebp - 0x808], 0
call fcn.100105b0
push 0x400
lea eax, [ebp - 0x404]
push 0
push eax
call fcn.100105b0
mov ecx, edi
add esp, 0x18
xor ebx, ebx
xor edx, edx
lea esi, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000b850
sub ecx, esi
je 0x1000b87f
lea esi, [ebp - 0x804]
mov al, byte [edx + edi]
mov ecx, edi
mov byte [esi], al
lea esi, [esi + 2]
inc edx
lea ebx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000b870
sub ecx, ebx
cmp edx, ecx
jb 0x1000b861
xor ebx, ebx
mov edi, dword [ebp + 0x18]
mov ecx, edi
xor edx, edx
lea esi, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000b890
sub ecx, esi
je 0x1000b8c0
jmp 0x1000b8a0
mov al, byte [edx + edi]
mov byte [ebp + ebx - 0x404], al
mov eax, edi
add ebx, 2
inc edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000b8b3
sub eax, esi
cmp edx, eax
jb 0x1000b8a0
cmp dword [ebp + 0x1c], 0xffffffff
lea eax, [ebp - 0x80c]
cmovne ebx, dword [ebp + 0x1c]
push eax
lea eax, [ebp - 0x808]
push eax
push 0
push 0xf013f
push 0
push 0
push 0
push dword [ebp - 0x814]
push dword [ebp - 0x810]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
pop esi
test eax, eax
jne 0x1000b934
push ebx
lea eax, [ebp - 0x404]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 0x804]
push 0
push eax
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.1000db11
mov esp, ebp
pop ebp
ret

Function at 0x1000b950
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], 0
push dword [ebp + 8]
call fcn.10004e30
add esp, 0xc
test eax, eax
jne 0x1000b991
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1000b9a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x10047140]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
je 0x1000bb5a
test edi, edi
je 0x1000bb5a
xor eax, eax
push 0x3fe
push eax
mov word [ebp - 0x804], ax
lea eax, [ebp - 0x802]
push eax
call fcn.100105b0
xor eax, eax
push 0x3fe
push eax
mov word [ebp - 0x404], ax
lea eax, [ebp - 0x402]
push eax
call fcn.100105b0
mov ecx, esi
add esp, 0x18
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000ba10
push 0x200
sub ecx, edx
lea eax, [ebp - 0x804]
push eax
lea eax, [ecx + 1]
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
call esi
mov ecx, edi
lea edx, [ecx + 1]
jmp 0x1000ba40
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000ba40
push 0x200
sub ecx, edx
lea eax, [ebp - 0x404]
push eax
lea eax, [ecx + 1]
push eax
push edi
push 0
push 0
call esi
push 0
call fcn.1000fa03
push eax
call fcn.1000f26d
lea ecx, [ebp - 0x404]
add esp, 8
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000ba80
sub ecx, edx
sar ecx, 1
xor esi, esi
lea edi, [ecx*2 + 2]
call fcn.1000f24a
movzx eax, al
and eax, 0x800000ff
jns 0x1000baae
dec eax
or eax, 0xffffff00
inc eax
mov byte [ebp + edi - 0x404], al
cmp esi, 0xb
jne 0x1000bacc
cmp byte [ebp - 0x3f9], 1
jne 0x1000bacc
inc al
mov byte [ebp + edi - 0x404], al
inc esi
inc edi
cmp esi, 0xe
jl 0x1000ba98
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0x808]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerAutoplayHandlersUserChosenExecuteHandlers
push SysReAllocStringLen
mov dword [ebp - 0x808], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1000bb5d
lea eax, [edi + 2]
push eax
lea eax, [ebp - 0x404]
push eax
push 1
push 0
lea eax, [ebp - 0x804]
push eax
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x808]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000db11
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1000db11
mov esp, ebp
pop ebp
ret
Function at 0x1000bb70
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
mov eax, dword [0x10047140]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x1000bb9d
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000db11
mov esp, ebp
pop ebp
ret
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.100105b0
push 0x103
lea eax, [ebp - 0x30f]
push 0
push eax
mov byte [ebp - 0x310], 0
call fcn.100105b0
lea ecx, [ebp - 0x108]
add esp, 0x18
sub ecx, esi
lea esp, [esp]
mov al, byte [esi]
mov byte [ecx + esi], al
lea esi, [esi + 1]
test al, al
jne 0x1000bbe0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x1000bb8b
push ebx
push edi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashA]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x310]
push str._s.
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x454], eax
cmp eax, 0xffffffff
je 0x1000bd3b
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
test byte [ebp - 0x450], 0x10
je 0x1000bcd3
push 0x100374dc
lea eax, [ebp - 0x424]
push eax
call esi
test eax, eax
je 0x1000bd1a
push 0x100374e0
lea eax, [ebp - 0x424]
push eax
call esi
test eax, eax
je 0x1000bd1a
push 0x103
lea eax, [ebp - 0x20b]
push 0
push eax
mov byte [ebp - 0x20c], 0
call fcn.100105b0
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push str._s_s
push eax
call ebx
lea eax, [ebp - 0x20c]
push edi
push eax
call sym.SKUtil.dll_SK_SetFileAttribute
add esp, 0x24
jmp 0x1000bd1a
push 0x103
lea eax, [ebp - 0x20b]
push 0
push eax
mov byte [ebp - 0x20c], 0
call fcn.100105b0
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push str._s_s
push eax
call ebx
add esp, 0x1c
lea eax, [ebp - 0x20c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x450]
push eax
push dword [ebp - 0x454]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1000bc56
mov eax, dword [ebp - 0x454]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [ebp - 4]
pop edi
pop ebx
xor ecx, ebp
mov eax, 1
pop esi
call fcn.1000db11
mov esp, ebp
pop ebp
ret