joyce8/EMBER2024-capa huggingface dataset:
Function at 0x432f36
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0042973b
xor ebx, ebx
cmp dword [0x456c20], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x43300c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4330ec
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4330ec
push eax
call fcn.004296cd
mov dword [esp], 0x43ffc8
push edi
mov dword [0x456c20], eax
call esi
push eax
call fcn.004296cd
mov dword [esp], 0x43ffb4
push edi
mov dword [0x456c24], eax
call esi
push eax
call fcn.004296cd
mov dword [0x456c28], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00425db8
test eax, eax
pop ecx
pop ecx
je 0x432fda
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042437d
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x43300c
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004296cd
cmp eax, ebx
pop ecx
mov dword [0x456c30], eax
je 0x43300c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004296cd
pop ecx
mov dword [0x456c2c], eax
mov eax, dword [0x456c2c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x433091
cmp dword [0x456c30], ecx
je 0x433091
push eax
call fcn.00429744
push dword [0x456c30]
mov esi, eax
call fcn.00429744
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x433091
cmp edi, ebx
je 0x433091
call esi
cmp eax, ebx
je 0x43305e
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43305e
test byte [ebp - 0x18], 1
jne 0x433091
lea eax, [ebp - 0x10]
push eax
call fcn.00425def
test eax, eax
pop ecx
je 0x433079
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042437d
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x433088
or dword [ebp + 0x10], 0x200000
jmp 0x4330cc
or dword [ebp + 0x10], 0x40000
jmp 0x4330cc
mov eax, dword [0x456c24]
cmp eax, dword [ebp - 8]
je 0x4330cc
push eax
call fcn.00429744
cmp eax, ebx
pop ecx
je 0x4330cc
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4330cc
mov eax, dword [0x456c28]
cmp eax, dword [ebp - 8]
je 0x4330cc
push eax
call fcn.00429744
cmp eax, ebx
pop ecx
je 0x4330cc
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x456c20]
call fcn.00429744
cmp eax, ebx
pop ecx
je 0x4330ec
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4330ee
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43a8ec
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x44dc1c]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0043a881
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004260b0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x43a93b
cmp dword [ebp - 0x1c], 5
jb 0x43a953
jmp 0x43a94f
cmp dword [ebp - 0x10], 1
jne 0x43a953
cmp dword [ebp - 0x1c], 4
ja 0x43a94f
jne 0x43a953
cmp dword [ebp - 0x18], 0
jbe 0x43a953
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4411c0
call fcn.0043a755
test eax, eax
jge 0x43a974
mov byte [0x45a82c], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042397a
add ebp, 0x78
leave
ret
Function at 0x401f60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop word cs:[eax + eax]
nop dword [eax + eax]
mov eax, dword [0x4338d0]
mov dword [0x434564], 3
mov dword [0x43456c], 0
mov dword [0x434578], 0x3e8
mov dword [0x434568], 0
lea ecx, [eax + 1]
mov dword [0x434574], eax
mov dword [0x4338d0], ecx
push 0x434560
push dword [0x43457c]
call esi
push 0x64
push dword [0x434580]
call edi
cmp eax, 0x102
je 0x401f80
push dword [0x434580]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x434564], 1
mov dword [0x43456c], 0
mov dword [0x434578], 0
mov dword [0x434568], 5
mov dword [0x434580], 0
mov dword [0x434574], 0
push 0x434560
push dword [0x43457c]
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
push 0
push 0
push 0
push 0x401ea0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x402052
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
pop edi
pop ebp
ret 4
Function at 0x4024e0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x10018
call fcn.004207b0
mov ecx, dword [0x43300c]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
mov dword [edx], 0
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp eax, 0xffffffff
je 0x402711
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
xor esi, esi
mov ecx, eax
cmp eax, 0xffffffff
je 0x402749
mov esi, dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
mov dword [ebp - 0x10018], ebx
push ebx
mov edi, ecx
call esi
mov ecx, esi
mov esi, eax
push 0
mov dword [ebp - 0x10020], edi
push edi
call ecx
cmp esi, 0xffffffff
je 0x402715
mov ecx, dword [ebp - 0x10020]
mov ebx, dword [ebp - 0x10018]
mov edi, esi
cmp eax, 0xffffffff
mov esi, 0
je 0x402749
mov esi, 1
cmp edi, eax
jne 0x402749
mov dword [ebp - 0x10024], edi
shr edi, 0xf
je 0x40265f
lea ebx, [ebp - 0x8010]
nop word cs:[eax + eax]
push 0
lea eax, [ebp - 0x10014]
push eax
push 0x8000
mov esi, ebx
push ebx
mov ebx, dword [ebp - 0x10018]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
mov dword [ebp - 0x1001c], 0
je 0x40273d
cmp dword [ebp - 0x10014], 0x8000
jne 0x40273d
push 0
lea eax, [ebp - 0x10014]
push eax
push 0x8000
lea eax, [ebp - 0x10010]
push eax
push dword [ebp - 0x10020]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40273d
cmp dword [ebp - 0x10014], 0x8000
jne 0x40273d
push 0x8000
lea eax, [ebp - 0x10010]
push eax
mov ebx, esi
push esi
call fcn.0040f097
add esp, 0xc
test eax, eax
jne 0x40272d
dec edi
jne 0x4025c0
and dword [ebp - 0x10024], 0x7fff
mov ebx, dword [ebp - 0x10018]
je 0x4026fc
lea edi, [ebp - 0x10014]
lea ecx, [ebp - 0x8010]
push 0
push edi
mov esi, dword [ebp - 0x10024]
push esi
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
mov dword [ebp - 0x1001c], 0
je 0x402725
cmp dword [ebp - 0x10014], esi
jne 0x402725
lea eax, [ebp - 0x10010]
push 0
push edi
mov edi, eax
push esi
push eax
push dword [ebp - 0x10020]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402725
cmp dword [ebp - 0x10014], esi
mov ebx, dword [ebp - 0x10018]
jne 0x40273d
push dword [ebp - 0x10024]
push edi
lea eax, [ebp - 0x8010]
push eax
call fcn.0040f097
add esp, 0xc
test eax, eax
mov dword [ebp - 0x1001c], 1
jne 0x40273d
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1001c], 1
mov dword [eax], 1
jmp 0x40273d
xor esi, esi
jmp 0x402758
mov ecx, dword [ebp - 0x10020]
mov ebx, dword [ebp - 0x10018]
xor esi, esi
jmp 0x402749
mov ebx, dword [ebp - 0x10018]
jmp 0x40273d
mov ebx, dword [ebp - 0x10018]
mov dword [ebp - 0x1001c], 1
mov ecx, dword [ebp - 0x10020]
mov esi, dword [ebp - 0x1001c]
mov eax, ecx
inc eax
cmp eax, 2
jb 0x402758
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
inc eax
cmp eax, 2
jb 0x402767
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e271
mov eax, esi
add esp, 0x10018
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4040e0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov dword [ebp - 0x1c], edx
mov ebx, ecx
mov eax, dword [0x43300c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push 0
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
push eax
call fcn.0040da41
add esp, 4
mov esi, eax
push eax
push edi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x404163
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], esi
lea ecx, [ebp - 0x14]
push eax
push ecx
push 0x42df52
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40418e
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
mov edi, 1
movzx ecx, word [eax + 0xa]
mov dword [edx], ecx
mov ecx, dword [ebp + 8]
movzx edx, word [eax + 8]
mov dword [ecx], edx
mov ecx, dword [ebp + 0xc]
movzx edx, word [eax + 0xe]
mov dword [ecx], edx
mov ecx, dword [ebp + 0x10]
movzx eax, word [eax + 0xc]
mov dword [ecx], eax
jmp 0x4041c6
mov ecx, dword [0x433a44]
mov edx, dword fs:[0x2c]
mov eax, dword [0x434794]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4041e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_obtain_file_info_of_old_service.____d_
jmp 0x4041b7
mov ecx, dword [0x433a44]
mov edx, dword fs:[0x2c]
mov eax, dword [0x434794]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x404222
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_query_file_version_info_of_old_service.____d_
push 0x434588
call fcn.0040c890
add esp, 0xc
xor edi, edi
push esi
call fcn.0040da4a
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e271
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x434794
call fcn.0040da77
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x404180
mov dword [0x434588], 0
push 0x402060
call fcn.0040dcec
add esp, 4
push 0x434794
call fcn.0040dac9
add esp, 4
jmp 0x404180
push 0x434794
call fcn.0040da77
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x4041ab
mov dword [0x434588], 0
push 0x402060
call fcn.0040dcec
add esp, 4
push 0x434794
call fcn.0040dac9
add esp, 4
jmp 0x4041ab
Function at 0x404270
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [0x43300c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test eax, eax
je 0x404332
mov esi, eax
push 0xf01ff
push str.MozillaMaintenance
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x40436c
mov edi, eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x30], esi
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x404309
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
nop word cs:[eax + eax]
nop dword [eax]
push dword [ebp - 0x14]
call ebx
cmp dword [ebp - 0x28], 1
je 0x404309
mov eax, dword [ebp - 0x14]
lea esi, [esi + eax + 0xa]
cmp esi, 0xea60
ja 0x404309
lea eax, [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x4042e0
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov ebx, eax
test eax, eax
jne 0x404326
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x430
sete bl
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [ebp - 0x30]
jmp 0x4043a4
mov ecx, dword [0x433a44]
mov edx, dword fs:[0x2c]
mov eax, dword [0x434794]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4043bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_open_service_manager.____d_
push 0x434588
call fcn.0040c890
add esp, 0xc
xor ebx, ebx
jmp 0x4043ab
mov ecx, dword [0x433a44]
mov edx, dword fs:[0x2c]
mov eax, dword [0x434794]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x404402
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_open_service.____d_
push 0x434588
call fcn.0040c890
add esp, 0xc
xor ebx, ebx
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e271
mov eax, ebx
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x434794
call fcn.0040da77
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x40434f
mov dword [0x434588], 0
push 0x402060
call fcn.0040dcec
add esp, 4
push 0x434794
call fcn.0040dac9
add esp, 4
jmp 0x40434f
push 0x434794
call fcn.0040da77
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x404389
mov dword [0x434588], 0
push 0x402060
call fcn.0040dcec
add esp, 4
push 0x434794
call fcn.0040dac9
add esp, 4
jmp 0x404389
Function at 0x405580
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x210
mov eax, dword [0x43300c]
xor eax, ebp
mov dword [ebp - 0xc], eax
cmp word [ecx], 0
je 0x405636
mov esi, ecx
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4055f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x4055f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4055f6
mov ecx, dword [0x433a44]
mov edx, dword fs:[0x2c]
mov eax, dword [0x434794]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4056af
push esi
push str.Could_not_delete_service_updater_path:__ls.
push 0x434588
call fcn.0040c890
add esp, 0xc
lea edi, [ebp - 0x216]
push 0x20a
push 0
push edi
call fcn.00410040
add esp, 0xc
push esi
call fcn.00416b42
add esp, 4
cmp eax, 0x104
ja 0x405636
push 0x105
push esi
push edi
call fcn.00416fbb
add esp, 0xc
push edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x40564a
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0040e271
add esp, 0x210
pop esi
pop edi
pop ebp
ret
push str.updater.ini
push edi
call fcn.0040d840
add esp, 8
test eax, eax
je 0x405636
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x405636
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x405636
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x405636
mov ecx, dword [0x433a44]
mov edx, dword fs:[0x2c]
mov eax, dword [0x434794]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4056f2
push edi
push str.Could_not_delete_service_updater_INI_path:__ls.
push 0x434588
call fcn.0040c890
add esp, 0xc
jmp 0x405636
push 0x434794
call fcn.0040da77
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x4055e3
mov dword [0x434588], 0
push 0x402060
call fcn.0040dcec
add esp, 4
push 0x434794
call fcn.0040dac9
add esp, 4
jmp 0x4055e3
push 0x434794
call fcn.0040da77
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x40569a
mov dword [0x434588], 0
push 0x402060
call fcn.0040dcec
add esp, 4
push 0x434794
call fcn.0040dac9
add esp, 4
jmp 0x40569a
Function at 0x40ade0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x38
mov eax, dword [0x43300c]
mov esi, ecx
mov ebx, edx
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ecx + 8]
lea ecx, [eax + 1]
cmp ecx, 2
jae 0x40aee3
mov dword [esi + 8], 0xffffffff
mov dword [esi + 0xc], 0
mov eax, dword [ebp + 8]
mov ecx, dword [esi + 0x10]
test ecx, ecx
jne 0x40aeef
mov edx, dword [ebx + 4]
test eax, eax
je 0x40aef9
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [esi + 4], eax
mov dword [esi], 2
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
jne 0x40af05
push 0
push 0x2000000
push 3
push 0
push 1
push 0
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp eax, 0xffffffff
je 0x40aecc
mov eax, edi
lea ecx, [ebp - 0x44]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x40aecc
xor eax, eax
cmp dword [ebp - 0x1c], 1
seta al
mov dword [esi], 2
mov ecx, dword [esi + 4]
mov edx, ecx
shr edx, 0xa
and edx, 1
cmp ecx, 0xffffffff
mov ecx, 2
cmovne ecx, edx
xor edx, edx
test eax, eax
je 0x40aea9
cmp ecx, 1
jne 0x40aed3
mov dword [esi], edx
lea eax, [edi + 1]
cmp eax, 2
jb 0x40aeba
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e271
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, 2
jmp 0x40ae82
cmp eax, 1
jne 0x40aeab
test ecx, ecx
jne 0x40aeab
mov edx, 1
jmp 0x40aea9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40ae06
mov word [ecx], 0
jmp 0x40ae22
mov ecx, esi
call fcn.0040b7f0
jmp 0x40ae37
xor edi, edi
test byte [esi + 4], 0x10
jne 0x40ae49
jmp 0x40ae6a
Function at 0x40af20
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [0x43300c]
xor eax, ebp
mov dword [ebp - 0x10], eax
test byte [ecx + 4], 0x10
jne 0x40af43
mov esi, dword [ecx + 8]
xor eax, eax
cmp esi, 0xffffffff
jne 0x40af60
push 0
push 0x2000000
push 3
push 0
push 1
push 0x20000
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x14]
push ecx
push 0
push edx
push 0
push 0
push 4
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_GetSecurityInfo]
mov ecx, dword [ebp - 0x18]
cmp eax, 5
jne 0x40afc5
xor edi, edi
test ecx, ecx
je 0x40af9f
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0x28]
lea eax, [ecx + 1]
cmp eax, 2
jb 0x40afb1
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e271
mov eax, edi
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
test eax, eax
mov edi, 2
jne 0x40af94
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40af94
mov edi, dword [ebp + 8]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], 2
add edi, 0x20
nop word cs:[eax + eax]
nop
mov esi, dword [edi - 0xc]
lea ecx, [ebp - 0x1c]
push ecx
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_GetEffectiveRightsFromAclW]
test eax, eax
jne 0x40b0ee
mov eax, esi
and eax, 0xefe0fe00
or eax, 0x1f01ff
test esi, 0x10000000
cmove eax, esi
mov ecx, eax
and ecx, 0x7fedff76
or ecx, 0x120089
test eax, eax
cmovns ecx, eax
mov edx, ecx
and edx, 0xbfedfee9
or edx, 0x120116
test ecx, 0x40000000
cmove edx, ecx
mov ecx, dword [ebp - 0x1c]
mov eax, edx
and eax, 0xdfedff5f
or eax, 0x1200a0
test edx, 0x20000000
cmove eax, edx
mov edx, ecx
mov esi, ecx
and edx, 0xefe0fe00
or edx, 0x1f01ff
and esi, 0x10000000
cmove edx, ecx
test edx, edx
js 0x40b07f
test esi, esi
je 0x40b095
mov ecx, edx
and ecx, 0x7fedff76
or ecx, 0x120089
test edx, edx
cmovns ecx, edx
mov dword [ebp - 0x1c], ecx
mov edx, ecx
mov esi, ecx
and esi, 0xbfedfee9
and edx, 0x40000000
or esi, 0x120116
test edx, edx
cmove esi, ecx
mov ebx, esi
mov ecx, esi
and ecx, 0xdfedff5f
and ebx, 0x20000000
or ecx, 0x1200a0
test ebx, ebx
cmove ecx, esi
or ebx, edx
je 0x40b0d2
mov dword [ebp - 0x1c], ecx
and ecx, eax
cmp ecx, eax
jne 0x40b105
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x40b109
mov eax, dword [ebp - 0x14]
dec ecx
add edi, 0x20
mov dword [ebp - 0x24], ecx
jmp 0x40aff0
mov ecx, dword [ebp - 0x20]
cmp eax, 5
jne 0x40b11e
xor edi, edi
test ecx, ecx
jne 0x40af98
jmp 0x40af9f
xor edi, edi
jmp 0x40b10e
mov edi, 1
mov ecx, dword [ebp - 0x20]
test ecx, ecx
jne 0x40af98
jmp 0x40af9f
mov edi, 2
test ecx, ecx
jne 0x40af98
jmp 0x40af9f
Function at 0x40b1b0
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [0x43300c]
mov esi, ecx
mov edi, edx
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [edx + 8]
lea ecx, [eax + 1]
cmp ecx, 2
jb 0x40b1d9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 8], 0xffffffff
mov eax, dword [edi + 4]
test al, 1
je 0x40b201
mov ecx, eax
and ecx, 0xfffffffe
cmp eax, 0xffffffff
mov eax, 0x80
cmovne eax, ecx
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 0x38]
mov eax, dword [esi]
inc eax
push dword [esi + 4]
push 0x42e04a
push eax
push ecx
call fcn.00409560
add esp, 0x10
mov ebx, dword [ebp - 0x34]
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 3
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], 0
mov word [ebp - 0x20], 0x654
mov dword [ebp - 0x16], 0
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
xor edi, edi
test eax, 0xfffffffd
je 0x40b283
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40b283
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test ebx, ebx
mov dword [ebp - 0x34], 0
je 0x40b297
push ebx
call fcn.0040da4a
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e271
mov eax, edi
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40b7f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov ebx, edx
mov esi, ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
mov edi, 2
mov dword [esi + 4], eax
shr ecx, 4
and ecx, 1
cmp eax, 0xffffffff
cmovne edi, ecx
cmp edi, 2
je 0x40b899
cmp edi, 1
mov dword [ebp - 0x14], ebx
je 0x40b8a1
push 0
push 0x80
push 3
push 0
push 0
push 0x60000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov eax, dword [esi + 8]
lea ecx, [eax + 1]
cmp ecx, 2
jb 0x40b854
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], ebx
mov eax, dword [ebp - 0x14]
cmp ebx, 0xffffffff
je 0x40b899
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
mov edx, 2
mov dword [esi + 4], eax
shr ecx, 4
and ecx, 1
cmp eax, 0xffffffff
cmovne edx, ecx
cmp edi, edx
je 0x40b899
mov eax, dword [esi + 8]
lea ecx, [eax + 1]
cmp ecx, 2
jb 0x40b892
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0xffffffff
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x20a
call fcn.0040da41
add esp, 4
mov ebx, eax
push 0x20a
push 0
push eax
call fcn.00410040
add esp, 0xc
push ebx
push str.mozlock.
push dword [ebp - 0x14]
call fcn.0040d910
add esp, 0xc
test eax, eax
je 0x40b938
push ebx
call fcn.00416b42
add esp, 4
test eax, eax
je 0x40b938
mov ecx, eax
nop word cs:[eax + eax]
nop
dec ecx
movzx edx, word [ebx + ecx*2]
cmp dx, 0x5c
je 0x40b901
cmp dx, 0x2f
jne 0x40b913
cmp eax, ecx
jb 0x40b8f0
test ecx, ecx
mov eax, ecx
mov word [ebx + ecx*2], 0
jne 0x40b8f0
jmp 0x40b938
push 0x2f
push ebx
call fcn.00410261
add esp, 8
mov dword [ebp - 0x10], eax
push 0x5c
push ebx
call fcn.00410261
add esp, 8
mov ecx, dword [ebp - 0x10]
cmp ecx, eax
cmova eax, ecx
test eax, eax
jne 0x40b946
push ebx
call fcn.0040da4a
add esp, 0xc
jmp 0x40b89c
add eax, 2
lea ecx, [esi + 0xc]
mov edx, eax
call fcn.00409470
test eax, eax
js 0x40b938
cmp dword [esi + 0xc], 0
je 0x40b938
push 0
push 0x4000000
push 4
push 0
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edx, dword [esi + 8]
lea ecx, [edx + 1]
cmp ecx, 2
jae 0x40b992
mov dword [esi + 8], eax
push ebx
call fcn.0040da4a
add esp, 4
mov ebx, dword [esi + 8]
jmp 0x40b857
push edx
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
jmp 0x40b97e