joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140105948
Capabilities:
Delete file
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x3a8]
sub rsp, 0x4a0
mov rax, qword [0x1401e7e78]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov rdx, qword [0x14021c5d8]
xor esi, esi
test rdx, rdx
je 0x140105aec
add rdx, 0xcfa
lea rcx, [rbp + 0x160]
call fcn.140031a28
lea r8, [0x14016b5d8]
mov edx, 0x118
lea rcx, [rbp + 0x160]
call fcn.140001f38
cmp dword [0x14021c614], 6
jb 0x140105a80
call fcn.14012be90
test al, al
jne 0x140105aec
movdqa xmm0, xmmword [0x1401b1f10]
lea r14d, [rsi + 0x5c]
movdqu xmmword [rsp + 0x40], xmm0
mov ebx, esi
mov rdi, rsi
mov edx, dword [rsp + rbx*4 + 0x40]
lea rax, [rsp + 0x50]
mov r9d, esi
mov qword [rsp + 0x20], rax
test rdi, rdi
setne r9b
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x140105a66
lea rcx, [rsp + 0x50]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], si
jne 0x140105a19
test rax, rax
je 0x140105a66
cmp word [rsp + rax*2 + 0x4e], r14w
je 0x140105a4e
mov word [rsp + rax*2 + 0x50], r14w
inc rax
lea rcx, [rax + rax]
cmp rcx, 0x20c
jae 0x140105b1a
mov word [rsp + rcx + 0x50], si
mov r8d, eax
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x160]
call fcn.140120274
test eax, eax
je 0x140105ad2
inc rdi
cmp rdi, 1
jbe 0x1401059e9
inc rbx
cmp rbx, 4
jb 0x1401059e6
lea r8, str.ConEmuUpdate.flag
mov edx, 0x118
lea rcx, [rbp + 0x160]
call fcn.140001f38
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
lea rcx, [rbp + 0x160]
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x140105ad6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov al, 1
jmp 0x140105aee
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor al, al
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.140139b10
lea r11, [rsp + 0x4a0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.14013a21c
int3
Function at 0x140108834
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 [0x1401e7e78]
xor rax, rsp
mov qword [rbp + 0x360], rax
mov al, byte [rcx + 0xc]
xor r14d, r14d
mov rbx, rcx
test al, al
jne 0x1401089da
mov al, byte [rcx + 0xd]
test al, al
jne 0x1401089da
mov rdx, qword [0x14021c5d8]
lea rcx, [rbp + 0x150]
add rdx, 0xcfa
call fcn.140107e84
lea r8, [0x14016b5d8]
mov edx, 0x106
lea rcx, [rbp + 0x150]
call fcn.140001f38
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 0x1401089c0
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 0x1401089b5
cmp word [rsp + 0x40], r14w
je 0x1401089b5
lea rcx, [rsp + 0x40]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r14w
jne 0x14010896f
cmp word [rsp + rax*2 + 0x3e], 0x5c
je 0x140108997
lea r8, [0x14016b5d8]
mov edx, 0x106
lea rcx, [rsp + 0x40]
call fcn.140001f38
lea rdx, [rbp + 0x150]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1401089b5
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 0x1401088bc
mov al, byte [rbx + 0xd]
test al, al
jne 0x1401089da
mov byte [rbx + 0xd], 2
mov al, 2
mov rcx, qword [rbp + 0x360]
xor rcx, rsp
call fcn.140139b10
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 0x140108a84
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 [0x1401e7e78]
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 0x140108ab9
cmp word [rax], si
jne 0x140108adb
mov rax, qword [str.https:__conemu.github.io_version.ini]
cmp word [rax], si
jne 0x140108adb
lea rdx, str.Update.VerLocation_is_empty
mov rcx, rbx
call fcn.140041e2c
xor al, al
jmp 0x140108c3e
mov al, byte [rcx + 0xb]
dec al
cmp al, 2
jbe 0x140108aed
lea rdx, str.Update.UseBuilds_is_not_specified
jmp 0x140108acc
xor eax, eax
mov qword [rbp - 0x10], rax
call fcn.140108834
movzx ecx, al
sub ecx, 1
je 0x140108c78
cmp ecx, 1
je 0x140108b12
lea rdx, str.Update.DownloadSetup_is_not_specified
jmp 0x140108acc
mov rcx, rdi
call fcn.140108810
mov rdi, rax
cmp word [rax], si
jne 0x140108b2b
lea rdx, str.Update.ArcCmdLine_is_not_specified
jmp 0x140108acc
lea rcx, [rbp - 0x38]
call fcn.1401286a8
nop
xor r8d, r8d
lea rdx, [rbp - 0x38]
mov rcx, rdi
call fcn.14012571c
test rax, rax
je 0x140108c5a
lea rcx, [rbp - 0x38]
call fcn.140058574
mov rcx, rax
call fcn.140125c18
mov rdi, rax
test rax, rax
je 0x140108c5a
cmp word [rax], si
je 0x140108c5a
lea rdx, str.WinRar.exe
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140108bb3
lea rdx, str.Rar.exe
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140108bb3
lea rdx, str.UnRar.exe
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140108c33
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 0x140108c25
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 0x140108c33
lea rdx, str.Update.ArcCmdLine:_Unwanted_option_n_HKCUSoftwareWinRARExtractionProfile__n_UnpToSubfolders_1
jmp 0x140108c61
lea rcx, [rbp - 0x38]
call fcn.1401286cc
mov al, 1
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140139b10
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.140041e2c
nop
lea rcx, [rbp - 0x38]
call fcn.1401286cc
jmp 0x140108ad4
lea rdx, [rbp - 0x10]
mov rcx, rdi
call fcn.140108a08
cmp word [rax], si
jne 0x140108c3c
lea rdx, str.Update.ExeCmdLine_is_not_specified
jmp 0x140108acc
Function at 0x14010b210
Capabilities:
Check for time delay via gettickcount

Disassembly:
test rcx, rcx
je 0x14010b2f0
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x1401e7e78]
xor rax, rsp
mov qword [rsp + 0x30], rax
cmp byte [rcx + 0x5d], 0
mov dil, dl
mov rbx, rcx
jne 0x14010b2d9
call fcn.14011ff24
test al, al
jne 0x14010b28e
cmp byte [rbx + 0x7d], al
jne 0x14010b288
cmp dword [rbx + 0x78], 0
je 0x14010b264
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rbx + 0x78]
cmp eax, 5
jb 0x14010b288
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 + 0x78], eax
mov word [rbx + 0x7c], 0x100
call qword [sym.imp.USER32.dll_PostMessageW]
jmp 0x14010b2d9
mov byte [rbx + 0x7c], 1
jmp 0x14010b2d9
mov rcx, qword [rbx + 0x28]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_InvalidateRect]
mov byte [rbx + 0x7d], 0
test dil, dil
je 0x14010b2d9
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 0x14010b2d9
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.140139b10
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140118268
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x130
mov rax, qword [0x1401e7e78]
xor rax, rsp
mov qword [rsp + 0x120], rax
xor ebp, ebp
mov rdi, rdx
mov rbx, rcx
test rcx, rcx
je 0x140118314
cmp qword [rcx + 0x138], rbp
je 0x140118314
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.1400c9364
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 0x140118339
xor r9d, r9d
mov qword [rsp + 0x20], rbp
xor r8d, r8d
lea rcx, str.Cant_create_file_
xor edx, edx
call fcn.14011f550
xor al, al
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.140139b10
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.140014190
mov rdx, rax
mov rax, rdi
inc rax
cmp word [rdx + rax*2], bp
jne 0x14011834d
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.14000d08c
lea rax, [rsp + 0x50]
inc rdi
cmp word [rax + rdi*2], bp
jne 0x1401183a7
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 0x140118496
mov rdx, rsi
call fcn.1400ae418
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x140118316
Function at 0x140121d70
Capabilities:
Set environment variable

Disassembly:
test rcx, rcx
je 0x140121df9
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 0x140121de5
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.140123000
test al, al
je 0x140121ddb
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 0x140121d97
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1401226dc
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 0x14012284e
cmp edi, 0x104
jb 0x14012284e
mov word [rcx], r15w
call fcn.140123504
lea edx, [rbp - 2]
mov r14b, al
cmp edx, 1
jbe 0x140122789
mov r8d, edi
lea rcx, str.ComSpec
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x140122789
mov rcx, rbx
call fcn.140125c18
mov rsi, rax
test rax, rax
je 0x140122785
lea rdx, str.ConEmuC.exe
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140122785
lea rdx, str.ConEmuC64.exe
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140122785
xor edx, edx
mov rcx, rbx
call fcn.140122088
test al, al
jne 0x140122789
mov word [rbx], r15w
cmp word [rbx], r15w
jne 0x1401227f1
lea esi, [rdi - 0x14]
mov rcx, rbx
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jle 0x1401227eb
cmp eax, esi
jae 0x1401227eb
test r14b, r14b
je 0x1401227c4
cmp ebp, 2
jne 0x1401227c4
dec eax
lea r8, str.SysWOW64cmd.exe
movsxd rcx, eax
lea rax, [0x1401b3e80]
jmp 0x1401227d7
dec eax
lea r8, str.System32cmd.exe
movsxd rcx, eax
lea rax, [0x1401b3e30]
cmp word [rbx + rcx*2], 0x5c
mov rdx, rdi
mov rcx, rbx
cmove r8, rax
call fcn.140001f38
cmp word [rbx], r15w
je 0x14012280b
xor edx, edx
mov rcx, rbx
call fcn.140122088
test al, al
jne 0x140122805
mov word [rbx], r15w
jmp 0x14012280b
cmp word [rbx], r15w
jne 0x140122849
lea rax, [rsp + 0x50]
mov r9d, edi
mov qword [rsp + 0x28], rax
lea rdx, [0x14016bd78]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
je 0x140122837
cmp eax, edi
jb 0x140122849
mov rdx, rdi
lea r8, [0x14016bd78]
mov rcx, rbx
call fcn.14000ab94
mov rax, rbx
jmp 0x140122850
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 0x140123528
Capabilities:
Check if process is running under wine

Disassembly:
mov r11, rsp
sub rsp, 0x68
mov rax, qword [0x1401e7e78]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov eax, dword [0x140227978]
test eax, eax
jne 0x140123587
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.140121dfc
neg al
sbb eax, eax
and eax, 2
dec eax
mov dword [0x140227978], eax
cmp eax, 1
sete al
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140139b10
add rsp, 0x68
ret

Function at 0x1401239d4
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 0x140123a60
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x48], 0
mov rbx, rcx
jne 0x140123b7a
call fcn.140123174
lea rcx, str.KernelBase.dll
test al, al
jne 0x140123a8b
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rbx + 0x48], rax
test rax, rax
je 0x140123b76
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, [0x1401b4048]
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 0x140123b62
cmp qword [rbx + 0x58], 0
je 0x140123b62
cmp qword [rbx + 0x60], 0
je 0x140123b62
cmp qword [rbx + 0x68], 0
je 0x140123b62
cmp qword [rbx + 0x70], 0
je 0x140123b62
cmp qword [rbx + 0x78], 0
je 0x140123b62
test rax, rax
jne 0x140123b7a
mov rcx, qword [rbx + 0x48]
test rcx, rcx
je 0x140123b76
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
and qword [rbx + 0x48], 0
xor eax, eax
jmp 0x140123b7f
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x140125d08
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 [0x1401e7e78]
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 0x140125ebf
test rcx, rcx
je 0x140125ebf
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.1401261ec
mov rdi, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140125ebf
mov r8d, dword [r14]
mov rdx, r14
mov rcx, rax
test ebx, ebx
je 0x140125dc8
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x140125ebf
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 0x140125e0d
cmp eax, 0xea
je 0x140125e0d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140125ebf
cmp dword [rsp + 0x40], 0x30
jb 0x140125dff
movsxd rsi, dword [rsp + 0x50]
cmp esi, dword [rsp + 0x40]
jb 0x140125dff
cmp dword [rsp + 0x54], 0xaa
jne 0x140125dff
mov rcx, rsi
call fcn.140120104
mov rbx, rax
test rax, rax
jne 0x140125e44
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140125ec2
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.14013b6b0
mov r15d, dword [rsp + 0x40]
add r15, rbx
jmp 0x140125e99
test r12d, r12d
jne 0x140125ea1
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 0x140125e92
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x140125ea1
mov eax, dword [rsp + 0x40]
add r15, rax
sub esi, dword [rsp + 0x40]
test esi, esi
jg 0x140125e60
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbx + 0xc]
cmp eax, dword [r14 + 0xc]
je 0x140125ec2
test eax, eax
jne 0x140125ec2
mov rcx, rbx
call fcn.14012008c
mov rbx, r13
mov rax, rbx
mov rcx, qword [rbp + 0x5c0]
xor rcx, rsp
call fcn.140139b10
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 0x1401261ec
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 0x14012623b
mov r9d, 0x7530
cmp ebx, r9d
cmova ebx, r9d
jmp 0x140126240
mov ebx, 0x7530
mov r14d, 0xfa
cmp ebx, r14d
cmovb r14d, ebx
neg dword [rsp + 0xa8]
sbb r12d, r12d
and r12d, 0x40000000
call fcn.140123b88
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 0x140126363
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
sub esi, dword [rsp + 0x44]
cmp qword [rsp + 0xb0], 0
je 0x1401262d5
mov rcx, qword [rsp + 0xb0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14012635f
cmp edi, 0xe7
jne 0x1401262fc
test ebp, ebp
jle 0x140126357
cmp esi, ebx
jae 0x140126302
mov edx, r14d
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14012625e
test ebp, ebp
jle 0x140126357
cmp esi, ebx
ja 0x140126357
dec ebp
cmp edi, 2
jne 0x140126319
lea ecx, [rdi + 8]
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14012625e
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov rcx, qword [rsp + 0x90]
mov ebx, eax
call fcn.140126d78
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.140120394
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x140126382
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
Function at 0x14012651c
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x13f8]
mov eax, 0x14f0
call fcn.140139ab0
sub rsp, rax
mov rax, qword [0x1401e7e78]
xor rax, rsp
mov qword [rbp + 0x13e0], rax
xor r14d, r14d
mov rbx, rcx
mov qword [rcx], r14
xor edx, edx
mov qword [rcx + 8], r14
mov qword [rcx + 0x10], r14
mov qword [rcx + 0x18], r14
lea edi, [r14 + 0x40]
mov r8d, edi
lea rcx, [rbp + 0x1360]
call fcn.14013b230
mov r8d, edi
lea rcx, [rbp + 0x13a0]
xor edx, edx
call fcn.14013b230
lea edi, [r14 + 0x20]
mov r8d, edi
lea rdx, [rbp + 0x1360]
lea rcx, str.ConEmuPID
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x14012667d
mov r8d, edi
lea rdx, [rbp + 0x13a0]
lea rcx, str.ConEmuServerPID
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x14012667d
cmp word [rbp + 0x1360], r14w
je 0x14012667d
cmp word [rbp + 0x13a0], r14w
je 0x14012667d
lea esi, [rdi - 0x16]
xor edx, edx
mov r8d, esi
lea rcx, [rbp + 0x1360]
call fcn.1401437b4
mov r8d, esi
lea rcx, [rbp + 0x13a0]
xor edx, edx
mov edi, eax
call fcn.1401437b4
mov esi, eax
cmp qword [rbx], r14
jne 0x14012667d
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x143a
call fcn.14013b230
mov dword [rsp + 0x20], 0x143e
test edi, edi
je 0x14012667d
lea rdx, [rsp + 0x20]
mov ecx, edi
call fcn.1401269d8
test eax, eax
je 0x14012667d
lea rcx, [rbp + 0x562]
cmp dword [rcx + 0x10], esi
je 0x140126668
add rcx, 0x18
lea rax, [rbp + 0x832]
cmp rcx, rax
jne 0x140126651
jmp 0x14012667d
mov eax, dword [rcx + 4]
mov qword [rbx + 0x18], rax
mov eax, dword [rcx + 8]
mov qword [rbx], rax
mov eax, dword [rsp + 0x2c]
mov qword [rbx + 8], rax
mov rax, rbx
mov rcx, qword [rbp + 0x13e0]
xor rcx, rsp
call fcn.140139b10
lea r11, [rsp + 0x14f0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret