joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400d8e28
Capabilities:
Set thread local storage value

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
mov ebp, 1
mov r12, r8
mov rdi, rdx
mov r15, rcx
mov r14d, ebp
cmp dword [rdx + 0x10], ebp
jle 0x1400d8ebc
lea ebx, [rbp + 7]
lea esi, [rbp + 0xf]
test r12, r12
je 0x1400d8e81
mov rax, qword [r15 + 0x10]
cmp qword [rax + rsi + 8], r12
je 0x1400d8e81
mov rax, qword [rdi + 0x18]
cmp qword [rbx + rax], 0
je 0x1400d8ea8
xor r14d, r14d
jmp 0x1400d8ea8
mov rax, qword [rdi + 0x18]
mov rcx, qword [rbx + rax]
test rcx, rcx
je 0x1400d8e9f
mov rax, qword [rcx]
mov edx, 1
mov rax, qword [rax]
call qword [case.0x1400fc399.0]
mov rax, qword [rdi + 0x18]
and qword [rbx + rax], 0
inc ebp
add rsi, 0x10
add rbx, 8
cmp ebp, dword [rdi + 0x10]
jl 0x1400d8e61
test r14d, r14d
je 0x1400d8f08
lea rcx, [r15 + 0x28]
mov rsi, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [r15 + 0x18]
mov rdx, rdi
call fcn.1400d91dc
lea rcx, [r15 + 0x28]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
mov rax, qword [rax]
call qword [case.0x1400fc399.0]
mov ecx, dword [r15]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
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
Function at 0x1400db82c
Capabilities:
Identify system language via api

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x14024a908]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov edi, ecx
xor esi, esi
mov rcx, qword [0x140255148]
mov r12, r9
mov r15, r8
mov r14, rdx
test rcx, rcx
jne 0x1400db89c
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400db8c3
lea rdx, str.GetThreadPreferredUILanguages
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x140255148], rax
jmp 0x1400db8a5
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rbx, rax
test rbx, rbx
je 0x1400db8c3
mov r9, r12
mov r8, r15
mov rdx, r14
mov ecx, edi
mov rax, rbx
call qword [case.0x1400fc399.0]
jmp 0x1400dba15
mov dword [r14], esi
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ecx, ax
mov r8d, 7
mov esi, ecx
lea rdx, [rbp - 0x20]
and ecx, 0xfc00
and esi, 0x3ff
or ecx, esi
call fcn.1400dbe58
lea rcx, [rbp - 0x20]
call fcn.14019fc28
mov edx, dword [r12]
lea r8, [rbp - 0x20]
mov rcx, r15
lea rdi, [rax + 1]
call fcn.14019fb0c
inc dword [r14]
lea rdx, [rbp - 0x20]
mov r8d, 7
mov ecx, esi
call fcn.1400dbe58
lea rcx, [rbp - 0x20]
call fcn.14019fc28
mov edx, dword [r12]
lea rcx, [r15 + rdi*2]
sub rdx, rdi
lea r8, [rbp - 0x20]
lea rbx, [rax + 1]
call fcn.14019fb0c
inc dword [r14]
add rdi, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx ecx, ax
mov r8d, 7
mov esi, ecx
lea rdx, [rbp - 0x20]
and ecx, 0xfc00
and esi, 0x3ff
or ecx, esi
call fcn.1400dbe58
lea rcx, [rbp - 0x20]
call fcn.14019fc28
mov edx, dword [r12]
lea rcx, [r15 + rdi*2]
sub rdx, rdi
lea r8, [rbp - 0x20]
lea rbx, [rax + 1]
call fcn.14019fb0c
inc dword [r14]
lea rdx, [rbp - 0x20]
mov r8d, 7
mov ecx, esi
add rdi, rbx
call fcn.1400dbe58
lea rcx, [rbp - 0x20]
call fcn.14019fc28
mov edx, dword [r12]
lea rcx, [r15 + rdi*2]
sub rdx, rdi
lea r8, [rbp - 0x20]
lea rbx, [rax + 1]
call fcn.14019fb0c
inc dword [r14]
lea rdx, [rbp - 0x20]
mov r8d, 7
mov ecx, 0x800
add rdi, rbx
call fcn.1400dbe58
lea rcx, [rbp - 0x20]
call fcn.14019fc28
mov edx, dword [r12]
lea rcx, [r15 + rdi*2]
sub rdx, rdi
lea r8, [rbp - 0x20]
mov rbx, rax
call fcn.14019fb0c
inc dword [r14]
lea rcx, [rdi + rbx]
xor eax, eax
mov word [r15 + rcx*2 + 2], ax
mov eax, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140195a10
add rsp, 0x50
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1400de998
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
test byte [rdx + 4], 1
mov esi, r8d
mov rbx, qword [rdx + 0x10]
mov rdi, rdx
mov rbp, rcx
jne 0x1400dea0f
mov rcx, qword [rdi + 8]
mov r8d, 5
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x1400de9df
call fcn.14004502c
mov rcx, qword [rdi + 8]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
jne 0x1400de9f9
call fcn.14004502c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
jne 0x1400dea0f
call fcn.14004502c
call fcn.14003304c
cmp qword [rax + 0x68], 0
je 0x1400dea29
mov rdx, rbx
mov rcx, rbp
call fcn.1400dde58
mov rbx, rax
mov edx, esi
mov rcx, rbx
call fcn.1400dec88
mov rcx, qword [rbp + 0xf8]
mov rsi, rax
test rcx, rcx
je 0x1400dea50
call qword [sym.imp.KERNEL32.dll_GlobalFree]
and qword [rbp + 0xf8], 0
test rsi, rsi
je 0x1400dea5f
mov rbx, rsi
mov qword [rbp + 0xf8], rsi
or dword [rdi + 4], 1
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov qword [rdi + 0x10], rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400e4474
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rdx, [rsp + 0x34]
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x30], eax
cmp eax, 0xffffffff
jne 0x1400e449f
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400e44aa
mov rax, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
lea rcx, [rbx + 0x18]
call fcn.140003970
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov rdx, rbx
call fcn.14015c62c
int3

Function at 0x1400e47d4
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
test r8d, r8d
jne 0x1400e47e6
xor eax, eax
jmp 0x1400e4803
mov rcx, qword [rcx + 8]
lea r9, [rsp + 0x50]
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400e4809
mov eax, dword [rsp + 0x50]
add rsp, 0x30
pop rbx
ret
lea rcx, [rbx + 0x18]
call fcn.140003970
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov rdx, rbx
call fcn.14015c62c
int3

Function at 0x1400e4920
Capabilities:
Write file on windows

Disassembly:
test r8d, r8d
je 0x1400e495e
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov rdi, rcx
mov ebx, r8d
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400e495f
cmp dword [rsp + 0x50], ebx
jne 0x1400e497c
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
lea rcx, [rdi + 0x18]
call fcn.140003970
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov rdx, rbx
call fcn.14015c62c
int3
lea rcx, [rdi + 0x18]
call fcn.140003970
or edx, 0xffffffff
mov r8, rax
lea ecx, [rdx + 0xe]
call fcn.14015c180
int3
Function at 0x14012c924
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
xor ebx, ebx
mov r14, r8
mov rdi, rdx
mov r8, rcx
test rdx, rdx
je 0x14012c9c4
movzx eax, word [rdx]
mov r9d, ebx
test ax, ax
je 0x14012c9c4
movzx eax, ax
inc r9d
add rdx, rax
movzx eax, word [rdx]
test ax, ax
jne 0x14012c954
test r9d, r9d
je 0x14012c9c4
cmp r9d, 1
jne 0x14012c984
mov r8, r14
xor edx, edx
xor ecx, ecx
call sub.SHELL32.dll_SHGetSpecialFolderLocation
test eax, eax
js 0x14012c9dd
xor eax, eax
jmp 0x14012c9c7
lea esi, [r9 - 1]
mov rcx, rdi
test esi, esi
je 0x14012c9a0
mov edx, esi
movzx eax, word [rcx]
add bx, ax
add rcx, rax
sub rdx, 1
jne 0x14012c991
movzx edx, bx
mov rcx, r8
add edx, 2
call fcn.14012c884
movzx r8d, bx
mov rdx, rdi
mov rcx, rax
mov qword [r14], rax
call fcn.140197f90
mov eax, esi
jmp 0x14012c9c7
or eax, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
call fcn.1400472cc
int3

Function at 0x140158de4
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rbx, rdx
mov rcx, qword [rdx]
cmp dword [rcx - 0x10], 0
je 0x140158e16
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140158e16
lea rcx, [rdi + 0x120]
mov rdx, rbx
call fcn.140135ae4
mov rbx, qword [rsp + 0x30]
mov eax, 1
add rsp, 0x20
pop rdi
ret
Function at 0x14015b048
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x3f]
sub rsp, 0x88
mov rdi, rcx
mov esi, 1
mov rax, qword [rcx + 0x20]
neg rax
sbb rdx, rdx
mov qword [rbp + 0x77], rdx
cmp qword [rcx + 0x20], 0
je 0x14015b133
xor esi, esi
and qword [rbp + 0x17], rsi
and dword [rbp + 0x1f], esi
and qword [rbp + 0x27], rsi
mov rax, qword [rcx]
lea rdx, [rbp + 0xf]
mov rax, qword [rax + 0x40]
call qword [case.0x1400fc399.0]
nop
mov rbx, qword [rax]
call fcn.14003304c
xor edx, edx
mov rcx, qword [rax + 8]
call fcn.1400a5c8c
nop
and qword [rbp + 0x7f], rsi
lea rcx, [rbp + 0x67]
mov qword [rsp + 0x40], rcx
lea rcx, [rbp + 0x7f]
mov qword [rsp + 0x38], rcx
and qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x2001f
and dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test eax, eax
jne 0x14015b0f7
mov rax, qword [rbp + 0x7f]
mov qword [rbp + 0x17], rax
and dword [rbp + 0x1f], ebx
mov rdx, qword [rbp + 0xf]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14015b11c
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400fc399.0]
test ebx, ebx
je 0x14015b222
mov rcx, qword [rbp + 0x17]
test rcx, rcx
je 0x14015b133
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
add rsp, 0x88
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.14004764c
mov rcx, rax
test rax, rax
je 0x14015b251
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x1400fc399.0]
add rax, 0x18
mov qword [rbp + 0x6f], rax
call fcn.14004764c
mov rcx, rax
test rax, rax
je 0x14015b246
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x1400fc399.0]
add rax, 0x18
mov qword [rbp + 7], rax
lea rcx, [rdi + 8]
lea r9, [rbp + 7]
lea r8, [rbp + 0x6f]
lea rdx, [rbp + 0x77]
call fcn.140159330
mov rbx, qword [rbp + 7]
test rbx, rbx
je 0x14015b1db
mov rcx, rbx
call fcn.14019fc28
lea ecx, [rax*2 + 2]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rbp + 0x6f]
mov rcx, qword [rbp + 0x17]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14015b1fd
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400fc399.0]
nop
mov rdx, qword [rbp + 0x6f]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14015b222
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400fc399.0]
cmp qword [rbp + 0x77], 0
jne 0x14015b141
mov rcx, qword [rbp + 0x17]
test rcx, rcx
je 0x14015b23c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x14015b135
mov ecx, 0x80004005
call fcn.140003780
nop
mov ecx, 0x80004005
call fcn.140003780
int3
Function at 0x140167ef4
Capabilities:
Get graphical window text

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 r14
sub rsp, 0x20
mov rdi, r8
mov rbx, rcx
call fcn.140168034
xor r14d, r14d
mov esi, 1
mov rbp, rax
mov dword [rbx + 0x14], esi
mov rcx, rax
cmp dword [rbx], r14d
je 0x140167fa9
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
movsxd rbx, eax
test eax, eax
js 0x140167fcc
mov rcx, qword [rdi]
mov edx, dword [rcx - 0xc]
sub esi, dword [rcx - 8]
sub edx, ebx
or esi, edx
jge 0x140167f58
mov edx, ebx
mov rcx, rdi
call fcn.140003710
mov rdx, qword [rdi]
cmp ebx, dword [rdx - 0xc]
jg 0x140167fcc
mov dword [rdx - 0x10], ebx
lea r8d, [rbx + 1]
mov rax, qword [rdi]
mov rcx, rbp
mov word [rax + rbx*2], r14w
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, qword [rdi]
test rcx, rcx
jne 0x140167f85
mov eax, r14d
jmp 0x140167f92
movsxd rdx, dword [rcx - 0xc]
call fcn.14019fd54
test eax, eax
js 0x140167fcc
mov rcx, qword [rdi]
cmp eax, dword [rcx - 0xc]
jg 0x140167fcc
mov dword [rcx - 0x10], eax
mov ecx, eax
mov rax, qword [rdi]
mov word [rax + rcx*2], r14w
jmp 0x140167fb1
mov rdx, qword [rdi]
call fcn.1400dc180
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov ecx, 0x80070057
call fcn.140003780
int3

Function at 0x140168088
Capabilities:
Get graphical window text

Disassembly:
mov r11, rsp
mov dword [r11 + 0x20], r9d
push rbx
push rbp
push rsi
push rdi
push r15
sub rsp, 0xd0
mov rax, qword [0x14024a908]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbp, r8
lea r15, [r11 + 0x28]
mov rdi, rcx
call fcn.140168034
cmp dword [rdi], 0
mov rsi, rax
mov dword [rdi + 0x14], 1
je 0x14016811d
mov rbx, qword [r15]
lea rdx, [rsp + 0x40]
mov r8d, 0x40
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov r9, rbx
lea rcx, [rsp + 0x40]
mov r8, rbp
mov edx, 0x40
call fcn.1401681d8
cmp eax, 1
je 0x140168196
mov ecx, dword [rsp + 0x118]
or r8d, 0xffffffff
xor edx, edx
call fcn.140043f64
mov rcx, rdi
call fcn.140167fd8
jmp 0x140168196
call fcn.14019f860
mov ebx, dword [rax]
call fcn.14019f860
and dword [rax], 0
call fcn.140003770
mov r9d, 0x3f
mov qword [rsp + 0x30], r15
and qword [rsp + 0x28], 0
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x20], rbp
mov rcx, qword [rax]
lea r8d, [r9 + 1]
call fcn.14019ee20
call fcn.14019f860
cmp dword [rax], 0
je 0x140168182
call fcn.14019f860
cmp dword [rax], 0
je 0x140168189
cmp dword [rax], 0xc
je 0x1401681ca
cmp dword [rax], 0x16
je 0x1401681bf
cmp dword [rax], 0x22
je 0x1401681bf
cmp dword [rax], 0x50
jne 0x1401681b4
jmp 0x140168189
call fcn.14019f860
mov dword [rax], ebx
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1400dc180
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140195a10
add rsp, 0xd0
pop r15
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov ecx, 0x80004005
call fcn.140003780
int3
mov ecx, 0x80070057
call fcn.140003780
int3
mov ecx, 0x8007000e
call fcn.140003780
int3
Function at 0x140168794
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov r14, r9
mov r15, r8
mov rdi, rdx
mov rbp, rcx
test rdx, rdx
je 0x140168855
mov esi, 0x811c9dc5
xor ebx, ebx
mov rcx, rdx
call fcn.14019fc28
mov r8, rax
mov eax, 0xcccccccd
mul r8d
shr edx, 3
inc edx
test r8d, r8d
je 0x1401687f8
movzx ecx, word [rdi + rbx*2]
imul esi, esi, 0x1000193
xor esi, ecx
add ebx, edx
cmp ebx, r8d
jb 0x1401687e5
mov dword [r14], esi
xor edx, edx
mov eax, esi
div dword [rbp + 0x10]
mov dword [r15], edx
mov rbx, qword [rbp + 8]
test rbx, rbx
je 0x14016883a
mov rbx, qword [rbx + rdx*8]
test rbx, rbx
je 0x14016883a
mov eax, dword [r14]
cmp dword [rbx + 8], eax
jne 0x140168830
mov rdx, rdi
mov rcx, qword [rbx + 0x10]
call fcn.14019fbb0
nop
test eax, eax
je 0x140168835
mov rbx, qword [rbx]
jmp 0x140168812
mov rax, rbx
jmp 0x14016883c
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
call fcn.1400472cc
int3
Function at 0x14017da00
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rsi, rdx
mov rbp, rcx
cmp dword [rdx + 8], 0x100
jne 0x14017db35
mov ebx, dword [rdx + 0x10]
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x14017db35
cmp ebx, 0x43
je 0x14017da4c
cmp ebx, 0x2d
jne 0x14017db35
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x14017db35
call qword [sym.imp.USER32.dll_EmptyClipboard]
nop
call fcn.14004764c
mov rcx, rax
test rax, rax
je 0x14017db52
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x1400fc399.0]
add rax, 0x18
mov qword [rsp + 0x58], rax
movzx eax, byte [rbp + 0x196]
movzx r9d, byte [rbp + 0x195]
movzx r8d, byte [rbp + 0x194]
mov dword [rsp + 0x20], eax
lea rdx, str.RGB__d___d___d_
lea rcx, [rsp + 0x58]
call fcn.140003940
mov rbx, qword [rsp + 0x58]
mov eax, dword [rbx - 0x10]
inc eax
movsxd rdx, eax
add rdx, rdx
mov ecx, 0x2000
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r14, rax
test rax, rax
je 0x14017db0c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x14017db0c
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, r14
mov ecx, 0xd
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
nop
or eax, 0xffffffff
lock xadd dword [rbx - 8], eax
sub eax, 1
jg 0x14017db35
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
lea rdx, [rbx - 0x18]
mov rax, qword [rax + 8]
call qword [case.0x1400fc399.0]
mov rdx, rsi
mov rcx, rbp
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
jmp method.CDialogEx.virtual_536
mov ecx, 0x80004005
call fcn.140003780
int3

Function at 0x14018f5d0
Capabilities:
Get file system object information

Disassembly:
push rbx
sub rsp, 0x310
mov rax, qword [0x14024a908]
xor rax, rsp
mov qword [rsp + 0x300], rax
mov qword [rsp + 0x38], rdx
mov rax, r8
mov rbx, rdx
test r8, r8
je 0x14018f64f
mov rcx, qword [rax + 8]
lea r8, [rsp + 0x40]
mov r9d, 0x2b8
mov dword [rsp + 0x20], 0x208
xor edx, edx
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov rcx, rbx
lea rdx, [rsp + 0x50]
test rax, rax
jne 0x14018f62e
lea rdx, [0x14020c330]
call fcn.140004b80
mov rax, rbx
mov rcx, qword [rsp + 0x300]
xor rcx, rsp
call fcn.140195a10
add rsp, 0x310
pop rbx
ret
call fcn.1400472cc
int3

Function at 0x140196770
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401967ba
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401967ba
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401967ba
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401967ba
cmp dword [rcx + 0x84], 0xe
jbe 0x1401967ba
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1401967bc
xor al, al
add rsp, 0x28
ret

Function at 0x1401ac62c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1401ac41c
Function at 0x1401b3960
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1401b39e7
mov rsi, rbx
cmp word [rax], bp
je 0x1401b39a6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1401b3990
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1401b398c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1401acf0c
mov rdi, rax
test rax, rax
je 0x1401b39d4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140197f90
mov rbp, rdi
xor ecx, ecx
call fcn.1401aced0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1401b8150
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1401b8178
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1401b8178
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14002e810
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x958
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x8c0], xmm8
movaps xmmword [rbp + 0x8b0], xmm7
movaps xmmword [rbp + 0x8a0], xmm6
mov qword [rbp + 0x898], 0xfffffffffffffffe
mov rbx, r8
mov r15, rdx
mov qword [rbp + 0x718], rcx
mov rcx, qword [rdx + 0x130]
test rcx, rcx
je 0x14002e875
mov rdx, rbx
call fcn.14015a810
test al, al
je 0x140030c39
lea rax, [r15 + 0x118]
mov qword [rbp + 0x280], rax
lea rax, [r15 + 0x20]
mov qword [rbp + 0x578], rax
lea r14, [r15 + 0x88]
lea rax, [r15 + 0xf8]
mov qword [rbp + 0x690], rax
lea rax, [r15 + 0xfb]
mov qword [rbp + 0x478], rax
xorps xmm6, xmm6
movaps xmm7, xmmword [0x1401b5eb0]
lea rax, [r15 + 0x28]
mov qword [rbp + 0x838], rax
lea rax, [r15 + 0x40]
mov qword [rbp + 0x288], rax
lea rax, [r15 + 0x58]
mov qword [rbp + 0x290], rax
lea rax, [r15 + 0xc8]
mov qword [rbp + 0x700], rax
lea rax, [r15 + 0xe0]
mov qword [rbp + 0x298], rax
lea rax, [0x1401b71e8]
mov qword [rbp + 0x588], rax
mov qword [rbp + 0x860], r15
mov qword [rbp + 0x710], r14
mov qword [rbp + 0x460], rbx
mov word [rbp + 0x788], 1
mov qword [rbp + 0x778], 1
lea rax, [0x1401b49d8]
mov qword [rbp + 0x780], rax
movabs rax, 0x8000000000000000
mov qword [rbp + 0x720], rax
movzx eax, byte [0x1402a6fe1]
mov ecx, WSAStartup
mov edx, 8
call fcn.140018250
test rax, rax
je 0x140031788
mov rsi, rax
movups xmm0, xmmword [rbp + 0x780]
movups xmmword [rax + 0x60], xmm0
movups xmm0, xmmword [rbp + 0x770]
movups xmmword [rax + 0x50], xmm0
movups xmm0, xmmword [rbp + 0x760]
movups xmmword [rax + 0x40], xmm0
movups xmm0, xmmword [rbp + 0x720]
movups xmm1, xmmword [rbp + 0x730]
movups xmm2, xmmword [rbp + 0x740]
movups xmm3, xmmword [rbp + 0x750]
movups xmmword [rax + 0x30], xmm3
movups xmmword [rax + 0x20], xmm2
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
mov qword [rbp + 0x2a0], rax
lea rdx, [r15 + 0x88]
lea rcx, [rbp + 0x720]
call fcn.140199030
movups xmm6, xmmword [r15 + 0xb4]
movups xmm0, xmmword [r15 + 0xc8]
movzx eax, byte [r15 + 0xd8]
mov byte [rbp + 0x390], al
movaps xmmword [rbp + 0x380], xmm0
movzx r14d, word [r15 + 0xb0]
mov rax, r15
movzx r15d, word [r15 + 0xb2]
mov ecx, dword [rax + 0xc4]
mov r12d, dword [rax + 0xa0]
mov r13d, dword [rax + 0xa4]
mov edi, dword [rax + 0xa8]
mov ebx, dword [rax + 0xac]
mov rax, qword [rbp + 0x730]
mov qword [rbp + 0x5a0], rax
movups xmm0, xmmword [rbp + 0x720]
movaps xmmword [rbp + 0x590], xmm0
mov rdx, qword [rsi]
movabs rax, 0x8000000000000000
cmp rdx, rax
je 0x140030d9a
test rdx, rdx
je 0x140030d9a
mov dword [rbp + 0x838], ecx
mov rcx, qword [rsi + 8]
mov r8d, 1
call fcn.140018260
mov ecx, dword [rbp + 0x838]
mov rax, qword [rbp + 0x5a0]
mov qword [rsi + 0x10], rax
movaps xmm0, xmmword [rbp + 0x590]
movups xmmword [rsi], xmm0
mov dword [rsi + 0x18], r12d
mov dword [rsi + 0x1c], r13d
mov dword [rsi + 0x20], edi
mov dword [rsi + 0x24], ebx
mov word [rsi + 0x28], r14w
mov word [rsi + 0x2a], r15w
jmp 0x1400311f0
mov ecx, 8
mov edx, WSAStartup
call fcn.1401b0860
jmp 0x14003180f