joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140048cfd
Capabilities:
Print debug messages
Write file on windows

Disassembly:
test rcx, rcx
je 0x140048ec5
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r14
lea rbp, [rax - 0x568]
sub rsp, 0x650
mov rax, qword [0x1401f5698]
xor rax, rsp
mov qword [rbp + 0x540], rax
xor r14d, r14d
mov rsi, rdx
mov rbx, rcx
mov r12d, 0xff
lea edi, [r14 + 1]
cmp word [rbx], r14w
je 0x140048e9a
mov r8d, edi
lea rdx, [0x1401881c0]
lea rcx, [rsp + 0x40]
call fcn.14000c6d8
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, eax
movzx eax, word [rbx]
cmp ax, r12w
jb 0x140048d7a
mov eax, r12d
movzx r11d, ax
mov r9, r14
test r11, r11
je 0x140048e04
movzx r10d, byte [rbx + r9 + 2]
movsxd r8, ecx
mov edx, r10d
inc ecx
test r10d, r10d
je 0x140048df6
sub edx, 9
je 0x140048de6
sub edx, 1
je 0x140048dd4
sub edx, 3
je 0x140048dc4
cmp edx, 0x4f
je 0x140048db4
mov byte [rsp + r8 + 0x40], r10b
jmp 0x140048dfc
movsxd rax, ecx
mov byte [rsp + r8 + 0x40], 0x5c
mov byte [rsp + rax + 0x40], 0x5c
jmp 0x140048de2
movsxd rax, ecx
mov byte [rsp + r8 + 0x40], 0x5c
mov byte [rsp + rax + 0x40], 0x72
jmp 0x140048de2
movsxd rax, ecx
mov byte [rsp + r8 + 0x40], 0x5c
mov byte [rsp + rax + 0x40], 0x6e
inc ecx
jmp 0x140048dfc
movsxd rax, ecx
mov byte [rsp + r8 + 0x40], 0x5c
mov byte [rsp + rax + 0x40], 0x74
jmp 0x140048de2
mov byte [rsp + r8 + 0x40], 0x2e
inc r9
cmp r9, r11
jl 0x140048d86
movsxd rax, ecx
mov byte [rsp + rax + 0x40], 0xa
inc rax
cmp rax, 0x200
jae 0x140048ec6
mov byte [rsp + rax + 0x40], r14b
test rsi, rsi
je 0x140048e81
lea rax, [rbp + 0x140]
mov dword [rsp + 0x28], 0x200
or r9d, 0xffffffff
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x40]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rcx, [rbp + 0x140]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r14w
jne 0x140048e57
lea r8d, [rax + rax]
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x30]
mov rcx, rsi
lea rdx, [rbp + 0x140]
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x140048e8c
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
movzx eax, word [rbx]
inc edi
add rbx, rax
jne 0x140048d43
mov rcx, qword [rbp + 0x540]
xor rcx, rsp
call fcn.14012bda0
lea r11, [rsp + 0x650]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r12
pop rbp
ret
call fcn.14012c3e0
int3
Function at 0x14004992c
Capabilities:
Get file system object information

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x450]
sub rsp, 0x550
mov rax, qword [0x1401f5698]
xor rax, rsp
mov qword [rbp + 0x440], rax
mov rsi, qword [rbp + 0x4b8]
mov r12d, 0x12c
mov r13, r9
mov r14, r8
mov r15, rdx
mov eax, dword [rsi]
add eax, 0x11
cmp eax, r12d
jl 0x140049983
xor eax, eax
jmp 0x140049b35
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x2b8
call fcn.14012d4b0
mov edx, 0x5c
mov rcx, r14
call fcn.14012dd3c
mov rbx, rax
xor eax, eax
test rbx, rbx
jne 0x1400499b1
mov rbx, r14
jmp 0x1400499b5
add rbx, 2
or rdi, 0xffffffffffffffff
mov qword [rsp + 0x50], rax
mov r8, rdi
inc r8
cmp word [rbx + r8*2], ax
jne 0x1400499c1
lea r9, [rsp + 0x50]
mov rdx, rbx
mov rcx, r15
call qword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [rsp + 0x50]
cmp eax, r12d
cmovg eax, r12d
mov dword [rsp + 0x50], eax
cmp eax, dword [r13]
jle 0x1400499f5
mov dword [r13], eax
mov rax, qword [0x14022ab50]
mov r12d, dword [rbp + 0x4b0]
cmp byte [rax + 0x1106e], 0
je 0x140049a66
mov r9d, 0x2b8
mov dword [rsp + 0x20], 0xd01
lea r8, [rsp + 0x60]
xor edx, edx
mov rcx, r14
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
xor r14d, r14d
test rax, rax
je 0x140049a69
mov r9, qword [rsp + 0x60]
lea eax, [r14 + 0x10]
mov r8d, dword [rsi]
mov edx, r12d
mov dword [rsp + 0x40], 3
mov rcx, r15
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_DrawIconEx]
jmp 0x140049a69
xor r14d, r14d
mov rax, qword [0x14022ab50]
mov cl, byte [rax + 0x1106e]
neg cl
mov ecx, dword [rsi]
sbb eax, eax
and eax, 0x12
lea edx, [rax + r12]
mov r12d, 0x12c
lea eax, [rcx + 1]
mov dword [rbp + 0x220], edx
mov dword [rbp + 0x224], eax
lea eax, [rcx + 0x10]
mov ecx, dword [r13]
add ecx, edx
mov dword [rbp + 0x22c], eax
cmp ecx, r12d
lea r8d, [r12 - 0x28]
mov eax, r12d
mov rdx, rbx
cmovl eax, ecx
lea rcx, [rbp + 0x230]
mov dword [rbp + 0x228], eax
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
lea rax, [rbp + 0x230]
mov word [rbp + 0x438], r14w
inc rdi
cmp word [rax + rdi*2], r14w
jne 0x140049ada
mov r8, rdi
mov qword [rsp + 0x28], r14
lea r9, [rbp + 0x220]
mov dword [rsp + 0x20], 0x18820
lea rdx, [rbp + 0x230]
mov rcx, r15
call qword [sym.imp.USER32.dll_DrawTextExW]
mov eax, dword [rbp + 0x22c]
inc eax
cmp dword [rsi], eax
jge 0x140049b20
cmp eax, r12d
cmovg eax, r12d
mov dword [rsi], eax
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140049b30
call qword [sym.imp.USER32.dll_DestroyIcon]
mov eax, 1
mov rcx, qword [rbp + 0x440]
xor rcx, rsp
call fcn.14012bda0
mov rbx, qword [rsp + 0x590]
add rsp, 0x550
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14004e680
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rdx, 0xcbf29ce484222325
xor r8d, r8d
movzx eax, byte [r8 + rcx]
movabs r9, 0x100000001b3
xor rdx, rax
inc r8
imul rdx, r9
cmp r8, 4
jb 0x14004e68d
mov rax, rdx
ret
Function at 0x1400543ec
Capabilities:
Enumerate files on windows

Disassembly:
test rdx, rdx
je 0x14005465f
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5c8]
sub rsp, 0x6a0
mov rax, qword [0x1401f5698]
xor rax, rsp
mov qword [rbp + 0x590], rax
xor r12d, r12d
mov rbx, rdx
mov r15, rcx
cmp word [rdx], r12w
je 0x140054630
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x250
call fcn.14012d4b0
mov rdx, rbx
lea rcx, [rbp + 0x180]
call fcn.14000ca24
lea rcx, [rbp + 0x180]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
mov edi, 0x208
lea rax, [rbp + 0x180]
mov edx, edi
lea rax, [rax + rcx*2]
lea r14, [rax - 2]
cmp word [r14], 0x5c
lea rcx, [rbp + 0x180]
cmovne r14, rax
mov rax, r14
sub rax, rcx
sar rax, 1
sub rdx, rax
cmp rdx, rdi
ja 0x1400544b9
lfence
lea r8, str..
mov rcx, r14
call fcn.14000a8a0
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x180]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
or r13, 0xffffffffffffffff
mov rsi, rax
cmp rax, r13
je 0x140054630
test byte [rsp + 0x30], 0x10
jne 0x140054611
mov edx, 0x2e
mov word [r14 + 2], r12w
lea rcx, [rsp + 0x5c]
call fcn.14012dd3c
mov rbx, rax
test rax, rax
je 0x140054611
lea rdx, str..ttf
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140054546
lea rdx, str..otf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140054546
lea rdx, str..bdf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140054611
lea rax, [rsp + 0x5c]
mov rbx, r13
inc rbx
cmp word [rax + rbx*2], r12w
jne 0x14005454e
lea rcx, [rbp + 0x180]
mov rax, r13
inc rax
cmp word [rcx + rax*2], r12w
jne 0x140054562
add rax, rbx
cmp rax, 0x104
jb 0x1400545e7
add rbx, 0x64
mov edx, 2
mov rcx, rbx
call fcn.140113de8
lea r8, str.Too_long_full_pathname_for_font:_n
mov rdx, rbx
mov rcx, rax
mov rdi, rax
call fcn.14000a8a0
lea r8, [rsp + 0x5c]
mov rdx, rbx
mov rcx, rdi
call fcn.140001e48
mov rcx, qword [0x14022a9e0]
call fcn.140013110
mov r8, rax
mov byte [rsp + 0x20], 1
mov r9, r13
mov edx, 0x11
mov rcx, rdi
call fcn.1400297d8
mov rcx, rdi
mov ebx, eax
call fcn.140113e18
cmp ebx, 2
je 0x140054627
mov edi, 0x208
jmp 0x140054611
lea r8, [rsp + 0x5c]
mov rdx, rdi
lea rcx, [rbp + 0x180]
call fcn.140001e48
xor r8d, r8d
lea rdx, [rbp + 0x180]
mov rcx, r15
call fcn.1400536c4
test eax, eax
je 0x140054627
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400544db
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rbp + 0x590]
xor rcx, rsp
call fcn.14012bda0
lea r11, [rsp + 0x6a0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x1400584d0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r15
sub rsp, 0x30
xor r13d, r13d
mov r12d, r9d
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
cmp dword [rdx + 0x40], r13d
jne 0x1400585db
cmp byte [rcx + 4], r13b
je 0x140058516
mov rcx, qword [rdx + 0x48]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov ebp, dword [rsp + 0x78]
mov dword [rbx + 0x74], 7
mov dword [rbx + 0x24], ebp
test ebp, ebp
je 0x140058539
test rsi, rsi
jne 0x140058539
mov esi, dword [rbx + 0x28]
lea r15, [rbx + 0x50]
mov eax, dword [rbx + 0x2c]
jmp 0x140058570
mov al, byte [rdi + 4]
lea r15, [rbx + 0x50]
mov r9, qword [rsp + 0x70]
neg al
mov r8d, r12d
mov rdx, rsi
sbb rcx, rcx
and rcx, r15
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
mov dword [rbx + 0x28], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x2c], eax
cmp byte [rdi + 4], r13b
je 0x1400585ca
test esi, esi
jne 0x1400585ac
cmp eax, 0x3e5
jne 0x1400585a5
test ebp, ebp
jne 0x14005859e
mov r8, qword [rsp + 0x70]
mov rdx, rbx
mov rcx, rdi
call fcn.1400591c0
test eax, eax
je 0x1400585db
cmp eax, 1
jne 0x1400585a5
mov eax, 1
jmp 0x1400585dd
mov eax, 2
jmp 0x1400585dd
mov r8, qword [rsp + 0x70]
xor r9d, r9d
mov rcx, qword [rbx + 8]
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
neg eax
sbb eax, eax
add eax, 2
jmp 0x1400585dd
neg esi
sbb eax, eax
add eax, 2
cmp byte [rdi + 1], r13b
cmovne eax, r13d
jmp 0x1400585dd
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r13
pop r12
ret
Function at 0x140058730
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1401f5698]
xor rax, rsp
mov qword [rsp + 0x68], rax
cmp byte [rcx + 4], 0
mov rdi, rdx
mov rsi, rcx
je 0x1400587a0
mov rax, qword [rdx + 0x48]
test rax, rax
jne 0x14005879c
lea edx, [rax + 1]
xor r9d, r9d
mov r8d, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rdi + 0x48], rax
test rax, rax
jne 0x14005879c
lea r8, str.StartPipeInstance:CreateEvent_failed_with_0x_08X
mov r9d, 1
mov rdx, rdi
mov rcx, rsi
call fcn.140057250
xor al, al
jmp 0x1400588a0
mov qword [rdi + 0x68], rax
mov rcx, rdi
movabs rax, 0x4a7904a7904a7905
sub rcx, qword [rsi + 0x220]
and dword [rdi + 0x18], 0
and dword [rdi + 0x74], 0
imul rcx
mov dword [rdi + 4], 0xe9b6376a
sar rdx, 7
mov rax, rdx
mov qword [rdi + 0x1b0], rsi
shr rax, 0x3f
add rdx, rax
mov dword [rdi], edx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
and dword [rdi + 0x7c], 0
lea rcx, [rsi + 0xc]
xorps xmm0, xmm0
mov dword [rdi + 0x78], eax
xor eax, eax
mov qword [rsp + 0x60], rax
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
call fcn.140118eac
and qword [rsp + 0x38], 0
mov r8, rax
and qword [rsp + 0x30], 0
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], 0x27
or r9d, 0xffffffff
xor edx, edx
mov qword [rsp + 0x20], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp byte [rsp + 0x40], 0
lea rax, str.PipeServerThread
lea r9, [rsp + 0x40]
mov rdx, rdi
cmove r9, rax
lea r8, [rdi + 0x18]
and dword [rsp + 0x20], 0
lea rcx, [0x140059414]
call fcn.140119fac
mov qword [rdi + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi + 0x88], eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [rdi + 0x10]
mov dword [rdi + 0x7c], eax
test rcx, rcx
jne 0x140058891
lea r8, str.StartPipeInstance:CreateThread_failed__code0x_08X
jmp 0x140058784
mov edx, dword [rsi + 8]
test edx, edx
je 0x14005889e
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov al, 1
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14012bda0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400599e8
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
xor ebp, ebp
mov rdi, r8
mov r14, rdx
mov rbx, rcx
test rcx, rcx
je 0x140059af9
cmp word [rcx], bp
je 0x140059af9
cmp word [rcx], 0x46
jne 0x140059a68
add rcx, 2
movzx eax, word [rcx]
sub ax, 0x30
cmp ax, 9
ja 0x140059a68
movzx eax, word [rbx + 4]
test ax, ax
je 0x140059a41
sub ax, 0x30
cmp ax, 9
ja 0x140059a68
mov r8d, 0xa
lea rdx, [rsp + 0x40]
call fcn.1401358a4
lea ecx, [rax - 1]
cmp ecx, 0x17
ja 0x140059af9
lfence
add eax, 0x6f
jmp 0x140059afb
mov rax, qword [0x1401f1460]
lea rsi, [0x1401f1460]
jmp 0x140059a8f
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x140059af4
add rsi, 0x10
mov rax, qword [rsi]
test rax, rax
jne 0x140059a78
cmp word [rbx + 2], bp
jne 0x140059af9
movzx ecx, word [rbx]
call qword [sym.imp.USER32.dll_VkKeyScanW]
movsx ecx, ax
test cl, cl
je 0x140059af9
movzx ebx, cl
test rdi, rdi
je 0x140059ade
shr ecx, 8
test cl, 1
je 0x140059abd
or dword [rdi], 0x10
test cl, 2
je 0x140059acd
mov eax, dword [rdi]
test al, 4
jne 0x140059acd
or eax, 8
mov dword [rdi], eax
test cl, 4
je 0x140059ade
mov ecx, dword [rdi]
test cl, 1
jne 0x140059ade
or ecx, 2
mov dword [rdi], ecx
xor edx, edx
mov ecx, ebx
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
test r14, r14
je 0x140059af0
mov dword [r14], eax
mov eax, ebx
jmp 0x140059afb
mov eax, dword [rsi + 8]
jmp 0x140059afb
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x140062578
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x1401f5698]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor r13d, r13d
mov rsi, r8
mov rax, rdx
mov dil, r13b
mov r12d, r13d
test r8, r8
je 0x14006273e
cmp word [r8], r13w
je 0x14006273e
mov ebp, 0xa005
mov rcx, rax
mov edx, ebp
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
lea rdx, str.WorkerW
mov rbx, rax
call fcn.14006149c
test al, al
je 0x14006273e
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
lea rdx, str.ReBarWindow32
mov r14, rax
call fcn.14006149c
test al, al
je 0x14006273e
xor r9d, r9d
lea r8, str.ToolbarWindow32
xor edx, edx
mov rcx, r14
mov ebp, r13d
mov r15d, 0x1869f
call qword [sym.imp.USER32.dll_FindWindowExW]
mov rbx, rax
test rax, rax
je 0x14006273e
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowRect]
test rbp, rbp
je 0x140062650
cmp dword [rsp + 0x24], r15d
jge 0x140062658
mov r15d, dword [rsp + 0x24]
mov rbp, rbx
xor r9d, r9d
lea r8, str.ToolbarWindow32
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.USER32.dll_FindWindowExW]
mov rbx, rax
test rax, rax
jne 0x140062636
test rbp, rbp
je 0x14006273e
movzx eax, word [rsi]
mov rbx, r13
test ax, ax
je 0x140062704
mov r14, rsi
mov edi, 1
movzx ecx, ax
mov eax, 0x104
cmp ecx, 0x79
lea r15d, [rax - 4]
cmove r15d, eax
xor edx, edx
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
shl eax, 0x10
mov rcx, rbp
mov r9d, eax
or r9, rdi
cmp word [r14], 0x79
jne 0x140062709
mov r15d, 0x50005
xor r8d, r8d
mov r9d, r15d
mov edx, 0x201
call qword [sym.imp.USER32.dll_PostMessageW]
mov r9d, r15d
xor r8d, r8d
mov edx, 0x202
mov rcx, rbp
call qword [sym.imp.USER32.dll_PostMessageW]
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
test r12, r12
jne 0x140062728
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dil, r13b
mov al, dil
jmp 0x140062740
movzx r8d, word [r14]
mov edx, r15d
call qword [sym.imp.USER32.dll_PostMessageW]
movsxd r12, eax
test eax, eax
je 0x1400626fb
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
add rbx, rdi
lea r14, [rsi + rbx*2]
movzx eax, word [r14]
test ax, ax
jne 0x140062692
jmp 0x140062704
xor al, al
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14012bda0
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400645cc
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x40
xor ebx, ebx
mov dword [rsp + 0x20], 1
cmp qword [0x14022b160], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x30], rbx
je 0x1400645fb
cmp dword [0x14022b170], ebx
jne 0x140064803
lea rcx, str.GdiPlus.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, rax
mov qword [0x14022b160], rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x140064805
lea rdx, str.GdiplusStartup
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14022b178], rax
test rax, rax
je 0x140064805
mov rcx, qword [0x14022b160]
lea rdx, str.GdiplusShutdown
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14022b180], rax
test rax, rax
je 0x140064805
mov rcx, qword [0x14022b160]
lea rdx, str.GdipCreateBitmapFromFile
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14022b188], rax
test rax, rax
je 0x140064805
mov rcx, qword [0x14022b160]
lea rdx, str.GdipDisposeImage
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14022b190], rax
test rax, rax
je 0x140064805
mov rcx, qword [0x14022b160]
lea rdx, str.GdipGetImageWidth
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14022b198], rax
test rax, rax
je 0x140064805
mov rcx, qword [0x14022b160]
lea rdx, str.GdipGetImageHeight
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14022b1a0], rax
test rax, rax
je 0x140064805
mov rcx, qword [0x14022b160]
lea rdx, str.GdipCreateHBITMAPFromBitmap
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14022b1a8], rax
test rax, rax
je 0x140064805
mov rcx, qword [0x14022b160]
lea rdx, str.GdipGetImagePixelFormat
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14022b1b0], rax
test rax, rax
je 0x140064805
mov rcx, qword [0x14022b160]
lea rdx, str.GdipLoadImageFromStream
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14022b1b8], rax
test rax, rax
je 0x140064805
mov rcx, qword [0x14022b160]
lea rdx, str.GdipSaveImageToFile
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14022b1c0], rax
test rax, rax
je 0x140064805
mov rcx, qword [0x14022b160]
lea rdx, str.GdipGetImageEncodersSize
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14022b1c8], rax
test rax, rax
je 0x140064805
mov rcx, qword [0x14022b160]
lea rdx, str.GdipGetImageEncoders
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14022b1d0], rax
test rax, rax
je 0x140064805
mov rcx, qword [0x14022b160]
lea rdx, str.GdipCreateBitmapFromHBITMAP
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14022b1d8], rax
test rax, rax
je 0x140064805
xor r8d, r8d
lea rdx, [rsp + 0x20]
lea rcx, [0x14022b168]
call qword [0x14022b178]
test eax, eax
jne 0x140064805
mov dword [0x14022b170], 1
mov bl, 1
mov al, bl
add rsp, 0x40
pop rbx
ret
Function at 0x140064810
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
xor ebx, ebx
mov rsi, rdx
and qword [rax - 0x38], rbx
xor r9d, r9d
and dword [rax - 0x40], ebx
mov edx, 0x80000000
mov r15, rcx
mov dword [rax - 0x48], 3
lea r8d, [rbx + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140064983
mov rdx, rsi
mov rcx, rax
xor ebp, ebp
xor r14d, r14d
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x140064961
cmp dword [rsi + 0x20], ebx
jne 0x140064961
cmp dword [rsi + 0x24], 0x3a
jb 0x140064961
and qword [rsp + 0x20], rbx
lea r9, [rsp + 0x88]
lea r8d, [rbx + 2]
mov rcx, rdi
lea rdx, [rsp + 0x80]
lea r14d, [rbx + 1]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140064961
cmp dword [rsp + 0x88], 2
jne 0x140064961
cmp byte [rsp + 0x80], 0x42
jne 0x140064961
cmp byte [rsp + 0x81], 0x4d
jne 0x140064961
mov ecx, dword [rsi + 0x24]
mov ebp, r14d
call fcn.140113e8c
mov rbx, rax
mov rcx, rdi
test rax, rax
jne 0x1400648fe
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140064986
movzx eax, word [rsp + 0x80]
lea rdx, [rbx + 2]
and qword [rsp + 0x20], 0
lea r9, [rsi + 0x24]
mov word [rbx], ax
mov r8d, dword [rsi + 0x24]
sub r8d, 2
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140064961
add dword [rsi + 0x24], 2
cmp byte [rbx], 0x42
jne 0x140064957
cmp byte [rbx + 1], 0x4d
jne 0x140064957
mov eax, dword [rbx + 0xa]
sub eax, 0x36
cmp eax, 0x400
ja 0x140064957
cmp dword [rbx + 0xe], 0x28
jne 0x140064957
cmp byte [rbx + 0x1d], 0
jne 0x140064957
cmp dword [rbx + 0x1e], 0
je 0x140064961
mov rcx, rbx
call fcn.140113e18
xor ebx, ebx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
jne 0x140064983
test r14d, r14d
je 0x140064983
test ebp, ebp
jne 0x140064983
mov rcx, r15
call fcn.1400649e8
mov rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140072c64
Capabilities:
Read clipboard data

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
xor r12d, r12d
mov rsi, r8
mov rdi, rdx
mov r14, rcx
test rdx, rdx
je 0x140072e4e
cmp r8, 0xff
jl 0x140072e4e
lea ecx, [r12 + 0xd]
mov ebp, r12d
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rbx, rax
test rax, rax
jne 0x140072d87
lfence
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.Clipboard_does_not_contain_CF_UNICODETEXT__nothing_to_paste__code_u_
mov rdx, rsi
mov r9d, eax
mov dword [r14], eax
mov rcx, rdi
call fcn.1401145a0
mov rcx, qword [0x14022a9e0]
mov r9b, 1
mov r8b, r9b
mov rdx, rdi
call fcn.1400157d0
lea r8, str.Available_formats:
mov rdx, rsi
mov rcx, rdi
call fcn.14000a8a0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r15d, eax
mov r14d, r12d
add eax, 0xb
movsxd rdx, eax
cmp rdx, rsi
jge 0x140072d69
lfence
mov ecx, r14d
call qword [sym.imp.USER32.dll_EnumClipboardFormats]
mov r14d, eax
test eax, eax
je 0x140072d69
movsxd rax, r15d
lea r8, str._x_04X
mov rdx, rsi
mov r9d, r14d
sub rdx, rax
lea rbx, [rdi + rax*2]
mov rcx, rbx
call fcn.1401145a0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add r15d, eax
lea eax, [r15 + 0xb]
movsxd rcx, eax
cmp rcx, rsi
jl 0x140072d22
mov rcx, qword [0x14022a9e0]
mov r9b, 1
mov r8b, r9b
mov rdx, rdi
call fcn.1400157d0
mov word [rdi], r12w
jmp 0x140072e49
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
jne 0x140072dcd
lfence
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.Cant_lock_CF_UNICODETEXT__paste_failed__code_u_
mov rdx, rsi
mov r9d, eax
mov dword [r14], eax
mov rcx, rdi
call fcn.1401145a0
mov rcx, qword [0x14022a9e0]
mov r9b, 1
mov r8b, r9b
mov rdx, rdi
call fcn.1400157d0
jmp 0x140072e49
cmp word [rax], r12w
jne 0x140072e0f
lfence
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.CF_UNICODETEXT_is_empty__nothing_to_paste__code_u_
mov rdx, rsi
mov r9d, eax
mov dword [r14], eax
mov rcx, rdi
call fcn.1401145a0
mov rcx, qword [0x14022a9e0]
mov r9b, 1
mov r8b, r9b
mov rdx, rdi
call fcn.1400157d0
mov word [rdi], r12w
jmp 0x140072e40
mov edx, 1
mov rcx, rax
call fcn.1401145e0
mov rbp, rax
test rax, rax
jne 0x140072e40
xor r9d, r9d
lea rdx, str.C:UsersMaksim.MoisiukDocumentsPersonalconemu_srcConEmuMyClipboard.cpp
mov r8d, 0xf6
lea rcx, str.pszBuf_NULL
call fcn.140026d78
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rax, rbp
jmp 0x140072e50
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret