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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bc8a8
push 0x10030e04
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
je 0x1000899d
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, edi
mov dword [ebp - 0x1c], esi
cmp byte [edi], 0x5c
jne 0x100088ec
lea eax, [edi + 1]
cmp byte [eax], 0x5c
jne 0x100088ec
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x100088c7
cmp al, 0x5c
je 0x100088c7
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
jmp 0x100088af
cmp byte [esi], 0
je 0x100088d0
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x100088e5
cmp al, 0x5c
je 0x100088e5
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
jmp 0x100088cd
cmp byte [esi], 0
je 0x1000890b
jmp 0x10008907
lea eax, [edi + 1]
cmp byte [eax], 0x3a
jne 0x1000890b
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x1000890b
cmp al, 0x5c
jne 0x1000890b
inc esi
mov dword [ebp - 0x1c], esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov al, byte [esi]
test al, al
je 0x10008961
cmp al, 0x5c
jne 0x10008953
mov byte [esi], 0
push edi
call ebx
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
jne 0x10008946
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x10008950
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10008950
push edi
jmp 0x10008994
and eax, 0x10
cmp al, 0x10
je 0x10008950
push edi
jmp 0x10008994
mov byte [esi], 0x5c
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x10008911
mov dword [ebp - 4], 0xffffffff
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100090f0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
sub esp, 0x464
push ebx
push ebp
push esi
mov esi, dword [esp + 0x474]
mov dword [esp + 0x20], ecx
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x168]
push esi
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov cl, byte [eax + esi - 1]
mov edi, 0x100ff5b4
cmp cl, 0x5c
jne 0x1000912f
mov edi, 0x10130544
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
mov al, 0x2a
mov byte [esp + 0x1c], al
mov byte [esp + 0x1e], al
push edi
lea eax, [esp + 0x1c]
push esi
lea ecx, [esp + 0x170]
mov bl, 0x73
push eax
push ecx
mov byte [esp + 0x28], 0x25
mov byte [esp + 0x29], bl
mov byte [esp + 0x2a], 0x25
mov byte [esp + 0x2b], bl
mov byte [esp + 0x2d], 0x2e
mov byte [esp + 0x2f], 0
call ebp
add esp, 0x10
lea edx, [esp + 0x28]
lea eax, [esp + 0x168]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x20], eax
jne 0x1000919c
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x464
ret 4
mov byte [esp + 0x11], bl
mov byte [esp + 0x13], bl
mov byte [esp + 0x15], bl
mov byte [esp + 0x10], 0x25
mov byte [esp + 0x12], 0x25
mov byte [esp + 0x14], 0x25
mov byte [esp + 0x16], 0
mov bl, 1
cmp byte [esp + 0x54], 0x2e
je 0x1000923a
test byte [esp + 0x28], 0x10
je 0x100091f8
lea ecx, [esp + 0x54]
lea edx, [esp + 0x10]
push ecx
push edi
push esi
lea eax, [esp + 0x37c]
push edx
push eax
call ebp
add esp, 0x14
lea ecx, [esp + 0x370]
push ecx
mov ecx, dword [esp + 0x28]
call fcn.100090f0
jmp 0x1000923a
lea edx, [esp + 0x54]
lea eax, [esp + 0x10]
push edx
push edi
push esi
lea ecx, [esp + 0x278]
push eax
push ecx
call ebp
mov al, byte [esp + 0x3c]
add esp, 0x14
test bl, al
je 0x1000922c
lea edx, [esp + 0x26c]
push 0x80
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x26c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x100091be
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
test eax, eax
pop ebp
pop ebx
setne al
add esp, 0x464
ret 4
Function at 0x10009280
Capabilities:
Get file size

Disassembly:
sub esp, 8
push ebx
mov ebx, ecx
push ebp
push esi
lea edx, [ebx + 0x130]
push edi
mov ebp, dword [esp + 0x1c]
mov ecx, 0x41
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x14], ebx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x128]
cmp eax, 0xffffffff
je 0x100092d1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebx + 0x128], eax
jne 0x10009301
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 4
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebp
mov esi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
add ebp, 0xa
push ebp
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, ebp
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov byte [ebx], 0x69
mov eax, dword [esp + 0x10]
mov dword [ebx + 5], esi
mov esi, dword [esp + 0x1c]
push esi
mov dword [ebx + 1], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, eax
lea edi, [ebx + 9]
inc ecx
push ebp
mov edx, ecx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
call fcn.10012e90
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4

Function at 0x10009390
Capabilities:
Read file on windows

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
mov ebx, ecx
cmp dword [edi], 0xffffffff
jne 0x100093af
cmp dword [edi + 4], 0xffffffff
jne 0x100093af
call fcn.10009450
pop edi
xor eax, eax
pop ebx
ret 4
mov eax, dword [edi + 4]
mov ecx, dword [ebx + 0x128]
push esi
push 0
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x19000
push 0x40
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
lea ecx, [esp + 0x10]
push 0
push ecx
mov byte [esi], 0x6a
mov edx, dword [edi]
mov dword [esi + 1], edx
mov eax, dword [edi + 4]
mov dword [esi + 5], eax
mov eax, dword [ebx + 0x128]
lea edx, [esi + 9]
push 0x18ff7
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x1000942b
add eax, 9
mov ecx, ebx
push eax
push esi
call fcn.10012e90
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop esi
pop edi
pop ebx
ret 4
mov ecx, ebx
call fcn.10009450
mov edi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop esi
pop edi
pop ebx
ret 4
Function at 0x10009bd0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [esp + 0x20]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, ecx
mov eax, dword [edi]
mov edx, dword [edi + 4]
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x12c]
push 0
push ecx
push edx
push eax
call ebx
mov edx, dword [esp + 0x24]
mov eax, dword [esi + 0x12c]
lea ecx, [esp + 0xc]
push 0
add edx, 0xfffffff8
push ecx
add edi, 8
push edx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esi + 0x12c]
lea ecx, [esp + 0x20]
push 1
push ecx
push 0
push edx
mov dword [esp + 0x30], 0
call ebx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x10]
mov dword [esp + 0x11], ecx
push 9
push edx
mov ecx, esi
mov byte [esp + 0x18], 0x70
mov dword [esp + 0x1d], eax
call fcn.10012e90
pop edi
pop esi
pop ebx
add esp, 0x10
ret 8

Function at 0x10009cd0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push esi
mov esi, ecx
push edi
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x48]
lea edx, [esp + 8]
push edx
mov dword [esp + 0xc], 0x3c
mov dword [esp + 0x10], 0x40
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], str.WinRAR
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x10009d3c
mov eax, dword [esp + 0x40]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x72
mov ecx, esi
call fcn.100094e0
pop edi
pop esi
add esp, 0x3c
ret 4

Function at 0x1000a4b0
Capabilities:
Get common file path
Get disk information

Disassembly:
sub esp, 0x120
xor eax, eax
lea ecx, [esp + 0x1c]
mov dword [esp + 5], eax
push 0x104
mov word [esp + 0xd], ax
push ecx
mov byte [esp + 0xc], 0
mov byte [esp + 0x13], al
mov dword [esp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x1000a4e7
mov byte [esp + 0x1c], 0x43
mov dl, byte [esp + 0x1c]
push esi
push 0
push 0
push 0
lea eax, [esp + 0x10]
push 0
push eax
push 0
lea ecx, [esp + 0x20]
push 0
push ecx
mov byte [esp + 0x28], dl
mov byte [esp + 0x29], 0x3a
mov byte [esp + 0x2a], 0x5c
mov byte [esp + 0x2b], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
lea edx, [esp + 4]
push edx
call fcn.1000a420
mov dword [esp + 0x14], eax
lea eax, [esp + 8]
push eax
call fcn.1000a420
lea ecx, [esp + 0xc]
push ecx
call fcn.1000a420
add esp, 0xc
mov word [esp + 0x16], ax
xor esi, esi
lea edx, [esp + 4]
push edx
call fcn.1000a420
add esp, 4
mov byte [esp + esi + 0x18], al
inc esi
cmp esi, 8
jl 0x1000a547
mov ecx, dword [esp + 0x16]
mov eax, dword [esp + 0x1a]
mov edx, dword [esp + 0x10]
and ecx, 0xffff
push eax
mov eax, dword [esp + 0x12c]
push ecx
push edx
push str._08lX_04lX_lu
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
pop esi
add esp, 0x120
ret
Function at 0x1000aa70
Capabilities:
Set registry value

Disassembly:
sub esp, 0x408
push esi
push edi
push str.DwmEnableComposition
push str.Dwmapi.dll
call fcn.1001d6c0
mov esi, eax
add esp, 8
test esi, esi
je 0x1000ab1d
mov edi, dword [esp + 0x414]
xor eax, eax
test edi, edi
push str.SoftwareMicrosoftWindowsDWM
lea ecx, [esp + 0x14]
sete al
push 0x100ff678
push ecx
mov dword [esp + 0x18], eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea edx, [esp + 8]
lea eax, [esp + 0x10]
push edx
push 2
push 0
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000ab1d
mov edx, dword [esp + 8]
lea ecx, [esp + 0xc]
push 4
push ecx
push 4
push eax
push str.SuppressDisableCompositionUI
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x1000ab0f
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 0x408
ret 4
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call esi
pop edi
pop esi
add esp, 0x408
ret 4
Function at 0x1000ab30
Capabilities:
Copy file
Create directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x450
push ebx
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x35d]
mov byte [esp + 0x35c], 0
rep stosd dword es:[edi], eax
mov ebx, dword [esp + 0x464]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x35c]
push ebx
push eax
call ebp
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x35c]
push 0x100ff6b4
push ecx
call esi
mov edx, dword [esp + 0x468]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x1000aba7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1000aceb
lea eax, [esp + 0x21c]
lea ecx, [esp + 0x35c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x1000aceb
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x119]
mov byte [esp + 0x118], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x118]
push ebx
push edx
stosb byte es:[edi], al
call ebp
lea eax, [esp + 0x118]
push 0x100ff5b4
push eax
call esi
lea ecx, [esp + 0x248]
lea edx, [esp + 0x118]
push ecx
push edx
call esi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x468]
lea ecx, [esp + 0x14]
push eax
push ecx
call ebp
lea edx, [esp + 0x14]
push 0x100ff5b4
push edx
call esi
lea eax, [esp + 0x248]
lea ecx, [esp + 0x14]
push eax
push ecx
call esi
test byte [esp + 0x21c], 0x10
je 0x1000acbb
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
lea edx, [esp + 0x248]
push 0x100ff604
push edx
call edi
test eax, eax
je 0x1000acbb
lea eax, [esp + 0x248]
push 0x100ff600
push eax
call edi
test eax, eax
je 0x1000acbb
lea ecx, [esp + 0x14]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x1000aca4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1000acd0
lea edx, [esp + 0x14]
lea eax, [esp + 0x118]
push edx
push eax
call fcn.1000ab30
add esp, 8
jmp 0x1000acd0
lea ecx, [esp + 0x14]
push 0
lea edx, [esp + 0x11c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x21c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1000abca
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x450
ret
Function at 0x1000b8e0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
sub esp, 0x12c
push ebx
push esi
push 0
push 0xf
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [esp + 0xc]
push eax
push esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], 0x128
call sub.KERNEL32.dll_Process32First
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1000b98c
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, dword [esp + 0x140]
lea eax, [esp + 0x38]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x1000b951
test cl, cl
je 0x1000b94d
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x1000b951
add eax, 2
add esi, 2
test cl, cl
jne 0x1000b92d
xor eax, eax
jmp 0x1000b956
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1000b973
mov eax, dword [esp + 0x1c]
push eax
push 0
push 1
call edi
mov esi, eax
test esi, esi
je 0x1000b973
push 9
push esi
call ebp
push esi
call ebx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push edx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x1000b922
mov esi, dword [esp + 0x10]
pop edi
pop ebp
push esi
call ebx
pop esi
pop ebx
add esp, 0x12c
ret
Function at 0x1000c230
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1000c298
push ebx
push esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov esi, dword [esp + 0x10]
push esi
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x1000c290
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, esi
mov esi, dword [esp + 0x10]
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
pop ebx
ret 8

Function at 0x1000c2a0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 8
push esi
mov dword [esp + 8], ecx
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1000c332
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
mov dword [esp + 4], esi
jne 0x1000c2d1
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
add esp, 8
ret
push ebx
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov ebx, eax
push esi
inc ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
mov esi, eax
call sub.MFC42.DLL_operatornew
lea ecx, [ebx - 1]
mov ebp, eax
mov eax, ecx
add esp, 4
lea edi, [ebp + 1]
mov byte [ebp], 0xe
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x14]
push ebx
push ebp
call fcn.10012e90
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret
Function at 0x1000ca70
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub esp, 0x30
push ebx
mov ebx, dword [esp + 0x38]
push esi
mov esi, ecx
test ebx, ebx
je 0x1000cc1b
mov eax, dword [esi + 0x78]
test eax, eax
je 0x1000cc1b
push ebp
push edi
call fcn.1000d290
mov al, byte [esi + 0x14]
lea ecx, [esp + 0x44]
push 1
push ecx
mov ecx, esi
mov dword [esi + 0x7c], 0
mov byte [esp + 0x4c], al
call fcn.1000d0b0
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetCursorPos]
fild dword [esi + 0x20]
push 0
fstp dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fdivr dword [esp + 0x18]
fild dword [esp + 0x1c]
fmul st(1)
fadd dword [0x100bc8c4]
call sub.MSVCRT.dll__ftol
fild dword [esp + 0x20]
mov dword [esp + 0x1c], eax
fmul st(1)
fadd dword [0x100bc8c4]
call sub.MSVCRT.dll__ftol
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c]
push 8
push eax
mov ecx, esi
fstp st(0)
call fcn.1000d0b0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], 0x14
push ecx
call dword [sym.imp.USER32.dll_GetCursorInfo]
test eax, eax
je 0x1000cb5b
cmp dword [esp + 0x30], 1
jne 0x1000cb5b
mov ecx, dword [esp + 0x34]
xor edi, edi
lea eax, [esi + 0x1ac]
cmp ecx, dword [eax]
je 0x1000cb48
inc edi
add eax, 4
cmp edi, 0x10
jl 0x1000cb3b
push ecx
call dword [sym.imp.USER32.dll_DestroyCursor]
cmp edi, 0x10
jne 0x1000cb57
or edi, 0xffffffff
mov eax, edi
jmp 0x1000cb5e
or eax, 0xffffffff
lea edx, [esp + 0x13]
push 1
push edx
mov ecx, esi
mov byte [esp + 0x1b], al
call fcn.1000d0b0
mov eax, dword [esi + 0x48]
mov ecx, dword [esi + 0x50]
lea edx, [esp + 0x24]
mov dword [esp + 0x24], eax
push edx
push 0x1000c920
push 0
mov dword [esp + 0x34], ecx
call fcn.1000c8c0
mov al, byte [esp + 0x50]
add esp, 0xc
cmp al, 1
jne 0x1000cba5
push 1
mov ecx, esi
call fcn.1000cc30
jmp 0x1000cbd1
cmp al, 2
jne 0x1000cbd1
mov eax, dword [esi + 0x64]
mov edx, dword [esi + 0x7c]
mov ebp, dword [esi + 0x78]
mov ecx, dword [eax + 0x14]
mov eax, dword [esi + 0x5c]
add edx, ebp
push ecx
push edx
push eax
lea ecx, [esi + 0x84]
call fcn.100305c0
test eax, eax
mov dword [ebx], eax
jbe 0x1000cbd1
add dword [esi + 0x7c], eax
mov ecx, dword [esi + 0x7c]
mov ebp, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov dword [ebx], ecx
lea edi, [esi + 0x40]
lea ebx, [esi + 0x38]
push edi
call ebp
mov ecx, dword [edi]
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
sub ecx, eax
mov eax, dword [edi + 4]
sbb eax, edx
mov edx, dword [esi + 0x34]
cmp eax, edx
jg 0x1000cc0b
jl 0x1000cc01
cmp ecx, dword [esi + 0x30]
jae 0x1000cc0b
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1000cbe2
push ebx
call ebp
mov eax, dword [esi + 0x78]
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x30
ret 4
pop esi
xor eax, eax
pop ebx
add esp, 0x30
ret 4
Function at 0x1000d2c0
Capabilities:
Encode data using xor
Get common file path
Get file size
Write file on windows

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
or ecx, 0xffffffff
mov edi, 0x100ff5b4
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x18]
and ecx, 3
push 0x80
rep movsb byte es:[edi], byte [esi]
mov edi, 0x101315b8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 4
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x20]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, str..key
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 2
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x28]
and ecx, 3
push 0x40000000
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
push 0
push ebp
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x3200000
jae 0x1000d3a2
push 2
push 0
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [esp + 0x11c]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
push esi
call sub.MFC42.DLL_operatornew
add esp, 4
mov edi, eax
test esi, esi
jle 0x1000d3d1
mov ecx, ebx
sub ecx, edi
mov dl, byte [ecx + eax]
xor dl, 0x62
mov byte [eax], dl
inc eax
dec esi
jne 0x1000d3c5
lea eax, [esp + 0x10]
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret