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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x411014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00407d51
and dword [ebp - 0x14], 0
cmp dword [0x412b5c], 0
mov dword [ebp - 0x18], eax
jne 0x409dff
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x409ea7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x409ea7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x412b5c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x412b60], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x412b64], eax
call edi
push eax
call esi
mov dword [0x412b6c], eax
test eax, eax
je 0x409dff
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x412b68], eax
mov eax, dword [0x412b68]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x409e58
cmp dword [0x412b6c], ecx
je 0x409e58
push eax
call esi
push dword [0x412b6c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x409e58
test ebx, ebx
je 0x409e58
call edi
test eax, eax
je 0x409e4f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x409e4f
test byte [ebp - 8], 1
jne 0x409e58
or dword [ebp + 0x10], 0x200000
jmp 0x409e8b
mov eax, dword [0x412b60]
cmp eax, dword [ebp - 0x18]
je 0x409e8b
push eax
call esi
test eax, eax
je 0x409e8b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x409e8b
mov eax, dword [0x412b64]
cmp eax, dword [ebp - 0x18]
je 0x409e8b
push eax
call esi
test eax, eax
je 0x409e8b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x412b5c]
call esi
test eax, eax
je 0x409ea7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x409ea9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403ffe
leave
ret

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp int.00401219
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x3eaa2741
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
mov ecx, 0x47592707
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x4ab020
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4ab062
call fcn.004b0fc8
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
cmp eax, edi
je 0x4ab062
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
cmp eax, edi
jne 0x4ab059
xor eax, eax
jmp 0x4ab06a
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004ab070
pop edi
pop esi
pop ebx
ret 4

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
je 0x431072
nop
nop
nop
nop
mov ebx, 0x40915c
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x361a4927
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x431060
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
je 0x4310d2
nop
nop
nop
nop
nop
mov ebx, 0x42f3f8
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x6b027a9b
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4310c0
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219

Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x401e30
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 0x401e50
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 0x401d70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x401f22
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
pop edi
pop ebp
ret 4
Function at 0x402310
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.00420760
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 0x402541
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 0x402579
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 0x402545
mov ecx, dword [ebp - 0x10020]
mov ebx, dword [ebp - 0x10018]
mov edi, esi
cmp eax, 0xffffffff
mov esi, 0
je 0x402579
mov esi, 1
cmp edi, eax
jne 0x402579
mov dword [ebp - 0x10024], edi
shr edi, 0xf
je 0x40248f
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 0x40256d
cmp dword [ebp - 0x10014], 0x8000
jne 0x40256d
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 0x40256d
cmp dword [ebp - 0x10014], 0x8000
jne 0x40256d
push 0x8000
lea eax, [ebp - 0x10010]
push eax
mov ebx, esi
push esi
call fcn.0040f047
add esp, 0xc
test eax, eax
jne 0x40255d
dec edi
jne 0x4023f0
and dword [ebp - 0x10024], 0x7fff
mov ebx, dword [ebp - 0x10018]
je 0x40252c
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 0x402555
cmp dword [ebp - 0x10014], esi
jne 0x402555
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 0x402555
cmp dword [ebp - 0x10014], esi
mov ebx, dword [ebp - 0x10018]
jne 0x40256d
push dword [ebp - 0x10024]
push edi
lea eax, [ebp - 0x8010]
push eax
call fcn.0040f047
add esp, 0xc
test eax, eax
mov dword [ebp - 0x1001c], 1
jne 0x40256d
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1001c], 1
mov dword [eax], 1
jmp 0x40256d
xor esi, esi
jmp 0x402588
mov ecx, dword [ebp - 0x10020]
mov ebx, dword [ebp - 0x10018]
xor esi, esi
jmp 0x402579
mov ebx, dword [ebp - 0x10018]
jmp 0x40256d
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 0x402588
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
inc eax
cmp eax, 2
jb 0x402597
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e0d1
mov eax, esi
add esp, 0x10018
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x403ef0
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.0040d9ae
add esp, 4
mov esi, eax
push eax
push edi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x403f73
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], esi
lea ecx, [ebp - 0x14]
push eax
push ecx
push 0x42df42
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x403f9e
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 0x403fd6
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 0x403ff3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_obtain_file_info_of_old_service.____d_
jmp 0x403fc7
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 0x404032
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.0040b1d0
add esp, 0xc
xor edi, edi
push esi
call fcn.0040d9b7
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e0d1
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x434794
call fcn.0040d9e7
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x403f90
mov dword [0x434588], 0
push 0x401f30
call fcn.0040dc5c
add esp, 4
push 0x434794
call fcn.0040da39
add esp, 4
jmp 0x403f90
push 0x434794
call fcn.0040d9e7
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x403fbb
mov dword [0x434588], 0
push 0x401f30
call fcn.0040dc5c
add esp, 4
push 0x434794
call fcn.0040da39
add esp, 4
jmp 0x403fbb
Function at 0x404080
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 0x404142
mov esi, eax
push 0xf01ff
push str.MozillaMaintenance
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x40417c
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 0x404119
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 0x404119
mov eax, dword [ebp - 0x14]
lea esi, [esi + eax + 0xa]
cmp esi, 0xea60
ja 0x404119
lea eax, [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x4040f0
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov ebx, eax
test eax, eax
jne 0x404136
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 0x4041b4
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 0x4041cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_open_service_manager.____d_
push 0x434588
call fcn.0040b1d0
add esp, 0xc
xor ebx, ebx
jmp 0x4041bb
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 0x404212
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_open_service.____d_
push 0x434588
call fcn.0040b1d0
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.0040e0d1
mov eax, ebx
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x434794
call fcn.0040d9e7
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x40415f
mov dword [0x434588], 0
push 0x401f30
call fcn.0040dc5c
add esp, 4
push 0x434794
call fcn.0040da39
add esp, 4
jmp 0x40415f
push 0x434794
call fcn.0040d9e7
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x404199
mov dword [0x434588], 0
push 0x401f30
call fcn.0040dc5c
add esp, 4
push 0x434794
call fcn.0040da39
add esp, 4
jmp 0x404199
Function at 0x405360
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 0x405450
mov esi, ecx
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4053d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x4053d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4053d6
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 0x405464
push esi
push str.Could_not_delete_service_updater_path:__ls.
push 0x434588
call fcn.0040b1d0
add esp, 0xc
lea edi, [ebp - 0x216]
push 0x20a
push 0
push edi
call fcn.0040fff0
add esp, 0xc
push str.updater.ini
push esi
push edi
call fcn.0040b4f0
add esp, 0xc
test eax, eax
je 0x405450
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x405450
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x405450
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x405450
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 0x4054a7
push edi
push str.Could_not_delete_service_updater_INI_path:__ls.
push 0x434588
call fcn.0040b1d0
add esp, 0xc
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0040e0d1
add esp, 0x210
pop esi
pop edi
pop ebp
ret
push 0x434794
call fcn.0040d9e7
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x4053c3
mov dword [0x434588], 0
push 0x401f30
call fcn.0040dc5c
add esp, 4
push 0x434794
call fcn.0040da39
add esp, 4
jmp 0x4053c3
push 0x434794
call fcn.0040d9e7
add esp, 4
cmp dword [0x434794], 0xffffffff
jne 0x40543d
mov dword [0x434588], 0
push 0x401f30
call fcn.0040dc5c
add esp, 4
push 0x434794
call fcn.0040da39
add esp, 4
jmp 0x40543d
Function at 0x4096a0
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 0x40978b
mov dword [esi + 8], 0xffffffff
mov dword [esi + 0xc], 0
mov eax, dword [ebp + 8]
mov ecx, dword [esi + 0x10]
test ecx, ecx
jne 0x409797
mov edx, dword [ebx + 4]
test eax, eax
je 0x4097a1
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 0x4097ad
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 0x409784
mov eax, edi
lea ecx, [ebp - 0x44]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x409784
xor eax, eax
cmp dword [ebp - 0x1c], 1
seta al
mov dword [esi], 2
mov ecx, dword [esi + 4]
cmp ecx, 0xffffffff
je 0x4097be
shr ecx, 0xa
and ecx, 1
xor edx, edx
test eax, eax
je 0x409761
cmp ecx, 1
jne 0x4097c5
mov dword [esi], edx
lea eax, [edi + 1]
cmp eax, 2
jb 0x409772
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e0d1
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, 2
jmp 0x409742
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4096c6
mov word [ecx], 0
jmp 0x4096e2
mov ecx, esi
call fcn.0040a0c0
jmp 0x4096f7
xor edi, edi
test byte [esi + 4], 0x10
jne 0x409709
jmp 0x40972a
mov ecx, 2
jmp 0x409756
cmp eax, 1
jne 0x409763
mov edx, 1
test ecx, ecx
je 0x409761
jmp 0x409763
Function at 0x4097e0
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 0x409803
mov esi, dword [ecx + 8]
xor eax, eax
cmp esi, 0xffffffff
jne 0x409820
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 0x409885
xor edi, edi
test ecx, ecx
je 0x40985f
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0x28]
lea eax, [ecx + 1]
cmp eax, 2
jb 0x409871
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e0d1
mov eax, edi
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
test eax, eax
mov edi, 2
jne 0x409854
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x409854
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 0x4099ae
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 0x40993f
test esi, esi
je 0x409955
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 0x409992
mov dword [ebp - 0x1c], ecx
and ecx, eax
cmp ecx, eax
jne 0x4099c5
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x4099c9
mov eax, dword [ebp - 0x14]
dec ecx
add edi, 0x20
mov dword [ebp - 0x24], ecx
jmp 0x4098b0
mov ecx, dword [ebp - 0x20]
cmp eax, 5
jne 0x4099de
xor edi, edi
test ecx, ecx
jne 0x409858
jmp 0x40985f
xor edi, edi
jmp 0x4099ce
mov edi, 1
mov ecx, dword [ebp - 0x20]
test ecx, ecx
jne 0x409858
jmp 0x40985f
mov edi, 2
test ecx, ecx
jne 0x409858
jmp 0x40985f
Function at 0x409a70
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 0x409a99
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 8], 0xffffffff
mov eax, dword [edi + 4]
test al, 1
je 0x409ac1
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 - 0x18], 0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x18]
mov eax, dword [esi]
inc eax
push dword [esi + 4]
push 0x42e03a
push eax
push ecx
call fcn.00407e00
add esp, 0x10
mov ebx, dword [ebp - 0x14]
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 3
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], 0
mov word [ebp - 0x28], 0x654
mov dword [ebp - 0x1e], 0
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
xor edi, edi
test eax, 0xfffffffd
je 0x409b43
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x409b43
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 - 0x14], 0
je 0x409b57
push ebx
call fcn.0040d9b7
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e0d1
mov eax, edi
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret