joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001000
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push rbp
lea rbp, [rsp - 0x710]
sub rsp, 0x810
lea rax, [rbp + 0x728]
mov r9d, 0xf013f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREdialerconfig
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140001099
jmp 0x14000104b
lea rdx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
and qword [rsp + 0x38], 0
lea r9, [rbp + 0x720]
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x40]
and qword [rsp + 0x28], 0
xor edx, edx
mov rcx, qword [rbp + 0x728]
and qword [rsp + 0x20], 0
mov dword [rbp + 0x720], 0x3e8
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov rcx, qword [rbp + 0x728]
test eax, eax
je 0x140001040
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor r9d, r9d
lea rdx, str.SOFTWAREdialerconfig
mov r8d, 0xf013f
mov rcx, 0xffffffff80000002
invalid
invalid
outsb dx, byte [rsi]
invalid
invalid

Function at 0x1400010c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov dword [rax + 0x20], r9d
mov dword [rax + 0x18], r8d
mov qword [rax + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x3e8]
sub rsp, 0x4b0
mov eax, dword [0x140005010]
lea rdx, [rbp + 0x400]
mov rdi, qword [0x140005008]
mov r14d, ecx
mov dword [rsp + 0x60], eax
xor ebx, ebx
call fcn.1400019ac
test eax, eax
je 0x1400014c5
cmp dword [rbp + 0x400], ebx
je 0x1400014c5
mov r8d, r14d
xor edx, edx
mov ecx, 0x43a
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x1400014c5
mov r8d, r14d
xor edx, edx
mov ecx, 0x410
mov r15d, ebx
call qword [sym.imp.KERNEL32.dll_OpenProcess]
lea r13d, [rbx + 1]
mov r14, rax
test rax, rax
je 0x140001208
mov r9d, 0x104
lea r8, [rbp - 0x70]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
test eax, eax
je 0x1400011aa
lea rcx, [rbp - 0x70]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov rcx, rax
mov r12, rax
Function at 0x1400014e4
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x148]
sub rsp, 0x248
mov ebx, 1
xor r14d, r14d
mov dword [rbp + 0x1a8], ebx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edi, 0x9c40
xor edx, edx
mov rcx, rax
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
and dword [rsp + 0x30], r14d
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov r8d, 0x13880
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
and dword [rbp + 0x1a0], r14d
lea r8, [rsp + 0x30]
mov edx, edi
mov rcx, r15
mov r12, rax
call qword [sym.imp.KERNEL32.dll_K32EnumProcesses]
test eax, eax
je 0x14000163b
mov eax, dword [rsp + 0x30]
xor edi, edi
shr eax, 2
mov dword [rsp + 0x30], eax
test eax, eax
je 0x14000163b
mov r8d, dword [r15 + rdi*4]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x14000162f
lea r9, [rbp + 0x1a0]
mov r8d, 0x13880
mov rdx, r12
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
je 0x140001626
mov eax, dword [rbp + 0x1a0]
xor ebx, ebx
shr eax, 3
mov dword [rbp + 0x1a0], eax
test eax, eax
je 0x140001620
mov rdx, qword [r12 + rbx*8]
lea r8, [rsp + 0x40]
and qword [rsp + 0x20], 0
mov r9d, 0x200
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x140001616
movzx edx, word [rbp - 0x80]
mov ecx, 0x7268
movzx eax, dx
sub ax, cx
cmp ax, 0xf
ja 0x140001616
mov ecx, 0x8801
bt ecx, eax
jb 0x140001683
inc ebx
cmp ebx, dword [rbp + 0x1a0]
jb 0x1400015d5
mov ebx, dword [rbp + 0x1a8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rsp + 0x30]
jb 0x140001586
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r15
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r12
xor edx, edx
mov rcx, rax
mov rax, qword [rbp + 0x198]
cmp r14d, dword [rax]
jae 0x1400016c8
mov eax, dword [r15 + rdi*4]
mov r9d, 0x7277
mov r8, qword [rbp + 0x190]
mov ecx, r14d
add rcx, rcx
mov dword [r8 + rcx*8], eax
xor eax, eax
cmp dx, r9w
mov word [r8 + rcx*8 + 4], dx
cmove rax, qword [rbp - 0x7e]
inc r14d
mov qword [r8 + rcx*8 + 8], rax
jmp 0x140001620
xor ebx, ebx
mov dword [rbp + 0x1a8], ebx
jmp 0x140001626
Function at 0x140002078
Capabilities:
Allocate or change rwx memory
Read file via mapping

Disassembly:
test rcx, rcx
je 0x14000228a
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x270
mov rbx, rcx
lea rdx, [0x140003470]
lea rcx, [rsp + 0x60]
xor r13d, r13d
call qword [sym.imp.SHLWAPI.dll_StrCpyW]
mov rdx, rbx
lea rcx, [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_StrCatW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov r14, rax
test rax, rax
je 0x140002270
lea edi, [r13 + 0x18]
lea rax, [rsp + 0x40]
mov edx, edi
mov qword [rsp + 0x2b8], rax
lea ebx, [rdi - 0x17]
mov rcx, qword [rsp + 0x2b8]
mov byte [rcx], r13b
mov rcx, qword [rsp + 0x2b8]
add rcx, rbx
mov qword [rsp + 0x2b8], rcx
sub rdx, rbx
jne 0x1400020e9
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, edi
lea r8, [rsp + 0x40]
mov rcx, rax
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_K32GetModuleInformation]
test eax, eax
je 0x140002267
mov qword [rsp + 0x30], r13
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x28], r13d
xor r9d, r9d
mov r8d, ebx
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140002267
mov qword [rsp + 0x28], r13
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], r13d
mov r8d, 0x1000002
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rbp, rax
test rax, rax
je 0x14000225e
xor r9d, r9d
mov qword [rsp + 0x20], r13
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r15, rax
test rax, rax
je 0x140002255
mov rcx, qword [rsp + 0x40]
movzx edi, r13w
movsxd rbx, dword [rcx + 0x3c]
add rbx, rcx
cmp r13w, word [rbx + 6]
jae 0x140002255
movzx ecx, word [rbx + 0x14]
add rcx, rbx
movzx eax, di
lea rdx, [rax + rax*4]
lea r12, [rcx + rdx*8]
lea rcx, [r12 + 0x18]
lea rdx, str..text
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1400021ff
inc di
cmp di, word [rbx + 6]
jb 0x1400021cc
jmp 0x140002255
mov edi, dword [r12 + 0x24]
lea r9, [rsp + 0x2b0]
add rdi, qword [rsp + 0x40]
mov r8d, 0x40
mov ebx, dword [r12 + 0x20]
mov rcx, rdi
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [r12 + 0x24]
mov r8d, ebx
add rdx, r15
mov rcx, rdi
call fcn.1400018b8
mov r8d, dword [rsp + 0x2b0]
lea r9, [rsp + 0x2b0]
mov rcx, rdi
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x270
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140002328
Capabilities:
Extract resource via kernel32 functions
Set registry value

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x90]
sub rsp, 0x190
lea rcx, str.ntdll.dll
call fcn.140002078
mov edx, 0x11c
lea rax, [rsp + 0x70]
mov ecx, edx
mov qword [rbp + 0xc0], rax
xor edi, edi
mov rax, qword [rbp + 0xc0]
mov byte [rax], dil
mov rax, qword [rbp + 0xc0]
inc rax
mov qword [rbp + 0xc0], rax
sub rcx, 1
jne 0x14000235c
mov dword [rsp + 0x70], edx
mov r8b, 3
lea edx, [rcx + 2]
mov qword [rsp + 0x74], 0xa
mov word [rbp + 0x84], di
call qword [sym.imp.ntdll.dll_VerSetConditionMask]
mov r8b, 3
mov edx, 1
mov rcx, rax
call qword [sym.imp.ntdll.dll_VerSetConditionMask]
mov r8b, 3
mov edx, 0x20
mov rcx, rax
call qword [sym.imp.ntdll.dll_VerSetConditionMask]
mov edx, 0x23
lea rcx, [rsp + 0x70]
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
lea rcx, str.kernel32.dll
call fcn.140002078

Function at 0x140002c18
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov dword [rax + 8], ecx
push rdi
sub rsp, 0x40
and qword [rax - 0x18], 0
lea rcx, str..pipedialercontrol_redirect64
and dword [rax - 0x20], 0
mov edi, r8d
mov rsi, rdx
mov dword [rax - 0x28], 3
xor r8d, r8d
mov edx, 0xc0000000
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140002cad
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x68]
mov r8d, 4
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test rsi, rsi
je 0x140002ca4
test edi, edi
je 0x140002ca4
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x68]
mov r8d, edi
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x1400168d8
Capabilities:
Read file on windows

Disassembly:
and r10, qword [rsp + 0x38]
lea rax, [rax + 0x389c95]
bswap rbx
mov r9, r11
push r13
push rsi
mov rsi, qword [rsp + 0x48]
push r8
cmovs ebx, dword [rsp + r10 - 0x1a03afb1]
sub r10w, 0x8c93
jae 0x1400ac579

Function at 0x140016909
Capabilities:
Read file on windows

Disassembly:
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je fcn.140002c00
cmp dword [rbp + 0x390], 4
jne fcn.140002c00
mov ebx, dword [rbp + 0x380]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r8d, dword [rbp + 0x380]
lea r9, [rbp + 0x390]
mov rdx, rax
mov qword [rsp + 0x20], rdi
mov rcx, rsi
mov r15, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140002a97
mov ecx, dword [rbp + 0x380]
cmp dword [rbp + 0x390], ecx
jne 0x140002a97
movsxd rax, dword [r15 + 0x3c]
cmp dword [rax + r15], 0x4550
jne 0x140002a97
mov ecx, 0x10b
cmp word [rax + r15 + 0x18], cx
je 0x140002a05
mov ecx, 0x20b
cmp word [rax + r15 + 0x18], cx
jne 0x140002a97
mov rdx, r15
lea rcx, [rsp + 0x30]
call fcn.140001db4
jmp 0x140002a97
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [rbp + 0x380]
add esi, 4
lea edi, [rax*2 + 2]
add esi, edi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, esi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
movsxd r8, edi
lea rdx, [rsp + 0x30]
mov rcx, rax
mov rbx, rax
call fcn.1400018b8
mov ecx, edi
lea rdx, [rbp + 0x380]
add rcx, rbx
mov r8d, 4
call fcn.1400018b8
mov r8d, dword [rbp + 0x380]
lea ecx, [rdi + 4]
add rcx, rbx
mov rdx, r15
call fcn.1400018b8
mov r8d, esi
mov ecx, r14d
mov rdx, rbx
call fcn.140002c18
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r15
jmp 0x140002bde
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp fcn.140002c00
not r14
mov r14, qword [rsp + r14 + 0xdfe9]
je 0x140002952
push qword [rsp + 0x28]
popfq
lea rsp, [rsp + 0x38]
ret

Function at 0x1400213a3
Capabilities:
Execute shellcode via indirect call
Resolve function by parsing pe exports

Disassembly:
lea r12, [r12*2 + 0x6d008199]
movsx r12w, cl
mov qword [rsp + r12 - 0x4603ff5d], 0xffffffff84abf522
mov rcx, qword [rsp + 0x48]

Function at 0x14005f7e6
Capabilities:
Extract resource via kernel32 functions
Set registry value

Disassembly:
add qword [rsp], 0x8706b
and word [rsp + 0x20], 0xa3a
call fcn.1400b79d6

Function at 0x140063bad
Capabilities:
Encode data using xor

Disassembly:
pushfq
add qword [rsp + 8], 0xffffffffbfff83df
mov rax, qword [rsp + 0x10]
mov rax, qword [rax]
call fcn.1400c786d
Function at 0x140073d03
Capabilities:
Encode data using xor

Disassembly:
mov r10, qword [rsp + 0x40]
js 0x1400bf412
int 0x3c
xchg edx, eax
xchg ebp, eax
xlatb
and al, 0x7e
std
scasd eax, dword [rdi]
cmp al, 0xd9
push rbp
or byte [rsi + rcx], 0xfd
invalid
Function at 0x140079520
Capabilities:
Authenticate hmac

Disassembly:
and esi, 0xd68054a3
cmp sil, 0xbe
add qword [rsp + 0x18], 0x4db92
push r10
mov rbp, rsi
xor si, 0x499c
call fcn.140008093
cmp r12d, 0xee925a37
add qword [rsp + 0x18], 0x17204
add qword [rsp + 0x28], 0xffffffffbff91398
sub r12b, 0x82
movabs rdx, 0x13aad5a4313c4322
jns 0x1400dbe10
and r8w, 0xc411
push r11
add qword [rsp + 0x10], 0xb5a26
not r9d
push r9
call fcn.14006b3e5
push rdx
push r9
pushfq
movabs r9, 0x20168f0a9da17433
call fcn.14004f38d
push rdx
pushfq
add qword [rsp + 0x10], 0xfffffffffffb50bf
call fcn.1400a801b
add r12d, r12d
ja 0x14005f40a
cmp r8, 0xffffffffbd8318b2
movzx r14, r14w
lea r14, [r8 + r8 - 0x2d553944]
jbe 0x1400a6e32
not r11
mov rbp, qword [rsp + 0x28]
mov rbp, qword [rbp + riz]
xor r13w, r11w
and dl, 0x1f
jo 0x1400d5757
neg r11w
lea rbp, [rbp - 0x2d4964cd]
cmp qword [rsp + 0x38], 0x508666b0
call fcn.140066c23
sal dword [rax + rdi*8 - 0x2e], 0x51
fcom qword [rax - 0x43]
xor dword [rbx], ebp
test al, 0xba
je 0x140079570
rcl byte [rcx - 0x24], cl
push rax
mov ebp, 0xbaa82b31
sub esp, ebx
push rax
std
jno 0x140079602
js 0x140079576
std
xor eax, 0x71f2883a
enter 0xffffffffffffb935, 0xffffffffffffffdb
invalid
out 0x8d, eax
adc ecx, dword [rax - 0x6b]
invalid
add byte [rax], al
cmpsb byte [rsi], byte [rdi]
xchg esp, eax
or al, bh
jne 0x14007959b
loopne 0x140079589
invalid
add dword [rax + 5], esp
add byte [rax], al
add byte [rax], al
scasb al, byte [rdi]
jb 0x14007966b
jae 0x1400795c5
invalid
sub al, 0x5c
insb byte [rdi], dx
hlt
xchg qword [rsp + 0x30], rcx
xchg dword [rsp + 0x30], ecx
mov r14, qword [rsp + 0x20]
call fcn.1400c1fa9
cmc
mov edi, 0x38bd2e3c
xor byte [rcx + rax*8], 0x9d
lahf
leave
or al, 0xc0
scasd eax, dword [rdi]
mov ch, 0x36
add al, 0x97
popfq
sahf
and ebp, dword [rdi - 0x28a40986]
movsd dword [rdi], dword [rsi]
neg ebp
pop rsi
jl 0x1400a6e33
push rdx
fidiv word [rdi + rsi + 0x6e267cd2]
or bh, byte [rdi + 0x465cffbe]
rcl bl, 1
push rdx
rol byte [rsi], 0x62
loopne 0x1400a6ec0
mov esp, 0xaccbde6
add byte [rax], al
add byte [rax], al
not byte [rsi + 0xacc619b]
add byte [rax], al
add bh, bh
mov ch, 0xe1
or ch, byte [rdi + rbx*2 - 0x4000f533]
call [rsi + rdi - 0x78]
invalid
xor byte [rsp + rax*2 - 0x56], ch
lahf
mov esi, dword [rcx + rcx*2 + 0x305b9ed3]
in eax, dx
invalid
add dword [rsp + r10*2 - 0xf58], 0x94aaa23f
sete dl
call fcn.1400a58b4
pop rax
call fcn.14006323a
lea rcx, [rcx + 0x78b9613c]
call fcn.1400b3750
xlatb
adc ch, cl
invalid
jb fcn.1400843c2
setg dl
mov rdx, qword [rsp + 0x18]
mov rdx, qword [rdx]
add r12w, 0x498a
not r12d
or r12d, 0x934d9b7
lea r12, [r12 + r12 + 0x2c2bbc16]
test r12b, r12b
lea rdx, [rdx + r12 - 0x5fdd1aef]
movzx r12, r12b
setl r12b
jge 0x140007747
movabs r12, 0xb2389f126ca02220
test r12d, r12d
xchg qword [rsp + 0x38], rdx
mov r12, qword [rsp + 0x10]
jo 0x1400d529a
push qword [rsp + 0x20]
popfq
lea rsp, [rsp + 0x38]
ret
Function at 0x14008ed9f
Capabilities:
Encode data using xor

Disassembly:
pushfq
add qword [rsp + 0x10], 0x7b97
movabs rax, 0x4e8979afd690b23f
movzx ax, al
mov ax, 0x8985
add ax, ax
ja 0x1400b3de4
mov rax, qword [rsp + 0x10]
mov rax, qword [rax]
add qword [rsp + 8], 0x3f391
push qword [rsp]
popfq
lea rsp, [rsp + 8]
ret 8
and ah, cl
mov edi, 0x3f09bd88
sbb esi, dword [rcx + 0x48]
mov rdi, qword [rsp + 0x20]
mov rdi, qword [rdi + r11 - 0x15]
or qword [rsp + r11 - 5], 0x3c85f185
mov qword [rsp + r11*2 - 0xa], r11
not r11d
or byte [rsp + 0x10], r11b
push r9
lea rdi, [rdi - 0x64e3acd7]
mov qword [rsp + 0x28], r11
cmp r11, qword [rsp + 0x18]
sets r11b
and qword [rsp + 0x28], r11
xchg qword [rsp + 0x58], rdi
mov r11, qword [rsp + 0x48]
xor word [rsp + 0x18], 0xb8a0
call fcn.140013a50
mov esp, 0xe468a529
xor dword [rbp + 0x3dbef478], edi
mov al, 0x3c
jle 0x1400b3da4
jmp [rcx + rsi*4 + 0x3d]

Function at 0x140095830
Capabilities:
Encode data using xor

Disassembly:
shl r14w, 0xd
lea rax, [rax + 0x34a40997]
call fcn.14006efe4
cmc
add byte [rax], bh
invalid

Function at 0x1400a5924
Capabilities:
Encode data using xor

Disassembly:
xchg qword [rsp + 0x10], rdi
push r13
movabs r13, 0xe20788239a255f8e
mov qword [rsp + 0x10], rdi
pushfq
call fcn.140067a52
push 0x3f1df6a0
mov word [rsi - 0x46830fdb], fs
xor eax, 0xc5461c90
mul dword [rcx + rbp*8 + 0x65]
ja 0x1400a593a
pop rcx
invalid

Function at 0x1400bd076
Capabilities:
Connect pipe
Read file on windows

Disassembly:
mov r15, qword [rsp + r15*8 + 0x52300020]
add qword [rsp + 0x38], 0xffffffffbff7f7f7
call fcn.140007f95
call fcn.140082527

Function at 0x1400bd091
Capabilities:
Connect pipe
Read file on windows

Disassembly:
mov rax, qword [rsp + 0x58]
mov rax, qword [rax]
mov qword [rsp + r13*2 + 0x1a], r11
jo 0x1400973f8
seta cl

Function at 0x1400c1fa9
Capabilities:
Encode data using xor

Disassembly:
shl r8w, 0x9f
shl r8, 0xfc
je 0x1400bc64b
sub esi, dword [rbp - 0x76def8fb]
movsb byte [rdi], byte [rsi]
enter 0x72fd, 0xffffffffffffffec
mov ch, 0x8e
invalid
mov r8, qword [rsp + r8*8 + 0x30]
call fcn.14008f3b4
in al, dx
xor dword [rbp - 0x52c1f301], edi
js 0x1400bc620
invalid
seto r8b
xor r8w, 0xfe0c
or r8, r8
jge 0x1400138f9

Function at 0x1400c9b28
Capabilities:
Read file on windows

Disassembly:
jl 0x14001b3e3
mov r10, qword [rsp + 0x40]
neg r9
cmovg r9d, r14d
and r9w, 0x7284
jb fcn.14006f9b4
or r14d, 0x4b332631
add qword [rsp + 8], 0xffffffffbff737ab
add qword [rsp + 0x70], 0xffffffffbff954cd
mov r14b, byte [rsp + 0x7c]
mov r14, qword [rsp + 0x30]
and r9w, word [rsp + 0x7e]
and dword [rsp + 0x78], 0x73397d22
shl r9d, 0xd9
ja 0x140002973
test r9d, r9d
mov r9, qword [rsp + r9 + 0x28]
jns 0x1400c7533
movabs eax, dword [0x7a8f342692ffffd9]
neg byte [rbx - 0x29]
xchg edx, eax
xor al, 0x8f
jp 0x1400c9b8e
pop rbx
xlatb
add cl, byte [rsi + 0x76fa27a4]
xchg ebx, eax
invalid
Function at 0x1400cdc49
Capabilities:
Connect pipe
Read file on windows

Disassembly:
call fcn.1400cdc49
mov rbx, qword [rsp + rbx - 0x58081ff0]
mov qword [rsp + 0x10], 0xffffffffd81d57b5
push qword [rsp]
popfq
lea rsp, [rsp + 0x10]
call fcn.1400eb195
mov byte [rsp + r14*2 + 0x10], 0x2d
jb 0x1400ce39f
movabs rbx, 0x1a3f86255a1be19b
pushfq
and rbx, 0x7cac262c
jo 0x14000cac1
add qword [rsp + rbx - 0x58082000], 0xffffffffbfff353a
and bx, 0x2532
shr bl, 0x47
jbe 0x140011664
mov rdi, qword [rsp + 0x48]
jno 0x1400973e6
add qword [rsp + r15*2 + 8], 0xffffffffbff38aec
or word [rsp + r15 + 0x38], 0x87a2
neg r15w
shr qword [rsp + r14*8], 0x28
mov r14, qword [rsp + r14*4 + 0x58]
cmp word [rsp + r15 + 0x30], 0x30bb
call fcn.1400deb28

Function at 0x1400d0dbd
Capabilities:
Connect pipe
Read file on windows
Write file on windows
Write pipe

Disassembly:
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x140002e0f
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x68]
mov r8d, 4
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140002e1a
mov ecx, dword [rsp + 0x60]
call rdi
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, 1
mov byte [rsp + 0x58], 0x4d
lea rdx, [rsp + 0x58]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x140002e1a
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
jmp 0x140002db1
call fcn.140078ddc
cmp ecx, dword [rax - 0x73]
and al, 0x38
mov r11d, eax
xor rbx, r11
call fcn.140098404
mov r11, qword [rsp + 0x38]
xor r11, rbx
movabs rax, 0xffffffffffff
and r11, rax
movabs rax, 0x2b992ddfa233
cmp r11, rdi
cmove r11, rax
mov qword [0x14003b960], r11
not r11
mov qword [0x14003b968], r11
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
setne r10b
setl r10b
neg r10b
sub qword [rsp + r10 - 0x46a546c8], 0xffffffff99af8a00
mov r10, qword [rsp + r10 - 0x46a546c0]
jl 0x140002db6
shl dword [rsp + 0x38], 0xf2
and qword [rsp + 0x38], 0x77ae40bd
je 0x140028cce
cmp qword [rsp + 0x38], 0x51910512
je 0x14009fe75
jae 0x1400b6046
push qword [rsp + 0x48]
popfq
lea rsp, [rsp + 0x50]
ret

Function at 0x1400d12a0
Capabilities:
Encode data using xor

Disassembly:
not r9w
push rcx
lea rdx, [rdx + 0x98d308b]
xor r9b, byte [rsp + 0x16]

Function at 0x1400e193b
Capabilities:
Encode data using xor

Disassembly:
shr r8b, 0x81
push rdx
add qword [rsp + 8], 0x104f0
add dword [rsp + 0x30], 0x470fc40c
push r9
call fcn.1400a9b23
Function at 0x14024afdb
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
btc r11w, cx
bswap rbx
mov bx, r10w
mov qword [rsp + 0x10], rdi
cmp r12b, 0xb1
xadd bx, bx
xor edi, edi
setp r9b
movzx ebx, r8b
movzx r11d, r8w
movsxd r8, esp
mov r11, rcx
movzx r10, r9w
movzx r9d, r14w
mov r8, rdi
xchg r10b, r9b
nop
setns r9b
movzx r10w, r10b
movzx r9d, byte [r11]
cmovl r10w, bx
movsx r10, r11w
movsxd r10, esp
movzx r10d, byte [rdx]
jmp 0x14024b03e
inc r11
jmp 0x14024b046
inc rdx
clc
test bh, 8
test bl, bl
jmp 0x14024b054
je 0x14024b073
mov ecx, r8d
mov eax, 0xc48af221
stc
rol eax, cl
add al, r8b
xor r9b, al
jmp 0x14024b070
inc r8
test r9b, r9b
jmp 0x14024b07b
je 0x14024b08f
cmp r9b, r10b
jmp 0x14024b089
je 0x14024b025
cmp r9b, r10b
jmp 0x14024b097
jae 0x14024b0bd
or eax, 0xffffffff
bswap bx
xchg bx, di
movsx rdi, dx
mov rbx, qword [rsp + 8]
mov dil, r9b
movsx edi, bx
xchg edi, edi
mov rdi, qword [rsp + 0x10]
ret
mov rbx, qword [rsp + 8]
xchg dil, al
movzx rax, di
seta dil
cdqe
movsxd rax, eax
mov eax, edi
movzx edi, r11w
cmovno di, dx
mov rdi, qword [rsp + 0x10]
ret
Function at 0x140001c00
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001c4a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001c4a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001c4a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001c4a
cmp dword [rcx + 0x84], 0xe
jbe 0x140001c4a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001c4c
xor al, al
add rsp, 0x28
ret
Function at 0x14019a5e0
Capabilities:
Parse pe header

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 r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x14019a3b4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14019a3b4
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14019a3b4
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14019a3b4
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14019a3b4
cmp dword [rcx + 0x84], 0xe
jbe 0x14019a3b4
cmp dword [rcx + 0xf8], esi
je 0x14019a3b4
mov ecx, r14d
call fcn.14019a4fc
mov ecx, 2
call fcn.14019ca18
nop
cmp byte [0x1402a6498], 0
jne 0x14019a47e
mov r15d, 1
mov eax, r15d
xchg dword [0x1402a648c], eax
test ebx, ebx
jne 0x14019a427
mov rdi, qword [0x14028e6b0]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x1402a6490]
cmp rcx, rax
je 0x14019a41e
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.1400bbf40]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x1402a68f0]
jmp 0x14019a433
cmp ebx, r15d
jne 0x14019a439
lea rcx, [0x1402a6908]
call fcn.1401a1414
nop
test ebx, ebx
jne 0x14019a450
lea rdx, [0x1401d0108]
lea rcx, [0x1401d00e0]
call fcn.1401a1758
lea rdx, [0x1401d0118]
lea rcx, [0x1401d0110]
call fcn.1401a1758
movzx eax, byte [0x1402a6498]
test esi, esi
cmove eax, r15d
mov byte [0x1402a6498], al
jmp 0x14019a47e
mov ecx, 2
call fcn.14019ca6c
test esi, esi
jne 0x14019a495
mov ecx, r14d
call fcn.14019a4b0
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x14019a344