joyce8/EMBER2024-capa huggingface dataset:
Function at 0x555b60
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
push 0x30
lea eax, [ebp - 0x30]
push 0
push eax
mov esi, ecx
mov dword [ebp - 0x34], 0
call fcn.006100a0
mov eax, dword [ebp + 0xc]
add esp, 0xc
lea ecx, [ebp - 0x23c]
lea edx, [ebp - 0x34]
push edx
mov edx, dword [esi + 4]
mov dword [ebp - 0x20], ecx
mov ecx, dword [eax + 0xc]
push ecx
push 0x1073
push edx
mov dword [ebp - 0x2c], 4
mov dword [ebp - 0x1c], 0x104
call dword [sym.imp.USER32.dll_SendMessageW]
push 1
push 0
push 0
lea eax, [ebp - 0x23c]
push eax
push 0x67ba90
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 1
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x556180
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x652e58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
mov eax, dword [ebp + 0x10]
shr eax, 0x10
mov dword [ebp - 0x10], ecx
test eax, eax
je 0x5561c9
mov ecx, dword [ebp + 0x14]
mov dword [ecx], 0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov dword [ebp + 0x14], ebx
xor edi, edi
mov dword [ebp - 4], edi
push ebx
call dword [sym.imp.USER32.dll_GetMenuItemCount]
test eax, eax
jle 0x556319
push esi
push 0x30
lea edx, [ebp - 0x40]
push 0
push edx
call fcn.006100a0
push pe_nt_image_headers32
lea eax, [ebp - 0x150]
push 0
push eax
mov dword [ebp - 0x40], 0x30
call fcn.006100a0
add esp, 0x18
lea ecx, [ebp - 0x154]
push ecx
mov dword [ebp - 0x154], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x556244
mov eax, dword [ebp - 0x150]
cmp eax, 5
jae 0x55624b
cmp eax, 4
jne 0x556244
cmp dword [ebp - 0x14c], 0x5a
jae 0x55624b
mov dword [ebp - 0x40], 0x2c
lea eax, [ebp - 0x40]
push eax
push 1
push edi
lea edx, [ebp - 0x21c]
push ebx
mov dword [ebp - 0x18], 0x64
mov dword [ebp - 0x3c], 0x3f
mov dword [ebp - 0x1c], edx
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
test dword [ebp - 0x38], 0x100
jne 0x556308
push 0x10
call fcn.00611c8b
mov esi, eax
add esp, 4
test esi, esi
je 0x556308
mov eax, dword [ebp - 0x38]
or eax, 0x100
mov dword [ebp - 0x38], eax
mov dword [esi + 4], eax
mov ecx, dword [ebp - 0x34]
mov dword [esi + 8], ecx
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x5562b0
add ecx, 0xfffffd94
jmp 0x5562b2
xor ecx, ecx
push esi
lea edx, [ebp - 0x40]
push edx
call fcn.005557e0
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005fb5ce
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x5562f7
lea ecx, [ebp - 0x21c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea edx, [ebp - 0x40]
push edx
push 1
push edi
push ebx
mov dword [ebp - 0x20], esi
call dword [sym.imp.USER32.dll_SetMenuItemInfoW]
push ebx
inc edi
call dword [sym.imp.USER32.dll_GetMenuItemCount]
cmp edi, eax
jl 0x5561e6
pop esi
mov ecx, dword [ebp - 0x10]
lea eax, [ebp + 0x10]
push eax
add ecx, 0x20
mov dword [ebp + 0x10], ebx
call fcn.00594900
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x556350
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x65fa83
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 4], edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], eax
mov dword [eax + 0xc], edi
mov dword [ebp - 4], 1
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [ebp - 4], 2
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [esi + 0x20], eax
mov dword [ebp - 4], 4
lea ecx, [esi + 0x24]
call fcn.004ebcf0
mov dword [ebp - 4], 6
mov ecx, dword [ebp + 8]
push edi
push ecx
lea ecx, [esi + 0x50]
call fcn.005b0e10
mov byte [ebp - 4], 7
lea eax, [esi + 0x26c]
mov dword [ebp + 8], eax
mov dword [eax + 0x10], edi
mov byte [ebp - 4], 8
lea ecx, [eax + 0x20]
mov dword [ebp - 0x14], ecx
mov dword [ecx], edi
mov dword [ecx + 4], edi
mov dword [ecx + 8], edi
mov byte [ebp - 4], 0xa
mov dword [eax + 0x2c], edi
mov dword [eax + 0x14], edi
mov dword [eax + 0x1c], 0xc0c0c0
mov dword [eax], 0x10
mov dword [eax + 4], 0xf
mov dword [eax + 8], 0x16
mov dword [eax + 0xc], 0x15
mov byte [ebp - 4], 0xb
mov edx, dword [0x700724]
lea eax, [esi + 0x29c]
mov dword [ebp - 0x14], eax
add eax, 4
mov dword [ebp + 8], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x700724
call eax
mov ecx, dword [ebp + 8]
add eax, 0x10
mov dword [ecx], eax
mov byte [ebp - 4], 0xe
mov dword [esi], vtable.CSearchQueriesView.1.0
mov dword [esi + 0x50], vtable.CSearchQueriesView.0
mov dword [esi + 0x2cc], edi
mov dword [esi + 0x2d0], edi
mov byte [ebp - 4], 0xf
lea eax, [esi + 0x2e8]
mov dword [esi + 0x2d4], edi
mov dword [ebp + 8], eax
mov dword [eax + 4], edi
lea ecx, [eax + 8]
mov dword [ebp - 0x14], ecx
mov dword [ecx + 0xc], edi
mov byte [ebp - 4], 0x11
mov dword [eax + 0x18], edi
mov dword [eax + 0x1c], edi
mov byte [ebp - 4], 0x12
mov edx, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [eax + 0x20], edx
mov byte [ebp - 4], 0x14
mov dword [eax], vtable.CPagedHeaderCtrl.0
mov dword [eax + 0x24], edi
mov dword [eax + 0x28], edi
mov dword [eax + 0x2c], edi
mov dword [eax + 0x30], edi
mov byte [ebp - 4], 0x15
mov byte [esi + 0x330], 1
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x556960
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x640e98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [ecx + 4]
push esi
push edi
push 0
push 0
lea esi, [ecx + 4]
push 0x1042
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
cmp edi, 0xffffffff
je 0x556a1c
mov edx, dword [0x700724]
mov eax, dword [edx + 0xc]
mov ecx, 0x700724
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x10]
push ecx
push 3
push edi
mov ecx, esi
call fcn.004a2c80
mov esi, dword [ebp - 0x10]
cmp dword [esi - 0xc], 0
je 0x5569f9
cmp dword [esi - 4], 1
jle 0x5569e5
mov edx, dword [esi - 0xc]
push edx
lea ecx, [ebp - 0x10]
call fcn.00401370
mov esi, dword [ebp - 0x10]
push 5
push 0
push 0
push esi
push 0x66f294
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 4], 0xffffffff
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x556a1c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x5570e0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x65b1e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
push 0
mov esi, ecx
mov eax, dword [esi + 4]
push 0
lea edi, [esi + 4]
push 0x1042
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x557185
push 0x66eba8
lea ecx, [ebp - 0x10]
call fcn.0040bea0
mov dword [ebp - 4], 0
mov esi, dword [esi + 0x2e4]
lea ecx, [ebp - 0x10]
push ecx
push esi
push ebx
mov ecx, edi
call fcn.004a2c80
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
je 0x55715f
push 5
push 0
push 0
push eax
push 0x66f294
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x557185
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x55b300
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66030e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor esi, esi
mov dword [ebp - 4], esi
push esi
push 0x80
push 3
push esi
push 1
push connect
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x1c], edi
push 0x1fa0
call fcn.005fb5ce
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 1
cmp edi, esi
jne 0x55b393
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x55b377
and eax, 0xffff
or eax, 0x80070000
push str.hFile
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040de50
push 0x6ba4dc
lea ecx, [ebp - 0x3c]
push ecx
call fcn.0060fb01
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x14], esi
push esi
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [ebp - 0x8c]
call fcn.00558190
mov byte [ebp - 4], 2
push 0
lea edx, [ebp - 0x20]
push edx
mov eax, 0xfd0
sub eax, esi
add eax, eax
push eax
mov ecx, dword [ebp - 0x18]
lea edx, [ecx + esi*2]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x20]
mov ebx, eax
shr ebx, 1
add ebx, esi
add dword [ebp - 0x24], eax
test eax, eax
je 0x55b46d
xor esi, esi
mov dword [ebp - 0x14], esi
lea esp, [esp]
mov edi, ebx
sub edi, esi
mov eax, dword [ebp - 0x18]
lea eax, [eax + esi*2]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp + 0xc]
push ecx
push edi
push eax
lea ecx, [ebp - 0x8c]
mov edx, dword [ebp - 0x8c]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0xffffffff
je 0x55b435
test eax, eax
je 0x55b460
add esi, eax
mov dword [ebp - 0x14], esi
cmp esi, ebx
jb 0x55b45c
xor esi, esi
mov dword [ebp - 0x14], esi
jmp 0x55b460
lea eax, [edi + edi]
cmp eax, 0xfd0
ja 0x55b42e
push eax
mov ecx, dword [ebp - 0x28]
push ecx
push 0xfd0
mov edx, dword [ebp - 0x18]
push edx
call fcn.0060fbd3
add esp, 0x10
mov esi, edi
mov dword [ebp - 0x14], esi
jmp 0x55b460
test eax, eax
jg 0x55b3f0
mov edi, dword [ebp - 0x1c]
cmp dword [ebp - 0x2c], 0
jne 0x55b3b2
mov byte [ebp - 4], 3
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x88]
call fcn.00557d30
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x55b497
push eax
call fcn.00611a0b
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x55b4c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x55e890
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84c
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetDC]
push esi
mov esi, ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x384]
push edi
push ecx
call ebx
lea edx, [ebp - 0x4c]
mov edi, eax
push edx
push edi
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
mov eax, dword [esi + 0x384]
push edi
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edx, dword [esi + 4]
lea ecx, [ebp - 0x10]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esi + 0x384]
push 0x400
lea eax, [ebp - 0x84c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [ebp - 8]
cdq
sub eax, edx
mov edx, dword [esi + 0x394]
mov edi, eax
push edx
sar edi, 1
call ebx
lea ecx, [ebp - 0x4c]
push ecx
push eax
mov dword [ebp + 0x14], eax
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
mov edx, dword [ebp + 0x14]
mov eax, dword [esi + 0x394]
push edx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edx, dword [esi + 4]
lea ecx, [ebp - 0x10]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esi + 0x394]
push 0x400
lea eax, [ebp - 0x84c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp dword [0x71476c], 0
jne 0x55ea41
mov edx, dword [esi + 0x390]
push edx
call ebx
lea ecx, [ebp - 0x4c]
push ecx
push eax
mov dword [ebp + 0x14], eax
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
mov edx, dword [ebp + 0x14]
mov eax, dword [esi + 0x390]
push edx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edx, dword [esi + 4]
lea ecx, [ebp - 0x10]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esi + 0x390]
push 0x400
lea eax, [ebp - 0x84c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
push 0x40
push 0x19
push eax
sub eax, edi
add edx, 0xffffffe7
push edx
dec eax
push eax
mov eax, dword [esi + 0x390]
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [esi + 0x388]
push ecx
call ebx
lea edx, [ebp - 0x4c]
mov ebx, eax
push edx
push ebx
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
mov eax, dword [esi + 0x388]
push ebx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edx, dword [esi + 4]
lea ecx, [ebp - 0x10]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esi + 0x388]
push 0x400
lea eax, [ebp - 0x84c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
push 0x40
push 0x17
lea edx, [eax - 1]
push edx
mov edx, dword [esi + 0x388]
add ecx, 0xffffffe8
push ecx
sub eax, edi
add eax, 0xa
push eax
push 0
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x55ebe0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
mov esi, ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [esi + 0x388]
mov edi, dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [ebp - 0x18]
push ecx
push edx
call edi
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov ebx, dword [sym.imp.USER32.dll_PtInRect]
push eax
push ecx
lea edx, [ebp - 0x18]
push edx
call ebx
test eax, eax
je 0x55ec6f
mov ecx, dword [0x716738]
push 0x80
lea eax, [ebp - 0x118]
push eax
push 0x258
push ecx
call dword [sym.imp.USER32.dll_LoadStringW]
push 1
push 0
push 0
lea edx, [ebp - 0x118]
push edx
push 0x66f294
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [ebp + 0x14]
pop edi
pop esi
mov dword [eax], 1
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [esi + 0x390]
lea ecx, [ebp - 0x18]
push ecx
push edx
call edi
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
push eax
push ecx
lea edx, [ebp - 0x18]
push edx
call ebx
test eax, eax
jne 0x55ec5b
mov ecx, dword [ebp + 0x14]
pop edi
pop esi
mov dword [ecx], eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x560f30
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x652e58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
mov eax, dword [ebp + 0x10]
shr eax, 0x10
mov dword [ebp - 0x10], ecx
test eax, eax
je 0x560f79
mov ecx, dword [ebp + 0x14]
mov dword [ecx], 0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov dword [ebp + 0x14], ebx
xor edi, edi
mov dword [ebp - 4], edi
push ebx
call dword [sym.imp.USER32.dll_GetMenuItemCount]
test eax, eax
jle 0x5610c9
push esi
push 0x30
lea edx, [ebp - 0x40]
push 0
push edx
call fcn.006100a0
push pe_nt_image_headers32
lea eax, [ebp - 0x150]
push 0
push eax
mov dword [ebp - 0x40], 0x30
call fcn.006100a0
add esp, 0x18
lea ecx, [ebp - 0x154]
push ecx
mov dword [ebp - 0x154], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x560ff4
mov eax, dword [ebp - 0x150]
cmp eax, 5
jae 0x560ffb
cmp eax, 4
jne 0x560ff4
cmp dword [ebp - 0x14c], 0x5a
jae 0x560ffb
mov dword [ebp - 0x40], 0x2c
lea eax, [ebp - 0x40]
push eax
push 1
push edi
lea edx, [ebp - 0x21c]
push ebx
mov dword [ebp - 0x18], 0x64
mov dword [ebp - 0x3c], 0x3f
mov dword [ebp - 0x1c], edx
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
test dword [ebp - 0x38], 0x100
jne 0x5610b8
push 0x10
call fcn.00611c8b
mov esi, eax
add esp, 4
test esi, esi
je 0x5610b8
mov eax, dword [ebp - 0x38]
or eax, 0x100
mov dword [ebp - 0x38], eax
mov dword [esi + 4], eax
mov ecx, dword [ebp - 0x34]
mov dword [esi + 8], ecx
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x561060
add ecx, 0xfffffd88
jmp 0x561062
xor ecx, ecx
push esi
lea edx, [ebp - 0x40]
push edx
call fcn.00597db0
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005fb5ce
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x5610a7
lea ecx, [ebp - 0x21c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea edx, [ebp - 0x40]
push edx
push 1
push edi
push ebx
mov dword [ebp - 0x20], esi
call dword [sym.imp.USER32.dll_SetMenuItemInfoW]
push ebx
inc edi
call dword [sym.imp.USER32.dll_GetMenuItemCount]
cmp edi, eax
jl 0x560f96
pop esi
mov ecx, dword [ebp - 0x10]
lea eax, [ebp + 0x10]
push eax
add ecx, 0x20
mov dword [ebp + 0x10], ebx
call fcn.00594900
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x5619d0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x660bb4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x14], esi
mov dword [esi], vtable.CSNView.2.0
mov dword [esi + 0x10], vtable.CSNView.1.0
mov dword [esi + 0x5c], vtable.CSNView.0
mov dword [ebp - 4], 7
xor ebx, ebx
xor edi, edi
cmp dword [esi + 0x378], ebx
jbe 0x561a45
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp edi, dword [esi + 0x378]
jae 0x561b84
mov eax, dword [esi + 0x374]
lea eax, [eax + edi*4]
mov eax, dword [eax]
push eax
call ebx
inc edi
cmp edi, dword [esi + 0x378]
jb 0x561a2c
xor ebx, ebx
lea ecx, [ebp - 0x10]
push ecx
call fcn.005bd6c0
add esp, 4
test eax, eax
je 0x561a6d
mov edx, dword [esi + 0x304]
mov eax, dword [ebp - 0x10]
push edx
push str.SNGrouping
push eax
call fcn.005bd420
add esp, 0xc
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 6
lea ecx, [esi + 0x374]
call fcn.00507e10
mov byte [ebp - 4], 5
lea ecx, [esi + 0x364]
call fcn.00561850
mov byte [ebp - 4], 4
lea ecx, [esi + 0x318]
call fcn.00526d30
mov byte [ebp - 4], 3
mov eax, dword [esi + 0x2e0]
cmp eax, ebx
je 0x561ac3
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp eax, ebx
je 0x561ac3
mov dword [esi + 0x2e0], ebx
mov byte [ebp - 4], 2
lea eax, [esi + 0x2a8]
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 2
add eax, 4
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 2
mov eax, dword [eax]
sub eax, 0x10
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x561afc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
lea ecx, [esi + 0x278]
call fcn.004ebda0
mov byte [ebp - 4], 0
lea ecx, [esi + 0x5c]
call fcn.005b1090
mov dword [ebp - 4], 0xa
lea edi, [esi + 0x30]
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 0xc
mov eax, dword [edi + 0x1c]
cmp eax, ebx
je 0x561b3b
push eax
call fcn.0061056f
add esp, 4
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], ebx
mov dword [edi + 0x24], ebx
mov byte [ebp - 4], 0xa
push fcn.004496b0
push 2
push 4
add edi, 8
push edi
call fcn.006124e1
or ecx, 0xffffffff
mov dword [ebp - 4], ecx
lea eax, [esi + 0x14]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], ecx
mov eax, dword [eax + 0xc]
pop edi
pop esi
cmp eax, ebx
pop ebx
je 0x561b76
push eax
call fcn.0060ec68
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004011d0
int3
Function at 0x563a30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x660f23
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor esi, esi
mov dword [ebp - 4], esi
push esi
push 0x80
push 3
push esi
push 1
push connect
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x1c], edi
push 0x1fa0
call fcn.005fb5ce
add esp, 4
mov ebx, eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 1
cmp edi, esi
jne 0x563ac5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x563aa9
and eax, 0xffff
or eax, 0x80070000
push str.hFile
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040de50
push 0x6ba4dc
lea ecx, [ebp - 0x3c]
push ecx
call fcn.0060fb01
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x14], esi
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [ebp - 0x90]
call fcn.00561970
mov byte [ebp - 4], 2
push 0
lea edx, [ebp - 0x20]
push edx
mov eax, 0x1fa0
sub eax, esi
push eax
lea ecx, [esi + ebx]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x20]
add esi, eax
mov dword [ebp - 0x28], esi
add dword [ebp - 0x24], eax
test eax, eax
je 0x563b99
xor esi, esi
mov dword [ebp - 0x14], esi
jmp 0x563b23
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x28]
sub edi, esi
add ebx, esi
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push edi
push ebx
lea ecx, [ebp - 0x90]
mov edx, dword [ebp - 0x90]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0xffffffff
je 0x563b63
test eax, eax
je 0x563b89
add esi, eax
mov dword [ebp - 0x14], esi
cmp esi, dword [ebp - 0x28]
jb 0x563b85
xor esi, esi
mov dword [ebp - 0x14], esi
jmp 0x563b89
cmp edi, 0x1fa0
ja 0x563b5c
push edi
push ebx
push 0x1fa0
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.0060fbd3
add esp, 0x10
mov esi, edi
mov dword [ebp - 0x14], esi
jmp 0x563b89
test eax, eax
jg 0x563b20
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
cmp dword [ebp - 0x2c], 0
jne 0x563ae7
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x90]
call fcn.00561870
mov dword [ebp - 4], 0
test ebx, ebx
je 0x563bbc
push ebx
call fcn.00611a0b
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x563be9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret