joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45bcc0
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push esi
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45bda8
mov edx, 0x47bcc0
mov eax, esi
sub edx, esi
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x45bce0
xor eax, eax
movzx ecx, word [eax + str.general]
mov word [eax + 0x47bed0], cx
add eax, 2
test cx, cx
jne 0x45bcf1
push 0x47bcc0
push 0
push 0x470a60
push 0x47bed0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0x47bcc0
push 0x3f
sub eax, 1
push 0x47bf60
neg eax
push 0x46f57c
sbb eax, eax
push str.charset
add eax, 1
push 0x47bed0
mov dword [0x47bf58], eax
mov word [0x47bf60], 0
call esi
push 0x47bcc0
push 0x3f
push 0x47bfe0
push 0x46f57c
push str.TranslatorName
push 0x47bed0
mov word [0x47bfe0], 0
call esi
push 0x47bcc0
push 0xff
push 0x47c060
push 0x46f57c
push str.TranslatorURL
push 0x47bed0
mov word [0x47c060], 0
call esi
pop esi
ret

Function at 0x45ccb0
Capabilities:
Enumerate internet cache

Disassembly:
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov edi, 0xfa00
push edi
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push eax
push esi
push str.visited:
mov dword [esp + 0x20], edi
call dword [sym.imp.WININET.dll_FindFirstUrlCacheEntryW]
mov ebp, eax
test ebp, ebp
je 0x45cdcb
call fcn.00451040
cmp dword [0x47c2f0], 0
jne 0x45cdc4
mov eax, dword [esi + 4]
push 0x40
push eax
call sub.msvcrt.dll_wcschr
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x45cd64
push 0x2c
lea ecx, [esp + 0x20]
push 0
push ecx
call sub.msvcrt.dll_memset
mov edx, dword [esi + 0x20]
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x24]
mov dword [esp + 0x34], edx
mov edx, dword [esi + 0x2c]
mov dword [esp + 0x44], ecx
mov ecx, dword [esi + 0x34]
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x30]
mov dword [esp + 0x48], edx
mov edx, dword [esi + 0x14]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x3c], eax
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [esp + 0x50], edx
add esp, 0xc
lea edx, [esp + 0x18]
add ebx, 2
push edx
mov dword [esp + 0x44], ebx
call eax
mov ebx, dword [sym.imp.WININET.dll_FindNextUrlCacheEntryW]
lea ecx, [esp + 0x14]
push ecx
push esi
push ebp
mov dword [esp + 0x20], edi
call ebx
test eax, eax
jne 0x45cdb2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x45cdc4
mov edi, dword [esp + 0x14]
push esi
add edi, 0x2710
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push edi
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
add esp, 8
lea edx, [esp + 0x14]
push edx
mov esi, eax
push esi
push ebp
mov dword [esp + 0x20], edi
call ebx
test eax, eax
je 0x45cdc4
call fcn.00451040
cmp dword [0x47c2f0], 0
je 0x45ccf8
push ebp
call dword [sym.imp.WININET.dll_FindCloseUrlCache]
test esi, esi
je 0x45cdd8
push esi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 4
Function at 0x45d160
Capabilities:
Get disk information
Get file size
Read file via mapping
Write file on windows

Disassembly:
sub esp, 0x24
push ebx
mov ebx, dword [esp + 0x30]
push ebp
mov ebp, dword [esp + 0x30]
push esi
push edi
mov esi, eax
xor edi, edi
push esi
mov eax, ebx
mov word [ebp], di
call fcn.00462700
cmp eax, edi
mov dword [esp + 0x18], eax
jne 0x45d356
cmp dword [ebx + 0x414], 0x20
jne 0x45d356
movzx ecx, word [esi]
cmp cx, 0x5c
jne 0x45d1b3
cmp word [esi + 2], cx
jne 0x45d1b3
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 8
cmp word [esi + 2], 0x3a
jne 0x45d1f0
mov eax, dword [0x4708c8]
mov edx, dword [0x4708cc]
mov dword [esp + 0x20], eax
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x28], edx
mov word [esp + 0x24], cx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 4
je 0x45d1a7
cmp dword [ebx + 0x414], 0x20
jne 0x45d356
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push esi
mov eax, ebp
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
call fcn.0045cdf0
test eax, eax
je 0x45d356
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov edi, 0x8000
lea esi, [esp + 0x20]
mov dword [esp + 0x28], 0x1388
call fcn.0045e180
mov eax, dword [esp + 0x10]
push eax
push 0
push 0x40
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
mov dword [esp + 0x1c], edi
je 0x45d332
push 0
push 0
push SysReAllocString
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, dword [esp + 0x24]
push eax
push edx
push edi
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x45d329
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0x4708d0
mov esi, ebp
mov ebx, eax
call fcn.0045fd40
add esp, 4
mov eax, ebp
call fcn.00460210
push 0
push 0
push 0
push 2
mov ebp, eax
mov eax, dword [esp + 0x20]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
test edi, edi
je 0x45d30b
push ebx
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x45d300
push 0
lea ecx, [esp + 0x18]
push ecx
push ebx
push esi
push ebp
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call esi
jmp 0x45d311
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
mov edx, dword [esp + 0x10]
push edx
call esi
mov ebp, dword [esp + 0x38]
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x3c]
jmp 0x45d32f
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call esi
cmp word [ebp], 0
je 0x45d345
push ebp
mov eax, ebx
call fcn.00462700
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x45d356
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 8
Function at 0x45d630
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x77c
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x38]
call fcn.00401610
mov ecx, dword [esp + 0x790]
mov eax, str.Containers
lea esi, [esp + 0x38]
call fcn.00462e90
test eax, eax
je 0x45d7dc
xor edi, edi
push 0x1fe
lea eax, [esp + 0x58e]
push edi
push eax
mov word [esp + 0x594], di
call sub.msvcrt.dll_memset
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
add esp, 0xc
mov dword [esp + 0x30], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x34], 0x100
mov dword [esp + 0x2c], edi
mov dword [esp + 0x1c], 0x20
mov dword [esp + 0x14], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], edi
jmp 0x45d6b6
xor edi, edi
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x3c]
push edx
call fcn.004627c0
test eax, eax
je 0x45d743
push str.ContainerId
lea ebx, [esp + 0x18]
call fcn.00401740
push str.Name
mov esi, eax
call fcn.00401740
cmp esi, edi
mov ecx, eax
je 0x45d743
cmp ecx, edi
je 0x45d743
mov edi, dword [esi + 0x220]
mov esi, dword [esi + 0x224]
lea eax, [esp + 0x24]
call fcn.00461f50
test eax, eax
je 0x45d743
lea eax, [esp + 0x24]
call fcn.0045e590
test eax, eax
jne 0x45d743
push esi
push edi
push str.Container__I64d
lea eax, [esp + 0x594]
push 0xff
push eax
call sub.msvcrt.dll__snwprintf
mov eax, dword [esp + 0x7a8]
add esp, 0x14
lea ecx, [esp + 0x588]
push ecx
call fcn.0045e6c0
mov eax, dword [esp + 0x48]
mov edi, dword [esp + 0x3c]
add eax, 1
mov dword [esp + 0x48], eax
movzx edx, word [edi + 0x22]
cmp eax, edx
jl 0x45d6b4
mov eax, dword [edi + 0x14]
test eax, eax
je 0x45d7b5
mov ecx, dword [esp + 0x280]
mov dword [esp + 0x38], eax
mov edx, dword [ecx + 0x418]
mov esi, dword [edx + 0xec]
add eax, 1
mul esi
push 0
push 0
push edx
push eax
mov eax, dword [ecx]
push eax
mov ebx, ecx
call ebp
mov edx, dword [ebx]
push 0
lea ecx, [esp + 0x14]
push ecx
push esi
push edi
push edx
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [esp + 0x48], 1
jmp 0x45d6b4
mov eax, dword [esp + 0x14]
sub dword [esp + 0x48], 1
test eax, eax
je 0x45d7cb
push eax
call sub.msvcrt.dll_free
add esp, 4
mov eax, dword [esp + 0x24]
test eax, eax
je 0x45d7dc
push eax
call sub.msvcrt.dll_free
add esp, 4
lea edi, [esp + 0x38]
call fcn.00401670
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x77c
ret 8
Function at 0x45d800
Capabilities:
Delete file

Disassembly:
sub esp, 0x67c
push ebx
push ebp
push esi
mov eax, 0x20
push edi
xor edi, edi
mov dword [esp + 0x444], eax
mov dword [esp + 0x45c], eax
lea ecx, [esp + 0x38]
lea eax, [esp + 0x3c]
push ecx
lea edx, [esp + 0x46c]
mov dword [esp + 0x454], eax
mov eax, dword [esp + 0x698]
xor ebx, ebx
or esi, 0xffffffff
push edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x444], edi
mov dword [esp + 0x450], edi
mov dword [esp + 0x448], edi
mov dword [esp + 0x45c], edi
mov dword [esp + 0x468], edi
mov dword [esp + 0x460], edi
mov dword [esp + 0x40], esi
mov dword [esp + 0x67c], edi
mov dword [esp + 0x680], edi
mov dword [esp + 0x684], 0x1388
mov word [esp + 0x470], di
call fcn.0045d160
test eax, eax
je 0x45d962
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x3c]
push ecx
mov dword [esp + 0x34], 0x400
mov dword [esp + 0x38], 0x100
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x28], edi
call fcn.0045d630
mov ebx, dword [esp + 0x34]
cmp ebx, edi
mov ebp, dword [esp + 0x28]
jle 0x45d935
xor esi, esi
cmp ebx, edi
mov dword [esp + 0x14], 1
jle 0x45d932
call fcn.00451040
cmp dword [0x47c2f0], edi
jne 0x45d932
cmp esi, edi
jl 0x45d916
cmp esi, ebx
jge 0x45d916
mov edx, dword [esp + 0x24]
mov eax, dword [edx + esi*4]
lea eax, [ebp + eax*2]
jmp 0x45d918
xor eax, eax
mov edx, dword [esp + 0x690]
push eax
lea ecx, [esp + 0x3c]
push ecx
push edx
call fcn.0045d370
add esi, 1
cmp esi, ebx
jl 0x45d8f4
or esi, 0xffffffff
mov eax, dword [esp + 0x38]
cmp eax, esi
je 0x45d944
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
mov dword [esp + 0x3c], esi
call sub.msvcrt.dll_free
mov eax, dword [esp + 0x28]
add esp, 4
push eax
call sub.msvcrt.dll_free
mov ebx, dword [esp + 0x18]
add esp, 4
cmp word [esp + 0x468], di
je 0x45d982
lea ecx, [esp + 0x468]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov word [esp + 0x468], di
mov eax, dword [esp + 0x674]
cmp eax, edi
je 0x45d9a4
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x674], edi
mov dword [esp + 0x678], edi
mov eax, dword [esp + 0x38]
cmp eax, esi
je 0x45d9b3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x454]
cmp eax, edi
mov dword [esp + 0x38], esi
je 0x45d9cb
push eax
call sub.msvcrt.dll_free
add esp, 4
mov eax, dword [esp + 0x43c]
cmp eax, edi
mov dword [esp + 0x454], edi
mov dword [esp + 0x460], edi
mov dword [esp + 0x458], edi
je 0x45d9f4
push eax
call sub.msvcrt.dll_free
add esp, 4
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x67c
ret 8
Function at 0x45da80
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
xor eax, eax
push ebp
mov ebp, dword [esp + 0x18]
push edi
mov byte [esp + 0x10], 0
mov dword [esp + 0x11], eax
mov word [esp + 0x15], ax
mov byte [esp + 0x17], al
mov dword [esp + 8], eax
push 0
push 0
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x20]
push eax
push 8
push ebx
push esi
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45db1e
push 0
push 0
lea edi, [ebp + 0x80]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [esp + 0x20]
push ecx
push 8
lea edx, [esp + 0x1c]
push edx
push esi
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45db1e
push 4
lea eax, [esp + 0x14]
push str.URL
push eax
call sub.msvcrt.dll__memicmp
add esp, 0xc
test eax, eax
jne 0x45db1e
add dword [esp + 8], 1
mov ebp, edi
jmp 0x45daa1
push 4
push str.URL
push ebx
call sub.msvcrt.dll__memicmp
add esp, 0xc
test eax, eax
jne 0x45dbba
mov edi, dword [ebx + 4]
test edi, edi
mov dword [esp + 0x1c], edi
jne 0x45db4d
mov dword [esp + 0x1c], 1
mov edi, dword [esp + 0x1c]
shl edi, 7
cmp edi, 0x2000
jbe 0x45db5d
mov edi, 0x2000
push 0
push 0
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [esp + 0x10]
push ecx
push edi
push ebx
push esi
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x20]
test eax, eax
mov byte [edi + ebx], 0
mov byte [edi + ebx - 1], 0
mov byte [edi + ebx - 2], 0
je 0x45db99
mov dword [eax], edi
mov eax, dword [esp + 0x24]
test eax, eax
je 0x45dbad
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 8]
add edx, ecx
mov dword [eax], edx
pop edi
mov eax, 1
pop ebp
add esp, 0x10
ret 0xc
pop edi
xor eax, eax
pop ebp
add esp, 0x10
ret 0xc
Function at 0x45dfb0
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x464
push ebx
push ebp
push esi
xor ebp, ebp
push 0x208
lea eax, [esp + 0x5e]
push ebp
push eax
mov word [esp + 0x64], bp
call sub.msvcrt.dll_memset
add esp, 0xc
cmp edi, ebp
jne 0x45e0f7
cmp dword [0x47c2f8], ebp
jne 0x45e007
mov ebx, 0x471824
call fcn.00460340
cmp eax, ebp
mov dword [0x47c2f8], eax
je 0x45e007
push str.SHGetSpecialFolderPathW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x47c2f4], eax
cmp dword [0x47c2f4], ebp
je 0x45e040
cmp dword [0x47bbac], ebp
jne 0x45e02c
push 0x47bba8
mov dword [0x47bba8], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push ebp
push 0x22
lea ecx, [esp + 0x60]
push ecx
push ebp
call dword [0x47c2f4]
jmp 0x45e132
push 0x206
lea edx, [esp + 0x26e]
push ebp
push edx
mov word [esp + 0x274], bp
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push 0x20019
push ebp
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebp
jne 0x45e0d4
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x26c]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
push ebp
lea ecx, [esp + 0x28]
push ecx
push edx
mov dword [esp + 0x24], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x45e0c9
mov eax, dword [esp + 0xc]
cmp eax, 2
jb 0x45e0c1
shr eax, 1
mov word [esp + eax*2 + 0x268], bp
jmp 0x45e0c9
mov word [esp + 0x268], bp
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x45e0e0
movzx ecx, word [esp + eax + 0x268]
mov word [esp + eax + 0x58], cx
add eax, 2
cmp cx, bp
jne 0x45e0e0
jmp 0x45e132
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x45e100
sub eax, edx
sar eax, 1
cmp eax, 0x104
jl 0x45e11b
mov eax, 0x103
lea esi, [eax + eax]
push esi
lea ecx, [esp + 0x5c]
push edi
push ecx
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov word [esp + esi + 0x58], bp
mov ecx, dword [esp + 0x474]
lea edx, [esp + 0x58]
push edx
call fcn.0045dec0
pop esi
pop ebp
pop ebx
add esp, 0x464
ret 4

Function at 0x45e820
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, dword [esi]
cmp eax, 0xffffffff
push edi
jne 0x45e847
lea eax, [esi + 0x404]
push eax
lea ecx, [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
xor edx, edx
cmp eax, 0xffffffff
setne dl
mov dword [esi], eax
mov edi, edx
jmp 0x45e86f
lea ecx, [esi + 0x404]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edi, eax
test edi, edi
jne 0x45e873
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x45e86f
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esi], 0xffffffff
test edi, edi
je 0x45e893
lea edx, [esi + 0x430]
push 0x1ff
lea eax, [esi + 0x654]
push edx
lea ecx, [esi + 0xa54]
call fcn.00460d00
add esp, 8
mov eax, edi
pop edi
ret
Function at 0x45f680
Capabilities:
Create process on windows

Disassembly:
push 5
push 0x46f57c
push 0x46f57c
push eax
push 0x470714
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edx, 0x20
cmp edx, eax
sbb eax, eax
neg eax
ret

Function at 0x45f9f0
Capabilities:
Get common file path

Disassembly:
cmp word [0x47c748], 0
jne 0x45fa0f
push 0x104
push 0x47c748
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [0x47c954], eax
mov edx, dword [esp + 4]
mov eax, 0x47c748
sub edx, eax
lea ebx, [ebx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x45fa20
mov eax, dword [0x47c954]
ret

Function at 0x45fa40
Capabilities:
Get common file path

Disassembly:
cmp word [0x47c538], 0
jne 0x45fa5f
push 0x104
push 0x47c538
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov dword [0x47c744], eax
mov edx, dword [esp + 4]
mov eax, 0x47c538
sub edx, eax
lea ebx, [ebx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x45fa70
mov eax, dword [0x47c744]
ret

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

Disassembly:
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret

Function at 0x45fd40
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
lea eax, [esp]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x45fd69
push 0x104
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov edx, dword [esp + 0x20c]
push esi
push 0
push edx
lea eax, [esp + 0xc]
push eax
mov word [esi], 0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov eax, esi
add esp, 0x208
ret

Function at 0x45fea0
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
xor edi, edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
test ebp, ebp
je 0x45ff0a
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45feb7
push ebx
sub eax, edx
sar eax, 1
push esi
lea ebx, [eax + eax + 2]
push ebx
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x45ff08
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
push ebp
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
mov edi, eax
neg edi
sbb edi, edi
neg edi
pop esi
pop ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, edi
pop edi
pop ebp
ret
Function at 0x4610a0
Capabilities:
Get file size
Read file on windows
Write clipboard data

Disassembly:
sub esp, 8
push ebx
mov dword [esp + 4], 0
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [esp + 0x10]
push 0
push 0
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x46116c
push ebp
push esi
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea ecx, [esi + 2]
push ecx
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x461149
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0
lea edx, [esp + 0x18]
push edx
push esi
mov ebp, eax
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x461149
shr esi, 1
push edi
mov word [ebp + esi*2], 0
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [esp + 4]
pop ebx
add esp, 8
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [esp + 4]
pop ebx
add esp, 8
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 4], eax
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [esp + 4]
pop ebx
add esp, 8
ret

Function at 0x461ac0
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
mov esi, eax
mov eax, dword [esi + 0x418]
mov ecx, dword [esi]
push edi
mov edi, dword [eax + 0xec]
mov eax, dword [esp + 0x14]
add eax, 1
mul edi
push 0
push 0
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov eax, dword [esp + 0x10]
mov esi, dword [esi]
push 0
lea edx, [esp + 0x18]
push edx
push edi
push eax
push esi
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
pop edi
pop esi
pop ecx
ret 8
Function at 0x461bd0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x20
mov eax, dword [esp + 0x24]
push ebx
push ebp
xor ebp, ebp
push esi
mov esi, 1
cmp word [eax + 0x22], si
mov dword [esp + 0x28], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov word [esp + 0x24], bp
mov word [esp + 0x26], bp
mov dword [esp + 0x10], esi
jbe 0x461c7f
mov ecx, dword [esp + 0x30]
push ecx
lea ebx, [esp + 0x1c]
mov ecx, esi
mov edx, edi
call fcn.004619a0
test eax, eax
je 0x461c6c
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ebx, dword [eax + edx - 4]
mov ecx, dword [edi + 0x418]
mov esi, dword [ecx + 0xec]
lea eax, [ebx + 1]
mul esi
push ebp
push ebp
push edx
mov edx, dword [edi]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov eax, dword [edi]
push ebp
lea ecx, [esp + 0x18]
push ecx
push esi
mov esi, dword [esp + 0x40]
push esi
push eax
mov dword [esp + 0x28], ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x461c68
cmp word [esi + 0x22], bp
ja 0x461c8a
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x30]
movzx eax, word [edx + 0x22]
add esi, 1
cmp esi, eax
mov dword [esp + 0x10], esi
jb 0x461c05
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x20
ret 8
Function at 0x4624d0
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x418]
mov eax, dword [eax + 0xec]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [edi + 0x418]
mov ebp, dword [esp + 0x1c]
mov ebx, dword [ecx + 0xec]
mov esi, eax
lea eax, [ebp + 1]
mul ebx
add esp, 4
push 0
push 0
push edx
mov edx, dword [edi]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov eax, dword [edi]
push 0
lea ecx, [esp + 0x1c]
push ecx
push ebx
push esi
push eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4625af
cmp byte [esi + 0x24], 1
mov ebx, dword [esp + 0x1c]
jne 0x462563
push ebx
push esi
call fcn.00461bd0
test eax, eax
je 0x462563
push ebx
push eax
mov ecx, edi
call fcn.004624d0
push esi
mov edi, eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
test byte [esi + 0x24], 4
jne 0x462593
mov edx, dword [edi + 0x418]
mov eax, dword [edx + 0xec]
push eax
push esi
push ebx
call sub.msvcrt.dll_memcpy
add esp, 0xc
push esi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
push ebx
push esi
call fcn.00461bd0
push esi
mov edi, eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
test esi, esi
je 0x4625bc
push esi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8