joyce8/EMBER2024-capa huggingface dataset:
Function at 0x455040
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x14]
mov ebx, dword [esi + 8]
push edi
xor edi, edi
push eax
lea edx, [esi + 0x40]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], edi
mov dword [esi + 0x38], edi
call fcn.00454a30
add esp, 4
cmp ebx, edi
jbe 0x45508b
add esi, 0x270
call fcn.00454b30
test eax, eax
jne 0x45524a
inc edi
add esi, 0x44
cmp edi, ebx
jb 0x455073
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], 0
test ebx, ebx
je 0x455145
add esi, 0x29c
cmp dword [esi - 0x14], 0
lea edi, [esi - 0x14]
jne 0x455133
push 0
push 0
push 0
lea ecx, [esi - 0x2c]
push 0
mov dword [esi - 4], 0x454de0
mov dword [esi], ecx
mov dword [esi - 8], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi - 0x10], eax
test eax, eax
jne 0x4550ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4551ed
mov eax, 1
jmp 0x45512b
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi - 0xc], eax
test eax, eax
je 0x4550d5
lea edx, [ebp - 0x10]
push edx
push 0
push edi
push 0x4549c0
push 0
push 0
call fcn.004e5eb8
add esp, 0x18
mov dword [edi], eax
test eax, eax
jne 0x455133
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4551ed
test eax, eax
jne 0x4551ed
mov eax, dword [ebp - 0xc]
inc eax
add esi, 0x44
mov dword [ebp - 0xc], eax
cmp eax, ebx
jb 0x4550a0
xor edi, edi
test ebx, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetEvent]
je 0x455176
mov esi, dword [ebp + 8]
add esi, 0x28c
lea ebx, [ebx]
mov eax, dword [esi]
push eax
call ebx
test eax, eax
je 0x4551f6
inc edi
add esi, 0x44
cmp edi, dword [ebp - 4]
jb 0x455160
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x2b0]
push ecx
call ebx
test eax, eax
jne 0x45518c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi + 0x2ac]
push edx
call ebx
test eax, eax
jne 0x45519f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
je 0x4551bf
mov esi, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add esi, 0x290
mov eax, dword [esi]
push 0xffffffffffffffff
push eax
call ebx
add esi, 0x44
dec edi
jne 0x4551b2
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x45523d
mov esi, dword [ebp + 8]
mov edi, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 0x2b0
mov eax, dword [esi - 4]
test eax, eax
je 0x455215
push eax
call ebx
test eax, eax
jne 0x455215
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x45521c
mov dword [ebp - 8], 0xc
jmp 0x4551c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 8]
mov dword [ebp - 8], 0xc
mov dword [esi + 0x2a4], 1
jmp 0x455179
mov dword [esi - 4], 0
mov eax, dword [esi]
test eax, eax
je 0x455231
push eax
call ebx
test eax, eax
jne 0x455231
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x455237
mov dword [esi], 0
add esi, 0x44
dec edi
jne 0x4551d7
mov eax, dword [ebp - 8]
test eax, eax
jne 0x45524a
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x38]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x455260
Capabilities:
Hash data using sha256

Disassembly:
xor ecx, ecx
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
ret
Function at 0x455aa0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push ecx
push edx
push 0
push 0
call fcn.004e5eb8
mov ecx, dword [ebp + 8]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
je 0x455ac7
xor eax, eax
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x455ad6
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x455c60
Capabilities:
Hash data using sha256

Disassembly:
mov dword [eax], ecx
dec ecx
je 0x455cb8
sub ecx, 3
je 0x455cae
sub ecx, 6
jne 0x455cbf
mov dword [eax + 0x10], 0x6a09e667
mov dword [eax + 0x14], 0xbb67ae85
mov dword [eax + 0x18], 0x3c6ef372
mov dword [eax + 0x1c], 0xa54ff53a
mov dword [eax + 0x20], 0x510e527f
mov dword [eax + 0x24], 0x9b05688c
mov dword [eax + 0x28], 0x1f83d9ab
mov dword [eax + 0x2c], 0x5be0cd19
mov dword [eax + 0x30], ecx
mov dword [eax + 0x34], ecx
ret
or ecx, 0xffffffff
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
ret
mov dword [eax + 4], 0xffffffff
ret

Function at 0x455ec0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, eax
mov eax, dword [ebp + 8]
push edi
mov edi, ecx
test esi, esi
je 0x455ef7
movzx ecx, byte [edi]
xor ecx, eax
shrd eax, edx, 8
and ecx, 0xff
xor eax, dword [ecx*8 + 0x55c300]
shr edx, 8
xor edx, dword [ecx*8 + 0x55c304]
inc edi
dec esi
jne 0x455ed3
pop edi
pop esi
pop ebp
ret 8
Function at 0x458720
Capabilities:
Initialize iwebbrowser2

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5061d0
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x5522c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x51d6f8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor esi, esi
mov dword [0x55ad70], eax
cmp eax, esi
je 0x458788
push 0x51d724
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x458788
push 5
push esi
push esi
push str.http:__www.baofeng.com_permit.html
push 0x51d0ac
push esi
call eax
cmp eax, 0x20
jge 0x4588ba
cmp byte [ebp + 8], 0
je 0x4588e6
mov dword [ebp - 0x14], esi
lea eax, [ebp - 0x14]
push eax
push 0x51d0ec
push 0x17
push esi
push 0x51d098
mov dword [ebp - 4], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, esi
jl 0x4588d0
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xa4]
push 0xffffffffffffffff
push eax
call edx
cmp eax, esi
jl 0x4588d0
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], esi
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x94]
call eax
mov eax, dword [ebp - 0x18]
cmp eax, esi
je 0x4587f2
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push str.http:__www.baofeng.com_permit.html
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, eax
mov dword [ebp - 0x1c], edi
cmp edi, esi
jne 0x458810
push 0x8007000e
call fcn.0045a480
lea edx, [ebp - 0x5c]
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x14]
xor ecx, ecx
push edx
mov word [ebp - 0x5c], cx
call fcn.0045a320
lea ecx, [ebp - 0x4c]
xor eax, eax
mov byte [ebp - 4], 2
push ecx
mov word [ebp - 0x4c], ax
call fcn.0045a320
lea eax, [ebp - 0x3c]
xor edx, edx
mov byte [ebp - 4], 3
push eax
mov word [ebp - 0x3c], dx
call fcn.0045a320
mov ecx, 3
mov word [ebp - 0x2c], cx
mov dword [ebp - 0x24], 0xe
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x4c]
push ecx
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x2c]
push ecx
mov byte [ebp - 4], 5
mov edx, dword [esi]
mov edx, dword [edx + 0x2c]
push edi
push esi
call edx
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ebx, eax
lea eax, [ebp - 0x2c]
push eax
call esi
lea ecx, [ebp - 0x3c]
push ecx
call esi
lea edx, [ebp - 0x4c]
push edx
call esi
lea eax, [ebp - 0x5c]
push eax
call esi
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test ebx, ebx
js 0x4588ce
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4588ba
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, esi
je 0x4588e6
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x458900
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push esi
push 0x40
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.004e98c0
add esp, 0xc
xor eax, eax
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x58]
push edx
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push eax
push ecx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x58], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x458969
mov edx, dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [ebp - 0xc]
push eax
call esi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
xor al, al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x458ba0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x5522c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
mov edi, ecx
lea ecx, [ebp - 0x14]
push ecx
mov word [ebp - 0x14], ax
mov dword [ebp - 0x12], eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
xor ecx, ecx
lea eax, [ebp - 0x28]
mov dword [ebp - 8], ecx
push eax
lea ecx, [ebp - 0x14]
xor edx, edx
push ecx
mov dword [ebp - 0xc], edx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
push 8
push 0x61c46800
push edx
push eax
call fcn.004ea890
mov esi, eax
mov eax, 4
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x18]
push edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push 0x51cf6c
push str.SoftwareBaofengStormPlayerConfigInstall
push SysReAllocString
mov dword [ebp - 0x18], esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov ecx, dword [ebp - 0x18]
cmp esi, ecx
jb 0x458c47
sub esi, ecx
add esi, 0x17
mov eax, 0xaaaaaaab
mul esi
shr edx, 4
push edx
jmp 0x458c5d
sub ecx, esi
add ecx, 0x17
mov eax, 0x19
mul ecx
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 0x1f
push ecx
push 0x51cfe0
call fcn.00459820
mov ecx, dword [ebp - 4]
add esp, 8
pop edi
xor ecx, ebp
pop esi
call fcn.004e4be0
mov esp, ebp
pop ebp
ret
Function at 0x458c80
Capabilities:
Check if file exists
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x278
mov eax, dword [0x5522c0]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x212]
push ecx
mov word [ebp - 0x214], ax
call fcn.004e98c0
add esp, 0xc
lea edx, [ebp - 0x22c]
push edx
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x228]
push ecx
push str.InstallPath
push str.SoftwareBaofengPhoneAssistant
push SysReAllocString
mov dword [ebp - 0x22c], 0x102
mov dword [ebp - 0x228], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x458dde
push str..BFAssistantSvc.exe
lea edx, [ebp - 0x214]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x458dde
cmp byte [ebp + 8], 0
mov esi, str.__install
jne 0x458d2f
mov esi, str.__uninstall
push 0x40
lea ecx, [ebp - 0x270]
push 0
push ecx
call fcn.004e98c0
add esp, 0xc
xor eax, eax
xor edx, edx
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x274]
push ecx
push edx
push edx
push edx
push edx
push edx
push edx
mov word [ebp - 0x244], dx
push esi
lea edx, [ebp - 0x214]
push edx
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x274], 0x44
mov dword [ebp - 0x248], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x458dde
mov eax, dword [ebp - 0x224]
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x224]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [ebp - 0x220]
push edx
call esi
mov al, 1
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004e4be0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
xor ecx, ebp
xor al, al
pop esi
call fcn.004e4be0
mov esp, ebp
pop ebp
ret
Function at 0x4592b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4592c8
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4592fa
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x4592f6
cmp esi, eax
jae 0x4592fa
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4592e8
cmp esi, eax
jb 0x459300
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x45bc90
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x502efb
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x5522c0]
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 [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0
push 2
push 0
push 0
mov esi, ecx
push 0x40000000
push esi
call ebx
mov edi, eax
cmp edi, 0xffffffff
jne 0x45bd0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x45bd42
push esi
call fcn.0045bf00
add esp, 4
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push esi
call ebx
mov edi, eax
cmp edi, 0xffffffff
je 0x45bd44
lea eax, [ebp - 0x128]
push eax
mov dword [ebp - 0x128], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x124], 6
jb 0x45bd42
mov dword [ebp - method.CAccessRight.virtual_0], vtable.CAccessRight.0
mov dword [ebp - 4], 0
call fcn.0045b510
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 - 0x10]
xor ecx, ebp
call fcn.004e4be0
mov esp, ebp
pop ebp
ret

Function at 0x45bd60
Capabilities:
Check os version
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ffadb
mov eax, dword fs:[0]
push eax
sub esp, 0x164
mov eax, dword [0x5522c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, eax
test edi, edi
je 0x45be08
lea eax, [ebp - 0x168]
push eax
mov dword [ebp - 0x168], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x164], 6
jb 0x45be08
mov dword [ebp - method.CAccessRight.virtual_0], vtable.CAccessRight.0
xor ecx, ecx
push 0x3e
push ecx
lea edx, [ebp - 0x4e]
mov dword [ebp - 4], 0
push edx
mov word [ebp - 0x50], cx
call fcn.004e98c0
add esp, 0xc
push 0x20
push 0x51d5f4
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0
lea ecx, [ebp - 0x50]
push ecx
push esi
call fcn.0045b570
add esp, 0xc
mov eax, 1
jmp 0x45be0a
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e4be0
mov esp, ebp
pop ebp
ret
Function at 0x45bf80
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5372c0
push 0x4eb0b0
mov eax, dword fs:[0]
push eax
sub esp, 0x87c
mov eax, dword [0x5522c0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 8]
test esi, esi
je 0x45c018
mov bl, 1
mov dword [ebp - 0x88c], 0xffffffff
push 0x51d674
push esi
push 0x51d648
push 0x104
lea eax, [ebp - 0x634]
push eax
call fcn.004e7a3d
add esp, 0x14
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x884]
push ecx
lea edx, [ebp - 0x634]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x88c], eax
cmp eax, 0xffffffff
jne 0x45c01f
mov dword [ebp - 4], 0xfffffffe
xor al, al
jmp 0x45c168
mov edi, dword [ebp + 0xc]
cmp word [ebp - 0x858], 0x2e
je 0x45c0da
test byte [ebp - 0x884], 0x10
je 0x45c074
lea eax, [ebp - 0x858]
push eax
push esi
push str._s_s_
push 0x104
lea ecx, [ebp - 0x42c]
push ecx
call fcn.004e7a3d
xor edx, edx
mov word [ebp - 0x226], dx
push edi
lea eax, [ebp - 0x42c]
push eax
call fcn.0045bf80
add esp, 0x1c
mov bl, al
jmp 0x45c0d4
lea ecx, [ebp - 0x858]
push ecx
push esi
push 0x51d648
push 0x104
lea edx, [ebp - 0x224]
push edx
call fcn.004e7a3d
add esp, 0x14
xor eax, eax
mov word [ebp - 0x1e], ax
test edi, edi
je 0x45c0a4
cmp edi, 1
jne 0x45c0da
lea ecx, [ebp - 0x224]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
lea edx, [ebp - 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
mov byte [ebp - 0x885], bl
lea ecx, [ebp - 0x884]
push ecx
mov edx, dword [ebp - 0x88c]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x45c022
mov eax, dword [ebp - 0x88c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x88c], 0xffffffff
test edi, edi
je 0x45c116
cmp edi, 2
jne 0x45c15f
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
mov byte [ebp - 0x885], bl
jmp 0x45c15f
mov dword [ebp - 4], 0xfffffffe
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004e4be0
mov esp, ebp
pop ebp
ret
Function at 0x45c3c0
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x507f68
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5522c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45c43d
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, dword [ebp + 8]
and eax, 0xfffffffe
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x45c43d
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x10], esp
mov esi, esp
call fcn.0045d010
add eax, 0x10
mov dword [esi], eax
call fcn.0045c190
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45c463
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x45c7b0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b760
mov eax, dword fs:[0]
push eax
sub esp, 0x878
mov eax, dword [0x5522c0]
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 dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
test edi, edi
jne 0x45c7ef
xor eax, eax
jmp 0x45c8e5
push 0x51d674
push edi
push 0x51d648
lea eax, [ebp - 0x62c]
push 0x104
push eax
mov esi, 1
call fcn.004e7a3d
add esp, 0x14
lea ecx, [ebp - 0x87c]
push ecx
lea edx, [ebp - 0x62c]
push edx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x880], eax
cmp eax, 0xffffffff
je 0x45c7e8
mov ebx, dword [ebp + 0xc]
cmp word [ebp - 0x850], 0x2e
je 0x45c88c
test byte [ebp - 0x87c], 0x10
je 0x45c901
lea eax, [ebp - 0x850]
push eax
push edi
push str._s_s_
lea ecx, [ebp - 0x424]
push 0x104
push ecx
call fcn.004e7a3d
lea eax, [ebp - 0x424]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x21e], dx
call fcn.0045c7b0
add esp, 0x1c
mov esi, eax
mov eax, dword [ebp - 0x880]
lea edx, [ebp - 0x87c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x45c83c
mov ecx, dword [ebp - 0x880]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
test ebx, ebx
je 0x45c8ba
cmp ebx, 2
jne 0x45c8e3
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
test esi, esi
jne 0x45c8e3
push 4
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
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.004e4be0
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x850]
push ecx
push edi
push 0x51d648
lea edx, [ebp - 0x21c]
push 0x104
push edx
call fcn.004e7a3d
xor eax, eax
add esp, 0x14
mov word [ebp - 0x16], ax
test ebx, ebx
je 0x45c935
cmp ebx, 1
jne 0x45c88c
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
test esi, esi
jne 0x45c88c
push ecx
mov ecx, esp
mov dword [ebp - 0x884], esp
push ecx
lea ecx, [ebp - 0x21c]
call fcn.004595d0
call fcn.0045c190
add esp, 4
jmp 0x45c88c