joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400022a0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp edx, 2
je 0x1400023d0
ja 0x1400022e8
test edx, edx
je 0x140002368
mov eax, dword [0x14000e108]
test eax, eax
je 0x140002450
mov dword [0x14000e108], 1
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp edx, 3
jne 0x1400022d5
mov eax, dword [0x14000e108]
test eax, eax
je 0x1400022d5
lea r12, [0x14000e120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000e100]
test rbx, rbx
je 0x140002354
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x140002478
test eax, eax
jne 0x140002478
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002328
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1400022d5
mov eax, dword [0x14000e108]
test eax, eax
jne 0x1400023e8
mov eax, dword [0x14000e108]
cmp eax, 1
jne 0x1400022d5
mov rbx, qword [0x14000e100]
test rbx, rbx
je 0x1400023a1
nop dword [rax]
mov rcx, rbx
mov rbx, qword [rbx + 0x10]
call sym.free
test rbx, rbx
jne 0x140002390
lea rcx, [0x14000e120]
mov qword [0x14000e100], 0
mov dword [0x14000e108], 0
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
jmp 0x1400022d5
call sym._fpreset
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea r12, [0x14000e120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000e100]
test rbx, rbx
je 0x14000243c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop word [rax + rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140002468
test rsi, rsi
je 0x140002468
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002418
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x140002372
lea rcx, [0x14000e120]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jmp 0x1400022cb
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002418
jmp 0x14000243c
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002328
jmp 0x140002354

Function at 0x140002490
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400024a8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400024b0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400024c0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14000250d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140002504
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000250f
add rax, 0x28
cmp rax, r9
jne 0x1400024f0
xor eax, eax
ret
Function at 0x140002510
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400025a0
mov rdx, qword [0x14000b820]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000258e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000258e
cmp word [rax + 0x18], 0x20b
jne 0x14000258e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400025a0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002579
add rbx, 0x28
cmp rbx, rdi
je 0x1400025a0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002570
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x1400025b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r8, qword [0x14000b820]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400025d0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400025d8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400025d0
movzx eax, word [rdx + 0x14]
sub rcx, r8
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002625
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000261c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400025d0
add rax, 0x28
cmp rax, r9
jne 0x140002608
xor eax, eax
ret

Function at 0x140002630
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000b820]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000264f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002658
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000264f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002670
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14000b820]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002690
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002698
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002690
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1400026e0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400026d7
test rcx, rcx
je 0x140002690
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x1400026c8
xor eax, eax
ret

Function at 0x1400026f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000b820]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000270f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002718
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140002730
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000b820]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002750
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002758
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002750
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002750
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x1400027a4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400027b0
add rdx, 0x28
cmp r9, rdx
jne 0x140002790
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x1400027c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x14000b820]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x1400027e4
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
cmp dword [rcx], 0x4550
je 0x1400027f0
mov rax, r9
ret
cmp word [rcx + 0x18], 0x20b
jne 0x1400027e4
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x1400027e4
movzx edx, word [rcx + 0x14]
movzx r10d, word [rcx + 6]
lea rdx, [rcx + rdx + 0x18]
test r10w, r10w
je 0x1400027e4
lea ecx, [r10 - 1]
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x14000283c
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x140002850
add rdx, 0x28
cmp rdx, r10
jne 0x140002828
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002860
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x14000286e
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002845
test r8d, r8d
jg 0x140002858
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x14006ec20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rsi
push r13
push r14
sub rsp, 0x38
mov rsi, qword [rcx + 0xa0]
mov r14, rcx
mov r13, qword [rcx]
mov rbx, qword [rcx + 0x10]
test rsi, rsi
je 0x14006ee28
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x70], r12
xor r12d, r12d
mov qword [rsp + 0x30], r15
nop dword [rax]
movsxd r8, dword [rsi + 0x10]
xor edx, edx
mov rax, qword [r13 + 0x20]
mov r9, r8
mov edi, dword [rsi + 0x14]
mov rcx, r14
shl r9, 5
mov dword [rsp + 0x20], 0x70
mov r9, qword [r9 + rax + 0x18]
mov r9, qword [r9 + 0x68]
call fcn.14006e1f0
mov rax, qword [rsi + 8]
lea r15d, [rdi - 1]
movsxd rdx, dword [rbx + 0x90]
mov rbp, qword [rax]
cmp dword [rbx + 0x94], edx
jg 0x14006ecc2
xor r8d, r8d
mov dword [rsp + 0x20], r12d
mov r9d, r15d
mov rcx, rbx
lea edx, [r8 + 0x75]
call fcn.14002df90
mov edx, eax
jmp 0x14006eced
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
mov dword [rbx + 0x90], eax
mov rax, qword [rbx + 0x88]
mov qword [rax + rcx*8], 0x75
mov dword [rax + rcx*8 + 8], r15d
mov dword [rax + rcx*8 + 0xc], r12d
mov qword [rax + rcx*8 + 0x10], r12
xor r9d, r9d
mov r8, rbp
mov rcx, rbx
call fcn.14002f3e0
mov eax, dword [rbx + 0x90]
add eax, 0xc
cmp eax, dword [rbx + 0x94]
jle 0x14006ed1c
mov rcx, rbx
call fcn.14002de90
test eax, eax
jne 0x14006ee14
movsxd rax, dword [rbx + 0x90]
lea r8, [0x1402201da]
mov r10d, SafeArrayDestroy
lea r11, [0x1402243e0]
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
lea rax, [rax + rcx*8]
mov r9, rax
nop dword [rax]
movzx ecx, byte [r8 - 2]
mov byte [rax], cl
movsx ecx, byte [r8 - 1]
mov dword [rax + 4], ecx
movsx edx, byte [r8]
mov dword [rax + 8], edx
movzx ecx, byte [r8 - 2]
test byte [rcx + r11], 1
je 0x14006ed80
cmp byte [r8], r12b
jle 0x14006ed80
add edx, dword [rbx + 0x90]
mov dword [rax + 8], edx
movsx ecx, byte [r8 + 1]
add r8, 4
mov dword [rax + 0xc], ecx
mov byte [rax + 1], r12b
mov qword [rax + 0x10], r12
mov word [rax + 2], r12w
add rax, 0x18
sub r10, 1
jne 0x14006ed50
add dword [rbx + 0x90], 0xc
test r9, r9
je 0x14006ee14
mov eax, reloc.OLEAUT32.dll_SafeArrayGetDim
mov dword [r9 + 8], edi
mov word [r9 + 0x4a], ax
lea ecx, [rdi + 2]
lea eax, [rdi + 1]
mov dword [r9 + 0xc], ecx
mov dword [r9 + 0x68], eax
mov dword [r9 + 0x3c], edi
mov dword [r9 + 0x4c], r15d
mov dword [r9 + 0x54], edi
mov dword [r9 + 0x84], edi
mov dword [r9 + 0x94], edi
mov dword [r9 + 0xb0], ecx
mov dword [r9 + 0xac], edi
mov dword [r9 + 0xf8], edi
cmp dword [r14 + 0x34], r12d
jne 0x14006ee08
mov dword [r14 + 0x34], 1
mov rsi, qword [rsi]
test rsi, rsi
jne 0x14006ec60
mov r12, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
mov r15, qword [rsp + 0x30]
add rsp, 0x38
pop r14
pop r13
pop rsi
pop rbx
ret
Function at 0x14006eeb0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rdi
push r12
push r14
sub rsp, 0x38
mov r14, qword [rcx + 0xa0]
mov rdi, rcx
mov rbx, qword [rcx + 0x10]
mov r12, qword [rcx]
test r14, r14
je 0x14006f0b2
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x70], r13
xor r13d, r13d
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x60], rbp
nop dword [rax]
movsxd rsi, dword [r14 + 0x10]
movzx eax, byte [rdi + 0x1f]
mov r15d, dword [r14 + 0x14]
shl rsi, 5
add rsi, qword [r12 + 0x20]
test al, al
jne 0x14006ef11
inc dword [rdi + 0x38]
mov ebp, dword [rdi + 0x38]
jmp 0x14006ef20
dec al
movzx eax, al
mov byte [rdi + 0x1f], al
mov ebp, dword [rdi + rax*4 + 0xe4]
movsxd rcx, dword [rbx + 0x90]
lea r8d, [r15 + 2]
lea edx, [rcx + 7]
cmp dword [rbx + 0x94], ecx
jg 0x14006ef4d
mov r9d, edx
mov dword [rsp + 0x20], r15d
mov edx, 0x37
mov rcx, rbx
call fcn.14002df90
jmp 0x14006ef7b
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x37
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r15d
mov qword [rax + rcx*8 + 0x10], r13
mov r9, qword [rsi + 0x18]
xor edx, edx
mov r8d, dword [r14 + 0x10]
mov rcx, rdi
mov dword [rsp + 0x20], 0x71
mov r9, qword [r9 + 0x68]
call fcn.14006e1f0
mov eax, dword [rbx + 0x90]
add eax, 5
cmp eax, dword [rbx + 0x94]
jle 0x14006efba
mov rcx, rbx
call fcn.14002de90
test eax, eax
jne 0x14006f09e
movsxd rax, dword [rbx + 0x90]
lea r8, [0x140220d1a]
mov r10d, 5
lea r11, [0x1402243e0]
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
lea rax, [rax + rcx*8]
mov r9, rax
nop word [rax + rax]
movzx ecx, byte [r8 - 2]
mov byte [rax], cl
movsx ecx, byte [r8 - 1]
mov dword [rax + 4], ecx
movsx edx, byte [r8]
mov dword [rax + 8], edx
movzx ecx, byte [r8 - 2]
test byte [rcx + r11], 1
je 0x14006f020
cmp byte [r8], r13b
jle 0x14006f020
add edx, dword [rbx + 0x90]
mov dword [rax + 8], edx
movsx ecx, byte [r8 + 1]
add r8, 4
mov dword [rax + 0xc], ecx
mov byte [rax + 1], r13b
mov qword [rax + 0x10], r13
mov word [rax + 2], r13w
add rax, 0x18
sub r10, 1
jne 0x14006eff0
add dword [rbx + 0x90], 5
test r9, r9
je 0x14006f09e
mov dword [r9 + 0x3c], ebp
lea ecx, [r15 + 1]
mov dword [r9 + 4], ecx
lea eax, [r15 - 1]
mov dword [r9 + 0x34], eax
mov eax, 8
mov word [r9 + 0x4a], ax
mov dword [r9 + 0x20], ecx
mov dword [r9 + 0x50], ebp
mov dword [r9 + 0x54], ecx
test ebp, ebp
je 0x14006f092
movzx eax, byte [rdi + 0x1f]
cmp al, 8
jae 0x14006f092
movzx eax, al
mov dword [rdi + rax*4 + 0xe4], ebp
inc byte [rdi + 0x1f]
mov r14, qword [r14]
test r14, r14
jne 0x14006eef0
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov r13, qword [rsp + 0x70]
mov r15, qword [rsp + 0x30]
add rsp, 0x38
pop r14
pop r12
pop rdi
pop rbx
ret
Function at 0x1400fb0f0
Capabilities:
Set current directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rdi, qword [rcx + 0x50]
mov rbx, rcx
test rdi, rdi
je 0x1400fb119
mov rcx, rdi
call qword [fcn.1400059b0]
call rdi
mov qword [rbx + 0x50], 0
mov rcx, qword [rbx + 0x48]
test rcx, rcx
je 0x1400fb130
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rbx + 0x48], 0
cmp qword [rbx + 0x38], 0
je 0x1400fb14b
cmp qword [rbx + 0x40], 8
lea rcx, [rbx + 0x28]
jb 0x1400fb145
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp byte [rbx], 0
je 0x1400fb168
cmp dword [0x14028c8e8], 0
jle 0x1400fb165
call qword [sym.imp.ole32.dll_CoUninitialize]
dec dword [0x14028c8e8]
mov byte [rbx], 0
cmp byte [rbx + 1], 0
je 0x1400fb1b5
mov rdi, qword [0x14028c8d0]
test rdi, rdi
jne 0x1400fb19e
lea ecx, [rdi + 0x50]
call fcn.140165194
mov edx, 0x102
mov qword [rsp + 0x30], rax
mov rcx, rax
mov rdi, rax
call fcn.140166928
mov qword [0x14028c8d0], rdi
mov rcx, rdi
call fcn.14016697c
test eax, eax
je 0x1400fb1b1
mov ecx, eax
call fcn.1401664c4
mov byte [rbx + 1], 0
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1401216c0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rdi, r8
mov r14, rdx
mov r8, qword [r8 + 0x10]
mov r15, rcx
cmp qword [rdi + 0x18], 8
jb 0x1401216ed
mov rdx, qword [rdi]
jmp 0x1401216f0
mov rdx, rdi
xor ecx, ecx
movabs rbx, 0xcbf29ce484222325
mov qword [rsp + 0x80], rbx
add r8, r8
je 0x14012173b
movabs r9, 0x100000001b3
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rdx + rcx]
inc rcx
xor rbx, rax
imul rbx, r9
cmp rcx, r8
jb 0x140121720
mov qword [rsp + 0x80], rbx
xor edx, edx
mov dword [rsp + 0x70], 0
mov rax, rbx
mov r13d, 1
div qword [r15 + 0x228]
mov r12, rdx
mov rbp, rdx
or r12, 1
bsr rax, r12
movzx ecx, al
mov rdx, qword [r15 + rcx*8 + 8]
test rdx, rdx
je 0x14012178c
mov r8d, r13d
mov rax, rbp
shl r8, cl
and r8, 0xfffffffffffffffe
sub rax, r8
cmp qword [rdx + rax*8], 0
setne al
test al, al
jne 0x140121797
mov rdx, rbp
mov rcx, r15
call fcn.140121ba0
lea rcx, [0x140208e70]
movzx eax, bl
mov dword [rsp + 0x70], 0
movzx eax, byte [rax + rcx]
mov byte [rsp + 0x27], al
movzx eax, byte [rsp + 0x81]
movzx eax, byte [rax + rcx]
mov byte [rsp + 0x26], al
movzx eax, byte [rsp + 0x82]
movzx eax, byte [rax + rcx]
mov byte [rsp + 0x25], al
movzx eax, byte [rsp + 0x83]
movzx eax, byte [rax + rcx]
mov byte [rsp + 0x24], al
movzx eax, byte [rsp + 0x84]
movzx eax, byte [rax + rcx]
mov byte [rsp + 0x23], al
movzx eax, byte [rsp + 0x85]
movzx eax, byte [rax + rcx]
mov byte [rsp + 0x22], al
movzx eax, byte [rsp + 0x86]
movzx eax, byte [rax + rcx]
mov byte [rsp + 0x21], al
movzx eax, byte [rsp + 0x87]
movzx eax, byte [rax + rcx]
mov byte [rsp + 0x20], al
mov rsi, qword [rsp + 0x20]
or rsi, r13
bsr rax, r12
movzx ecx, al
shl r13, cl
and r13, 0xfffffffffffffffe
sub rbp, r13
mov rbx, qword [r15 + rcx*8 + 8]
mov rbx, qword [rbx + rbp*8]
test rbx, rbx
je 0x140121894
nop dword [rax + rax]
mov rax, qword [rbx + 0x40]
cmp rax, rsi
ja 0x140121894
jne 0x14012188c
cmp qword [rdi + 0x18], 8
lea rcx, [rbx + 8]
jb 0x14012186b
mov r8, qword [rdi]
jmp 0x14012186e
mov r8, rdi
cmp qword [rcx + 0x18], 8
lea rdx, [rcx + 0x10]
jb 0x14012187c
mov rcx, qword [rcx]
mov r9, qword [rdi + 0x10]
mov rdx, qword [rdx]
call fcn.1400c4840
test eax, eax
je 0x1401218b3
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140121850
mov qword [r14], 0
mov rax, r14
mov rbx, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov qword [r14], rbx
jmp 0x14012189b
Function at 0x140126450
Capabilities:
Encode data using xor
Encrypt data using rc4 prga
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rdi, r8
mov r14, rdx
mov r8, qword [r8 + 0x10]
mov r15, rcx
cmp qword [rdi + 0x18], 8
jb 0x14012647d
mov rdx, qword [rdi]
jmp 0x140126480
mov rdx, rdi
xor ecx, ecx
movabs rbx, 0xcbf29ce484222325
mov qword [rsp + 0x80], rbx
add r8, r8
je 0x1401264cb
movabs r9, 0x100000001b3
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rdx + rcx]
inc rcx
xor rbx, rax
imul rbx, r9
cmp rcx, r8
jb 0x1401264b0
mov qword [rsp + 0x80], rbx
xor edx, edx
mov dword [rsp + 0x70], 0
mov rax, rbx
mov r13d, 1
div qword [r15 + 0x228]
mov r12, rdx
mov rbp, rdx
or r12, 1
bsr rax, r12
movzx ecx, al
mov rdx, qword [r15 + rcx*8 + 8]
test rdx, rdx
je 0x14012651c
mov r8d, r13d
mov rax, rbp
shl r8, cl
and r8, 0xfffffffffffffffe
sub rax, r8
cmp qword [rdx + rax*8], 0
setne al
test al, al
jne 0x140126527
mov rdx, rbp
mov rcx, r15
call fcn.1401267a0
lea rcx, [0x140208e70]
movzx eax, bl
mov dword [rsp + 0x70], 0
movzx eax, byte [rax + rcx]
mov byte [rsp + 0x27], al
movzx eax, byte [rsp + 0x81]
movzx eax, byte [rax + rcx]
mov byte [rsp + 0x26], al
movzx eax, byte [rsp + 0x82]
movzx eax, byte [rax + rcx]
mov byte [rsp + 0x25], al
movzx eax, byte [rsp + 0x83]
movzx eax, byte [rax + rcx]
mov byte [rsp + 0x24], al
movzx eax, byte [rsp + 0x84]
movzx eax, byte [rax + rcx]
mov byte [rsp + 0x23], al
movzx eax, byte [rsp + 0x85]
movzx eax, byte [rax + rcx]
mov byte [rsp + 0x22], al
movzx eax, byte [rsp + 0x86]
movzx eax, byte [rax + rcx]
mov byte [rsp + 0x21], al
movzx eax, byte [rsp + 0x87]
movzx eax, byte [rax + rcx]
mov byte [rsp + 0x20], al
mov rsi, qword [rsp + 0x20]
or rsi, r13
bsr rax, r12
movzx ecx, al
shl r13, cl
and r13, 0xfffffffffffffffe
sub rbp, r13
mov rbx, qword [r15 + rcx*8 + 8]
mov rbx, qword [rbx + rbp*8]
test rbx, rbx
je 0x140126624
nop dword [rax + rax]
mov rax, qword [rbx + 0x38]
cmp rax, rsi
ja 0x140126624
jne 0x14012661c
cmp qword [rdi + 0x18], 8
lea rcx, [rbx + 8]
jb 0x1401265fb
mov r8, qword [rdi]
jmp 0x1401265fe
mov r8, rdi
cmp qword [rcx + 0x18], 8
lea rdx, [rcx + 0x10]
jb 0x14012660c
mov rcx, qword [rcx]
mov r9, qword [rdi + 0x10]
mov rdx, qword [rdx]
call fcn.1400c4840
test eax, eax
je 0x140126643
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1401265e0
mov qword [r14], 0
mov rax, r14
mov rbx, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov qword [r14], rbx
jmp 0x14012662b
Function at 0x140126960
Capabilities:
Encode data using xor
Encrypt data using rc4 prga
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
cmp qword [r8 + 0x20], 8
lea r9, [r8 + 8]
mov rsi, rdx
mov rdi, rcx
mov rdx, qword [r9 + 0x10]
jb 0x14012698d
mov r9, qword [r9]
xor ecx, ecx
movabs rbx, 0xcbf29ce484222325
mov qword [rsp + 0x88], rbx
add rdx, rdx
je 0x1401269cc
movabs r10, 0x100000001b3
movzx eax, byte [r9 + rcx]
inc rcx
xor rbx, rax
imul rbx, r10
cmp rcx, rdx
jb 0x1401269b0
mov qword [rsp + 0x88], rbx
xor edx, edx
mov dword [rsp + 0x70], 0
mov rax, rbx
mov r15d, 1
div qword [rdi + 0x228]
mov r14, rdx
mov rbp, rdx
or r14, 1
bsr rax, r14
movzx ecx, al
mov dword [rsp + 0x70], eax
mov r9, qword [rdi + rcx*8 + 8]
test r9, r9
je 0x140126a21
mov edx, r15d
mov rax, rbp
shl rdx, cl
and rdx, 0xfffffffffffffffe
sub rax, rdx
cmp qword [r9 + rax*8], 0
setne al
test al, al
jne 0x140126a34
mov rdx, rbp
mov rcx, rdi
call fcn.1401267a0
mov r8, qword [rsp + 0x80]
lea rcx, [0x140208e70]
movzx eax, bl
mov qword [rsp + 0x20], rbx
movzx eax, byte [rax + rcx]
mov byte [rsp + 0x2f], al
movzx eax, byte [rsp + 0x89]
movzx eax, byte [rax + rcx]
mov byte [rsp + 0x2e], al
movzx eax, byte [rsp + 0x8a]
movzx eax, byte [rax + rcx]
mov byte [rsp + 0x2d], al
movzx eax, byte [rsp + 0x8b]
mov dword [rsp + 0x88], 0
movzx eax, byte [rax + rcx]
mov byte [rsp + 0x2c], al
movzx eax, byte [rsp + 0x8c]
movzx eax, byte [rax + rcx]
mov byte [rsp + 0x2b], al
movzx eax, byte [rsp + 0x8d]
movzx eax, byte [rax + rcx]
mov byte [rsp + 0x2a], al
movzx eax, byte [rsp + 0x8e]
movzx eax, byte [rax + rcx]
mov byte [rsp + 0x29], al
movzx eax, byte [rsp + 0x8f]
movzx eax, byte [rax + rcx]
mov byte [rsp + 0x28], al
bsr rax, r14
movzx ecx, al
shl r15, cl
and r15, 0xfffffffffffffffe
mov dword [rsp + 0x88], eax
sub rbp, r15
mov rcx, qword [rdi + rcx*8 + 8]
mov rcx, qword [rcx + rbp*8]
mov rax, qword [rcx]
test rax, rax
je 0x140126b00
nop
cmp rax, r8
je 0x140126b1b
mov rcx, rax
mov rax, qword [rax]
test rax, rax
jne 0x140126af0
mov qword [rsi], 0
mov rax, rsi
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov rbx, qword [r8]
mov rdx, r8
mov qword [rcx], rbx
call fcn.140126650
dec dword [rdi + 0x218]
test rbx, rbx
je 0x140126b46
movzx eax, byte [rbx + 0x38]
not al
test al, 1
je 0x140126b46
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140126b34
mov qword [rsi], rbx
jmp 0x140126b07
Function at 0x14012ed30
Capabilities:
Connect pipe

Disassembly:
push rdi
sub rsp, 0x70
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x90], rbx
mov rax, qword [0x14027f238]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x14012eddb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x48]
call fcn.140105710
nop
mov r8, rax
lea rdx, str._ConnectToNewPipeClient__ConnectNamedPipe_failed_with
lea rcx, [rsp + 0x28]
call fcn.1400c58d0
mov rbx, rax
call fcn.1400da700
mov rcx, rax
mov r8d, 1
mov rdx, rbx
call fcn.1400d5bf0
nop
mov r8, qword [rsp + 0x40]
cmp r8, 8
jb 0x14012edc1
inc r8
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x28]
call fcn.1400be810
mov qword [rsp + 0x40], 7
xor eax, eax
mov qword [rsp + 0x38], rax
mov word [rsp + 0x28], ax
jmp 0x14012ee7e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x14012edf3
cmp eax, 0x3e5
jne 0x14012ee0b
mov bl, 1
jmp 0x14012ee03
xor ebx, ebx
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x14012ee0b
movzx eax, bl
jmp 0x14012ee9d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x48]
call fcn.140105710
nop
mov r8, rax
lea rdx, str._ConnectToNewPipeClient__ConnectNamedPipe_failed_with
lea rcx, [rsp + 0x28]
call fcn.1400c58d0
mov rbx, rax
call fcn.1400da700
mov rcx, rax
mov r8d, 1
mov rdx, rbx
call fcn.1400d5bf0
nop
mov r8, qword [rsp + 0x40]
cmp r8, 8
jb 0x14012ee69
inc r8
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x28]
call fcn.1400be810
mov qword [rsp + 0x40], 7
xor eax, eax
mov qword [rsp + 0x38], rax
mov word [rsp + 0x28], ax
mov r8, qword [rsp + 0x60]
cmp r8, 8
jb 0x14012ee9b
inc r8
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x48]
call fcn.1400be810
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140164ec0
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret