joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414b15
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x10f]
mov byte [ebp - 0x110], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 4]
push eax
push 0x4f1a20
push 1
push ebx
push 0x4f1a10
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, ebx
jl 0x414c53
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x110]
push dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp - 4]
push dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov eax, dword [ebp - 4]
push dword [esi + 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
mov eax, dword [ebp - 4]
push dword [esi + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x3c]
push dword [esi + 0x10]
mov eax, dword [ebp - 4]
push dword [esi + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 4]
push dword [esi + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 4]
push dword [esi + 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov si, word [esi + 0x1c]
cmp si, bx
je 0x414bcd
mov eax, dword [ebp - 4]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov ecx, dword [ebp - 0xc]
call fcn.00414c5c
mov eax, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push 0x4f1a30
mov ecx, dword [eax]
push eax
call dword [ecx]
mov esi, eax
cmp esi, ebx
jl 0x414c4a
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x316]
mov word [ebp - 0x318], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x318]
push 0x104
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x110]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x318]
push 1
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x414c5c
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
push ebx
xor ebx, ebx
push 0x9c
lea eax, [ebp - 0x9c]
push ebx
push eax
call fcn.004b0720
add esp, 0xc
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0x9c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x414cbf
mov eax, dword [ebp - 0x8c]
dec eax
dec eax
jne 0x414cbf
cmp dword [ebp - 0x98], 6
jne 0x414cb4
cmp dword [ebp - 0x94], 2
jae 0x414cbd
cmp dword [ebp - 0x98], 0xa
jne 0x414cbf
mov bl, 1
mov al, bl
pop ebx
leave
ret
Function at 0x415a83
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push edi
xor edi, edi
push edi
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
cmp esi, edi
je 0x415abd
push dword [ebp + 8]
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
push dword [ebp + 8]
push 0x4159f8
push esi
call dword [sym.imp.USER32.dll_EnumChildWindows]
jmp 0x415b51
push 0x24
lea eax, [ebp - 0x24]
pop esi
push esi
push edi
push eax
call fcn.004b0720
add esp, 0xc
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], esi
push eax
push 5
call dword [sym.imp.SHELL32.dll_SHAppBarMessage]
test eax, eax
je 0x415b2c
mov eax, dword [ebp - 0x18]
sub eax, edi
je 0x415b0d
dec eax
je 0x415af1
dec eax
je 0x415b0d
dec eax
jne 0x415b51
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 8]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0xc]
lea edx, [ecx - 0x64]
add ecx, 0xfffffff0
mov dword [eax], edx
jmp 0x415b27
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 8]
lea edx, [ecx - 0x64]
add ecx, 0xfffffff0
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
jmp 0x415b51
mov esi, dword [ebp + 8]
push edi
push esi
push edi
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
test eax, eax
je 0x415b56
mov eax, dword [esi + 8]
sub eax, 0x96
mov dword [esi], eax
mov eax, dword [esi + 0xc]
sub eax, 0x1e
mov dword [esi + 4], eax
push 1
pop eax
jmp 0x415b58
xor eax, eax
pop edi
pop esi
leave
ret 4
Function at 0x416a51
Capabilities:
Delete directory
Delete file

Disassembly:
mov eax, 0x4dacd0
call fcn.004b0604
sub esp, 0x10
mov eax, dword [str.pRdR]
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 0x14], eax
and dword [ebp - 4], 0
mov dword [ebp - 0x10], eax
mov esi, dword [ebx + 0x24]
mov byte [ebp - 4], 1
test esi, esi
je 0x416b0e
push edi
mov eax, esi
mov esi, dword [esi]
mov eax, dword [eax + 8]
test eax, eax
je 0x416b05
lea edi, [eax + 0x24]
mov eax, dword [eax + 0x24]
cmp dword [eax - 8], 0
je 0x416b05
push str..TFT
lea eax, [ebp - 0x18]
push edi
push eax
call fcn.004c77ff
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004c76a3
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.004c756a
push str..FON
lea eax, [ebp - 0x1c]
push edi
push eax
call fcn.004c77ff
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.004c76a3
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004c756a
push dword [ebp - 0x10]
call dword [sym.imp.GDI32.dll_RemoveFontResourceA]
test eax, eax
je 0x416b05
push dword [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
call edi
push dword [ebp - 0x14]
call edi
test esi, esi
jne 0x416a81
pop edi
push dword [ebx + 0x3c]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004c756a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004c756a
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x416b3d
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4dace4
call fcn.004b0604
sub esp, 0x10c
mov eax, dword [str.pRdR]
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
push 1
pop edi
lea eax, [ebp - 0x118]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x118]
lea ecx, [ebp - 0x10]
push eax
call fcn.004c76f3
push 0x511870
lea ecx, [ebp - 0x10]
call fcn.004c430d
add esi, 0x3c
push edi
push dword [ebp - 0x10]
push str._s_ir_tmpfnt__d
push esi
call fcn.004c42fa
mov eax, dword [esi]
push 0
push eax
call fcn.004b2235
add esp, 0x18
test eax, eax
je 0x416bc7
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push esi
call fcn.004c72df
call fcn.0040c99a
test eax, eax
pop ecx
jne 0x416bca
inc edi
jmp 0x416b91
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004c756a
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret
Function at 0x4177c9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x4dae8c
call fcn.004b0604
push ecx
push esi
push edi
mov esi, ecx
and dword [ebp - 4], 0
xor edi, edi
call fcn.004177a3
mov eax, dword [ebp + 8]
cmp dword [eax - 8], edi
jne 0x4177ef
push 1
jmp 0x41781a
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4177eb
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
call fcn.004c72df
mov ecx, esi
call fcn.00417885
test eax, eax
mov dword [esi + 0x34], eax
jne 0x41781d
push 2
pop edi
jmp 0x417857
dec eax
je 0x41783b
dec eax
jne 0x417860
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
call fcn.004c72df
mov ecx, esi
call fcn.00417953
jmp 0x417851
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
call fcn.004c72df
mov ecx, esi
call fcn.004179cd
mov edi, eax
test edi, edi
je 0x417860
mov ecx, esi
call fcn.004177a3
jmp 0x417867
mov dword [esi + 0x30], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004c756a
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret 4

Function at 0x417eca
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x417f14
lea eax, [ebp - 4]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 4]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x417f14
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
leave
ret

Function at 0x418eef
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
mov esi, ecx
lea eax, [ebp - 4]
push edi
push eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [ebp - 4], edi
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
cmp eax, edi
je 0x418f4e
mov ecx, dword [ebp - 4]
mov edx, ecx
and edx, 1
mov dword [esi + 0x3c], edx
mov edx, ecx
and edx, 2
mov dword [esi + 0x40], edx
mov edx, ecx
and edx, 4
mov dword [esi + 0x44], edx
mov edx, ecx
and edx, 0x10
mov dword [esi + 0x48], edx
mov edx, ecx
and edx, 0x20
and ecx, 0x40
mov dword [esi + 0x4c], edx
mov dword [esi + 0x50], ecx
pop edi
pop esi
leave
ret
Function at 0x41d946
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x41e7b7
Capabilities:
Check os version
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
push ebx
push esi
lea eax, [ebp - 0xb0]
push edi
xor esi, esi
push eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0xb0], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x41e7ec
cmp dword [ebp - 0xa0], 2
je 0x41e7f4
push 1
pop eax
jmp 0x41e95e
cmp dword [ebp - 0xac], 6
jb 0x41e804
mov dword [ebp - 0x1c], 1
and byte [ebp - 0x14], 0
and byte [ebp - 0x13], 0
and byte [ebp - 0x12], 0
and byte [ebp - 0x11], 0
and byte [ebp - 0x10], 0
lea eax, [ebp - 8]
push eax
push 1
push 8
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x18], esi
mov byte [ebp - 0xf], 5
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41e86f
call edi
cmp eax, 0x3f0
jne 0x41e905
lea eax, [ebp - 8]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x41e905
mov esi, 0x1000
push esi
call fcn.004b0861
mov ebx, eax
pop ecx
test ebx, ebx
je 0x41e95b
lea eax, [ebp - 0xc]
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push ebx
push 2
push dword [ebp - 8]
call esi
mov dword [ebp - 4], eax
call edi
cmp dword [ebp - 4], 0
jne 0x41e8cd
cmp eax, 0x7a
jne 0x41e8cd
push dword [ebp - 0xc]
push ebx
call fcn.004b2c90
pop ecx
test eax, eax
pop ecx
je 0x41e905
lea ecx, [ebp - 0xc]
mov ebx, eax
push ecx
push dword [ebp - 0xc]
push eax
push 2
push dword [ebp - 8]
call esi
mov dword [ebp - 4], eax
call edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
cmp dword [ebp - 4], edi
je 0x41e8fe
lea eax, [ebp - 0x18]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push 0x220
push 0x20
lea eax, [ebp - 0x14]
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x41e909
push ebx
call fcn.004b0778
pop ecx
xor eax, eax
jmp 0x41e95e
cmp ebx, edi
mov dword [ebp - 4], edi
je 0x41e939
cmp dword [ebx], edi
jbe 0x41e939
lea esi, [ebx + 4]
push dword [esi]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x41e930
inc edi
add esi, 8
cmp edi, dword [ebx]
jb 0x41e917
jmp 0x41e937
mov dword [ebp - 4], 1
xor edi, edi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push ebx
call fcn.004b0778
cmp dword [ebp - 0x1c], edi
pop ecx
je 0x41e95b
cmp dword [ebp - 4], edi
je 0x41e95b
call fcn.0041e963
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41e9bf
Capabilities:
Check os version
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
push ebx
push esi
lea eax, [ebp - 0xb0]
push edi
xor esi, esi
push eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0xb0], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x41e9f4
cmp dword [ebp - 0xa0], 2
je 0x41e9fc
push 1
pop eax
jmp 0x41eb6e
cmp dword [ebp - 0xac], 6
jb 0x41ea0c
mov dword [ebp - 0x1c], 1
and byte [ebp - 0x14], 0
and byte [ebp - 0x13], 0
and byte [ebp - 0x12], 0
and byte [ebp - 0x11], 0
and byte [ebp - 0x10], 0
lea eax, [ebp - 8]
push eax
push 1
push 8
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x18], esi
mov byte [ebp - 0xf], 5
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41ea77
call ebx
cmp eax, 0x3f0
jne 0x41eb11
lea eax, [ebp - 8]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x41eb11
mov edi, 0x1000
push edi
call fcn.004b0861
mov esi, eax
pop ecx
test esi, esi
je 0x41eb6b
lea eax, [ebp - 0xc]
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push esi
push 2
push dword [ebp - 8]
call edi
mov dword [ebp - 4], eax
call ebx
cmp dword [ebp - 4], 0
jne 0x41ead5
cmp eax, 0x7a
jne 0x41ead5
push dword [ebp - 0xc]
push esi
call fcn.004b2c90
pop ecx
test eax, eax
pop ecx
je 0x41eb11
lea ecx, [ebp - 0xc]
mov esi, eax
push ecx
push dword [ebp - 0xc]
push eax
push 2
push dword [ebp - 8]
call edi
mov dword [ebp - 4], eax
call ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
cmp dword [ebp - 4], ebx
je 0x41eb06
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
lea eax, [ebp - 0x14]
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x41eb15
cmp esi, ebx
je 0x41eb11
push esi
call fcn.004b0778
pop ecx
xor eax, eax
jmp 0x41eb6e
cmp esi, ebx
mov dword [ebp - 4], ebx
je 0x41eb45
cmp dword [esi], ebx
jbe 0x41eb45
lea edi, [esi + 4]
push dword [edi]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x41eb3c
inc ebx
add edi, 8
cmp ebx, dword [esi]
jb 0x41eb23
jmp 0x41eb43
mov dword [ebp - 4], 1
xor ebx, ebx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp esi, ebx
je 0x41eb59
push esi
call fcn.004b0778
pop ecx
cmp dword [ebp - 0x1c], ebx
je 0x41eb6b
cmp dword [ebp - 4], ebx
je 0x41eb6b
call fcn.0041eb73
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x443cc7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x4de9dd
call fcn.004b0604
push ecx
push ecx
push ebx
push esi
push edi
mov esi, ecx
mov edi, dword [esi + 8]
xor ebx, ebx
cmp edi, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
je 0x443d16
test ebx, ebx
jne 0x443d0f
push dword [ebp + 8]
mov eax, edi
mov edi, dword [edi]
mov eax, dword [eax + 8]
mov eax, dword [eax + 4]
push eax
call fcn.004b10d5
pop ecx
test eax, eax
pop ecx
jne 0x443d07
push 1
pop ebx
test edi, edi
jne 0x443ce7
test ebx, ebx
je 0x443d16
xor esi, esi
jmp 0x443df6
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
je 0x443d2b
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x443d37
mov dword [ebp - 0x10], 1
jmp 0x443df3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
jne 0x443d52
mov dword [ebp - 0x10], 2
jmp 0x443de8
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.irPlg_Action_RegisterActions
push ebx
call edi
push str.irPlg_GetSDKVersion
push ebx
mov dword [ebp - 0x14], eax
call edi
mov ecx, eax
xor edi, edi
cmp ecx, edi
jne 0x443d79
cmp dword [esi + 0x24], 0xffffffff
jne 0x443d7e
cmp dword [ebp - 0x14], edi
jne 0x443d87
mov dword [ebp - 0x10], 3
jmp 0x443de8
or eax, 0xffffffff
cmp eax, dword [esi + 0x24]
je 0x443d96
call ecx
cmp eax, dword [esi + 0x24]
jl 0x443de1
push dword [esi + 0x20]
call dword [ebp - 0x14]
push edi
push dword [esi + 0x20]
call fcn.00482680
push 0xc
call fcn.004c67ee
mov ecx, eax
add esp, 0x10
mov dword [ebp - 0x14], ecx
cmp ecx, edi
mov byte [ebp - 4], 1
je 0x443dc3
call fcn.00443bb3
mov edi, eax
and byte [ebp - 4], 0
lea eax, [ebp + 8]
push eax
lea ecx, [edi + 4]
call fcn.004c76a3
push edi
lea ecx, [esi + 4]
mov dword [edi + 8], ebx
call fcn.004c5d35
jmp 0x443df3
mov dword [ebp - 0x10], 4
test ebx, ebx
je 0x443df3
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004c756a
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x444a6c
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
mov eax, 0x4deba4
call fcn.004b0604
sub esp, 0xc
push ebx
push esi
push edi
mov esi, ecx
push 1
pop ebx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x444bc9
test al, 6
je 0x444aab
cmp dword [esi + 0x1c], 0
jne 0x444aab
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
jmp 0x444acd
push 0
push dword [ebp + 0xc]
call fcn.004b2235
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop ecx
test eax, eax
pop ecx
jne 0x444b26
cmp dword [esi + 0x10], 0
jne 0x444ae5
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
lea eax, [ebp + 8]
push eax
call fcn.004c72df
mov ecx, esi
call fcn.004451ca
sub dword [esi + 0x50], eax
jmp 0x444bcd
push 0x80
push dword [ebp + 0xc]
call edi
test eax, eax
jne 0x444afb
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
jmp 0x444b0e
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x444b26
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
lea eax, [ebp + 8]
push eax
call fcn.004c72df
mov ecx, esi
call fcn.004451ca
sub dword [esi + 0x50], eax
jmp 0x444bc9
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.004c72df
mov ecx, esi
call fcn.004451ca
mov dword [esi + 0x5c], eax
push ecx
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.004c72df
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
mov byte [ebp - 4], 2
call fcn.004c72df
mov ecx, esi
mov byte [ebp - 4], bl
call fcn.00444e12
test eax, eax
je 0x444bc9
cmp dword [esi + 0x14], 0
je 0x444bcd
push 0x80
push dword [ebp + 8]
call edi
test eax, eax
je 0x444bb2
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ecx
test eax, eax
mov ecx, esp
jne 0x444b9d
mov dword [ebp - 0x18], esp
push str.Failed_to_delete_file_after_copy
jmp 0x444bbd
lea eax, [ebp + 8]
mov dword [ebp - 0x18], esp
push eax
call fcn.004c72df
mov ecx, esi
call fcn.00445242
jmp 0x444bcd
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.Failed_to_set_source_file_attribute_to_normal_durign_move
call fcn.004c75d8
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
and dword [ebp - 0x10], 0
and byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.004c756a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004c756a
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
Function at 0x445242
Capabilities:
Delete directory

Disassembly:
mov eax, 0x4ded50
call fcn.004b0604
sub esp, 0xc
push esi
mov eax, dword [str.pRdR]
and dword [ebp - 4], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
lea esi, [ecx + 4]
push 0x5c
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.004c3f52
cmp eax, 0xffffffff
je 0x4452a6
push eax
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.004c3eda
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.004c76a3
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.004c756a
push 0x511870
lea ecx, [ebp - 0x14]
call fcn.004c430d
push 0x5c
lea ecx, [ebp + 8]
call fcn.004c3f52
cmp eax, 0xffffffff
pop esi
je 0x445306
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp + 8]
call fcn.004c3eda
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.004c76a3
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.004c756a
push 0
push dword [ebp - 0x10]
call fcn.004b2235
pop ecx
test eax, eax
pop ecx
jne 0x445306
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.004b10d5
pop ecx
test eax, eax
pop ecx
je 0x445306
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.004c756a
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004c756a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004c756a
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 4
Function at 0x446115
Capabilities:
Delete directory

Disassembly:
mov eax, 0x4defac
call fcn.004b0604
sub esp, 0xc
push esi
mov eax, dword [str.pRdR]
and dword [ebp - 4], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
lea esi, [ecx + 4]
push 0x5c
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.004c3f52
cmp eax, 0xffffffff
je 0x446179
push eax
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.004c3eda
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.004c76a3
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.004c756a
push 0x511870
lea ecx, [ebp - 0x14]
call fcn.004c430d
push 0x5c
lea ecx, [ebp + 8]
call fcn.004c3f52
cmp eax, 0xffffffff
pop esi
je 0x4461d9
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp + 8]
call fcn.004c3eda
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.004c76a3
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.004c756a
push 0
push dword [ebp - 0x10]
call fcn.004b2235
pop ecx
test eax, eax
pop ecx
jne 0x4461d9
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.004b10d5
pop ecx
test eax, eax
pop ecx
je 0x4461d9
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.004c756a
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004c756a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004c756a
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 4

Function at 0x44620b
Capabilities:
Delete directory

Disassembly:
mov eax, 0x4defe0
call fcn.004b0604
sub esp, 0xc
push esi
mov eax, dword [str.pRdR]
and dword [ebp - 4], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
lea esi, [ecx + 4]
push 0x5c
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.004c3f52
cmp eax, 0xffffffff
je 0x446262
push eax
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.004c3eda
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.004c76a3
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.004c756a
lea eax, [ebp + 8]
lea ecx, [ebp - 0x10]
push eax
call fcn.004c76a3
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
call esi
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.004c3f52
cmp eax, 0xffffffff
je 0x4462c4
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call fcn.004c3eda
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.004c76a3
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.004c756a
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.004b0c2e
pop ecx
test eax, eax
pop ecx
je 0x446279
push dword [ebp - 0x10]
jmp 0x446277
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.004c756a
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004c756a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004c756a
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 4