joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400bccd3
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x140162550
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.140161f20
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140162591
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1402ad020]
jmp 0x140162597
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret

Function at 0x1400bcda0
Capabilities:
Get geographical location

Disassembly:
jmp 0x1401fbbb0
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
call fcn.1401faae0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1401fbc17
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
movabs r10, 0xe375262d7cd44270
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x40]
call qword [0x1402ad030]
jmp 0x1401fbc39
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.1400bc053
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x58
ret

Function at 0x1400bcdb4
Capabilities:
Terminate process

Disassembly:
jmp 0x14013f0f0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x1400bd151
Capabilities:
Print debug messages

Disassembly:
jmp 0x140221cb0
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x140290080]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x140221cd6
jmp 0x140221d53
mov rcx, qword [rbp + 0x30]
call fcn.1400bc517
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x140221cef
jmp 0x140221d53
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x140221d0c
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400baf1e
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 8], rax
mov rax, qword [rbp]
dec rax
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x30]
mov r8, qword [rbp]
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x10]
call fcn.1400bb51d
test eax, eax
jne 0x140221d53
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.1400bc7e7
lea rsp, [rbp + 0x20]
pop rbp
ret

Function at 0x1400bd589
Capabilities:
Set environment variable

Disassembly:
jmp 0x1402164b0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add rsp, 0x28
ret
Function at 0x1400bd8cc
Capabilities:
Parse pe header

Disassembly:
jmp 0x140140b00
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140140b20
xor al, al
jmp 0x140140ba1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140140b33
xor al, al
jmp 0x140140ba1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140140b5d
xor al, al
jmp 0x140140ba1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140140b71
xor al, al
jmp 0x140140ba1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140140b83
xor al, al
jmp 0x140140ba1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140140b9f
xor al, al
jmp 0x140140ba1
mov al, 1
add rsp, 0x38
ret
Function at 0x1400be13c
Capabilities:
Terminate process

Disassembly:
jmp 0x140163910
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x14016393e
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.1400becfe
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000417
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x1400bed80
Capabilities:
Print debug messages

Disassembly:
jmp 0x1401f19b0
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x1400beee8
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x140162690
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140161fe0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1401626d9
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1402ad020]
jmp 0x1401626e8
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret

Function at 0x1400befec
Capabilities:
Set environment variable

Disassembly:
jmp 0x14022ca40
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x78]
call fcn.1400bbe69
lea rcx, [rsp + 0x48]
call fcn.1400bbe69
call fcn.1400bcc3d
mov r8d, eax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.1400bbb44
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x14022caaf
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.1400bc3be
lea rcx, [rsp + 0x78]
call fcn.1400bc3be
mov eax, dword [rsp + 0x24]
jmp 0x14022cb40
call fcn.1400bcc3d
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.1400bbb44
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x14022caf6
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x48]
call fcn.1400bc3be
lea rcx, [rsp + 0x78]
call fcn.1400bc3be
mov eax, dword [rsp + 0x2c]
jmp 0x14022cb40
lea rcx, [rsp + 0x48]
call fcn.1400bbd88
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
call fcn.1400bbd88
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x48]
call fcn.1400bc3be
lea rcx, [rsp + 0x78]
call fcn.1400bc3be
mov eax, dword [rsp + 0x30]
add rsp, 0xb8
ret
Function at 0x140202ce0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.1400baf1e
sub rsp, rax
mov rax, qword [0x140290080]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x140294b80]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x140202ed2
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x140202e26
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x140202e26
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x140202e0b
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x140202da8
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140202e92
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140202ef1
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
jae 0x140202ecd
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140202ef1
jmp 0x140202d7e
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.1400bc7e7
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x140202fa0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.1400baf1e
sub rsp, rax
mov rax, qword [0x140290080]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x140294b80]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x1402031ad
lea rax, [rsp + 0x147e]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
jae 0x1402030f9
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x1402030f9
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
cmp eax, 0xa
jne 0x1402030d9
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, 0xd
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x140203068
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov eax, eax
shl rax, 1
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14020316d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1402031cc
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x48], eax
jae 0x1402031a8
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1402031cc
jmp 0x14020303e
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.1400bc7e7
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x140001e00
Capabilities:
Accept command line arguments

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x388
mov rax, qword [0x140096780]
xor rax, rsp
mov qword [rsp + 0x370], rax
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.1400084c0
mov qword [rsp + 0x28], rax
mov r8, qword [rsp + 0x28]
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.140001000
lea rcx, [rsp + 0x1d0]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x198
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x1d0]
call fcn.140008320
mov rcx, qword [rsp + 0x28]
call fcn.140002780
xor eax, eax
mov rcx, qword [rsp + 0x370]
xor rcx, rsp
call fcn.1400403f0
add rsp, 0x388
pop rdi
pop rsi
ret
Function at 0x140005ee0
Capabilities:
Register raw input devices

Disassembly:
mov byte [rsp + 8], cl
sub rsp, 0x78
mov rax, qword [0x140096780]
xor rax, rsp
mov qword [rsp + 0x60], rax
movzx eax, byte [rsp + 0x80]
movzx ecx, byte [0x1400b9f71]
cmp eax, ecx
jne 0x140005f0f
jmp 0x1400060d1
xorps xmm0, xmm0
movss dword [0x1400b9f68], xmm0
xorps xmm0, xmm0
movss dword [0x1400b9f6c], xmm0
movzx eax, byte [rsp + 0x80]
mov byte [0x1400b9f71], al
mov cl, 0xff
call fcn.140005e90
movzx eax, byte [0x1400b9f71]
test eax, eax
je 0x14000602f
lea rcx, [rsp + 0x28]
call qword [sym.imp.USER32.dll_GetCursorPos]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x140005f7a
mov r8d, 0x1b67
lea rdx, [0x14007cc80]
lea rcx, [0x14007cce0]
call fcn.140047fbc
xor eax, eax
mov eax, dword [rsp + 0x28]
mov dword [0x1400ba0fc], eax
mov eax, dword [rsp + 0x2c]
mov dword [0x1400ba100], eax
mov eax, dword [0x1400ba0fc]
mov dword [rsp + 0x50], eax
mov eax, dword [0x1400ba100]
mov dword [rsp + 0x54], eax
mov eax, dword [0x1400ba0fc]
mov dword [rsp + 0x58], eax
mov eax, dword [0x1400ba100]
mov dword [rsp + 0x5c], eax
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_ClipCursor]
xor ecx, ecx
call qword [sym.imp.USER32.dll_ShowCursor]
mov eax, 1
mov word [rsp + 0x30], ax
mov eax, 2
mov word [rsp + 0x32], ax
mov dword [rsp + 0x34], 0
mov rax, qword [0x1400ba078]
mov qword [rsp + 0x38], rax
mov r8d, 0x10
mov edx, 1
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x140006023
mov r9d, 0x1b82
xor r8d, r8d
mov edx, 1
mov ecx, 0x17
call fcn.1400025a0
mov byte [0x1400ba12c], 0
jmp 0x1400060d1
mov eax, 1
mov word [rsp + 0x40], ax
mov eax, 2
mov word [rsp + 0x42], ax
mov dword [rsp + 0x44], 1
mov qword [rsp + 0x48], 0
mov r8d, 0x10
mov edx, 1
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x140006086
mov r9d, 0x1b8d
xor r8d, r8d
mov edx, 1
mov ecx, 0x18
call fcn.1400025a0
xor ecx, ecx
call qword [sym.imp.USER32.dll_ClipCursor]
mov ecx, 1
call qword [sym.imp.USER32.dll_ShowCursor]
mov edx, dword [0x1400ba100]
mov ecx, dword [0x1400ba0fc]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jne 0x1400060d1
mov r8d, 0x1b96
lea rdx, [0x14007ccf0]
lea rcx, [0x14007cd50]
call fcn.140047fbc
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400403f0
add rsp, 0x78
ret
Function at 0x140006140
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x48
mov dword [rsp + 0x24], 0
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x14000616c
mov eax, dword [rsp + 0x24]
or eax, 1
mov dword [rsp + 0x24], eax
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x14000618c
mov eax, dword [rsp + 0x24]
or eax, 2
mov dword [rsp + 0x24], eax
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x1400061ac
mov eax, dword [rsp + 0x24]
or eax, 4
mov dword [rsp + 0x24], eax
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
mov dword [rsp + 0x38], eax
mov ecx, 0x5c
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
mov ecx, dword [rsp + 0x38]
or ecx, eax
mov eax, ecx
and eax, 0x8000
test eax, eax
je 0x1400061e4
mov eax, dword [rsp + 0x24]
or eax, 8
mov dword [rsp + 0x24], eax
mov ecx, 0x17
call qword [sym.imp.USER32.dll_GetSystemMetrics]
cmp eax, 1
jne 0x1400061fe
mov dword [rsp + 0x28], 1
jmp 0x140006206
mov dword [rsp + 0x28], 0
cmp dword [rsp + 0x28], 0
jne 0x140006217
mov dword [rsp + 0x2c], 0
jmp 0x14000621f
mov dword [rsp + 0x2c], 1
movzx eax, byte [rsp + 0x2c]
mov byte [rsp + 0x20], al
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
test eax, eax
je 0x140006263
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x14000624b
mov dword [rsp + 0x30], 0x200
jmp 0x140006253
mov dword [rsp + 0x30], 0x100
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x24]
or ecx, eax
mov eax, ecx
mov dword [rsp + 0x24], eax
mov ecx, 2
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
test eax, eax
je 0x14000629e
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x140006286
mov dword [rsp + 0x34], 0x100
jmp 0x14000628e
mov dword [rsp + 0x34], 0x200
mov eax, dword [rsp + 0x34]
mov ecx, dword [rsp + 0x24]
or ecx, eax
mov eax, ecx
mov dword [rsp + 0x24], eax
mov ecx, 4
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
test eax, eax
je 0x1400062ba
mov eax, dword [rsp + 0x24]
bts eax, 0xa
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x24]
add rsp, 0x48
ret
Function at 0x140007b10
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp qword [rsp + 0x50], 0
jne 0x140007b3c
mov r8d, 0x1e01
lea rdx, [0x14007d000]
lea rcx, [0x14007d060]
call fcn.140047fbc
xor eax, eax
cmp qword [0x1400ba078], 0
jne 0x140007b61
mov r8d, 0x1e02
lea rdx, [0x14007d070]
lea rcx, [0x14007d0d0]
call fcn.140047fbc
xor eax, eax
movzx eax, byte [0x1400b9f78]
test eax, eax
je 0x140007b75
cmp dword [0x1400b9f7c], 0
jg 0x140007b90
mov r8d, 0x1e03
lea rdx, [0x14007d100]
lea rcx, str._sapp.clipboard.enabled____sapp.clipboard.buf_size___0_
call fcn.140047fbc
xor eax, eax
mov rcx, qword [0x1400ba078]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x140007ba8
xor al, al
jmp 0x140007c88
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
movsxd rax, dword [0x1400b9f7c]
shl rax, 1
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x30]
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140007be8
jmp 0x140007c5a
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140007c02
jmp 0x140007c5a
mov r8d, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
call fcn.140003c80
movzx eax, al
test eax, eax
jne 0x140007c1f
jmp 0x140007c5a
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [rsp + 0x28], 0
call qword [sym.imp.USER32.dll_EmptyClipboard]
mov rdx, qword [rsp + 0x20]
mov ecx, 0xd
call qword [sym.imp.USER32.dll_SetClipboardData]
test rax, rax
jne 0x140007c50
jmp 0x140007c5a
call qword [sym.imp.USER32.dll_CloseClipboard]
mov al, 1
jmp 0x140007c88
cmp qword [rsp + 0x28], 0
je 0x140007c6d
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp qword [rsp + 0x20], 0
je 0x140007c80
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
call qword [sym.imp.USER32.dll_CloseClipboard]
xor al, al
add rsp, 0x48
ret
Function at 0x140007ca0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub rsp, 0x38
movzx eax, byte [0x1400b9f78]
test eax, eax
je 0x140007cb9
cmp qword [0x1400b9f80], 0
jne 0x140007cd4
mov r8d, 0x1e2e
lea rdx, [0x14007d1e0]
lea rcx, str._sapp.clipboard.enabled___sapp.clipboard.buffer
call fcn.140047fbc
xor eax, eax
cmp qword [0x1400ba078], 0
jne 0x140007cf9
mov r8d, 0x1e2f
lea rdx, [0x14007d2b0]
lea rcx, str._sapp.win32.hwnd
call fcn.140047fbc
xor eax, eax
mov rcx, qword [0x1400ba078]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x140007d16
mov rax, qword [0x1400b9f80]
jmp 0x140007db3
mov ecx, 0xd
call qword [sym.imp.USER32.dll_GetClipboardData]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140007d3d
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rax, qword [0x1400b9f80]
jmp 0x140007db3
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140007d64
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rax, qword [0x1400b9f80]
jmp 0x140007db3
mov r8d, dword [0x1400b9f7c]
mov rdx, qword [0x1400b9f80]
mov rcx, qword [rsp + 0x28]
call fcn.140005610
movzx eax, al
test eax, eax
jne 0x140007d9b
mov r9d, 0x1e41
xor r8d, r8d
mov edx, 1
mov ecx, 0x61
call fcn.1400025a0
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rax, qword [0x1400b9f80]
add rsp, 0x38
ret
Function at 0x1400084c0
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x50], 0
lea rdx, [rsp + 0x44]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x140008504
jmp 0x140008630
mov rcx, qword [rsp + 0x80]
call fcn.140044e04
shl rax, 2
mov qword [rsp + 0x58], rax
movsxd rax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x58]
lea rax, [rcx + rax*8 + 8]
mov rcx, rax
call fcn.140002740
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x140008559
mov r8d, 0x1f03
lea rdx, [0x14007d4c0]
lea rcx, str.argv
call fcn.140047fbc
xor eax, eax
mov eax, dword [rsp + 0x44]
inc eax
cdqe
mov rcx, qword [rsp + 0x50]
lea rax, [rcx + rax*8]
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x40], 0
jmp 0x140008583
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x40], eax
jge 0x140008625
movsxd rax, dword [rsp + 0x40]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov ecx, dword [rsp + 0x58]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x20], rcx
mov r9d, 0xffffffff
mov rcx, qword [rsp + 0x68]
mov r8, qword [rcx + rax*8]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
jne 0x1400085e3
jmp 0x140008625
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x60]
mov qword [rcx + rax*8], rdx
movsxd rax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x58]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
movsxd rax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
jmp 0x140008579
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rax, qword [rsp + 0x88]
mov ecx, dword [rsp + 0x44]
mov dword [rax], ecx
mov rax, qword [rsp + 0x50]
add rsp, 0x78
ret

Function at 0x14000a6c0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
add rsp, 0x28
ret