joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4014b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x5363c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x108]
push 0x104
push 0
push eax
mov dword [ebp - 0x10c], esi
call fcn.004bda50
add esp, 0xc
lea eax, [ebp - 0x108]
push 0
push dword [ebp + 0xc]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov dword [esi + 0x10], 0
lea ecx, [ebp - 0x108]
mov dword [esi + 0x14], 0
lea edx, [ecx + 1]
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401525
sub ecx, edx
lea eax, [ebp - 0x108]
push ecx
push eax
mov ecx, esi
call fcn.00402e50
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004bb96c
mov esp, ebp
pop ebp
ret
Function at 0x401d90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e776d
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5363c0]
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, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
lea edx, [ebp - 0x2c]
mov dword [ebp - 4], 0
push edx
push dword [ebp + 0x1c]
mov dword [ebp - 0x2c], 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401e3d
push eax
push dword [ebp + 0x18]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x30], eax
call fcn.004023b0
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp + 0x18]
push ecx
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
push 0
push edi
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x28]
mov dword [esi + 0x10], 0
cmovae edx, dword [ebp - 0x28]
mov ecx, edx
mov dword [esi + 0x14], 0
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401e72
sub ecx, edi
push ecx
push edx
mov ecx, esi
call fcn.00402e50
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x401eb4
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401eaa
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401ed1
push ecx
push edx
call fcn.004bb95e
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.004bb96c
mov esp, ebp
pop ebp
ret
call fcn.004c15cf
int3

Function at 0x401ee0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 0x18]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401f2e
mov eax, dword [ebp + 0x14]
mov ecx, eax
cmp dword [eax + 0x14], 0x10
jb 0x401f11
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
push 1
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x401fa0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x401fc5
xor al, al
mov esp, ebp
pop ebp
ret
push esi
push 0
push 0
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
sete al
mov esp, ebp
pop ebp
ret
Function at 0x405240
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e797d
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x5363c0]
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, dword [ebp + 8]
test esi, esi
je 0x405428
cmp byte [esi], 0
je 0x405428
push 0x5c
push esi
call fcn.004bdd90
mov edi, eax
add esp, 8
test edi, edi
je 0x405428
mov ecx, esi
mov dword [ebp - 0x18], 0
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4052b0
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00403d10
sub edi, esi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
lea eax, [edi + 1]
push eax
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x78]
push 0
push eax
call fcn.00402230
mov edi, eax
lea eax, [ebp - 0x28]
cmp eax, edi
je 0x405313
mov ecx, eax
call fcn.00403210
movups xmm0, xmmword [edi]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
lea ecx, [ebp - 0x78]
call fcn.00403210
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 1
je 0x405417
cmp eax, 5
je 0x405417
push esi
lea ecx, [ebp - 0x58]
call fcn.00402530
push 0xffffffffffffffff
push dword [ebp - 0x60]
lea eax, [ebp - 0x78]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x58]
call fcn.00402230
push eax
lea ecx, [ebp - 0x58]
call fcn.004024b0
lea ecx, [ebp - 0x78]
call fcn.00403210
push 8
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
push 0x4ecab8
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 0
movups xmmword [ebp - 0x40], xmm0
call fcn.00403d10
mov ecx, dword [ebp - 0x30]
or eax, 0xffffffff
xor esi, esi
mov byte [ebp - 4], 2
test ecx, ecx
je 0x4053f3
mov edx, dword [ebp - 0x48]
cmp ecx, esi
jbe 0x405447
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
lea edi, [ebp - 0x58]
cmovae eax, dword [ebp - 0x40]
cmp dword [ebp - 0x44], 0x10
cmovae edi, dword [ebp - 0x58]
mov al, byte [eax + esi]
test edx, edx
je 0x4053e8
push edx
movsx eax, al
push eax
push edi
call fcn.004bdec0
add esp, 0xc
test eax, eax
je 0x4053e5
sub eax, edi
jns 0x4053f3
mov ecx, dword [ebp - 0x30]
jmp 0x4053eb
mov ecx, dword [ebp - 0x30]
or eax, 0xffffffff
mov edx, dword [ebp - 0x48]
inc esi
cmp esi, ecx
jb 0x4053a5
cmp eax, 0xffffffff
lea ecx, [ebp - 0x40]
sete byte [ebp - 0x59]
call fcn.00403210
lea ecx, [ebp - 0x58]
call fcn.00403210
lea ecx, [ebp - 0x28]
call fcn.00403210
mov al, byte [ebp - 0x59]
jmp 0x40542a
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x59], 0
call fcn.00403210
mov al, byte [ebp - 0x59]
jmp 0x40542a
xor al, al
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.004bb96c
mov esp, ebp
pop ebp
ret 4
call fcn.00402840
int3
Function at 0x405730
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e79fd
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x5363c0]
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, dword [ebp + 8]
xorps xmm0, xmm0
mov eax, dword [ebp + 0x10]
mov ecx, esi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x68], eax
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405780
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00403d10
mov ecx, edi
mov dword [ebp - 4], 0
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4057a0
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.00402420
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
xorps xmm0, xmm0
mov dword [ebp - 0x64], 0x3c
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x64]
push eax
movlpd qword [ebp - 0x40], xmm0
movlpd qword [ebp - 0x38], xmm0
movlpd qword [ebp - 0x30], xmm0
mov dword [ebp - 0x60], 0x440
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x405820
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x405850
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x405846
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40586d
push ecx
push edx
call fcn.004bb95e
add esp, 8
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.004bb96c
mov esp, ebp
pop ebp
ret 0xc
call fcn.004c15cf
int3
Function at 0x406db0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e7d2a
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x5363c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
xorps xmm0, xmm0
movups xmmword [edi + 0x18], xmm0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0xf
mov byte [edi + 0x18], 0
movups xmmword [edi + 0x30], xmm0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0xf
mov dword [ebp - 4], 0
mov byte [edi + 0x30], 0
movups xmmword [edi + 0x48], xmm0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0xf
mov byte [edi + 0x48], 0
movups xmmword [edi + 0x60], xmm0
mov dword [edi + 0x70], 0
mov dword [edi + 0x74], 0xf
mov byte [edi + 0x60], 0
movups xmmword [edi + 0x78], xmm0
mov dword [edi + 0x88], 0
mov dword [edi + 0x8c], 0xf
mov byte [edi + 0x78], 0
mov dword [edi + 0x90], 0
mov dword [edi + 0x94], 0
mov dword [edi + 0x98], 0
lea esi, [edi + 0x9c]
mov byte [ebp - 4], 5
push 0x40
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004bb92e
xorps xmm0, xmm0
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov dword [edi + 0xa4], 0xffffffff
mov dword [edi + 0xa8], 0xffffffff
mov dword [edi + 0xac], 0
movups xmmword [edi + 0xb0], xmm0
mov dword [edi + 0xc0], 0
mov dword [edi + 0xc4], 0xf
mov byte [edi + 0xb0], 0
movups xmmword [edi + 0xc8], xmm0
mov dword [edi + 0xd8], 0
mov dword [edi + 0xdc], 0xf
mov byte [edi + 0xc8], 0
movups xmmword [edi + 0xe0], xmm0
mov dword [edi + 0xf0], 0
mov dword [edi + 0xf4], 0xf
mov byte [edi + 0xe0], 0
movups xmmword [edi + 0xf8], xmm0
mov dword [edi + 0x108], 0
mov dword [edi + 0x10c], 0xf
mov byte [edi + 0xf8], 0
movups xmmword [edi + 0x110], xmm0
mov dword [edi + 0x120], 0
mov dword [edi + 0x124], 0xf
mov byte [edi + 0x110], 0
movups xmmword [edi + 0x128], xmm0
mov dword [edi + 0x138], 0
mov dword [edi + 0x13c], 0xf
mov byte [edi + 0x128], 0
movups xmmword [edi + 0x140], xmm0
mov dword [edi + 0x150], 0
mov dword [edi + 0x154], 0xf
mov byte [edi + 0x140], 0
mov dword [edi + 0x158], 0
movups xmmword [edi + 0x15c], xmm0
mov dword [edi + 0x16c], 0
mov dword [edi + 0x170], 0xf
mov byte [edi + 0x15c], 0
movups xmmword [edi + 0x174], xmm0
mov dword [edi + 0x184], 0
mov eax, edi
mov dword [edi + 0x188], 0xf
mov byte [edi + 0x174], 0
mov dword [edi + 0x18c], 0
mov dword [edi + 0x190], 0
mov dword [edi + 0x194], 0
mov dword [edi + 0x198], 0
mov dword [edi + 0x19c], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x409b20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push dword [ebp + 8]
mov byte [0x53816c], 0
push 0x409ba0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret 4
Function at 0x409b50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push 0
push 0
push dword [ebp + 8]
mov esi, ecx
push 0x409c60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esi + 4]
mov dword [ebp + 8], eax
cmp ecx, dword [esi + 8]
je 0x409b82
mov dword [ecx], eax
add dword [esi + 4], 4
pop esi
pop ebp
ret 4
lea eax, [ebp + 8]
push eax
push ecx
mov ecx, esi
call fcn.00408d50
pop esi
pop ebp
ret 4

Function at 0x40a0c0
Capabilities:
Check if file exists
Create shortcut via ishelllink
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e823b
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x5363c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x430], eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40a112
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x428], 0
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.004bda50
push 0x208
lea eax, [ebp - 0x420]
mov dword [ebp - 0x42c], 0
push 0
push eax
call fcn.004bda50
add esp, 0x18
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x218]
push eax
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jne 0x40a17e
mov esi, 0x80004005
jmp 0x40a279
lea eax, [ebp - 0x428]
push eax
push 0x4efa00
push 1
push 0
push 0x4efa20
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
js 0x40a279
mov eax, dword [ebp - 0x428]
mov dword [ebp - 0x424], 0
test eax, eax
je 0x40a1e1
mov ecx, dword [eax]
lea edx, [ebp - 0x424]
push edx
push 0x4ed6c8
push eax
call dword [ecx]
mov ecx, dword [ebp - 0x424]
xor edx, edx
test eax, eax
mov eax, dword [ebp - 0x428]
cmovs ecx, edx
mov dword [ebp - 0x424], ecx
mov ecx, dword [eax]
lea edx, [ebp - 0x218]
push edx
push eax
mov byte [ebp - 4], 1
call dword [ecx + 0x50]
mov esi, eax
test esi, esi
js 0x40a265
mov eax, dword [ebp - 0x428]
mov ecx, 0x5113d4
mov esi, dword [ebp - 0x430]
test esi, esi
cmovne ecx, esi
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x1c]
mov esi, eax
test esi, esi
js 0x40a265
test ebx, ebx
je 0x40a234
mov eax, dword [ebp - 0x428]
push 0
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov esi, eax
test esi, esi
js 0x40a265
push 0x104
push edi
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.004c71d3
mov eax, dword [ebp - 0x424]
lea edx, [ebp - 0x420]
add esp, 0x10
mov ecx, dword [eax]
push 1
push edx
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [ebp - 0x424]
mov byte [ebp - 4], 0
test eax, eax
je 0x40a279
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0x428]
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x40a290
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bb96c
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40a2b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e829f
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x5363c0]
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
lea eax, [ebp - 0x28]
push eax
call fcn.0040a690
cmp dword [0x538168], 0
mov dword [ebp - 4], 0
jne 0x40a333
push 0x1a0
call fcn.004bb92e
mov esi, eax
add esp, 4
mov dword [ebp - 0x44], esi
mov byte [ebp - 4], 1
test esi, esi
je 0x40a328
push 0x1a0
push 0
push esi
call fcn.004bda50
add esp, 0xc
mov ecx, esi
call fcn.00406db0
jmp 0x40a32a
xor eax, eax
mov byte [ebp - 4], 0
mov dword [0x538168], eax
mov ecx, edi
call fcn.0040aac0
test al, al
jne 0x40a3b0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40a3b0
lea eax, [ebp - 0x5c]
push eax
call fcn.00401410
add esp, 4
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 2
jb 0x40a36c
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00401950
add esp, 8
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 4
call fcn.00403210
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
push 0
cmovae ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
mov ecx, edi
push 0
push eax
call fcn.0040a0c0
lea ecx, [ebp - 0x40]
call fcn.004031b0
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x40a3e6
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40a3dc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a401
push ecx
push edx
call fcn.004bb95e
add esp, 8
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.004bb96c
mov esp, ebp
pop ebp
ret
call fcn.004c15cf
int3
Function at 0x40a690
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e8360
mov eax, dword fs:[0]
push eax
sub esp, 0x2d8
mov eax, dword [0x5363c0]
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, dword [ebp + 8]
mov dword [ebp - 0x234], edi
mov eax, dword [0x538168]
test eax, eax
jne 0x40a716
push 0x1a0
call fcn.004bb92e
mov esi, eax
add esp, 4
mov dword [ebp - 0x234], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x40a708
push 0x1a0
push 0
push esi
call fcn.004bda50
add esp, 0xc
mov ecx, esi
call fcn.00406db0
jmp 0x40a70a
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x538168], eax
lea ecx, [ebp - 0x2e4]
push ecx
mov ecx, eax
call fcn.00407890
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 4], 1
jb 0x40a733
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.00401950
add esp, 8
lea ecx, [ebp - 0x2e4]
mov byte [ebp - 4], 3
call fcn.00407260
push 4
push 0x4ed6bc
lea ecx, [ebp - 0x230]
call fcn.0040b200
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004bda50
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 0x10
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
xorps xmm0, xmm0
lea ecx, [ebp - 0x218]
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
lea edx, [ecx + 2]
mov dword [edi + 0x14], 0
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a7d0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00409fe0
mov ecx, dword [ebp - 0x21c]
cmp ecx, 8
jb 0x40a82a
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40a820
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a849
push ecx
push edx
call fcn.004bb95e
add esp, 8
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.004bb96c
mov esp, ebp
pop ebp
ret 4
call fcn.004c15cf
int3

Function at 0x40a850
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x5363c0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0040a690
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 8]
cmp ecx, 8
jb 0x40a8b1
mov edx, dword [ebp - 0x1c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40a8a7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a8bf
push ecx
push edx
call fcn.004bb95e
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bb96c
mov esp, ebp
pop ebp
ret
call fcn.004c15cf
int3
Function at 0x40c100
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e85ba
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x5363c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [0x538168]
test eax, eax
jne 0x40c17d
push 0x1a0
call fcn.004bb92e
mov esi, eax
add esp, 4
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x40c16f
push 0x1a0
push 0
push esi
call fcn.004bda50
add esp, 0xc
mov ecx, esi
call fcn.00406db0
jmp 0x40c171
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x538168], eax
lea ecx, [ebp - 0xdc]
push ecx
mov ecx, eax
call fcn.00407890
add eax, 0x30
mov dword [ebp - 4], 1
cmp dword [eax + 0x14], 0x10
jb 0x40c19d
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00401950
add esp, 8
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 3
call fcn.00407260
push dword [edi + 4]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40c25b
mov esi, dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea eax, [esi + esi]
lea esi, [eax + 2]
mov dword [ebp - 0x30], eax
push esi
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
mov ebx, eax
push 0
push ebx
call fcn.004bda50
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x28]
add esp, 0xc
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
test ecx, ecx
je 0x40c242
test ebx, ebx
je 0x40c232
push ecx
test eax, eax
je 0x40c227
push eax
push ebx
call fcn.004bd4d0
add esp, 0xc
jmp 0x40c242
push 0
push ebx
call fcn.004bda50
add esp, 0xc
call fcn.004c7eaa
mov dword [eax], 0x16
call fcn.004c15bf
mov esi, dword [ebp - 0x2c]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [edi + 0x538]
test ecx, ecx
je 0x40c26f
mov eax, dword [ecx]
push 1
call dword [eax + 0xe0]
push 0x7d0
push 0x1772
push dword [edi + 0x538]
lea ecx, [edi + 0x2c]
call sym.CAD.exe_public:_bool___thiscall_DuiLib::CPaintManagerUI::SetTimer_class_DuiLib::CControlUI___unsigned_int__unsigned_int_
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x40c2bd
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40c2b3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c2d9
push ecx
push edx
call fcn.004bb95e
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bb96c
mov esp, ebp
pop ebp
ret
call fcn.004c15cf
int3