joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004a050
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov r14, rdx
lea rdx, [0x1401cdba0]
mov rbp, r8
call fcn.1401541a4
mov rdi, rax
test rax, rax
jne 0x14004a085
mov rsi, qword [rsp + 0x58]
xor ebx, ebx
jmp 0x14004a0d7
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 2]
call fcn.140154544
mov rcx, rdi
call fcn.1401548cc
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.140154544
mov edx, ebx
mov ecx, 1
call fcn.140150b60
mov r9, rdi
mov r8d, ebx
mov rcx, rax
mov edx, 1
mov rsi, rax
call fcn.1401543d0
mov rcx, rdi
mov rbx, rax
call fcn.140153c8c
mov r9, rbp
mov r8, r14
mov rdx, rbx
mov rcx, rsi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
jmp 0x14004a100
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x58
mov rax, qword [0x1402274c0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbp, rcx
mov ecx, 1
mov rsi, r9
mov rdi, r8
mov r14, rdx
call fcn.140150b60
mov r15, rax
mov dword [rsp + 0x40], r14d
call fcn.1400630d0
mov rbx, rax
call fcn.140056370
mov r9, rsi
mov r8, rdi
mov rcx, rbx
mov rdx, rax
call fcn.140063760
lea r8, [rsp + 0x40]
mov r9, rbp
mov rdx, r15
mov rcx, rbx
mov dword [rsp + 0x20], r14d
call fcn.140063800
movsxd rdi, dword [rsp + 0x40]
lea r8, [rsp + 0x40]
lea rdx, [rdi + r15]
mov rcx, rbx
call fcn.1400635b0
cmp byte [r15], 0x4d
jne 0x14004a1a0
cmp byte [r15 + 1], 0x5a
jne 0x14004a1a0
mov rdx, rdi
mov rcx, r15
call fcn.14004ad90
jmp 0x14004a1a2
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140150a60
add rsp, 0x58
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14004a880
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Resolve function by parsing pe exports

Disassembly:
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x50
mov rax, qword [0x1402274c0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rsi, rcx
mov rcx, qword [rcx]
movabs rax, 0xffffffff00000000
movzx edi, word [rcx + 0x14]
mov r12, qword [rcx + 0x30]
mov r9d, dword [rsi + 0x68]
add rdi, rcx
and r12, rax
dec r9
mov r10d, dword [rdi + 0x20]
mov eax, dword [rdi + 0x28]
not r9
or r10, r12
and r9, r10
mov qword [rsp + 0x20], r10
mov qword [rsp + 0x28], r9
test eax, eax
jne 0x14004a8f3
mov edx, dword [rdi + 0x3c]
test dl, 0x40
je 0x14004a8ec
mov eax, dword [rcx + 0x20]
jmp 0x14004a8f3
test dl, dl
jns 0x14004a8f3
mov eax, dword [rcx + 0x24]
mov r8d, dword [rdi + 0x3c]
mov r13d, 1
mov qword [rsp + 0x88], rbx
mov edx, eax
mov qword [rsp + 0x90], rbp
mov dword [rsp + 0x3c], 0
mov dword [rsp + 0x38], r8d
mov qword [rsp + 0x98], r14
mov r15d, r13d
mov qword [rsp + 0x30], rdx
cmp r13w, word [rcx + 6]
jae 0x14004a9fb
add rdi, 0x64
nop dword [rax + rax]
mov ebx, dword [rsi + 0x68]
mov r14d, dword [rdi - 0x1c]
mov eax, dword [rdi - 0x14]
dec rbx
or r14, r12
not rbx
and rbx, r14
test eax, eax
jne 0x14004a973
mov ecx, dword [rdi]
test cl, 0x40
je 0x14004a969
mov rax, qword [rsi]
mov eax, dword [rax + 0x20]
jmp 0x14004a973
test cl, cl
jns 0x14004a973
mov rax, qword [rsi]
mov eax, dword [rax + 0x24]
mov ebp, eax
cmp r9, rbx
je 0x14004a9b5
lea rax, [rdx + r10]
cmp rax, rbx
ja 0x14004a9b5
test rdx, rdx
je 0x14004a99d
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.14004a7a0
test eax, eax
je 0x14004aa1e
mov r8d, dword [rdi]
mov r10, r14
mov qword [rsp + 0x20], r14
mov r9, rbx
mov qword [rsp + 0x28], rbx
mov rdx, rbp
jmp 0x14004a9da
mov eax, dword [rdi]
bt eax, 0x19
jae 0x14004a9c9
bt r8d, 0x19
jae 0x14004a9c9
or r8d, eax
jmp 0x14004a9d1
or r8d, eax
btr r8d, 0x19
mov rdx, rbp
sub rdx, r10
add rdx, r14
mov rax, qword [rsi]
inc r15d
add rdi, 0x28
movzx ecx, word [rax + 6]
mov dword [rsp + 0x38], r8d
mov qword [rsp + 0x30], rdx
cmp r15d, ecx
jl 0x14004a940
test rdx, rdx
je 0x14004aa71
bt r8d, 0x19
jae 0x14004aa22
cmp r10, r9
jne 0x14004aa71
mov r9, qword [rsi + 0x58]
mov r8d, 0x4000
mov rcx, r10
call qword [rsi + gethostname]
jmp 0x14004aa71
xor eax, eax
jmp 0x14004aa74
mov eax, r8d
shr eax, 0x1d
and eax, r13d
movsxd rcx, eax
mov eax, r8d
shr eax, 0x1e
and eax, r13d
cdqe
lea rcx, [rax + rcx*2]
mov eax, r8d
shr eax, 0x1f
lea rcx, [rax + rcx*2]
lea rax, [0x1401ccc40]
mov eax, dword [rax + rcx*4]
bt r8d, 0x1a
jae 0x14004aa5c
bts eax, 9
lea r9, [rsp + 0x40]
mov r8d, eax
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x14004aa1e
mov eax, r13d
mov r14, qword [rsp + 0x98]
mov rbp, qword [rsp + 0x90]
mov rbx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140150a60
add rsp, 0x50
pop r15
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x14004cf10
Capabilities:
Terminate process

Disassembly:
mov eax, Ordinal_41
call fcn.140150d80
sub rsp, rax
lea r8, [0x1401efbe8]
lea edx, [rax - 0x27]
lea ecx, [rax - 0x23]
mov r9d, 0x247
call fcn.14004d570
cmp dword [reloc.WS2_32.dll_accept], 0
mov edx, 1
lea ecx, [rdx + 5]
jne 0x14004cf5c
lea r8, [0x1401efc00]
mov r9d, 0x249
add rsp, 0x28
jmp fcn.14004d570
lea r8, [0x1401efc18]
mov r9d, 0x24d
call fcn.14004d570
mov edx, 1
lea r8, [0x1401efc30]
lea ecx, [rdx + 8]
mov r9d, 0x24e
call fcn.14004d570
cmp dword [reloc.WS2_32.dll_accept], 0
jne 0x14004cfaf
mov edx, 1
lea r8, [0x1401efc48]
mov r9d, 0x250
lea ecx, [rdx + 9]
add rsp, 0x28
jmp fcn.14004d570
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x20], rdi
lea rsi, [0x140229560]
lea rbx, [0x140228d68]
mov edi, 1
lea rbp, [0x1401efc60]
nop dword [rax]
cmp qword [rbx], 0
mov dword [rbx - 8], edi
jne 0x14004d016
mov ecx, edi
call fcn.140150e5c
test rax, rax
je 0x14004d00d
mov r8d, reloc.WLDAP32.dll_Ordinal_32
mov rdx, rax
mov rcx, rsi
call fcn.140150f10
mov byte [rsi + 0x1f], 0
mov qword [rbx], rsi
cmp qword [rbx], 0
jne 0x14004d016
mov qword [rbx], rbp
inc edi
add rbx, 0x10
add rsi, 0x20
cmp edi, 0x7f
jle 0x14004cfe0
mov edx, 1
lea r8, [0x1401efc68]
mov r9d, 0x26c
lea ecx, [rdx + 9]
mov dword [reloc.WS2_32.dll_accept], 0
mov rdi, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x28
jmp fcn.14004d570

Function at 0x14004d070
Capabilities:
Terminate process

Disassembly:
mov eax, Ordinal_41
call fcn.140150d80
sub rsp, rax
cmp qword [0x140228d38], 0
jne 0x14004d0d9
lea r8, [0x1401f0708]
lea edx, [rax - 0x27]
lea ecx, [rax - 0x1f]
mov r9d, 0x127
call fcn.14004d570
mov rax, qword [0x140228d38]
mov edx, 1
test rax, rax
lea rcx, [0x14016a040]
lea r8, [0x1401f0720]
cmovne rcx, rax
mov r9d, Ordinal_301
mov qword [0x140228d38], rcx
lea ecx, [rdx + 9]
add rsp, 0x28
jmp fcn.14004d570
add rsp, 0x28
ret

Function at 0x14004d3c0
Capabilities:
Terminate process

Disassembly:
push rdi
mov eax, reloc.WLDAP32.dll_Ordinal_32
call fcn.140150d80
sub rsp, rax
mov edi, ecx
test ecx, ecx
je 0x14004d3dc
or eax, 0xffffffff
sub eax, ecx
mov edi, eax
cmp qword [0x14022a8a8], 0
je 0x14004d49b
mov edx, Ordinal_30
lea r8, [0x1401f4838]
mov r9d, 0x133
lea ecx, [rdx - 0x14]
call fcn.14004d570
mov rcx, qword [0x14022a870]
test rcx, rcx
je 0x14004d4a1
call fcn.140051230
cmp edi, eax
jge 0x14004d4a1
mov rcx, qword [0x14022a870]
mov edx, edi
mov qword [rsp + 0x30], rbx
call fcn.1400513f0
mov rbx, rax
test rax, rax
je 0x14004d458
dec dword [rax]
cmp dword [rax], 0
jg 0x14004d456
mov rcx, qword [0x14022a870]
xor r8d, r8d
mov edx, edi
call fcn.140051310
jmp 0x14004d458
xor ebx, ebx
mov edx, Ordinal_30
lea r8, [0x1401f4868]
mov r9d, 0x148
lea ecx, [rdx - 0x13]
call fcn.14004d570
test rbx, rbx
je 0x14004d496
mov rcx, qword [rbx + 8]
lea rdx, [0x1401f4880]
mov r8d, 0x14b
call qword [0x14022a8a8]
mov rcx, rbx
call fcn.14004e660
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov edx, Ordinal_30
lea r8, [0x1401f4850]
mov r9d, 0x136
lea ecx, [rdx - 0x13]
add rsp, 0x20
pop rdi
jmp fcn.14004d570
Function at 0x14004d570
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
mov eax, reloc.WLDAP32.dll_Ordinal_32
call fcn.140150d80
sub rsp, rax
mov edi, r9d
mov rsi, r8
mov ebx, edx
mov ebp, ecx
test edx, edx
jns 0x14004d5cb
cmp qword [0x14022a8a0], 0
je 0x14004d5d9
mov ecx, edx
call fcn.14004d4c0
test rax, rax
je 0x14004d5ee
mov r9d, edi
mov r8, rsi
mov rdx, rax
mov ecx, ebp
call qword [0x14022a8a0]
mov ecx, ebx
call fcn.14004d3c0
jmp 0x14004d5d9
mov rax, qword [0x14022a878]
test rax, rax
je 0x14004d5d9
call rax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
lea r9, str.pointer___NULL
lea rdx, str..cryptocryptlib.c
lea rcx, str._s__d_:_OpenSSL_internal_error__assertion_failed:__s_n
mov r8d, 0x24d
call fcn.14004d940
mov ecx, reloc.WS2_32.dll_shutdown
call fcn.1401521b0
mov ecx, 3
call fcn.140151334
int3

Function at 0x14004d630
Capabilities:
Encode data using xor

Disassembly:
xor r9b, r9b
mov r10, rdx
test r8, r8
je 0x14004d656
sub r10, rcx
nop
movzx edx, byte [r10 + rcx]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
xor dl, al
or r9b, dl
dec r8
jne 0x14004d640
movzx eax, r9b
ret

Function at 0x14004d660
Capabilities:
Query environment variable

Disassembly:
mov eax, Ordinal_41
call fcn.140150d80
sub rsp, rax
cmp dword [0x14022a858], 0
jne 0x14004d7a8
lea rcx, str.OPENSSL_ia32cap
mov qword [rsp + 0x38], rbx
mov dword [0x14022a858], 1
mov qword [rsp + 0x20], rdi
call fcn.140151688
mov rbx, rax
test rax, rax
je 0x14004d77c
mov qword [rsp + 0x40], rbp
xor edi, edi
cmp byte [rax], 0x7e
mov qword [rsp + 0x48], rsi
mov esi, edi
sete sil
movsxd rbp, esi
lea r8, [rsp + 0x30]
lea rdx, str._I64i
add rbp, rax
mov rcx, rbp
call fcn.140151e14
test eax, eax
jne 0x14004d6ed
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call fcn.140151a08
mov eax, eax
mov qword [rsp + 0x30], rax
mov rbp, qword [rsp + 0x40]
test esi, esi
mov rsi, qword [rsp + 0x48]
je 0x14004d714
lea rcx, [0x14022c940]
call fcn.140001030
mov rcx, qword [rsp + 0x30]
not rcx
and rax, rcx
jmp 0x14004d725
cmp byte [rbx], 0x3a
jne 0x14004d72a
lea rcx, [0x14022c940]
call fcn.140001030
mov qword [rsp + 0x30], rax
mov edx, Ordinal_60
mov rcx, rbx
mov dword [0x14022c948], edi
call fcn.140150dd0
test rax, rax
je 0x14004d775
inc rax
cmp byte [rax], 0x7e
sete dil
xor r8d, r8d
xor edx, edx
movsxd rcx, edi
add rcx, rax
call fcn.140151a08
test edi, edi
je 0x14004d76f
not eax
and dword [0x14022c948], eax
mov rax, qword [rsp + 0x30]
jmp 0x14004d788
mov dword [0x14022c948], eax
mov rax, qword [rsp + 0x30]
jmp 0x14004d788
lea rcx, [0x14022c940]
call fcn.140001030
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x38]
mov ecx, eax
bts ecx, 0xa
shr rax, 0x20
mov dword [0x14022c944], eax
mov dword [0x14022c940], ecx
add rsp, 0x28
ret
Function at 0x140050c10
Capabilities:
Encode data using xor

Disassembly:
xor edx, edx
mov r9, rcx
test rcx, rcx
je 0x140050c6a
movzx eax, byte [rcx]
test al, al
je 0x140050c6a
mov r10d, 0x100
nop word [rax + rax]
movsx r8d, al
lea r9, [r9 + 1]
or r8d, r10d
add r10d, 0x100
mov eax, r8d
shr eax, 2
xor eax, r8d
and eax, 0xf
movzx ecx, al
movzx eax, byte [r9]
imul r8d, r8d
rol edx, cl
xor edx, r8d
test al, al
jne 0x140050c30
mov eax, edx
shr eax, 0x10
xor eax, edx
ret
xor eax, eax
ret

Function at 0x14005ac50
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
mov eax, Ordinal_50
call fcn.140150d80
sub rsp, rax
mov rbx, rdx
mov rsi, rcx
call fcn.14005adb0
mov rdi, rax
test rax, rax
jne 0x14005ad32
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, [0x1401f5590]
lea edx, [rdi + 1]
lea ecx, [rdi + 2]
mov r8d, eax
mov dword [rsp + 0x20], 0xaf
call fcn.14004cd30
lea rax, [0x1401f55a8]
lea r9, [0x1401f55ac]
mov qword [rsp + 0x28], rax
lea rdx, [0x1401f55b0]
lea ecx, [rdi + 5]
mov r8, rsi
mov qword [rsp + 0x20], rbx
call fcn.14004c220
call fcn.140154ca0
lea edx, [rdi + 0x6d]
cmp dword [rax], 2
lea ecx, [rdi + 0x20]
jne 0x14005ad06
lea r9, [0x1401f55b8]
lea r8d, [rdx + 0x13]
mov dword [rsp + 0x20], 0xb2
call fcn.14004cd30
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
lea r9, [0x1401f55d0]
mov r8d, 2
mov dword [rsp + 0x20], 0xb4
call fcn.14004cd30
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
lea rcx, [0x1401f5530]
call fcn.14005b5d0
mov rbx, rax
test rax, rax
jne 0x14005ad60
mov rcx, rdi
call fcn.140153c8c
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
xor edx, edx
mov rcx, rax
call fcn.14005b080
mov edx, 0x6a
mov r9, rdi
lea r8d, [rdx - 0x69]
mov rcx, rbx
call fcn.14005b0b0
mov rsi, qword [rsp + 0x48]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140062830
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
mov eax, 0x50
call fcn.140150d80
sub rsp, rax
mov rax, qword [0x1402274c0]
xor rax, rsp
mov qword [rbp - 8], rax
mov rax, qword [rbp + 0x60]
mov r13, qword [rbp + 0x68]
mov r14d, r8d
movzx r10d, byte [rax]
movzx r8d, byte [rax + 4]
mov ebx, dword [r13]
lea rdi, [rax + 1]
mov qword [rbp - 0x18], rax
shl r10d, 0x18
movzx eax, byte [rdi]
mov rsi, rcx
movzx ecx, byte [rdi + 5]
shl eax, 0x10
shl r8d, 0x18
shl ecx, 8
or r10d, eax
movzx eax, byte [rdi + 1]
mov r12, rdx
shl eax, 8
lea rdx, [rdi + 5]
xor r15d, r15d
or r10d, eax
movzx eax, byte [rdi + 2]
mov qword [rbp - 0x28], r9
or r10d, eax
movzx eax, byte [rdi + 4]
mov qword [rbp - 0x20], r13
shl eax, 0x10
mov dword [rbp - 0x30], r10d
mov byte [rbp - 0xd], r10b
or r8d, eax
movzx eax, byte [rdx + 1]
or ecx, eax
mov eax, r10d
shr eax, 0x18
or r8d, ecx
mov byte [rbp - 0x10], al
mov eax, r10d
mov dword [rbp - 0x2c], r8d
shr eax, 0x10
mov byte [rbp - 9], r8b
mov byte [rbp - 0xf], al
mov eax, r10d
shr eax, 8
mov byte [rbp - 0xe], al
mov eax, r8d
shr eax, 0x18
mov byte [rbp - 0xc], al
mov eax, r8d
shr eax, 0x10
mov byte [rbp - 0xb], al
mov eax, r8d
shr eax, 8
mov byte [rbp - 0xa], al
test r14d, r14d
je 0x1400629f6
mov r13, qword [rbp - 0x28]
sub r12, rsi
movzx edx, r8b
movzx r9d, r10b
nop dword [rax]
dec r14d
test ebx, ebx
jne 0x140062993
lea rcx, [rbp - 0x30]
mov rdx, r13
call fcn.140061e10
mov r10d, dword [rbp - 0x30]
mov r8d, dword [rbp - 0x2c]
mov eax, r10d
movzx edx, r8b
movzx r9d, r10b
shr eax, 0x18
mov byte [rbp - 0xd], r10b
mov byte [rbp - 9], dl
mov byte [rbp - 0x10], al
mov eax, r10d
shr eax, 0x10
mov byte [rbp - 0xf], al
mov eax, r10d
shr eax, 8
mov byte [rbp - 0xe], al
mov eax, r8d
shr eax, 0x18
mov byte [rbp - 0xc], al
mov eax, r8d
shr eax, 0x10
mov byte [rbp - 0xb], al
mov eax, r8d
shr eax, 8
inc r15d
mov byte [rbp - 0xa], al
movsxd rax, ebx
inc rsi
movzx ecx, byte [rbp + rax - 0x10]
xor cl, byte [rsi - 1]
inc ebx
mov byte [r12 + rsi - 1], cl
and ebx, 7
test r14d, r14d
jne 0x140062930
mov r13, qword [rbp - 0x20]
test r15d, r15d
je 0x1400629f6
mov rcx, qword [rbp - 0x18]
mov eax, r10d
shr eax, 0x18
mov byte [rcx], al
mov eax, r10d
shr r10d, 8
shr eax, 0x10
mov byte [rdi], al
mov byte [rdi + 1], r10b
mov byte [rdi + 2], r9b
mov eax, r8d
shr eax, 0x18
mov byte [rdi + 3], al
mov eax, r8d
shr eax, 0x10
shr r8d, 8
mov byte [rdi + 4], al
mov byte [rdi + 5], r8b
mov byte [rdi + 6], dl
mov dword [r13], ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140150a60
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140063cb0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, 8
call fcn.140150d80
sub rsp, rax
mov qword [rsp + 0x18], rsi
mov qword [rsp], rdi
mov edi, 0x80
cmp edx, edi
mov r10, rcx
mov byte [rcx], 0
cmovg edx, edi
mov r11d, 0x400
test r9d, r9d
jle 0x140063ceb
cmp r9d, r11d
cmovg r9d, r11d
mov r11d, r9d
movsxd r9, edx
test edx, edx
jle 0x140063d11
sub r8, rcx
mov rdx, r9
nop dword [rax + rax]
movzx eax, byte [r8 + rcx]
lea rcx, [rcx + 1]
mov byte [rcx - 1], al
dec rdx
jne 0x140063d00
movzx ecx, byte [r9 + r10 - 1]
lea rdx, [r9 + r10]
lea rsi, [0x14017c290]
cmp r9, rdi
jge 0x140063d5e
mov qword [rsp + 0x10], rbx
mov rbx, r9
mov r8, rdi
neg rbx
sub r8, r9
nop dword [rax + rax]
movzx eax, byte [rdx + rbx]
lea rdx, [rdx + 1]
add eax, ecx
movzx ecx, al
movzx ecx, byte [rcx + rsi]
mov byte [rdx - 1], cl
dec r8
jne 0x140063d40
mov rbx, qword [rsp + 0x10]
lea r9d, [r11 + 7]
neg r11d
mov eax, 0xff
sar r9d, 3
and r11d, 7
sub edi, r9d
movzx ecx, r11b
sar eax, cl
movsxd r8, edi
mov rdi, qword [rsp]
mov ecx, eax
movzx eax, byte [r8 + r10]
lea rdx, [r8 + r10]
and rcx, rax
movzx eax, byte [rcx + rsi]
mov byte [rdx], al
test r8, r8
je 0x140063db8
movsxd r9, r9d
nop
movzx ecx, byte [rdx + r9 - 1]
lea rdx, [rdx - 1]
xor rcx, rax
movzx eax, byte [rcx + rsi]
mov byte [rdx], al
dec r8
jne 0x140063da0
mov rsi, qword [rsp + 0x18]
lea r8, [r10 + 0xfc]
lea rdx, [r10 + 0x7e]
mov r9d, 0x40
nop
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
lea r8, [r8 - 4]
shl ecx, 8
lea rdx, [rdx - 2]
or ecx, eax
movzx eax, cx
mov dword [r8 + 4], eax
dec r9
jne 0x140063dd0
add rsp, 8
ret
Function at 0x140064ad0
Capabilities:
Encode data using xor
Encrypt data using blowfish
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, reloc.WLDAP32.dll_Ordinal_32
call fcn.140150d80
sub rsp, rax
mov r10, r8
mov rdi, rcx
mov r9, rcx
mov r8d, edx
mov ecx, reloc.WLDAP32.dll_Ordinal_32
lea rax, [0x14017c3c0]
movups xmm0, xmmword [rax]
lea r9, [r9 + 0x80]
lea rax, [rax + 0x80]
movups xmmword [r9 - 0x80], xmm0
movups xmm1, xmmword [rax - 0x70]
movups xmmword [r9 - 0x70], xmm1
movups xmm0, xmmword [rax - 0x60]
movups xmmword [r9 - 0x60], xmm0
movups xmm1, xmmword [rax - 0x50]
movups xmmword [r9 - 0x50], xmm1
movups xmm0, xmmword [rax - 0x40]
movups xmmword [r9 - 0x40], xmm0
movups xmm1, xmmword [rax - 0x30]
movups xmmword [r9 - 0x30], xmm1
movups xmm0, xmmword [rax - 0x20]
movups xmmword [r9 - 0x20], xmm0
movups xmm1, xmmword [rax - 0x10]
movups xmmword [r9 - 0x10], xmm1
dec rcx
jne 0x140064b00
movups xmm0, xmmword [rax]
movups xmmword [r9], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [r9 + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [r9 + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [r9 + 0x30], xmm1
mov rcx, qword [rax + 0x40]
mov eax, 0x48
cmp edx, eax
mov qword [r9 + 0x40], rcx
mov rdx, r10
cmovg r8d, eax
movsxd r8, r8d
add r8, r10
xor ebx, ebx
mov r9d, ebx
nop dword [rax]
movzx ecx, byte [rdx]
inc rdx
cmp rdx, r8
cmovae rdx, r10
shl ecx, 8
movzx eax, byte [rdx]
inc rdx
or ecx, eax
cmp rdx, r8
cmovae rdx, r10
shl ecx, 8
movzx eax, byte [rdx]
inc rdx
or ecx, eax
cmp rdx, r8
cmovae rdx, r10
shl ecx, 8
movzx eax, byte [rdx]
inc rdx
or ecx, eax
cmp rdx, r8
cmovae rdx, r10
xor dword [rdi + r9*4], ecx
inc r9
cmp r9, 0x12
jl 0x140064ba0
mov qword [rsp + 0x30], rbx
mov rsi, rbx
nop dword [rax + rax]
lea rcx, [rsp + 0x30]
mov rdx, rdi
call fcn.1400656e0
mov eax, dword [rsp + 0x30]
add rsi, 2
mov dword [rdi + rsi*4 - 8], eax
mov eax, dword [rsp + 0x34]
mov dword [rdi + rsi*4 - 4], eax
cmp rsi, 0x12
jl 0x140064c00
nop word [rax + rax]
lea rcx, [rsp + 0x30]
mov rdx, rdi
call fcn.1400656e0
mov eax, dword [rsp + 0x30]
add rbx, 2
mov dword [rdi + rbx*4 + 0x40], eax
mov eax, dword [rsp + 0x34]
mov dword [rdi + rbx*4 + 0x44], eax
cmp rbx, 0x400
jl 0x140064c30
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140065d30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
mov eax, 0x50
call fcn.140150d80
sub rsp, rax
mov rax, qword [0x1402274c0]
xor rax, rsp
mov qword [rbp - 8], rax
mov rax, qword [rbp + 0x60]
mov r13, qword [rbp + 0x68]
mov r14d, r8d
movzx r10d, byte [rax]
movzx r8d, byte [rax + 4]
mov ebx, dword [r13]
lea rdi, [rax + 1]
mov qword [rbp - 0x18], rax
shl r10d, 0x18
movzx eax, byte [rdi]
mov rsi, rcx
movzx ecx, byte [rdi + 5]
shl eax, 0x10
shl r8d, 0x18
shl ecx, 8
or r10d, eax
movzx eax, byte [rdi + 1]
mov r12, rdx
shl eax, 8
lea rdx, [rdi + 5]
xor r15d, r15d
or r10d, eax
movzx eax, byte [rdi + 2]
mov qword [rbp - 0x28], r9
or r10d, eax
movzx eax, byte [rdi + 4]
mov qword [rbp - 0x20], r13
shl eax, 0x10
mov dword [rbp - 0x30], r10d
mov byte [rbp - 0xd], r10b
or r8d, eax
movzx eax, byte [rdx + 1]
or ecx, eax
mov eax, r10d
shr eax, 0x18
or r8d, ecx
mov byte [rbp - 0x10], al
mov eax, r10d
mov dword [rbp - 0x2c], r8d
shr eax, 0x10
mov byte [rbp - 9], r8b
mov byte [rbp - 0xf], al
mov eax, r10d
shr eax, 8
mov byte [rbp - 0xe], al
mov eax, r8d
shr eax, 0x18
mov byte [rbp - 0xc], al
mov eax, r8d
shr eax, 0x10
mov byte [rbp - 0xb], al
mov eax, r8d
shr eax, 8
mov byte [rbp - 0xa], al
test r14d, r14d
je 0x140065ef6
mov r13, qword [rbp - 0x28]
sub r12, rsi
movzx edx, r8b
movzx r9d, r10b
nop dword [rax]
dec r14d
test ebx, ebx
jne 0x140065e93
lea rcx, [rbp - 0x30]
mov rdx, r13
call fcn.1400656e0
mov r10d, dword [rbp - 0x30]
mov r8d, dword [rbp - 0x2c]
mov eax, r10d
movzx edx, r8b
movzx r9d, r10b
shr eax, 0x18
mov byte [rbp - 0xd], r10b
mov byte [rbp - 9], dl
mov byte [rbp - 0x10], al
mov eax, r10d
shr eax, 0x10
mov byte [rbp - 0xf], al
mov eax, r10d
shr eax, 8
mov byte [rbp - 0xe], al
mov eax, r8d
shr eax, 0x18
mov byte [rbp - 0xc], al
mov eax, r8d
shr eax, 0x10
mov byte [rbp - 0xb], al
mov eax, r8d
shr eax, 8
inc r15d
mov byte [rbp - 0xa], al
movsxd rax, ebx
inc rsi
movzx ecx, byte [rbp + rax - 0x10]
xor cl, byte [rsi - 1]
inc ebx
mov byte [r12 + rsi - 1], cl
and ebx, 7
test r14d, r14d
jne 0x140065e30
mov r13, qword [rbp - 0x20]
test r15d, r15d
je 0x140065ef6
mov rcx, qword [rbp - 0x18]
mov eax, r10d
shr eax, 0x18
mov byte [rcx], al
mov eax, r10d
shr r10d, 8
shr eax, 0x10
mov byte [rdi], al
mov byte [rdi + 1], r10b
mov byte [rdi + 2], r9b
mov eax, r8d
shr eax, 0x18
mov byte [rdi + 3], al
mov eax, r8d
shr eax, 0x10
shr r8d, 8
mov byte [rdi + 4], al
mov byte [rdi + 5], r8b
mov byte [rdi + 6], dl
mov dword [r13], ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140150a60
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret