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

Disassembly:
sub esp, 0x20c
mov eax, dword [0x48e0ec]
xor eax, esp
mov dword [esp + 0x208], eax
mov eax, dword [esp + 0x210]
lea ecx, [esp]
push 0x104
push ecx
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
test eax, eax
jne 0x40335f
xor al, al
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00423c9a
add esp, 0x20c
ret
push 0
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
mov ecx, dword [esp + 0x208]
neg eax
sbb eax, eax
xor ecx, esp
neg eax
call fcn.00423c9a
add esp, 0x20c
ret

Function at 0x403530
Capabilities:
Create directory

Disassembly:
sub esp, 0x210
mov eax, dword [0x48e0ec]
xor eax, esp
mov dword [esp + 0x20c], eax
mov eax, dword [esp + 0x218]
push ebp
push esi
mov esi, dword [esp + 0x21c]
push eax
mov dword [esp + 0xc], esi
call fcn.004495bb
mov ebp, eax
add esp, 4
cmp byte [ebp], 0
je 0x4035e5
push ebx
push edi
mov edi, ebp
nop dword [eax]
mov bl, byte [edi]
cmp bl, 0x2f
je 0x40357c
cmp bl, 0x5c
jne 0x4035dd
push ebp
push esi
mov byte [edi], 0
call fcn.004046f0
mov esi, eax
add esp, 8
mov al, byte [esi]
and al, 0xdf
cmp al, 0x41
jl 0x4035a3
cmp al, 0x5a
jg 0x4035a3
cmp byte [esi + 1], 0x3a
jne 0x4035a3
cmp byte [esi + 2], 0
je 0x4035ce
push 0x104
lea eax, [esp + 0x18]
push eax
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
test eax, eax
je 0x4035ce
push 0
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
push esi
mov byte [edi], bl
call fcn.00442387
mov esi, dword [esp + 0x14]
add esp, 4
inc edi
cmp byte [edi], 0
jne 0x403570
pop edi
pop ebx
push ebp
call fcn.00442387
mov ecx, dword [esp + 0x218]
add esp, 4
mov al, 1
pop esi
pop ebp
xor ecx, esp
call fcn.00423c9a
add esp, 0x210
ret
Function at 0x4037d0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
lea ebp, [esp - 0x458]
sub esp, 0x458
push 0xffffffffffffffff
push 0x45d000
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x48e0ec]
xor eax, ebp
mov dword [ebp + 0x454], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0x460]
xor ebx, ebx
push ecx
push dword [eax]
mov dword [ebp - 0x18], ecx
call fcn.004046f0
mov edi, eax
mov dword [ebp - 0x10], edi
push 0x462524
push edi
mov dword [ebp - 4], ebx
call fcn.004046f0
mov esi, eax
add esp, 0x10
mov dword [ebp - 0x1c], esi
push esi
lea ecx, [ebp]
mov byte [ebp - 4], 1
call fcn.00401bc0
lea eax, [ebp + 0x204]
push eax
push dword [ebp]
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
lea ecx, [ebp]
mov dword [ebp - 0x10], eax
call fcn.00401c40
push esi
call fcn.00442387
push edi
mov dword [ebp - 4], 0xffffffff
call fcn.00442387
add esp, 8
cmp dword [ebp - 0x10], 0xffffffff
je 0x40392d
cmp word [ebp + 0x230], 0x2e
jne 0x4038aa
mov ax, word [ebp + 0x232]
test ax, ax
je 0x40390c
cmp ax, 0x2e
jne 0x4038aa
cmp word [ebp + 0x234], 0
je 0x40390c
lea eax, [ebp + 0x230]
push eax
call fcn.00404db0
mov edi, eax
mov dword [ebp - 0x1c], edi
push edi
push dword [ebp - 0x18]
mov dword [ebp - 4], 2
call fcn.004046f0
mov esi, eax
add esp, 0xc
mov dword [ebp - 0x20], esi
test byte [ebp + 0x204], 0x10
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 3
push esi
je 0x4038eb
call fcn.004037d0
jmp 0x4038f0
call fcn.00403c60
push esi
mov ebx, eax
call fcn.00442387
push edi
mov dword [ebp - 4], 0xffffffff
call fcn.00442387
add esp, 8
test ebx, ebx
jne 0x403924
lea eax, [ebp + 0x204]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x403884
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x454]
xor ecx, ebp
call fcn.00423c9a
lea esp, [ebp + 0x458]
pop ebp
ret 4

Function at 0x403960
Capabilities:
Delete file

Disassembly:
sub esp, 0x20c
mov eax, dword [0x48e0ec]
xor eax, esp
mov dword [esp + 0x208], eax
mov eax, dword [esp + 0x210]
lea ecx, [esp]
push 0x104
push ecx
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
test eax, eax
jne 0x4039af
xor al, al
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00423c9a
add esp, 0x20c
ret
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov ecx, dword [esp + 0x208]
neg eax
sbb eax, eax
xor ecx, esp
neg eax
call fcn.00423c9a
add esp, 0x20c
ret
Function at 0x4039e0
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1660]
mov eax, 0x1660
call fcn.0040e930
push 0xffffffffffffffff
push 0x45d038
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x48e0ec]
xor eax, ebp
mov dword [ebp + 0x165c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push str.TMP.
push dword [eax]
call fcn.004046f0
mov esi, eax
add esp, 8
mov dword [ebp - 0x14], esi
push esi
lea ecx, [ebp]
mov dword [ebp - 4], 0
call fcn.00401bc0
lea eax, [ebp + 0x204]
push eax
push dword [ebp]
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
lea ecx, [ebp]
mov ebx, eax
call fcn.00401c40
push esi
call fcn.00442387
add esp, 4
cmp ebx, 0xffffffff
je 0x403b55
cmp word [ebp + 0x230], 0x2e
jne 0x403aa0
mov ax, word [ebp + 0x232]
test ax, ax
je 0x403b38
cmp ax, 0x2e
jne 0x403aa0
cmp word [ebp + 0x234], 0
je 0x403b38
test byte [ebp + 0x204], 0x10
jne 0x403b38
push 0
push 0
push 0x1000
lea eax, [ebp + 0x454]
push eax
push 0xffffffffffffffff
lea eax, [ebp + 0x230]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
test eax, eax
je 0x403aea
lea eax, [ebp + 0x454]
push eax
call fcn.004495bb
add esp, 4
mov edi, eax
jmp 0x403aec
xor edi, edi
mov eax, dword [ebp - 0x10]
push edi
push dword [eax]
call fcn.004046f0
add esp, 8
mov esi, eax
lea eax, [ebp + 0x1454]
push 0x104
push eax
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
test eax, eax
je 0x403b29
lea eax, [ebp + 0x1454]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
push esi
call fcn.00442387
push edi
call fcn.00442387
add esp, 8
lea eax, [ebp + 0x204]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x403a72
push ebx
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x165c]
xor ecx, ebp
call fcn.00423c9a
lea esp, [ebp + 0x1660]
pop ebp
ret
Function at 0x403b80
Capabilities:
Delete directory

Disassembly:
sub esp, 0x210
mov eax, dword [0x48e0ec]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebp
push esi
mov esi, dword [esp + 0x21c]
push edi
mov edi, dword [esp + 0x224]
push edi
mov dword [esp + 0x10], esi
call fcn.004495bb
mov ebp, eax
add esp, 4
lea eax, [edi + 1]
mov cl, byte [edi]
inc edi
test cl, cl
jne 0x403bb7
sub edi, eax
sub edi, 1
je 0x403c3a
push ebx
mov bl, byte [edi + ebp]
cmp bl, 0x2f
je 0x403bd3
cmp bl, 0x5c
jne 0x403c34
push ebp
push esi
mov byte [edi + ebp], 0
call fcn.004046f0
mov esi, eax
add esp, 8
mov al, byte [esi]
and al, 0xdf
cmp al, 0x41
jl 0x403bfb
cmp al, 0x5a
jg 0x403bfb
cmp byte [esi + 1], 0x3a
jne 0x403bfb
cmp byte [esi + 2], 0
je 0x403c24
push 0x104
lea eax, [esp + 0x18]
push eax
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
test eax, eax
je 0x403c24
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
push esi
mov byte [edi + ebp], bl
call fcn.00442387
mov esi, dword [esp + 0x14]
add esp, 4
sub edi, 1
jne 0x403bc6
pop ebx
push ebp
call fcn.00442387
mov ecx, dword [esp + 0x21c]
add esp, 4
mov al, 1
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00423c9a
add esp, 0x210
ret

Function at 0x403d80
Capabilities:
Delete file
Move file

Disassembly:
sub esp, 0x20c
mov eax, dword [0x48e0ec]
xor eax, esp
mov dword [esp + 0x208], eax
mov eax, dword [esp + 0x210]
lea ecx, [esp]
push 0x104
push ecx
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
test eax, eax
jne 0x403dcf
xor al, al
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00423c9a
add esp, 0x20c
ret
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
jne 0x403e06
push 4
push eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileExW]
neg eax
sbb eax, eax
neg eax
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00423c9a
add esp, 0x20c
ret
mov ecx, dword [esp + 0x208]
mov al, 1
xor ecx, esp
call fcn.00423c9a
add esp, 0x20c
ret

Function at 0x403e20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x20c
mov eax, dword [0x48e0ec]
xor eax, esp
mov dword [esp + 0x208], eax
mov eax, dword [esp + 0x210]
lea ecx, [esp]
push 0x104
push ecx
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
test eax, eax
jne 0x403e6f
xor al, al
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00423c9a
add esp, 0x20c
ret
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00423c9a
add esp, 0x20c
ret
Function at 0x4041e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x24c]
sub esp, 0x24c
push 0xffffffffffffffff
push 0x45d0d8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x48e0ec]
xor eax, ebp
mov dword [ebp + 0x248], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 0x254]
mov eax, dword [ebp + 0x258]
push edi
push dword [ebx]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 0
call fcn.004046f0
mov esi, eax
add esp, 8
mov dword [ebp - 0x20], esi
push 0x104
lea eax, [ebp]
mov dword [ebp - 4], 0
push eax
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
test eax, eax
jne 0x40426d
mov byte [ebp - 0xd], al
jmp 0x404284
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
mov byte [ebp - 0xd], al
test al, al
jne 0x404296
push edi
push dword [ebx]
call fcn.00403530
mov edi, dword [ebp - 0x20]
add esp, 8
mov eax, esi
jmp 0x4042c8
push dword [ebx + 4]
lea eax, [ebp + 0x208]
push dword [ebx + 8]
push str.TMP__d__d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp + 0x208]
push eax
push dword [ebx]
call fcn.004046f0
add esp, 0x18
mov dword [ebp - 0x18], 1
mov edi, eax
push dword [ebp + 0x25c]
push dword [ebp - 0x14]
push eax
call fcn.00404c50
add esp, 0xc
mov dword [ebp - 0x14], eax
test byte [ebp - 0x18], 1
je 0x4042ef
push edi
call fcn.00442387
mov eax, dword [ebp - 0x14]
add esp, 4
test eax, eax
jne 0x404338
push 0x10
call fcn.00423cab
mov ecx, dword [ebx + 4]
mov edi, eax
push dword [ebp - 0x1c]
mov dword [edi], ecx
add dword [ebx + 4], 2
call fcn.004495bb
mov dword [edi + 4], eax
add esp, 8
xor eax, eax
mov dword [ebp - 0x14], 0
cmp byte [ebp - 0xd], al
mov ecx, 4
mov dword [edi + 0xc], eax
cmovne ecx, eax
mov dword [edi + 8], ecx
lea ecx, [edi + 0xc]
mov eax, dword [ebx + 0x14]
mov dword [eax], edi
mov dword [ebx + 0x14], ecx
push esi
call fcn.00442387
mov eax, dword [ebp - 0x14]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x248]
xor ecx, ebp
call fcn.00423c9a
lea esp, [ebp + 0x24c]
pop ebp
ret 0xc
Function at 0x404460
Capabilities:
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0x30c]
sub esp, 0x30c
push 0xffffffffffffffff
push 0x45d138
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x48e0ec]
xor eax, ebp
mov dword [ebp + 0x308], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x314]
mov eax, dword [ebp + 0x31c]
mov edi, dword [ebp + 0x318]
push ebx
push 0x462514
mov dword [ebp - 0x30], eax
call fcn.00403530
add esp, 8
lea eax, [ebp]
push 0x104
push eax
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
test eax, eax
je 0x4044e5
push 0
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], 0
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x1c], 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.004039e0
mov eax, dword [edi + 8]
cmp eax, dword [edi + 4]
je 0x404638
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
call fcn.00402c80
test al, al
je 0x4046b8
mov eax, dword [ebp - 0x2c]
cmp eax, 0xff
ja 0x4046b8
push eax
lea eax, [ebp + 0x208]
mov ecx, edi
push eax
call fcn.00402c00
test al, al
je 0x4046b8
mov eax, dword [ebp - 0x2c]
cmp eax, 0x100
jae 0x4046b3
mov byte [ebp + eax + 0x208], 0
mov ecx, edi
lea eax, [ebp - 0x10]
push eax
call fcn.00402c80
test al, al
je 0x4046b8
mov eax, dword [edi + 4]
mov edx, dword [edi + 8]
sub eax, edx
mov ecx, dword [ebp - 0x10]
cmp ecx, eax
ja 0x4046b8
mov eax, dword [0x495ac0]
test eax, eax
je 0x4045fd
push ecx
push edx
lea ecx, [ebp + 0x208]
push ecx
push ebx
call eax
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4045fa
cmp esi, 0x64
jne 0x4046a7
push 0x10
call fcn.00423cab
mov esi, eax
lea eax, [ebp + 0x208]
push eax
mov dword [esi], 0
call fcn.004495bb
lea ecx, [esi + 0xc]
mov dword [esi + 4], eax
mov dword [esi + 8], 3
add esp, 8
mov dword [ecx], 0
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
mov dword [ebp - 0x14], ecx
jmp 0x40461a
mov ecx, dword [ebp - 0x10]
push ecx
push dword [edi + 8]
lea eax, [ebp + 0x208]
push eax
lea ecx, [ebp - 0x28]
call fcn.004041e0
mov esi, eax
test esi, esi
jne 0x4046a7
push dword [ebp - 0x10]
mov ecx, edi
call fcn.00402d00
test al, al
je 0x4046b8
mov eax, dword [edi + 8]
cmp eax, dword [edi + 4]
jne 0x404524
push str.data
lea ecx, [ebp - 0x28]
call fcn.004037d0
mov esi, eax
lea ecx, [ebp - 0x28]
test esi, esi
jne 0x4046aa
call fcn.00402f50
mov edi, eax
test edi, edi
jne 0x40467a
push str.inst_ver.dat
push ebx
call fcn.004046f0
push 0x14
push dword [ebp - 0x30]
mov esi, eax
push esi
call fcn.00404c50
push esi
call fcn.00442387
add esp, 0x18
lea ecx, [ebp - 0x28]
call fcn.00402e50
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x308]
xor ecx, ebp
call fcn.00423c9a
lea esp, [ebp + 0x30c]
pop ebp
ret
lea ecx, [ebp - 0x28]
call fcn.00402e50
mov eax, esi
jmp 0x404684
call fcn.00423ef6
lea ecx, [ebp - 0x28]
call fcn.00402e50
mov eax, 8
jmp 0x404684
Function at 0x404910
Capabilities:
Move file

Disassembly:
sub esp, 0x414
mov eax, dword [0x48e0ec]
xor eax, esp
mov dword [esp + 0x410], eax
mov eax, dword [esp + 0x418]
lea ecx, [esp + 0x208]
push edi
mov edi, dword [esp + 0x420]
push 0x104
push ecx
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
test eax, eax
jne 0x40496c
xor al, al
pop edi
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.00423c9a
add esp, 0x414
ret
push 0x104
lea eax, [esp + 8]
push eax
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
test eax, eax
je 0x404954
push 3
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x214]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileExW]
mov ecx, dword [esp + 0x414]
neg eax
pop edi
sbb eax, eax
xor ecx, esp
neg eax
call fcn.00423c9a
add esp, 0x414
ret
Function at 0x404c50
Capabilities:
Delete file
Write file on windows

Disassembly:
sub esp, 0x210
mov eax, dword [0x48e0ec]
xor eax, esp
mov dword [esp + 0x20c], eax
mov eax, dword [esp + 0x214]
lea ecx, [esp + 4]
push ebx
mov ebx, dword [esp + 0x21c]
push 0x104
push ecx
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
test eax, eax
jne 0x404cac
mov eax, 0xa
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.00423c9a
add esp, 0x210
ret
push esi
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x404cf8
call dword [sym.imp.KERNEL32.DLL_GetLastError]
sub eax, 0x20
neg eax
pop esi
sbb eax, eax
add eax, 0xe
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.00423c9a
add esp, 0x210
ret
push edi
mov edi, dword [esp + 0x228]
lea eax, [esp + 0xc]
push 0
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x404d3b
cmp dword [esp + 0xc], edi
jne 0x404d3b
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.00423c9a
add esp, 0x210
ret
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov ecx, dword [esp + 0x218]
mov eax, 0xc
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00423c9a
add esp, 0x210
ret
Function at 0x4063b0
Capabilities:
Create thread

Disassembly:
push ecx
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.DLL_CreateEventW]
mov dword [0x495b78], eax
lea eax, [esp]
push eax
push 0
push 0
push 0x409470
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
pop ecx
ret
Function at 0x406800
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
lea ebp, [esp - 0x610]
sub esp, 0x610
push 0xffffffffffffffff
push 0x45d459
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x48e0ec]
xor eax, ebp
mov dword [ebp + 0x60c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x618]
mov ebx, dword [ebp + 0x61c]
mov edi, dword [ebp + 0x624]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x620]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x10]
push eax
push 0x47a848
push 1
push 0
push 0x47a868
mov dword [ebp - 0x10], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
js 0x406992
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x14]
push edx
mov dword [ebp - 0x14], 0
push 0x47a858
mov ecx, dword [eax]
push eax
call dword [ecx]
mov esi, eax
test esi, esi
js 0x406989
push ebx
lea ecx, [ebp + 0x204]
call fcn.00401bc0
mov eax, dword [ebp - 0x10]
push dword [ebp + 0x204]
mov dword [ebp - 4], 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
test edi, edi
je 0x4068f6
push edi
lea ecx, [ebp + 0x408]
call fcn.00401bc0
mov eax, dword [ebp - 0x10]
push dword [ebp + 0x408]
mov byte [ebp - 4], 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
lea ecx, [ebp + 0x408]
mov byte [ebp - 4], 0
call fcn.00401c40
mov eax, dword [ebp - 0x10]
push 0
push dword [ebp + 0x204]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
lea ecx, [ebp + 0x204]
mov dword [ebp - 4], 0xffffffff
call fcn.00401c40
push dword [ebp - 0x18]
lea ecx, [ebp + 0x408]
call fcn.00401bc0
mov eax, dword [ebp - 0x10]
push dword [ebp + 0x408]
mov dword [ebp - 4], 2
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
lea ecx, [ebp + 0x408]
mov dword [ebp - 4], 0xffffffff
call fcn.00401c40
push dword [ebp - 0x1c]
lea ecx, [ebp]
call fcn.00401bc0
mov eax, dword [ebp - 0x14]
push 1
push dword [ebp]
mov dword [ebp - 4], 3
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
lea ecx, [ebp]
mov dword [ebp - 4], 0xffffffff
mov esi, eax
call fcn.00401c40
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
test esi, esi
setns al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x60c]
xor ecx, ebp
call fcn.00423c9a
lea esp, [ebp + 0x610]
pop ebp
ret
Function at 0x4069c0
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x414]
sub esp, 0x414
push 0xffffffffffffffff
push 0x45d4c0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x48e0ec]
xor eax, ebp
mov dword [ebp + 0x410], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x495b75], 0
mov edx, 0x4628b8
mov ecx, dword [ebp + 0x41c]
mov eax, str.SpotifyLauncher.exe
cmove eax, edx
mov dword [ebp - 0x10], ecx
push eax
push ecx
call fcn.004046f0
mov edi, eax
add esp, 8
mov dword [ebp - 0x24], edi
mov ebx, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor eax, eax
cmp byte [0x495b75], al
mov ecx, 0x19
mov dword [ebp - 4], 0
cmovne eax, ecx
lea ecx, [ebp + 0x208]
push ecx
push 0
push 0
push eax
push 0
call ebx
test eax, eax
jne 0x406a6c
lea eax, [ebp + 0x208]
push eax
call fcn.00404db0
add esp, 4
mov dword [ebp - 0x1c], eax
mov esi, eax
jmp 0x406a71
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x28], esi
cmp byte [0x495b75], 0
mov ecx, 0x17
mov eax, 2
mov byte [ebp - 4], 1
cmovne eax, ecx
lea ecx, [ebp]
push ecx
push 0
push 0
push eax
push 0
call ebx
test eax, eax
jne 0x406aad
lea eax, [ebp]
push eax
call fcn.00404db0
add esp, 4
mov ebx, eax
jmp 0x406aaf
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
cmp byte [0x495acc], 0
mov byte [ebp - 4], 2
je 0x406ac9
push dword [ebp - 0x10]
call fcn.00407c70
jmp 0x406ad3
push str.Spotify.lnk
call fcn.004495bb
mov dword [ebp - 0x14], eax
add esp, 4
mov dword [ebp - 0x30], eax
xor edx, edx
mov byte [ebp - 4], 3
cmp byte [0x495acc], dl
mov ecx, str._portable
cmove ecx, edx
mov dword [ebp - 0x18], ecx
test esi, esi
je 0x406b24
push eax
push esi
call fcn.004046f0
mov esi, eax
mov dword [ebp - 0x20], esi
push dword [ebp - 0x18]
mov byte [ebp - 4], 4
push dword [ebp - 0x10]
push edi
push esi
call fcn.00406800
push esi
mov byte [ebp - 4], 3
call fcn.00442387
mov eax, dword [ebp - 0x14]
add esp, 0x1c
test ebx, ebx
je 0x406b52
push eax
push ebx
call fcn.004046f0
mov esi, eax
mov dword [ebp - 0x20], esi
push dword [ebp - 0x18]
mov byte [ebp - 4], 5
push dword [ebp - 0x10]
push edi
push esi
call fcn.00406800
push esi
mov byte [ebp - 4], 3
call fcn.00442387
add esp, 0x1c
cmp byte [0x495b75], 0
je 0x406b66
push dword [ebp - 0x10]
call fcn.00409710
add esp, 4
push 0
push edi
push 0x3005
push 0x2000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
push dword [ebp - 0x14]
call fcn.00442387
push ebx
call fcn.00442387
push dword [ebp - 0x1c]
call fcn.00442387
push edi
call fcn.00442387
add esp, 0x10
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.00423c9a
lea esp, [ebp + 0x414]
pop ebp
ret