joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000dfd4
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x80
mov rdi, r8
mov rbx, rcx
and qword [rax - 0x40], 0
and qword [rax - 0x48], 0
xorps xmm0, xmm0
movups xmmword [rax - 0x38], xmm0
movups xmmword [rax - 0x28], xmm0
movups xmmword [rax - 0x18], xmm0
mov ecx, edx
lea rdx, [rax - 0x48]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x14000e028
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
jne 0x14000e028
mov al, 1
jmp 0x14000e0b5
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov r8, rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], 0
mov qword [rsp + 0x20], 6
lea r9, [rsp + 0xa8]
mov rdx, rdi
mov rcx, rbx
call sub.ntoskrnl.exe_MmCopyVirtualMemory
mov ebx, eax
mov dword [rsp + 0x98], eax
mov r8d, 6
lea rdx, [rsp + 0xa8]
mov rcx, rdi
call fcn.14000db54
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
jmp 0x14000e0a8
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov al, bl
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret

Function at 0x14000e0d0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x28
call fcn.14000e3b4
lea rcx, [0x14000e0f0]
add rsp, 0x28
jmp fcn.140005ec0

Function at 0x14000e7c0
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x30
and dword [rsp + 0x24], 0
mov ebx, 2
mov word [rsp + 0x20], bx
call fcn.14000f844
xor r8d, r8d
mov word [rsp + 0x22], ax
lea edx, [rbx - 1]
mov ecx, ebx
call fcn.14000f904
mov ebx, eax
cmp eax, 0xffffffff
jne 0x14000e804
lea rcx, [0x140016700]
call sub.ntoskrnl.exe_DbgPrint
or eax, 0xffffffff
jmp 0x14000e84c
mov r8d, 0x10
lea rdx, [rsp + 0x20]
mov ecx, ebx
call fcn.14000f6b4
cmp eax, 0xffffffff
jne 0x14000e830
lea rcx, [0x140016730]
call sub.ntoskrnl.exe_DbgPrint
mov ecx, ebx
call fcn.14000f6dc
jmp 0x14000e7ff
mov edx, 0xa
mov ecx, ebx
call fcn.14000f84c
cmp eax, 0xffffffff
jne 0x14000e84a
lea rcx, [0x140016760]
jmp 0x14000e822
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x14000f96c
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdx, rcx
xor ebx, ebx
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
xor r8d, r8d
lea esi, [rbx + 5]
xor edx, edx
jmp 0x14000f9b7
mov edx, dword [rsp + 0x48]
xor ecx, ecx
mov r8d, 0x31616573
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
je 0x14000fa0b
mov r8d, dword [rsp + 0x48]
mov rdx, rax
lea r9, [rsp + 0x48]
mov ecx, esi
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov edi, eax
cmp eax, 0xc0000004
je 0x14000f995
test eax, eax
js 0x14000fa0b
mov rsi, rbx
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x14000f9f7
lea rcx, [rbx + 0x38]
mov r8b, 1
lea rdx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_RtlEqualUnicodeString]
test al, al
jne 0x14000fa1e
mov eax, dword [rbx]
add rbx, rax
test eax, eax
jne 0x14000f9d3
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
movsxd rax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rax, qword [rbx + 0x50]
jmp 0x14000fa0e
Function at 0x14000fa24
Capabilities:
Map section object
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xf0
xor ebx, ebx
mov rsi, rcx
lea rcx, [rbp - 0x31]
mov qword [rbp + 0x7f], rbx
mov qword [rbp - 0x79], rbx
mov qword [rbp - 0x71], rbx
mov qword [rbp + 0x77], rbx
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
xorps xmm0, xmm0
mov dword [rsp + 0x28], 0x20
lea rax, [rbp - 0x31]
mov qword [rbp - 0x61], 0x30
lea r9, [rbp - 0x21]
mov qword [rbp - 0x51], rax
lea r8, [rbp - 0x61]
mov qword [rbp - 0x49], 0x200
mov edx, 0x100020
mov qword [rbp - 0x59], rbx
lea rcx, [rbp - 0x79]
mov dword [rsp + 0x20], 1
movups xmmword [rbp - 0x21], xmm0
movdqu xmmword [rbp - 0x41], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwOpenFile]
test eax, eax
js 0x14000fbec
mov rax, qword [rbp - 0x79]
lea edi, [rbx + 2]
mov qword [rsp + 0x30], rax
lea r8, [rbp - 0x61]
mov dword [rsp + 0x28], 0x1000000
lea rcx, [rbp + 0x7f]
xor r9d, r9d
mov dword [rsp + 0x20], edi
mov edx, 0xf001f
mov qword [rbp - 0x51], rbx
call qword [sym.imp.ntoskrnl.exe_ZwCreateSection]
test eax, eax
js 0x14000fbec
mov rcx, qword [rbp + 0x7f]
lea rax, [rbp - 0x71]
mov dword [rsp + 0x48], 4
lea r8, [rbp + 0x77]
mov dword [rsp + 0x40], 0x20000000
xor r9d, r9d
mov dword [rsp + 0x38], edi
or rdx, 0xffffffffffffffff
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], 0x400
call qword [sym.imp.ntoskrnl.exe_ZwMapViewOfSection]
test eax, eax
js 0x14000fbec
mov rdi, qword [rbp + 0x77]
lea rcx, [rbp - 1]
mov rdx, rsi
movsxd rax, dword [rdi + 0x3c]
mov r14d, dword [rax + rdi + 0x88]
add r14, rdi
mov eax, dword [r14 + 0x20]
mov r15d, dword [r14 + 0x1c]
add rax, rdi
mov r12d, dword [r14 + 0x24]
add r15, rdi
mov qword [rbp - 0x69], rax
add r12, rdi
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov esi, ebx
cmp dword [r14 + 0x18], ebx
jbe 0x14000fbcf
mov rax, qword [rbp - 0x69]
lea rcx, [rbp - 0x11]
mov r13d, esi
mov edx, dword [rax + r13*4]
add rdx, rdi
call qword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
mov r8b, 1
lea rdx, [rbp - 0x11]
lea rcx, [rbp + 0xf]
call qword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
mov r8b, 1
lea rdx, [rbp - 1]
lea rcx, [rbp + 0xf]
call qword [sym.imp.ntoskrnl.exe_RtlCompareUnicodeString]
test eax, eax
je 0x14000fbc1
inc esi
cmp esi, dword [r14 + 0x18]
jb 0x14000fb79
jmp 0x14000fbcf
movzx eax, word [r12 + r13*2]
mov edx, dword [r15 + rax*4]
movsxd rbx, dword [rdx + rdi + 4]
mov rdx, qword [rbp + 0x77]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwUnmapViewOfSection]
mov rcx, qword [rbp + 0x7f]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rax, rbx
jmp 0x14000fbee
xor eax, eax
mov rbx, qword [rsp + 0x130]
add rsp, 0xf0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000fc0c
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov eax, 0x5a4d
or edi, 0xffffffff
mov ebp, edx
mov rsi, rcx
cmp word [rcx], ax
jne 0x14000fd81
movsxd rbx, dword [rcx + 0x3c]
add rbx, rcx
cmp dword [rbx], 0x4550
jne 0x14000fd81
mov edx, 0x20b
mov eax, 0x88
cmp word [rbx + 0x18], dx
mov r8d, ebp
lea ecx, [rax - 0x10]
cmovne eax, ecx
mov ecx, dword [rax + rbx]
mov edx, ecx
mov eax, dword [rax + rbx + 4]
mov dword [rsp + 0x70], ecx
mov rcx, rbx
mov dword [rsp + 0x88], eax
call fcn.14001060c
cmp eax, edi
je 0x14000fd81
mov r13d, eax
mov r8d, ebp
add r13, rsi
mov rcx, rbx
mov edx, dword [r13 + 0x1c]
call fcn.14001060c
mov edx, dword [r13 + 0x24]
mov r8d, ebp
mov rcx, rbx
mov r15d, eax
call fcn.14001060c
mov edx, dword [r13 + 0x20]
mov r8d, ebp
mov rcx, rbx
mov r14d, eax
call fcn.14001060c
cmp r15d, edi
je 0x14000fd81
cmp r14d, edi
je 0x14000fd81
cmp eax, edi
je 0x14000fd81
lea rcx, [rsi + r15]
add r14, rsi
mov r15d, eax
xor r12d, r12d
mov eax, dword [r13 + 0x18]
add r15, rsi
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], eax
test eax, eax
je 0x14000fd81
mov r13d, dword [rsp + 0x70]
mov edx, dword [r15]
mov r8d, ebp
mov rcx, rbx
call fcn.14001060c
cmp eax, edi
je 0x14000fd60
mov rdx, qword [rsp + 0x28]
mov ecx, eax
movzx eax, word [r14]
add rcx, rsi
mov edx, dword [rdx + rax*4]
cmp edx, r13d
jb 0x14000fd3c
mov eax, dword [rsp + 0x88]
add eax, r13d
cmp edx, eax
jb 0x14000fd60
mov r9, qword [rsp + 0x80]
sub r9, rcx
movzx eax, byte [rcx]
movzx r8d, byte [rcx + r9]
sub eax, r8d
jne 0x14000fd5c
inc rcx
test r8d, r8d
jne 0x14000fd47
test eax, eax
je 0x14000fd74
inc r12d
add r15, 4
add r14, 2
cmp r12d, dword [rsp + 0x20]
jae 0x14000fd81
jmp 0x14000fd06
mov r8d, ebp
mov rcx, rbx
call fcn.14001060c
mov edi, eax
mov rbx, qword [rsp + 0x78]
mov eax, edi
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400100a0
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x20
xor edi, edi
lea r9, [rax + 0x10]
and dword [rax + 0x10], edi
lea rdx, [rax + 0x10]
mov rsi, rcx
xor r8d, r8d
lea ecx, [rdi + 0xb]
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x140010134
lea edx, [rax + rax]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rbx, rax
test rax, rax
je 0x140010134
mov eax, dword [rsp + 0x38]
xor edx, edx
mov rcx, rbx
lea r8d, [rax + rax]
call fcn.140013900
mov r8d, dword [rsp + 0x38]
lea r9, [rsp + 0x38]
add r8d, r8d
lea ecx, [rdi + 0xb]
mov rdx, rbx
call sub.ntoskrnl.exe_ZwQuerySystemInformation
test eax, eax
js 0x140010124
mov rdi, qword [rbx + 0x18]
test rsi, rsi
je 0x14001012f
mov eax, dword [rbx + 0x20]
mov dword [rsi], eax
jmp 0x14001012f
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, rdi
jmp 0x140010136
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400102a0
Capabilities:
Get file attributes
Read file on windows

Disassembly:
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xd0
lea rdx, [0x1400163e0]
lea rcx, [rbp - 9]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
and qword [rbp + 0x27], 0
lea rax, [rbp - 9]
xorps xmm0, xmm0
mov qword [rbp + 0x2f], rax
movdqu xmmword [rbp + 0x3f], xmm0
mov dword [rbp + 0x1f], 0x30
mov dword [rbp + 0x37], 0x240
mov rax, cr8
test al, al
je 0x1400102f4
mov eax, 0xc0000001
jmp 0x1400103ef
and dword [rsp + 0x50], 0
lea r9, [rbp - 0x19]
and qword [rsp + 0x48], 0
lea r8, [rbp + 0x1f]
mov dword [rsp + 0x40], 0x20
lea rcx, [rbp + 0x67]
mov dword [rsp + 0x38], 1
mov edx, 0x80000000
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 0x80
and qword [rsp + 0x20], 0
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
test eax, eax
js 0x1400103ef
mov rcx, qword [rbp + 0x67]
lea r8, [rbp + 7]
xor eax, eax
mov dword [rsp + 0x20], 5
xorps xmm0, xmm0
mov qword [rbp + 0x17], rax
lea rdx, [rbp - 0x19]
movups xmmword [rbp + 7], xmm0
lea r9d, [rax + 0x18]
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
test eax, eax
js 0x1400103e5
mov eax, dword [rbp + 0xf]
mov ecx, 1
mov edx, eax
mov dword [0x14003b8e0], eax
call fcn.1400105bc
and qword [rsp + 0x40], 0
lea rcx, [rbp + 0x6f]
and dword [rbp + 0x73], 0
xor r9d, r9d
and dword [rbp + 0x6f], 0
xor r8d, r8d
mov qword [rsp + 0x38], rcx
xor edx, edx
mov ecx, dword [0x14003b8e0]
mov dword [rsp + 0x30], ecx
mov rcx, qword [rbp + 0x67]
mov qword [rsp + 0x28], rax
mov qword [0x14003b8d8], rax
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
test eax, eax
jns 0x1400103ef
mov rcx, qword [0x14003b8d8]
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x1400103ef
mov rcx, qword [rbp + 0x67]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
add rsp, 0xd0
pop rbp
ret

Function at 0x14001060c
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
movzx eax, word [rcx + 0x14]
lea r9, [rcx + 0x18]
movzx r11d, word [rcx + 6]
add r9, rax
xor r10d, r10d
mov ebx, r8d
test r11d, r11d
je 0x14001064c
mov r8d, dword [r9 + 0xc]
cmp r8d, edx
ja 0x140010640
mov ecx, dword [r9 + 8]
add ecx, r8d
cmp ecx, edx
ja 0x140010655
add r9, 0x28
inc r10d
cmp r10d, r11d
jl 0x14001062c
or eax, 0xffffffff
mov rbx, qword [rsp + 8]
ret
mov eax, dword [r9 + 0x14]
sub eax, r8d
add edx, eax
or eax, 0xffffffff
cmp edx, ebx
cmovb eax, edx
jmp 0x14001064f
Function at 0x140010c9c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x168]
sub rsp, 0x240
mov r13, r8
movsxd r12, r9d
mov r14d, edx
mov r15, rcx
mov esi, 0x100
lea rcx, [rsp + 0x40]
mov r8d, esi
xor edx, edx
call fcn.140013900
xor edi, edi
lea rcx, [rbp + 0x40]
mov r8d, esi
xor edx, edx
mov ebx, edi
call fcn.140013900
mov r8d, edi
mov r9d, edi
xor edx, edx
mov byte [rsp + r9 + 0x40], r8b
mov eax, r8d
inc r8d
div r14d
mov al, byte [rdx + r15]
mov byte [rbp + r9 + 0x40], al
inc r9
cmp r8d, esi
jl 0x140010cfa
mov rdx, rdi
mov r15d, 0x800000ff
mov r14d, 0xffffff00
movzx eax, byte [rbp + rdx + 0x40]
movzx r8d, byte [rsp + rdx + 0x40]
add ebx, eax
add ebx, r8d
and ebx, r15d
jge 0x140010d46
dec ebx
or ebx, r14d
inc ebx
movsxd rcx, ebx
mov al, byte [rsp + rcx + 0x40]
mov byte [rsp + rdx + 0x40], al
inc rdx
mov byte [rsp + rcx + 0x40], r8b
sub rsi, 1
jne 0x140010d2a
mov al, byte [0x140016a00]
mov r8d, edi
mov byte [rsp + 0x30], al
mov r9, r12
movups xmm0, xmmword [0x1400169f0]
movups xmmword [rsp + 0x20], xmm0
test r12d, r12d
jle 0x140010dff
mov r11, qword [rbp + 0x190]
lea eax, [rdi + 1]
and eax, r15d
jge 0x140010d96
dec eax
or eax, r14d
inc eax
movsxd rdi, eax
movzx r10d, byte [rsp + rdi + 0x40]
add r8d, r10d
and r8d, r15d
jge 0x140010db0
dec r8d
or r8d, r14d
inc r8d
movsxd rcx, r8d
mov al, byte [rsp + rcx + 0x40]
mov byte [rsp + rdi + 0x40], al
mov byte [rsp + rcx + 0x40], r10b
movzx ecx, byte [rsp + rdi + 0x40]
add rcx, r10
movzx eax, cl
mov cl, byte [rsp + rax + 0x40]
xor byte [r13], cl
movsx eax, byte [r13]
inc r13
mov edx, eax
sar eax, 4
and eax, 0xf
and edx, 0xf
mov cl, byte [rsp + rax + 0x20]
mov al, byte [rsp + rdx + 0x20]
mov byte [r11], cl
mov byte [r11 + 1], al
add r11, 2
sub r9, 1
jne 0x140010d87
lea r11, [rsp + 0x240]
xor eax, eax
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140010e24
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x248]
sub rsp, 0x320
mov r13, r8
mov r14d, edx
mov r15, rcx
mov esi, 0x100
mov r8d, esi
lea rcx, [rsp + 0x20]
xor edx, edx
mov r12d, r9d
call fcn.140013900
xor edi, edi
lea rcx, [rbp + 0x20]
mov r8d, esi
xor edx, edx
mov ebx, edi
call fcn.140013900
mov r8d, edi
mov r9d, edi
xor edx, edx
mov byte [rsp + r9 + 0x20], r8b
mov eax, r8d
inc r8d
div r14d
mov al, byte [rdx + r15]
mov byte [rbp + r9 + 0x20], al
inc r9
cmp r8d, esi
jl 0x140010e82
mov rdx, rdi
mov r15d, 0x800000ff
mov r14d, 0xffffff00
movzx eax, byte [rbp + rdx + 0x20]
movzx r8d, byte [rsp + rdx + 0x20]
add ebx, eax
add ebx, r8d
and ebx, r15d
jge 0x140010ece
dec ebx
or ebx, r14d
inc ebx
movsxd rcx, ebx
mov al, byte [rsp + rcx + 0x20]
mov byte [rsp + rdx + 0x20], al
inc rdx
mov byte [rsp + rcx + 0x20], r8b
sub rsi, 1
jne 0x140010eb2
mov r8d, r12d
lea rdx, [rbp + 0x20]
mov rcx, r13
call fcn.140010acc
mov eax, r12d
mov r8d, edi
cdq
sub eax, edx
sar eax, 1
movsxd rsi, eax
test eax, eax
jle 0x140010f78
mov r9, qword [rbp + 0x270]
lea rax, [rbp + 0x20]
sub r9, rax
mov rbx, rdi
lea eax, [rdi + 1]
and eax, r15d
jge 0x140010f28
dec eax
or eax, r14d
inc eax
movsxd rdi, eax
movzx r11d, byte [rsp + rdi + 0x20]
add r8d, r11d
and r8d, r15d
jge 0x140010f42
dec r8d
or r8d, r14d
inc r8d
movsxd rcx, r8d
lea rdx, [rbp + 0x20]
add rdx, rbx
inc rbx
mov al, byte [rsp + rcx + 0x20]
mov byte [rsp + rdi + 0x20], al
mov byte [rsp + rcx + 0x20], r11b
movzx ecx, byte [rsp + rdi + 0x20]
add rcx, r11
movzx eax, cl
mov cl, byte [rsp + rax + 0x20]
xor byte [rdx], cl
mov al, byte [rdx]
mov byte [r9 + rdx], al
cmp rbx, rsi
jl 0x140010f19
lea r11, [rsp + 0x320]
xor eax, eax
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x180012630
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 0x28
lea r10, [0x180049d60]
xor eax, eax
mov r8, r10
mov edx, eax
lea r8, [r8 + 4]
and edx, 1
mov ecx, eax
shr ecx, 1
neg edx
and edx, 0xedb88320
inc eax
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov dword [r8 - 4], ecx
cmp eax, 0x100
jb 0x180012640
cmp eax, 0x800
jae 0x180012717
lea r9, [r10 + rax*4]
nop word [rax + rax]
lea ecx, [rax - 0x100]
inc eax
mov r8d, dword [r10 + rcx*4]
lea r9, [r9 + 4]
movzx edx, r8b
shr r8d, 8
xor r8d, dword [r10 + rdx*4]
mov dword [r9 - 4], r8d
cmp eax, 0x800
jb 0x1800126f0
lea rax, [0x180012750]
mov qword [0x1800496a0], rax
call fcn.180017a90
mov rcx, qword [0x1800496a0]
lea rdx, [0x180012820]
test eax, eax
cmove rcx, rdx
mov qword [0x1800496a0], rcx
add rsp, 0x28
ret

Function at 0x180013380
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rbx, qword [r8]
mov rdi, r8
mov rsi, rdx
mov r14, rcx
test rbx, rbx
je 0x1800133fe
xor ebp, ebp
mov r15d, 0x400000
mov qword [r8], rbp
nop dword [rax]
nop dword [rax + rax]
mov rcx, qword [r14]
lea r9, [rsp + 0x60]
mov r8d, ebx
mov dword [rsp + 0x60], ebp
cmp rbx, r15
mov qword [rsp + 0x20], rbp
mov rdx, rsi
cmova r8d, r15d
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [rsp + 0x60]
add qword [rdi], rdx
add rsi, rdx
sub rbx, rdx
test eax, eax
je 0x180013419
test edx, edx
je 0x1800133fe
test rbx, rbx
jne 0x1800133c0
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180013400

Function at 0x180013430
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rbx, qword [r8]
mov rdi, r8
mov rsi, rdx
mov r14, rcx
test rbx, rbx
je 0x1800134ae
xor ebp, ebp
mov r15d, 0x400000
mov qword [r8], rbp
nop dword [rax]
nop dword [rax + rax]
mov rcx, qword [r14]
lea r9, [rsp + 0x60]
mov r8d, ebx
mov dword [rsp + 0x60], ebp
cmp rbx, r15
mov qword [rsp + 0x20], rbp
mov rdx, rsi
cmova r8d, r15d
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [rsp + 0x60]
add qword [rdi], rdx
add rsi, rdx
sub rbx, rdx
test eax, eax
je 0x1800134c9
test edx, edx
je 0x1800134ae
test rbx, rbx
jne 0x180013470
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1800134b0
Function at 0x1800178b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rdi
push r12
push r13
push r15
mov r10d, dword [r9]
xor r12d, r12d
and r10d, 7
mov r13, r9
mov edi, r8d
mov r15, rcx
mov r11d, r12d
cmp rdx, 5
jae 0x1800178de
xor eax, eax
pop r15
pop r13
pop r12
pop rdi
ret
mov qword [rsp + 0x28], rbx
add edi, 5
mov qword [rsp + 0x30], rbp
lea rbx, [rdx - 4]
mov qword [rsp + 0x38], rsi
mov rbp, 0xffffffffffffffff
mov qword [rsp + 0x40], r14
add rbx, r15
mov r14d, dword [rsp + 0x48]
lea r9, [0x180000000]
nop
lea r8, [r11 + r15]
cmp r8, rbx
jae 0x180017932
nop dword [rax]
movzx eax, byte [r8]
and al, 0xfe
cmp al, 0xe8
je 0x180017932
inc r8
cmp r8, rbx
jb 0x180017920
mov r11, r8
sub r11, r15
mov rax, r11
sub rax, rbp
cmp r8, rbx
jae 0x180017a57
cmp rax, 3
jbe 0x18001796f
mov r10d, r12d
movzx ecx, byte [r8 + 4]
mov rbp, r11
lea eax, [rcx - 1]
cmp al, 0xfd
ja 0x1800179b4
and r10d, 3
add r10d, r10d
or r10d, 1
inc r11
jmp 0x180017910
lea ecx, [rax - 1]
shl r10d, cl
and r10d, 7
je 0x180017950
cmp byte [r10 + r9 + 0x30240], r12b
je 0x18001799e
movzx eax, byte [r10 + r9 + 0x30248]
mov rcx, r8
sub rcx, rax
movzx eax, byte [rcx + 4]
inc al
test al, 0xfe
jne 0x180017950
and r10d, 3
mov rbp, r11
add r10d, r10d
or r10d, 1
inc r11
jmp 0x180017910
movzx eax, byte [r8 + 3]
lea rsi, [r9 + 0x30248]
mov edx, ecx
shl edx, 8
or edx, eax
movzx eax, byte [r8 + 2]
shl edx, 8
or edx, eax
movzx eax, byte [r8 + 1]
shl edx, 8
or edx, eax
mov eax, r10d
add rsi, rax
test r14d, r14d
je 0x1800179ee
lea eax, [r11 + rdx]
add eax, edi
jmp 0x1800179f5
mov eax, edx
sub eax, r11d
sub eax, edi
test r10d, r10d
je 0x180017a2a
movzx r9d, byte [rsi]
mov ecx, 0x18
shl r9d, 3
mov edx, eax
sub ecx, r9d
shr edx, cl
inc dl
test dl, 0xfe
jne 0x180017a2a
mov ecx, 0x20
mov edx, 1
sub ecx, r9d
shl edx, cl
dec edx
xor edx, eax
jmp 0x1800179e1
mov ecx, eax
mov byte [r8 + 1], al
shr ecx, 0x18
and cl, 1
neg cl
mov byte [r8 + 4], cl
mov ecx, eax
shr ecx, 0x10
mov byte [r8 + 3], cl
mov ecx, eax
shr ecx, 8
mov byte [r8 + 2], cl
add r11, 5
jmp 0x180017908
mov r14, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x28]
cmp rax, 3
ja 0x180017a7e
lea ecx, [rax - 1]
shl r10d, cl
and r10d, 7
mov r12d, r10d
mov dword [r13], r12d
mov rax, r11
pop r15
pop r13
pop r12
pop rdi
ret
Function at 0x180020d00
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x180048db8]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x180020dd3
cmp byte [rcx + 0x71], 0
je 0x180020dd3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x180020dcf
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x180020d94
sub eax, 1
je 0x180020d98
cmp eax, 2
jne 0x180020dcf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180028a90
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x180020dc6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x180020dcf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x180020d7c
xor al, al
jmp 0x180020d7c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180028a90
add rsp, 0x60
pop rbx
ret