joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4056e0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 0x45fdd0
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
mov dword [0x45fdd0], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40571b
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x4058d2
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4058ef
and eax, 0xfffffffe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret 4

Function at 0x4058f2
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
inc ecx
push 0
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x405921
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x4088c4]
mov dword [ebp - 8], eax
mov eax, dword [0x4088c8]
dec edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x405971
test edi, edi
jne 0x40592e
mov word [esi], ax
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x40596b

Function at 0x405975
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
xor eax, eax
mov word [esi], ax
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4059ee
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push 0
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x4008
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4059d7
cmp dword [ebp + 0x14], 1
je 0x4059dc
cmp dword [ebp + 0x14], 2
je 0x4059dc
xor eax, eax
mov word [esi], ax
push dword [ebp + 0x18]
xor eax, eax
mov word [esi + 0x4006], ax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
ret 0x14
Function at 0x406036
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x45fe18
push esi
call fcn.00405aac
push esi
call fcn.004057fb
mov edi, eax
test edi, edi
jne 0x406057
xor eax, eax
jmp 0x4060b5
push edi
call fcn.00405adb
test byte [0x47b308], 0x80
je 0x406074
movzx eax, word [edi]
test ax, ax
je 0x406053
cmp ax, 0x5c
je 0x406053
sub edi, esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
sar edi, 1
jmp 0x406096
push esi
call fcn.00405b8c
test eax, eax
je 0x406090
test byte [eax], 0x10
je 0x4060ba
push esi
call fcn.00406009
push esi
call ebx
cmp eax, edi
jg 0x406081
push esi
call fcn.00405fda
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x4060b4
Function at 0x40634f
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0x4089ac
mov ebx, 0x463e20
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [esp + 0x1c]
xor ebp, ebp
mov esi, 0x400
cmp edi, ebp
je 0x40639d
push 1
push ebp
push edi
call fcn.004058f2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x406514
cmp eax, esi
jg 0x406514
push esi
mov edi, 0x469478
push edi
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x406514
cmp eax, esi
jg 0x406514
push ebp
push ebp
push esi
push 0x464620
push 0xffffffffffffffff
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebp
push ebp
call ebx
test eax, eax
je 0x406514
push ebp
push ebp
push esi
mov esi, 0x464c70
push esi
push 0xffffffffffffffff
push edi
push ebp
push ebp
call ebx
test eax, eax
je 0x406514
push esi
push 0x464620
push str._s_s_r_n
push 0x465070
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x47b2bc]
push dword [eax + 0x128]
push edi
call fcn.004060be
push 4
push 0xc0000000
push edi
call fcn.004058f2
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x406514
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
cmp esi, ebp
je 0x40650a
push ebp
lea eax, [esp + 0x14]
push eax
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40650a
cmp edi, dword [esp + 0x10]
jne 0x40650a
push str._Rename__r_n
push esi
call fcn.00405858
cmp eax, ebp
jne 0x4064a1
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x4064d2
push 0x4089a0
add eax, 0xa
push eax
call fcn.00405858
mov ebp, eax
test ebp, ebp
je 0x4064d0
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x4064c3
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x4064bd
sub ebp, esi
inc ebp
mov eax, ebp
xor ebp, ebp
jmp 0x4064d4
xor ebp, ebp
mov eax, edi
push ebx
push 0x465070
add eax, esi
push eax
call fcn.004058ae
push ebp
push ebp
push ebp
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
lea eax, [esp + 0x14]
push eax
add edi, ebx
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x40654d
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.00406036
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
test cl, 8
je 0x406582
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x47b368], eax
jmp 0x406728
mov dword [ebp + 8], ecx
and dword [ebp + 8], 1
push esi
je 0x40659d
test eax, eax
je 0x4066d3
test cl, 2
je 0x4066d3
push edi
push ebx
mov esi, 0x465470
push esi
call fcn.00405aac
cmp dword [ebp + 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x4065c0
push str..
push esi
call edi
jmp 0x4065c6
push ebx
call fcn.00406009
cmp word [ebx], 0
jne 0x4065d6
cmp word [0x465470], 0x5c
jne 0x4065de
push 0x4082c8
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebx + eax*2]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x25c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x4066c2
lea esi, [ebp - 0x230]
push 0x3f
mov eax, esi
push eax
call fcn.004057a7
xor edi, edi
cmp word [eax], di
je 0x406625
cmp word [ebp - 0x28], di
je 0x406625
lea esi, [ebp - 0x28]
cmp word [esi], 0x2e
jne 0x406640
movzx eax, word [esi + 2]
cmp ax, di
je 0x40669f
cmp ax, 0x2e
jne 0x406640
cmp word [esi + 4], di
je 0x40669f
push esi
push dword [ebp - 4]
call fcn.00405aac
test byte [ebp - 0x25c], 0x10
je 0x406667
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x40669f
push dword [ebp + 0xc]
push ebx
call fcn.0040654d
jmp 0x40669f
push ebx
call fcn.004058d2
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x406697
test byte [ebp + 0xc], 4
je 0x40668f
push ebx
push 0xfffffffffffffff1
call fcn.00404a67
push edi
push ebx
call fcn.0040651a
jmp 0x40669f
inc dword [0x47b368]
jmp 0x40669f
push ebx
push 0xfffffffffffffff2
call fcn.00404a67
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x406605
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4066c4
xor edi, edi
cmp dword [ebp + 8], edi
pop edi
je 0x4066d3
mov ecx, dword [ebp - 4]
xor eax, eax
mov word [ecx - 2], ax
xor esi, esi
cmp dword [ebp + 8], esi
je 0x406727
cmp dword [ebp - 0xc], esi
je 0x406717
push ebx
call fcn.00405b8c
test eax, eax
je 0x406727
push ebx
call fcn.00405fda
push ebx
call fcn.004058d2
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x40671f
test byte [ebp + 0xc], 4
je 0x406717
push ebx
push 0xfffffffffffffff1
call fcn.00404a67
push esi
push ebx
call fcn.0040651a
jmp 0x406727
inc dword [0x47b368]
jmp 0x406727
push ebx
push 0xffffffffffffffe5
call fcn.00404a67
pop esi
pop ebx
leave
ret 8
Function at 0x40672d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x469c7c], 0
jne 0x40676b
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406741
mov dword [ecx*4 + 0x469c78], eax
inc ecx
cmp ecx, 0x100
jl 0x40673c
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406798
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x469c78]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x406779
not eax
pop ebp
ret 0xc

Function at 0x432001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40c7d0
mov ecx, 0x1f506a71
nop
nop
nop
nop
nop
test eax, eax
je 0x43204e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x432024
nop
nop
mov eax, section..text_1
nop
mov ebx, 0x42f314
nop
mov ecx, 0x2e5031e
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x432084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x40b170
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x479a10
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x49c068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov edi, dword [ebp + 8]
lea esi, [ecx + 4]
mov ax, word [edi]
mov word [ecx], ax
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [esi], 0
movups xmmword [esi + 4], xmm0
push 8
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
call fcn.0042b3f0
add esp, 4
mov ecx, esi
mov dword [eax + 4], 0
mov dword [esi], eax
mov dword [eax], esi
lea eax, [edi + 4]
push eax
call fcn.00406a60
mov esi, dword [ebp - 0x10]
add esi, 0x20
mov dword [ebp - 4], 1
xorps xmm0, xmm0
mov dword [esi], 0
movups xmmword [esi + 4], xmm0
push 8
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
call fcn.0042b3f0
add esp, 4
mov ecx, esi
mov dword [eax + 4], 0
mov dword [esi], eax
mov dword [eax], esi
lea eax, [edi + 0x20]
push eax
call fcn.00406a60
mov esi, dword [ebp - 0x10]
add esi, 0x3c
mov dword [ebp - 4], 2
xorps xmm0, xmm0
mov dword [esi], 0
movups xmmword [esi + 4], xmm0
push 8
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
call fcn.0042b3f0
add esp, 4
mov ecx, esi
mov dword [eax + 4], 0
mov dword [esi], eax
mov dword [eax], esi
lea eax, [edi + 0x3c]
push eax
call fcn.00406a60
mov esi, dword [ebp - 0x10]
add esi, 0x58
mov dword [ebp - 4], 3
xorps xmm0, xmm0
mov dword [esi], 0
movups xmmword [esi + 4], xmm0
push 8
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
call fcn.0042b3f0
add esp, 4
mov ecx, esi
mov dword [eax + 4], 0
mov dword [esi], eax
mov dword [eax], esi
lea eax, [edi + 0x58]
push eax
call fcn.00406a60
mov ecx, dword [ebp - 0x10]
movzx eax, byte [edi + 0x74]
mov byte [ecx + 0x74], al
movzx eax, byte [edi + 0x75]
mov byte [ecx + 0x75], al
lea eax, [edi + 0x78]
push eax
add ecx, 0x78
call fcn.0040b3e0
lea esi, [edi + 0xd8]
mov edi, dword [ebp - 0x10]
add edi, 0xd8
mov dword [ebp - 4], 4
xorps xmm0, xmm0
mov dword [edi], 0
movups xmmword [edi + 4], xmm0
push 8
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
call fcn.0042b3f0
add esp, 4
mov ecx, edi
mov dword [eax + 4], 0
mov dword [edi], eax
push esi
mov dword [eax], edi
call fcn.00406a60
lea esi, [edi + 0x1c]
mov dword [ebp - 4], 5
xorps xmm0, xmm0
mov dword [esi], 0
movups xmmword [esi + 4], xmm0
push 8
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
call fcn.0042b3f0
add esp, 4
mov ecx, esi
mov dword [eax + 4], 0
mov dword [esi], eax
mov dword [eax], esi
mov eax, dword [ebp + 8]
add eax, 0xf4
push eax
call fcn.00406a60
lea esi, [edi + 0x38]
mov dword [ebp - 4], 6
xorps xmm0, xmm0
mov dword [esi], 0
movups xmmword [esi + 4], xmm0
push 8
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
call fcn.0042b3f0
add esp, 4
mov ecx, esi
mov dword [eax + 4], 0
mov dword [esi], eax
mov dword [eax], esi
mov eax, dword [ebp + 8]
add eax, 0x110
push eax
call fcn.00406a60
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40d360
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x40d392
jl 0x40d385
test ecx, ecx
jne 0x40d392
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x40d452
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.0040e800
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x40d3fe
jg 0x40d3bd
test esi, esi
je 0x40d3fe
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x40d3d5
mov eax, dword [esp + 0x10]
jl 0x40d3cf
cmp eax, esi
jae 0x40d3d5
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.0042d8f0
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x40d41f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x40d43b
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x40d3a4
jl 0x40d43b
test ecx, ecx
jne 0x40d3a4
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x40d496
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x40d496
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.0042d8f0
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x40d507
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x40d4bc
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x40d4f2
nop dword [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.00442c90
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x40d507
cmp edi, eax
ja 0x40d4d0
test edi, edi
je 0x40d507
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.00442c90
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40e950
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x479d30
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x49c068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 0x47
push str.C:Program_FilesMicrosoft_Visual_Studio2022CommunityVCToolsMSVC14.37.32822includexlocale
push 2
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00434bf0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40ea27
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00428ef0
mov dword [esi + 4], eax
add esp, 4
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00428860
int3
Function at 0x414650
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47a3dd
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x49c068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x21c], esi
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x240], 0
movups xmmword [esi], xmm0
movups xmmword [esi + 0x10], xmm0
movq qword [esi + 0x20], xmm0
call fcn.00404ba0
push 0x104
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x240], 1
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea edx, [ebp - 0x218]
lea ecx, [ebp - 0x238]
call fcn.00426710
sub esp, 0x28
mov dword [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x21c], esp
push esi
call fcn.004165f0
sub esp, 0x1c
mov byte [ebp - 4], 2
lea eax, [ebp - 0x238]
mov ecx, esp
push eax
call fcn.004058a0
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 1
call fcn.004143a0
mov edi, eax
add esp, 0x44
mov dword [ebp - 0x23c], edi
cmp esi, edi
je 0x41480a
mov ecx, esi
call fcn.0040a070
mov eax, dword [edi]
lea ecx, [ebp - 0x21c]
push 3
mov dword [esi], eax
add edi, 4
call fcn.004283d0
mov eax, dword [edi]
lea edx, [esi + 4]
mov ecx, dword [edx]
mov dword [edx], eax
mov dword [edi], ecx
mov eax, dword [edx]
test eax, eax
je 0x414761
mov dword [eax], edx
mov eax, dword [edi]
test eax, eax
je 0x414769
mov dword [eax], edi
lea ecx, [ebp - 0x21c]
call fcn.00428480
mov eax, dword [edi + 4]
mov ecx, dword [esi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 8]
mov dword [edi + 4], ecx
mov ecx, dword [esi + 0xc]
mov dword [esi + 0xc], eax
mov dword [edi + 8], ecx
lea ecx, [ebp - 0x21c]
mov edi, dword [ebp - 0x23c]
push 3
add edi, 0x10
call fcn.004283d0
mov eax, dword [edi]
lea edx, [esi + 0x10]
mov ecx, dword [edx]
mov dword [edx], eax
mov dword [edi], ecx
mov eax, dword [edx]
test eax, eax
je 0x4147b5
mov dword [eax], edx
mov eax, dword [edi]
test eax, eax
je 0x4147bd
mov dword [eax], edi
lea ecx, [ebp - 0x21c]
call fcn.00428480
mov ecx, dword [esi + 0x14]
mov eax, dword [edi + 4]
mov edx, dword [ebp - 0x23c]
mov dword [esi + 0x14], eax
mov eax, dword [edi + 8]
mov dword [edi + 4], ecx
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0xc]
mov dword [edi + 8], ecx
mov ecx, dword [esi + 0x1c]
mov dword [esi + 0x1c], eax
mov dword [edi + 0xc], ecx
mov ecx, dword [esi + 0x20]
mov eax, dword [edx + 0x20]
mov dword [esi + 0x20], eax
mov eax, dword [edx + 0x24]
mov dword [edx + 0x20], ecx
mov ecx, dword [esi + 0x24]
mov dword [esi + 0x24], eax
mov dword [edx + 0x24], ecx
lea ecx, [ebp - 0x26c]
call fcn.00404a50
lea ecx, [ebp - 0x238]
call fcn.00406820
mov ecx, dword [ebp - 0x238]
push 8
push ecx
mov dword [ebp - 0x238], 0
call fcn.0042b3d0
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042b3c0
mov esp, ebp
pop ebp
ret
Function at 0x4156a0
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47a54e
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x49c068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], 1
mov dword [ebp - 4], 1
xorps xmm0, xmm0
mov dword [edi], 0
movups xmmword [edi + 4], xmm0
push 8
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
call fcn.0042b3f0
add esp, 4
mov dword [eax + 4], 0
mov dword [edi], eax
mov dword [eax], edi
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0xf
mov byte [edi + 4], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
push 0x2d
xorps xmm0, xmm0
mov dword [ebp - 0x3c], 1
push str.SoftwareMicrosoftWindowsCurrentVersionRun
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.00408cd0
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 3
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
push ecx
cmovae eax, dword [ebp - 0x2c]
push 0x20019
push 0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4157c4
lea ecx, [ebp - 0x30]
call fcn.00406820
mov eax, dword [ebp - 0x30]
push 8
push eax
mov dword [ebp - 0x30], 0
call fcn.0042b3d0
add esp, 8
lea ecx, [ebp + 8]
call fcn.00406820
mov ecx, dword [ebp + 8]
push 8
push ecx
mov dword [ebp + 8], 0
call fcn.0042b3d0
add esp, 8
jmp 0x41588c
cmp dword [ebp + 0x20], 0x10
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0
push 2
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
push 0
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegGetValueA]
test eax, eax
je 0x415825
lea ecx, [ebp - 0x30]
call fcn.00406820
mov eax, dword [ebp - 0x30]
push 8
push eax
mov dword [ebp - 0x30], 0
call fcn.0042b3d0
add esp, 8
lea ecx, [ebp + 8]
call fcn.00406820
mov eax, dword [ebp + 8]
push 8
push eax
mov dword [ebp + 8], 0
call fcn.0042b3d0
add esp, 8
jmp 0x41588c
mov esi, dword [ebp - 0x14]
push esi
call fcn.0042b490
push esi
mov esi, eax
push 0
push esi
call fcn.0042de70
add esp, 0x10
lea eax, [ebp - 0x14]
cmp dword [ebp + 0x20], 0x10
lea ecx, [ebp + 0xc]
cmovae ecx, dword [ebp + 0xc]
push eax
push esi
push 0
push 2
push ecx
push 0
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegGetValueA]
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x415861
sub ecx, edx
push ecx
push esi
mov ecx, edi
call fcn.004068f0
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x30]
call fcn.00405750
lea ecx, [ebp + 8]
call fcn.00405750
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042b3c0
mov esp, ebp
pop ebp
ret