joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c87d3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, ecx
push esi
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [ebx], esi
je 0x4c88a0
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 8], 7
mov dword [ebx + 4], eax
jne 0x4c88a0
mov eax, dword [ebp - 4]
xor ecx, ecx
push edi
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004d0695
mov edi, eax
pop ecx
test edi, edi
je 0x4c8832
xor eax, eax
mov word [edi], ax
jmp 0x4c8834
mov edi, esi
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebx + 4], eax
test eax, eax
jne 0x4c8894
push edi
call fcn.004d085a
mov ebx, eax
mov eax, edi
pop ecx
push eax
lea ecx, [ebp + 8]
call fcn.004a6826
mov ecx, dword [ebp + 0xc]
lea eax, [ebp + 8]
push eax
call fcn.004cca92
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.004a7cf5
inc ebx
add esi, ebx
lea eax, [edi + esi*2]
push eax
call fcn.004d085a
mov ebx, eax
lea eax, [edi + esi*2]
pop ecx
test ebx, ebx
jg 0x4c885b
xor esi, esi
inc esi
test edi, edi
je 0x4c889f
push edi
call fcn.004d069e
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4c88aa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [edi], ebx
cmp dword [esi], ebx
je 0x4c8943
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [esi + 4], eax
test eax, eax
jne 0x4c8943
lea eax, [ebp + 0xf]
mov byte [ebp + 0xf], bl
push eax
push dword [ebp - 4]
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call fcn.004ca68c
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x14]
call fcn.004c2b5d
lea ecx, [ebp - 0x20]
call fcn.004793f0
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [esi + 4], eax
test eax, eax
jne 0x4c8943
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x14]
push dword [ebp + 0x10]
mov dword [edi], eax
call fcn.00479280
inc ebx
lea ecx, [ebp - 0x14]
call fcn.004793f0
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4c8fcf
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
mov eax, dword [0x5520a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x254], 0
push ebx
push esi
mov dword [ebp - 0x264], eax
mov eax, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x26c], eax
mov eax, dword [ebp + 0x18]
push 0x24c
mov dword [ebp - 0x270], eax
lea eax, [ebp - 0x250]
push 0
push eax
mov dword [ebp - 0x268], edi
call fcn.004d11d0
add esp, 0xc
lea ecx, [ebp - 0x260]
push edi
call fcn.004a6826
call fcn.004a7389
push eax
lea ecx, [ebp - 0x258]
call fcn.004a6766
push 0x52d094
mov esi, 0x104
lea ecx, [ebp - 0x260]
push esi
call fcn.004a7bcd
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x260]
call fcn.004ad6e5
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4c90bb
mov esi, dword [ebp - 0x258]
lea ecx, [esi - 0x10]
call fcn.004a7cf5
mov ecx, dword [ebp - 0x260]
lea ecx, [ecx - 0x10]
call fcn.004a7cf5
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d11b3
mov esp, ebp
pop ebp
ret
mov esi, 0x104
push edi
lea ecx, [ebp - 0x258]
call fcn.004a7e3e
lea eax, [ebp - 0x228]
push eax
push esi
lea ecx, [ebp - 0x258]
call fcn.004a7bcd
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x258]
call fcn.004ad6e5
push dword [ebp - 0x264]
lea ecx, [ebp - 0x25c]
call fcn.004a6826
lea eax, [ebp - 0x228]
push eax
push esi
lea ecx, [ebp - 0x25c]
call fcn.004a7bcd
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x25c]
call fcn.004ad6e5
test byte [ebp - 0x254], 0x10
mov esi, dword [ebp - 0x258]
mov edi, dword [ebp - 0x25c]
je 0x4c91b8
lea eax, [ebp - 0x228]
push 0x528690
push eax
call fcn.004d081c
pop ecx
pop ecx
test eax, eax
je 0x4c917a
lea eax, [ebp - 0x228]
push 0x52867c
push eax
call fcn.004d081c
pop ecx
pop ecx
test eax, eax
je 0x4c917a
mov eax, dword [ebp - 0x254]
mov ecx, 0x410
and eax, ecx
cmp eax, ecx
jne 0x4c9185
mov ecx, dword [ebp - 0x25c]
lea ecx, [ecx - 0x10]
jmp 0x4c91d3
cmp dword [ebp + 0x10], 0
je 0x4c91d0
push edi
call fcn.004c3b33
pop ecx
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x4c91d0
push dword [ebp - 0x270]
push dword [ebp - 0x26c]
push dword [ebp + 0x10]
push edi
push esi
call fcn.004c8fcf
add esp, 0x14
jmp 0x4c91d0
push 3
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4c91d0
push 1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [edi - 0x10]
call fcn.004a7cf5
lea eax, [ebp - 0x254]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edi, dword [ebp - 0x268]
test eax, eax
jne 0x4c90b6
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4c908d
Function at 0x4c9200
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
xor edi, edi
lea eax, [ebp - 0x54]
push 0x40
push edi
push eax
mov ebx, edi
call fcn.004d11d0
add esp, 0xc
mov dword [ebp - 0x58], 0x44
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 1
movdqu xmmword [ebp - 0x14], xmm0
call fcn.004a7389
push eax
lea ecx, [ebp - 4]
call fcn.004a6766
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push dword [ebp + 8]
push 0x52ca14
push eax
call fcn.004a72ac
add esp, 0x10
cmp dword [ebp + 0x14], ebx
je 0x4c9261
push 0xa
pop eax
jmp 0x4c9263
xor eax, eax
mov esi, dword [ebp - 4]
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4c92ab
cmp dword [ebp + 0x10], ebx
je 0x4c92a8
push dword [ebp + 0x10]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4c92a8
cmp dword [ebp + 0x18], ebx
je 0x4c92a8
push edi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor ebx, ebx
inc ebx
cmp dword [ebp - 0x14], edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x4c92bf
push dword [ebp - 0x14]
call edi
and dword [ebp - 0x14], 0
cmp dword [ebp - 0x10], 0
je 0x4c92ce
push dword [ebp - 0x10]
call edi
and dword [ebp - 0x10], 0
lea ecx, [esi - 0x10]
call fcn.004a7cf5
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4caa4d
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
mov eax, dword [0x5520a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x258]
push ebx
push esi
push edi
push eax
xor edi, edi
call fcn.004a6826
push 0x52cb98
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x270]
push eax
call fcn.004b96f4
add esp, 0xc
lea ecx, [ebp - 0x254]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [ebp - 0x270]
mov ebx, eax
add ecx, 0xfffffff0
mov dword [ebp - 0x25c], ebx
call fcn.004a7cf5
cmp ebx, 0xffffffff
jne 0x4caabf
inc edi
jmp 0x4cac0a
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpW]
test byte [ebp - 0x254], 0x10
lea eax, [ebp - 0x228]
je 0x4cab7b
push 0x528690
push eax
call ebx
test eax, eax
je 0x4cabe0
push 0x52867c
lea eax, [ebp - 0x228]
push eax
call ebx
test eax, eax
je 0x4cabe0
push str.Config
lea eax, [ebp - 0x228]
push eax
call ebx
test eax, eax
je 0x4cabe0
push 0x53e748
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x26c]
push eax
call fcn.004b96f4
add esp, 0xc
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.004b96f4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call fcn.004caa4d
mov ecx, dword [ebp - 0x260]
add esp, 0x18
add ecx, 0xfffffff0
mov esi, eax
call fcn.004a7cf5
mov ecx, dword [ebp - 0x26c]
add ecx, 0xfffffff0
call fcn.004a7cf5
test esi, esi
je 0x4cabfe
jmp 0x4cabe0
push eax
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.004b96f4
add esp, 0xc
push 0x80
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [ebp - 0x264]
lea ecx, [ecx - 0x10]
call fcn.004a7cf5
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x268]
push eax
call fcn.004b96f4
add esp, 0xc
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x268]
lea ecx, [ecx - 0x10]
call fcn.004a7cf5
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4caac5
xor edi, edi
inc edi
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [ebp - 0x258]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [esi - 0x10]
call fcn.004a7cf5
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d11b3
mov esp, ebp
pop ebp
ret
Function at 0x4cc1c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov ebx, ecx
lea eax, [ebp - 8]
push edi
lea esi, [ebx + 4]
push esi
push eax
call fcn.004cb77c
mov edi, dword [ebp - 8]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
lea eax, [ebp - 8]
je 0x4cc201
mov ecx, dword [ebp + 8]
push eax
call fcn.004a691f
push esi
lea ecx, [ebx + 0xc]
call fcn.004a691f
mov bl, 1
jmp 0x4cc2a1
push ebx
push eax
mov ecx, ebx
call fcn.004cb77c
mov esi, dword [ebp - 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4cc231
mov ecx, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
call fcn.004a691f
push ebx
lea ecx, [ebx + 0xc]
call fcn.004a691f
mov bl, 1
jmp 0x4cc299
call fcn.004a7389
push eax
lea ecx, [ebp - 8]
call fcn.004a6766
call fcn.004a7389
push eax
lea ecx, [ebp - 4]
call fcn.004a6766
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebx + 8]
push eax
call fcn.004ccae2
add esp, 0xc
test al, al
je 0x4cc281
mov ecx, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
call fcn.004a691f
lea eax, [ebp - 4]
push eax
lea ecx, [ebx + 0xc]
call fcn.004a691f
mov bl, 1
jmp 0x4cc283
xor bl, bl
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.004a7cf5
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.004a7cf5
lea ecx, [esi - 0x10]
call fcn.004a7cf5
lea ecx, [edi - 0x10]
call fcn.004a7cf5
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4cc4b6
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x5520a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x120]
xor ebx, ebx
push eax
push 1
push ebx
push ebx
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x11c], ebx
call sub.WTSAPI32.dll_WTSEnumerateSessionsW
test eax, eax
jne 0x4cc53e
push 0x110
lea eax, [ebp - 0x114]
push ebx
push eax
call fcn.004d11d0
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4cc538
cmp dword [ebp - 0x114], 6
jne 0x4cc538
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4cc57c
mov dword [edi], ebx
xor eax, eax
jmp 0x4cc57c
mov ecx, dword [ebp - 0x120]
mov eax, ebx
push esi
mov esi, 0x490
cmp dword [ebp - 0x11c], eax
jbe 0x4cc573
lea edx, [ecx + 8]
cmp dword [edx], ebx
je 0x4cc569
inc eax
add edx, 0xc
cmp eax, dword [ebp - 0x11c]
jb 0x4cc557
jmp 0x4cc573
imul eax, eax, 0xc
mov esi, ebx
mov eax, dword [eax + ecx]
mov dword [edi], eax
push ecx
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004d11b3
mov esp, ebp
pop ebp
ret
Function at 0x4cc58c
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x5520a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x4cc5ac
or eax, 0xffffffff
jmp 0x4cc605
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.004d11d0
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4cc5ef
cmp dword [ebp - 0x114], 5
jne 0x4cc5ef
cmp dword [ebp - 0x110], 0
je 0x4cc5fa
push esi
call fcn.004cc93c
pop ecx
test eax, eax
je 0x4cc603
push esi
call fcn.004cc753
pop ecx
jmp 0x4cc605
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004d11b3
mov esp, ebp
pop ebp
ret

Function at 0x4cc753
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x5520a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
xor ebx, ebx
mov dword [ebp - 0x238], eax
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x4cc78d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4cc855
push esi
push 0x228
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x234], ebx
push ebx
push eax
mov esi, 0x490
call fcn.004d11d0
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4cc809
lea eax, [ebp - 0x20c]
push str.explorer.exe
push eax
call fcn.004d3274
pop ecx
pop ecx
test eax, eax
je 0x4cc7f9
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4cc7cf
jmp 0x4cc80d
mov eax, dword [ebp - 0x228]
xor esi, esi
mov dword [ebp - 0x234], eax
jmp 0x4cc80d
call ebx
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x234]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x4cc831
call ebx
jmp 0x4cc854
push dword [ebp - 0x238]
push 0xf01ff
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4cc84b
call ebx
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004d11b3
mov esp, ebp
pop ebp
ret

Function at 0x4cd088
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 3
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4cd0b3
xor eax, eax
jmp 0x4cd0ce
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
xor eax, eax
cmp esi, 0xffffffff
push edi
cmove esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebp
ret 4
Function at 0x4cd391
Capabilities:
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
pop ebp
ret 8

Function at 0x4cd563
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 4], 0
je 0x4cd59b
push dword [esi + 4]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.004da3b8
push dword [esi + 4]
push 2
push 1
push 0x52d7c8
call fcn.004da3b8
push dword [esi + 4]
call fcn.004da122
add esp, 0x24
pop esi
pop ebp
ret 8

Function at 0x4ceeba
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [edi], esi
je 0x4cef3a
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp + 8]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 8], 1
mov dword [edi + 4], eax
jne 0x4cef3a
mov ecx, dword [ebp + 0xc]
call fcn.004a7155
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
shr eax, 1
inc eax
push eax
call fcn.004a7bcd
lea ecx, [ebp - 4]
mov dword [ebp - 0xc], eax
push ecx
push eax
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp + 8]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [edi + 4], eax
test eax, eax
jne 0x4cef3a
mov eax, dword [ebp - 4]
xor edx, edx
mov ecx, dword [ebp - 0xc]
shr eax, 1
push 0xffffffffffffffff
mov word [ecx + eax*2], dx
mov ecx, dword [ebp + 0xc]
call fcn.004ad6e5
inc esi
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4cef44
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edi
mov edi, dword [ebp + 8]
push dword [edi]
call esi
test eax, eax
je 0x4cf01f
call fcn.004c8448
test eax, eax
je 0x4cf01f
push ebx
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
call fcn.004a7389
push eax
lea ecx, [ebp + 8]
call fcn.004a6766
push 0x104
lea ecx, [ebp + 8]
call fcn.004a7bcd
push eax
push ebx
push 0x1a
push ebx
call fcn.004c9486
add esp, 0x10
lea ecx, [ebp + 8]
push 0xffffffffffffffff
call fcn.004ad6e5
push str.MicrosoftInternet_ExplorerQuick_LaunchUser_PinnedTaskBar_
lea ecx, [ebp + 8]
call fcn.004a6b19
push str.CapCut.lnk
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.004b96f4
add esp, 0xc
push dword [eax]
call esi
mov ecx, dword [ebp - 4]
mov esi, eax
add ecx, 0xfffffff0
call fcn.004a7cf5
test esi, esi
je 0x4cf013
push str.CapCut.lnk
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.004b96f4
push ebx
push str.Bytedance.CapCut
push dword [eax]
push 0x539d38
push dword [edi]
call fcn.004c3f53
mov ecx, dword [ebp - 4]
add esp, 0x20
lea ecx, [ecx - 0x10]
call fcn.004a7cf5
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.004a7cf5
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4cf025
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push 0x40
xor ebx, ebx
lea eax, [ebp - 0x54]
push ebx
push eax
call fcn.004d11d0
add esp, 0xc
mov dword [ebp - 0x58], 0x44
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 1
movdqu xmmword [ebp - 0x14], xmm0
push 0xa
pop eax
mov word [ebp - 0x28], ax
call fcn.004a7389
push eax
lea ecx, [ebp - 4]
call fcn.004a6766
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push dword [ebp + 8]
push 0x52ca14
push eax
call fcn.004a72ac
mov esi, dword [ebp - 4]
lea eax, [ebp - 0x14]
add esp, 0x10
push eax
lea eax, [ebp - 0x58]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp dword [ebp - 0x14], 0
mov ebx, eax
je 0x4cf0ae
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x14], 0
cmp dword [ebp - 0x10], 0
je 0x4cf0c1
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x10], 0
lea ecx, [esi - 0x10]
call fcn.004a7cf5
xor eax, eax
test ebx, ebx
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4cf3ab
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4cf3d2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
ret
Function at 0x4fd8bf
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5520a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004e61e1
mov dword [ebp - 0x14], eax
cmp dword [0x556074], esi
jne 0x4fd9b2
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4fd93f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4fda92
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4fda92
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4fda92
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x556074], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x556078], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x55607c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x556084], eax
test eax, eax
je 0x4fd9af
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x556080], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4fd9d7
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4fd9ca
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4fd9ec
push 4
pop eax
jmp 0x4fda94
cmp dword [ebp - 0x14], esi
je 0x4fd9ec
push dword [0x556074]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4fd9d1
mov eax, dword [0x556080]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4fda4a
cmp dword [0x556084], edi
je 0x4fda4a
push eax
call ebx
push dword [0x556084]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4fda4a
test eax, eax
je 0x4fda4a
call ecx
test eax, eax
je 0x4fda3f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4fda3f
test byte [ebp - 8], 1
jne 0x4fda4a
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4fda7a
mov eax, dword [0x556078]
cmp eax, edi
je 0x4fda77
push eax
call ebx
test eax, eax
je 0x4fda77
call eax
mov esi, eax
test esi, esi
je 0x4fda77
mov eax, dword [0x55607c]
cmp eax, edi
je 0x4fda77
push eax
call ebx
test eax, eax
je 0x4fda77
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x556074]
call ebx
test eax, eax
je 0x4fda92
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4fda94
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d11b3
mov esp, ebp
pop ebp
ret
Function at 0xa13370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0xa1338e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0xa3c074
push ecx
mov edi, eax
call fcn.00a27198
mov esi, eax
add esp, 8
test esi, esi
jne 0xa133cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00a2702e
push esi
call fcn.00a26fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret