joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4481fb
Capabilities:
Create directory
Delete directory

Disassembly:
mov eax, 0x4afea7
call fcn.00483228
sub esp, 0x14c
push ebx
push esi
push edi
push 0x41
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x157]
mov byte [ebp - 0x158], bl
mov esi, 0x4e7e70
rep stosd dword es:[edi], eax
push esi
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x28], ebx
call fcn.0049d946
push 1
lea ecx, [ebp - 0x10]
pop edi
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
call fcn.0049d64d
push esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.0049d946
push 0xa
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 3
call fcn.004987d2
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 4
cmp dword [eax - 8], ebx
je 0x448368
mov esi, 0x4dd1e4
push esi
lea ecx, [ebp - 0x10]
call fcn.00496f08
test eax, eax
je 0x448368
push esi
lea ecx, [ebp - 0x1c]
call fcn.0049d946
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0044cb10
add esp, 0xc
push esi
push eax
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 6
push eax
call fcn.0049db21
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.0049dca4
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 6
call fcn.0049d8d8
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 5
call fcn.0049d8d8
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.0049d8d8
push esi
lea ecx, [ebp - 0x20]
call fcn.0049d946
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0044cc8b
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 9
call fcn.0049d9c5
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 8
call fcn.0049d8d8
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
call fcn.0049d8d8
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x34], esp
push eax
call fcn.0049d64d
call fcn.00449e37
cmp eax, ebx
pop ecx
jne 0x44835c
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x50]
push eax
call fcn.00498903
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [ebp - 0x10]
cmp dword [eax - 8], ebx
jne 0x448275
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x158]
push 0x104
push ecx
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
jbe 0x448393
lea eax, [ebp - 0x158]
lea ecx, [ebp - 0x18]
push eax
call fcn.0049da15
cmp dword [ebp - 0x44], ebx
je 0x4483ba
mov esi, dword [ebp - 0x4c]
cmp esi, ebx
je 0x4483ba
mov eax, esi
mov esi, dword [esi]
add eax, 8
lea ecx, [ebp - 0x10]
push eax
call fcn.0049d9c5
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x44839b
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
call fcn.0049d64d
mov dword [ebp - 0x28], edi
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 3
call fcn.00498846
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.0049d8d8
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0049d8d8
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.0049d8d8
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x448b10
Capabilities:
Move file

Disassembly:
mov eax, 0x4b0038
call fcn.00483228
sub esp, 0x28
push ebx
push esi
xor ebx, ebx
push 0x4e7e70
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.0049d946
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.0049835d
mov ecx, 0x4e83f8
mov byte [ebp - 4], 2
call fcn.00462b45
cmp eax, 1
jne 0x448c8b
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.WININIT.INI
call fcn.0049d946
push ecx
mov ecx, 0x4e83a0
mov eax, esp
mov dword [ebp - 0x1c], esp
push ebx
push eax
mov byte [ebp - 4], 3
call fcn.00407bd2
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 2
push eax
call fcn.00447f34
add esp, 0x10
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.0049d9c5
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.0049d8d8
lea eax, [ebp - 0x34]
push ebx
push eax
push ecx
mov esi, str.rename
mov ecx, esp
mov dword [ebp - 0x1c], esp
push esi
call fcn.0049d946
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
mov byte [ebp - 4], 5
call fcn.0049d64d
mov byte [ebp - 4], 2
call fcn.00449844
add esp, 0xc
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.0049d64d
lea eax, [ebp - 0x18]
push eax
call fcn.00448171
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x14]
push str.NUL
push eax
mov byte [ebp - 4], 6
call fcn.0049db95
push eax
lea ecx, [ebp - 0x34]
push dword [ebp - 0x2c]
mov byte [ebp - 4], 7
call fcn.00498632
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.0049d8d8
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0049d8d8
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push esi
call fcn.0049d946
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
mov byte [ebp - 4], 8
call fcn.0049d64d
mov byte [ebp - 4], 2
call fcn.004496c2
pop ecx
lea eax, [ebp - 0x34]
pop ecx
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push esi
call fcn.0049d946
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
mov byte [ebp - 4], 9
call fcn.0049d64d
mov byte [ebp - 4], 2
call fcn.00449741
add esp, 0xc
push 1
pop esi
jmp 0x448c99
push 4
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov esi, eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.00498390
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0049d8d8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0049d8d8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x4494a8
Capabilities:
Copy file
Delete file

Disassembly:
mov eax, 0x4b024b
call fcn.00483228
sub esp, 0x4c4
push ebx
push esi
push edi
push 1
xor esi, esi
pop ebx
lea ecx, [ebp - 0x10]
push 0x4e7e70
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], ebx
call fcn.0049d946
push ebx
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], bl
call fcn.00491723
push ebx
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 2
call fcn.00491cc8
push dword [0x4c1524]
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 3
push 0x21
push dword [ebp + 8]
call fcn.00491815
lea eax, [ebp - 0x1c]
push eax
call fcn.00447203
pop ecx
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.0049d9c5
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.0049d8d8
push ecx
lea eax, [ebp - 0x10]
mov edi, esp
mov dword [ebp - 0x14], esp
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.0049d64d
push edi
call fcn.00447289
pop ecx
pop ecx
call fcn.00446d96
pop ecx
push dword [0x4c1524]
lea ecx, [ebp - 0xd0]
push 2
push dword [ebp - 0x10]
call fcn.00491d8c
mov eax, dword [ebp - 0x78]
mov eax, dword [eax + 4]
mov ecx, dword [ebp + eax - 0x74]
cmp dword [ecx + 0x4c], 0xffffffff
je 0x449663
mov ecx, dword [ebp - 0xd0]
mov ecx, dword [ecx + 4]
mov ecx, dword [ebp + ecx - 0xcc]
cmp dword [ecx + 0x4c], 0xffffffff
je 0x449663
test byte [ebp + eax - 0x70], bl
jne 0x449640
call fcn.00449df1
push 0xa
lea eax, [ebp - 0x4d0]
push 0x3ff
push eax
lea ecx, [ebp - 0x78]
call fcn.004667ca
push ecx
lea eax, [ebp - 0x4d0]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.0049d946
call fcn.00449074
test eax, eax
pop ecx
je 0x449608
push 0
push ecx
mov esi, esp
mov dword [ebp - 0x14], esp
push ecx
lea eax, [ebp - 0x4d0]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.0049d946
push esi
call fcn.00448db6
pop ecx
pop ecx
push dword [ebp + 0xc]
call fcn.0044d78f
add esp, 0xc
xor ecx, ecx
test eax, eax
sete cl
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
je 0x449635
lea eax, [ebp - 0x4d0]
lea ecx, [ebp - 0xd0]
push eax
call fcn.00491fa1
push 0x4423be
push 0xa
mov ecx, eax
call fcn.00491e01
mov ecx, eax
call fcn.004423af
mov eax, dword [ebp - 0x78]
mov eax, dword [eax + 4]
jmp 0x449590
lea ecx, [ebp - 0xd0]
call fcn.00491dce
lea ecx, [ebp - 0x78]
call fcn.00491dce
push 0
push dword [ebp + 8]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov esi, ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 2
call fcn.00491d79
lea ecx, [ebp - 0xc8]
call fcn.004916aa
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], bl
call fcn.004917d4
lea ecx, [ebp - 0x6c]
call fcn.004916aa
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0049d8d8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0049d8d8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x449e37
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x4b03d0
call fcn.00483228
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ebx
cmp dword [eax - 8], ebx
je 0x449f38
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
call fcn.0049d64d
lea eax, [ebp - 0x10]
push eax
call fcn.00447404
mov eax, dword [eax]
pop ecx
pop ecx
xor ecx, ecx
cmp dword [eax - 8], ebx
sete cl
mov esi, ecx
lea ecx, [ebp - 0x10]
call fcn.0049d8d8
cmp esi, ebx
jne 0x449f38
push ecx
mov esi, 0x4dd1e4
mov ecx, esp
mov dword [ebp - 0x14], esp
push esi
call fcn.0049d946
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
mov byte [ebp - 4], 1
call fcn.0049d64d
lea eax, [ebp - 0x10]
mov byte [ebp - 4], bl
push eax
call fcn.0044cf68
add esp, 0xc
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.0049d9c5
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0049d8d8
mov ecx, dword [ebp + 8]
mov eax, dword [ecx - 8]
dec eax
cmp eax, ebx
jl 0x449ef4
mov al, byte [eax + ecx]
xor edx, edx
cmp al, 0x3a
sete dl
mov eax, edx
jmp 0x449ef6
xor eax, eax
cmp eax, ebx
je 0x449f23
lea eax, [ebp + 8]
push esi
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0049db21
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
call fcn.0049d9c5
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0049d8d8
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x449f36
test al, 0x10
je 0x449f36
push 1
pop edi
mov ebx, edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0049d8d8
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x44a1bb
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov eax, dword [eax]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x44a1ed
xor eax, eax
jmp 0x44a27e
push esi
push edi
push 1
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [ebp + 0xc]
mov esi, 0x400
push esi
mov dword [edi], ebx
call fcn.0049de4d
pop ecx
mov dword [ebp + 0xc], eax
lea eax, [ebp + 8]
push ebx
push eax
push esi
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
and eax, 3
cmp eax, dword [ebp + 8]
jae 0x44a243
mov ecx, dword [ebp + 8]
sub ecx, eax
add ecx, 3
shr ecx, 2
mov eax, dword [edx]
add edx, 4
add dword [edi], eax
dec ecx
jne 0x44a239
cmp dword [ebp + 8], esi
je 0x44a20e
test byte [ebp + 8], 3
je 0x44a267
xor esi, esi
mov eax, dword [ebp + 8]
and eax, 3
cmp esi, eax
jl 0x44a25d
mov byte [esi + edx], bl
inc esi
cmp esi, 4
jb 0x44a250
mov eax, dword [edx]
add dword [edi], eax
push dword [ebp + 0xc]
call fcn.0049de76
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44c745
Capabilities:
Get disk information

Disassembly:
mov eax, 0x4b0a54
call fcn.00483228
sub esp, 0x224
mov eax, 0x4dd1e4
push esi
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.0049d946
and dword [ebp - 4], 0
push ecx
mov esi, esp
mov dword [ebp - 0x14], esp
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push dword [ebp + 8]
call fcn.0049d64d
push esi
call fcn.00447404
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
lea eax, [ebp - 0x20]
push eax
call fcn.0044cf68
add esp, 0xc
push 1
pop esi
push eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], esi
call fcn.0049db21
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.0049d8d8
mov eax, 0x104
lea ecx, [ebp - 0x12c]
push eax
push ecx
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x24]
push ecx
push 0
push eax
lea eax, [ebp - 0x230]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x44c7ec
push 0xc
pop eax
cmp eax, dword [ebp - 0x24]
sbb esi, esi
neg esi
jmp 0x44c849
push esi
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x4df8d8
call fcn.0049d946
push ecx
mov byte [ebp - 4], 4
mov ecx, esp
mov dword [ebp - 0x1c], esp
push dword [ebp + 8]
call fcn.0049d64d
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 3
push eax
call fcn.00447f34
add esp, 0x10
push 0
push ecx
lea eax, [ebp - 0x18]
mov ecx, esp
mov dword [ebp + 8], esp
push eax
mov byte [ebp - 4], 5
call fcn.0049d64d
call fcn.004466f0
pop ecx
mov esi, eax
pop ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
call fcn.0049d8d8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0049d8d8
mov ecx, dword [ebp - 0xc]
mov eax, esi
mov dword fs:[0], ecx
pop esi
leave
ret
Function at 0x44e15a
Capabilities:
Get number of processors

Disassembly:
mov eax, 0x4b130c
call fcn.00483228
sub esp, 0xc
push ebx
push esi
push edi
mov esi, ecx
lea eax, [ebp - 0x10]
mov edi, 0x4e83a0
push eax
mov ecx, edi
call fcn.004514bf
and dword [ebp - 4], 0
push eax
lea ecx, [esi + 0x68]
call fcn.0049d9c5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0049d8d8
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x4dd1e4
call fcn.0049d946
push 1
pop ebx
push ecx
mov dword [ebp - 4], ebx
mov ecx, esp
mov dword [ebp - 0x18], esp
push dword [ebp + 8]
call fcn.0049d64d
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x10]
push eax
call fcn.0044cf68
add esp, 0xc
push eax
lea ecx, [esi + 0x1c]
mov dword [ebp - 4], 2
call fcn.0049d9c5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0049d8d8
push dword [ebp + 0xc]
lea ecx, [esi + 0x20]
call fcn.0049d9c5
push dword [ebp + 0x10]
lea ecx, [esi + 0x28]
call fcn.0049d9c5
push dword [ebp + 0x14]
lea ecx, [esi + 0x2c]
call fcn.0049d9c5
lea eax, [ebp + 8]
push 0
push eax
mov ecx, edi
call fcn.00430d09
push eax
lea ecx, [esi + 0x30]
mov dword [ebp - 4], 3
call fcn.0049d9c5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0049d8d8
push dword [ebp + 0x18]
lea ecx, [esi + 0x34]
call fcn.0049d9c5
push dword [ebp + 0x1c]
lea ecx, [esi + 0x38]
call fcn.0049d9c5
push dword [ebp + 0x20]
lea ecx, [esi + 0x3c]
call fcn.0049d9c5
push dword [ebp + 0x24]
lea ecx, [esi + 0x40]
call fcn.0049d9c5
push dword [ebp + 0x28]
lea ecx, [esi + 0x44]
call fcn.0049d9c5
push dword [ebp + 0x2c]
lea ecx, [esi + 0x48]
call fcn.0049d9c5
push dword [ebp + 0x30]
lea ecx, [esi + 0x4c]
call fcn.0049d9c5
push dword [ebp + 0x34]
lea ecx, [esi + 0x50]
call fcn.0049d9c5
push dword [ebp + 0x38]
lea ecx, [esi + 0x54]
call fcn.0049d9c5
push dword [ebp + 0x3c]
lea ecx, [esi + 0x5c]
call fcn.0049d9c5
lea eax, [ebp + 0xc]
push 0
push eax
mov ecx, edi
call fcn.004514d7
push eax
lea ecx, [esi + 0x58]
mov dword [ebp - 4], 4
call fcn.0049d9c5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0049d8d8
push dword [ebp + 0x40]
lea ecx, [esi + 0x60]
call fcn.0049d9c5
push dword [ebp + 0x44]
lea ecx, [esi + 0x64]
call fcn.0049d9c5
mov eax, dword [ebp + 0x48]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x9c], eax
mov dword [esi + 0xa0], ebx
pop edi
mov eax, ebx
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x44
Function at 0x451526
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x4b1f02
call fcn.00483228
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
or dword [esi + 0x18], 0xffffffff
mov edi, 0x4e7e70
xor ebx, ebx
push edi
lea ecx, [esi + 0x1c]
mov dword [ebp - 4], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
call fcn.0049d946
push 0x4dd644
lea ecx, [esi + 0x20]
mov byte [ebp - 4], 1
call fcn.0049d946
push edi
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 2
call fcn.0049d946
push 0x4dd640
lea ecx, [esi + 0x28]
mov byte [ebp - 4], 3
call fcn.0049d946
push edi
lea ecx, [esi + 0x2c]
mov byte [ebp - 4], 4
call fcn.0049d946
push str.1111
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 5
call fcn.0049d946
push edi
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 6
call fcn.0049d946
or dword [esi + 0x50], 0xffffffff
mov ecx, dword [ebp - 0xc]
fldz
mov dword [esi + 0x40], 1
mov dword [esi + 0x44], ebx
fstp qword [esi + 0x38]
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov eax, dword [0x4e43a4]
pop edi
mov dword [esi + 0x54], eax
mov dword [esi], vtable.WSetupElement.0
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x451e7a
Capabilities:
Set file attributes

Disassembly:
mov eax, 0x4b211c
call fcn.00483228
sub esp, 0x64
push esi
push edi
mov edi, ecx
and dword [ebp - 4], 0
push 1
lea ecx, [ebp - 0x70]
call fcn.00467c7b
push 0x80
mov byte [ebp - 4], 1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [0x4c1524]
lea ecx, [ebp - 0x70]
push 0x12
push dword [ebp + 8]
call fcn.004923bc
mov eax, dword [ebp - 0x70]
mov eax, dword [eax + 4]
mov eax, dword [ebp + eax - 0x6c]
cmp dword [eax + 0x4c], 0xffffffff
jne 0x451ed2
xor esi, esi
jmp 0x451f1f
mov esi, dword [edi + 8]
test esi, esi
je 0x451f00
mov eax, esi
mov esi, dword [esi]
lea ecx, [ebp - 0x70]
push dword [eax + 8]
call fcn.00467d3d
test esi, esi
je 0x451ef9
push fcn.0044c921
lea ecx, [ebp - 0x70]
call fcn.00467dac
call fcn.00449df1
jmp 0x451ed5
lea ecx, [ebp - 0x70]
call fcn.0049240f
lea eax, [ebp + 8]
lea ecx, [edi + 0x40]
push eax
call fcn.0049d9c5
lea ecx, [edi + 0x3c]
call fcn.0044a3d6
push 1
pop esi
and byte [ebp - 4], 0
lea ecx, [ebp - 0x5c]
call fcn.00467d08
lea ecx, [ebp - 0x5c]
call fcn.004916aa
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0049d8d8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x454d6a
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4b286a
call fcn.00483228
sub esp, 0x120
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x20], esi
mov eax, dword [0x4e43a4]
and dword [ebp - 4], 0
lea edi, [esi + 4]
mov dword [edi], eax
push 1
lea ecx, [esi + 8]
mov byte [ebp - 4], 1
call fcn.00491cc8
lea eax, [ebp - 0x12c]
push 0x104
push eax
mov byte [ebp - 4], 2
mov dword [esi], vtable.WSetupLog.0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x12c]
lea ecx, [ebp - 0x10]
push eax
call fcn.0049d946
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.Corel
mov byte [ebp - 4], 3
call fcn.0049d946
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
mov byte [ebp - 4], 4
call fcn.0049d64d
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 3
push eax
call fcn.00447f34
add esp, 0x10
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.Setup.log
mov byte [ebp - 4], 5
call fcn.0049d946
push ecx
lea eax, [ebp - 0x18]
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
mov byte [ebp - 4], 6
call fcn.0049d64d
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 5
push eax
call fcn.00447f34
add esp, 0x10
push eax
mov ecx, edi
mov byte [ebp - 4], 7
call fcn.0049d9c5
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.0049d8d8
and dword [esi + 0x60], 0
and dword [esi + 0x64], 0
and dword [esi + 0x68], 0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.0049d8d8
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.0049d8d8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret
Function at 0x4578e2
Capabilities:
Get common file path
Persist via run registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x4b3168
call fcn.00483228
sub esp, 0x2c0
mov al, byte [0x4e7e70]
push ebx
push esi
push edi
mov esi, ecx
push 0x40
mov byte [ebp - 0x1c8], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c7]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0xc4]
mov dword [ebp - 0xc4], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esi + 0x54]
xor ebx, ebx
cmp eax, ebx
je 0x457977
cmp dword [ebp - 0xb4], 1
jne 0x457948
lea ecx, [ebp - 0x1c8]
push ecx
push ebx
push ebx
push 2
jmp 0x45795c
cmp dword [ebp - 0xb4], 2
jne 0x457977
lea ecx, [ebp - 0x1c8]
push ecx
push ebx
push ebx
push 0x17
push ebx
call eax
test eax, eax
jne 0x457977
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1c8]
push eax
call fcn.0049da15
jmp 0x457ad6
lea edi, [esi + 0x4c]
push edi
mov dword [ebp - 0x28], edi
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x457ad6
cmp dword [ebp - 0xb4], 1
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
jne 0x4579a0
push 2
jmp 0x4579a2
push 0x17
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
cmp eax, ebx
jne 0x4579d9
lea eax, [ebp - 0x1c8]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x457ac3
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1c8]
push eax
call fcn.0049da15
jmp 0x457ac3
push 0x4e7e70
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], 0xff
mov dword [ebp - 0x24], ebx
call fcn.0049d946
cmp dword [ebp - 0xb4], 1
mov dword [ebp - 4], ebx
jne 0x457a0b
mov edi, 0x80000001
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
jmp 0x457a15
mov edi, 0x80000003
push str..DefaultSoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
lea ecx, [ebp - 0x14]
call fcn.0049da15
lea eax, [ebp - 0x18]
push eax
push 0xf003f
push ebx
push dword [ebp - 0x14]
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x457a68
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2cc]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push str.Programs
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x457ab4
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x2cc]
push eax
call fcn.0049da15
jmp 0x457ab4
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
push str.Programs
call fcn.0049d946
push ecx
add esi, 0x20
mov ecx, esp
mov dword [ebp - 0x30], esp
push esi
mov byte [ebp - 4], 1
call fcn.0049d64d
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], bl
push eax
call fcn.00447f34
add esp, 0x10
mov ecx, dword [ebp + 8]
push eax
mov byte [ebp - 4], 2
call fcn.0049d9c5
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.0049d8d8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0049d8d8
mov edi, dword [ebp - 0x28]
mov eax, dword [edi]
push dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [edi]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4