joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d5c2c
Capabilities:
Get common file path
Get session user name

Disassembly:
mov eax, 0x5abe5a
call fcn.00591b5c
sub esp, 0x49c
mov eax, dword [0x6c0bc0]
xor eax, dword [ebp + 4]
mov dword [ebp - 0x70], eax
lea ecx, [ebp - 0x6c]
call fcn.004d00b6
and dword [ebp - 4], 0
push dword [ebp + 8]
lea ecx, [ebp - 0x6c]
call fcn.004d12bd
push 0x5c
push 0x2f
lea ecx, [ebp - 0x6c]
call fcn.004d157c
lea ecx, [ebp - 0x6c]
call fcn.004d02cc
test eax, eax
jne 0x4d5c94
or dword [ebp - 0x4a4], 0xffffffff
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.004d018e
mov eax, dword [ebp - 0x4a4]
jmp 0x4d5dd7
lea ecx, [ebp - 0x10c]
call fcn.004e95db
mov byte [ebp - 4], 1
or dword [ebp - 0x114], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.004d0982
movzx eax, al
test eax, eax
jne 0x4d5ccb
lea ecx, [ebp - 0x10c]
call fcn.004e9607
movzx eax, al
test eax, eax
je 0x4d5d05
push dword [ebp + 0xc]
lea eax, [ebp - 0x110]
push eax
push 0
push 0x2000000
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0x6c]
call fcn.004d0c2d
push eax
push 0xbba
call fcn.004e8201
add esp, 0x28
mov dword [ebp - 0x114], eax
jmp 0x4d5d3d
push dword [ebp + 0xc]
lea eax, [ebp - 0x110]
push eax
push 0
push 0x2000000
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0x6c]
call fcn.004d0645
push eax
push 0xbb9
call fcn.004e8330
add esp, 0x28
mov dword [ebp - 0x114], eax
cmp dword [ebp + 0xc], 0
je 0x4d5daa
cmp dword [ebp - 0x114], 0xffffffff
jne 0x4d5daa
lea eax, [ebp - 0x30c]
push eax
push 0x1f4
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x30c]
push eax
push str.CurrentDir
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
call dword [eax + 0x28]
mov dword [ebp - 0x4a0], 0x190
lea eax, [ebp - 0x4a0]
push eax
lea eax, [ebp - 0x49c]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea eax, [ebp - 0x49c]
push eax
push str.LoggedOnUser
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
call dword [eax + 0x28]
mov eax, dword [ebp - 0x114]
mov dword [ebp - 0x4a8], eax
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10c]
call fcn.004d61fd
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.004d018e
mov eax, dword [ebp - 0x4a8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x70]
xor ecx, dword [ebp + 4]
call fcn.0058cc82
leave
ret
Function at 0x4d5dee
Capabilities:
Get common file path
Get session user name

Disassembly:
mov eax, 0x5abe5a
call fcn.00591b5c
sub esp, 0x49c
mov eax, dword [0x6c0bc0]
xor eax, dword [ebp + 4]
mov dword [ebp - 0x70], eax
lea ecx, [ebp - 0x6c]
call fcn.004d00b6
and dword [ebp - 4], 0
push dword [ebp + 8]
lea ecx, [ebp - 0x6c]
call fcn.004d12bd
push 0x5c
push 0x2f
lea ecx, [ebp - 0x6c]
call fcn.004d157c
lea ecx, [ebp - 0x6c]
call fcn.004d02cc
test eax, eax
jne 0x4d5e56
or dword [ebp - 0x4a4], 0xffffffff
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.004d018e
mov eax, dword [ebp - 0x4a4]
jmp 0x4d5f99
lea ecx, [ebp - 0x10c]
call fcn.004e95db
mov byte [ebp - 4], 1
or dword [ebp - 0x114], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.004d0982
movzx eax, al
test eax, eax
jne 0x4d5e8d
lea ecx, [ebp - 0x10c]
call fcn.004e9607
movzx eax, al
test eax, eax
je 0x4d5ec7
push dword [ebp + 0xc]
lea eax, [ebp - 0x110]
push eax
push 0
push 0x80
push 4
push 0
push 1
push 0xc0000000
lea ecx, [ebp - 0x6c]
call fcn.004d0c2d
push eax
push 0xfa0
call fcn.004e8201
add esp, 0x28
mov dword [ebp - 0x114], eax
jmp 0x4d5eff
push dword [ebp + 0xc]
lea eax, [ebp - 0x110]
push eax
push 0
push 0x80
push 4
push 0
push 1
push 0xc0000000
lea ecx, [ebp - 0x6c]
call fcn.004d0645
push eax
push 0xfa1
call fcn.004e8330
add esp, 0x28
mov dword [ebp - 0x114], eax
cmp dword [ebp + 0xc], 0
je 0x4d5f6c
cmp dword [ebp - 0x114], 0xffffffff
jne 0x4d5f6c
lea eax, [ebp - 0x30c]
push eax
push 0x1f4
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x30c]
push eax
push str.CurrentDir
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
call dword [eax + 0x28]
mov dword [ebp - 0x4a0], 0x190
lea eax, [ebp - 0x4a0]
push eax
lea eax, [ebp - 0x49c]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea eax, [ebp - 0x49c]
push eax
push str.LoggedOnUser
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
call dword [eax + 0x28]
mov eax, dword [ebp - 0x114]
mov dword [ebp - 0x4a8], eax
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10c]
call fcn.004d61fd
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.004d018e
mov eax, dword [ebp - 0x4a8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x70]
xor ecx, dword [ebp + 4]
call fcn.0058cc82
leave
ret
Function at 0x4d5fb0
Capabilities:
Create directory

Disassembly:
mov eax, 0x5abcba
call fcn.00591b5c
sub esp, 0x128
mov eax, dword [0x6c0bc0]
xor eax, dword [ebp + 4]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x114]
call fcn.004d00b6
and dword [ebp - 4], 0
push dword [ebp + 8]
lea ecx, [ebp - 0x114]
call fcn.004d12bd
push 0x5c
push 0x2f
lea ecx, [ebp - 0x114]
call fcn.004d157c
lea ecx, [ebp - 0xac]
call fcn.004e95db
mov byte [ebp - 4], 1
and dword [ebp - 0xb0], 0
lea ecx, [ebp - 0xac]
call fcn.004e9607
movzx eax, al
test eax, eax
je 0x4d603b
push 0
lea ecx, [ebp - 0x114]
call fcn.004d0c2d
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 0xb0], eax
jmp 0x4d6055
push 0
lea ecx, [ebp - 0x114]
call fcn.004d0645
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 0xb0], eax
cmp dword [ebp - 0xb0], 0
jne 0x4d60a9
cmp dword [ebp + 0xc], 0
je 0x4d60a9
lea ecx, [ebp - 0x130]
call fcn.004cde9c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x130]
call fcn.004cfd54
lea ecx, [ebp - 0x130]
call fcn.0055420c
push eax
push str.errorMsg
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
call dword [eax + 0x28]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x130]
call fcn.004ce1b7
cmp dword [ebp - 0xb0], 0
setne al
mov byte [ebp - 0x131], al
and byte [ebp - 4], 0
lea ecx, [ebp - 0xac]
call fcn.004d61fd
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x114]
call fcn.004d018e
mov al, byte [ebp - 0x131]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp + 4]
call fcn.0058cc82
leave
ret

Function at 0x4d60f4
Capabilities:
Set file attributes

Disassembly:
mov eax, 0x5abe5a
call fcn.00591b5c
sub esp, 0x108
mov eax, dword [0x6c0bc0]
xor eax, dword [ebp + 4]
mov dword [ebp - 0x70], eax
lea ecx, [ebp - 0x6c]
call fcn.004d00b6
and dword [ebp - 4], 0
push dword [ebp + 8]
lea ecx, [ebp - 0x6c]
call fcn.004d12bd
push 0x5c
push 0x2f
lea ecx, [ebp - 0x6c]
call fcn.004d157c
lea ecx, [ebp - 0x10c]
call fcn.004e95db
mov byte [ebp - 4], 1
and dword [ebp - 0x110], 0
lea ecx, [ebp - 0x10c]
call fcn.004e9607
movzx eax, al
test eax, eax
je 0x4d6174
push dword [ebp + 0xc]
lea ecx, [ebp - 0x6c]
call fcn.004d0c2d
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [ebp - 0x110], eax
jmp 0x4d618c
push dword [ebp + 0xc]
lea ecx, [ebp - 0x6c]
call fcn.004d0645
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x110], 0
setne al
mov byte [ebp - 0x111], al
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10c]
call fcn.004d61fd
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.004d018e
mov al, byte [ebp - 0x111]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x70]
xor ecx, dword [ebp + 4]
call fcn.0058cc82
leave
ret
Function at 0x4d634b
Capabilities:
Get file size

Disassembly:
mov eax, 0x5abccc
call fcn.00591b5c
sub esp, 0x30
and dword [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x4d63c4
cmp dword [ebp + 0xc], 0
je 0x4d63bc
lea ecx, [ebp - 0x3c]
call fcn.004cde9c
and dword [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.004cfd54
lea ecx, [ebp - 0x3c]
call fcn.0055420c
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
call dword [eax + 0x10]
push str.Failed_to_get_file_size__64_
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
call dword [eax + 0x10]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.004ce1b7
or eax, 0xffffffff
or edx, 0xffffffff
jmp 0x4d63dd
push dword [ebp - 0x20]
push dword [ebp - 0x10]
call fcn.004e80f0
pop ecx
pop ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x4d63e9
Capabilities:
Get file size

Disassembly:
mov eax, 0x5abce9
call fcn.00591b5c
sub esp, 0x98
mov eax, dword [ebp + 0x10]
and byte [eax], 0
cmp dword [ebp + 8], 0
jne 0x4d640c
xor eax, eax
jmp 0x4d65b1
mov eax, dword [ebp + 8]
movsx eax, byte [eax]
test eax, eax
jne 0x4d641d
xor eax, eax
jmp 0x4d65b1
lea ecx, [ebp - 0x74]
call fcn.004d00b6
and dword [ebp - 4], 0
push dword [ebp + 8]
lea ecx, [ebp - 0x74]
call fcn.004d03d5
push 0x5c
push 0x2f
lea ecx, [ebp - 0x74]
call fcn.004d157c
push dword [ebp + 0xc]
lea eax, [ebp - 0x74]
push eax
call fcn.004d5a6a
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x4d6475
and dword [ebp - 0x98], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.004d018e
mov eax, dword [ebp - 0x98]
jmp 0x4d65b1
and dword [ebp - 0x78], 0
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x4d652a
cmp dword [ebp + 0xc], 0
je 0x4d64fc
lea ecx, [ebp - 0x94]
call fcn.004cde9c
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x94]
call fcn.004cfd54
lea ecx, [ebp - 0x94]
call fcn.0055420c
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
call dword [eax + 0x10]
push dword [ebp + 8]
push str.filename
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
call dword [eax + 0x28]
push str.Failed_to_get_file_size__ANSI_
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
call dword [eax + 0x10]
and byte [ebp - 4], 0
lea ecx, [ebp - 0x94]
call fcn.004ce1b7
push 0
push dword [ebp - 0x10]
call fcn.004e81eb
pop ecx
pop ecx
or dword [ebp - 0x10], 0xffffffff
and dword [ebp - 0x9c], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.004d018e
mov eax, dword [ebp - 0x9c]
jmp 0x4d65b1
push 0
push dword [ebp - 0x10]
call fcn.004e81eb
pop ecx
pop ecx
cmp dword [ebp - 0x78], 0
je 0x4d6590
cmp dword [ebp + 0xc], 0
je 0x4d6575
push str.File_too_large_for_32_bits
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
call dword [eax + 0x10]
push dword [ebp + 8]
push str.filename
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
call dword [eax + 0x28]
push str.Failed_to_get_file_size.
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
call dword [eax + 0x10]
and dword [ebp - 0xa0], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.004d018e
mov eax, dword [ebp - 0xa0]
jmp 0x4d65b1
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xa4], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.004d018e
mov eax, dword [ebp - 0xa4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x4d65bd
Capabilities:
Get file size

Disassembly:
mov eax, 0x5abce9
call fcn.00591b5c
sub esp, 0x98
mov eax, dword [ebp + 0x10]
and byte [eax], 0
cmp dword [ebp + 8], 0
jne 0x4d65e0
xor eax, eax
jmp 0x4d6789
mov eax, dword [ebp + 8]
movzx eax, word [eax]
test eax, eax
jne 0x4d65f1
xor eax, eax
jmp 0x4d6789
lea ecx, [ebp - 0x74]
call fcn.004d00b6
and dword [ebp - 4], 0
push dword [ebp + 8]
lea ecx, [ebp - 0x74]
call fcn.004d0534
push 0x5c
push 0x2f
lea ecx, [ebp - 0x74]
call fcn.004d157c
push dword [ebp + 0xc]
lea eax, [ebp - 0x74]
push eax
call fcn.004d5a6a
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x4d6649
and dword [ebp - 0x98], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.004d018e
mov eax, dword [ebp - 0x98]
jmp 0x4d6789
and dword [ebp - 0x78], 0
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x4d66fe
cmp dword [ebp + 0xc], 0
je 0x4d66d0
lea ecx, [ebp - 0x94]
call fcn.004cde9c
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x94]
call fcn.004cfd54
lea ecx, [ebp - 0x94]
call fcn.0055420c
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
call dword [eax + 0x10]
push dword [ebp + 8]
push str.filename
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
call dword [eax + 0x28]
push str.Failed_to_get_file_size__Unicode_
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
call dword [eax + 0x10]
and byte [ebp - 4], 0
lea ecx, [ebp - 0x94]
call fcn.004ce1b7
push 0
push dword [ebp - 0x10]
call fcn.004e81eb
pop ecx
pop ecx
or dword [ebp - 0x10], 0xffffffff
and dword [ebp - 0x9c], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.004d018e
mov eax, dword [ebp - 0x9c]
jmp 0x4d6789
push 0
push dword [ebp - 0x10]
call fcn.004e81eb
pop ecx
pop ecx
or dword [ebp - 0x10], 0xffffffff
cmp dword [ebp - 0x78], 0
je 0x4d6768
cmp dword [ebp + 0xc], 0
je 0x4d674d
push str.File_too_large_for_32_bits
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
call dword [eax + 0x10]
push dword [ebp + 8]
push str.filename
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
call dword [eax + 0x28]
push str.Failed_to_get_file_size
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
call dword [eax + 0x10]
and dword [ebp - 0xa0], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.004d018e
mov eax, dword [ebp - 0xa0]
jmp 0x4d6789
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xa4], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.004d018e
mov eax, dword [ebp - 0xa4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x4d7262
Capabilities:
Delete file

Disassembly:
mov eax, 0x5abd5f
call fcn.00591b5c
sub esp, 0x48
push dword [ebp + 8]
lea ecx, [ebp - 0x30]
call fcn.004cdd83
and dword [ebp - 4], 0
push 0x5c
push 0x2f
lea ecx, [ebp - 0x30]
call fcn.004ccf9f
lea ecx, [ebp - 0x30]
call fcn.0055420c
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x4d72a5
mov eax, dword [ebp - 0x34]
movsx eax, byte [eax]
test eax, eax
jne 0x4d72d3
cmp dword [ebp + 0xc], 0
je 0x4d72bb
push str.Cannot_delete_file__filename_is_null_or_empty
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
call dword [eax + 0x10]
and byte [ebp - 0x51], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004ce1b7
mov al, byte [ebp - 0x51]
jmp 0x4d73df
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x34]
call fcn.004d6a3c
pop ecx
pop ecx
movzx eax, al
test eax, eax
jne 0x4d733b
cmp dword [ebp + 0xc], 0
je 0x4d7323
push dword [ebp - 0x14]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
call dword [eax + 0x38]
push dword [ebp - 0x34]
push str.delete_filename
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
call dword [eax + 0x28]
push str.Cannot_delete_file__file_does_not_exist
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
call dword [eax + 0x14]
and byte [ebp - 0x52], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004ce1b7
mov al, byte [ebp - 0x52]
jmp 0x4d73df
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4d73cc
cmp dword [ebp + 0xc], 0
je 0x4d73b7
lea ecx, [ebp - 0x50]
call fcn.004cde9c
mov byte [ebp - 4], 1
push str.DeleteFile:
lea ecx, [ebp - 0x50]
call fcn.004cd951
lea ecx, [ebp - 0x50]
call fcn.004cfd54
push str.Cannot_delete_file
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
call dword [eax + 0x14]
push dword [ebp - 0x34]
push str.delete_filename
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
call dword [eax + 0x28]
lea ecx, [ebp - 0x50]
call fcn.0055420c
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
call dword [eax + 0x14]
and byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.004ce1b7
and byte [ebp - 0x53], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004ce1b7
mov al, byte [ebp - 0x53]
jmp 0x4d73df
mov byte [ebp - 0x54], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004ce1b7
mov al, byte [ebp - 0x54]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x4d7a1a
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x5abce9
call fcn.00591b5c
sub esp, 0x8c
cmp dword [ebp + 8], 0
jne 0x4d7a37
xor al, al
jmp 0x4d7ba8
mov eax, dword [ebp + 8]
movsx eax, byte [eax]
test eax, eax
jne 0x4d7a48
xor al, al
jmp 0x4d7ba8
lea ecx, [ebp - 0x74]
call fcn.004d00b6
and dword [ebp - 4], 0
push dword [ebp + 8]
lea ecx, [ebp - 0x74]
call fcn.004d03d5
push dword [ebp + 0x14]
lea eax, [ebp - 0x74]
push eax
push 0x33
call fcn.004d5565
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x4d7abd
cmp dword [ebp + 0x14], 0
je 0x4d7a9f
push dword [ebp + 8]
push str.ansiFilename
mov ecx, dword [ebp + 0x14]
call fcn.004e9d1c
push str.Failed_to_write_complete_file__7_
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x14]
call dword [eax + 0x10]
and byte [ebp - 0x95], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.004d018e
mov al, byte [ebp - 0x95]
jmp 0x4d7ba8
cmp dword [ebp + 0xc], 0
je 0x4d7b83
cmp dword [ebp + 0x10], 0
je 0x4d7b83
and dword [ebp - 0x78], 0
push 0
lea eax, [ebp - 0x78]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x78]
cmp eax, dword [ebp + 0x10]
je 0x4d7b83
cmp dword [ebp + 0x14], 0
je 0x4d7b5c
lea ecx, [ebp - 0x94]
call fcn.004cde9c
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x94]
call fcn.004cfd54
push dword [ebp + 8]
push str.ansiFilename2
mov ecx, dword [ebp + 0x14]
call fcn.004e9d1c
lea ecx, [ebp - 0x94]
call fcn.0055420c
push eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x14]
call dword [eax + 0x10]
push str.Failed_to_write_complete_file__1_
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x14]
call dword [eax + 0x10]
and byte [ebp - 4], 0
lea ecx, [ebp - 0x94]
call fcn.004ce1b7
push 0
push dword [ebp - 0x10]
call fcn.004e81eb
pop ecx
pop ecx
and byte [ebp - 0x96], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.004d018e
mov al, byte [ebp - 0x96]
jmp 0x4d7ba8
push 0
push dword [ebp - 0x10]
call fcn.004e81eb
pop ecx
pop ecx
mov byte [ebp - 0x97], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.004d018e
mov al, byte [ebp - 0x97]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x4d7bb4
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x5abe20
call fcn.00591b5c
sub esp, 0xec
cmp dword [ebp + 8], 0
jne 0x4d7bd1
xor al, al
jmp 0x4d7d5b
lea ecx, [ebp - 0x74]
call fcn.004d00b6
and dword [ebp - 4], 0
push dword [ebp + 8]
lea ecx, [ebp - 0x74]
call fcn.004d0534
push dword [ebp + 0x14]
lea eax, [ebp - 0x74]
push eax
push 0x34
call fcn.004d5565
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x4d7c7b
cmp dword [ebp + 0x14], 0
je 0x4d7c5d
lea ecx, [ebp - 0xd4]
call fcn.004d00b6
mov byte [ebp - 4], 1
push dword [ebp + 8]
lea ecx, [ebp - 0xd4]
call fcn.004d0534
lea ecx, [ebp - 0xd4]
call fcn.004d1049
push eax
push str.utf8Filename
mov ecx, dword [ebp + 0x14]
call fcn.004e9d1c
push str.Failed_to_write_complete_file__6_
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x14]
call dword [eax + 0x10]
and byte [ebp - 4], 0
lea ecx, [ebp - 0xd4]
call fcn.004d018e
and byte [ebp - 0xf5], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.004d018e
mov al, byte [ebp - 0xf5]
jmp 0x4d7d5b
cmp dword [ebp + 0xc], 0
je 0x4d7d36
cmp dword [ebp + 0x10], 0
je 0x4d7d36
and dword [ebp - 0xd8], 0
push 0
lea eax, [ebp - 0xd8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0xd8]
cmp eax, dword [ebp + 0x10]
je 0x4d7d36
cmp dword [ebp + 0x14], 0
je 0x4d7d0f
lea ecx, [ebp - 0xf4]
call fcn.004cde9c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xf4]
call fcn.004cfd54
lea ecx, [ebp - 0xf4]
call fcn.0055420c
push eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x14]
call dword [eax + 0x10]
push str.Failed_to_write_complete_file__3_
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x14]
call dword [eax + 0x10]
and byte [ebp - 4], 0
lea ecx, [ebp - 0xf4]
call fcn.004ce1b7
push 0
push dword [ebp - 0x10]
call fcn.004e81eb
pop ecx
pop ecx
and byte [ebp - 0xf6], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.004d018e
mov al, byte [ebp - 0xf6]
jmp 0x4d7d5b
push 0
push dword [ebp - 0x10]
call fcn.004e81eb
pop ecx
pop ecx
mov byte [ebp - 0xf7], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.004d018e
mov al, byte [ebp - 0xf7]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x4d9920
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
mov eax, dword [0x6c0bc0]
xor eax, dword [ebp + 4]
mov dword [ebp - 4], eax
mov dword [ebp - 0x1a0], ecx
mov dword [ebp - 0x19c], 0x190
lea eax, [ebp - 0x19c]
push eax
lea eax, [ebp - 0x198]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea eax, [ebp - 0x198]
push eax
push str.Username
mov ecx, dword [ebp - 0x1a0]
add ecx, 8
mov eax, dword [ebp - 0x1a0]
mov eax, dword [eax + 8]
call dword [eax + 0x28]
cmp dword [ebp + 8], 3
jne 0x4d99a3
push str.ActiveX
push str.Component
mov ecx, dword [ebp - 0x1a0]
add ecx, 8
mov eax, dword [ebp - 0x1a0]
mov eax, dword [eax + 8]
call dword [eax + 0x28]
jmp 0x4d9a3a
cmp dword [ebp + 8], 1
jne 0x4d99ca
push str..NET_1.
push str.Component
mov ecx, dword [ebp - 0x1a0]
add ecx, 8
mov eax, dword [ebp - 0x1a0]
mov eax, dword [eax + 8]
call dword [eax + 0x28]
jmp 0x4d9a3a
cmp dword [ebp + 8], 2
jne 0x4d99f1
push str..NET_2.0
push str.Component
mov ecx, dword [ebp - 0x1a0]
add ecx, 8
mov eax, dword [ebp - 0x1a0]
mov eax, dword [eax + 8]
call dword [eax + 0x28]
jmp 0x4d9a3a
cmp dword [ebp + 8], 0x108
jne 0x4d9a1b
push str..NET_2.0___x64
push str.Component
mov ecx, dword [ebp - 0x1a0]
add ecx, 8
mov eax, dword [ebp - 0x1a0]
mov eax, dword [eax + 8]
call dword [eax + 0x28]
jmp 0x4d9a3a
push str.Visual_C_7.0
push str.Component
mov ecx, dword [ebp - 0x1a0]
add ecx, 8
mov eax, dword [ebp - 0x1a0]
mov eax, dword [eax + 8]
call dword [eax + 0x28]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.0058cc82
leave
ret 4