joyce8/EMBER2024-capa huggingface dataset:
Function at 0x479b54
Capabilities:
Extract http body

Disassembly:
push 0x18
mov eax, 0x5bceab
call fcn.00595e53
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov eax, dword [edi]
call dword [eax + 0x10]
test eax, eax
jne 0x479b8c
push 0x61b5f4
mov ecx, dword [ebp + 8]
call fcn.004015a6
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], 1
jmp 0x479cb6
mov dword [ebp - 4], 1
lea esi, [edi + 0x2c]
cmp dword [esi], ebx
jne 0x479bc6
mov edi, dword [edi + 0x28]
mov eax, dword [edi]
lea ecx, [ebp - 0x1c]
push ecx
push edi
call dword [eax + 0x48]
cmp eax, ebx
jl 0x479bc2
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push esi
push 0x61a6b8
push eax
call dword [ecx]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [esi], ebx
je 0x479c44
push 0x61b5f4
lea ecx, [ebp - 0x1c]
call fcn.004015a6
mov byte [ebp - 4], 2
mov esi, dword [esi]
mov eax, dword [esi]
lea ecx, [ebp - 0x20]
push ecx
push esi
call dword [eax + 0x24]
cmp eax, ebx
jl 0x479c23
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
lea edx, [ebp - 0x18]
push edx
push eax
call dword [ecx + 0xf0]
cmp eax, ebx
jl 0x479c0d
push dword [ebp - 0x18]
lea ecx, [ebp - 0x1c]
call fcn.0040de6b
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 2
push dword [ebp - 0x18]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
call fcn.004049a2
mov dword [ebp - 0x14], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00401752
jmp 0x479cb6
mov dword [ebp - 4], ebx
jmp 0x479ca2
push 0x61b5f4
mov ecx, dword [ebp + 8]
call fcn.004015a6
mov dword [ebp - 4], ebx
or dword [ebp - 0x14], 1
mov eax, dword [ebp + 8]
call fcn.00595ef8
ret 4
Function at 0x47a8dc
Capabilities:
Create http request

Disassembly:
push 0xc
mov eax, 0x5bce4f
call fcn.00595e20
xor edi, edi
cmp dword [esi + 0x24], edi
jne 0x47a9d5
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.wininet:_opening_wininet...
call fcn.004015a6
mov dword [ebp - 4], edi
push 8
or dword [ebp - 4], 0xffffffff
call fcn.0040b216
push 0x10000000
push edi
push edi
push edi
push str.Mozilla_4.0__compatible__MSIE_7.0__Windows_NT_5.1_
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, edi
mov dword [esi + 0x24], eax
jne 0x47a97c
inc edi
push edi
push 0xd9
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.CCoreWininet::Open
call fcn.004015a6
mov dword [ebp - 4], edi
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.wininet:_InternetOpen_failed_
call fcn.004015a6
mov byte [ebp - 4], 2
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.inetopen
call fcn.004015a6
mov byte [ebp - 4], 3
mov eax, dword [esi]
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call dword [eax + 0x18]
xor eax, eax
jmp 0x47a9d8
push 0x47b7bf
push eax
call dword [sym.imp.WININET.dll_InternetSetStatusCallback]
cmp eax, 0xffffffff
jne 0x47a9d5
push 1
push 0xe0
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.CCoreWininet::Open
call fcn.004015a6
mov dword [ebp - 4], 4
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.wininet:_InternetSetStatusCallback_failed_
call fcn.004015a6
mov byte [ebp - 4], 5
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.inetcallback
call fcn.004015a6
mov byte [ebp - 4], 6
jmp 0x47a96d
xor eax, eax
inc eax
call fcn.00595ef8
ret
Function at 0x47a9de
Capabilities:
Connect to http server

Disassembly:
push 0x10
mov eax, 0x5bcdfc
call fcn.00595e20
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [esi + 0x28], ebx
je 0x47aa34
mov eax, esi
call fcn.0047b892
push dword [esi + 0x28]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
je 0x47aa14
push 0x7d0
mov eax, esi
call fcn.0047b878
cmp ebx, ebx
mov dword [esi + 0x28], ebx
je 0x47aa34
xor ebx, ebx
inc ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401752
mov eax, ebx
call fcn.00595ef8
ret 4
push ecx
mov eax, esp
mov dword [ebp - 0x10], esp
push str.wininet:_connecting_to
push eax
lea ecx, [ebp + 8]
call fcn.004046a1
pop ecx
pop ecx
mov byte [ebp - 4], 1
push 8
mov byte [ebp - 4], bl
call fcn.0040b216
mov eax, esi
call fcn.0047b892
push esi
push ebx
push 3
push ebx
push ebx
push 0x50
push dword [ebp + 8]
push dword [esi + 0x24]
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp eax, ebx
mov dword [esi + 0x28], eax
jne 0x47aa1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x47aadf
push 1
push 0x110
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.CCoreWininet::Connect
call fcn.004015a6
mov byte [ebp - 4], 2
push ecx
mov eax, esp
mov dword [ebp - 0x14], esp
push str.wininet:_InternetConnect_failed__Server
push eax
lea ecx, [ebp + 8]
call fcn.004046a1
mov byte [ebp - 4], 3
add esp, 4
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.inetconnect
call fcn.004015a6
mov byte [ebp - 4], 4
mov eax, dword [esi]
mov byte [ebp - 4], bl
mov ecx, esi
call dword [eax + 0x18]
jmp 0x47aa1e
push 0xffffffffffffffff
mov eax, esi
call fcn.0047b878
jmp 0x47aa1b
Function at 0x47b6ce
Capabilities:
Write file on windows

Disassembly:
push 8
mov eax, 0x5b5683
call fcn.00595e20
mov eax, dword [esi + 0x44]
cmp eax, 0xffffffff
jne 0x47b736
push 1
push 0x25f
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push str.CCoreWininet::WriteOutput
call fcn.004015a6
and dword [ebp - 4], 0
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.wininet:_WriteOutput_failed_because_output_file_is_not_open_
call fcn.004015a6
mov byte [ebp - 4], 1
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.inetwriteout
call fcn.004015a6
mov byte [ebp - 4], 2
mov eax, dword [esi]
push 6
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call dword [eax + 0x10]
xor eax, eax
jmp 0x47b7a3
push 0
lea ecx, [ebp + 0xc]
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x47b7a0
push 1
push 0x264
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push str.CCoreWininet::WriteOutput
call fcn.004015a6
mov dword [ebp - 4], 3
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.wininet:_WriteFile_failed_
call fcn.004015a6
mov byte [ebp - 4], 4
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.inetwritefile
call fcn.004015a6
mov byte [ebp - 4], 5
mov eax, dword [esi]
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call dword [eax + 0x18]
jmp 0x47b732
xor eax, eax
inc eax
call fcn.00595ef8
ret 8

Function at 0x47b81f
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.0058ee10
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov eax, 0x400
mov dword [ebp - 0x28], eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x18]
add esp, 0xc
mov dword [ebp - 4], eax
lea eax, [ebp - 0x3c]
push eax
push 0
push 0
push dword [ebp + 8]
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x10], ecx
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
neg eax
sbb eax, eax
neg eax
leave
ret
Function at 0x47ba19
Capabilities:
Download url
Receive data

Disassembly:
push 0x2c
mov eax, 0x5bcc9d
call fcn.00595e20
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x1c]
push str.Downloading
push eax
lea ecx, [ebp + 8]
call fcn.004046a1
mov byte [ebp - 4], 2
push 0x623984
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040463d
add esp, 0x14
mov byte [ebp - 4], 3
lea ecx, [ebp + 0xc]
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004045e6
mov byte [ebp - 4], 4
add esp, 8
mov ecx, esp
mov dword [ebp - 0x24], esp
push 0x61e054
push eax
push ecx
call fcn.0040463d
add esp, 0xc
mov byte [ebp - 4], 5
push 4
mov byte [ebp - 4], 4
call fcn.0040b216
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
call fcn.00401752
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00401752
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1c]
call fcn.00401752
xor edi, edi
lea eax, [ebp - 0x38]
push eax
push edi
push dword [ebp + 0xc]
mov dword [esi + 0x28], edi
push dword [ebp + 8]
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [ebp - 0x38], 0x636244
mov dword [ebp - 0x30], esi
push edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x34], ebx
call sub.urlmon.dll_URLDownloadToFileA
cmp eax, edi
mov dword [ebp - 0x1c], eax
jl 0x47bb27
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push str.Download_finished_successfully.
call fcn.004015a6
mov byte [ebp - 4], 6
push 4
mov byte [ebp - 4], bl
call fcn.0040b216
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00401752
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00401752
mov eax, ebx
call fcn.00595ef8
ret 8
push ebx
push 0xac
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.CCoreUrlMon::DownloadFile
call fcn.004015a6
mov byte [ebp - 4], 7
lea eax, [ebp - 0x24]
push str.Download_failed:
push eax
lea ecx, [ebp + 8]
call fcn.004046a1
mov byte [ebp - 4], 8
push 0x61cbf8
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0040463d
mov byte [ebp - 4], 9
add esp, 0x10
mov edx, esp
lea ecx, [esi + 0x24]
mov dword [ebp - 0x14], esp
push ecx
push eax
push edx
call fcn.004045e6
mov byte [ebp - 4], 0xa
add esp, 8
mov ecx, esp
mov dword [ebp - 0x28], esp
push str.urlmondownload
call fcn.004015a6
mov byte [ebp - 4], 0xb
push dword [ebp - 0x1c]
lea ecx, [esi + 4]
mov eax, dword [ecx]
mov byte [ebp - 4], 0xd
call dword [eax + 8]
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x20]
call fcn.00401752
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x24]
call fcn.00401752
xor ebx, ebx
jmp 0x47bb05
Function at 0x4d5122
Capabilities:
Move file

Disassembly:
mov eax, 0x5abc47
call fcn.00591b5c
sub esp, 0x184
mov eax, dword [0x6c0bc0]
xor eax, dword [ebp + 4]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x10c]
call fcn.004d00b6
and dword [ebp - 4], 0
lea ecx, [ebp - 0x16c]
call fcn.004d00b6
mov byte [ebp - 4], 1
push dword [ebp + 8]
lea ecx, [ebp - 0x10c]
call fcn.004d12bd
push dword [ebp + 0xc]
lea ecx, [ebp - 0x16c]
call fcn.004d12bd
push 0x5c
push 0x2f
lea ecx, [ebp - 0x10c]
call fcn.004d157c
push 0x5c
push 0x2f
lea ecx, [ebp - 0x16c]
call fcn.004d157c
and dword [ebp - 0x170], 0
lea ecx, [ebp - 0xac]
call fcn.004e95db
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xac]
call fcn.004e9607
movzx eax, al
test eax, eax
je 0x4d51eb
lea ecx, [ebp - 0x16c]
call fcn.004d0c2d
push eax
lea ecx, [ebp - 0x10c]
call fcn.004d0c2d
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
setne al
movzx eax, al
mov dword [ebp - 0x170], eax
jmp 0x4d5217
lea ecx, [ebp - 0x16c]
call fcn.004d0645
push eax
lea ecx, [ebp - 0x10c]
call fcn.004d0645
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne al
movzx eax, al
mov dword [ebp - 0x170], eax
cmp dword [ebp - 0x170], 0
jne 0x4d52ab
cmp dword [ebp + 0x10], 0
je 0x4d526f
lea ecx, [ebp - 0x18c]
call fcn.004cde9c
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18c]
call fcn.004cfd54
lea ecx, [ebp - 0x18c]
call fcn.0055420c
push eax
push str.errorMsg
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x10]
call dword [eax + 0x28]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18c]
call fcn.004ce1b7
and byte [ebp - 0x18d], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xac]
call fcn.004d61fd
and byte [ebp - 4], 0
lea ecx, [ebp - 0x16c]
call fcn.004d018e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10c]
call fcn.004d018e
mov al, byte [ebp - 0x18d]
jmp 0x4d52e5
mov byte [ebp - 0x18e], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xac]
call fcn.004d61fd
and byte [ebp - 4], 0
lea ecx, [ebp - 0x16c]
call fcn.004d018e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10c]
call fcn.004d018e
mov al, byte [ebp - 0x18e]
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 0x4d52fc
Capabilities:
Copy file

Disassembly:
mov eax, 0x5abc72
call fcn.00591b5c
sub esp, 0x164
mov eax, dword [0x6c0bc0]
xor eax, dword [ebp + 4]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x10c]
call fcn.004d00b6
and dword [ebp - 4], 0
lea ecx, [ebp - 0x16c]
call fcn.004d00b6
mov byte [ebp - 4], 1
push dword [ebp + 8]
lea ecx, [ebp - 0x10c]
call fcn.004d12bd
push dword [ebp + 0xc]
lea ecx, [ebp - 0x16c]
call fcn.004d12bd
push 0x5c
push 0x2f
lea ecx, [ebp - 0x10c]
call fcn.004d157c
push 0x5c
push 0x2f
lea ecx, [ebp - 0x16c]
call fcn.004d157c
lea ecx, [ebp - 0xac]
call fcn.004e95db
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xac]
call fcn.004e9607
movzx eax, al
test eax, eax
je 0x4d53f9
movzx eax, byte [ebp + 0x10]
neg eax
sbb eax, eax
neg eax
push eax
lea ecx, [ebp - 0x16c]
call fcn.004d0c2d
push eax
lea ecx, [ebp - 0x10c]
call fcn.004d0c2d
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
setne al
mov byte [ebp - 0x16d], al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xac]
call fcn.004d61fd
and byte [ebp - 4], 0
lea ecx, [ebp - 0x16c]
call fcn.004d018e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10c]
call fcn.004d018e
mov al, byte [ebp - 0x16d]
jmp 0x4d5460
movzx eax, byte [ebp + 0x10]
neg eax
sbb eax, eax
neg eax
push eax
lea ecx, [ebp - 0x16c]
call fcn.004d0645
push eax
lea ecx, [ebp - 0x10c]
call fcn.004d0645
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
setne al
mov byte [ebp - 0x16e], al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xac]
call fcn.004d61fd
and byte [ebp - 4], 0
lea ecx, [ebp - 0x16c]
call fcn.004d018e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10c]
call fcn.004d018e
mov al, byte [ebp - 0x16e]
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 0x4d5565
Capabilities:
Get common file path
Get session user name

Disassembly:
mov eax, 0x5abc8f
call fcn.00591b5c
sub esp, 0x4a4
mov eax, dword [0x6c0bc0]
xor eax, dword [ebp + 4]
mov dword [ebp - 0x78], eax
lea ecx, [ebp - 0x74]
call fcn.004d00b6
and dword [ebp - 4], 0
push dword [ebp + 0xc]
lea ecx, [ebp - 0x74]
call fcn.004d12bd
push 0x5c
push 0x2f
lea ecx, [ebp - 0x74]
call fcn.004d157c
lea ecx, [ebp - 0x74]
call fcn.004d02cc
test eax, eax
jne 0x4d55cd
or dword [ebp - 0x4ac], 0xffffffff
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.004d018e
mov eax, dword [ebp - 0x4ac]
jmp 0x4d5716
lea ecx, [ebp - 0x114]
call fcn.004e95db
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x74]
call fcn.004d0982
movzx eax, al
test eax, eax
jne 0x4d55fd
lea ecx, [ebp - 0x114]
call fcn.004e9607
movzx eax, al
test eax, eax
je 0x4d5634
push dword [ebp + 0x10]
lea eax, [ebp - 0x118]
push eax
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x74]
call fcn.004d0c2d
push eax
push 0x7d0
call fcn.004e8201
add esp, 0x28
mov dword [ebp - 0x10], eax
jmp 0x4d5669
push dword [ebp + 0x10]
lea eax, [ebp - 0x118]
push eax
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x74]
call fcn.004d0645
push eax
push 0x7d1
call fcn.004e8330
add esp, 0x28
mov dword [ebp - 0x10], eax
cmp dword [ebp + 0x10], 0
je 0x4d56ec
cmp dword [ebp - 0x10], 0xffffffff
jne 0x4d56ec
lea eax, [ebp - 0x314]
push eax
push 0x1f4
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x314]
push eax
push str.CurrentDir
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x10]
call dword [eax + 0x28]
mov dword [ebp - 0x4a8], 0x190
lea eax, [ebp - 0x4a8]
push eax
lea eax, [ebp - 0x4a4]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea eax, [ebp - 0x4a4]
push eax
push str.LoggedOnUser
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x10]
call dword [eax + 0x28]
lea ecx, [ebp - 0x74]
call fcn.004d1049
push eax
push str.Filename
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x10]
call dword [eax + 0x28]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x4b0], eax
and byte [ebp - 4], 0
lea ecx, [ebp - 0x114]
call fcn.004d61fd
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.004d018e
mov eax, dword [ebp - 0x4b0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x78]
xor ecx, dword [ebp + 4]
call fcn.0058cc82
leave
ret
Function at 0x4d572d
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 0x4d5795
or dword [ebp - 0x4a4], 0xffffffff
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.004d018e
mov eax, dword [ebp - 0x4a4]
jmp 0x4d58d2
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 0x4d57cc
lea ecx, [ebp - 0x10c]
call fcn.004e9607
movzx eax, al
test eax, eax
je 0x4d5803
push dword [ebp + 0xc]
lea eax, [ebp - 0x110]
push eax
push 0
push 2
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x6c]
call fcn.004d0c2d
push eax
push 0x1e14
call fcn.004e8201
add esp, 0x28
mov dword [ebp - 0x114], eax
jmp 0x4d5838
push dword [ebp + 0xc]
lea eax, [ebp - 0x110]
push eax
push 0
push 2
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x6c]
call fcn.004d0645
push eax
push 0x1e15
call fcn.004e8330
add esp, 0x28
mov dword [ebp - 0x114], eax
cmp dword [ebp + 0xc], 0
je 0x4d58a5
cmp dword [ebp - 0x114], 0xffffffff
jne 0x4d58a5
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 0x4d592e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x5abe5a
call fcn.00591b5c
sub esp, 0x104
mov eax, dword [0x6c0bc0]
xor eax, dword [ebp + 4]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x10]
and dword [eax], 0
mov eax, dword [ebp + 0xc]
or dword [eax], 0xffffffff
mov ecx, dword [ebp + 8]
call fcn.004d02cc
test eax, eax
jne 0x4d597e
cmp dword [ebp + 0x14], 0
je 0x4d5977
push str.GetAttributes:_filename_is_empty
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x14]
call dword [eax + 0x10]
xor al, al
jmp 0x4d5a53
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
lea ecx, [ebp - 0x6c]
call fcn.004d0982
movzx eax, al
test eax, eax
jne 0x4d59d1
lea ecx, [ebp - 0x10c]
call fcn.004e9607
movzx eax, al
test eax, eax
je 0x4d59fa
lea ecx, [ebp - 0x6c]
call fcn.004d0c2d
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0xffffffff
jne 0x4d59f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jmp 0x4d5a21
lea ecx, [ebp - 0x6c]
call fcn.004d0645
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0xffffffff
jne 0x4d5a21
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp + 0xc]
xor ecx, ecx
cmp dword [eax], 0xffffffff
setne cl
mov byte [ebp - 0x10d], cl
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 - 0x10d]
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 0x4d5a6a
Capabilities:
Get common file path
Get session user name

Disassembly:
mov eax, 0x5abe5a
call fcn.00591b5c
sub esp, 0x498
mov eax, dword [0x6c0bc0]
xor eax, dword [ebp + 4]
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp + 8]
call fcn.004d02cc
test eax, eax
jne 0x4d5aaf
cmp dword [ebp + 0xc], 0
je 0x4d5aa7
push str.Cannot_open_file__filename_is_empty.
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
call dword [eax + 0x10]
or eax, 0xffffffff
jmp 0x4d5c15
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
or dword [ebp - 0x114], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.004d0982
movzx eax, al
test eax, eax
jne 0x4d5b09
lea ecx, [ebp - 0x10c]
call fcn.004e9607
movzx eax, al
test eax, eax
je 0x4d5b43
push dword [ebp + 0xc]
lea eax, [ebp - 0x110]
push eax
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocString
lea ecx, [ebp - 0x6c]
call fcn.004d0c2d
push eax
push 0xbb9
call fcn.004e8201
add esp, 0x28
mov dword [ebp - 0x114], eax
jmp 0x4d5b7b
push dword [ebp + 0xc]
lea eax, [ebp - 0x110]
push eax
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocString
lea ecx, [ebp - 0x6c]
call fcn.004d0645
push eax
push 0x1771
call fcn.004e8330
add esp, 0x28
mov dword [ebp - 0x114], eax
cmp dword [ebp + 0xc], 0
je 0x4d5be8
cmp dword [ebp - 0x114], 0xffffffff
jne 0x4d5be8
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 - 0x4a4], 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 - 0x4a4]
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