joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140044ecc
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rdi
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x14019be90]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov eax, dword [0x1401a3d80]
xor ebx, ebx
lea ecx, [rax + 1]
lea edi, [rbx + 0x10]
imul ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
shl eax, 3
sub ecx, eax
cmp ecx, edi
jne 0x140044f33
mov qword [r11 - 0x50], rbx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [r11 - 0x58], rbx
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
cmp byte [0x1401a589a], bl
lea rax, [0x14019f808]
jne 0x140044fb7
mov dword [rbp - 0x40], 0xc0004
mov dword [rbp - 0x3c], 0x27001a
mov dword [rbp - 0x38], 0xb001d
mov dword [rbp - 0x34], 0xa0010
mov dword [rbp - 0x30], 0x3d0011
mov dword [rbp - 0x2c], 0x80011
mov dword [rbp - 0x28], 0xf0010
mov dword [rbp - 0x24], 0x2a0015
mov dword [rbp - 0x20], 0x20036
mov dword [rbp - 0x1c], 0x9000f
mov dword [rbp - 0x18], 0x530057
mov word [rbp - 0x14], bx
lea rcx, [0x14019ed90]
movzx ecx, byte [rbx + rcx]
xor cx, word [rbp + rbx*2 - 0x40]
mov word [rax + rbx*2], cx
inc rbx
cmp rbx, 0x16
jl 0x140044f93
mov byte [0x1401a589a], 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400bb0d0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret

Function at 0x140044fd8
Capabilities:
Encode data using xor

Disassembly:
push rbp
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x14019be90]
xor rax, rsp
mov qword [rbp + 8], rax
mov ecx, dword [0x1401a3d80]
mov eax, 0x88888889
imul ecx, ecx
imul ecx
add edx, ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xf
sub ecx, edx
cmp ecx, 0xe
jne 0x140045025
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
xor eax, eax
cmp byte [0x1401a5890], al
je 0x14004503b
lea rax, [0x14019f308]
jmp 0x1400450ca
mov dword [rbp - 0x30], 0x1f000d
mov dword [rbp - 0x2c], 0x35001e
mov dword [rbp - 0x28], 0x10007
mov r10d, 1
mov dword [rbp - 0x24], 0x1e0000
mov dword [rbp - 0x20], 0x100004
mov dword [rbp - 0x1c], 0x120013
mov dword [rbp - 0x18], 0x70011
mov dword [rbp - 0x14], 0x8002f
mov dword [rbp - 0x10], 0x5000d
mov dword [rbp - 0xc], 0x90002
mov dword [rbp - 8], 0x1b0032
mov dword [rbp - 4], 0x80003
mov dword [rbp], 0x1e
lea rdx, [0x14019f308]
lea rcx, [0x14019ed90]
movzx ecx, byte [rax + rcx]
xor cx, word [rbp + rax*2 - 0x30]
mov word [rdx + rax*2], cx
add rax, r10
cmp rax, 0x19
jl 0x1400450a3
mov byte [0x1401a5890], r10b
mov rax, rdx
mov rcx, qword [rbp + 8]
xor rcx, rsp
call fcn.1400bb0d0
add rsp, 0x110
pop rbp
ret
Function at 0x1400450e0
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov rax, qword [0x14019be90]
xor rax, rsp
mov qword [rbp - 8], rax
xor eax, eax
cmp byte [0x1401a5897], al
je 0x14004510a
lea rax, [0x14019fb90]
jmp 0x140045183
mov dword [rbp - 0x30], 0x280035
mov dword [rbp - 0x2c], 0x60002
mov dword [rbp - 0x28], 0xc001d
mov dword [rbp - 0x24], 0x1e0020
mov dword [rbp - 0x20], 0x3b0046
mov dword [rbp - 0x1c], 0x4b0004
mov dword [rbp - 0x18], 0x160027
mov r8d, 0x13
mov dword [rbp - 0x14], 0x70013
mov dword [rbp - 0x10], 0x150007
mov dword [rbp - 0xc], 0x10
lea rdx, [0x14019fb90]
lea rcx, [0x14019ed90]
movzx ecx, byte [rax + rcx]
xor cx, word [rbp + rax*2 - 0x30]
mov word [rdx + rax*2], cx
inc rax
cmp rax, r8
jl 0x14004515d
mov byte [0x1401a5897], 1
mov rax, rdx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400bb0d0
add rsp, 0x30
pop rbp
ret

Function at 0x140045198
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x14019be90]
xor rax, rsp
mov qword [rbp - 8], rax
mov ecx, dword [0x1401a3d80]
mov eax, 0x2aaaaaab
imul ecx, ecx
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
shl eax, 3
sub ecx, eax
cmp ecx, 3
jne 0x1400451de
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetFileType]
xor eax, eax
cmp byte [0x1401a589b], al
je 0x1400451f1
lea rax, [0x14019fa10]
jmp 0x140045261
mov dword [rbp - 0x30], 0x80013
mov dword [rbp - 0x2c], 0xf001c
mov dword [rbp - 0x28], 0x1b001c
mov dword [rbp - 0x24], 0x160045
mov dword [rbp - 0x20], 0x1a0006
mov dword [rbp - 0x1c], 0x460013
mov dword [rbp - 0x18], 0x2001a
mov dword [rbp - 0x14], 0x1001d
mov r8d, 1
mov word [rbp - 0x10], ax
lea rdx, [0x14019fa10]
lea rcx, [0x14019ed90]
movzx ecx, byte [rax + rcx]
xor cx, word [rbp + rax*2 - 0x30]
mov word [rdx + rax*2], cx
add rax, r8
cmp rax, 0x10
jl 0x14004523a
mov byte [0x1401a589b], r8b
mov rax, rdx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400bb0d0
add rsp, 0x50
pop rbp
ret

Function at 0x140045274
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x14019be90]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov ecx, dword [0x1401a3d80]
xor ebx, ebx
lea eax, [rcx + 1]
lea r8d, [rcx + 2]
imul r8d, eax
mov eax, 0x30c30c31
imul r8d, ecx
imul r8d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x15
sub r8d, edx
cmp r8d, 8
jne 0x1400452d8
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
cmp byte [0x1401a5888], bl
lea rax, [0x14019f2f8]
jne 0x140045327
mov dword [rsp + 0x30], 0x7004e
mov edx, 1
mov dword [rsp + 0x34], 0x1c0001
mov dword [rsp + 0x38], 0x13
lea rcx, [0x14019ed90]
movzx ecx, byte [rbx + rcx]
xor cx, word [rsp + rbx*2 + 0x30]
mov word [rax + rbx*2], cx
add rbx, rdx
cmp rbx, 5
jl 0x140045304
mov byte [0x1401a5888], dl
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400bb0d0
add rsp, 0x50
pop rbx
ret
Function at 0x14004533c
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov rax, qword [0x14019be90]
xor rax, rsp
mov qword [rbp - 8], rax
xor eax, eax
cmp byte [0x1401a58b5], al
je 0x140045366
lea rax, [0x14019f5e8]
jmp 0x1400453d0
mov dword [rbp - 0x30], 0x19002c
mov dword [rbp - 0x2c], 0x4000b
mov dword [rbp - 0x28], 0x1d0022
mov dword [rbp - 0x24], 0x5000a
mov dword [rbp - 0x20], 0x60011
mov dword [rbp - 0x1c], 0x460003
mov dword [rbp - 0x18], 0x60007
mov dword [rbp - 0x14], 0x2001c
mov word [rbp - 0x10], ax
lea rdx, [0x14019f5e8]
lea rcx, [0x14019ed90]
movzx ecx, byte [rax + rcx]
xor cx, word [rbp + rax*2 - 0x30]
mov word [rdx + rax*2], cx
inc rax
cmp rax, 0x10
jl 0x1400453a9
mov byte [0x1401a58b5], 1
mov rax, rdx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400bb0d0
add rsp, 0x30
pop rbp
ret
Function at 0x140048d28
Capabilities:
Acquire debug privileges

Disassembly:
mov r11, rsp
push rbp
lea rbp, [r11 - 0x5f]
sub rsp, 0xa0
mov qword [rbp + 0x17], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rdi
mov rax, qword [0x14019be90]
xor rax, rsp
mov qword [rbp + 0x4f], rax
mov edi, edx
mov eax, dword [0x1401a3d80]
lea ecx, [rax + 1]
imul ecx, eax
mov eax, 0xb21642c9
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x17
sub ecx, edx
cmp ecx, 0xf
jne 0x140048da9
and qword [r11 - 0x78], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
call fcn.140023b04
mov rcx, rax
lea r9, [rbp - 9]
mov r8d, 0x20028
mov rdx, rbx
call fcn.140035468
test eax, eax
jne 0x140048e09
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp + 0x2f]
call fcn.140040e34
mov rbx, rax
call fcn.1400429c0
mov rdx, rax
mov r8, rbx
lea rcx, [rbp - 1]
call fcn.14004549c
lea rdx, [0x1401664c8]
lea rcx, [rbp - 1]
call fcn.1400c2fa8
nop
lea r8, [rbp + 0xf]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x140048e63
mov rcx, qword [rbp - 9]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp + 0x2f]
call fcn.140040e34
mov rbx, rax
call fcn.140043060
mov rdx, rax
mov r8, rbx
lea rcx, [rbp - 1]
call fcn.14004549c
lea rdx, [0x1401664c8]
lea rcx, [rbp - 1]
call fcn.1400c2fa8
nop
mov ebx, 1
mov dword [rbp + 0x1f], ebx
mov rax, qword [rbp + 0xf]
mov qword [rbp + 0x23], rax
mov ecx, dword [0x1401a3d80]
lea r8d, [rcx + 2]
lea eax, [rcx + 1]
imul r8d, eax
imul r8d, ecx
mov eax, 0x30c30c31
imul r8d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x15
sub r8d, edx
cmp r8d, 8
jne 0x140048eea
mov rax, qword [str.zRRZtXTJ]
mov qword [rbp - 1], rax
mov al, byte [0x140137000]
mov byte [rbp + 7], al
lea rax, [rbp - 1]
or r8, 0xffffffffffffffff
mov rcx, r8
inc rcx
cmp byte [rax + rcx], 0
jne 0x140048ec5
mov eax, 4
mul rcx
cmovo rax, r8
mov rcx, rax
call fcn.1400ba748
mov rcx, rax
call fcn.1400bc20c
neg edi
sbb eax, eax
and eax, 2
mov dword [rbp + 0x2b], eax
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rbp + 0x1f]
xor edx, edx
mov rcx, qword [rbp - 9]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rbp - 9]
test eax, eax
jne 0x140048f5a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp + 0x2f]
call fcn.140040e34
mov rbx, rax
call fcn.140041b74
mov rdx, rax
mov r8, rbx
lea rcx, [rbp - 1]
call fcn.14004549c
lea rdx, [0x1401664c8]
lea rcx, [rbp - 1]
call fcn.1400c2fa8
nop
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.1400bb0d0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x14004a478
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rbp, rdx
mov rsi, rcx
mov r9d, dword [0x1401a3d80]
mov r8d, r9d
imul r8d, r9d
mov eax, 0x30c30c31
imul r8d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x15
sub r8d, edx
mov edi, 1
cmp r8d, 3
jne 0x14004a511
xor ecx, ecx
mov r8d, 0x6f74ae27
mov r10d, 0x97
jmp 0x14004a4eb
mov eax, r9d
or eax, 0xffffff1b
add r9d, eax
add ecx, edi
mov eax, r9d
imul eax, r9d
cmp ecx, eax
jg 0x14004a50b
mov eax, r8d
imul r9d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x93
mov eax, r9d
sub eax, edx
cmp eax, r10d
jne 0x14004a4d3
mov dword [0x1401a3d80], ecx
lea rbx, [rsi + 0x1b8]
mov edx, 0x5c
mov rcx, qword [rbx]
call fcn.1400bdad4
or r14d, 0xffffffff
test rax, rax
jne 0x14004a533
mov eax, r14d
jmp 0x14004a539
sub rax, qword [rbx]
sar rax, 1
lea r8d, [rax + 1]
lea rdx, [rsp + 0x80]
mov rcx, rbx
call fcn.140022e68
nop
mov eax, dword [0x1401a3d80]
lea ecx, [rax + 1]
imul ecx, eax
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xf
sub ecx, edx
cmp ecx, 4
jne 0x14004a582
call fcn.1400bba88
mov dword [0x1401a3d80], eax
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, qword [rbx]
mov rcx, qword [rsi + 0x2e0]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14004a615
call fcn.140042dd4
mov r8, rax
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call fcn.140018bf8
nop
mov dword [rsp + 0x28], 0x20
mov qword [rsp + 0x20], rbp
mov r9d, 3
xor r8d, r8d
mov rdx, qword [rax]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x14004a611
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test ebx, ebx
je 0x14004a65a
call fcn.1400435b4
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.1400020f8
nop
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.14004b1f4
nop
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x14004a657
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor dil, dil
mov rdx, qword [rsp + 0x80]
add rdx, 0xffffffffffffffe8
mov ecx, r14d
lock xadd dword [rdx + 0x10], ecx
add ecx, r14d
test ecx, ecx
jg 0x14004a67f
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov al, dil
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14004bb44
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 r14
push r15
sub rsp, 0x30
mov r12, rdx
lea rdx, [rcx + 0x10]
mov r8, rcx
mov rsi, rcx
call fcn.140003da4
and dword [rsi + 0x44], 0
mov byte [rsi + 0x40], 0
mov r15, qword [0x1401a24f0]
call fcn.1400094c0
xor edi, edi
mov ebx, 0x81
mov rcx, r15
lea r8d, [rdi + 5]
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbp, rax
test rax, rax
je 0x14004bc5e
lea r8d, [rbx + 0x6f]
mov edx, ebx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x14004bbd2
mov rdx, rax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rbp
mov rcx, r15
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14004bc4a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
je 0x14004bc4a
mov rcx, rax
call fcn.140040a64
and qword [rsp + 0x20], rbx
lea r9, [0x14004c5f4]
mov rdx, rax
mov r8, r12
mov rcx, r15
mov rbp, rax
call qword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
mov rdi, rax
test rax, rax
jne 0x14004bc2c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp rbp, r14
je 0x14004bc52
test rbp, rbp
je 0x14004bc52
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalHandle]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x14004bc52
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
je 0x14004bc5e
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [rsi + 0x44], 0
jge 0x14004bc7e
test rdi, rdi
je 0x14004bc7e
mov rcx, qword [rsi + 8]
call qword [sym.imp.USER32.dll_DestroyWindow]
mov ecx, dword [rsi + 0x44]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rax, rdi
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
ret
Function at 0x14004ce30
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
mov rsi, rdx
mov rdi, rcx
xor ebx, ebx
mov dword [rbp - 0x30], ebx
mov r9d, dword [0x1401a3d80]
lea r8d, [r9 + 1]
imul r8d, r9d
mov r11d, 0x2e8ba2e9
mov eax, r11d
imul r8d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x16
sub r8d, edx
cmp r8d, 0xf
jne 0x14004cec4
mov edx, ebx
mov r8d, edx
mov r10d, 8
mov ecx, r8d
and ecx, 1
dec ecx
not ecx
and ecx, r9d
mov eax, r8d
sar eax, 1
mov r8d, ecx
xor r8d, eax
dec r10
jne 0x14004ce93
add r9d, r8d
inc edx
cmp edx, 0x100
jl 0x14004ce8a
mov dword [0x1401a3d80], r9d
mov qword [rbp + 0x30], rbx
lea ecx, [r9 + 1]
imul ecx, r9d
mov eax, r11d
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x16
sub ecx, edx
cmp ecx, 9
jne 0x14004cefb
mov ecx, 4
call fcn.1400bb888
mov ecx, dword [0x1401a3d80]
mov dword [rax], ecx
lea rdx, [rbp + 0x30]
mov rcx, rsi
call qword [sym.imp.ole32.dll_StringFromIID]
test eax, eax
jns 0x14004cf4c
lea rax, str.Failure_to_set_pipe_name_1
mov qword [rbp + 0x38], rax
lea rdx, [rbp + 0x38]
lea rcx, [rbp - 0x20]
call fcn.1400be558
nop
lea rax, vtable.CRSimpleIPCException.0
mov qword [rbp - 0x20], rax
lea rax, vtable.CRSimpleIPCExceptionServerException.0
mov qword [rbp - 0x20], rax
lea rdx, [0x140166650]
lea rcx, [rbp - 0x20]
call fcn.1400c2fa8
int3
mov rdx, qword [rbp + 0x30]
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rbx
mov word [rdi], bx
cmp word [rdx], bx
je 0x14004cf74
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], bx
jne 0x14004cf68
mov rbx, rax
mov r8, rbx
mov rcx, rdi
call fcn.14004c178
mov dword [rbp - 0x30], 1
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [0x1401a3d80]
lea r8d, [rcx + 2]
lea eax, [rcx + 1]
imul r8d, eax
imul r8d, ecx
mov eax, 0x30c30c31
imul r8d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x15
sub r8d, edx
cmp r8d, 4
jne 0x14004cfe3
mov ecx, r8d
call fcn.1400bb888
mov rbx, rax
call fcn.1400bba88
mov dword [rbx], eax
mov dword [0x1401a3d80], eax
mov rcx, rbx
call fcn.1400bb0b4
mov rax, rdi
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x14004e650
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x368]
sub rsp, 0x460
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14019be90]
xor rax, rsp
mov qword [rbp + 0x350], rax
mov rsi, rcx
xor ebx, ebx
cmp byte [rcx + 0x10], bl
je 0x14004e6f8
call fcn.14004e854
test al, al
jne 0x14004e6f8
mov r8d, dword [0x1401a3d80]
mov ecx, r8d
imul ecx, r8d
imul ecx, r8d
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
shl eax, 3
sub ecx, eax
cmp ecx, 4
jne 0x14004e7ee
lea rcx, [rbp - 0x80]
mov eax, dword [rcx]
imul eax, eax, 0x26
add r8d, eax
inc ebx
lea rcx, [rcx + 4]
movsxd rax, ebx
cmp rax, 0x3c8
jb 0x14004e6d3
mov dword [0x1401a3d80], r8d
jmp 0x14004e7ee
mov dword [rsp + 0x30], ebx
lea rax, [rsi + 0x18]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov rdx, qword [rsi + 0x60]
mov rcx, qword [rsi + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14004e7ad
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x14004e778
cmp eax, 0x3e5
je 0x14004e772
lea rax, str.Channel_read_failure
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x60]
call fcn.1400be558
nop
lea rax, vtable.CRSimpleIPCException.0
mov qword [rsp + 0x60], rax
lea rdx, [0x140166630]
lea rcx, [rsp + 0x60]
call fcn.1400c2fa8
int3
mov byte [rsi + 0x10], 1
jmp 0x14004e7ad
lea rcx, [rsp + 0x40]
call fcn.1400be5d0
nop
lea rax, vtable.CRSimpleIPCException.0
mov qword [rsp + 0x40], rax
lea rax, vtable.CRSimpleIPCExceptionDisconnected.0
mov qword [rsp + 0x40], rax
lea rdx, [0x1401665e8]
lea rcx, [rsp + 0x40]
call fcn.1400c2fa8
int3
cmp byte [rsi + 0x10], bl
jne 0x14004e7ee
lea rdi, [rsi + 0x48]
mov rbx, qword [rdi + 8]
sub rbx, qword [rdi]
mov edx, dword [rsp + 0x30]
add rdx, rbx
mov rcx, rdi
call fcn.14002491c
mov r8d, dword [rsp + 0x30]
mov rcx, qword [rdi]
add rcx, rbx
mov rdx, qword [rsi + 0x60]
call fcn.1400bb100
mov rcx, qword [rsi + 0x38]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov al, 1
jmp 0x14004e7f0
xor al, al
mov rcx, qword [rbp + 0x350]
xor rcx, rsp
call fcn.1400bb0d0
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14005002c
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
xor r11d, r11d
mov r10, rdx
mov r9, rcx
test r8d, r8d
jle 0x140050080
mov rbx, rcx
sub r10, rcx
mov eax, 0x7e07e07f
imul r11d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, r11d
inc r11d
imul edx, edx, 0x82
sub eax, edx
movsxd rcx, eax
lea rax, str._Isaac_went_out_to_meditate_in_the_field_at_the_eventide:_and_he_lifted_up_his_eyes__and_saw__and__behold__the_camels_were_coming.
mov al, byte [rcx + rax]
xor al, byte [r10 + rbx]
mov byte [rbx], al
inc rbx
cmp r11d, r8d
jl 0x140050045
mov rbx, qword [rsp + 8]
mov rax, r9
ret
Function at 0x140055a18
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0xf70]
mov eax, 0x1070
call fcn.1400c0180
sub rsp, rax
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x14019be90]
xor rax, rsp
mov qword [rbp + 0xf60], rax
mov rdi, r8
mov rbx, rcx
lea r8, str._ver
lea rcx, [rsp + 0x40]
call fcn.140018bf8
nop
and dword [rsp + 0x38], 0
mov byte [rsp + 0x60], 0
xor edx, edx
mov r8d, 0xfff
lea rcx, [rsp + 0x61]
call fcn.1400c0510
mov dword [rsp + 0x30], 0x1000
or dword [rsp + 0x34], 0xffffffff
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140055b44
lea r9d, [rax + 3]
cmp dword [rsp + 0x34], r9d
jne 0x140055b44
cmp dword [rsp + 0x30], 0x1000
je 0x140055b44
mov eax, dword [rsp + 0x60]
inc eax
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x140055b40
lea rdx, str.error_writing_ver
lea rcx, [rsp + 0x50]
call fcn.140002d94
nop
lea rdx, [rsp + 0x50]
mov rcx, qword [rbx + 0x40]
call fcn.14004b1f4
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140055b83
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140055b83
mov bl, 1
jmp 0x140055b85
lea rdx, str.error_reading_ver
lea rcx, [rsp + 0x48]
call fcn.140002d94
nop
lea rdx, [rsp + 0x48]
mov rcx, qword [rbx + 0x40]
call fcn.14004b1f4
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140055b7e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
call fcn.14004fa90
xor bl, bl
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140055b9f
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov al, bl
mov rcx, qword [rbp + 0xf60]
xor rcx, rsp
call fcn.1400bb0d0
add rsp, 0x1070
pop rdi
pop rbx
pop rbp
ret