joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c1d4f
Capabilities:
Copy file

Disassembly:
push 0x10
mov eax, 0x532cec
call fcn.004f22ff
mov esi, ecx
cmp dword [esi + 0x18], 0xffffffff
je 0x4c1e5a
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi + 0xc]
push eax
lea eax, [esi + 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00472220
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
call fcn.004c25b7
add esp, 0x10
test eax, eax
je 0x4c1e4f
call fcn.00437474
push eax
lea ecx, [ebp - 0x18]
call fcn.0043a4ef
mov byte [ebp - 4], 1
call fcn.00437474
push eax
lea ecx, [ebp - 0x14]
call fcn.0043a4ef
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 2
push eax
call fcn.004c2423
pop ecx
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.0043c2e8
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], 2
lea ecx, [ecx - 0x10]
call fcn.00436fdb
push dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push eax
call fcn.004c2699
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.0043c2e8
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], 2
lea ecx, [ecx - 0x10]
call fcn.00436fdb
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00472220
add esp, 0xc
push 0
push dword [eax]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00436fdb
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00436fdb
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00436fdb
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00436fdb
or dword [esi + 0x18], 0xffffffff
call fcn.004f22cd
ret

Function at 0x4c1e64
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 4
mov eax, 0x532d0f
call fcn.004f22ff
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.0043c206
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4c1ee1
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4c1ee1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4c1ee1
lea eax, [ebp - 0x10]
push eax
call fcn.004c2703
mov eax, dword [ebp - 0x10]
pop ecx
cmp dword [eax - 0xc], esi
je 0x4c1ee4
push eax
call fcn.004c1e64
pop ecx
test eax, eax
je 0x4c1ee4
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4c1ee1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4c1ee4
xor esi, esi
inc esi
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00436fdb
mov eax, esi
call fcn.004f22cd
ret
Function at 0x4c2042
Capabilities:
Delete file
Move file

Disassembly:
push 8
mov eax, 0x532d6d
call fcn.004f22ff
mov edi, ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
xor ebx, ebx
call fcn.0043c206
push dword [ebp + 8]
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.004c1fd8
test eax, eax
jne 0x4c217d
push ebx
push dword [ebp + 8]
call fcn.004f5ecf
pop ecx
pop ecx
test eax, eax
jne 0x4c2180
call fcn.00437474
push eax
lea ecx, [ebp - 0x10]
call fcn.0043a4ef
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push 0x53dd98
push eax
call fcn.0043ab29
mov esi, dword [ebp - 0x10]
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
push dword [ebp + 8]
call fcn.004f6fa5
pop ecx
pop ecx
test eax, eax
je 0x4c20f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x55da5c
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0045922d
add esp, 0xc
mov byte [ebp - 4], 2
jmp 0x4c212a
lea ecx, [esi - 0x10]
call fcn.00436fdb
jmp 0x4c2180
push 4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push dword [ebp + 8]
mov ecx, edi
call fcn.004c1fd8
test eax, eax
jne 0x4c2175
push 0x55da5c
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0045922d
add esp, 0xc
mov byte [ebp - 4], 3
push dword [eax]
mov ecx, edi
call fcn.004c1fd8
mov ecx, dword [ebp - 0x14]
mov edi, eax
mov byte [ebp - 4], 1
lea ecx, [ecx - 0x10]
call fcn.00436fdb
test edi, edi
je 0x4c20ec
push 0x55da5c
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0045922d
add esp, 0xc
push 5
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00436fdb
lea ecx, [esi - 0x10]
call fcn.00436fdb
xor ebx, ebx
inc ebx
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00436fdb
mov eax, ebx
call fcn.004f22cd
ret 4

Function at 0x4c2423
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x583d10]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x210], 0
mov eax, dword [0x5ae810]
push ebx
mov ebx, 0x5ae80c
push esi
mov esi, dword [ebp + 8]
test al, 1
jne 0x4c2470
or eax, 1
mov dword [0x5ae810], eax
call fcn.00437474
push eax
mov ecx, ebx
call fcn.0043a4ef
push 0x538172
call fcn.004f161b
pop ecx
mov ecx, dword [0x5ae80c]
cmp dword [ecx - 0xc], 0
je 0x4c2482
add ecx, 0xfffffff0
push ecx
jmp 0x4c24db
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4c24d2
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0043a8c3
pop ecx
push eax
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.0043a84a
push ebx
call fcn.004c2659
mov edi, str.drivers_
push edi
call fcn.0043a8c3
pop ecx
pop ecx
push eax
push edi
mov ecx, ebx
call fcn.004516f5
pop edi
mov eax, dword [0x5ae80c]
add eax, 0xfffffff0
push eax
call fcn.0043c35e
add eax, 0x10
pop ecx
mov ecx, dword [ebp - 4]
mov dword [esi], eax
xor ecx, ebp
mov eax, esi
pop esi
pop ebx
call fcn.004f225b
mov esp, ebp
pop ebp
ret
Function at 0x4c2b28
Capabilities:
Delete file
Move file

Disassembly:
push 0xc
mov eax, 0x532f03
call fcn.004f22ff
mov edi, ecx
mov dword [ebp - 0x14], edi
xor ebx, ebx
call fcn.00437474
push eax
lea ecx, [ebp - 0x10]
call fcn.0043a4ef
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.0043a8c3
pop ecx
push eax
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.0043a84a
mov eax, dword [edi]
lea ecx, [ebp - 0x10]
push dword [eax - 0xc]
push eax
call fcn.004516f5
mov esi, dword [ebp - 0x10]
mov ecx, edi
push esi
call fcn.004c1ef7
test eax, eax
jne 0x4c2c6e
push ebx
push esi
call fcn.004f5ecf
pop ecx
pop ecx
test eax, eax
jne 0x4c2d33
call fcn.00437474
push eax
lea ecx, [ebp + 8]
call fcn.0043a4ef
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push esi
lea eax, [ebp + 8]
push 0x53dd98
push eax
call fcn.0043ab29
mov edi, dword [ebp + 8]
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
push esi
call fcn.004f6fa5
pop ecx
pop ecx
test eax, eax
je 0x4c2bec
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4c2c03
lea ecx, [edi - 0x10]
call fcn.00436fdb
xor ebx, ebx
jmp 0x4c2d33
push 4
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [ebp - 0x14]
push esi
call fcn.004c1ef7
test eax, eax
jne 0x4c2c60
push 0x55da5c
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0045922d
mov ecx, dword [ebp - 0x14]
add esp, 0xc
push dword [eax]
call fcn.004c1ef7
mov ecx, dword [ebp - 0x18]
mov ebx, eax
lea ecx, [ecx - 0x10]
call fcn.00436fdb
test ebx, ebx
je 0x4c2bdd
push 0x55da5c
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0045922d
add esp, 0xc
push 5
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00436fdb
xor ebx, ebx
lea ecx, [edi - 0x10]
mov byte [ebp - 4], bl
call fcn.00436fdb
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
call fcn.004c25b7
pop ecx
test eax, eax
je 0x4c2d30
call fcn.00437474
push eax
lea ecx, [ebp - 0x14]
call fcn.0043a4ef
mov byte [ebp - 4], 2
call fcn.00437474
push eax
lea ecx, [ebp + 8]
call fcn.0043a4ef
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 3
push eax
call fcn.004c2423
pop ecx
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 4
call fcn.0043c2e8
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 3
lea ecx, [ecx - 0x10]
call fcn.00436fdb
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.004c2699
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.0043c2e8
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 3
lea ecx, [ecx - 0x10]
call fcn.00436fdb
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00472220
add esp, 0xc
mov ecx, edi
push dword [eax]
call fcn.004c1ef7
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00436fdb
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00436fdb
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00436fdb
xor ebx, ebx
inc ebx
lea ecx, [esi - 0x10]
call fcn.00436fdb
mov eax, ebx
call fcn.004f22cd
ret 4
Function at 0x4c2d45
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], esi
jmp 0x4c2d61
add ebx, dword [ebp - 4]
sub edi, dword [ebp - 4]
je 0x4c2d77
push esi
lea eax, [ebp - 4]
push eax
push edi
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4c2d59
jmp 0x4c2d7a
xor esi, esi
inc esi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c349c
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
pop ebp
ret

Function at 0x4c3d83
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
call fcn.00447bc2
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4c3e30
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0x200000
ja 0x4c3e2f
mov ecx, dword [ebp + 0xc]
lea eax, [edi + 1]
push eax
mov dword [ebp - 4], ebx
mov dword [ebp + 8], edi
call fcn.0043ad26
mov edx, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
mov eax, edi
push ebx
lea ecx, [ebp - 4]
push ecx
push eax
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4c3e2f
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x4c3e2f
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
sub eax, ecx
add edx, ecx
mov dword [ebp + 8], eax
mov dword [ebp - 8], edx
test eax, eax
jne 0x4c3de4
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
push 0xffffffffffffffff
mov byte [eax + edi], bl
call fcn.00470cb0
test esi, esi
je 0x4c3e2c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
inc ebx
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4c4091
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
and dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
jne 0x4c40aa
mov eax, dword [ebp - 4]
jmp 0x4c4184
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
shr ecx, 3
xor eax, 0xffffffff
test ecx, ecx
je 0x4c415f
push ebp
mov ebp, ecx
xor edx, edx
xor ecx, ecx
nop
mov ebx, dword [esi]
add esi, 4
mov dl, bl
mov cl, bh
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x53df80]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x53df80]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x53df80]
mov cl, bh
xor eax, edi
mov ebx, dword [esi]
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x53df80]
add esi, 4
xor eax, edi
mov dl, bl
mov cl, bh
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x53df80]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x53df80]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x53df80]
mov cl, bh
xor eax, edi
xor cl, al
shr eax, 8
xor eax, dword [ecx*4 + 0x53df80]
dec ebp
jne 0x4c40c9
pop ebp
mov ecx, dword [ebp + 0x10]
xor edx, edx
and ecx, 7
je 0x4c417b
mov dl, byte [esi]
inc esi
xor dl, al
shr eax, 8
xor eax, dword [edx*4 + 0x53df80]
dec ecx
jne 0x4c4169
xor eax, 0xffffffff
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c7467
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x583d10]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
xor ebx, ebx
push 0x206
mov word [ebp - 0x20c], ax
mov edi, ecx
lea eax, [ebp - 0x20a]
push ebx
push eax
call fcn.004f2e30
add esp, 0xc
lea eax, [ebp - 0x20c]
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x53ed9c
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004f8638
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi + 0x68], eax
test eax, eax
je 0x4c75ca
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WinHttpOpen
push eax
call esi
push str.WinHttpConnect
push dword [edi + 0x68]
mov dword [edi + 4], eax
call esi
push str.WinHttpOpenRequest
push dword [edi + 0x68]
mov dword [edi + 8], eax
call esi
push str.WinHttpAddRequestHeaders
push dword [edi + 0x68]
mov dword [edi + 0xc], eax
call esi
push str.WinHttpSendRequest
push dword [edi + 0x68]
mov dword [edi + 0x10], eax
call esi
push str.WinHttpReceiveResponse
push dword [edi + 0x68]
mov dword [edi + 0x14], eax
call esi
push str.WinHttpQueryHeaders
push dword [edi + 0x68]
mov dword [edi + 0x18], eax
call esi
push str.WinHttpReadData
push dword [edi + 0x68]
mov dword [edi + 0x1c], eax
call esi
push str.WinHttpCloseHandle
push dword [edi + 0x68]
mov dword [edi + 0x20], eax
call esi
push str.WinHttpCrackUrl
push dword [edi + 0x68]
mov dword [edi + 0x24], eax
call esi
push str.WinHttpSetOption
push dword [edi + 0x68]
mov dword [edi + 0x28], eax
call esi
push str.WinHttpQueryDataAvailable
push dword [edi + 0x68]
mov dword [edi + 0x2c], eax
call esi
push str.WinHttpSetTimeouts
push dword [edi + 0x68]
mov dword [edi + 0x34], eax
call esi
mov dword [edi + 0x30], eax
cmp dword [edi + 4], ebx
je 0x4c75c8
cmp dword [edi + 0x10], ebx
je 0x4c75c8
cmp dword [edi + 0x24], ebx
je 0x4c75c8
cmp dword [edi + 8], ebx
je 0x4c75c8
cmp dword [edi + 0xc], ebx
je 0x4c75c8
cmp dword [edi + 0x1c], ebx
je 0x4c75c8
cmp dword [edi + 0x20], ebx
je 0x4c75c8
cmp dword [edi + 0x18], ebx
je 0x4c75c8
cmp dword [edi + 0x14], ebx
je 0x4c75c8
cmp dword [edi + 0x28], ebx
je 0x4c75c8
cmp dword [edi + 0x2c], ebx
je 0x4c75c8
test eax, eax
je 0x4c75c8
inc ebx
mov dword [edi], ebx
mov eax, dword [edi]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f225b
mov esp, ebp
pop ebp
ret
Function at 0x4c75dd
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x583d10]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
xor ebx, ebx
push 0x206
mov word [ebp - 0x20c], ax
mov edi, ecx
lea eax, [ebp - 0x20a]
push ebx
push eax
call fcn.004f2e30
add esp, 0xc
lea eax, [ebp - 0x20c]
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x53ee0c
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004f8638
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi + 0x6c], eax
test eax, eax
je 0x4c771e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x53ee28
push eax
call esi
push 0x53ee38
push dword [edi + 0x6c]
mov dword [edi + 0x3c], eax
call esi
push 0x53ee4c
push dword [edi + 0x6c]
mov dword [edi + 0x40], eax
call esi
push str.HttpAddRequestHeadersW
push dword [edi + 0x6c]
mov dword [edi + 0x44], eax
call esi
push 0x53ee78
push dword [edi + 0x6c]
mov dword [edi + 0x48], eax
call esi
push str.HttpQueryInfoW
push dword [edi + 0x6c]
mov dword [edi + 0x4c], eax
call esi
push 0x53ee9c
push dword [edi + 0x6c]
mov dword [edi + 0x50], eax
call esi
push 0x53eeb0
push dword [edi + 0x6c]
mov dword [edi + 0x54], eax
call esi
push str.InternetCrackUrlW
push dword [edi + 0x6c]
mov dword [edi + 0x58], eax
call esi
push 0x53eed8
push dword [edi + 0x6c]
mov dword [edi + 0x5c], eax
call esi
push str.InternetQueryDataAvailable
push dword [edi + 0x6c]
mov dword [edi + 0x60], eax
call esi
mov dword [edi + 0x64], eax
cmp dword [edi + 0x3c], ebx
je 0x4c771b
cmp dword [edi + 0x40], ebx
je 0x4c771b
cmp dword [edi + 0x44], ebx
je 0x4c771b
cmp dword [edi + 0x48], ebx
je 0x4c771b
cmp dword [edi + 0x4c], ebx
je 0x4c771b
cmp dword [edi + 0x50], ebx
je 0x4c771b
cmp dword [edi + 0x54], ebx
je 0x4c771b
cmp dword [edi + 0x58], ebx
je 0x4c771b
cmp dword [edi + 0x5c], ebx
je 0x4c771b
cmp dword [edi + 0x60], ebx
je 0x4c771b
inc ebx
mov dword [edi + 0x38], ebx
mov eax, dword [edi + 0x38]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f225b
mov esp, ebp
pop ebp
ret
Function at 0x4c7ba4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x583d10]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x210], esi
lea edx, [edi + 2]
mov ax, word [edi]
add edi, 2
cmp ax, si
jne 0x4c7bcd
sub edi, edx
lea eax, [ebp - 0x218]
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0x214]
sar edi, 1
cmp edx, edi
mov dword [ebp - 0x218], edx
mov dword [ebp - 0x214], edi
cmovae eax, esi
push dword [eax]
push ecx
push ebx
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
je 0x4c7c11
xor eax, eax
jmp 0x4c7cc6
xor ecx, ecx
lea eax, [ebp - 0x20c]
push ecx
push dword [ebp + 0x14]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4c7c0a
push 0x55af84
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.0043d234
lea esi, [ebp - 0x20c]
xor edx, edx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, dx
jne 0x4c7c4a
sub esi, ecx
mov ecx, ebx
sar esi, 1
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x210]
jne 0x4c7c5e
sub ecx, edx
sar ecx, 1
mov edx, ecx
sub edx, edi
lea eax, [edx + esi]
mov dword [ebp - 0x210], eax
lea eax, [ecx + esi]
cmp eax, edi
jbe 0x4c7c0a
lea eax, [esi + 1]
add eax, edx
cmp eax, dword [ebp + 0xc]
jae 0x4c7c0a
lea eax, [edx + edx]
add esi, esi
push eax
lea eax, [ebx + edi*2]
push eax
lea eax, [esi + ebx]
push eax
call fcn.004f1700
push esi
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.004f27e0
mov eax, dword [ebp - 0x210]
xor ecx, ecx
add esp, 0x18
mov word [ebx + eax*2], cx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f225b
mov esp, ebp
pop ebp
ret

Function at 0x4ccf85
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 8
mov eax, 0x533b35
call fcn.004f22ff
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
call fcn.0043c206
push dword [ebp + 8]
xor edi, edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], edi
call fcn.0043c206
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
push eax
mov byte [ebp - 4], bl
call fcn.004cfddf
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4cd021
push edi
push dword [ebp - 0x10]
call fcn.004cfb20
pop ecx
pop ecx
test eax, eax
jne 0x4cd021
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4cd021
lea eax, [ebp - 0x14]
push eax
call fcn.004cfe5d
mov eax, dword [ebp - 0x14]
pop ecx
cmp dword [eax - 0xc], edi
je 0x4cd01f
push eax
call fcn.004ccf85
pop ecx
test eax, eax
je 0x4cd01f
push edi
push dword [ebp - 0x10]
call fcn.004cfb20
pop ecx
pop ecx
test eax, eax
jne 0x4cd021
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4cd021
mov ebx, edi
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00436fdb
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00436fdb
mov eax, ebx
call fcn.004f22cd
ret
Function at 0x4cd2e9
Capabilities:
Create shortcut via ishelllink

Disassembly:
push 0xc
mov eax, 0x533b7b
call fcn.004f22ff
xor ebx, ebx
mov esi, 0x5aea00
push str.CreateShellLink_start...
push esi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
call fcn.004de360
pop ecx
pop ecx
lea eax, [ebp - 0x10]
push eax
push 0x54562c
push 1
push ebx
push 0x54570c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
test edi, edi
jns 0x4cd343
push edi
push str.CoCreateInstance__0x_x
push esi
call fcn.004de360
mov esi, dword [ebp + 0xc]
add esp, 0xc
jmp 0x4cd430
mov eax, dword [ebp - 0x10]
push dword [ebp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x4cd365
cmp word [edx], bx
je 0x4cd365
mov eax, dword [ebp - 0x10]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x4cd37b
cmp word [esi], bx
je 0x4cd37b
mov eax, dword [ebp - 0x10]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x10]
push 5
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
test esi, esi
je 0x4cd3c2
call fcn.004cfbcc
test eax, eax
je 0x4cd3c2
push dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
call fcn.004ccadf
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], ebx
test eax, eax
je 0x4cd3b4
push esi
push eax
call fcn.00425ff0
mov eax, dword [ebp - 0x18]
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
test eax, eax
je 0x4cd3c2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x14]
push edx
push 0x54566c
push eax
mov ecx, dword [eax]
call dword [ecx]
mov esi, dword [ebp + 0xc]
test eax, eax
js 0x4cd420
push dword [ebp + 0x10]
mov ebx, 0x5aea00
push esi
push dword [ebp + 8]
push 0x53fcac
push ebx
call fcn.004de360
mov eax, dword [ebp - 0x14]
add esp, 0x14
mov ecx, dword [eax]
push 1
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x18]
mov edi, eax
test edi, edi
jns 0x4cd417
push edi
push str.Save__0x_x
push ebx
call fcn.004de360
add esp, 0xc
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
xor ebx, ebx
test edi, edi
setns bl
push dword [ebp + 0x10]
push esi
push dword [ebp + 8]
push ebx
push str.CreateShellLink_return:_d__file:_ws__cmd:_ws__link:_ws
push 0x5aea00
call fcn.004de360
add esp, 0x18
mov eax, ebx
call fcn.004f22cd
ret