joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140105a60
Capabilities:
Encode data using xor
Encrypt data using des
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x1404779b8]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, rdx
mov rdi, r8
lea rdx, [rsp + 0x20]
call fcn.140106bc0
lea rcx, [rsp + 0x20]
mov r9d, 6
sub rbx, rcx
lea rax, [rsp + 0x20]
nop dword [rax]
movzx ecx, byte [rbx + rax]
xor byte [rax], cl
lea rax, [rax + 1]
sub r9, 1
jne 0x140105aa0
mov ecx, dword [rsp + 0x20]
lea r9, [rsp + 0x28]
movzx edx, byte [rsp + 0x21]
lea r10, [0x1403d4170]
movzx eax, cl
and cl, 3
shr al, 2
mov byte [rsp + 0x28], al
movzx eax, dl
shr al, 4
and dl, 0xf
shl cl, 4
or cl, al
shl dl, 2
mov byte [rsp + 0x29], cl
movzx ecx, byte [rsp + 0x22]
movzx eax, cl
and cl, 0x3f
shr al, 6
or dl, al
mov byte [rsp + 0x2b], cl
movzx ecx, byte [rsp + 0x23]
movzx eax, cl
mov byte [rsp + 0x2a], dl
movzx edx, byte [rsp + 0x24]
and cl, 3
shr al, 2
mov byte [rsp + 0x2c], al
movzx eax, dl
shr al, 4
and dl, 0xf
shl cl, 4
or cl, al
shl dl, 2
mov byte [rsp + 0x2d], cl
movzx ecx, byte [rsp + 0x25]
movzx eax, cl
and cl, 0x3f
shr al, 6
or dl, al
mov byte [rsp + 0x2f], cl
mov byte [rsp + 0x2e], dl
xor r8d, r8d
nop word [rax + rax]
movzx ecx, byte [r9]
lea r9, [r9 + 1]
mov edx, ecx
mov eax, ecx
shr rax, 1
and edx, 1
and eax, 0xf
shl edx, 4
or rdx, rax
and ecx, 0x20
movzx eax, r8b
or rdx, rcx
shl rax, 6
inc r8d
add rdx, rax
movzx eax, byte [rdx + r10]
and al, 0xf
mov byte [r9 - 1], al
cmp r8d, 8
jl 0x140105b50
lea rdx, [rsp + 0x20]
mov r8d, 4
lea rcx, [rsp + 0x29]
movzx eax, byte [rcx - 1]
lea rdx, [rdx + 1]
shl al, 4
or al, byte [rcx]
lea rcx, [rcx + 2]
mov byte [rdx - 1], al
sub r8, 1
jne 0x140105ba0
lea rcx, [rsp + 0x20]
call fcn.140109ca0
mov eax, dword [rsp + 0x20]
mov dword [rdi], eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14021f250
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140110c40
Capabilities:
Get local ipv4 addresses

Disassembly:
test ecx, ecx
js 0x140110e45
push r12
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x1404779b8]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov r15d, r8d
mov r12, rdx
mov r14d, ecx
test rdx, rdx
je 0x140110e2e
mov qword [rsp + 0x90], rbx
xor ebx, ebx
mov qword [rsp + 0x60], rdi
mov edi, ebx
mov dword [rsp + 0x34], ebx
mov qword [rsp + 0x68], rsi
nop dword [rax]
lea rax, [rsp + 0x34]
mov r9, rbx
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
cmp eax, 0x6f
jne 0x140110cfa
test rbx, rbx
je 0x140110cc8
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ebx, dword [rsp + 0x34]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x140110cf4
inc edi
cmp edi, 5
jb 0x140110c90
jmp 0x140110e08
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140110e03
mov rsi, rbx
test rbx, rbx
je 0x140110e1c
mov qword [rsp + 0xa0], rbp
cmp dword [rsi + 0x64], r15d
jne 0x140110de9
cmp dword [rsi + 0x58], 0
jbe 0x140110de9
mov rcx, qword [rsi + 0x40]
lea rdx, str.Virtual
call fcn.140253b80
test rax, rax
jne 0x140110de9
mov rcx, qword [rsi + 0x40]
lea rdx, str.Bluetooth
call fcn.140253b80
test rax, rax
jne 0x140110de9
mov word [rsp + 0x30], ax
xorps xmm0, xmm0
mov byte [rsp + 0x32], al
mov word [rsp + 0x48], ax
movups xmmword [rsp + 0x38], xmm0
mov eax, dword [rsi + 0x58]
cmp r14d, eax
cmovb eax, r14d
test eax, eax
je 0x140110dc3
lea rdi, [rsi + 0x50]
mov ebp, eax
nop word [rax + rax]
movzx r8d, byte [rdi]
lea rdx, str._02X
lea rcx, [rsp + 0x30]
call fcn.14010e000
lea r8, [rsp + 0x30]
mov edx, SafeArrayLock
lea rcx, [rsp + 0x38]
call fcn.140261270
lea rdi, [rdi + 1]
sub rbp, 1
jne 0x140110d90
lea rax, [rsp + 0x38]
mov rdx, 0xffffffffffffffff
nop
inc rdx
cmp byte [rax + rdx], 0
jne 0x140110dd0
inc rdx
lea r8, [rsp + 0x38]
mov rcx, r12
call fcn.140283a94
mov rax, qword [rsi + 8]
mov rsi, rax
test rax, rax
jne 0x140110d16
mov rbp, qword [rsp + 0xa0]
jmp 0x140110e08
test rbx, rbx
je 0x140110e1c
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rsi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14021f250
add rsp, 0x70
pop r15
pop r14
pop r12
ret
Function at 0x1401163a0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xf0
xor eax, eax
mov dword [rsp + 0x80], 0x68
mov qword [rsp + 0x70], rax
xorps xmm1, xmm1
mov qword [rsp + 0xc4], rax
mov r10, r9
mov dword [rsp + 0xcc], eax
mov r11, r8
mov rax, qword [0x14047b888]
mov rbx, rdx
mov qword [rsp + 0xe0], rax
mov rdi, rcx
mov qword [rsp + 0xd8], rax
xorps xmm0, xmm0
mov rax, qword [0x14047b870]
xor r9d, r9d
mov qword [rsp + 0xd0], rax
mov r8, r10
movups xmmword [rsp + 0xb4], xmm1
mov rdx, r11
mov rcx, rbx
movups xmmword [rsp + 0x84], xmm1
movups xmmword [rsp + 0x94], xmm1
movups xmmword [rsp + 0xa4], xmm1
psrldq xmm1, 8
movd eax, xmm1
movups xmmword [rsp + 0x60], xmm0
bts eax, 8
mov dword [rsp + 0xbc], eax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x48], rax
xor eax, eax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x8000000
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov ebx, eax
test eax, eax
je 0x1401164b8
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rbx, qword [rsp + 0x100]
add rsp, 0xf0
pop rdi
ret
lea rdx, str.CreateProcess
mov rcx, rdi
call fcn.140116ec0
int3
Function at 0x140116ec0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rsi, rdx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, 0x400
xor edx, edx
mov edi, eax
mov ecx, 0x1300
xor eax, eax
mov r8d, edi
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [rax + 0x28]
add ecx, ebx
movsxd rdx, ecx
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LocalSize]
mov rcx, qword [rsp + 0x60]
lea r8, str._s_failed_with_error__d:__s
mov qword [rsp + 0x28], rcx
mov r9, rsi
shr rax, 1
mov rcx, rbx
mov rdx, rax
mov dword [rsp + 0x20], edi
call fcn.14011ec80
xor r9d, r9d
lea r8, [0x14034bd28]
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x1401328d0
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x40
xor r14d, r14d
movzx edi, dl
mov ebx, r14d
mov rsi, rcx
movzx edx, dil
mov rcx, rsi
call fcn.140131d90
cmp eax, 1
jne 0x1401328f1
lea ecx, [rax + 0x2f]
mov qword [rbp - 0x20], r14
add ebx, 0xea60
mov qword [rbp - 0x10], r14
mov qword [rbp - 8], SafeArrayLock
call fcn.1400eb1a0
mov qword [rbp - 8], 0x2f
cmp ebx, 0x2bf20
je 0x1401329d3
movups xmm0, xmmword [str.setWmiEventReceiver__1_start_sleep]
mov qword [rbp - 0x10], 0x24
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x14034d2d8]
movups xmmword [rax + 0x10], xmm1
mov ecx, dword [0x14034d2e8]
mov dword [rax + 0x20], ecx
lea rcx, [rbp - 0x20]
mov byte [rax + 0x24], r14b
mov qword [rbp - 0x20], rax
call fcn.1401a7f60
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0x30
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x10], r14
mov qword [rbp - 8], SafeArrayLock
call fcn.1400eb1a0
movups xmm0, xmmword [str.setWmiEventReceiver__1_end_sleep]
mov qword [rbp - 0x10], 0x22
mov qword [rbp - 8], 0x2f
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x14034d300]
movups xmmword [rax + 0x10], xmm1
movzx ecx, word [0x14034d310]
mov word [rax + 0x20], cx
lea rcx, [rbp - 0x20]
mov byte [rax + 0x22], r14b
mov qword [rbp - 0x20], rax
call fcn.1401a7f60
jmp 0x1401328f1
movups xmm0, xmmword [str.setWmiEventReceiver_trycount__3_break]
mov qword [rbp - 0x10], 0x27
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x14034d260]
movups xmmword [rax + 0x10], xmm1
mov ecx, dword [0x14034d270]
mov dword [rax + 0x20], ecx
movzx ecx, word [0x14034d274]
mov word [rax + 0x24], cx
movzx ecx, byte [0x14034d276]
mov byte [rax + 0x26], cl
lea rcx, [rbp - 0x20]
mov byte [rax + 0x27], r14b
mov qword [rbp - 0x20], rax
call fcn.1401a7f60
mov edx, 2
lea rcx, str.setWmiEventReceiver_trycount__3
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rbp
jmp fcn.1401a8aa0
Function at 0x140135790
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x118
mov r11, r9
mov r10, rdx
mov rdx, qword [rsp + 0x140]
mov ecx, dword [rsp + 0x148]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
movups xmmword [rsp + 0xb0], xmm0
movups xmmword [rsp + 0xc0], xmm0
movups xmmword [rsp + 0xd0], xmm0
mov qword [rsp + 0xe0], rax
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x80], 0x68
mov eax, 5
mov word [rsp + 0xc0], ax
lea r9, str.Winsta0Default
lea rax, str.Winsta0Winlogon
test ecx, ecx
cmovne rax, r9
mov qword [rsp + 0x90], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x48], rax
xor eax, eax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r8
mov dword [rsp + 0x30], 0x8000400
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, rdx
mov rdx, r11
mov rcx, r10
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x1401358b9
mov edx, 0x1388
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rsp + 0x68]
cmp rcx, 0xffffffffffffffff
je 0x1401358a2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
cmp rcx, 0xffffffffffffffff
je 0x1401358b3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x60]
jmp 0x1401358be
mov eax, 1
add rsp, 0x118
ret

Function at 0x140138cf0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1404779b8]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140138dd3
cmp byte [rcx + 0x71], 0
je 0x140138dd3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
mov rax, qword [rax + 0x18]
call qword [case.0x1400ed125.0]
cmp eax, 0xffffffff
je 0x140138dcf
mov rcx, qword [rbx + 0x68]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], r8
lea rdx, [rbx + 0x74]
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
call qword [case.0x1400ed125.0]
test eax, eax
je 0x140138d92
sub eax, 1
je 0x140138d96
cmp eax, 2
jne 0x140138dcf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14021f250
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140138dc6
lfence
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call fcn.140286c9c
cmp rdi, rax
jne 0x140138dcf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140138d7a
xor al, al
jmp 0x140138d7a
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14021f250
add rsp, 0x60
pop rbx
ret
Function at 0x140139940
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x1404779b8]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140139970
xor eax, eax
jmp 0x140139ac3
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1401399aa
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1401399aa
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140139ac3
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xb0], rsi
je 0x140139ab6
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1401399ed
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x1401399fc
movsx ecx, dil
jmp 0x140139a5a
lea r8, [rsp + 0x58]
mov byte [rsp + 0x50], dil
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rsp + 0x51]
lea r8, [rsp + 0x88]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x68]
mov rax, qword [rax + 0x38]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x60]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x50]
call qword [case.0x1400ed125.0]
test eax, eax
je 0x140139a74
sub eax, 1
je 0x140139a74
cmp eax, 2
jne 0x140139ab6
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call fcn.140286208
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140139abb
mov rsi, qword [rsp + 0x58]
lea rax, [rsp + 0x68]
sub rsi, rax
je 0x140139aa4
lfence
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x68]
mov r8, rsi
mov edx, 1
call fcn.140286c9c
cmp rsi, rax
jne 0x140139ab6
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x60], rax
mov eax, edi
jne 0x140139abb
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14021f250
mov rbx, qword [rsp + 0xb8]
add rsp, 0x90
pop rdi
ret
Function at 0x14013a560
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x14013a591
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rsi
je 0x14013a616
lfence
mov rbx, rbp
mov rcx, rdi
call fcn.140139150
test rax, rax
jle 0x14013a5e6
mov rdx, qword [rdi + 0x38]
cmp rbx, rax
mov rsi, rbx
mov rcx, r14
cmovge rsi, rax
mov r8, rsi
mov rdx, qword [rdx]
call fcn.140253310
mov rax, qword [rdi + 0x50]
sub rbx, rsi
sub dword [rax], esi
mov rcx, qword [rdi + 0x38]
movsxd rax, esi
add qword [rcx], rax
jmp 0x14013a606
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x38]
call qword [case.0x1400ed125.0]
cmp eax, 0xffffffff
je 0x14013a60e
mov byte [r14], al
dec rbx
mov esi, 1
add r14, rsi
test rbx, rbx
jg 0x14013a5a8
sub rbp, rbx
jmp 0x14013a708
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14013a62d
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14013a62f
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14013a661
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140253310
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x14013a702
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x14013a69c
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov rbx, rsi
cmp rsi, 0xfff
jbe 0x14013a6e0
nop dword [rax + rax]
mov r9, qword [rdi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.1402865ec
sub rsi, rax
add r14, rax
mov rbx, rsi
cmp rax, 0xfff
jne 0x14013a702
cmp rsi, rax
ja 0x14013a6b0
test rbx, rbx
je 0x14013a702
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.1402865ec
mov rsi, rbx
sub rsi, rax
sub rbp, rsi
lfence
mov rbx, qword [rsp + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14013a7f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov r14, r8
mov rbp, rdx
mov rdi, rcx
mov rbx, r8
je 0x14013a891
test r8, r8
jle 0x14013a889
mov rcx, rdi
call fcn.140139440
test rax, rax
jle 0x14013a860
mov rcx, qword [rdi + 0x40]
cmp rbx, rax
mov rsi, rbx
mov rdx, rbp
cmovge rsi, rax
mov r8, rsi
mov rcx, qword [rcx]
call fcn.140253310
mov rax, qword [rdi + 0x58]
sub rbx, rsi
sub dword [rax], esi
mov rcx, qword [rdi + 0x40]
movsxd rax, esi
add qword [rcx], rax
jmp 0x14013a881
mov rax, qword [rdi]
mov rcx, rdi
movzx edx, byte [rbp]
mov rax, qword [rax + 0x18]
call qword [case.0x1400ed125.0]
cmp eax, 0xffffffff
je 0x14013a889
dec rbx
mov esi, 1
add rbp, rsi
test rbx, rbx
jg 0x14013a822
sub r14, rbx
mov rax, r14
jmp 0x14013a90d
mov rax, qword [rcx + 0x40]
mov r9, qword [rax]
test r9, r9
je 0x14013a8a5
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14013a8a7
xor ecx, ecx
movsxd rsi, ecx
test r14, r14
jle 0x14013a907
test ecx, ecx
jle 0x14013a8e0
cmp r14, rsi
mov rcx, r9
cmovl rsi, r14
mov r8, rsi
call fcn.140253310
mov rax, qword [rdi + 0x58]
sub r14, rsi
add rbp, rsi
sub dword [rax], esi
mov rcx, qword [rdi + 0x40]
movsxd rax, esi
add qword [rcx], rax
test r14, r14
jle 0x14013a907
cmp qword [rdi + 0x80], 0
je 0x14013a907
lfence
mov r9, qword [rdi + 0x80]
mov r8, r14
mov edx, 1
mov rcx, rbp
call fcn.140286c9c
sub r14, rax
sub rbx, r14
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14014e490
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x18], r8
push rdi
push r12
push r13
push r14
push r15
mov r14, qword [rsp + 0x50]
xor ebp, ebp
mov rax, qword [rsp + 0x58]
mov r13, r9
mov rbx, qword [rsp + 0x68]
mov r12, rdx
mov qword [r14], r8
mov qword [rbx], rax
mov rax, qword [r14]
cmp rax, r9
je 0x14014e624
mov r15, qword [rsp + 0x60]
lea r9d, [rbp + 1]
mov rdi, qword [rbx]
mov r11d, 0x2800
mov r8d, 0x3ff
mov r10d, 0x2400
cmp rdi, r15
je 0x14014e624
movzx edx, word [r12]
xor sil, sil
movzx ecx, word [rax]
cmp r9w, dx
jae 0x14014e52b
lea eax, [r10 + rcx]
cmp ax, r8w
ja 0x14014e64b
mov eax, edx
sub ecx, 0xdc00
shl eax, 0xa
or eax, ecx
jmp 0x14014e542
mov eax, ecx
add cx, r11w
cmp cx, r8w
ja 0x14014e542
shl eax, 0xa
mov sil, 1
sub eax, 0x35f0000
cmp eax, 0x80
jae 0x14014e555
movzx r8d, al
mov r10d, ebp
mov r11d, ebp
jmp 0x14014e5a2
mov r8d, eax
cmp eax, 0x800
jae 0x14014e56f
shr r8d, 6
mov r10d, r9d
or r8b, 0xc0
mov r11d, r9d
jmp 0x14014e5a2
cmp eax, 0x10000
jae 0x14014e589
shr r8d, 0xc
mov r10d, 2
or r8b, 0xe0
mov r11d, r10d
jmp 0x14014e5a2
shr r8d, 0x12
mov r10d, 3
movzx r11d, sil
or r8b, 0xf0
xor r11d, 1
add r11d, r11d
lea r9d, [r11 + 1]
mov rdx, r15
sub rdx, rdi
mov ecx, r9d
cmp rdx, rcx
jl 0x14014e624
add qword [r14], 2
test sil, sil
jne 0x14014e5c3
cmp r10d, 3
jae 0x14014e5cf
mov rcx, qword [rbx]
mov r9d, r11d
mov byte [rcx], r8b
inc qword [rbx]
test r9d, r9d
je 0x14014e601
lea r8d, [r10 + r10*2]
add r8d, r8d
nop dword [rax + rax]
sub r8d, 6
mov edx, eax
mov ecx, r8d
dec r9d
shr edx, cl
mov rcx, qword [rbx]
and dl, 0x3f
or dl, 0x80
mov byte [rcx], dl
inc qword [rbx]
test r9d, r9d
jg 0x14014e5e0
shr eax, 0xa
mov r9d, 1
test sil, sil
mov ecx, r9d
cmovne ecx, eax
mov word [r12], cx
mov rax, qword [r14]
cmp rax, r13
jne 0x14014e4df
mov rax, qword [rsp + 0x40]
cmp rax, qword [r14]
sete bpl
mov eax, ebp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov eax, 2
jmp 0x14014e632
Function at 0x14016a400
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
mov r15d, edx
lea r14d, [rdx - 1]
mov rdi, rcx
xor r12d, r12d
nop word [rax + rax]
mov esi, r12d
mov ebp, r12d
test r14d, r14d
je 0x14016a60a
mov r8, qword [rdi + 8]
nop dword [rax]
nop word [rax + rax]
lea ecx, [r8 + 0xff]
shl esi, cl
add esi, esi
nop dword [rax + rax]
mov r10, qword [rdi]
mov ecx, dword [r10]
cmp ecx, 0x270
jne 0x14016a4c4
lea rax, [r10 + 8]
mov r9d, ecx
nop word [rax + rax]
mov r8d, dword [rax - 4]
xor r8d, dword [rax]
lea rax, [rax + 4]
btr r8d, 0x1f
xor r8d, dword [rax - 8]
mov ecx, r8d
and cl, 1
neg cl
sbb edx, edx
shr r8d, 1
and edx, 0x9908b0df
xor edx, dword [rax + 0x62c]
xor edx, r8d
mov dword [rax + 0x9b8], edx
sub r9, 1
jne 0x14016a480
mov ecx, dword [r10]
jmp 0x14016a5a7
cmp ecx, 0x4e0
jb 0x14016a5a7
lea r11, [r10 + 0x9c4]
mov ebx, 0xe3
mov eax, dword [r11]
nop
mov edx, dword [r11 + 4]
lea r8, [r11 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 + 0x634]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x14016a4e0
lea r11, [r10 + 0xd50]
mov ebx, 0x18c
mov eax, dword [r11]
nop dword [rax + rax]
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 - 0xd4c]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x14016a530
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
mov ecx, r12d
mov dword [r10], r12d
mov eax, ecx
mov edx, dword [r10 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r10], eax
mov ecx, edx
mov eax, dword [r10 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
mov edx, dword [rdi + 0x10]
cmp eax, edx
ja 0x14016a460
mov r8, qword [rdi + 8]
or esi, eax
lea ecx, [r8 + 0xff]
shl ebp, cl
add ebp, ebp
or ebp, edx
cmp ebp, r14d
jb 0x14016a450
xor edx, edx
mov eax, ebp
div r15d
mov ecx, eax
mov r8d, edx
xor edx, edx
mov eax, esi
div r15d
cmp eax, ecx
jb 0x14016a62a
cmp r8d, r14d
jne 0x14016a430
mov rbx, qword [rsp + 0x20]
mov eax, esi
mov rbp, qword [rsp + 0x28]
xor edx, edx
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
div r15d
mov eax, edx
pop r15
pop r14
pop r12
ret