joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48ff12
Capabilities:
Enumerate gui resources
Get graphical window text

Disassembly:
push 0x468
mov eax, 0x4a107c
call fcn.00429ae7
mov esi, ecx
call fcn.004932c5
mov edi, eax
mov ecx, esi
lea eax, [ebp - 0x474]
push eax
call fcn.004933b8
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [eax]
test eax, eax
je 0x48ff47
mov eax, dword [eax]
jmp 0x48ff49
mov eax, ebx
push eax
lea ecx, [ebp - 0x448]
call fcn.00403705
mov ecx, dword [ebp - 0x474]
test ecx, ecx
je 0x48ff64
call fcn.00402149
lea eax, [ebp - 0x470]
mov dword [ebp - 0x470], ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [ebp - 0x46c], ebx
mov dword [ebp - 0x468], ebx
mov dword [ebp - 0x464], ebx
push 0x18
lea eax, [ebp - 0x460]
mov byte [ebp - 4], 3
push eax
mov ecx, 0x4d3158
call fcn.0040b71d
mov esi, eax
cmp dword [esi + 0x14], 8
jb 0x48ffab
mov esi, dword [esi]
mov eax, dword [ebp - 0x46c]
mov dword [ebp - 0x468], eax
mov eax, dword [ebp - 0x470]
mov dword [ebp - 0x430], eax
xor eax, eax
mov dword [ebp - 0x418], 7
mov dword [ebp - 0x41c], ebx
mov word [ebp - 0x42c], ax
mov byte [ebp - 4], 5
lea eax, [ebp - 0x46c]
mov dword [ebp - 0x414], eax
test esi, esi
je 0x490004
push esi
call fcn.0040288e
pop ecx
push eax
push esi
lea ecx, [ebp - 0x42c]
call fcn.00402815
lea eax, [ebp - 0x430]
push eax
push 0x412161
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [ebp - 0x468]
lea ecx, [ebp - 0x42c]
sub esi, dword [ebp - 0x46c]
push ebx
push 1
sar esi, 2
call fcn.00401736
push ebx
push 1
lea ecx, [ebp - 0x460]
call fcn.00401736
cmp esi, 1
jle 0x4900e5
push 0x400
lea eax, [ebp - 0x410]
push ebx
push eax
call fcn.004434f0
mov esi, dword [ebp - 0x46c]
add esp, 0xc
cmp esi, dword [ebp - 0x468]
je 0x4900fc
push 0x200
lea eax, [ebp - 0x410]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp dword [ebp - 0x434], 8
lea eax, [ebp - 0x448]
lea ecx, [ebp - 0x410]
cmovae eax, dword [ebp - 0x448]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x4900c5
test dx, dx
je 0x4900c1
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x4900c5
add ecx, 4
add eax, 4
test dx, dx
jne 0x49009f
mov eax, ebx
jmp 0x4900ca
sbb eax, eax
or eax, 1
test eax, eax
je 0x4900db
add esi, 4
cmp esi, dword [ebp - 0x468]
jne 0x490071
jmp 0x4900dd
mov edi, dword [esi]
mov esi, dword [ebp - 0x46c]
jmp 0x4900fc
mov eax, dword [ebp - 0x468]
mov esi, dword [ebp - 0x46c]
sub eax, esi
sar eax, 2
test eax, eax
je 0x4900fc
mov edi, dword [esi]
test esi, esi
je 0x490129
mov eax, dword [ebp - 0x464]
sub eax, esi
push 4
sar eax, 2
push eax
push esi
call fcn.004016eb
add esp, 0xc
mov dword [ebp - 0x46c], ebx
mov dword [ebp - 0x468], ebx
mov dword [ebp - 0x464], ebx
push ebx
push 1
lea ecx, [ebp - 0x448]
call fcn.00401736
mov eax, edi
call fcn.00429a91
ret
Function at 0x49077f
Capabilities:
Create thread

Disassembly:
push 0x5c
mov eax, 0x4a11ca
call fcn.00429b55
xor ebx, ebx
lea eax, [ebp - 0x48]
push eax
push ebx
push 0x4facb0
push 0x40413c
push ebx
push ebx
mov dword [0x4faee0], ebx
mov dword [ebp - 0x48], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], ebx
call fcn.004948a0
or dword [ebp - 4], 0xffffffff
mov dword [0x4faee0], eax
jmp 0x4907cc
cmp dword [ebp - 0x48], 0
je 0x4907ea
push ebx
push ebx
push 0x502
push dword [ebp - 0x48]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x4faee0], 0
jne 0x4908a3
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
mov dword [ebp - 4], 2
lea eax, [ebp - 0x44]
cmp byte [0x4fadb8], 0
je 0x49083f
push 0x27
push 0x13
push eax
call fcn.0048fd02
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040a87f
push ebx
push 1
lea ecx, [ebp - 0x44]
call fcn.00408c90
lea ecx, [ebp - 0x2c]
call fcn.004945e6
jmp 0x49085d
push 0x25
push 0x11
push eax
call fcn.0048fd02
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040a87f
push ebx
push 1
lea ecx, [ebp - 0x44]
call fcn.00408c90
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x58]
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.0040a222
mov esi, 0x4b3840
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x58], esi
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x68]
call fcn.0040a259
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x68]
push 0x4caf3c
push eax
mov dword [ebp - 0x68], esi
call fcn.004439cc
call fcn.00429aa2
ret

Function at 0x4908a9
Capabilities:
Create thread

Disassembly:
push esi
call fcn.0044c0cb
cmp dword [0x4faedc], 0
mov esi, eax
jne 0x4908fa
cmp word [0x4fafca], 3
push edi
mov edi, 0x4fafc0
jne 0x4908de
mov ecx, edi
call fcn.004036d6
test al, 1
je 0x4908de
cmp byte [0x4fadb6], 0
je 0x4908f9
push 0x4faee4
xor eax, eax
push eax
push edi
push 0x408f2c
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4faee8], eax
pop edi
mov eax, esi
pop esi
ret
Function at 0x490b1e
Capabilities:
Check mutex on windows

Disassembly:
push 0x5c
mov eax, 0x4a125c
call fcn.00429ae7
cmp byte [0x4fadb5], 0
je 0x490c4d
push 0x4facc8
lea ecx, [ebp - 0x58]
call fcn.0040a857
xor ebx, ebx
lea ecx, [ebp - 0x40]
push 0x4baef4
mov dword [ebp - 4], ebx
call fcn.00403705
push 0x4baebc
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00403705
mov byte [ebp - 4], 2
mov esi, ebx
push dword [ebp - 0x18]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push esi
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x58]
push eax
call fcn.0040a93a
mov esi, eax
cmp esi, 0xffffffff
je 0x490ba4
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x18]
lea ecx, [ebp - 0x58]
push esi
call fcn.004030af
add esi, dword [ebp - 0x30]
jmp 0x490b6d
xor esi, esi
lea ecx, [ebp - 0x28]
push ebx
inc esi
push esi
call fcn.00401736
push ebx
push esi
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], bl
call fcn.00401736
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x4faeec], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x490c43
push 0x2b
push 0x29
lea eax, [ebp - 0x40]
push eax
call fcn.0048fd02
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.004945e6
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x68]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.0040a222
mov esi, 0x4b3840
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x68], esi
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x20]
call fcn.0040a259
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push 0x4caf3c
push eax
mov dword [ebp - 0x20], esi
call fcn.004439cc
push ebx
push esi
lea ecx, [ebp - 0x58]
call fcn.00401736
call fcn.00429a91
ret

Function at 0x490c77
Capabilities:
Write file on windows

Disassembly:
push 0x1c
mov eax, 0x4a1289
call fcn.00429ae7
xor eax, eax
mov dword [ebp - 0x14], 0xf
mov bl, al
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
cmp byte [ebp + 8], 0
mov dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push eax
mov eax, 0x401
lea ecx, [eax + 2]
cmovne eax, ecx
push eax
call fcn.00491067
cmp dword [ebp - 0x18], 0xa
jbe 0x490cec
call fcn.004910d9
mov esi, eax
test esi, esi
je 0x490cee
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
push esi
cmovae ecx, dword [ebp - 0x28]
push 1
push dword [ebp - 0x18]
push ecx
call fcn.0044f920
push esi
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
call fcn.0044f588
add esp, 0x14
jmp 0x490cee
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00408c24
mov al, bl
call fcn.00429a91
ret 4
Function at 0x490d04
Capabilities:
Write file on windows

Disassembly:
push 0x1c
mov eax, 0x4a12b6
call fcn.00429ae7
xor eax, eax
mov dword [ebp - 0x14], 0xf
mov bl, al
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
mov dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push eax
push 0x3fa
call fcn.00491067
call fcn.00490d7a
mov esi, eax
test esi, esi
je 0x490d66
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
push esi
cmovae ecx, dword [ebp - 0x28]
push 1
push dword [ebp - 0x18]
push ecx
call fcn.0044f920
push esi
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
call fcn.0044f588
add esp, 0x14
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00408c24
mov al, bl
call fcn.00429a91
ret

Function at 0x490df8
Capabilities:
Write file on windows

Disassembly:
push 0x1c
mov eax, 0x4a1310
call fcn.00429ae7
xor eax, eax
mov dword [ebp - 0x14], 0xf
mov bl, 1
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
mov dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push eax
push 0x3fc
call fcn.00491067
call fcn.0049118d
mov esi, eax
test esi, esi
je 0x490e79
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
mov eax, dword [eax]
cmp eax, dword [0x4b392f]
jne 0x490e70
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
add eax, 0xfffffffc
push esi
push 1
push eax
lea eax, [ecx + 4]
push eax
call fcn.0044f920
add esp, 0x10
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
push esi
call fcn.0044f588
pop ecx
jmp 0x490e7b
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00408c24
mov al, bl
call fcn.00429a91
ret
Function at 0x490e8f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x4cf094]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4facf0], 0
push edi
mov edi, 0x4face0
jne 0x490fda
push ebx
push esi
lea eax, [ebp - 0x804]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x804]
push eax
call fcn.0040288e
pop ecx
push eax
lea eax, [ebp - 0x804]
mov ecx, edi
push eax
call fcn.00402815
cmp dword [0x4facf4], 8
mov eax, edi
cmovae eax, dword [0x4face0]
xor ebx, ebx
push ebx
push eax
call fcn.0044f412
pop ecx
pop ecx
test eax, eax
je 0x490f20
mov esi, 0x4b2ca8
push esi
call fcn.0040288e
pop ecx
push eax
push esi
mov ecx, edi
call fcn.00402815
mov ecx, edi
call fcn.0040efed
cmp dword [0x4facf0], ebx
je 0x490f45
cmp dword [0x4facf4], 8
mov eax, edi
push ebx
cmovae eax, dword [0x4face0]
push eax
call fcn.0044f412
pop ecx
pop ecx
test eax, eax
je 0x490f62
push str.TEMP
call fcn.0044fbef
mov esi, eax
push esi
call fcn.0040288e
pop ecx
pop ecx
push eax
push esi
mov ecx, edi
call fcn.00402815
cmp dword [0x4facf0], ebx
je 0x490f87
cmp dword [0x4facf4], 8
mov eax, edi
push ebx
cmovae eax, dword [0x4face0]
push eax
call fcn.0044f412
pop ecx
pop ecx
test eax, eax
je 0x490fa4
push 0x4baeec
call fcn.0044fbef
mov esi, eax
push esi
call fcn.0040288e
pop ecx
pop ecx
push eax
push esi
mov ecx, edi
call fcn.00402815
cmp dword [0x4facf0], ebx
je 0x490fc9
cmp dword [0x4facf4], 8
mov eax, edi
push ebx
cmovae eax, dword [0x4face0]
push eax
call fcn.0044f412
pop ecx
pop ecx
test eax, eax
je 0x490fd8
push 0xffffffffffffffff
push ebx
push 0x4facb0
mov ecx, edi
call fcn.004025cd
pop esi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.00428f9c
mov esp, ebp
pop ebp
ret
Function at 0x4928ee
Capabilities:
Get common file path

Disassembly:
push 0xc34
mov eax, 0x4a17cb
call fcn.00429ae7
mov edi, dword [ebp + 8]
xor ebx, ebx
mov esi, dword [ebp + 0xc]
test edi, edi
je 0x492947
cmp word [edi], bx
je 0x492947
push ebx
push edi
call fcn.0044f412
pop ecx
pop ecx
test eax, eax
jne 0x492947
mov ecx, edi
call fcn.0040ed90
test al, al
je 0x492945
push edi
call fcn.0044f4ea
pop ecx
test eax, eax
je 0x492945
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0x3e8
jl 0x49291b
xor ebx, ebx
test esi, esi
je 0x492989
cmp word [esi], bx
je 0x492989
push ebx
push esi
call fcn.0044f412
pop ecx
pop ecx
test eax, eax
jne 0x492989
mov edi, ebx
mov ecx, esi
call fcn.0040ed90
test al, al
je 0x492989
push esi
call fcn.0044f4ea
pop ecx
test eax, eax
je 0x492989
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0x3e8
jl 0x49295f
push 7
pop ecx
xor eax, eax
mov dword [ebp - 0xc14], ecx
mov dword [ebp - 0xc18], ebx
mov word [ebp - 0xc28], ax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc2c], ecx
mov dword [ebp - 0xc30], ebx
mov word [ebp - 0xc40], ax
lea eax, [ebp - 0xc40]
mov byte [ebp - 4], 1
push eax
lea edx, [ebp - 0xc28]
mov ecx, esi
call fcn.0040d0fe
mov esi, 0x400
lea eax, [ebp - 0x410]
push esi
push ebx
push eax
call fcn.004434f0
add esp, 0x10
lea eax, [ebp - 0x410]
push eax
push 0x200
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x800
lea eax, [ebp - 0xc10]
push ebx
push eax
call fcn.004434f0
add esp, 0xc
lea eax, [ebp - 0xc10]
push esi
push eax
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp dword [ebp - 0xc18], 0
je 0x492a8d
cmp dword [ebp - 0xc14], 8
lea ecx, [ebp - 0xc10]
lea eax, [ebp - 0xc28]
cmovae eax, dword [ebp - 0xc28]
push ecx
push eax
call fcn.0044a855
pop ecx
pop ecx
test eax, eax
je 0x492a8d
cmp dword [ebp - 0xc14], 8
lea eax, [ebp - 0xc28]
push ebx
cmovae eax, dword [ebp - 0xc28]
push eax
call fcn.0044f412
pop ecx
pop ecx
test eax, eax
jne 0x492a8d
cmp dword [ebp - 0xc14], 8
lea eax, [ebp - 0xc28]
cmovae eax, dword [ebp - 0xc28]
push eax
call fcn.0044f608
pop ecx
push ebx
push 1
lea ecx, [ebp - 0xc40]
call fcn.00401736
push ebx
push 1
lea ecx, [ebp - 0xc28]
call fcn.00401736
call fcn.00429a91
ret 8
Function at 0x4948a0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x258
mov eax, dword [0x4cf094]
xor eax, esp
mov dword [esp + 0x254], eax
push esi
push edi
lea eax, [esp + 0xc8]
xor edi, edi
push eax
push 0x101
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0x494a3c
mov eax, dword [esp + 0xc8]
cmp al, 1
jne 0x494a3c
shr eax, 8
cmp al, 1
jne 0x494a3c
xorps xmm0, xmm0
mov dword [esp + 0x64], 0x1388
xor esi, esi
movlpd qword [esp + 0x30], xmm0
movlpd qword [esp + 0x38], xmm0
movlpd qword [esp + 0x40], xmm0
movlpd qword [esp + 0x48], xmm0
cmp dword [0x4bba30], esi
je 0x494a26
mov eax, 0x4bba30
nop dword [eax]
push ecx
lea ecx, [esp + 0x2c]
push ecx
push dword [eax]
lea ecx, [esp + 0x70]
call fcn.00425f7a
test eax, eax
je 0x4949d9
lea eax, [esp + 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [esp + 0xa0]
push eax
lea ecx, [esp + 0xc]
call fcn.00425a43
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x10]
call fcn.00425c77
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x14]
call fcn.00425d52
movups xmm0, xmmword [eax]
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0xb4]
push eax
movups xmmword [esp + 0xb8], xmm0
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
je 0x4949d9
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x4949d9
lea eax, [esp + 0x90]
push eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
jne 0x494a04
inc esi
cmp dword [esi*4 + 0x4bba30], edi
lea eax, [esi*4 + 0x4bba30]
jne 0x494930
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x254]
xor ecx, esp
call fcn.00428f9c
mov esp, ebp
pop ebp
ret
movzx ecx, word [esp + 0x90]
movzx edi, byte [esp + 0x92]
shl ecx, 8
or edi, ecx
movzx ecx, byte [esp + 0x96]
shl edi, 8
or edi, ecx
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x254]
xor ecx, esp
call fcn.00428f9c
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x25c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.00428f9c
mov esp, ebp
pop ebp
ret
Function at 0x4953d0
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a206c
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4cf094]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.00411fb9
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x495437
mov eax, dword [ecx]
jmp 0x495439
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x28]
push 0
push eax
call fcn.00406507
lea ecx, [ebp - 0x40]
call fcn.00412087
add esp, 0x18
mov esi, eax
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x4954c2
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x4954a7
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x1000
jb 0x49549e
test cl, 0x1f
je 0x49547a
call fcn.0044a782
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x495486
call fcn.0044a782
sub ecx, eax
cmp ecx, 4
jae 0x495492
call fcn.0044a782
cmp ecx, 0x23
jbe 0x49549c
call fcn.0044a782
mov ecx, eax
push ecx
call fcn.00483d30
add esp, 4
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.0040a9df
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x49550c
mov ecx, dword [ebp - 0x40]
inc eax
cmp eax, 0x1000
jb 0x495503
test cl, 0x1f
je 0x4954df
call fcn.0044a782
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x4954eb
call fcn.0044a782
sub ecx, eax
cmp ecx, 4
jae 0x4954f7
call fcn.0044a782
cmp ecx, 0x23
jbe 0x495501
call fcn.0044a782
mov ecx, eax
push ecx
call fcn.00483d30
add esp, 4
mov eax, dword [ebp - 0x18]
inc eax
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x49555a
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x495544
cmp dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
cmovae edx, dword [ebp - 0x28]
inc ecx
push ecx
push edx
push eax
call fcn.00441740
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x4955aa
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x1000
jb 0x4955a1
test cl, 0x1f
je 0x49557d
call fcn.0044a782
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x495589
call fcn.0044a782
sub ecx, eax
cmp ecx, 4
jae 0x495595
call fcn.0044a782
cmp ecx, 0x23
jbe 0x49559f
call fcn.0044a782
mov ecx, eax
push ecx
call fcn.00483d30
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00428f9c
mov esp, ebp
pop ebp
ret
Function at 0x497f60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a24a9
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x4cf094]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x258], esi
mov dword [ebp - 0x254], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x25c], esi
mov dword [esi + 0x10], 0
jb 0x497fca
mov eax, dword [esi]
jmp 0x497fcc
mov eax, esi
xor ecx, ecx
mov word [eax], cx
push 0x20a
push ecx
lea eax, [ebp - 0x220]
mov dword [ebp - 4], ecx
push eax
mov dword [ebp - 0x254], 1
call fcn.004434f0
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
push 1
push 0
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp word [ebp - 0x220], 0
jne 0x498016
xor ecx, ecx
jmp 0x49802f
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x498020
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x220]
mov ecx, esi
push eax
call fcn.00402815
mov edx, esi
lea ecx, [ebp - 0x238]
call fcn.00498150
push 1
push 0x4baebc
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.0040353d
lea edx, [ebp - 0x238]
lea ecx, [ebp - 0x250]
call fcn.0040d3c4
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.004035e1
mov eax, dword [ebp - 0x23c]
cmp eax, 8
jb 0x4980df
mov ecx, dword [ebp - 0x250]
inc eax
cmp eax, 0x7fffffff
jbe 0x49809f
call fcn.0044a782
add eax, eax
cmp eax, 0x1000
jb 0x4980d6
test cl, 0x1f
je 0x4980b2
call fcn.0044a782
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x4980be
call fcn.0044a782
sub ecx, eax
cmp ecx, 4
jae 0x4980ca
call fcn.0044a782
cmp ecx, 0x23
jbe 0x4980d4
call fcn.0044a782
mov ecx, eax
push ecx
call fcn.00483d30
add esp, 4
mov eax, dword [ebp - 0x224]
cmp eax, 0x10
jb 0x49812f
mov ecx, dword [ebp - 0x238]
inc eax
cmp eax, 0x1000
jb 0x498126
test cl, 0x1f
je 0x498102
call fcn.0044a782
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x49810e
call fcn.0044a782
sub ecx, eax
cmp ecx, 4
jae 0x49811a
call fcn.0044a782
cmp ecx, 0x23
jbe 0x498124
call fcn.0044a782
mov ecx, eax
push ecx
call fcn.00483d30
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00428f9c
mov esp, ebp
pop ebp
ret
Function at 0x40f940
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40f998
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40f998
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x40f978
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40f998
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40f993
test al, 0x10
je 0x40f993
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x40f998
xor eax, eax
pop esi
pop ebp
ret
mov eax, 1
pop esi
pop ebp
ret

Function at 0x410080
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4100b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.delete__s_succ__error_code_d
call fcn.0044d380
add esp, 0xc
mov eax, 1
pop esi
pop ebp
ret
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4100af
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4100fa
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4100fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.delete__s_succ__error_d
call fcn.0044d380
add esp, 0xc
mov eax, 1
pop esi
pop ebp
ret
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor eax, eax
pop esi
pop ebp
ret