joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400fc6d8
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x388]
sub rsp, 0x470
mov rax, qword [0x1401f5698]
xor rax, rsp
mov qword [rbp + 0x360], rax
mov al, byte [rcx + 0xc]
xor r14d, r14d
mov rbx, rcx
test al, al
jne 0x1400fc87e
mov al, byte [rcx + 0xd]
test al, al
jne 0x1400fc87e
mov rdx, qword [0x14022a9e0]
lea rcx, [rbp + 0x150]
add rdx, 0xcea
call fcn.1400fbed0
lea r8, [0x1401792e8]
mov edx, 0x106
lea rcx, [rbp + 0x150]
call fcn.140001e48
mov edi, r14d
lea r15d, [r14 + 1]
cmp rdi, r15
mov ecx, 0x100
mov edx, 0x200
setne al
test rdi, rdi
movzx esi, al
mov rax, rdi
cmove esi, r15d
cmp rdi, r15
cmove ecx, edx
neg rax
lea rax, [rsp + 0x38]
sbb r9d, r9d
mov qword [rsp + 0x20], rax
and r9d, ecx
lea rdx, str.SOFTWAREConEmu
or r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400fc864
mov rcx, qword [rsp + 0x38]
lea rax, str.InstallDir_x64
test sil, sil
mov dword [rsp + 0x30], 0x208
lea rdx, str.InstallDir
cmovne rdx, rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400fc859
cmp word [rsp + 0x40], r14w
je 0x1400fc859
lea rcx, [rsp + 0x40]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r14w
jne 0x1400fc813
cmp word [rsp + rax*2 + 0x3e], 0x5c
je 0x1400fc83b
lea r8, [0x1401792e8]
mov edx, 0x106
lea rcx, [rsp + 0x40]
call fcn.140001e48
lea rdx, [rbp + 0x150]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1400fc859
mov byte [rbx + 0xd], r15b
mov byte [rbx + 0xe], sil
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rdi, r15
cmp rdi, 2
jbe 0x1400fc760
mov al, byte [rbx + 0xd]
test al, al
jne 0x1400fc87e
mov byte [rbx + 0xd], 2
mov al, 2
mov rcx, qword [rbp + 0x360]
xor rcx, rsp
call fcn.14012bda0
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400fc928
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1401f5698]
xor rax, rsp
mov qword [rbp - 8], rax
mov rbx, rdx
mov rdi, rcx
xor esi, esi
mov word [rdx], si
mov rax, qword [rcx]
test rax, rax
je 0x1400fc95d
cmp word [rax], si
jne 0x1400fc97f
mov rax, qword [0x1401f5558]
cmp word [rax], si
jne 0x1400fc97f
lea rdx, str.Update.VerLocation_is_empty
mov rcx, rbx
call fcn.14003f71c
xor al, al
jmp 0x1400fcae2
mov al, byte [rcx + 0xb]
dec al
cmp al, 2
jbe 0x1400fc991
lea rdx, str.Update.UseBuilds_is_not_specified
jmp 0x1400fc970
xor eax, eax
mov qword [rbp - 0x10], rax
call fcn.1400fc6d8
movzx ecx, al
sub ecx, 1
je 0x1400fcb1c
cmp ecx, 1
je 0x1400fc9b6
lea rdx, str.Update.DownloadSetup_is_not_specified
jmp 0x1400fc970
mov rcx, rdi
call fcn.1400fc6b4
mov rdi, rax
cmp word [rax], si
jne 0x1400fc9cf
lea rdx, str.Update.ArcCmdLine_is_not_specified
jmp 0x1400fc970
lea rcx, [rbp - 0x38]
call fcn.1401170c0
nop
xor r8d, r8d
lea rdx, [rbp - 0x38]
mov rcx, rdi
call fcn.1401188b8
test rax, rax
je 0x1400fcafe
lea rcx, [rbp - 0x38]
call fcn.140054ee8
mov rcx, rax
call fcn.140118eac
mov rdi, rax
test rax, rax
je 0x1400fcafe
cmp word [rax], si
je 0x1400fcafe
lea rdx, str.WinRar.exe
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1400fca57
lea rdx, str.Rar.exe
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1400fca57
lea rdx, str.UnRar.exe
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1400fcad7
mov dword [rbp - 0x40], esi
lea rax, [rbp - 0x10]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SoftwareWinRARExtractionProfile
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400fcac9
mov dword [rbp - 0x3c], 4
lea rax, [rbp - 0x3c]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.UnpToSubfolders
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [rbp - 0x40]
test eax, eax
cmovne ecx, esi
mov dword [rbp - 0x40], ecx
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rbp - 0x40], esi
je 0x1400fcad7
lea rdx, str.Update.ArcCmdLine:_Unwanted_option_n_HKCUSoftwareWinRARExtractionProfile__n_UnpToSubfolders_1
jmp 0x1400fcb05
lea rcx, [rbp - 0x38]
call fcn.1401170e4
mov al, 1
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14012bda0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
lea rdx, str.Update.ArcCmdLine_is_invalid
mov rcx, rbx
call fcn.14003f71c
nop
lea rcx, [rbp - 0x38]
call fcn.1401170e4
jmp 0x1400fc978
lea rdx, [rbp - 0x10]
mov rcx, rdi
call fcn.1400fc8ac
cmp word [rax], si
jne 0x1400fcae0
lea rdx, str.Update.ExeCmdLine_is_not_specified
jmp 0x1400fc970
Function at 0x1400ff03c
Capabilities:
Check for time delay via gettickcount

Disassembly:
test rcx, rcx
je 0x1400ff11c
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x1401f5698]
xor rax, rsp
mov qword [rsp + 0x30], rax
cmp byte [rcx + 0x59], 0
mov dil, dl
mov rbx, rcx
jne 0x1400ff105
call fcn.140113cb4
test al, al
jne 0x1400ff0ba
cmp byte [rbx + 0x79], al
jne 0x1400ff0b4
cmp dword [rbx + 0x74], 0
je 0x1400ff090
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rbx + 0x74]
cmp eax, 5
jb 0x1400ff0b4
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [rbx + 0x48]
xor r9d, r9d
mov rcx, qword [rbx + 0x28]
xor r8d, r8d
mov dword [rbx + 0x74], eax
mov word [rbx + 0x78], 0x100
call qword [sym.imp.USER32.dll_PostMessageW]
jmp 0x1400ff105
mov byte [rbx + 0x78], 1
jmp 0x1400ff105
mov rcx, qword [rbx + 0x28]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_InvalidateRect]
mov byte [rbx + 0x79], 0
test dil, dil
je 0x1400ff105
mov rcx, qword [rbx + 0x28]
lea rdx, [rsp + 0x20]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
call qword [sym.imp.USER32.dll_GetClientRect]
test eax, eax
je 0x1400ff105
mov rcx, qword [rbx + 0x28]
lea rdx, [rsp + 0x20]
mov r9d, 0x92a
xor r8d, r8d
call qword [sym.imp.USER32.dll_RedrawWindow]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14012bda0
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x1400ff045
Capabilities:
Check for time delay via gettickcount

Disassembly:
test rcx, rcx
je 0x1400ff11c
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x1401f5698]
xor rax, rsp
mov qword [rsp + 0x30], rax
cmp byte [rcx + 0x59], 0
mov dil, dl
mov rbx, rcx
jne 0x1400ff105
call fcn.140113cb4
test al, al
jne 0x1400ff0ba
cmp byte [rbx + 0x79], al
jne 0x1400ff0b4
cmp dword [rbx + 0x74], 0
je 0x1400ff090
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rbx + 0x74]
cmp eax, 5
jb 0x1400ff0b4
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [rbx + 0x48]
xor r9d, r9d
mov rcx, qword [rbx + 0x28]
xor r8d, r8d
mov dword [rbx + 0x74], eax
mov word [rbx + 0x78], 0x100
call qword [sym.imp.USER32.dll_PostMessageW]
jmp 0x1400ff105
mov byte [rbx + 0x78], 1
jmp 0x1400ff105
mov rcx, qword [rbx + 0x28]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_InvalidateRect]
mov byte [rbx + 0x79], 0
test dil, dil
je 0x1400ff105
mov rcx, qword [rbx + 0x28]
lea rdx, [rsp + 0x20]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
call qword [sym.imp.USER32.dll_GetClientRect]
test eax, eax
je 0x1400ff105
mov rcx, qword [rbx + 0x28]
lea rdx, [rsp + 0x20]
mov r9d, 0x92a
xor r8d, r8d
call qword [sym.imp.USER32.dll_RedrawWindow]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14012bda0
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x14010be60
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x130
mov rax, qword [0x1401f5698]
xor rax, rsp
mov qword [rsp + 0x120], rax
xor ebp, ebp
mov rdi, rdx
mov rbx, rcx
test rcx, rcx
je 0x14010bf0c
cmp qword [rcx + 0x138], rbp
je 0x14010bf0c
mov r9d, dword [rcx + 0x254]
mov r8d, dword [rcx + 0x250]
mov qword [rsp + 0x20], rdx
mov rdx, qword [rcx + 0x240]
mov rcx, qword [rcx + 0x238]
call fcn.1400bf2b4
mov qword [rsp + 0x30], rbp
lea r8d, [rbp + 1]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
or rdi, 0xffffffffffffffff
mov rsi, rax
cmp rax, rdi
jne 0x14010bf31
xor r9d, r9d
mov qword [rsp + 0x20], rbp
xor r8d, r8d
lea rcx, str.Cant_create_file_
xor edx, edx
call fcn.140113304
xor al, al
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.14012bda0
mov rbx, qword [rsp + 0x160]
add rsp, 0x130
pop rdi
pop rsi
pop rbp
ret
mov rcx, qword [rbx + 0x140]
mov dl, 1
call fcn.1400131c0
mov rdx, rax
mov rax, rdi
inc rax
cmp word [rdx + rax*2], bp
jne 0x14010bf45
lea r8d, [rax + rax]
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
movsx ecx, word [rbx + 0x1e0]
lea rdx, str._r_nSize:__ix_i___Cursor:__ix_i_r_n
movsx eax, word [rbx + 0x1e2]
mov r9d, dword [rbx + 0x1a8]
mov r8d, dword [rbx + 0x1a4]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
lea rcx, [rsp + 0x50]
call fcn.14000c838
lea rax, [rsp + 0x50]
inc rdi
cmp word [rax + rdi*2], bp
jne 0x14010bf9f
lea r8d, [rdi + rdi]
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x40]
mov rcx, rsi
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r8d, dword [rbx + 0x1a8]
lea r9, [rsp + 0x40]
imul r8d, dword [rbx + 0x1a4]
mov rcx, rsi
mov rdx, qword [rbx + 0x328]
mov qword [rsp + 0x20], rbp
add r8d, r8d
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rbx + 0x1a8]
lea r9, [rsp + 0x40]
imul eax, dword [rbx + 0x1a4]
mov rcx, rsi
mov rdx, qword [rbx + 0x338]
mov qword [rsp + 0x20], rbp
lea r8d, [rax + rax*2]
shl r8d, 3
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r8d, dword [rbx + 0x1a8]
lea r9, [rsp + 0x40]
imul r8d, dword [rbx + 0x1a4]
mov rcx, rsi
mov rdx, qword [rbx + 0x330]
mov qword [rsp + 0x20], rbp
add r8d, r8d
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rbx + 0x1a8]
lea r9, [rsp + 0x40]
imul eax, dword [rbx + 0x1a4]
mov rcx, rsi
mov rdx, qword [rbx + 0x340]
mov qword [rsp + 0x20], rbp
lea r8d, [rax + rax*2]
shl r8d, 3
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rbx + 0x138]
test rcx, rcx
je 0x14010c08e
mov rdx, rsi
call fcn.1400a4aa4
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x14010bf0e
Function at 0x14011548c
Capabilities:
Set environment variable

Disassembly:
test rcx, rcx
je 0x140115515
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebp, ebp
mov rbx, rcx
cmp word [rcx], bp
je 0x140115501
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rdx, eax
inc rdx
lea rdi, [rbx + rdx*2]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
lea rsi, [rdi + rcx*2]
mov rcx, rbx
call fcn.140116410
test al, al
je 0x1401154f7
movzx eax, word [rdi]
mov rcx, rbx
neg ax
sbb rdx, rdx
and rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea rbx, [rsi + 2]
cmp word [rsi + 2], bp
jne 0x1401154b3
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140115770
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x1e0]
sub rsp, 0x2e0
mov rax, qword [0x1401f5698]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
xor r15d, r15d
mov rsi, rdx
mov rdi, rcx
test rcx, rcx
je 0x1401158c5
cmp word [rcx], r15w
je 0x1401158c5
xor edx, edx
lea rcx, [rbp - 0x80]
mov r8d, 0x250
call fcn.14012d4b0
lea rdx, [rbp - 0x80]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x140115883
mov r14b, r15b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x14011587e
lea ebx, [rax - 4]
mov qword [rsp + 0x30], r15
mov r8d, ebx
mov dword [rsp + 0x28], r15d
xor r9d, r9d
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140115875
xorps xmm0, xmm0
lea rdx, [rsp + 0x40]
xor eax, eax
mov rcx, rdi
movups xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x70], eax
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x140115875
test byte [rsp + 0x40], 0x10
jne 0x140115875
mov r14b, bl
test rsi, rsi
je 0x140115875
mov ecx, dword [rsp + 0x64]
or edx, 0xffffffff
cmp dword [rsp + 0x60], r15d
cmovne ecx, edx
mov dword [rsi], ecx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, r14b
jmp 0x1401158c7
mov bl, r15b
test byte [rbp - 0x80], 0x10
je 0x14011589f
lea rdx, [rbp - 0x80]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x1401158b8
jmp 0x140115886
mov ebx, 1
test rsi, rsi
je 0x1401158b8
mov ecx, dword [rbp - 0x60]
or edx, 0xffffffff
cmp dword [rbp - 0x64], r15d
cmovne ecx, edx
mov dword [rsi], ecx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindClose]
mov al, bl
jmp 0x1401158c7
xor al, al
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.14012bda0
mov rbx, qword [rsp + 0x320]
add rsp, 0x2e0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140115c84
Capabilities:
Get common file path
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
xor r15d, r15d
mov edi, edx
mov ebp, r8d
mov rbx, rcx
test rcx, rcx
je 0x140115e06
cmp edi, 0x104
jb 0x140115e06
mov word [rcx], r15w
call fcn.140116890
movzx r14d, al
lea eax, [rbp - 2]
cmp eax, 1
jbe 0x140115d35
lfence
mov r8d, edi
lea rcx, str.ComSpec
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x140115d35
mov rcx, rbx
call fcn.140118eac
mov rsi, rax
test rax, rax
je 0x140115d31
lea rdx, str.ConEmuC.exe
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140115d31
lea rdx, str.ConEmuC64.exe
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140115d31
xor edx, edx
mov rcx, rbx
call fcn.140115770
test al, al
jne 0x140115d35
mov word [rbx], r15w
cmp word [rbx], r15w
jne 0x140115da3
lfence
lea esi, [rdi - 0x14]
mov rcx, rbx
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jle 0x140115d9d
cmp eax, esi
jae 0x140115d9d
test r14d, r14d
je 0x140115d73
cmp ebp, 2
jne 0x140115d73
dec eax
lea r8, str.SysWOW64cmd.exe
movsxd rcx, eax
lea rax, [0x1401c1790]
jmp 0x140115d86
dec eax
lea r8, str.System32cmd.exe
movsxd rcx, eax
lea rax, [0x1401c1740]
lfence
cmp word [rbx + rcx*2], 0x5c
mov rdx, rdi
mov rcx, rbx
cmove r8, rax
call fcn.140001e48
cmp word [rbx], r15w
je 0x140115dbd
xor edx, edx
mov rcx, rbx
call fcn.140115770
test al, al
jne 0x140115db7
mov word [rbx], r15w
jmp 0x140115dbd
cmp word [rbx], r15w
jne 0x140115e01
lfence
lea rax, [rsp + 0x50]
mov r9d, edi
mov qword [rsp + 0x28], rax
lea rdx, [0x140179a28]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
je 0x140115dec
cmp eax, edi
jb 0x140115e01
lfence
mov rdx, rdi
lea r8, [0x140179a28]
mov rcx, rbx
call fcn.14000a8a0
mov rax, rbx
jmp 0x140115e08
xor eax, eax
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret

Function at 0x1401168b4
Capabilities:
Check if process is running under wine

Disassembly:
mov r11, rsp
sub rsp, 0x68
mov rax, qword [0x1401f5698]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov eax, dword [0x140235dc8]
test eax, eax
jne 0x140116913
lea rax, str.SoftwareWine
mov qword [r11 - 0x48], 0xffffffff80000001
xorps xmm0, xmm0
mov qword [r11 - 0x40], rax
mov qword [r11 - 0x30], rax
lea rcx, [r11 - 0x48]
mov qword [r11 - 0x38], 0xffffffff80000002
movups xmmword [rsp + 0x40], xmm0
call fcn.140115518
neg al
sbb eax, eax
and eax, 2
dec eax
mov dword [0x140235dc8], eax
cmp eax, 1
sete al
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14012bda0
add rsp, 0x68
ret

Function at 0x140116c84
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x28
movzx ecx, cx
call qword [sym.imp.USER32.dll_GetKeyState]
shr ax, 0xf
add rsp, 0x28
ret
Function at 0x140116d10
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x1401f5698]
xor rax, rsp
mov qword [rsp + 0x140], rax
cmp qword [rcx + 0x48], 0
mov rbx, rcx
jne 0x140116ea6
xor eax, eax
test eax, eax
jne 0x140116db0
xor edx, edx
mov dword [rsp + 0x20], 0x11c
mov r8d, 0x110
mov dword [rsp + 0x24], 6
lea rcx, [rsp + 0x2c]
mov dword [rsp + 0x28], 1
call fcn.14012d4b0
mov r8b, 3
mov edx, 2
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8b, 3
mov edx, 1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov edx, 3
lea rcx, [rsp + 0x20]
mov r8, rax
call fcn.14011692c
test al, al
jne 0x140116da7
mov eax, 1
jmp 0x140116d3b
lea rcx, str.KernelBase.dll
jmp 0x140116db7
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rbx + 0x48], rax
test rax, rax
je 0x140116ea2
lea rdx, str.AddAccessAllowedAce
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x48]
lea rdx, str.AddAccessDeniedAce
mov qword [rbx + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x48]
lea rdx, [0x1401c1920]
mov qword [rbx + 0x58], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x48]
lea rdx, str.GetLengthSid
mov qword [rbx + 0x60], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x48]
lea rdx, str.InitializeAcl
mov qword [rbx + 0x68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x48]
lea rdx, str.InitializeSecurityDescriptor
mov qword [rbx + 0x70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x48]
lea rdx, str.SetSecurityDescriptorDacl
mov qword [rbx + 0x78], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [rbx + 0x50], 0
mov qword [rbx + 0x80], rax
je 0x140116e8e
cmp qword [rbx + 0x58], 0
je 0x140116e8e
cmp qword [rbx + 0x60], 0
je 0x140116e8e
cmp qword [rbx + 0x68], 0
je 0x140116e8e
cmp qword [rbx + 0x70], 0
je 0x140116e8e
cmp qword [rbx + 0x78], 0
je 0x140116e8e
test rax, rax
jne 0x140116ea6
mov rcx, qword [rbx + 0x48]
test rcx, rcx
je 0x140116ea2
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
and qword [rbx + 0x48], 0
xor eax, eax
jmp 0x140116eab
mov eax, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14012bda0
add rsp, 0x150
pop rbx
ret
Function at 0x140118f9c
Capabilities:
Read file on windows
Read pipe
Write file on windows
Write pipe

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x5d0]
sub rsp, 0x6d0
mov rax, qword [0x1401f5698]
xor rax, rsp
mov qword [rbp + 0x5c0], rax
mov r9d, dword [rbp + 0x638]
xor r13d, r13d
mov eax, dword [rbp + 0x640]
mov r14, rdx
mov word [rbp + 0x1b0], r13w
mov dword [rsp + 0x40], r13d
test rdx, rdx
je 0x140119153
test rcx, rcx
je 0x140119153
mov ebx, dword [rbp + 0x630]
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x30], r13
mov dword [rdx + 8], ebx
lea rdx, [rbp + 0x1b0]
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r8d
xor r8d, r8d
call fcn.140119480
mov rdi, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140119153
mov r8d, dword [r14]
mov rdx, r14
mov rcx, rax
test ebx, ebx
je 0x14011905c
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x140119153
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x50]
mov dword [rsp + 0x20], 0x258
call qword [sym.imp.KERNEL32.dll_TransactNamedPipe]
mov r12d, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test r12d, r12d
jne 0x1401190a1
cmp eax, 0xea
je 0x1401190a1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140119153
cmp dword [rsp + 0x40], 0x30
jb 0x140119093
movsxd rsi, dword [rsp + 0x50]
cmp esi, dword [rsp + 0x40]
jb 0x140119093
cmp dword [rsp + 0x54], 0xa7
jne 0x140119093
mov rcx, rsi
call fcn.140113e8c
mov rbx, rax
test rax, rax
jne 0x1401190d8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140119156
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.14012d940
mov r15d, dword [rsp + 0x40]
add r15, rbx
jmp 0x14011912d
test r12d, r12d
jne 0x140119135
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], r13
mov r8d, esi
mov rdx, r15
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r12d, eax
test eax, eax
jne 0x140119126
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x140119135
mov eax, dword [rsp + 0x40]
add r15, rax
sub esi, dword [rsp + 0x40]
test esi, esi
jg 0x1401190f4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbx + 0xc]
cmp eax, dword [r14 + 0xc]
je 0x140119156
test eax, eax
jne 0x140119156
mov rcx, rbx
call fcn.140113e18
mov rbx, r13
mov rax, rbx
mov rcx, qword [rbp + 0x5c0]
xor rcx, rsp
call fcn.14012bda0
mov rbx, qword [rsp + 0x728]
add rsp, 0x6d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140119480
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rbp
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
and dword [rax - 0x38], 0
mov r15, rcx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [rsp + 0xa0]
mov ebp, 0x64
mov dword [rsp + 0x44], eax
test ebx, ebx
je 0x1401194cf
mov r9d, 0x7530
cmp ebx, r9d
cmova ebx, r9d
jmp 0x1401194d4
mov ebx, 0x7530
mov r14d, 0xfa
cmp ebx, r14d
cmovb r14d, ebx
neg dword [rsp + 0xa8]
sbb r12d, r12d
and r12d, 0x40000000
call fcn.140116ec4
and qword [rsp + 0x30], 0
mov r9, rax
mov dword [rsp + 0x28], r12d
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsi + 1]
mov edi, eax
test rcx, 0xfffffffffffffffe
jne 0x1401195f7
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
sub esi, dword [rsp + 0x44]
cmp qword [rsp + 0xb0], 0
je 0x140119569
mov rcx, qword [rsp + 0xb0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1401195f3
cmp edi, 0xe7
jne 0x140119590
test ebp, ebp
jle 0x1401195eb
cmp esi, ebx
jae 0x140119596
mov edx, r14d
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1401194f2
test ebp, ebp
jle 0x1401195eb
cmp esi, ebx
ja 0x1401195eb
dec ebp
cmp edi, 2
jne 0x1401195ad
lea ecx, [rdi + 8]
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1401194f2
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov rcx, qword [rsp + 0x90]
mov ebx, eax
call fcn.140119b80
mov rcx, qword [rsp + 0x88]
lea r8, str._s._u:_CreateFile__s__failed__code_u
mov dword [rsp + 0x30], edi
mov r9, rax
mov qword [rsp + 0x28], r15
mov edx, 0x208
mov dword [rsp + 0x20], ebx
call fcn.1401140d0
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x140119616
xor r9d, r9d
mov dword [rsp + 0x40], 2
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
mov rax, rsi
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret