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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x555c09
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x20
push esi
push edi
mov eax, dword [0x5d0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1c], edi
push ecx
push 1
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 0
call fcn.0048d3f0
mov dword [ebp - 4], 1
push dword [ebp - 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0
call esi
lea ecx, [ebp - 0x2c]
inc eax
push ecx
push eax
call fcn.0048ddf0
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
sub ecx, eax
sar ecx, 1
push eax
push ecx
call esi
mov ecx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x2c]
sub ecx, esi
sar ecx, 1
cmp eax, ecx
jbe 0x48c131
xorps xmm0, xmm0
xor eax, eax
movups xmmword [edi], xmm0
movq qword [edi + 0x10], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov byte [ebp - 4], 1
jmp 0x48c17c
sub esp, 0x18
xor eax, eax
mov edx, esp
mov dword [ebp - 0x20], esp
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov word [edx], ax
mov eax, esi
lea ecx, [eax + 2]
mov dword [ebp - 0x18], ecx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x48c154
sub eax, dword [ebp - 0x18]
mov ecx, edx
sar eax, 1
push eax
push esi
call fcn.00407880
mov byte [ebp - 4], 4
mov byte [ebp - 4], 1
mov ecx, edi
call fcn.0048bb00
mov dword [ebp - 0x14], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.0048d6e0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x48c1b0
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x555c89
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x5d0074]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x254], edi
mov dword [ebp - 0x258], edi
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x250], 0
call fcn.0048c080
mov dword [ebp - 4], 1
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x234]
call fcn.0048d0b0
mov byte [ebp - 4], 2
cmp dword [esi + 0x14], 8
jb 0x48c227
mov esi, dword [esi]
cmp dword [eax + 0x14], 8
jb 0x48c22f
mov eax, dword [eax]
lea ecx, [ebp - 0x21c]
push ecx
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24c]
call fcn.00407b40
cmp byte [ebp + 8], 0
je 0x48c262
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
sub esp, 0x18
lea ecx, [ebp - 0x21c]
mov edx, esp
mov dword [ebp - 0x254], esp
xor eax, eax
lea esi, [ecx + 2]
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov word [edx], ax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48c290
sub ecx, esi
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
mov ecx, edx
call fcn.00407880
mov byte [ebp - 4], 3
mov byte [ebp - 4], 1
mov ecx, edi
call fcn.0048bb00
mov dword [ebp - 0x250], 1
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x234]
call fcn.00407b40
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005214e1
mov esp, ebp
pop ebp
ret
Function at 0x48ccd0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x555f92
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x5d0074]
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, edx
mov dword [ebp - 0x7c], esi
mov edi, ecx
mov dword [ebp - 0x84], edi
mov eax, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x88], edi
push eax
mov dword [ebp - 0x78], 0
call fcn.0048d0b0
mov dword [ebp - 4], 1
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x78], 1
jb 0x48cd3b
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x48cd4e
mov byte [ebp - 0x71], al
cmp dword [esi + 0x10], eax
jne 0x48cd52
mov byte [ebp - 0x71], 1
mov dword [ebp - 4], 0
mov eax, 1
mov dword [ebp - 0x78], eax
lea ecx, [ebp - 0x40]
and eax, 0xfffffffe
mov dword [ebp - 0x78], eax
call fcn.00407b40
cmp byte [ebp - 0x71], 0
je 0x48cd90
push esi
mov ecx, edi
call fcn.00406ba0
mov dword [ebp - 4], 0
mov dword [ebp - 0x78], 2
jmp 0x48cea5
lea eax, [ebp - 0x70]
mov ecx, esi
push eax
call fcn.0048d040
mov dword [ebp - 4], 4
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 8
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 8
lea eax, [ebp - 0x40]
mov ecx, dword [ebp - 0x7c]
mov esi, 8
push eax
mov dword [ebp - 0x78], esi
call fcn.004842a0
lea eax, [ebp - 0x28]
push eax
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x58]
call fcn.0048ccd0
add esp, 4
mov byte [ebp - 4], 0xb
and esi, 0xfffffff7
mov dword [ebp - 0x78], esi
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x40]
call fcn.00407b40
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x28]
call fcn.00445380
mov ecx, dword [ebp - 0x80]
lea eax, [ebp - 0x28]
cmp ecx, eax
je 0x48ce43
cmp dword [ebp - 0x14], 8
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00407880
movups xmm0, xmmword [ebp - 0x58]
mov dword [edi + 0x10], 0
xor eax, eax
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
mov word [ebp - 0x58], ax
movq xmm0, qword [ebp - 0x48]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x78], 2
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x58]
call fcn.00407b40
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.00407b40
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.00407b40
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.005214e1
mov esp, ebp
pop ebp
ret
Function at 0x48e4a0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5562a0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5d0074]
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 ebx, ecx
call fcn.0048e720
mov edi, dword [ebx + 0x10]
lea eax, [ebx + 0xc]
mov esi, dword [eax]
cmp edi, esi
je 0x48e51b
nop
lea eax, [ebp - 0x28]
push eax
lea ecx, [edi - 0x18]
call fcn.0048d0b0
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x48e4fb
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00407b40
add edi, 0xffffffe8
cmp edi, esi
jne 0x48e4e0
lea eax, [ebx + 0xc]
mov ecx, eax
call fcn.0048e8d0
mov esi, dword [ebx + 0x18]
lea eax, [ebx + 0x18]
mov edi, dword [ebx + 0x1c]
mov dword [ebp - 0x30], eax
cmp esi, edi
je 0x48e5a1
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.0048d0b0
mov dword [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x48e54c
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004127e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.00493e80
lea ecx, [ebp - 0x2c]
call fcn.004940b0
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48e588
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00407b40
add esi, 0x18
cmp esi, edi
jne 0x48e532
mov eax, dword [ebp - 0x30]
mov ecx, eax
call fcn.0048e8d0
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.005214e1
mov esp, ebp
pop ebp
ret
Function at 0x48e720
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x556379
mov eax, dword fs:[0]
push eax
sub esp, 0x294
mov eax, dword [0x5d0074]
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, ecx
mov dword [ebp - 0x298], eax
mov esi, dword [eax]
mov edi, dword [eax + 4]
cmp esi, edi
je 0x48e8a4
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.0048d0b0
mov ebx, eax
mov dword [ebp - 4], 0
mov ecx, ebx
push 0
push 0x2a
call fcn.00428830
cmp eax, 0xffffffff
jne 0x48e79b
cmp dword [ebx + 0x14], 8
jb 0x48e78f
mov ebx, dword [ebx]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x48e884
lea ecx, [ebp - 0x290]
call fcn.0048e5d0
mov byte [ebp - 4], 1
cmp dword [ebx + 0x14], 8
jb 0x48e7b2
mov ebx, dword [ebx]
push ebx
lea ecx, [ebp - 0x290]
call fcn.004987a0
test eax, eax
je 0x48e875
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x48e805
mov eax, dword [ebp - 0x28c]
shr eax, 4
and eax, 1
je 0x48e801
cmp word [ebp - 0x260], 0x2e
jne 0x48e801
mov dx, word [ebp - 0x25e]
test dx, dx
je 0x48e84c
cmp dx, 0x2e
jne 0x48e801
cmp word [ebp - 0x25c], 0
je 0x48e84c
test eax, eax
jne 0x48e84c
lea eax, [ebp - 0x294]
push eax
lea ecx, [ebp - 0x290]
call fcn.00498ac0
mov byte [ebp - 4], 2
push dword [ebp - 0x294]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov edx, dword [ebp - 0x294]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48e849
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x290]
test eax, eax
je 0x48e875
test ecx, ecx
je 0x48e875
lea ecx, [ebp - 0x28c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ecx, eax
mov dword [ebp - 0x34], ecx
test ecx, ecx
jne 0x48e7cd
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x290]
call fcn.0048e670
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00407b40
add esi, 0x18
cmp esi, edi
jne 0x48e763
mov eax, dword [ebp - 0x298]
mov ecx, eax
call fcn.0048e8d0
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.005214e1
mov esp, ebp
pop ebp
ret
Function at 0x48f060
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
jne 0x48f08e
cmp dword [esi + 0x20], 8
lea ecx, [esi + 0xc]
jb 0x48f074
mov ecx, dword [ecx]
mov eax, dword [esi + 0x40]
sub esp, 8
or eax, 0xf003f
push eax
sub esp, 8
push ecx
push dword [esi + 0x3c]
mov ecx, esi
call fcn.0047f100
mov edx, dword [esp + 0x10]
cmp dword [edx + 0x14], 8
jb 0x48f09a
mov edx, dword [edx]
mov edi, dword [esp + 0xc]
cmp dword [edi + 0x14], 8
jb 0x48f0a6
mov edi, dword [edi]
test edx, edx
jne 0x48f0b9
mov eax, 0xd
test eax, eax
pop edi
sete al
pop esi
ret 0xc
mov ecx, edx
push ebx
lea ebx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48f0c0
sub ecx, ebx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 2
push 0
push edi
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop ebx
test eax, eax
pop edi
sete al
pop esi
ret 0xc
Function at 0x48f0f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x549639
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x5d0074]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x48], 0
mov edx, dword [ebx]
test edx, edx
jne 0x48f14a
xor eax, eax
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], eax
jmp 0x48f2ae
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x48f154
mov eax, dword [edi]
lea ecx, [ebp - 0x4c]
push ecx
push 0
lea ecx, [ebp - 0x50]
push ecx
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x48f298
cmp dword [ebp - 0x4c], eax
je 0x48f298
mov eax, dword [ebp - 0x50]
cmp eax, 1
je 0x48f18a
cmp eax, 2
jne 0x48f298
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], 1
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x1c]
shr ecx, 1
cmp ecx, eax
ja 0x48f1ed
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], ecx
cmovae eax, dword [ebp - 0x2c]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x48f1fa
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00478b30
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
cmp dword [edi + 0x14], 8
jb 0x48f20d
mov edi, dword [edi]
lea ecx, [ebp - 0x4c]
push ecx
push eax
push 0
push 0
push edi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x48f283
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x44]
call fcn.00407be0
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x48f257
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
cmp word [eax + ecx*2 - 2], 0
jne 0x48f257
lea eax, [ecx - 1]
push 0
push eax
lea ecx, [ebp - 0x44]
call fcn.00478a80
lea eax, [ebp - 0x44]
mov ecx, esi
push eax
call fcn.00407830
mov dword [ebp - 0x48], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.00407b40
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00407b40
jmp 0x48f2b5
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
jmp 0x48f262
mov dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x48], 1
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 - 0x14]
xor ecx, ebp
call fcn.005214e1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x492ca0
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
lea ebp, [esp - 0x2b8]
sub esp, 0x2b8
push 0xffffffffffffffff
push 0x556d8f
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x5d0074]
xor eax, ebp
mov dword [ebp + 0x2b4], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x5d64e0]
test eax, eax
jne 0x492dde
push 0x10
call fcn.00521500
mov esi, eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0
lea eax, [ebp]
push 0x2b4
push 0
push eax
call fcn.00523880
mov edi, dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
lea eax, [ebp]
add esp, 0x10
push 0x4011
push 0x2b4
push eax
push 0x10
push 0x58b95c
call edi
push 0x4011
push 0x2b4
mov dword [esi], eax
lea eax, [ebp]
push eax
push 0x10
push str.C:FAKE_DIR_
call edi
mov eax, dword [ebp + 4]
push 0x4013
push 0x2b4
mov dword [esi + 4], eax
lea eax, [ebp]
push eax
push 0x10
push str.C:FAKE_DIR_
call edi
mov eax, dword [ebp + 4]
mov dword [esi + 8], eax
lea eax, [ebp - 0x10]
push eax
push 0x11
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x492dad
push 0x4009
push 0x2b4
lea eax, [ebp]
push eax
push 0
push dword [ebp - 0x10]
call edi
mov eax, dword [ebp + 4]
mov dword [esi + 0xc], eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x492db4
mov ecx, dword [ebp - 0x14]
push dword [ebp - 0x10]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x14]
jmp 0x492db4
mov dword [esi + 0xc], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x5d64e0]
mov dword [0x5d64e0], esi
test eax, eax
je 0x492ddc
push 0x10
push eax
call fcn.005214f2
mov eax, dword [0x5d64e0]
add esp, 8
jmp 0x492dde
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x2b4]
xor ecx, ebp
call fcn.005214e1
lea esp, [ebp + 0x2b8]
pop ebp
ret
Function at 0x493650
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x556f49
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x5d0074]
xor eax, ebp
mov dword [ebp + 0x208], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea eax, [ebp]
mov dword [ebp - 0x18], esi
push eax
push 0x104
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x4936f3
call fcn.00411fd0
test eax, eax
je 0x493777
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.005214e1
lea esp, [ebp + 0x20c]
pop ebp
ret
cmp word [ebp + eax*2 - 2], 0x5c
je 0x493706
mov ecx, 0x5c
mov word [ebp + eax*2], cx
inc eax
add eax, eax
cmp eax, 0x208
jae 0x493772
xor ecx, ecx
mov word [ebp + eax], cx
call fcn.00411fd0
mov ecx, eax
test ecx, ecx
je 0x493781
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 2
lea eax, [ebp]
test eax, 0xffff0000
jne 0x49374c
movzx eax, ax
mov ecx, esi
push eax
call fcn.00412350
jmp 0x4936c2
lea ecx, [ebp]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x493752
sub ecx, edx
lea eax, [ebp]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.004126c0
jmp 0x4936c2
call fcn.00521d89
push 0x80004005
call fcn.004126a0
push 0x80004005
call fcn.004126a0
int3
Function at 0x493940
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x414]
sub esp, 0x414
push 0xffffffffffffffff
push 0x556ff9
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x5d0074]
xor eax, ebp
mov dword [ebp + 0x410], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea eax, [ebp]
mov dword [ebp - 0x18], esi
push eax
push 0x104
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x4939b7
call fcn.00411fd0
test eax, eax
je 0x493a7f
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi], eax
jmp 0x493a4e
lea eax, [ebp + 0x208]
push eax
push 0
push 0x58ba00
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x4939dc
mov ecx, esi
call fcn.00411710
jmp 0x493a4e
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.00411fd0
mov ecx, eax
test ecx, ecx
je 0x493a89
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 2
lea eax, [ebp + 0x208]
test eax, 0xffff0000
jne 0x493a23
movzx eax, ax
mov ecx, esi
push eax
call fcn.00412350
jmp 0x493a4e
lea ecx, [ebp + 0x208]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x493a30
sub ecx, edx
lea eax, [ebp + 0x208]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.004126c0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.005214e1
lea esp, [ebp + 0x414]
pop ebp
ret
push 0x80004005
call fcn.004126a0
push 0x80004005
call fcn.004126a0
int3
Function at 0x4940b0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x557198
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x5d0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
cmp dword [eax - 0xc], 0x104
jl 0x494180
call fcn.00494820
test al, al
jne 0x494180
call fcn.00411fd0
mov ecx, eax
test ecx, ecx
je 0x4941ab
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
mov eax, 0x57eec0
lea ecx, [ebp - 0x10]
test eax, 0xffff0000
jne 0x49412e
movzx eax, ax
push eax
call fcn.00412350
jmp 0x49413a
push 4
push 0x57eec0
call fcn.004126c0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x10]
mov eax, dword [esi]
push dword [eax - 0xc]
push eax
call fcn.00416df0
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, 1
sete bl
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x49418e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x49418e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, 1
sete bl
test bl, bl
jne 0x494198
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004126a0
int3

Function at 0x4941c0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x557198
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x5d0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
cmp dword [eax - 0xc], 0x104
jl 0x494290
call fcn.00494820
test al, al
jne 0x494290
call fcn.00411fd0
mov ecx, eax
test ecx, ecx
je 0x4942bb
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
mov eax, 0x57eec0
lea ecx, [ebp - 0x10]
test eax, 0xffff0000
jne 0x49423e
movzx eax, ax
push eax
call fcn.00412350
jmp 0x49424a
push 4
push 0x57eec0
call fcn.004126c0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x10]
mov eax, dword [esi]
push dword [eax - 0xc]
push eax
call fcn.00416df0
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
sete bl
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x49429e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x49429e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
sete bl
test bl, bl
jne 0x4942a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004126a0
int3