joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43eb20
Capabilities:
Check if file exists
Delete file
Move file
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
je 0x43eb4f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.delete__s_failed__error_d
call fcn.0043d410
add esp, 0xc
mov eax, 1
pop esi
pop ebp
ret
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43eb47
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x43eb75
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x43eb32
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor eax, eax
pop esi
pop ebp
ret
Function at 0x43eb90
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x604be6
mov eax, dword fs:[0]
push eax
sub esp, 0x880
mov eax, dword [0x67e4d0]
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, dword [ebp + 8]
test ebx, ebx
jne 0x43ebcc
xor eax, eax
jmp 0x43edd2
cmp word [ebx], 0
je 0x43ebc5
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43ebd7
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
jge 0x43ebc5
push 0x410
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.0058a9f0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x61dfdc
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43ec32
test al, 1
je 0x43ec32
and eax, 0xfffffffe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, 0x5c
mov dword [ebp - 0x428], 0
mov word [ebp - 0x42c], ax
mov dword [ebp - 0x424], 0
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x884]
call fcn.0043e440
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x43ed82
cmp dword [ebp - 0x424], 0
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
je 0x43ece1
mov eax, dword [ebp - 0x884]
shr eax, 4
and eax, 1
je 0x43ece1
cmp word [ebp - 0x858], 0x2e
jne 0x43ece1
mov ax, word [ebp - 0x856]
test ax, ax
je 0x43ecbc
cmp ax, 0x2e
jne 0x43ece1
cmp word [ebp - 0x854], 0
jne 0x43ece1
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x43edee
lea ecx, [ebp - 0x884]
push ecx
push eax
call edi
mov edi, eax
mov dword [ebp - 0x424], edi
jmp 0x43ed74
lea eax, [ebp - 0x888]
push eax
lea ecx, [ebp - 0x884]
call fcn.0043e580
cmp dword [ebp - 0x424], 0
mov byte [ebp - 4], 1
je 0x43ed1c
mov eax, dword [ebp - 0x884]
shr eax, 4
and eax, 1
je 0x43ed1c
mov esi, dword [ebp - 0x888]
push esi
call fcn.0043eb90
jmp 0x43ed28
mov esi, dword [ebp - 0x888]
push esi
call fcn.0043eb20
mov eax, dword [ebp - 0x428]
add esp, 4
test eax, eax
jne 0x43ed39
xor edi, edi
jmp 0x43ed58
cmp dword [ebp - 0x424], 0
jne 0x43ed46
xor edi, edi
jmp 0x43ed58
lea ecx, [ebp - 0x884]
push ecx
push eax
call edi
mov edi, eax
mov dword [ebp - 0x424], edi
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x43ed74
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
jne 0x43ec79
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x428]
mov dword [ebp - 0x424], 0
test eax, eax
je 0x43eda8
cmp eax, 0xffffffff
je 0x43eda8
push eax
call esi
mov dword [ebp - 0x428], 0
push ebx
call fcn.0043e0f0
mov eax, dword [ebp - 0x428]
add esp, 4
mov dword [ebp - 0x424], 0
test eax, eax
je 0x43edcd
cmp eax, 0xffffffff
je 0x43edcd
push eax
call esi
mov eax, 1
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.00536569
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x424], 0
jmp 0x43eda8
Function at 0x43efd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x604c66
mov eax, dword fs:[0]
push eax
sub esp, 0x810
mov eax, dword [0x67e4d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.0058a9f0
add esp, 0xc
lea eax, [ebp - 0x810]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x814]
mov dword [ebp - 0x818], eax
call fcn.00407c70
mov ecx, eax
test ecx, ecx
je 0x43f0f3
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x814], eax
lea eax, [ebp - 0x810]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x814]
call fcn.0040b110
test al, al
jne 0x43f07c
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x814]
call fcn.0040ac60
lea eax, [ebp - 0x818]
mov dword [ebp - 4], 1
push eax
push ecx
lea eax, [ebp - 0x814]
mov dword [ebp - 0x818], 0
mov ecx, esp
push eax
call fcn.0040f140
call fcn.0043ffd0
mov edx, dword [ebp - 0x814]
add esp, 8
mov esi, eax
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x43f0d2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
test esi, esi
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00536569
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00409050
int3

Function at 0x43f190
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x67e4d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x61e058]
mov dword [ebp - 0xc], eax
mov eax, dword [0x61e05c]
mov dword [ebp - 8], eax
mov ax, word [ebp + 8]
mov word [ebp - 0xc], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x43f1f9
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
push 0
push 0
lea eax, [ebp - 0xc]
movlpd qword [ebp - 0x14], xmm0
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x43f1f9
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00536569
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
xor edx, edx
call fcn.00536569
mov esp, ebp
pop ebp
ret
Function at 0x43f2a0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.005373d0
mov eax, dword [0x67e4d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x4004]
push edi
mov edi, dword [ebp + 0xc]
push 0x4000
push 0
push eax
call fcn.0058a9f0
add esp, 0xc
mov dword [ebp - 0x4008], 0
test esi, esi
je 0x43f396
test edi, edi
je 0x43f396
lea eax, [ebp - 0x4008]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x43f396
cmp eax, 0x3fff
ja 0x43f396
lea ecx, [ebp - 0x4004]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x43f396
lea eax, [ebp - 0x4010]
push eax
lea eax, [ebp - 0x400c]
push eax
push 0x653988
lea eax, [ebp - 0x4004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x43f396
mov esi, dword [ebp + 0x10]
lea eax, [esi + esi]
push eax
push 0
push edi
call fcn.0058a9f0
mov ecx, dword [ebp - 0x400c]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push str._d._d._d._d
lea eax, [esi - 1]
push eax
push edi
call fcn.00440510
add esp, 0x28
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00536569
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00536569
mov esp, ebp
pop ebp
ret

Function at 0x43f3b0
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [0x67e4d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x800
lea eax, [ebp - 0x80c]
push 0
push eax
call fcn.0058a9f0
add esp, 0xc
lea eax, [ebp - 0x80c]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x80c]
cdq
mov edi, eax
mov ebx, edx
mov ax, word [ebp - 0x80c]
shld ebx, edi, 0x14
shl edi, 0x14
test ax, ax
je 0x43f4a0
movzx ecx, ax
nop word [eax + eax]
mov eax, dword [0x61e058]
mov dword [ebp - 0xc], eax
mov eax, dword [0x61e05c]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 0xc], cx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x43f479
lea eax, [ebp - 0x814]
xorps xmm0, xmm0
push eax
push 0
push 0
lea eax, [ebp - 0xc]
movlpd qword [ebp - 0x814], xmm0
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x43f479
cmp dword [ebp - 0x810], ebx
ja 0x43f4b3
jb 0x43f479
cmp dword [ebp - 0x814], edi
ja 0x43f4b3
mov eax, esi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43f480
sub eax, edx
sar eax, 1
lea esi, [esi + eax*2]
movzx eax, word [esi + 2]
add esi, 2
mov ecx, eax
test ax, ax
jne 0x43f420
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00536569
mov esp, ebp
pop ebp
ret
mov ax, word [esi]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00536569
mov esp, ebp
pop ebp
ret
Function at 0x441660
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x604fab
mov eax, dword fs:[0]
push eax
sub esp, 0x548
mov eax, dword [0x67e4d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push 0xd8
mov dword [ebp - 0x544], eax
lea eax, [ebp - 0xf0]
push 0
push eax
mov byte [ebp - 0x531], 0
call fcn.0058a9f0
add esp, 0xc
lea eax, [ebp - 0xf0]
push eax
push 0x6c
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [ebp - 0x53c], eax
cmp eax, 0x6c
jae 0x441781
xor esi, esi
test eax, eax
je 0x441781
nop
push 0x410
lea eax, [ebp - 0x500]
push 0
push eax
call fcn.0058a9f0
mov eax, dword [0x61e28c]
add esp, 0xc
mov dword [ebp - 0x18], eax
movzx eax, word [0x61e290]
mov word [ebp - 0x14], ax
movzx eax, word [ebp + esi*2 - 0xf0]
add esi, 4
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x500]
push 0x207
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x538], esi
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x441775
lea esi, [ebp - 0x500]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x441741
sub esi, ecx
mov eax, edi
sar esi, 1
cmp dword [edi + 0x14], 8
jb 0x44175a
mov eax, dword [edi]
push esi
lea ecx, [ebp - 0x500]
push ecx
push eax
call fcn.005b7aa8
add esp, 0xc
test eax, eax
je 0x4417a2
mov esi, dword [ebp - 0x538]
cmp esi, dword [ebp - 0x53c]
jb 0x4416e0
mov al, byte [ebp - 0x531]
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.00536569
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebp - 0x520], 0
mov word [ebp - 0x530], ax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x51c], 7
cmp eax, esi
jb 0x4418c2
sub eax, esi
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
cmp dword [edi + 0x14], 8
jb 0x4417dd
mov edi, dword [edi]
push ecx
lea eax, [edi + esi*2]
push eax
lea ecx, [ebp - 0x530]
call fcn.0040ea50
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x441800
sub ecx, edx
lea eax, [ebp - 0x18]
sar ecx, 1
push ecx
push eax
push 0
lea ecx, [ebp - 0x530]
call fcn.00442e50
mov esi, dword [ebp - 0x544]
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x554], xmm0
movups xmmword [ebp - 0x518], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea eax, [ebp - 0x518]
movq qword [ebp - 0x540], xmm0
movq qword [ebp - 0x508], xmm0
cmp esi, eax
je 0x4418a5
mov ecx, esi
call fcn.0040fa10
movups xmm0, xmmword [ebp - 0x554]
xor eax, eax
mov dword [ebp - 0x508], 0
mov dword [ebp - 0x504], 7
movups xmmword [esi], xmm0
mov word [ebp - 0x518], ax
movq xmm0, qword [ebp - 0x540]
movq qword [esi + 0x10], xmm0
lea ecx, [ebp - 0x518]
call fcn.0040ebb0
lea ecx, [ebp - 0x530]
call fcn.0040ebb0
mov al, 1
jmp 0x441787
call fcn.00442b00
int3
Function at 0x442360
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6050b8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x67e4d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4423db
test al, 0x10
je 0x4423db
push esi
mov edi, 1
call fcn.0043e0f0
add esp, 4
test eax, eax
jne 0x4423fe
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4423fe
push esi
test edi, edi
jne 0x4423f6
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4423fe
push esi
push 0x61e228
call fcn.0043d410
add esp, 8
jmp 0x4423fe
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4423ac
push esi
push 0x61e228
call fcn.0043d410
add esp, 8
jmp 0x4423fe
call fcn.0043e0f0
add esp, 4
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x442472
push esi
lea ecx, [ebp - 0x10]
call fcn.0040aca0
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
push ecx
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
je 0x442435
mov ecx, eax
call fcn.0040f140
add dword [esi + 4], 4
jmp 0x44243d
push eax
mov ecx, esi
call fcn.00416d40
mov edx, dword [ebp - 0x10]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x44245f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x443cd0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x67e4d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x800
lea eax, [ebp - 0x804]
mov ebx, ecx
push 0
push eax
call fcn.0058a9f0
add esp, 0xc
lea eax, [ebp - 0x804]
push 0x400
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea ecx, [ebp - 0x805]
call fcn.00443940
lea ecx, [ebp - 0x805]
mov edi, eax
call fcn.00443a20
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
mov dword [ebp - 0x80c], esi
test esi, esi
je 0x443dc7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x443d96
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push edi
push 0
push 0
call dword [sym.imp.USER32.dll_FindWindowExW]
test eax, eax
je 0x443d83
push 0
push 0
push 0x1400
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00536569
mov esp, ebp
pop ebp
ret
lea edi, [ebx + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 8]
lea ecx, [ebx + 4]
cmp dword [ecx + 8], eax
je 0x443db3
mov dword [eax], esi
add dword [ecx + 4], 4
jmp 0x443dc0
lea edx, [ebp - 0x80c]
push edx
push eax
call fcn.00443600
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00536569
mov esp, ebp
pop ebp
ret
Function at 0x443e70
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1a3c
call fcn.005373d0
mov eax, dword [0x67e4d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push 0
push 2
mov dword [ebp - 0x1a34], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4440a6
push 0x228
lea eax, [ebp - 0x1a2c]
push 0
push eax
call fcn.0058a9f0
add esp, 0xc
mov dword [ebp - 0x1a30], 0x22c
lea eax, [ebp - 0x1a30]
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x443f00
push str.Process32First_Failed__n
call fcn.0043d410
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00536569
mov esp, ebp
pop ebp
ret 8
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1a3c], eax
cmp eax, dword [ebp - 0x1a28]
je 0x444087
push dword [ebp - 0x1a34]
lea eax, [ebp - 0x1a0c]
push eax
call fcn.005a780d
add esp, 8
test eax, eax
jne 0x444087
push dword [ebp - 0x1a28]
push str._n__Process_ID__________d__n
call fcn.0043d410
push 0x800
lea eax, [ebp - 0x1804]
push 0
push eax
call fcn.0058a9f0
add esp, 0x14
push dword [ebp - 0x1a28]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x444056
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.0058a9f0
add esp, 0xc
lea eax, [ebp - 0x804]
push 0x400
push eax
push 0
push edi
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x44404b
push 0x800
lea eax, [ebp - 0x1004]
push 0
push eax
call fcn.0058a9f0
lea eax, [ebp - 0x804]
push 0x7e
push eax
call fcn.00589db7
add esp, 0x14
test eax, eax
je 0x444016
push 0x400
lea eax, [ebp - 0x1004]
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
dec eax
cmp eax, 0x3fe
ja 0x444016
lea ecx, [ebp - 0x1004]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x444003
lea eax, [ebp - 0x1004]
jmp 0x444031
lea ecx, [ebp - 0x804]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x444020
lea eax, [ebp - 0x804]
sub ecx, edx
sar ecx, 1
push ecx
push eax
lea eax, [ebp - 0x1804]
push 0x400
push eax
call fcn.005a85eb
add esp, 0x10
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
jmp 0x44405c
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0x1a28]
mov dword [ebp - 0x1a38], ecx
cmp dword [esi + 8], eax
je 0x444078
mov dword [eax], ecx
add dword [esi + 4], 4
jmp 0x444087
lea ecx, [ebp - 0x1a38]
push ecx
push eax
mov ecx, esi
call fcn.004434a0
lea eax, [ebp - 0x1a30]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
mov eax, dword [ebp - 0x1a3c]
jne 0x443f13
push ebx
call edi
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00536569
mov esp, ebp
pop ebp
ret 8
Function at 0x447e80
Capabilities:
Check if file exists
Delete file
Get file size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 8
push esi
lea esi, [ecx + 0x2c]
mov ecx, dword [eax]
mov eax, dword [esi]
push edi
lea edx, [ecx - 0x10]
lea edi, [eax - 0x10]
cmp edx, edi
je 0x447ee4
cmp dword [edi + 0xc], 0
push ebx
lea ebx, [edi + 0xc]
jl 0x447ed6
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x447ed6
push edx
call fcn.004103b0
add esp, 4
mov dword [ebp + 8], eax
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x447ecf
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
jmp 0x447ee3
push dword [ecx - 0xc]
push ecx
mov ecx, esi
call fcn.0040ad20
mov eax, dword [esi]
pop ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x447f4a
mov eax, dword [esi]
xorps xmm0, xmm0
movlpd qword [ebp - 8], xmm0
cmp dword [eax - 0xc], 0
je 0x447f4a
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x447f31
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0
jl 0x447f4a
jg 0x447f42
cmp dword [ebp - 8], 0x40000000
jbe 0x447f4a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x448c60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 8], 0
je 0x448c77
mov eax, 0x8000ffff
pop esi
mov esp, ebp
pop ebp
ret
push edi
push 0
push 0
lea edi, [esi + 0x24]
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionEx]
test eax, eax
jne 0x448ca4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x448c9e
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x448dbd
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 0
push 0
mov byte [edi + 0x18], 1
call ebx
mov dword [esi + 0x40], eax
test eax, eax
jne 0x448cdb
cmp byte [edi + 0x18], al
je 0x448ccf
push edi
mov byte [edi + 0x18], al
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
call fcn.00417f90
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
call ebx
mov edi, eax
test edi, edi
jne 0x448d14
call fcn.00417f90
push 0x2710
mov ecx, esi
mov edi, eax
call fcn.00424db0
test eax, eax
jns 0x448dba
test edi, edi
pop ebx
cmovns edi, eax
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0
push edi
mov ecx, esi
call fcn.00448860
mov dword [ebp - 4], eax
test eax, eax
jns 0x448d44
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x2710
mov ecx, esi
call fcn.00424db0
mov eax, dword [ebp - 4]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
call ebx
mov ebx, eax
test ebx, ebx
je 0x448ceb
push 0
push 0
push ebx
mov ecx, esi
call fcn.00448860
mov edi, eax
test edi, edi
jns 0x448d82
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x2710
mov ecx, esi
call fcn.00424db0
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [esi + 4]
push eax
push 0
push esi
push 0x449030
push 0
push 0
call fcn.005a82d8
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x448ceb
push 0xffffffffffffffff
push dword [esi + 0x40]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x448dba
call fcn.00417f90
mov edi, eax
mov eax, edi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret