joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4493bb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
cmp dword [esi + 0x38], 0
jne 0x44948e
cmp byte [edi + 4], 0
je 0x4493df
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ebx, dword [ebp + 0x18]
mov dword [esi + 0x58], 7
mov dword [esi + 0x1c], ebx
test ebx, ebx
je 0x4493fe
cmp dword [ebp + 0xc], 0
jne 0x4493fe
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x24]
jmp 0x44942e
xor eax, eax
lea ecx, [esi + 0x40]
cmp byte [edi + 4], al
cmovne eax, ecx
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp + 0xc], eax
mov dword [esi + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x24], eax
cmp byte [edi + 4], 0
lea edx, [esi + 0x40]
je 0x44947c
test ecx, ecx
jne 0x449464
cmp eax, 0x3e5
jne 0x44945f
test ebx, ebx
jne 0x44945a
push dword [ebp + 0x14]
mov ecx, edi
push esi
call fcn.00449e46
test eax, eax
je 0x44948e
cmp eax, 1
jne 0x44945f
xor eax, eax
inc eax
jmp 0x449490
push 2
pop eax
jmp 0x449490
push 0
push dword [ebp + 0x14]
push edx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
neg eax
sbb eax, eax
add eax, 2
jmp 0x449490
xor eax, eax
test ecx, ecx
sete al
xor ecx, ecx
inc eax
cmp byte [edi + 1], cl
cmovne eax, ecx
jmp 0x449490
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x44957c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x5836e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x30], ebx
cmp byte [ebx + 4], 0
mov dword [ebp - 0x34], edi
je 0x4495d2
mov eax, dword [edi + 0x3c]
test eax, eax
jne 0x4495cf
push eax
push 1
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x3c], eax
test eax, eax
jne 0x4495cf
push 1
push str.StartPipeInstance:CreateEvent_failed_with_0x_08X
push edi
mov ecx, ebx
call fcn.004481cb
xor al, al
jmp 0x44969b
mov dword [edi + 0x50], eax
mov eax, edi
mov ecx, 0x190
sub eax, dword [ebx + 0x220]
cdq
idiv ecx
and dword [edi + 0x58], 0
push esi
mov dword [edi + 0x18c], ebx
lea esi, [edi + 0x10]
and dword [esi], 0
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi], eax
mov dword [edi + 4], 0xe9b6376a
call ebx
push 0xa
mov dword [edi + 0x5c], eax
xor edx, edx
pop ecx
mov dword [edi + 0x60], edx
xor eax, eax
push edx
push edx
lea edi, [ebp - 0x2c]
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
push 0x27
push eax
push 0xffffffffffffffff
lea eax, [edi + 0xc]
push eax
call fcn.004e5a5b
pop ecx
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp byte [ebp - 0x2c], 0
lea eax, [ebp - 0x2c]
push 0
mov ecx, str.PipeServerThread
cmove eax, ecx
push eax
push esi
mov esi, dword [ebp - 0x34]
push esi
push 0x44a041
call fcn.004e6611
add esp, 0x14
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x6c], eax
call ebx
cmp dword [esi + 0xc], 0
mov dword [esi + 0x60], eax
jne 0x449686
push 1
push str.StartPipeInstance:CreateThread_failed__code0x_08X
push esi
mov ecx, edi
call fcn.004481cb
xor al, al
jmp 0x44969a
cmp dword [edi + 8], 0
je 0x449698
push dword [edi + 8]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004f4166
leave
ret 4
Function at 0x44cedc
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x44cfcd
movzx eax, word [esi]
test ax, ax
je 0x44cfcd
cmp eax, 0x46
jne 0x44cf42
lea ecx, [esi + 2]
movzx eax, word [ecx]
cmp eax, 0x30
jb 0x44cf42
cmp eax, 0x39
ja 0x44cf42
movzx eax, word [esi + 4]
test ax, ax
je 0x44cf1f
add eax, 0xffffffd0
cmp ax, 9
ja 0x44cf42
push 0xa
lea eax, [ebp + 8]
push eax
push ecx
call fcn.004fe2f8
add esp, 0xc
lea ecx, [eax - 1]
cmp ecx, 0x17
ja 0x44cfcd
add eax, 0x6f
jmp 0x44cfcf
mov eax, dword [0x581458]
mov edi, 0x581458
jmp 0x44cf5f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x44cfc8
add edi, 8
mov eax, dword [edi]
test eax, eax
jne 0x44cf4e
xor edi, edi
cmp word [esi + 2], di
jne 0x44cfcd
movzx eax, word [esi]
push eax
call dword [sym.imp.USER32.dll_VkKeyScanW]
movsx ecx, ax
test cl, cl
je 0x44cfcd
mov eax, dword [ebp + 0x10]
movzx esi, cl
test eax, eax
je 0x44cfb3
shr ecx, 8
test cl, 1
je 0x44cf91
or dword [eax], 0x10
test cl, 2
je 0x44cfa2
mov edx, dword [eax]
test dl, 4
jne 0x44cfa2
or edx, 8
mov dword [eax], edx
test cl, 4
je 0x44cfb3
mov ecx, dword [eax]
test cl, 1
jne 0x44cfb3
or ecx, 2
mov dword [eax], ecx
push edi
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x44cfc4
mov dword [ecx], eax
mov eax, esi
jmp 0x44cfcf
mov eax, dword [edi + 4]
jmp 0x44cfcf
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x44cfd3
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
mov dl, byte [ebp + 8]
xor eax, eax
push esi
mov esi, dword [ebp + 0xc]
movzx ecx, dl
push edi
mov word [esi], ax
cmp ecx, 0x5c
ja 0x44d18e
cmp ecx, 0x5b
jae 0x44d184
cmp ecx, 0x1b
ja 0x44d0da
je 0x44d0d0
cmp ecx, 9
ja 0x44d072
je 0x44d068
mov eax, ecx
sub eax, 0
je 0x44d29b
sub eax, 1
je 0x44d05e
sub eax, 1
je 0x44d054
sub eax, 1
je 0x44d04a
sub eax, 1
je 0x44d040
sub eax, 4
jne 0x44d226
push str.Backspace
jmp 0x44d293
push str.MButton
jmp 0x44d293
push str.Break
jmp 0x44d293
push str.RButton
jmp 0x44d293
push str.LButton
jmp 0x44d293
push 0x5364e4
jmp 0x44d293
mov eax, ecx
sub eax, 0xd
je 0x44d0c6
sub eax, 3
je 0x44d0bc
sub eax, 1
je 0x44d0b2
sub eax, 1
je 0x44d0a8
sub eax, 1
jne 0x44d226
cmp byte [ebp + 0x10], 0
mov eax, str.Pause
mov ecx, str.Break
cmove eax, ecx
push eax
jmp 0x44d293
push 0x536454
jmp 0x44d293
push str.Ctrl
jmp 0x44d293
push str.Shift
jmp 0x44d293
push 0x531ad0
jmp 0x44d293
push 0x5364ec
jmp 0x44d293
cmp ecx, 0x25
ja 0x44d133
je 0x44d129
push 0x20
mov eax, ecx
pop edi
sub eax, edi
je 0x44d122
sub eax, 1
je 0x44d11b
sub eax, 1
je 0x44d114
sub eax, 1
je 0x44d10d
sub eax, 1
jne 0x44d226
push str.Home
push edi
jmp 0x44d295
push 0x536520
jmp 0x44d107
push str.PgDn
jmp 0x44d107
push str.PgUp
jmp 0x44d107
push str.Space
jmp 0x44d107
push 0x52c9c0
jmp 0x44d293
mov eax, ecx
sub eax, 0x26
je 0x44d17a
sub eax, 1
je 0x44d170
sub eax, 1
je 0x44d166
sub eax, 5
je 0x44d15c
sub eax, 1
jne 0x44d226
push str.Delete
jmp 0x44d293
push str.Insert
jmp 0x44d293
push 0x5364b4
jmp 0x44d293
push str.Right
jmp 0x44d293
push 0x5364ac
jmp 0x44d293
push 0x536428
jmp 0x44d293
mov eax, 0xa5
cmp ecx, eax
ja 0x44d1ff
je 0x44d1f5
mov eax, ecx
sub eax, 0x5d
je 0x44d1eb
sub eax, 0x43
je 0x44d1e1
sub eax, 1
je 0x44d1d7
sub eax, 1
je 0x44d1cd
sub eax, 1
je 0x44d1c3
sub eax, 1
jne 0x44d226
push str.LAlt
jmp 0x44d293
push str.RCtrl
jmp 0x44d293
push str.LCtrl
jmp 0x44d293
push str.RShift
jmp 0x44d293
push str.LShift
jmp 0x44d293
push 0x5364a0
jmp 0x44d293
push str.RAlt
jmp 0x44d293
mov eax, ecx
sub eax, 0xbb
je 0x44d28e
dec eax
sub eax, 1
je 0x44d287
sub eax, 0x13
je 0x44d280
sub eax, 1
je 0x44d279
sub eax, 1
je 0x44d272
sub eax, 1
je 0x44d26b
lea eax, [edx - 0x70]
cmp al, 0x17
ja 0x44d241
lea eax, [ecx - 0x6f]
push eax
push 0x5365d8
push esi
call fcn.00401104
add esp, 0xc
jmp 0x44d29b
cmp dl, 0x41
jb 0x44d24b
cmp dl, 0x5a
jbe 0x44d252
lea eax, [edx - 0x30]
cmp al, 9
ja 0x44d260
movzx eax, dl
mov word [esi], ax
xor eax, eax
mov word [esi + 2], ax
jmp 0x44d29b
push 2
push ecx
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
jmp 0x44d255
push str.WheelRight
jmp 0x44d293
push str.WheelLeft
jmp 0x44d293
push str.WheelDown
jmp 0x44d293
push str.WheelUp
jmp 0x44d293
push 0x536548
jmp 0x44d293
push 0x536550
push 0x20
push esi
call fcn.004019cd
pop edi
pop esi
pop ebp
ret
Function at 0x44d29f
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
movzx esi, byte [ecx + 0x8c]
xor edx, edx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], esi
test esi, esi
je 0x44d369
push ebx
push edi
mov edi, dword [ecx + 0x90]
mov dword [ebp - 4], 8
test edi, 0x10000000
jne 0x44d359
test edi, 0x20000000
je 0x44d2ed
mov eax, dword [0x5a23ec]
mov edx, dword [eax + 0x111a0]
jmp 0x44d300
test edi, 0x40000000
je 0x44d305
mov eax, dword [0x5a23ec]
mov edx, dword [eax + 0x111a4]
shl edx, 8
jmp 0x44d355
mov ebx, edx
cmp byte [0x581390], dl
jbe 0x44d359
mov esi, 0x581390
test dword [esi + 4], edi
je 0x44d344
mov eax, dword [esi + 0xc]
or eax, dword [esi + 8]
test edi, eax
jne 0x44d344
mov ecx, dword [ebp - 4]
movzx eax, byte [esi]
shl eax, cl
add ecx, 8
or edx, eax
mov dword [ebp - 4], ecx
cmp ecx, 0x18
jg 0x44d34f
cmp byte [esi + 1], 0
jne 0x44d344
add ebx, 2
add esi, 0x20
add esi, 0x10
inc ebx
movzx eax, byte [esi]
cmp ebx, eax
jb 0x44d314
mov ecx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
test edx, edx
jne 0x44d365
cmp dword [ecx + 4], 1
mov eax, 0x80808000
cmovne edx, eax
pop edi
or edx, esi
pop ebx
mov eax, edx
pop esi
leave
ret
Function at 0x44f8cc
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 4], eax
mov bl, al
push edi
test esi, esi
je 0x44fa12
cmp word [esi], ax
je 0x44fa12
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0xa005
push dword [ebp + 8]
call edi
push 0x527964
push eax
mov dword [ebp + 0xc], eax
call fcn.0044e9fc
pop ecx
pop ecx
test al, al
je 0x44fa12
push 0xa005
push dword [ebp + 0xc]
call edi
mov edi, eax
push str.ReBarWindow32
push edi
call fcn.0044e9fc
pop ecx
pop ecx
test al, al
je 0x44fa12
push str.ToolbarWindow32
push edi
call fcn.0044ebe4
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x44fa12
movzx eax, word [esi]
and dword [ebp + 0xc], 0
mov ecx, eax
test ax, ax
je 0x44fa0e
xor ebx, ebx
mov dword [ebp + 8], esi
mov dword [ebp - 8], 0x79
inc ebx
movzx eax, cx
mov ecx, 0x100
cmp ax, word [ebp - 8]
push 0
push eax
lea edx, [ecx + 4]
cmove ecx, edx
mov dword [ebp - 0xc], ecx
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov ecx, dword [ebp + 8]
shl eax, 0x10
push 0x79
pop edx
movzx ecx, word [ecx]
or eax, ebx
cmp cx, dx
jne 0x44f9c8
push 0x50005
push 0
push 0x201
push edi
call dword [sym.imp.USER32.dll_PostMessageW]
push 0x50005
push 0
push 0x202
push edi
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x44f9db
push eax
push ecx
push dword [ebp - 0xc]
push edi
call dword [sym.imp.USER32.dll_PostMessageW]
mov dword [ebp - 4], eax
test eax, eax
je 0x44fa06
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 4], 0
je 0x44fa06
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
lea eax, [esi + eax*2]
mov dword [ebp + 8], eax
movzx eax, word [eax]
mov ecx, eax
test ax, ax
jne 0x44f96f
jmp 0x44fa0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor bl, bl
mov al, bl
jmp 0x44fa14
xor al, al
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x451212
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], 1
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
cmp dword [0x5a28e8], ebx
je 0x451242
cmp dword [0x5a28f0], ebx
je 0x451242
mov bl, 1
jmp 0x4513c4
push 0x546ad8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x5a28e8], eax
test eax, eax
je 0x4513c4
cmp eax, 0xffffffff
je 0x4513c4
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GdiplusStartup
push eax
call esi
mov dword [0x5a28f4], eax
test eax, eax
je 0x4513c3
push str.GdiplusShutdown
push dword [0x5a28e8]
call esi
mov dword [0x5a28f8], eax
test eax, eax
je 0x4513c3
push str.GdipCreateBitmapFromFile
push dword [0x5a28e8]
call esi
mov dword [0x5a28fc], eax
test eax, eax
je 0x4513c3
push str.GdipDisposeImage
push dword [0x5a28e8]
call esi
mov dword [0x5a2900], eax
test eax, eax
je 0x4513c3
push str.GdipGetImageWidth
push dword [0x5a28e8]
call esi
mov dword [0x5a2904], eax
test eax, eax
je 0x4513c3
push str.GdipGetImageHeight
push dword [0x5a28e8]
call esi
mov dword [0x5a2908], eax
test eax, eax
je 0x4513c3
push str.GdipCreateHBITMAPFromBitmap
push dword [0x5a28e8]
call esi
mov dword [0x5a290c], eax
test eax, eax
je 0x4513c3
push str.GdipGetImagePixelFormat
push dword [0x5a28e8]
call esi
mov dword [0x5a2910], eax
test eax, eax
je 0x4513c3
push str.GdipLoadImageFromStream
push dword [0x5a28e8]
call esi
mov dword [0x5a2914], eax
test eax, eax
je 0x4513c3
push str.GdipSaveImageToFile
push dword [0x5a28e8]
call esi
mov dword [0x5a2918], eax
test eax, eax
je 0x4513c3
push str.GdipGetImageEncodersSize
push dword [0x5a28e8]
call esi
mov dword [0x5a291c], eax
test eax, eax
je 0x4513c3
push str.GdipGetImageEncoders
push dword [0x5a28e8]
call esi
mov dword [0x5a2920], eax
test eax, eax
je 0x4513c3
push str.GdipCreateBitmapFromHBITMAP
push dword [0x5a28e8]
call esi
mov dword [0x5a2924], eax
test eax, eax
je 0x4513c3
push ebx
lea eax, [ebp - 0x10]
push eax
push 0x5a28ec
call dword [0x5a28f4]
test eax, eax
jne 0x4513c3
mov dword [0x5a28f0], 1
mov bl, 1
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x4513c9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
mov esi, ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4514fc
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x4514dc
cmp dword [ebx + 0x20], esi
jne 0x4514dc
add ebx, 0x24
cmp dword [ebx], 0x3a
jb 0x4514dc
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 8], 1
push eax
push 2
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4514dc
cmp dword [ebp - 0x10], 2
jne 0x4514dc
cmp byte [ebp - 4], 0x42
jne 0x4514dc
cmp byte [ebp - 3], 0x4d
jne 0x4514dc
push dword [ebx]
mov dword [ebp - 0xc], 1
call fcn.004e1c0a
mov esi, eax
pop ecx
test esi, esi
jne 0x45147f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4514fe
push 2
lea eax, [ebp - 4]
push eax
push esi
call fcn.004f5d30
mov eax, dword [ebx]
add esp, 0xc
sub eax, 2
push 0
push ebx
push eax
lea eax, [esi + 2]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4514dc
add dword [ebx], 2
cmp byte [esi], 0x42
jne 0x4514d3
cmp byte [esi + 1], 0x4d
jne 0x4514d3
mov eax, dword [esi + 0xa]
sub eax, 0x36
cmp eax, 0x400
ja 0x4514d3
cmp dword [esi + 0xe], 0x28
jne 0x4514d3
cmp byte [esi + 0x1d], 0
jne 0x4514d3
cmp dword [esi + 0x1e], 0
je 0x4514dc
push esi
call fcn.004e1bea
pop ecx
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x4514fc
cmp dword [ebp - 8], esi
je 0x4514fc
cmp dword [ebp - 0xc], esi
jne 0x4514fc
push dword [ebp + 8]
call fcn.00451543
pop ecx
mov esi, eax
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45a459
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov ebx, edi
sub edi, dword [esi + 8]
sub ebx, dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDoubleClickTime]
cmp dword [esi + 4], 0
je 0x45a48c
cmp ebx, eax
jae 0x45a48c
mov ecx, dword [0x5a22a0]
pop edi
pop esi
pop ebx
jmp fcn.0041861d
cmp dword [esi + 8], 0
je 0x45a498
shr eax, 1
cmp edi, eax
jb 0x45a4cb
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x45a4cb
push 1
push 1
push str.ShowSysmenu_called_from__OnNcIconLClick_
call fcn.00421c79
add esp, 0xc
mov eax, 0xffff8300
mov ecx, esi
push 0
push eax
push eax
call fcn.0045c4b0
pop edi
pop esi
pop ebx
ret
Function at 0x45cfed
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
push edi
cmp esi, 0xff
jl 0x45d174
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x45d174
push ebx
xor ebx, ebx
push 0xd
mov dword [ebp - 4], ebx
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x45d0c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov eax, dword [ebp + 8]
push ecx
push str.Clipboard_does_not_contain_CF_UNICODETEXT__nothing_to_paste__code_u_
push esi
push edi
mov dword [eax], ecx
call fcn.004e22e7
mov ecx, dword [0x5a22a0]
add esp, 0x10
push 1
push 1
push edi
call fcn.00410feb
push str.Available_formats:
push esi
push edi
call fcn.00401a0b
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp + 0xc], eax
add eax, 0xb
cmp eax, esi
jge 0x45d0af
push ebx
call dword [sym.imp.USER32.dll_EnumClipboardFormats]
mov ebx, eax
test ebx, ebx
je 0x45d0af
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
push ebx
push str._x_04X
sub eax, ecx
lea esi, [edi + ecx*2]
push eax
push esi
call fcn.004e22e7
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp + 0xc]
add ecx, eax
mov dword [ebp + 0xc], ecx
lea eax, [ecx + 0xb]
cmp eax, dword [ebp + 0x10]
jl 0x45d070
mov ecx, dword [0x5a22a0]
push 1
push 1
push edi
call fcn.00410feb
xor eax, eax
mov word [edi], ax
jmp 0x45d16e
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x45d103
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov eax, dword [ebp + 8]
push ecx
push str.Cant_lock_CF_UNICODETEXT__paste_failed__code_u_
push esi
push edi
mov dword [eax], ecx
call fcn.004e22e7
mov ecx, dword [0x5a22a0]
add esp, 0x10
push 1
push 1
push edi
call fcn.00410feb
jmp 0x45d16e
cmp word [eax], bx
jne 0x45d13c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov eax, dword [ebp + 8]
push ecx
push str.CF_UNICODETEXT_is_empty__nothing_to_paste__code_u_
push esi
push edi
mov dword [eax], ecx
call fcn.004e22e7
mov ecx, dword [0x5a22a0]
add esp, 0x10
push 1
push 1
push edi
call fcn.00410feb
xor eax, eax
mov word [edi], ax
jmp 0x45d165
push 1
push eax
call fcn.004e230a
mov dword [ebp - 4], eax
pop ecx
pop ecx
test eax, eax
jne 0x45d165
push ebx
push 0xf6
push str.t:_vcprojectmaximus5conemu_srcconemumyclipboard.cpp
push str.pszBuf_NULL
call fcn.0041f6df
add esp, 0x10
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 4]
pop ebx
jmp 0x45d176
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x45d1ac
Capabilities:
Open clipboard

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x5836e0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x5a2b3c], 0
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x48], ebx
jle 0x45d1de
push 0x5a2b3c
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov al, 1
jmp 0x45d29d
push edi
push 0x64
pop edi
push esi
mov eax, dword [0x5a22a4]
test eax, eax
je 0x45d1fe
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45d1fe
mov eax, dword [0x5a22a4]
jmp 0x45d200
xor eax, eax
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x45d27d
mov eax, edi
dec edi
test eax, eax
jle 0x45d27d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [ebp - 0x44]
push esi
push str.__Code_u
push eax
call fcn.00401104
xor eax, eax
push eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x44]
push eax
push 0x521a98
push ebx
push str.OpenClipboard_failed__
call fcn.004e23a5
push 1
mov ebx, eax
push 1
push ebx
call fcn.00421c79
push 0
push 0
push 0x15
push esi
push ebx
call fcn.00420ad9
add esp, 0x50
mov esi, eax
test ebx, ebx
je 0x45d26d
push ebx
call fcn.004e1bea
pop ecx
mov ebx, dword [ebp - 0x48]
cmp esi, 4
je 0x45d1e3
xor al, al
jmp 0x45d29b
push 0x5a2b3c
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 1
push 1
push str.OpenClipboard_succeeded
call fcn.00421c79
add esp, 0xc
mov al, 1
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004f4166
leave
ret

Function at 0x45d2aa
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
mov eax, dword [0x5836e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push esi
call dword [sym.imp.USER32.dll_SetClipboardData]
mov ebx, eax
test ebx, ebx
jne 0x45d2f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push esi
lea eax, [ebp - 0xcc]
push str.SetClipboardData_x_04X__x_08X__failed__code_u
push eax
call fcn.00409b7d
add esp, 0x14
jmp 0x45d309
push edi
push esi
lea eax, [ebp - 0xcc]
push str.SetClipboardData_x_04X__x_08X__succeeded
push eax
call fcn.00409b7d
add esp, 0x10
push 1
lea eax, [ebp - 0xcc]
push 1
push eax
call fcn.00421c79
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, ebx
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004f4166
leave
ret
Function at 0x45d8b8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x5836e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x414]
push eax
push 0xf003f
xor ebx, ebx
push ebx
push str.Console
push SysReAllocString
mov dword [ebp - 0x408], ebx
mov dword [ebp - 0x40c], ebx
call esi
test eax, eax
jne 0x45d9c0
lea eax, [ebp - 0x410]
mov dword [ebp - 0x410], 4
push eax
lea eax, [ebp - 0x408]
push eax
push ebx
push ebx
push str.FullScreen
push dword [ebp - 0x414]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x408]
xor edx, edx
test eax, eax
lea eax, [ebp - 0x418]
push eax
push 0xf003f
push ebx
push 0x5242d0
push dword [ebp - 0x414]
cmovne ecx, edx
mov dword [ebp - 0x408], ecx
call esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x45d9ac
lea eax, [ebp - 0x410]
mov dword [ebp - 0x410], 4
push eax
lea eax, [ebp - 0x40c]
push eax
push ebx
push ebx
push str.FullScreen
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x40c]
xor edx, edx
push dword [ebp - 0x418]
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x40c], ecx
call esi
jmp 0x45d9b8
mov eax, dword [ebp - 0x408]
mov dword [ebp - 0x40c], eax
push dword [ebp - 0x414]
call esi
mov ecx, dword [ebp - 0x408]
mov eax, dword [ebp - 0x40c]
test ecx, ecx
jne 0x45d9d4
test eax, eax
je 0x45da0a
cmp dword [0x5a22cc], 6
jb 0x45da0a
test ecx, ecx
cmovne eax, ecx
push eax
lea eax, [ebp - 0x404]
push str.Warning__nDangerous_values_detected_in_yours_registry_n_nPlease_check__HKEY_CURRENT_USERConsole__and__HKEY_CURRENT_USERConsoleConEmu__keys_n_n_FullScreen__recommended_value_is_dword:00000000_n_nCurrent_value_is_dword:_08X
push eax
call fcn.00409b4e
push 1
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x404]
push 0x40
push eax
call fcn.00421ef1
add esp, 0x20
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004f4166
leave
ret

Function at 0x463954
Capabilities:
Check for time delay via gettickcount

Disassembly:
push edi
mov edi, ecx
mov ecx, dword [0x5a22a0]
test ecx, ecx
je 0x4639c9
call fcn.0040f0b1
cmp eax, 9
jne 0x4639c9
push 0
mov ecx, edi
call fcn.0045ffe1
test al, al
je 0x4639c9
cmp dword [0x5a2c50], 0
jne 0x46398e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x5a2c50], eax
pop edi
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
sub esi, dword [0x5a2c50]
call fcn.004ff66a
push 0x3c
pop ecx
cdq
idiv ecx
add edx, 0x493e0
cmp esi, edx
pop esi
jbe 0x4639c9
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
push 0
mov ecx, edi
mov dword [0x5a2c50], eax
call fcn.0045d5b9
pop edi
ret