joyce8/EMBER2024-capa huggingface dataset:
Function at 0x480558
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x480709
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x10]
mov edx, 0x1b
mov al, 0x2d
call fcn.00448074
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, 0x480720
call fcn.00447cd8
mov eax, ebx
call fcn.00433450
mov edi, eax
dec edi
test edi, edi
jl 0x480610
inc edi
xor esi, esi
mov edx, esi
mov eax, ebx
call fcn.00433424
mov edx, dword [0x450508]
call fcn.00447014
test al, al
je 0x48060c
push dword [ebp - 0xc]
mov edx, esi
mov eax, ebx
call fcn.00433424
lea edx, [ebp - 0x14]
call fcn.00486b08
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
mov edx, 3
mov al, 0x20
call fcn.00448074
push dword [ebp - 0x18]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00447d4c
inc esi
dec edi
jne 0x4805be
mov al, byte [0x480724]
push eax
lea eax, [ebp - 0x1c]
push eax
xor ecx, ecx
mov edx, 0x480730
mov eax, dword [ebp - 0xc]
call fcn.0043ac54
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
call fcn.00447a6c
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0xb
lea edx, [ebp - 0x70]
mov eax, ebx
call fcn.00486b08
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0xb
mov eax, 0x480720
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
lea edx, [ebp - 0x74]
mov eax, dword [ebx + 0x2f0]
call fcn.00486b08
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
mov eax, 0x480720
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
mov eax, 0x480720
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x6c]
mov ecx, 9
mov eax, 0x48073c
call fcn.00437c9c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x480710
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.004479f8
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004479f8
lea eax, [ebp - 0x14]
call fcn.004479d4
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.004479f8
ret
Function at 0x484648
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x82a334], 0
je 0x484797
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x4d4bd0]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x484797
mov eax, dword [0x82a338]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x82a334]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x484766
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x82a334]
call fcn.0042af3c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x48475e
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x48475e
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x48475e
mov eax, dword [ebp - 0x14]
call fcn.0048d2ac
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x48475e
push ebp
call fcn.00484604
pop ecx
test al, al
jne 0x48475e
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x48471a
mov eax, dword [ebp - 0x14]
call fcn.0048be40
dec eax
jle 0x48475e
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbd
call fcn.00447084
cmp byte [ebp - 1], 0
je 0x48475e
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.USER32.DLL_PtInRect
test eax, eax
je 0x48475e
mov edx, dword [ebp - 0x14]
mov eax, dword [0x82a338]
call fcn.00483dcc
inc edi
dec ebx
jne 0x4846ad
mov eax, dword [0x82a338]
cmp dword [eax + 8], 0
jle 0x48477e
mov eax, dword [0x82a338]
call fcn.00483e5c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x484797
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0048446c
pop ecx
test al, al
jne 0x484797
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x487d88
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x487dd4
mov eax, esi
call fcn.00470d7c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x487dd4
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x487dd4
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x487f13
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x487e14
cmp eax, 0x108
ja 0x487e14
mov eax, esi
call fcn.00470d7c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x487f0a
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xec]
test al, al
jne 0x487f13
jmp 0x487f0a
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x487ef3
cmp eax, 0x20a
ja 0x487ef3
test byte [esi + 0x50], 0x80
jne 0x487e46
sub eax, 0x203
je 0x487e43
sub eax, 3
je 0x487e43
sub eax, 3
jne 0x487e46
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x487e5a
dec eax
je 0x487e6f
dec eax
je 0x487e8c
dec eax
je 0x487e6f
jmp 0x487e93
mov ecx, ebx
mov eax, dword [0x4d4bd0]
mov eax, dword [eax]
mov edx, esi
call fcn.0047a760
jmp 0x487f0a
cmp byte [esi + 0x5d], 1
jne 0x487e85
mov eax, esi
mov si, 0xffed
call fcn.00447084
jmp 0x487f13
or word [esi + 0x54], 1
jmp 0x487f0a
and word [esi + 0x54], 0xfffe
jmp 0x487f0a
mov eax, dword [0x82a2f0]
cmp byte [eax + 0x20], 0
je 0x487f0a
mov eax, dword [0x82a2f0]
cmp dword [eax + 0x1c], 0
je 0x487f0a
mov eax, dword [ebx]
mov edx, dword [0x82a2f0]
cmp eax, dword [edx + 0x1c]
jne 0x487f0a
lea eax, [ebp - 0x114]
push eax
call sub.USER32.DLL_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.00470cc0
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.00447084
jmp 0x487f13
cmp eax, 0xb00b
jne 0x487f0a
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.004866a8
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48b4dc
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x48b4f8
cmp dword [esi + 4], 0
je 0x48b525
test byte [ebx + 0x55], 1
jne 0x48b517
mov eax, ebx
call fcn.0048a134
test eax, eax
jne 0x48b517
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x48b635
mov edx, esi
mov eax, ebx
call fcn.0048affc
jmp 0x48b635
push 0
call sub.USER32.DLL_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.GDI32.DLL_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.USER32.DLL_ReleaseDC
push 0
call sub.GDI32.DLL_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x48b62e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0048d2ac
push eax
call sub.USER32.DLL_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.00487cbc
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0048b4dc
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.GDI32.DLL_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0048d2ac
push eax
call sub.USER32.DLL_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48b635
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.GDI32.DLL_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x491b14
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4d4a04]
cmp byte [eax + 0xc], 0
je 0x491c81
push 0x8000
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x491c7a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x82a344], 0
jne 0x491b68
push 0x491c88
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
push 0x491c90
push ebx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x82a344], eax
cmp dword [0x4d04c4], 0
jne 0x491c63
push 0x491ca0
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [0x4d04c4], eax
cmp dword [0x4d04c4], 0
je 0x491c63
push 0x491cac
mov eax, dword [0x4d04c4]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x82a348], eax
push 0x491cbc
mov eax, dword [0x4d04c4]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x82a34c], eax
push 0x491cd0
mov eax, dword [0x4d04c4]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x82a350], eax
push 0x491ce8
mov eax, dword [0x4d04c4]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x82a354], eax
push 0x491d00
mov eax, dword [0x4d04c4]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x82a358], eax
push 0x491d14
mov eax, dword [0x4d04c4]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x82a35c], eax
push 0x491d2c
mov eax, dword [0x4d04c4]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x82a360], eax
push 0x491d44
mov eax, dword [0x4d04c4]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x82a364], eax
push 0x491d60
mov eax, dword [0x4d04c4]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x82a368], eax
push 0x491d6c
mov eax, dword [0x4d04c4]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x82a36c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x491c81
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret
Function at 0x496028
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x496100
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x82a380], 0
jne 0x4960e4
lea eax, [ebp - 4]
mov edx, 0x496118
call fcn.00447a6c
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00447e84
mov esi, eax
push esi
call sub.VERSION.DLL_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x4960e4
mov eax, ebx
call fcn.00445f68
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4960dd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
push esi
call sub.VERSION.DLL_GetFileVersionInfoA
test eax, eax
je 0x4960c7
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x496128
mov eax, dword [ebp - 0xc]
push eax
call sub.VERSION.DLL_VerQueryValueA
test eax, eax
je 0x4960c7
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x82a380], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4960e4
mov eax, dword [ebp - 0xc]
call fcn.00445f88
ret
mov ebx, dword [0x82a380]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x496107
lea eax, [ebp - 4]
call fcn.004479d4
ret

Function at 0x4a2c70
Capabilities:
Set global application hook

Disassembly:
cmp dword [0x82a3a4], 0
jne 0x4a2c93
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, 0x4a2be4
push eax
push 3
call sub.USER32.DLL_SetWindowsHookExA
mov dword [0x82a3a4], eax
ret

Function at 0x4a4a3c
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
push 1
call sub.USER32.DLL_GetClipboardData
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4a4aae
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
je 0x4a4a82
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalLock
mov edx, eax
mov eax, ebx
call fcn.00447bc4
jmp 0x4a4a89
mov eax, ebx
call fcn.004479d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a4ab5
cmp dword [ebp - 8], 0
je 0x4a4aa5
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalUnlock
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
Function at 0x4a4abc
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor edx, edx
push ebp
push 0x4a4b5e
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
call sub.USER32.DLL_EnumClipboardFormats
mov ebx, eax
test bx, bx
je 0x4a4b31
mov edx, ebx
mov eax, dword [0x464ce0]
call fcn.0046949c
test al, al
je 0x4a4b21
movzx eax, bx
push eax
call sub.USER32.DLL_GetClipboardData
mov esi, eax
push 9
call sub.USER32.DLL_GetClipboardData
push eax
mov ecx, esi
mov edx, ebx
mov eax, edi
call fcn.004693ac
call fcn.004476e0
jmp 0x4a4b65
movzx eax, bx
push eax
call sub.USER32.DLL_EnumClipboardFormats
mov ebx, eax
test bx, bx
jne 0x4a4aec
mov ecx, dword [0x4d4d9c]
mov dl, 1
mov eax, dword [0x435c44]
call fcn.00439ae8
call fcn.00447634
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a4b65
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x4a4b6c
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x4a4bc4
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
call sub.USER32.DLL_GetClipboardData
mov ebx, eax
push 9
call sub.USER32.DLL_GetClipboardData
mov esi, eax
push esi
mov ecx, ebx
mov dx, 2
mov eax, edi
mov ebx, dword [eax]
call dword [ebx + 0x5c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a4bcb
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x4a4bd4
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor edx, edx
push ebp
push 0x4a4c29
push dword fs:[edx]
mov dword fs:[edx], esp
push 3
call sub.USER32.DLL_GetClipboardData
mov ebx, eax
push 9
call sub.USER32.DLL_GetClipboardData
push eax
mov ecx, ebx
mov dx, 3
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x5c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a4c30
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
Function at 0x4a4ca0
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x4a4d15
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004a4978
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
call fcn.00469470
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.USER32.DLL_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x4a4cff
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.USER32.DLL_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a4d1c
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x4a4d24
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x4a4d99
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004a4978
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x60]
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.USER32.DLL_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x4a4d83
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.USER32.DLL_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a4da0
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4a74ec
call fcn.004a8ad8
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x4a7508
test bl, 1
je 0x4a7508
call fcn.004ac8d4
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x4a76ec
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.004a8674
test byte [ebp + 0xd], 0xc0
jne 0x4a7710
mov eax, dword [0x4d14f4]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x4a771d
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x4a774a
je 0x4a775c
sub ecx, 0x100
je 0x4a776a
sub ecx, 0x100
je 0x4a7771
sub ecx, 0x100
je 0x4a7763
jmp 0x4a7778
sub ecx, 0x600
je 0x4a7771
sub ecx, 0x100
je 0x4a775c
jmp 0x4a7778
mov edi, 1
jmp 0x4a777d
mov edi, 2
jmp 0x4a777d
mov edi, 4
jmp 0x4a777d
mov edi, 5
jmp 0x4a777d
mov edi, 3
test byte [ebp + 0xd], 1
je 0x4a77a4
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x4d0f6c]
test al, 0x80
je 0x4a779d
mov ebx, 0x80
jmp 0x4a77b6
mov ebx, 1
jmp 0x4a77b6
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4a77b6
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x4a77c8
je 0x4a77d1
dec eax
je 0x4a77da
jmp 0x4a77e3
mov dword [ebp - 4], SysStringLen
jmp 0x4a77f2
mov dword [ebp - 4], 0x40000000
jmp 0x4a77f2
mov dword [ebp - 4], 0xc0000000
jmp 0x4a77f2
push 1
call fcn.004a8a6c
pop ecx
mov ebx, eax
jmp 0x4a78e2
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x4a780e
sub eax, 0x10
je 0x4a7815
sub eax, 0x10
je 0x4a781e
sub eax, 0x10
je 0x4a7827
jmp 0x4a7827
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x4a782e
mov dword [ebp - 8], 1
jmp 0x4a782e
mov dword [ebp - 8], 2
jmp 0x4a782e
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x4a789b
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x4a7890
test byte [ebp + 0xd], 1
je 0x4a788b
mov ebx, 0x50
jmp 0x4a7890
mov ebx, 2
push ebx
call fcn.004a8a6c
pop ecx
mov ebx, eax
jmp 0x4a78e2
mov edi, esi
push edi
call fcn.004a7650
pop ecx
test eax, eax
je 0x4a78af
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x4a78bb
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.004a8794
add esp, 8
mov ebx, eax
inc eax
jne 0x4a78e2
push 4
call fcn.004a8a6c
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.004a86a8
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a7d80
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryA
dec eax
je 0x4a7d9c
call fcn.004a8ad8
jmp 0x4a7e0b
lea edx, [ebp - 0x108]
push edx
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
test eax, eax
jne 0x4a7db8
call fcn.004a8ad8
jmp 0x4a7e0b
cmp dword [0x82ac28], 1
je 0x4a7e09
movsx ecx, byte [ebp - 0x108]
push ecx
call fcn.004ac754
pop ecx
cmp al, 0x41
jl 0x4a7e09
cmp al, 0x5a
jg 0x4a7e09
cmp byte [ebp - 0x107], 0x3a
jne 0x4a7e09
mov byte [ebp - 4], 0x3d
mov byte [ebp - 3], al
lea eax, [ebp - 0x108]
mov byte [ebp - 2], 0x3a
mov byte [ebp - 1], 0
push eax
lea edx, [ebp - 4]
push edx
call sub.KERNEL32.DLL_SetEnvironmentVariableA
dec eax
je 0x4a7e09
call fcn.004a8ad8
jmp 0x4a7e0b
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4a7e10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
lea eax, [ebp - 0x104]
push eax
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
cmp byte [ebp - 0x104], 0x61
jl 0x4a7e3f
movsx edx, byte [ebp - 0x104]
add edx, 0xffffffa0
jmp 0x4a7e49
movsx edx, byte [ebp - 0x104]
add edx, 0xffffffc0
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov esp, ebp
pop ebp
ret

Function at 0x4a7e54
Capabilities:
Get disk information
Query environment variable
Set current directory
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
xor eax, eax
lea ecx, [ebp - 4]
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
lea edi, [ebp - 0x108]
mov dword [esi], eax
mov byte [ebp - 4], 0x3d
mov dl, byte [ebp + 8]
add dl, 0x40
mov byte [ebp - 3], dl
mov byte [ebp - 2], 0x3a
mov byte [ebp - 1], 0
push 0x104
push edi
push ecx
call sub.KERNEL32.DLL_GetEnvironmentVariableA
test eax, eax
jne 0x4a7eba
mov al, byte [ebp - 3]
mov byte [edi], al
mov byte [edi + 1], 0x3a
mov byte [edi + 2], 0x5c
mov byte [edi + 3], 0
push edi
lea edx, [ebp - 4]
push edx
call sub.KERNEL32.DLL_SetEnvironmentVariableA
dec eax
je 0x4a7eba
call fcn.004a8ad8
jmp 0x4a7ef5
push edi
call sub.KERNEL32.DLL_SetCurrentDirectoryA
dec eax
je 0x4a7eca
call fcn.004a8ad8
jmp 0x4a7ef5
mov byte [edi + 1], 0x3a
mov byte [edi + 2], 0x5c
mov byte [edi + 3], 0
mov byte [edi], 0x41
jmp 0x4a7ef0
push edi
call sub.KERNEL32.DLL_GetDriveTypeA
mov ebx, eax
test eax, eax
je 0x4a7eee
cmp ebx, 1
je 0x4a7eee
inc dword [esi]
inc byte [edi]
cmp byte [edi], 0x5a
jle 0x4a7edb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret