joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003a30
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140003a64
cmp word [rcx], 0x5a4d
jne 0x140003a64
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140003a64
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003a64
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140003970
test eax, eax
jne 0x140003a80
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.1400039e0
test rax, rax
je 0x140003a75
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.14000422f
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x140004130
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.1400040d0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140004584
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x140535ef8]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x140535ef4]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x1400045d2
mov rdx, qword [rax]
cmp r12, rdx
jb 0x1400045ca
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1400046b9
inc ebx
add rax, 0x28
jmp 0x1400045aa
mov rcx, r12
call fcn.140004db1
mov rbp, rax
test rax, rax
jne 0x1400045f1
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140004520
movsxd rbx, ebx
mov rax, qword [0x140535ef8]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.140004e5f
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140535ef8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140004653
mov rax, qword [0x140535ef8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140004520
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400046b3
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400046b3
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140535ef8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400046b3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140004520
inc dword [0x140535ef4]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140004ae0
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x140535f60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140535f40]
test rbx, rbx
je 0x140004b2c
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140004b26
test eax, eax
jne 0x140004b26
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140004afe
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140004ce0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140004d03
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140004d03
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140004d04
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x140004d3e
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140004d35
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140004d40
inc r8d
add rax, 0x28
jmp 0x140004d1c
xor eax, eax
ret

Function at 0x140004db1
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140532090]
mov r8, rcx
mov rcx, r9
call fcn.140004ce0
test eax, eax
je 0x140004ddd
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140004d04
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400084c8
Capabilities:
Open clipboard

Disassembly:
push rbx
sub rsp, 0x30
and dword [rsp + 0x50], 0
mov rbx, rdx
lea r8, [rsp + 0x50]
lea rdx, [0x140002450]
lea rcx, [rsp + 0x20]
call fcn.1400214f4
mov rcx, rbx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x140008542
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov dword [rsp + 0x50], ebx
mov rcx, qword [0x14002b160]
lea rax, [0x14002b160]
cmp rcx, rax
je 0x140008546
test byte [rcx + 0x1c], 4
je 0x140008546
mov rcx, qword [rcx + 0x10]
lea r8, [0x140002080]
mov edx, 0xb
mov r9d, ebx
call fcn.140006078
mov ebx, dword [rsp + 0x50]
lea rcx, [rsp + 0x20]
call fcn.140021548
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x1400085f0
Capabilities:
Write clipboard data

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
push rbx
sub rsp, 0x30
and dword [rax + 0x20], 0
mov rbx, r8
lea rdx, [0x140002480]
lea r8, [rax + 0x20]
lea rcx, [rax - 0x18]
call fcn.1400214f4
mov rdx, rbx
mov ecx, 2
call qword [sym.imp.USER32.dll_SetClipboardData]
test rax, rax
jne 0x140008678
test rbx, rbx
je 0x140008678
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov dword [rsp + 0x58], ebx
mov rcx, qword [0x14002b160]
lea rax, [0x14002b160]
cmp rcx, rax
je 0x14000867c
test byte [rcx + 0x1c], 4
je 0x14000867c
mov rcx, qword [rcx + 0x10]
lea r8, [0x140002080]
mov edx, 0xd
mov r9d, ebx
call fcn.140006078
mov ebx, dword [rsp + 0x58]
lea rcx, [rsp + 0x20]
call fcn.140021548
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x140008710
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x690
mov rax, qword [0x14002b138]
xor rax, rsp
mov qword [rsp + 0x680], rax
lea r8, [rsp + 0x40]
lea rdx, [0x140002560]
lea rcx, [rsp + 0x50]
xor ebx, ebx
mov dword [rsp + 0x40], ebx
call fcn.1400214f4
mov dword [rsp + 0x38], ebx
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rbx
lea rdi, [0x1400024d0]
lea esi, [rbx + 1]
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x48]
lea rdx, [0x140002690]
mov rcx, rdi
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x44], 0x208
mov dword [rsp + 0x48], esi
mov qword [rsp + 0x20], rax
call sub.SHLWAPI.dll_SHRegGetUSValueW
mov word [rsp + 0x266], bx
cmp eax, ebx
jne 0x14000887c
lea rdx, [0x140002498]
lea rcx, [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_StrCmpICW]
cmp eax, ebx
jne 0x1400087c4
mov bl, sil
jmp 0x14000887c
lea rcx, [rsp + 0x272]
xor edx, edx
mov r8d, 0x40e
mov word [rsp + 0x270], bx
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x270]
sub rdi, rax
mov r11d, 0x208
lea rcx, [rsp + 0x270]
mov r8d, ebx
lea rax, [r11 + 0x7ffffdf6]
cmp rax, rbx
je 0x14000881e
movzx eax, word [rdi + rcx]
cmp ax, bx
je 0x14000881e
mov word [rcx], ax
add rcx, 2
sub r11, rsi
jne 0x1400087fd
cmp r11, rbx
jne 0x14000882d
sub rcx, 2
mov r8d, 0x8007007a
cmp r8d, ebx
mov word [rcx], bx
mov dword [rsp + 0x40], r8d
jl 0x14000887c
lea r8, [rsp + 0x60]
lea rcx, [rsp + 0x270]
mov edx, 0x208
call fcn.140009460
cmp eax, ebx
mov dword [rsp + 0x40], eax
jl 0x14000887c
lea r8, [rsp + 0x4c]
lea rdx, [0x1400024b8]
lea rcx, [rsp + 0x270]
call fcn.140023a44
movzx ecx, bl
cmp eax, ebx
cmove ecx, esi
mov bl, cl
lea rcx, [rsp + 0x50]
call fcn.140021548
mov al, bl
mov rcx, qword [rsp + 0x680]
xor rcx, rsp
call fcn.1400247e0
lea r11, [rsp + 0x690]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140009154
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
sub rsp, 0x260
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x14002b138]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, rdx
mov rsi, rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
lea r8, [rsp + 0x20]
lea rdx, [0x140002648]
lea rcx, [rsp + 0x30]
call fcn.1400214f4
nop
lea rdx, [rsp + 0x40]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov word [rdi], bp
cmp eax, ebp
jbe 0x140009227
lea r9, [0x140002670]
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.SHELL32.dll_PathYetAnotherMakeUniqueName]
cmp eax, ebp
jne 0x140009221
lea rax, [0x14002b160]
mov rcx, qword [0x14002b160]
cmp rcx, rax
je 0x140009207
test byte [rcx + 0x1c], 4
je 0x140009207
lea edx, [rbp + 0x15]
mov r9d, dword [rsp + 0x20]
lea r8, [0x140002070]
mov rcx, qword [rcx + 0x10]
call fcn.140006078
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
cmp eax, ebp
cmovle ebx, eax
mov dword [rsp + 0x20], ebx
jmp 0x140009274
mov ebx, dword [rsp + 0x20]
jmp 0x140009274
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
cmp eax, ebp
cmovle ebx, eax
mov dword [rsp + 0x20], ebx
lea rax, [0x14002b160]
mov rcx, qword [0x14002b160]
cmp rcx, rax
je 0x140009274
test byte [rcx + 0x1c], 4
je 0x140009274
mov edx, 0x16
mov r9d, ebx
lea r8, [0x140002070]
mov rcx, qword [rcx + 0x10]
call fcn.140006078
mov ebx, dword [rsp + 0x20]
cmp ebx, ebp
jl 0x14000928f
mov r8d, 1
mov rdx, rdi
mov rcx, rsi
call fcn.14000fe68
mov ebx, eax
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x30]
call fcn.140021548
mov eax, ebx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400247e0
mov rbx, qword [rsp + 0x290]
add rsp, 0x260
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400092c4
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x470
mov rax, qword [0x14002b138]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rbp, r9
mov rsi, r8
mov edi, edx
test rcx, rcx
jne 0x1400092fc
mov eax, 0x80070057
jmp 0x1400093c7
test edx, edx
je 0x140009346
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x250]
call fcn.140008e6c
mov ebx, eax
test eax, eax
js 0x1400093c5
lea r8, [rsp + 0x250]
mov rdx, rsi
mov rcx, rbp
call fcn.1400088b4
lea rcx, [rsp + 0x40]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rsp + 0x250]
jmp 0x14000936d
lea rdx, [rsp + 0x40]
call fcn.140009154
mov ebx, eax
test eax, eax
js 0x1400093c5
lea r8, [rsp + 0x40]
mov rdx, rsi
mov rcx, rbp
call fcn.1400088b4
lea rcx, [rsp + 0x40]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test ebx, ebx
js 0x1400093c5
mov rcx, qword [0x14002b160]
lea rax, [0x14002b160]
cmp rcx, rax
je 0x1400093c5
bt dword [rcx + 0x1c], 0xd
jae 0x1400093c5
mov rcx, qword [rcx + 0x10]
neg edi
mov edx, 0x17
sbb eax, eax
lea r9d, [rdx - 0x10]
lea r8, [0x140002070]
add eax, 0x1394
mov dword [rsp + 0x38], eax
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
mov dword [rsp + 0x20], ebx
call fcn.140008694
mov eax, ebx
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.1400247e0
mov rbx, qword [rsp + 0x498]
add rsp, 0x470
pop rdi
pop rsi
pop rbp
ret
Function at 0x140012064
Capabilities:
Extract resource via kernel32 functions

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 r14
sub rsp, 0x20
mov eax, r8d
mov rbp, rdx
mov r14d, 1
shr eax, 4
mov ebx, r8d
mov rsi, rcx
add ax, r14w
lea r8d, [r14 + 5]
mov rcx, rbp
movzx edx, ax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
xor r13d, r13d
mov r12, rax
cmp rax, r13
je 0x1400121da
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
cmp rax, r13
je 0x1400121da
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
cmp rax, r13
je 0x1400121da
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rdi
and ebx, 0xf
jbe 0x140012110
cmp rdi, r11
jae 0x1400121da
add ebx, 0xffffffff
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
jne 0x1400120fa
cmp rdi, r11
jae 0x1400121da
cmp word [rdi], r13w
je 0x1400121da
mov rax, qword [rsi]
movzx ebx, word [rdi]
mov ecx, r14d
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, ebx
or ecx, eax
jge 0x140012142
mov edx, ebx
mov rcx, rsi
call fcn.14001243c
movzx ecx, word [rdi]
lea r8, [rdi + 2]
cmp ecx, 0xffffffff
jne 0x140012163
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r8
repne scasw ax, word [rdi]
not rcx
sub rcx, r14
add ecx, r14d
movsxd r9, ecx
mov rcx, qword [rsi]
lea rdi, [rbx + rbx]
mov rdx, rdi
add r9, r9
call sub.msvcrt.dll_memcpy_s
cmp eax, r13d
je 0x1400121b2
cmp eax, 0xc
je 0x1400121a7
cmp eax, 0x16
je 0x14001219c
cmp eax, 0x22
je 0x14001219c
cmp eax, 0x50
je 0x1400121b2
mov ecx, 0x80004005
call fcn.14000adb8
int3
mov ecx, 0x80070057
call fcn.14000adb8
int3
mov ecx, 0x8007000e
call fcn.14000adb8
int3
cmp ebx, r13d
jl 0x1400121cf
mov rcx, qword [rsi]
cmp ebx, dword [rcx - 0xc]
jg 0x1400121cf
mov dword [rcx - 0x10], ebx
mov rcx, qword [rsi]
mov eax, r14d
mov word [rdi + rcx], r13w
jmp 0x1400121dc
mov ecx, 0x80070057
call fcn.14000adb8
int3
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 r14
pop r13
pop r12
ret
Function at 0x140012204
Capabilities:
Extract resource via kernel32 functions

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 r14
sub rsp, 0x20
mov r13, rcx
mov r12d, edx
lea rcx, [0x14002b3d0]
xor edx, edx
xor ebx, ebx
call fcn.1400242bc
lea r14d, [rbx + 1]
mov ebp, r14d
jmp 0x1400122ea
test rbx, rbx
jne 0x1400122f6
mov eax, r12d
lea edx, [rbx + 6]
xor r9d, r9d
shr eax, 4
mov rcx, rsi
add ax, r14w
movzx r8d, ax
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
mov rbx, rax
test rax, rax
je 0x1400122d9
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140012286
xor ebx, ebx
jmp 0x1400122d4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x140012282
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, r12d
mov r11d, eax
add r11, rdi
and ecx, 0xf
jbe 0x1400122c3
cmp rdi, r11
jae 0x140012282
add ecx, 0xffffffff
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
jne 0x1400122b1
cmp rdi, r11
jae 0x140012282
movzx eax, word [rdi]
neg ax
sbb rbx, rbx
and rbx, rdi
test rbx, rbx
jne 0x1400122f8
lea rcx, [0x14002b3d0]
mov edx, ebp
call fcn.1400242bc
add ebp, r14d
mov rsi, rax
test rax, rax
jne 0x140012243
xor esi, esi
test rsi, rsi
jne 0x140012301
xor eax, eax
jmp 0x14001230f
mov r8d, r12d
mov rdx, rsi
mov rcx, r13
call fcn.140012064
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop r12
ret
Function at 0x140018404
Capabilities:
Identify system language via api

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x70
and dword [rax + 8], 0
mov r12, r8
mov rbx, rdx
mov rsi, rcx
lea r8, [rax + 8]
lea rdx, [0x140003b10]
lea rcx, [rax - 0x28]
mov edi, r9d
call fcn.1400214f4
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
mov ecx, 0x3ff
and ax, cx
cmp ax, 0xd
jne 0x14001845c
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.14002363c
mov r9, qword [rsi + 0x78]
mov dword [rsp + 0x40], 0x13
and qword [rsp + 0x38], 0
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov edx, 2
mov rcx, rbx
mov r8d, edx
call qword [sym.imp.USER32.dll_DrawIconEx]
test eax, eax
jne 0x1400184ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx r9d, ax
or r9d, 0x80070000
test eax, eax
cmovle r9d, eax
mov dword [rsp + 0x90], r9d
mov rcx, qword [0x14002b160]
lea rax, [0x14002b160]
cmp rcx, rax
je 0x14001860a
test byte [rcx + 0x1c], 4
je 0x14001860a
mov rcx, qword [rcx + 0x10]
lea r8, [0x140001ec0]
mov edx, 0x4b
call fcn.140006078
jmp 0x14001860a
test edi, edi
je 0x14001860a
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
lea ecx, [rdx + 5]
call fcn.1400221c4
mov rdi, rax
test rax, rax
je 0x14001860a
lea r8, [rsp + 0x90]
mov rdx, rax
mov rcx, rbx
call fcn.140021714
mov rsi, rax
test rax, rax
je 0x140018600
xor edx, edx
lea ecx, [rdx + 5]
call fcn.140022db0
xor r8d, r8d
mov rcx, rbx
mov rdx, rax
call fcn.140021714
mov rbp, rax
test rax, rax
je 0x1400185f2
lea r8, [rsp + 0x90]
lea rdx, [rsp + 0x50]
mov rcx, r12
call fcn.140022044
cmp dword [rsp + 0x90], 0
jl 0x1400185e4
mov ecx, dword [rsp + 0x5c]
mov r9d, dword [rsp + 0x58]
mov r8d, dword [rsp + 0x54]
mov edx, dword [rsp + 0x50]
mov dword [rsp + 0x20], ecx
mov rcx, rbx
call qword [sym.imp.GDI32.dll_Rectangle]
test eax, eax
jne 0x1400185e4
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx r9d, ax
or r9d, 0x80070000
test eax, eax
cmovle r9d, eax
mov dword [rsp + 0x90], r9d
mov rcx, qword [0x14002b160]
lea rax, [0x14002b160]
cmp rcx, rax
je 0x1400185e4
test byte [rcx + 0x1c], 4
je 0x1400185e4
mov rcx, qword [rcx + 0x10]
lea r8, [0x140001ec0]
mov edx, 0x4c
call fcn.140006078
xor r8d, r8d
mov rdx, rbp
mov rcx, rbx
call fcn.140021714
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call fcn.140021714
xor edx, edx
mov rcx, rdi
call fcn.1400217d4
lea rcx, [rsp + 0x60]
call fcn.140021548
lea r11, [rsp + 0x70]
xor eax, eax
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x14001eb24
Capabilities:
Write clipboard data

Disassembly:
push rbx
sub rsp, 0x40
and dword [rsp + 0x58], 0
mov rbx, rcx
lea r8, [rsp + 0x58]
lea rcx, [rsp + 0x30]
lea rdx, [0x1400042c0]
call fcn.1400214f4
lea rdx, [0x140002408]
lea rcx, [rsp + 0x20]
xor r8d, r8d
call fcn.1400214f4
lea rcx, [rsp + 0x20]
call fcn.140021548
cmp qword [rbx + 0x28], 0
jne 0x14001eba5
mov rcx, qword [0x14002b160]
lea rax, [0x14002b160]
cmp rcx, rax
je 0x14001ec0f
test byte [rcx + 0x1c], 0x10
je 0x14001ec0f
mov rcx, qword [rcx + 0x10]
lea r8, [0x140001d50]
mov edx, 0x22
call fcn.14000add8
jmp 0x14001ec0f
mov rdx, qword [rbx + 0x48]
lea rcx, [rsp + 0x50]
call fcn.1400084c8
mov dword [rsp + 0x58], eax
test eax, eax
js 0x14001ec0f
lea rcx, [rsp + 0x50]
call fcn.140008560
mov dword [rsp + 0x58], eax
test eax, eax
js 0x14001ec05
and dword [rsp + 0x50], 0
lea r8, [rsp + 0x50]
lea rdx, [0x140002480]
lea rcx, [rsp + 0x20]
call fcn.1400214f4
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.USER32.dll_SetClipboardData]
mov ebx, dword [rsp + 0x50]
lea rcx, [rsp + 0x20]
call fcn.140021548
mov dword [rsp + 0x58], ebx
lea rcx, [rsp + 0x50]
call fcn.140008438
lea rdx, [0x140002420]
lea rcx, [rsp + 0x20]
xor r8d, r8d
call fcn.1400214f4
lea rcx, [rsp + 0x20]
call fcn.140021548
lea rcx, [rsp + 0x30]
call fcn.140021548
add rsp, 0x40
pop rbx
ret

Function at 0x140022328
Capabilities:
Inspect load icon resource

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], r8
push rbx
sub rsp, 0x30
and dword [rax + 0x18], 0
mov rbx, rcx
lea r8, [rax + 0x18]
lea rcx, [rax - 0x18]
lea rdx, [0x140004840]
call fcn.1400214f4
mov edx, 0xa5
mov rcx, rbx
call qword [sym.imp.USER32.dll_LoadIconW]
mov rbx, rax
test rax, rax
jne 0x1400223ad
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx r9d, ax
or r9d, 0x80070000
test eax, eax
cmovle r9d, eax
mov dword [rsp + 0x50], r9d
mov rcx, qword [0x14002b160]
lea rax, [0x14002b160]
cmp rcx, rax
je 0x1400223ad
test byte [rcx + 0x1c], 4
je 0x1400223ad
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x31]
lea r8, [0x140001d20]
call fcn.140006078
lea rcx, [rsp + 0x20]
call fcn.140021548
mov rax, rbx
add rsp, 0x30
pop rbx
ret

Function at 0x140022790
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x40
and dword [rax + 0x38], 0
mov rdi, rdx
mov rsi, rcx
lea rdx, [0x1400048f0]
lea rcx, [rax - 0x18]
lea r8, [rax + 0x38]
mov rbx, r9
call fcn.1400214f4
mov r11, qword [rsp + 0x78]
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x28], r11
mov r9, rbx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
je 0x140022834
movzx r9d, ax
or r9d, 0x80070000
test eax, eax
cmovle r9d, eax
mov dword [rsp + 0x80], r9d
mov rcx, qword [0x14002b160]
lea rax, [0x14002b160]
cmp rcx, rax
je 0x140022834
test byte [rcx + 0x1c], 4
je 0x140022834
mov rcx, qword [rcx + 0x10]
lea r8, [0x140001d20]
mov edx, 0x41
call fcn.140006078
lea rcx, [rsp + 0x30]
call fcn.140021548
mov rsi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x1400229d0
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x50
and dword [rax - 0x28], 0
mov rbx, rdx
mov rdi, rcx
lea rdx, [0x140004910]
lea rcx, [rax - 0x20]
lea r8, [rax - 0x28]
call fcn.1400214f4
mov rax, qword [rsp + 0x80]
mov r9d, 4
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
je 0x140022a71
movzx r8d, ax
or r8d, 0x80070000
test eax, eax
cmovle r8d, eax
mov dword [rsp + 0x30], r8d
mov rcx, qword [0x14002b160]
lea rax, [0x14002b160]
cmp rcx, rax
je 0x140022a76
test byte [rcx + 0x1c], 4
je 0x140022a76
mov rcx, qword [rcx + 0x10]
mov r9d, r8d
lea r8, [0x140001d20]
mov edx, 0x42
call fcn.140006078
mov r8d, dword [rsp + 0x30]
mov rax, qword [rsp + 0x90]
test rax, rax
je 0x140022a86
mov dword [rax], r8d
lea rcx, [rsp + 0x38]
call fcn.140021548
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x140024340
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x14002b138]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call sub.msvcrt.dll_memset
and qword [rbx + 0x50], 0
and dword [rbx + 0x58], 0
and dword [rbx + 0x5c], 0
lea rax, [0x140000000]
mov esi, 0x94
lea rcx, [rsp + 0x20]
mov r8, rsi
xor edx, edx
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rax
mov dword [rbx], 0x60
mov byte [rbx + 0x18], 0
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x30], 2
mov esi, 1
jne 0x1400243d3
cmp dword [rsp + 0x24], 5
jb 0x1400243ed
jmp 0x1400243e9
cmp dword [rsp + 0x30], esi
jne 0x1400243ed
cmp dword [rsp + 0x24], 4
ja 0x1400243e9
jne 0x1400243ed
cmp dword [rsp + 0x28], 0
jbe 0x1400243ed
mov byte [rbx + 0x18], sil
lea rax, [0x140001b08]
lea rcx, [rbx + 0x28]
mov dword [rbx + 0x1c], 0x800
mov qword [rbx + 0x20], rax
call fcn.14002419c
movzx ecx, byte [0x14002c370]
test eax, eax
mov rax, rbx
cmovs ecx, esi
mov byte [0x14002c370], cl
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400247e0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret