joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b8b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41b8d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00415f24
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x41b8f3
test byte [esp + 8], 2
je 0x41b8f3
call fcn.00415f97
mov dword [eax], 0xd
call fcn.00415fa0
mov dword [eax], 5
jmp 0x41b8cc
xor eax, eax
ret

Function at 0x41c340
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x43eb48
cmp edx, dword [eax]
je 0x41c362
add eax, 8
inc ecx
cmp eax, 0x43ebd8
jl 0x41c353
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x43eb48]
jne 0x41c490
mov eax, dword [0x445688]
cmp eax, 1
je 0x41c46a
test eax, eax
jne 0x41c393
cmp dword [0x43c784], 1
je 0x41c46a
cmp edx, 0xfc
je 0x41c490
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41c3ca
lea eax, [ebp - 0x1a4]
push 0x436e04
push eax
call fcn.0041b7c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00417960
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41c40d
lea eax, [ebp - 0x1a4]
push eax
call fcn.00417960
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x436e00
push edi
call fcn.0041df90
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x436de4
push eax
call fcn.0041b7c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0041b7d0
lea eax, [ebp - 0xa0]
push 0x436de0
push eax
call fcn.0041b7d0
push dword [esi + 0x43eb4c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0041b7d0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x436db8
push eax
call fcn.0041df02
add esp, 0x2c
pop edi
jmp 0x41c490
lea eax, [ebp + 8]
lea esi, [esi + 0x43eb4c]
push 0
push eax
push dword [esi]
call fcn.00417960
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x422f70
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00415c80
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x42303b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x42303b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x422fee
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x422ff9
or bh, 8
and edi, 0x8000000
je 0x423014
mov eax, dword [0x446e3c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x42303b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x423410
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x42343b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x42345f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push pe_nt_image_headers32
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x42347a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x425aaf
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x425ae7
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0042843d
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00428415
jmp 0x425af3
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x425af7
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x445080
mov ecx, edi
call fcn.004282ae
cmp dword [esi + 0x34], 0
push dword [esp + 0xc]
jne 0x425b4a
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x425b5d
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.0042843d
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.00428415
jmp 0x425b5d
mov ecx, esi
call fcn.004277a2
test eax, eax
je 0x425b5d
push edi
mov ecx, eax
call fcn.00425aaf
mov eax, dword [edi]
pop edi
pop esi
mov eax, dword [eax - 8]
ret 8

Function at 0x4270a3
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 0x4270e5
call fcn.0042c5eb
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4270e5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4270dc
xor eax, eax
jmp 0x4270ed
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004270f3
pop edi
pop esi
pop ebx
ret 4

Function at 0x42d91a
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x42d948
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42d966
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0042d880
jmp 0x42d966
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42d966
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0042d880
test edi, edi
mov eax, edi
jne 0x42d950
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4012e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4012f9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40130d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40132e
cmp esi, eax
jae 0x401307
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401320
cmp esi, eax
jae 0x401307
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x4013c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx eax, word [esp + 4]
mov ecx, dword [0x43195c]
push esi
push 0x42747c
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x4013e3
pop esi
ret 8
mov edx, dword [0x43195c]
push ebx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
jne 0x4013ff
pop ebx
xor eax, eax
pop esi
ret 8
mov eax, dword [0x43195c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4013f8
push ebp
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov ebp, dword [esp + 0x14]
mov dword [ebp], eax
jne 0x40143d
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop ebp
pop ebx
xor eax, eax
pop esi
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x401464
mov ecx, dword [ebp]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [ebp]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop ebp
pop ebx
xor eax, eax
pop esi
ret 8
push edi
mov edi, eax
mov ecx, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebp]
lea ecx, [esp + 0x14]
push ecx
push 0
push edx
mov dword [esp + 0x20], 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
pop edi
jne 0x401435
push eax
mov eax, dword [esp + 0x14]
push eax
call fcn.004010d0
mov esi, eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
add esp, 8
push eax
call dword [ecx + 8]
pop ebp
pop ebx
mov eax, esi
pop esi
ret 8
Function at 0x402cb0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push esi
xor esi, esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [0x431af0], eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], esi
push 0x7d0
call edi
lea ecx, [esp + 0x10]
push ecx
call fcn.00401d60
mov ecx, eax
call fcn.00402930
test eax, eax
jne 0x402d01
cmp esi, 9
je 0x402db6
inc esi
cmp esi, 0xa
jl 0x402cd6
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push ebx
push ebp
push 0x33
call esi
push 0xf
mov ebx, eax
call esi
push 0x20
mov edi, eax
call esi
push 0x21
mov ebp, eax
call esi
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x20]
sub edx, ecx
add edx, eax
mov eax, dword [esp + 0x18]
lea eax, [edx + eax - 0x14]
cdq
sub eax, edx
sub ecx, dword [esp + 0x10]
mov esi, eax
sub ecx, edi
sub ecx, ebx
sar esi, 1
sub esi, ebp
mov dword [esp + 0x14], ecx
call fcn.00401d60
mov ecx, eax
call fcn.004014c0
lea ebp, [eax + ebp*2]
call fcn.00401d60
mov ecx, eax
call fcn.00401500
mov ecx, dword [esp + 0x10]
add eax, edi
lea edi, [eax + ecx*2]
add edi, ebx
call fcn.00401d60
mov ecx, eax
call fcn.00401540
mov edx, dword [esp + 0x2c]
push 0
push edx
push 0
push eax
mov eax, dword [esp + 0x24]
push edi
push ebp
push eax
push esi
push 0xcf0000
push 0x431a28
push 0x431960
push 0x80080
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
test esi, esi
pop ebp
pop ebx
jne 0x402dbe
pop edi
xor eax, eax
pop esi
add esp, 0x18
ret
push 0
push esi
call fcn.00401d60
mov ecx, eax
call fcn.00401820
push 0x13
push 0
push 0
push 0
push 0
push 1
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
push 4
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push 0x3e8
push 1
push esi
call dword [sym.imp.USER32.dll_SetTimer]
pop edi
mov eax, 1
pop esi
add esp, 0x18
ret
Function at 0x405910
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4257f1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], edi
mov eax, dword [edi + 0x4c]
mov ecx, dword [eax]
lea esi, [edi + 0x48]
push eax
push ecx
lea eax, [esp + 0x18]
push eax
mov ecx, esi
mov dword [esp + 0x28], 2
call fcn.00404950
mov eax, dword [esi + 4]
push eax
call fcn.00419648
xor ebx, ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov eax, dword [edi + 0x40]
mov ecx, dword [eax]
add esp, 4
lea esi, [edi + 0x3c]
push eax
push ecx
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
mov byte [esp + 0x28], 1
call fcn.00404950
mov edx, dword [esi + 4]
push edx
call fcn.00419648
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov eax, dword [edi + 0x30]
add esp, 4
cmp eax, ebx
je 0x4059a0
push eax
call fcn.00419648
add esp, 4
mov dword [edi + 0x30], ebx
mov dword [edi + 0x34], ebx
mov dword [edi + 0x38], ebx
cmp dword [edi + 0x28], 8
jb 0x4059bb
mov eax, dword [edi + 0x14]
push eax
call fcn.00419648
add esp, 4
mov ecx, dword [esp + 0x14]
mov dword [edi + 0x24], ebx
mov dword [edi + 0x28], 7
mov word [edi + 0x14], bx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x405ab0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x425821
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
mov dword [esi + 0x28], 7
mov dword [esi + 0x24], ebp
push edi
mov dword [esp + 0xc], esi
mov word [esi + 0x14], bp
mov dword [esp + 0x18], ebp
mov dword [esi + 0x30], ebp
mov dword [esi + 0x34], ebp
mov dword [esi + 0x38], ebp
lea edi, [esi + 0x3c]
mov ecx, edi
mov byte [esp + 0x18], 1
call fcn.00403920
mov dword [edi + 4], eax
mov byte [eax + 0x11], 1
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebp
lea edi, [esi + 0x48]
mov ecx, edi
mov byte [esp + 0x18], 2
call fcn.00403920
mov ecx, dword [esp + 0x10]
mov dword [edi + 4], eax
mov byte [eax + 0x11], 1
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebp
pop edi
mov dword [esi], 0xffffffff
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4080b0
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x5c
mov eax, dword [0x4309b0]
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x58], eax
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x64]
push eax
push ecx
lea edx, [esp + 8]
push edx
mov dword [esp + 0xc], 0x67452301
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
call fcn.00407f30
mov ecx, dword [esp + 0x68]
lea eax, [esp]
push eax
push ecx
call fcn.00407ff0
mov ecx, dword [esp + 0x58]
call fcn.0041931e
add esp, 0x5c
ret 0xc

Function at 0x408140
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push edi
mov edi, dword [esp + 0x14]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push edi
call esi
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x408181
push edi
push str.act__Create_New_File_failed_:__s
push 0x30
call fcn.00412c70
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebp
ret 0xc
mov edi, dword [esp + 0x10]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push edi
call esi
mov esi, eax
cmp esi, 0xffffffff
jne 0x4081c0
push edi
push str.act__Open_Existing_File_failed_:__s
push 0x30
call fcn.00412c70
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebp
ret 0xc
push ebx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
call fcn.00419d94
add esp, 4
push 0
mov ebx, eax
lea eax, [esp + 0x1c]
push eax
push edi
push ebx
push esi
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [esp + 0x1c]
push ecx
push edi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call fcn.00419d8f
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
push ebp
call edi
push esi
call edi
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
ret 0xc
Function at 0x408270
Capabilities:
Create shortcut via ishelllink
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4259b6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
mov eax, dword [0x4309b0]
push ebx
xor ebx, ebx
mov dword [esp + 0x218], eax
mov dword [esp + 4], ebx
mov edx, dword [esp + 0x22c]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0x104
push edx
mov dword [esp + 0x234], ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
cmp eax, ebx
jne 0x4082e9
mov eax, dword [esp + 4]
cmp eax, ebx
mov dword [esp + 0x224], 0xffffffff
je 0x4082df
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 0x80004005
jmp 0x4083da
push esi
lea edx, [esp + 8]
push edx
push 0x42b0c0
push 1
push ebx
push 0x42b0d0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, ebx
jl 0x4083be
mov eax, dword [esp + 8]
cmp eax, ebx
mov dword [esp + 0xc], ebx
je 0x40832b
mov ecx, dword [eax]
lea edx, [esp + 0xc]
push edx
push 0x428364
push eax
call dword [ecx]
mov eax, dword [esp + 8]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push eax
mov byte [esp + 0x230], 1
call dword [ecx + 0x50]
mov esi, eax
cmp esi, ebx
jl 0x40835c
mov edx, dword [esp + 0x234]
mov eax, dword [esp + 8]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x1c]
mov esi, eax
cmp esi, ebx
jge 0x40838c
mov eax, dword [esp + 0xc]
cmp eax, ebx
mov byte [esp + 0x228], bl
je 0x408371
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 8]
cmp eax, ebx
mov dword [esp + 0x228], 0xffffffff
je 0x4083d7
mov edx, dword [eax]
push eax
call dword [edx + 8]
jmp 0x4083d7
mov esi, dword [esp + 0x238]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push 1
push esi
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [esp + 0xc]
cmp eax, ebx
mov byte [esp + 0x228], bl
je 0x4083be
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 8]
cmp eax, ebx
mov dword [esp + 0x228], 0xffffffff
je 0x4083d7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
pop esi
mov ecx, dword [esp + 0x21c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x218]
pop ebx
call fcn.0041931e
add esp, 0x224
ret
Function at 0x408400
Capabilities:
Create shortcut via ishelllink
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4259b6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
mov eax, dword [0x4309b0]
push ebx
xor ebx, ebx
mov dword [esp + 0x218], eax
mov dword [esp + 4], ebx
mov edx, dword [esp + 0x22c]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0x104
push edx
mov dword [esp + 0x234], ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
cmp eax, ebx
jne 0x408479
mov eax, dword [esp + 4]
cmp eax, ebx
mov dword [esp + 0x224], 0xffffffff
je 0x40846f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 0x80004005
jmp 0x40859f
push esi
lea edx, [esp + 8]
push edx
push 0x42b0c0
push 1
push ebx
push 0x42b0d0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, ebx
jl 0x408583
mov eax, dword [esp + 8]
cmp eax, ebx
mov dword [esp + 0xc], ebx
je 0x4084bb
mov ecx, dword [eax]
lea edx, [esp + 0xc]
push edx
push 0x428364
push eax
call dword [ecx]
mov eax, dword [esp + 8]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push eax
mov byte [esp + 0x230], 1
call dword [ecx + 0x50]
mov esi, eax
cmp esi, ebx
jl 0x408521
mov edx, dword [esp + 0x23c]
mov eax, dword [esp + 8]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x2c]
mov esi, eax
cmp esi, ebx
jl 0x408521
mov edx, dword [esp + 0x234]
mov eax, dword [esp + 8]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x1c]
mov esi, eax
cmp esi, ebx
jl 0x408521
mov edx, dword [esp + 0x240]
mov eax, dword [esp + 8]
mov ecx, dword [eax]
push edx
lea edx, [esp + 0x18]
push edx
push eax
call dword [ecx + 0x44]
mov esi, eax
cmp esi, ebx
jge 0x408551
mov eax, dword [esp + 0xc]
cmp eax, ebx
mov byte [esp + 0x228], bl
je 0x408536
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 8]
cmp eax, ebx
mov dword [esp + 0x228], 0xffffffff
je 0x40859c
mov edx, dword [eax]
push eax
call dword [edx + 8]
jmp 0x40859c
mov esi, dword [esp + 0x238]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push 1
push esi
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [esp + 0xc]
cmp eax, ebx
mov byte [esp + 0x228], bl
je 0x408583
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 8]
cmp eax, ebx
mov dword [esp + 0x228], 0xffffffff
je 0x40859c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
pop esi
mov ecx, dword [esp + 0x21c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x218]
pop ebx
call fcn.0041931e
add esp, 0x224
ret