joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400534f0
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [0x140090240], 0
jne 0x14004fac5
xor edx, edx
mov ecx, 0x10001
jmp fcn.140051b20
jmp 0x1400534f0
push rbx
sub rsp, 0xa0
mov rax, qword [0x140090120]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x14005358a
nop word [rax + rax]
cmp dword [rsp + 0x38], 0x12
jne 0x140053555
mov rbx, qword [0x140090630]
test rbx, rbx
je 0x14005356b
mov rcx, rbx
call fcn.14004f240
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140053543
jmp 0x14005356b
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x140053530
call qword [sym.imp.USER32.dll_GetActiveWindow]
test rax, rax
je 0x140053687
lea rdx, str.GLFW
mov qword [rsp + 0xc0], rdi
mov rcx, rax
call qword [sym.imp.USER32.dll_GetPropW]
mov rdi, rax
test rax, rax
je 0x14005367f
movdqa xmm0, xmmword [0x14007b6f0]
xor ebx, ebx
movdqa xmm1, xmmword [0x14007b700]
mov qword [rsp + 0xb0], rbp
mov qword [rsp + 0xb8], rsi
mov qword [rsp + 0xc8], r12
mov qword [rsp + 0x98], r14
mov qword [rsp + 0x90], r15
lea r15, [0x140091598]
movdqu xmmword [rsp + 0x60], xmm0
movdqu xmmword [rsp + 0x70], xmm1
nop word [rax + rax]
movsxd rbp, dword [rsp + rbx*8 + 0x64]
mov ecx, dword [rsp + rbx*8 + 0x60]
movsx r14d, word [r15 + rbp*2]
call qword [sym.imp.USER32.dll_GetKeyState]
bt ax, 0xf
jb 0x14005364e
cmp byte [rbp + rdi + 0x80], 1
jne 0x14005364e
call fcn.140054c80
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, r14d
mov edx, ebp
mov rcx, rdi
call fcn.1400504e0
inc rbx
cmp rbx, 4
jl 0x140053610
mov r15, qword [rsp + 0x90]
mov r14, qword [rsp + 0x98]
mov r12, qword [rsp + 0xc8]
mov rsi, qword [rsp + 0xb8]
mov rbp, qword [rsp + 0xb0]
mov rdi, qword [rsp + 0xc0]
mov rbx, qword [0x140091f38]
test rbx, rbx
je 0x140053709
mov rcx, qword [rbx + 0x348]
lea rdx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rsp + 0x68]
mov r8d, dword [rsp + 0x6c]
cdq
sub eax, edx
sar eax, 1
mov ecx, eax
cmp dword [rbx + 0x378], eax
jne 0x1400536cd
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
cmp dword [rbx + 0x37c], eax
je 0x140053709
mov eax, r8d
mov dword [rsp + 0x60], ecx
cdq
mov dword [rbx + 0x378], ecx
mov rcx, qword [rbx + 0x348]
sub eax, edx
sar eax, 1
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x64], eax
mov dword [rbx + 0x37c], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [rsp + 0x64]
mov ecx, dword [rsp + 0x60]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14005bd30
add rsp, 0xa0
pop rbx
ret
Function at 0x1400549f0
Capabilities:
Register raw input devices

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
mov qword [0x140091f38], rcx
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x140054a45
mov rcx, qword [rbx + 0x348]
lea rdx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_ScreenToClient]
movd xmm0, dword [rsp + 0x40]
movd xmm1, dword [rsp + 0x44]
cvtdq2pd xmm0, xmm0
cvtdq2pd xmm1, xmm1
movsd qword [0x140091f28], xmm0
movsd qword [0x140091f30], xmm1
cmp dword [rbx + 0x74], 0x34001
jne 0x140054a6f
mov rcx, qword [rbx + 0x48]
test rcx, rcx
je 0x140054a5d
mov rcx, qword [rcx + 8]
jmp 0x140054a71
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov rcx, rax
jmp 0x140054a71
xor ecx, ecx
call qword [sym.imp.USER32.dll_SetCursor]
mov rcx, rbx
call fcn.140050290
mov rcx, rbx
call fcn.140054e10
cmp dword [rbx + 0x1f0], 0
je 0x140054ace
mov rax, qword [rbx + 0x348]
lea rcx, [rsp + 0x20]
mov edx, 1
mov qword [rsp + 0x20], 0x20001
mov qword [rsp + 0x28], rax
lea r8d, [rdx + 0xf]
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x140054ace
lea rdx, str.Win32:_Failed_to_register_raw_input_device
mov ecx, 0x10008
call fcn.1400574c0
add rsp, 0x30
pop rbx
ret

Function at 0x140054ae0
Capabilities:
Register raw input devices

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [rcx + 0x1f0], 0
mov rbx, rcx
je 0x140054b30
mov edx, 1
mov dword [rsp + 0x20], 0x20001
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x24], edx
mov qword [rsp + 0x28], 0
lea r8d, [rdx + 0xf]
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x140054b30
lea rdx, str.Win32:_Failed_to_remove_raw_input_device
mov ecx, 0x10008
call fcn.1400574c0
xor ecx, ecx
mov qword [0x140091f38], 0
call fcn.140054e10
cvttsd2si ecx, qword [0x140091f28]
lea rdx, [rsp + 0x40]
cvttsd2si eax, qword [0x140091f30]
mov dword [rsp + 0x40], ecx
mov dword [rbx + 0x378], ecx
mov rcx, qword [rbx + 0x348]
mov dword [rsp + 0x44], eax
mov dword [rbx + 0x37c], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.USER32.dll_SetCursorPos]
cmp dword [rbx + 0x74], 0x34001
jne 0x140054bc4
mov rcx, qword [rbx + 0x48]
test rcx, rcx
je 0x140054ba8
mov rcx, qword [rcx + 8]
add rsp, 0x30
pop rbx
jmp qword [sym.imp.USER32.dll_SetCursor]
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov rcx, rax
add rsp, 0x30
pop rbx
jmp qword [sym.imp.USER32.dll_SetCursor]
xor ecx, ecx
add rsp, 0x30
pop rbx
jmp qword [sym.imp.USER32.dll_SetCursor]
Function at 0x140054c80
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
movzx ebx, ax
mov ecx, 0x11
shr ebx, 0xf
call qword [sym.imp.USER32.dll_GetKeyState]
mov edi, ebx
mov esi, 0x8000
or edi, 2
mov ecx, 0x12
and ax, si
cmove edi, ebx
call qword [sym.imp.USER32.dll_GetKeyState]
and ax, si
mov ecx, 0x5c
mov esi, edi
or esi, 4
test ax, ax
cmove esi, edi
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x5b
movzx ebx, ax
call qword [sym.imp.USER32.dll_GetKeyState]
mov edi, esi
mov ecx, 0x14
or edi, 8
or bx, ax
cmovns edi, esi
call qword [sym.imp.USER32.dll_GetKeyState]
mov ebx, edi
mov ecx, 0x90
or ebx, 0x10
and al, 1
cmove ebx, edi
call qword [sym.imp.USER32.dll_GetKeyState]
mov rsi, qword [rsp + 0x38]
mov ecx, ebx
or ecx, 0x20
and al, 1
cmove ecx, ebx
mov rbx, qword [rsp + 0x30]
mov eax, ecx
add rsp, 0x20
pop rdi
ret

Function at 0x140055f90
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx + 4], eax
cmp eax, 0xffffffff
jne 0x140055fc0
lea rdx, str.Win32:_Failed_to_allocate_TLS_index
mov ecx, 0x10008
call fcn.1400574c0
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov dword [rbx], 1
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x140057d00
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov rax, qword [0x140090120]
xor rax, rsp
mov qword [rbp + 0xa0], rax
xor edx, edx
lea rcx, [rbp - 0x60]
mov r8d, 0x100
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [0x140091852]
mov r8d, 0x6d1
call sub.VCRUNTIME140.dll_memset
lea r14, [rsp + 0x40]
mov qword [rsp + 0x1e0], rdi
sub r14, 0x480
lea r15, [0x1400915d8]
xor r13d, r13d
lea r12, [0x1400918f2]
mov ebx, 0x20
movsx esi, word [r15]
cmp esi, 0xffffffff
je 0x140057ea5
cmp ebx, 0x140
jb 0x140057e20
cmp ebx, 0x14e
ja 0x140057e20
mov dword [rsp + 0x40], 0x60
mov dword [rsp + 0x44], 0x61
mov dword [rsp + 0x48], 0x62
mov dword [rsp + 0x4c], 0x63
mov dword [rsp + 0x50], 0x64
mov dword [rsp + 0x54], 0x65
mov dword [rsp + 0x58], 0x66
mov dword [rsp + 0x5c], 0x67
mov dword [rsp + 0x60], 0x68
mov dword [rsp + 0x64], 0x69
mov dword [rsp + 0x68], 0x6e
mov dword [rsp + 0x6c], 0x6f
mov dword [rsp + 0x70], 0x6a
mov dword [rsp + 0x74], 0x6d
mov dword [rsp + 0x78], 0x6b
mov edi, dword [r14]
jmp 0x140057e2f
mov edx, 1
mov ecx, esi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov edi, eax
mov dword [rsp + 0x28], r13d
lea r9, [rbp - 0x80]
lea r8, [rbp - 0x60]
mov dword [rsp + 0x20], 0x10
mov edx, esi
mov ecx, edi
call qword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 0xffffffff
jne 0x140057e72
mov dword [rsp + 0x28], r13d
lea r9, [rbp - 0x80]
lea r8, [rbp - 0x60]
mov dword [rsp + 0x20], 0x10
mov edx, esi
mov ecx, edi
call qword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 1
jl 0x140057ea5
mov qword [rsp + 0x38], r13
lea r8, [rbp - 0x80]
mov qword [rsp + 0x30], r13
mov r9d, 1
mov dword [rsp + 0x28], 5
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
inc ebx
add r12, 5
add r14, 4
add r15, 2
cmp ebx, 0x15c
jle 0x140057d82
mov rdi, qword [rsp + 0x1e0]
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.14005bd30
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x14005ba00
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x48
mov rax, qword [0x140090120]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [0x140092160], 0
lea rax, str.libOSMesa.dll
lea rcx, str.OSMesa.dll
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], 0
je 0x14005ba55
mov eax, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14005bd30
add rsp, 0x48
ret
mov qword [rsp + 0x40], rbx
xor ebx, ebx
nop dword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x140092160], rax
test rax, rax
jne 0x14005ba98
mov rax, qword [rsp + rbx*8 + 0x28]
inc rbx
test rax, rax
jne 0x14005ba60
lea rdx, str.OSMesa:_Library_not_found
mov ecx, 0x10006
call fcn.140051b20
jmp 0x14005bbbd
lea rdx, str.OSMesaCreateContextExt
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140092160]
lea rdx, str.OSMesaCreateContextAttribs
mov qword [0x140092168], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140092160]
lea rdx, str.OSMesaDestroyContext
mov qword [0x140092170], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140092160]
lea rdx, str.OSMesaMakeCurrent
mov qword [0x140092178], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140092160]
lea rdx, str.OSMesaGetColorBuffer
mov qword [0x140092180], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140092160]
lea rdx, str.OSMesaGetDepthBuffer
mov qword [0x140092188], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140092160]
lea rdx, str.OSMesaGetProcAddress
mov qword [0x140092190], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x140092168], 0
mov qword [0x140092198], rax
je 0x14005bb8f
cmp qword [0x140092178], 0
je 0x14005bb8f
cmp qword [0x140092180], 0
je 0x14005bb8f
cmp qword [0x140092188], 0
je 0x14005bb8f
cmp qword [0x140092190], 0
je 0x14005bb8f
test rax, rax
je 0x14005bb8f
mov eax, 1
jmp 0x14005bbbf
lea rdx, str.OSMesa:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.140051b20
mov rcx, qword [0x140092160]
test rcx, rcx
je 0x14005bbbd
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x140092160], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14005bd30
add rsp, 0x48
ret
Function at 0x140001370
Capabilities:
Copy file
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
xor ebp, ebp
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], bp
lea r9, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
lea rcx, [0x140006490]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x140001436
mov r9, qword [rsp + 0x20]
mov rdx, 0xffffffffffffffff
nop word [rax + rax]
inc rdx
cmp word [r9 + rdx*2], 0
jne 0x1400013e0
mov rax, qword [rsp + 0x40]
cmp rdx, rax
ja 0x140001421
lea rdi, [rsp + 0x28]
cmp rax, 7
cmova rdi, qword [rsp + 0x28]
mov qword [rsp + 0x38], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, r9
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi], bp
jmp 0x14000142b
lea rcx, [rsp + 0x28]
call fcn.140003940
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea r8, str.Reducer.exe
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x48]
call fcn.140002d80
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 7
cmova rdx, qword [rsp + 0x48]
cmp qword [rsi + 0x18], 7
jbe 0x140001467
mov rsi, qword [rsi]
xor r8d, r8d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov rdx, qword [rsp + 0x60]
cmp rdx, 7
jbe 0x1400014b8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400014b3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400014b3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000406c
movdqa xmm0, xmmword [0x140006b70]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], bp
mov rdx, qword [rsp + 0x40]
cmp rdx, 7
jbe 0x140001510
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000150b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000150b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000406c
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140003f40
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140001540
Capabilities:
Copy file
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
xor ebp, ebp
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], bp
lea r9, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1400064a0]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x140001606
mov r9, qword [rsp + 0x20]
mov rdx, 0xffffffffffffffff
nop word [rax + rax]
inc rdx
cmp word [r9 + rdx*2], 0
jne 0x1400015b0
mov rax, qword [rsp + 0x40]
cmp rdx, rax
ja 0x1400015f1
lea rdi, [rsp + 0x28]
cmp rax, 7
cmova rdi, qword [rsp + 0x28]
mov qword [rsp + 0x38], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, r9
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi], bp
jmp 0x1400015fb
lea rcx, [rsp + 0x28]
call fcn.140003940
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea r8, str.Reducer.exe
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x48]
call fcn.140002d80
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 7
cmova rdx, qword [rsp + 0x48]
cmp qword [rsi + 0x18], 7
jbe 0x140001637
mov rsi, qword [rsi]
xor r8d, r8d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov rdx, qword [rsp + 0x60]
cmp rdx, 7
jbe 0x140001688
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001683
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001683
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000406c
movdqa xmm0, xmmword [0x140006b70]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], bp
mov rdx, qword [rsp + 0x40]
cmp rdx, 7
jbe 0x1400016e0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400016db
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400016db
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000406c
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140003f40
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140001710
Capabilities:
Copy file
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
xor ebp, ebp
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], bp
lea r9, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1400064b0]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x1400017d6
mov r9, qword [rsp + 0x20]
mov rdx, 0xffffffffffffffff
nop word [rax + rax]
inc rdx
cmp word [r9 + rdx*2], 0
jne 0x140001780
mov rax, qword [rsp + 0x40]
cmp rdx, rax
ja 0x1400017c1
lea rdi, [rsp + 0x28]
cmp rax, 7
cmova rdi, qword [rsp + 0x28]
mov qword [rsp + 0x38], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, r9
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi], bp
jmp 0x1400017cb
lea rcx, [rsp + 0x28]
call fcn.140003940
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea r8, str.Reducer.exe
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x48]
call fcn.140002d80
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 7
cmova rdx, qword [rsp + 0x48]
cmp qword [rsi + 0x18], 7
jbe 0x140001807
mov rsi, qword [rsi]
xor r8d, r8d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov rdx, qword [rsp + 0x60]
cmp rdx, 7
jbe 0x140001858
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001853
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001853
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000406c
movdqa xmm0, xmmword [0x140006b70]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], bp
mov rdx, qword [rsp + 0x40]
cmp rdx, 7
jbe 0x1400018b0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400018ab
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400018ab
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000406c
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140003f40
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140004990
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400049da
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400049da
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400049da
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400049da
cmp dword [rcx + 0x84], 0xe
jbe 0x1400049da
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400049dc
xor al, al
add rsp, 0x28
ret
Function at 0x14000a180
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x14000a1a2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x14000a21c
mov rdi, r14
mov rcx, rbx
call fcn.14000d2d0
test rax, rax
jle 0x14000a1f4
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov rax, qword [rbx + 0x38]
mov r8, rbp
mov rdx, qword [rax]
call fcn.1400d3d20
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14000a20c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + gethostname]
cmp eax, 0xffffffff
je 0x14000a214
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x14000a1b6
sub r14, rdi
jmp 0x14000a2ff
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x14000a233
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000a235
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000a267
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.1400d3d20
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14000a2fc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000a2a2
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x14000a2dd
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.1400e2568
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x14000a2fc
cmp rbp, rax
ja 0x14000a2b0
test rbp, rbp
je 0x14000a2fc
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.1400e2568
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
Function at 0x140012040
Capabilities:
Access peb ldr_data
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0x58
mov rax, qword [0x14015a8b0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rax, qword gs:[0x30]
xorps xmm0, xmm0
mov r11d, edx
movups xmmword [rsp], xmm0
mov rcx, qword [rax + 0x60]
movups xmmword [rsp + 0x10], xmm0
movups xmmword [rsp + 0x20], xmm0
mov r10, qword [rcx + 0x18]
add r10, 0x20
movups xmmword [rsp + 0x30], xmm0
mov r9, qword [r10]
cmp r9, r10
je 0x140012141
mov rax, qword [r9 + 0x50]
test rax, rax
je 0x140012123
xorps xmm0, xmm0
lea rdx, [rsp]
movups xmmword [rsp], xmm0
mov r8d, 0x3f
movups xmmword [rsp + 0x10], xmm0
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
nop word [rax + rax]
movzx ecx, byte [rax]
mov byte [rdx], cl
test cl, cl
je 0x1400120e2
movzx ecx, byte [rax + 2]
add rax, 4
mov byte [rdx + 1], cl
add rdx, 2
test cl, cl
je 0x1400120e2
sub r8d, 2
jns 0x1400120c0
movzx eax, byte [rsp]
lea rdx, [rsp]
mov r8d, 0x25
test al, al
je 0x14001211e
nop dword [rax]
nop dword [rax + rax]
movsx eax, al
lea rdx, [rdx + 1]
imul ecx, eax, 0x12ca3
movzx eax, byte [rdx]
imul r8d, r8d, 0xd32b
xor r8d, ecx
test al, al
jne 0x140012100
cmp r8d, r11d
je 0x14001212b
mov r9, qword [r9]
jmp 0x140012084
mov rax, qword [r9 + 0x20]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400d15a0
add rsp, 0x58
ret
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400d15a0
add rsp, 0x58
ret

Function at 0x140012160
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
mov edi, r8d
mov r9, rdx
test rdx, rdx
je 0x140012231
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x140012231
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
je 0x140012231
add rax, 0x18
je 0x140012231
mov eax, dword [rax + 0x70]
add rax, rdx
je 0x140012231
mov esi, dword [rax + 0x1c]
xor r10d, r10d
mov r11d, dword [rax + 0x20]
add rsi, rdx
mov ebp, dword [rax + 0x24]
add r11, rdx
mov ebx, dword [rax + 0x18]
add rbp, rdx
test ebx, ebx
je 0x140012231
mov eax, dword [r11]
mov r8d, 0x25
add rax, r9
movzx ecx, byte [rax]
test cl, cl
je 0x14001220e
nop dword [rax]
nop dword [rax + rax]
movsx ecx, cl
lea rax, [rax + 1]
imul edx, ecx, 0x12ca3
movzx ecx, byte [rax]
imul r8d, r8d, 0xd32b
xor r8d, edx
test cl, cl
jne 0x1400121f0
cmp r8d, edi
je 0x140012221
inc r10d
add r11, 4
cmp r10d, ebx
jb 0x1400121d1
jmp 0x140012231
movsxd rax, r10d
movzx ecx, word [rbp + rax*2]
mov eax, dword [rsi + rcx*4]
add rax, r9
jmp 0x140012233
xor eax, eax
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ret