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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xd0
mov rax, qword [0x18019bca8]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov rdx, qword [rdx]
lea r8, str.PixelFormats
mov r13, rcx
xor esi, esi
lea rcx, [rbp - 0x61]
mov qword [rbp - 0x61], rsi
call fcn.18005f30c
mov ebx, eax
test eax, eax
jle 0x1800e0f7d
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
jns 0x1800e0f98
cmp dword [0x18019cca4], esi
je 0x1800e0f90
mov ecx, ebx
call fcn.180096ba4
test ebx, ebx
js 0x1800e10ef
mov rcx, qword [rbp - 0x61]
lea rax, [rbp - 0x59]
mov qword [rsp + 0x38], rax
lea r9, [rbp - 0x69]
mov qword [rsp + 0x30], rsi
lea r8, [rbp - 0x39]
mov qword [rsp + 0x28], rsi
xor edx, edx
mov qword [rsp + 0x20], rsi
mov r12d, esi
mov dword [rbp - 0x69], 0x28
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
mov ebx, eax
test eax, eax
jne 0x1800e10e2
mov r15d, dword [rbp - 0x69]
lea rdx, [rbp - 0x51]
lea rcx, [rbp - 0x39]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_IIDFromString]
mov edi, eax
test eax, eax
jns 0x1800e0fff
cmp dword [0x18019cca4], esi
je 0x1800e0fff
mov ecx, eax
call fcn.180096ba4
mov ebx, edi
test edi, edi
js 0x1800e10ef
lea rdi, [r13 + 0x98]
mov esi, dword [rdi + 0x18]
lea r14d, [rsi + 1]
cmp r14d, esi
sbb ebx, ebx
and ebx, 0x80070216
cmp r14d, esi
cmovae r15d, r14d
jae 0x1800e1040
cmp dword [0x18019cca4], 0
je 0x1800e103b
mov ecx, ebx
call fcn.180096ba4
cmp r14d, esi
jb 0x1800e1088
cmp r15d, dword [rdi + 0x14]
ja 0x1800e105d
mov eax, dword [rdi + 0x18]
movups xmm0, xmmword [rbp - 0x51]
shl rax, 4
add rax, qword [rdi]
movups xmmword [rax], xmm0
mov dword [rdi + 0x18], r15d
jmp 0x1800e1088
mov edx, 0x10
lea r9, [rbp - 0x51]
mov rcx, rdi
lea r8d, [rdx - 0xf]
call fcn.18003376c
mov ebx, eax
test eax, eax
jns 0x1800e1088
cmp dword [0x18019cca4], 0
je 0x1800e1088
mov ecx, eax
call fcn.180096ba4
xor esi, esi
test ebx, ebx
jns 0x1800e10a1
cmp dword [0x18019cca4], esi
je 0x1800e109d
mov ecx, ebx
call fcn.180096ba4
test ebx, ebx
js 0x1800e10ef
mov rcx, qword [rbp - 0x61]
lea rax, [rbp - 0x59]
mov qword [rsp + 0x38], rax
lea r9, [rbp - 0x69]
mov qword [rsp + 0x30], rsi
lea r8, [rbp - 0x39]
inc r12d
mov qword [rsp + 0x28], rsi
mov edx, r12d
mov qword [rsp + 0x20], rsi
mov dword [rbp - 0x69], 0x28
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
mov ebx, eax
test eax, eax
je 0x1800e0fdc
test ebx, ebx
jle 0x1800e10ef
movzx ebx, bx
or ebx, 0x80070000
lea rcx, [rbp - 0x61]
call fcn.18005f368
mov eax, ebx
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.18008b970
mov rbx, qword [rsp + 0x120]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800e59fc
Capabilities:
Encode data using xor

Disassembly:
mov r8, rcx
mov ecx, edx
shr rcx, 1
lea r9, [r8 - 1]
add r9, rcx
test dl, 1
je 0x1800e5a7d
mov al, byte [r8]
mov r11b, 0xf
xor al, byte [rcx + r8]
mov r10b, byte [rcx + r8]
and al, r11b
xor al, byte [r8]
shr r10b, 4
mov byte [rcx + r8], al
cmp r8, r9
jae 0x1800e5a82
mov al, byte [r9]
lea rdx, [r8 + 1]
mov cl, byte [rdx]
and al, r11b
xor cl, byte [r8]
shl r10b, 4
and cl, r11b
xor cl, byte [rdx]
or al, r10b
mov byte [r8], al
mov r8, rdx
mov r10b, byte [r9]
mov byte [r9], cl
dec r9
shr r10b, 4
cmp rdx, r9
jb 0x1800e5a31
ret
mov al, byte [r9]
mov cl, byte [r8]
rol al, 4
mov byte [r8], al
inc r8
rol cl, 4
mov byte [r9], cl
dec r9
cmp r8, r9
jb 0x1800e5a65
ret

Function at 0x1800f5ae8
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
mov edi, 0x88982f94
call sub.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess
mov rcx, rax
xor edx, edx
call qword [sym.imp.ext_ms_win_ntuser_misc_l1_1_0.dll_GetGuiResources]
mov ebx, dword [0x18019ddf0]
mov esi, eax
cmp eax, ebx
jb 0x1800f5bb9
test ebx, ebx
jne 0x1800f5baf
lea rax, [rsp + 0x68]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionWindows
mov rcx, 0xffffffff80000002
mov ebx, 0x2710
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x1800f5ba2
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x58]
lea rax, [rsp + 0x60]
mov dword [rsp + 0x50], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.GDIProcessHandleQuota
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x1800f5b97
cmp dword [rsp + 0x58], 4
jne 0x1800f5b97
mov eax, dword [rsp + 0x60]
test eax, eax
cmovne ebx, eax
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov ecx, ebx
shr ecx, 3
sub ebx, ecx
mov dword [0x18019ddf0], ebx
cmp esi, ebx
mov eax, 0x8007000e
cmovae edi, eax
mov eax, edi
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x180129074
Capabilities:
Encode data using xor

Disassembly:
mov r10, rcx
mov r11d, 1
test r8d, r8d
je 0x1801290af
sub rdx, r9
mov r8d, r8d
movzx ecx, byte [r10]
inc r10
movzx eax, byte [rdx + r9]
lea eax, [rax + rcx*2]
add ecx, eax
add ecx, r11d
xor r11d, 3
sar ecx, 2
mov byte [r9], cl
inc r9
sub r8, 1
jne 0x180129088
ret

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

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x58
mov r10d, dword [rcx + 0x1d4]
mov r14, rdx
mov eax, dword [rcx + 0x64]
xor edx, edx
shl r10d, 3
xor ebp, ebp
div r10d
mov r13, rcx
mov r11, r8
mov ecx, eax
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x30], ebp
cmp dword [r14 + 0x7c], ebp
jbe 0x18012cc0f
mov r12, qword [r13 + 0x168]
mov rdx, qword [r11 + rbp*8]
mov rbx, qword [r14 + 0x88]
and dword [rsp + 0x20], 0
mov edi, ebp
imul r15, rdi, 0x68
mov r9d, dword [r15 + r12 + 0xc]
mov esi, r9d
imul esi, dword [rsp + 0xc0]
mov eax, r9d
imul eax, ecx
mov rcx, r13
mov r8d, esi
mov dword [rsp + 0x34], eax
call fcn.180007464
mov r9d, dword [r15 + rbx + 0x20]
xor r8d, r8d
mov qword [rsp + 0x48], rax
mov rcx, r14
mov rax, qword [rsp + 0xb8]
mov dword [rsp + 0x20], 1
mov rdx, qword [rax + rbp*8]
call fcn.180007464
cmp dword [r15 + r12 + 0xc], 0
jbe 0x18012cbf3
mov edi, dword [rsp + 0x34]
mov ebx, esi
neg ebx
mov rbp, rax
mov dword [rsp + 0x38], ebx
cmp esi, edi
jae 0x18012cb3b
mov ecx, edi
sub ecx, esi
dec ecx
jmp 0x18012cb3d
mov ecx, esi
xor r11d, r11d
cmp dword [r15 + r12 + 0x1c], r11d
jbe 0x18012cbcf
lea r13d, [rbx + rsi]
mov r14d, ecx
mov rbx, qword [rsp + 0x48]
mov rdx, qword [rbx + r13*8]
mov r8, qword [rbp + r14*8]
mov ecx, r11d
shl rcx, 7
add rdx, rcx
add r8, rcx
cmp esi, edi
jae 0x18012cb7b
mov rcx, r8
call fcn.18012db3c
jmp 0x18012cbc1
movups xmm0, xmmword [rdx]
movups xmmword [r8], xmm0
movups xmm1, xmmword [rdx + 0x10]
movups xmmword [r8 + 0x10], xmm1
movups xmm0, xmmword [rdx + 0x20]
movups xmmword [r8 + 0x20], xmm0
movups xmm1, xmmword [rdx + 0x30]
movups xmmword [r8 + 0x30], xmm1
movups xmm0, xmmword [rdx + 0x40]
movups xmmword [r8 + 0x40], xmm0
movups xmm1, xmmword [rdx + 0x50]
movups xmmword [r8 + 0x50], xmm1
movups xmm0, xmmword [rdx + 0x60]
movups xmmword [r8 + 0x60], xmm0
movups xmm1, xmmword [rdx + 0x70]
movups xmmword [r8 + 0x70], xmm1
inc r11d
cmp r11d, dword [r15 + r12 + 0x1c]
jb 0x18012cb57
mov ebx, dword [rsp + 0x38]
inc esi
lea eax, [rbx + rsi]
cmp eax, dword [r15 + r12 + 0xc]
jb 0x18012cb2f
mov ebp, dword [rsp + 0x30]
mov r14, qword [rsp + 0xa8]
mov r13, qword [rsp + 0xa0]
mov r11, qword [rsp + 0xb0]
inc ebp
mov ecx, dword [rsp + 0x3c]
mov dword [rsp + 0x30], ebp
cmp ebp, dword [r14 + 0x7c]
jb 0x18012caa9
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18012ceb8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x68
mov r10d, dword [rcx + 0x1d0]
mov r14, rdx
mov eax, dword [rcx + 0x60]
xor edx, edx
shl r10d, 3
xor esi, esi
div r10d
mov r13, rcx
mov r12, r9
mov ecx, eax
mov dword [rsp + 0x40], eax
mov r11, r8
mov dword [rsp + 0x38], esi
cmp dword [r14 + 0x7c], esi
jbe 0x18012d03d
mov r15, qword [r13 + 0x168]
mov rdx, qword [r11 + rsi*8]
mov rbx, qword [r14 + 0x88]
and dword [rsp + 0x20], 0
mov edi, esi
imul rbp, rdi, 0x68
mov r9d, dword [r15 + rbp + 0xc]
mov r8d, r9d
mov eax, dword [r15 + rbp + 8]
imul r8d, dword [rsp + 0xd0]
imul eax, ecx
mov rcx, r13
mov dword [rsp + 0x30], r8d
mov dword [rsp + 0x3c], eax
call fcn.180007464
mov r9d, dword [rbx + rbp + 0x20]
xor r8d, r8d
mov rdx, qword [r12 + rsi*8]
mov rcx, r14
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x20], 1
call fcn.180007464
xor edi, edi
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x34], edi
cmp dword [r15 + rbp + 0xc], edi
jbe 0x18012d021
mov r13d, dword [rsp + 0x3c]
mov esi, dword [rsp + 0x30]
xor ebx, ebx
cmp dword [r15 + rbp + 0x1c], ebx
jbe 0x18012cff8
lea r12d, [rdi + rsi]
mov r14d, edi
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
shl r12, 7
cmp ebx, r13d
jae 0x18012cfc3
mov eax, r13d
sub eax, ebx
dec eax
jmp 0x18012cfc5
mov eax, ebx
mov rcx, qword [rdi + rax*8]
mov edx, ebx
add rcx, r12
shl rdx, 7
add rdx, qword [rsi + r14*8]
cmp ebx, r13d
jae 0x18012cfe2
call fcn.18012d8dc
jmp 0x18012cfe7
call fcn.18012da40
inc ebx
cmp ebx, dword [r15 + rbp + 0x1c]
jb 0x18012cfb5
mov edi, dword [rsp + 0x34]
mov esi, dword [rsp + 0x30]
inc edi
mov dword [rsp + 0x34], edi
cmp edi, dword [r15 + rbp + 0xc]
jb 0x18012cf97
mov esi, dword [rsp + 0x38]
mov r14, qword [rsp + 0xb8]
mov r13, qword [rsp + 0xb0]
mov r12, qword [rsp + 0xc8]
mov r11, qword [rsp + 0xc0]
inc esi
mov ecx, dword [rsp + 0x40]
mov dword [rsp + 0x38], esi
cmp esi, dword [r14 + 0x7c]
jb 0x18012cf10
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18012db84
Capabilities:
Check for software breakpoints

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [rcx + 0x54]
mov rbx, rcx
cmp eax, 0xca
je 0x18012dbbe
mov dword [rcx], 0x14
mov rdx, rcx
and dword [rcx + 8], 0
and dword [rcx + 0xc], 0
and dword [rcx + 0x10], 0
mov dword [rcx + 4], eax
call fcn.18012e668
mov eax, dword [rbx + 0x54]
cmp eax, 0xca
jne 0x18012dbe7
mov rcx, rbx
call fcn.18012dd88
cmp dword [rbx + 0x88], 0
je 0x18012dbdb
mov dword [rbx + 0x54], 0xcf
jmp 0x18012dcbc
mov dword [rbx + 0x54], 0xcb
mov eax, 0xcb
cmp eax, 0xcb
jne 0x18012dc7d
mov rax, qword [rbx + 0x2b8]
cmp dword [rax + 0x20], 0
je 0x18012dc6f
cmp dword [rbx + 0x8c], 3
je 0x18012dc6f
mov rax, qword [rbx + 0x48]
test rax, rax
je 0x18012dc1d
mov rax, qword [rax]
mov rcx, rbx
call qword [case.0x18000989a.0]
mov rax, qword [rbx + 0x2b8]
mov rcx, rbx
mov rax, qword [rax]
call qword [case.0x18000989a.0]
test eax, eax
je 0x18012dc6b
cmp eax, 2
je 0x18012dc6f
mov rcx, qword [rbx + 0x48]
test rcx, rcx
je 0x18012dc08
cmp eax, 3
je 0x18012dc4c
cmp eax, 1
jne 0x18012dc08
inc dword [rcx + 8]
mov rdx, qword [rbx + 0x48]
mov r8d, dword [rdx + 0xc]
cmp dword [rcx + 8], r8d
jl 0x18012dc08
mov ecx, dword [rbx + 0x1dc]
add ecx, r8d
mov dword [rdx + 0xc], ecx
jmp 0x18012dc08
xor eax, eax
jmp 0x18012dcc7
mov eax, dword [rbx + 0xe4]
mov dword [rbx + 0xec], eax
jmp 0x18012dca1
cmp eax, 0xcc
je 0x18012dca1
mov dword [rbx], 0x14
mov rdx, rbx
and dword [rbx + 8], 0
and dword [rbx + 0xc], 0
and dword [rbx + 0x10], 0
mov dword [rbx + 4], eax
call fcn.18012e668
mov rax, qword [rbx + 0x2a8]
mov rcx, rbx
mov rax, qword [rax + 0x10]
call qword [case.0x18000989a.0]
mov dword [rbx + 0x54], 0xd1
mov rax, qword [rbx + 0x2a8]
mov rax, qword [rax + 0x20]
add rsp, 0x20
pop rbx
ret
Function at 0x18013a760
Capabilities:
Encode data using xor

Disassembly:
test ecx, ecx
je 0x18013a794
mov r10, qword [rsp + 0x28]
sub r8, r9
sub r10, r9
movzx edx, dl
mov r11d, ecx
movzx eax, byte [r8 + r9]
movzx ecx, byte [r9]
add eax, edx
add ecx, eax
xor edx, 1
shr ecx, 1
mov byte [r10 + r9], cl
inc r9
sub r11, 1
jne 0x18013a775
ret

Function at 0x18013a900
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
test ecx, ecx
je 0x18013a96f
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov rdi, qword [rsp + 0x28]
xor r11d, r11d
movzx r10d, dl
mov rsi, r8
inc r10d
mov ebx, ecx
lea ecx, [r11 + r11]
inc r11d
movzx eax, byte [rcx + r9]
lea edx, [rcx + 1]
movzx r8d, byte [rcx + rsi]
movzx ecx, byte [rdx + r9]
add r8d, eax
movzx eax, byte [rdx + rsi]
add eax, r10d
xor r10d, 3
add eax, r8d
add ecx, eax
shr ecx, 2
mov byte [rdi], cl
inc rdi
cmp r11d, ebx
jb 0x18013a927
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
Function at 0x18013efec
Capabilities:
Check if file exists

Disassembly:
mov r11, rsp
push rsi
push rdi
sub rsp, 0x258
mov rax, qword [0x18019bca8]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov qword [r11 + 8], rbx
xor esi, esi
mov qword [r11 - 0x18], r14
mov ebx, 0x104
mov r14, r8
mov qword [r8], rsi
mov r8, rcx
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.18002f10c
mov ecx, ebx
lea rax, [rsp + 0x30]
cmp word [rax], si
je 0x18013f044
add rax, 2
sub rcx, 1
jne 0x18013f035
mov rax, rbx
mov r8, rsi
sub rax, rcx
test rcx, rcx
cmovne r8, rax
je 0x18013f0aa
mov rcx, rbx
lea rdx, [rsp + 0x30]
lea rdx, [rdx + r8*2]
sub rcx, r8
je 0x18013f09c
lea rax, [r8 + 0x7ffffefa]
add rax, rcx
lea r8, [0x1801823c8]
sub r8, rdx
test rax, rax
je 0x18013f09c
movzx r9d, word [r8 + rdx]
test r9w, r9w
je 0x18013f09c
mov word [rdx], r9w
dec rax
add rdx, 2
sub rcx, 1
jne 0x18013f07b
test rcx, rcx
lea rax, [rdx - 2]
cmovne rax, rdx
mov word [rax], si
lea r8, [rsp + 0x30]
mov qword [rsp + 0x278], rbp
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
mov rdi, rax
test rax, rax
jne 0x18013f0fb
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 2
je 0x18013f231
mov rcx, qword [rsp + 0x268]
lea r8, [0x18016d054]
mov edx, 0xc8
call fcn.18013ecac
mov esi, eax
jmp 0x18013f231
lea rdx, [rsp + 0x24]
mov dword [rsp + 0x24], esi
mov rcx, rdi
mov dword [rsp + 0x20], esi
call fcn.18013e2c8
mov ebp, eax
test eax, eax
jns 0x18013f132
mov rcx, qword [rsp + 0x268]
mov r9d, eax
mov edx, 0xce
call fcn.18013eccc
mov esi, ebp
jmp 0x18013f231
mov rcx, rbx
lea rax, [rsp + 0x30]
cmp word [rax], si
je 0x18013f149
add rax, 2
sub rcx, 1
jne 0x18013f13a
mov rax, rbx
mov r8, rsi
sub rax, rcx
test rcx, rcx
cmovne r8, rax
je 0x18013f1aa
lea rdx, [rsp + 0x30]
lea rdx, [rdx + r8*2]
sub rbx, r8
je 0x18013f19c
lea rax, [r8 + 0x7ffffefa]
add rax, rbx
lea r8, [0x1801823d0]
sub r8, rdx
test rax, rax
je 0x18013f19c
movzx ecx, word [r8 + rdx]
test cx, cx
je 0x18013f19c
mov word [rdx], cx
dec rax
add rdx, 2
sub rbx, 1
jne 0x18013f17d
test rbx, rbx
lea rax, [rdx - 2]
cmovne rax, rdx
mov word [rax], si
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
mov rbx, rax
test rax, rax
jne 0x18013f1e1
mov rcx, qword [rsp + 0x268]
lea r8, [0x18016d054]
mov edx, 0xd4
call fcn.18013ecac
mov ebp, eax
jmp 0x18013f211
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.18013e2c8
mov ebp, eax
test eax, eax
jns 0x18013f215
mov rcx, qword [rsp + 0x268]
mov r9d, eax
mov edx, 0xd6
call fcn.18013eccc
mov rcx, rbx
call fcn.18013d804
mov esi, ebp
jmp 0x18013f231
mov rcx, rbx
call fcn.18013d804
movsxd rcx, dword [rsp + 0x20]
movsxd rax, dword [rsp + 0x24]
shl rcx, 0x1f
or rax, rcx
mov qword [r14], rax
mov r14, qword [rsp + 0x250]
mov rbp, qword [rsp + 0x278]
mov rbx, qword [rsp + 0x270]
test rdi, rdi
je 0x18013f256
mov rcx, rdi
call fcn.18013d804
mov eax, esi
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.18008b970
add rsp, 0x258
pop rdi
pop rsi
ret
Function at 0x180140160
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov edi, dword [rcx + 0x44]
mov rbx, rcx
mov r9d, dword [rcx + 0x9c]
xor r14d, r14d
mov edx, dword [rbx + 0x94]
mov esi, dword [rbx + 0x58]
mov ecx, dword [rbx + 0x44]
sub esi, edx
add ecx, 0xfffffefa
sub esi, r9d
add ecx, edi
cmp edx, ecx
jb 0x18014021b
mov rcx, qword [rbx + 0x50]
mov r8, rdi
lea rdx, [rcx + rdi]
call sub.msvcrt.dll_memcpy
mov r8d, dword [rbx + 0x74]
mov rax, qword [rbx + 0x68]
sub dword [rbx + 0x98], edi
sub dword [rbx + 0x94], edi
sub dword [rbx + 0x84], edi
lea rdx, [rax + r8*2]
lea rdx, [rdx - 2]
movzx ecx, word [rdx]
movzx eax, cx
sub ax, di
cmp ecx, edi
cmovb ax, r14w
mov word [rdx], ax
add r8d, 0xffffffff
jne 0x1801401d4
mov rax, qword [rbx + 0x60]
mov r8d, edi
lea rdx, [rax + rdi*2]
lea rdx, [rdx - 2]
movzx ecx, word [rdx]
movzx eax, cx
sub ax, di
cmp ecx, edi
cmovb ax, r14w
mov word [rdx], ax
add r8d, 0xffffffff
jne 0x1801401fc
add esi, edi
mov rcx, qword [rbx]
cmp dword [rcx + 8], r14d
je 0x180140295
mov edx, dword [rbx + 0x9c]
mov r8d, esi
mov eax, dword [rbx + 0x94]
add rdx, rax
add rdx, qword [rbx + 0x50]
call fcn.18014062c
add dword [rbx + 0x9c], eax
mov r9d, dword [rbx + 0x9c]
cmp r9d, 3
jb 0x18014027f
mov eax, dword [rbx + 0x94]
mov rdx, qword [rbx + 0x50]
mov ecx, dword [rbx + 0x80]
movzx r8d, byte [rax + rdx]
mov dword [rbx + 0x70], r8d
shl r8d, cl
inc eax
movzx eax, byte [rax + rdx]
xor r8d, eax
and r8d, dword [rbx + 0x7c]
mov dword [rbx + 0x70], r8d
cmp r9d, 0x106
jae 0x180140295
mov rax, qword [rbx]
cmp dword [rax + 8], r14d
jne 0x180140189
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 0x180143650
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
mov r10d, dword [r8]
mov rsi, r8
lea r14, [0x180000000]
not r10d
mov r11d, edx
mov rbx, rcx
cmp edx, 0xf
jl 0x18014375d
mov r9d, ecx
and r9d, 7
je 0x1801436b8
neg r9d
and r9d, 7
sub r11d, r9d
movzx ecx, byte [rbx]
mov eax, r10d
xor rcx, rax
inc rbx
shr eax, 8
movzx edx, cl
mov r10d, dword [r14 + rdx*4 + 0x177400]
xor r10d, eax
sub r9d, 1
jne 0x180143695
mov edi, r11d
sar edi, 3
and r11d, 7
mov r8, qword [rbx]
mov r9d, dword [rbx]
add rbx, 8
mov eax, r10d
xor r9, rax
shr r8, 0x20
mov rax, r8
shr rax, 0x10
movzx edx, al
mov rax, r8
shr rax, 8
movzx ecx, al
mov rax, r9
shr rax, 0x10
mov r10d, dword [r14 + rdx*4 + 0x177800]
xor r10d, dword [r14 + rcx*4 + 0x178000]
movzx ecx, al
mov rax, r9
shr rax, 8
xor r10d, dword [r14 + rcx*4 + 0x178c00]
movzx ecx, al
mov rax, r8
shr rax, 0x18
xor r10d, dword [r14 + rcx*4 + 0x178800]
xor r10d, dword [r14 + rax*4 + 0x177400]
mov rax, r9
shr rax, 0x18
xor r10d, dword [r14 + rax*4 + 0x177000]
movzx eax, r8b
xor r10d, dword [r14 + rax*4 + 0x178400]
movzx eax, r9b
xor r10d, dword [r14 + rax*4 + 0x177c00]
sub edi, 1
jne 0x1801436c2
test r11d, r11d
je 0x180143785
movzx ecx, byte [rbx]
mov eax, r10d
xor rcx, rax
inc rbx
shr eax, 8
movzx edx, cl
mov r10d, dword [r14 + rdx*4 + 0x177400]
xor r10d, eax
sub r11d, 1
jne 0x180143762
mov rbx, qword [rsp + 8]
not r10d
mov rdi, qword [rsp + 0x18]
mov r14, qword [rsp + 0x20]
mov dword [rsi], r10d
mov rsi, qword [rsp + 0x10]
ret

Function at 0x180144e48
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov dword [rsp + 0x18], r8d
push rsi
push rdi
push r14
sub rsp, 0x20
mov rdi, r9
mov rbp, rdx
mov rbx, rcx
call fcn.180146324
mov eax, dword [rbx + 4]
lea r8, [rsp + 0x50]
mov rsi, qword [rbx + 0x28]
add eax, 7
and dword [rsp + 0x50], 0
mov ecx, 8
cdq
idiv ecx
mov edx, dword [rsp + 0x60]
mov ecx, eax
call fcn.1801462d8
test eax, eax
js 0x180144f06
cmp dword [rsp + 0x50], 0
jne 0x180144f06
mov r9d, dword [rbx + 4]
mov r8, rdi
mov edx, dword [rbx + 0x30]
mov rcx, rsi
call fcn.18014545c
and dword [rbx + 0xc], 0
mov ecx, eax
mov qword [rbx + 0x18], rbp
test eax, eax
js 0x180144f06
cmp ecx, dword [rbx + 0x30]
ja 0x180144f06
xor edx, edx
mov edi, 1
mov rax, rbp
test ecx, ecx
jle 0x180144ef7
mov r14d, ecx
movzx edx, word [rsi]
mov r8d, edi
mov rcx, rbx
call fcn.180145b54
xor edi, 1
lea rsi, [rsi + 2]
sub r14, 1
jne 0x180144ed5
mov edx, dword [rbx + 0xc]
mov rax, qword [rbx + 0x18]
test edx, edx
je 0x180144f02
inc rax
mov qword [rbx + 0x18], rax
sub eax, ebp
jmp 0x180144f09
or eax, 0xffffffff
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x180144f24
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov r14, r9
mov ebx, r8d
mov rsi, rdx
mov rdi, rcx
call fcn.180146324
mov r15, qword [rdi + 0x28]
mov qword [rdi + 0x18], rsi
mov dword [rdi + 0x20], ebx
test ebx, ebx
je 0x180145062
cmp dword [rdi + 0xc], 0
je 0x180144f6c
mov al, byte [rdi + 0x24]
mov byte [rsi], al
mov ebx, 0xc
test r14, r14
jne 0x180144fad
mov r8d, ebx
lea edx, [rbx + 4]
mov rcx, rdi
call fcn.18014638c
mov r8d, ebx
lea edx, [rbx + 4]
mov rcx, rdi
call fcn.18014638c
mov rax, qword [rdi + 0x18]
cmp dword [rdi + 0xc], r14d
je 0x180144fa6
inc rax
dec dword [rdi + 0x20]
mov qword [rdi + 0x18], rax
sub eax, esi
jmp 0x180145065
cmp byte [rdi + 0x10], 0
je 0x180144fc7
mov r8d, ebx
mov byte [rdi + 0x10], 0
mov edx, 0x10
mov rcx, rdi
call fcn.18014638c
mov eax, dword [rdi + 4]
lea r8, [rsp + 0x50]
and dword [rsp + 0x50], 0
add eax, 7
mov ecx, 8
cdq
idiv ecx
mov edx, dword [rsp + 0x60]
mov ecx, eax
call fcn.1801462d8
test eax, eax
js 0x180145062
cmp dword [rsp + 0x50], 0
jne 0x180145062
mov r9d, dword [rdi + 4]
mov r8, r14
mov edx, dword [rdi + 0x30]
mov rcx, r15
call fcn.18014545c
test eax, eax
js 0x180145062
cmp eax, dword [rdi + 0x30]
ja 0x180145062
mov r14d, 1
test eax, eax
jle 0x18014503a
mov r12d, eax
movzx edx, word [r15]
mov r8d, r14d
mov rcx, rdi
call fcn.180145b54
xor r14d, 1
lea r15, [r15 + 2]
sub r12, 1
jne 0x18014501d
mov r8d, ebx
mov edx, 0x10
mov rcx, rdi
call fcn.18014638c
cmp dword [rdi + 0xc], 0
mov rax, qword [rdi + 0x18]
je 0x180144fa6
mov cl, byte [rax]
mov byte [rdi + 0x24], cl
jmp 0x180144fa6
or eax, 0xffffffff
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x180145c40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
movzx eax, word [rcx + 4]
mov rbx, rcx
xor ecx, ecx
mov word [rsp + 0x48], ax
mov ebp, r9d
movzx esi, cx
movzx r13d, cx
mov r11d, dword [rbx + 0x20]
mov r10, qword [rbx + 0x18]
test r11d, r11d
je 0x180145da2
movzx edi, byte [r10]
lea r8d, [rcx + 8]
mov r9d, r8d
sub r9d, dword [rbx + 0xc]
cmp cx, ax
jae 0x180145d7d
lea edx, [rcx + 1]
mov r12d, edx
mov r15d, ecx
lea rax, [0x1801621a0]
mov r14, qword [rax + r12*8]
cmp r9d, r8d
jge 0x180145ce1
test r11d, r11d
je 0x180145da2
cmp r11d, edx
jne 0x180145ccf
test ebp, ebp
jne 0x180145ccf
shl edi, 8
add r10, rdx
jmp 0x180145cdb
add r10, rdx
shl edi, 8
movzx eax, byte [r10]
or edi, eax
dec r11d
add r9d, r8d
lea ecx, [r9 + 0xf8]
mov edx, edi
shr rdx, cl
movzx eax, dl
movsx ebp, byte [r14 + rax*2]
movsx eax, byte [r14 + rax*2 + 1]
mov ecx, ebp
sub r9d, eax
movzx edx, bp
test bpl, bpl
jns 0x180145d25
cmp ecx, 0xffffffbf
jle 0x180145da2
mov ebp, dword [rsp + 0x60]
neg ecx
shl ecx, 8
mov edx, 1
lea r14, [r14 + rcx*2]
jmp 0x180145cb0
cmp bpl, 0x3f
jle 0x180145d42
mov ebp, dword [rsp + 0x60]
lea eax, [rcx - 0x3f]
shl eax, 6
mov edx, 1
add r15d, eax
jmp 0x180145ca5
movzx eax, si
cmp eax, dword [rsp + 0x58]
jae 0x180145da2
mov rcx, qword [rsp + 0x50]
add dx, r15w
mov ebp, dword [rsp + 0x60]
add r13w, dx
movzx eax, si
mov word [rcx + rax*2], dx
mov edx, 1
add si, dx
xor r12, rdx
lea ecx, [rdx - 1]
cmp r13w, word [rsp + 0x48]
jb 0x180145ca2
cmp r9d, r8d
jle 0x180145d8e
inc r11d
mov r8d, 0x10
dec r10
sub r8d, r9d
movzx eax, si
mov dword [rbx + 0xc], r8d
mov qword [rbx + 0x18], r10
mov dword [rbx + 0x20], r11d
jmp 0x180145da5
or eax, 0xffffffff
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret