joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18005da30
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x1800d7030]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor r15d, r15d
mov r14d, edx
xor edx, edx
mov qword [rcx], r15
mov rbx, rcx
mov qword [rcx + 8], r15
mov ebp, r8d
mov edi, r15d
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x18005dbd9
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x18005db76
lea edi, [r15 + 1]
nop
cmp dword [rsp + 0x20], 0x10
jb 0x18005db30
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x18005db30
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x18005db30
mov rdx, qword [rbx]
test rdx, rdx
jne 0x18005daf2
mov rcx, qword [0x1801f3f50]
mov r8d, 0x200
mov dword [rbx + 8], 0x80
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x18005db59
jmp 0x18005db23
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x18005db23
mov rcx, qword [0x1801f3f50]
add eax, eax
mov r9d, eax
mov r8, rdx
shl r9, 2
xor edx, edx
mov dword [rbx + 8], eax
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x18005db59
mov qword [rbx], rax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x18005daa0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x18005db76
mov r8, qword [rbx]
mov edi, r15d
test r8, r8
je 0x18005db76
mov rcx, qword [0x1801f3f50]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rbx], r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x18005dbd9
cmp qword [rbx], r15
je 0x18005dbd4
mov edi, r15d
cmp dword [rbx + 0xc], r15d
jbe 0x18005dbd4
mov rax, qword [rbx]
xor edx, edx
mov ecx, edi
mov r8d, dword [rax + rcx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18005dbcd
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rsi
call fcn.18005d880
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x18005db91
mov eax, r15d
jmp 0x18005dbde
mov eax, 9
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180096080
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x18005dc00
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x1800d7030]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, ecx
lea r9, [rsp + 0x20]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x180229fa0]
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18005dc73
mov eax, 0xa
jmp 0x18005dd02
test esi, esi
je 0x18005dc95
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x18005dcb8
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x18005dcb8
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x18005dcb1
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x18005dcb8
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
and byte [rbx + 0x20], 0xfd
and sil, 1
movzx eax, sil
shl sil, 2
add al, al
or al, byte [rbx + 0x20]
and al, 0xfb
or al, sil
mov byte [rbx + 0x20], al
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180096080
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x18005dd30
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x30
mov r8d, dword [0x180229fac]
mov esi, ecx
xor ecx, ecx
mov ebx, ecx
test r8d, r8d
je 0x18005dd77
mov rax, qword [0x180229fa0]
add rax, 0x20
nop word [rax + rax]
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x18005dd84
inc ebx
add rax, 0x38
cmp ebx, r8d
jb 0x18005dd60
mov eax, ecx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
cmp ebx, 0xffffffff
je 0x18005dd77
test esi, esi
mov qword [rsp + 0x48], rdi
mov edx, 0xffffffff
setne cl
mov r8d, ecx
lea rcx, [rsp + 0x20]
call fcn.18005da30
mov edi, eax
test eax, eax
jne 0x18005de6d
mov r9d, dword [0x180229fac]
cmp ebx, r9d
jae 0x18005ddfc
nop dword [rax + rax]
mov ecx, ebx
imul rdx, rcx, 0x38
mov rcx, qword [0x180229fa0]
movzx r8d, byte [rdx + rcx + 0x20]
shr r8d, 1
and r8d, 1
cmp r8d, esi
je 0x18005ddf5
mov edx, esi
mov ecx, ebx
call fcn.18005dc00
mov edi, eax
test eax, eax
jne 0x18005ddfc
mov r9d, dword [0x180229fac]
inc ebx
cmp ebx, r9d
jb 0x18005ddc0
cmp qword [rsp + 0x20], 0
je 0x18005de6b
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x18005de57
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18005de48
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x18005de20
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1801f3f50]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
Function at 0x18005e160
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
push r14
push r15
sub rsp, 0x30
xor r15d, r15d
mov edi, 1
mov r14d, r15d
mov ebx, r15d
xor eax, eax
lock cmpxchg dword [0x1801f3f48], edi
je 0x18005e1a9
cmp rbx, 0x20
jae 0x18005e192
xor ecx, ecx
jmp 0x18005e194
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x1801f3f48], edi
jne 0x18005e188
cmp qword [0x1801f3f50], r14
mov qword [rsp + 0x60], r13
je 0x18005e34b
mov ecx, dword [0x180229fac]
mov ebx, r15d
test ecx, ecx
je 0x18005e1e1
mov rdx, qword [0x180229fa0]
mov rax, rdx
cmp qword [rax], r14
je 0x18005e1ec
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x18005e1d2
mov r14d, 4
jmp 0x18005e351
cmp ebx, 0xffffffff
je 0x18005e1e1
mov eax, ebx
imul r13, rax, 0x38
test byte [rdx + r13 + 0x20], 2
je 0x18005e2b0
xor r8d, r8d
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.18005da30
mov r14d, eax
test eax, eax
jne 0x18005e351
xor edx, edx
mov ecx, ebx
call fcn.18005dc00
mov r14d, eax
cmp qword [rsp + 0x20], r15
je 0x18005e2a0
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x18005e28c
mov rdi, qword [rsp + 0x20]
mov qword [rsp + 0x50], rbp
mov ebp, eax
mov qword [rsp + 0x58], rsi
nop dword [rax]
mov r8d, dword [rdi]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18005e278
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rdi, 4
sub rbp, 1
jne 0x18005e250
mov rsi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x50]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1801f3f50]
call qword [sym.imp.KERNEL32.dll_HeapFree]
test r14d, r14d
jne 0x18005e351
mov rdx, qword [0x180229fa0]
mov rcx, qword [rdx + r13 + 0x10]
call fcn.18005d040
mov edx, dword [0x180229fac]
dec edx
cmp ebx, edx
jae 0x18005e2ff
mov eax, edx
imul rcx, rax, 0x38
mov rax, qword [0x180229fa0]
movups xmm0, xmmword [rcx + rax]
movups xmmword [rax + r13], xmm0
movups xmm1, xmmword [rcx + rax + 0x10]
movups xmmword [rax + r13 + 0x10], xmm1
movups xmm0, xmmword [rcx + rax + 0x20]
movups xmmword [rax + r13 + 0x20], xmm0
movsd xmm1, qword [rcx + rax + 0x30]
movsd qword [rax + r13 + 0x30], xmm1
mov ecx, dword [0x180229fa8]
mov eax, ecx
mov dword [0x180229fac], edx
shr eax, 1
cmp eax, 0x20
jb 0x18005e351
cmp eax, edx
jb 0x18005e351
mov r8, qword [0x180229fa0]
mov eax, ecx
mov rcx, qword [0x1801f3f50]
xor edx, edx
shr rax, 1
imul r9, rax, 0x38
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
test rax, rax
je 0x18005e351
shr dword [0x180229fa8], 1
mov qword [0x180229fa0], rax
jmp 0x18005e351
mov r14d, 2
xchg dword [0x1801f3f48], r15d
mov r13, qword [rsp + 0x60]
mov eax, r14d
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x180060ff0
Capabilities:
Enumerate processes

Disassembly:
push rbx
sub rsp, 0x160
mov rax, qword [0x1800d7030]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor edx, edx
mov dword [rsp + 0x20], 0x130
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x180061081
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x180061081
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
je 0x180061078
nop
lea rdx, [rsp + 0x4c]
lea rcx, str.spotify.exe
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x18006109c
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x180061050
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.180096080
add rsp, 0x160
pop rbx
ret
mov eax, dword [rsp + 0x28]
jmp 0x180061083
Function at 0x180063240
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r10, rcx
mov r9d, 0x138
mov ecx, dword [rcx]
cmp ecx, r9d
jne 0x1800632b2
lea r8, [r10 + 0x10]
movabs r11, 0xb5026f5aa96619e9
nop dword [rax]
nop word [rax + rax]
mov edx, dword [r8 - 8]
xor edx, dword [r8]
lea r8, [r8 + 8]
btr edx, 0x1f
xor rdx, qword [r8 - 0x10]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [r8 + 0x4d0]
xor rcx, rdx
mov qword [r8 + 0x9b0], rcx
sub r9, 1
jne 0x180063270
mov ecx, dword [r10]
jmp 0x1800633b3
cmp ecx, 0x270
jb 0x1800633b3
mov qword [rsp + 0x10], rbx
movabs r11, 0xb5026f5aa96619e9
lea rbx, [r10 + 0x9c8]
mov qword [rsp], rdi
mov rax, qword [rbx]
mov edi, 0x9c
mov rdx, qword [rbx + 8]
lea r8, [rbx + 8]
xor rdx, rax
btr edx, 0x1f
xor rdx, rax
movzx eax, dl
and al, 1
neg al
mov rax, qword [r8]
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [rbx + 0x4e0]
xor rcx, rdx
mov qword [rbx - 0x9c0], rcx
lea rbx, [r8]
sub rdi, 1
jne 0x1800632e0
lea rbx, [r10 + 0xea8]
mov edi, reloc.SHELL32.dll_ILFree
mov rax, qword [rbx]
nop
mov rdx, rax
lea r8, [rbx + 8]
xor rdx, qword [r8]
btr edx, 0x1f
xor rdx, rax
movzx eax, dl
and al, 1
neg al
mov rax, qword [r8]
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [rbx - 0xea0]
xor rcx, rdx
mov qword [rbx - 0x9c0], rcx
lea rbx, [r8]
sub rdi, 1
jne 0x180063330
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 8]
mov rdi, qword [rsp]
btr edx, 0x1f
xor rdx, qword [r10 + 0x1380]
mov rbx, qword [rsp + 0x10]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [r10 + 0x4e0]
xor rcx, rdx
mov qword [r10 + 0x9c0], rcx
xor ecx, ecx
mov dword [r10], ecx
mov eax, ecx
mov rdx, qword [r10 + rax*8 + 8]
lea eax, [rcx + 1]
mov dword [r10], eax
mov rcx, rdx
mov rax, qword [r10 + 0x1388]
shr rcx, 0x1d
and rax, rcx
movabs rcx, 0x38eb3ffff6d3
xor rdx, rax
mov rax, rdx
and rax, rcx
shl rax, 0x11
xor rdx, rax
mov rax, rdx
and rax, 0xffffffffffffbf77
shl rax, 0x25
xor rdx, rax
mov rax, rdx
shr rax, 0x2b
xor rax, rdx
add rsp, 8
ret
Function at 0x180066810
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1800d7030]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [0x1802259c8]
mov rbx, r8
lea rsi, [rdi + 0x164]
lea rcx, [rdi + 0x16c]
mov dword [rsi], 1
call sub.VCRUNTIME140.dll_memcpy
mov dword [rdi + 0x168], ebx
add rbx, 8
je 0x1800668e7
mov rax, qword [rdi]
test rax, rax
je 0x1800668a5
mov rcx, qword [rax + 8]
cmp rcx, 0xffffffffffffffff
je 0x1800668a5
test rsi, rsi
je 0x1800668a5
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], 0
mov r8d, ebx
mov qword [rsp + 0x20], 0
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x1800668a5
cmp dword [rsp + 0x30], ebx
je 0x1800668e7
mov r8, qword [rdi + 0x18]
test r8, r8
je 0x1800668c4
mov eax, dword [rdi + 8]
dec eax
test eax, 0xfffffffd
jne 0x1800668c4
mov ecx, dword [rdi + 0x60]
lea rdx, [rdi + 0x64]
call r8
mov rbx, qword [rdi]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 8], 0xffffffffffffffff
xor al, al
mov byte [rbx], 0
mov dword [rdi + 8], 0
jmp 0x1800668e9
mov al, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180096080
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x18006dd80
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x110
mov rax, qword [0x1800d7030]
xor rax, rsp
mov qword [rsp + 0x100], rax
mov r14, rdx
mov rbx, rcx
lea rdx, [rsp + 0x20]
call fcn.18006d1d0
mov r9, rax
test rax, rax
je 0x18006ddd9
mov r8, qword [rsp + 0x20]
mov al, 3
sub r9, rbx
mov qword [r14], r8
mov byte [r14 + 8], al
lea rax, [r9 + 1]
jmp 0x18006df5a
lea rdx, [0x18009b450]
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strpbrk
test rax, rax
je 0x18006de10
movzx edi, byte [rax]
or edi, 0x20
cmp edi, 0x6e
je 0x18006df58
cmp edi, 0x78
jne 0x18006de12
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.18006e0c0
jmp 0x18006de1f
xor edi, edi
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtod
mov rcx, qword [rsp + 0x20]
lea rbp, [0x18009e010]
cmp rcx, rbx
je 0x18006de65
movzx eax, byte [rcx]
test byte [rax + rbp + 1], 8
je 0x18006de52
nop word [rax + rax]
inc rcx
mov qword [rsp + 0x20], rcx
movzx eax, byte [rcx]
test byte [rax + rbp + 1], 8
jne 0x18006de40
xor r9d, r9d
cmp byte [rcx], r9b
cmove r9, rcx
test r9, r9
jne 0x18006df44
mov edx, 0x2e
mov rcx, rbx
call sub.VCRUNTIME140.dll_strchr
mov rsi, rax
test rax, rax
je 0x18006df58
mov rcx, 0xffffffffffffffff
inc rcx
cmp byte [rbx + rcx], 0
jne 0x18006de85
cmp rcx, 0xc8
ja 0x18006df58
lea rdx, [rsp + 0x30]
mov rcx, rbx
sub rdx, rbx
nop word [rax + rax]
movzx eax, byte [rcx]
mov byte [rdx + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x18006deb0
call sub.api_ms_win_crt_locale_l1_1_0.dll_localeconv
sub rsi, rbx
lea rdx, [rsp + 0x20]
mov rcx, qword [rax]
movzx eax, byte [rcx]
lea rcx, [rsp + 0x30]
mov byte [rsp + rsi + 0x30], al
cmp edi, 0x78
jne 0x18006dee6
call fcn.18006e0c0
jmp 0x18006deeb
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtod
mov rcx, qword [rsp + 0x20]
lea rax, [rsp + 0x30]
cmp rcx, rax
je 0x18006df58
movzx eax, byte [rcx]
test byte [rax + rbp + 1], 8
je 0x18006df22
nop dword [rax]
nop dword [rax + rax]
inc rcx
mov qword [rsp + 0x20], rcx
movzx eax, byte [rcx]
test byte [rax + rbp + 1], 8
jne 0x18006df10
xor r9d, r9d
cmp byte [rcx], r9b
cmove r9, rcx
test r9, r9
je 0x18006df58
lea rcx, [rsp + 0x30]
mov rax, rbx
sub rax, rcx
add r9, rax
test r9, r9
je 0x18006df58
mov al, 0x13
movsd qword [r14], xmm0
sub r9, rbx
mov byte [r14 + 8], al
lea rax, [r9 + 1]
jmp 0x18006df5a
xor eax, eax
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.180096080
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x18006e0c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r15
sub rsp, 0x20
mov qword [rsp + 0x40], rbx
mov r15, rdx
mov rbx, rcx
call sub.api_ms_win_crt_locale_l1_1_0.dll_localeconv
xor edi, edi
lea r12, [0x18009e010]
xorps xmm1, xmm1
mov r10d, edi
mov esi, edi
mov r9d, edi
mov r8, qword [rax]
mov r11d, edi
movsx ebp, byte [r8]
mov qword [r15], rbx
movzx eax, byte [rbx]
test byte [rax + r12 + 1], 8
je 0x18006e11f
nop
movzx eax, byte [rbx + 1]
inc rbx
test byte [rax + r12 + 1], 8
jne 0x18006e110
mov qword [rsp + 0x48], r14
lea rdx, [rbx + 1]
cmp al, 0x2d
jne 0x18006e134
mov r14d, 1
jmp 0x18006e13d
cmp al, 0x2b
mov r14d, edi
cmovne rdx, rbx
cmp byte [rdx], 0x30
mov rbx, qword [rsp + 0x40]
jne 0x18006e278
movzx eax, byte [rdx + 1]
sub al, 0x58
test al, 0xdf
jne 0x18006e278
movsd xmm2, qword [0x18009b4c8]
add rdx, 2
nop word [rax + rax]
movzx r8d, byte [rdx]
movsx rcx, r8b
cmp ecx, ebp
jne 0x18006e18c
test r11d, r11d
jne 0x18006e1e1
mov r11d, 1
inc rdx
jmp 0x18006e170
test byte [r8 + r12 + 1], 0x10
je 0x18006e1e1
test r10d, r10d
jne 0x18006e1a3
cmp r8b, 0x30
jne 0x18006e1a3
inc esi
jmp 0x18006e1d4
inc r10d
cmp r10d, 0x1e
jg 0x18006e1d1
test byte [rcx + r12 + 1], 2
je 0x18006e1b9
add ecx, 0xffffffd0
jmp 0x18006e1bf
or ecx, 0x20
sub ecx, 0x57
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
mulsd xmm1, xmm2
addsd xmm1, xmm0
jmp 0x18006e1d4
inc r9d
test r11d, r11d
je 0x18006e1dc
dec r9d
inc rdx
jmp 0x18006e170
lea eax, [rsi + r10]
test eax, eax
je 0x18006e278
mov qword [r15], rdx
lea r9d, [r9*4]
movzx eax, byte [rdx]
sub al, 0x50
test al, 0xdf
jne 0x18006e25f
movzx r10d, byte [rdx + 1]
cmp r10b, 0x2d
jne 0x18006e213
mov eax, 2
jmp 0x18006e220
cmp r10b, 0x2b
mov rax, rdi
sete al
inc rax
lea r8, [rax + rdx]
movzx edx, byte [rax + rdx]
test byte [rdx + r12 + 1], 2
je 0x18006e278
movsx eax, dl
lea edi, [rdi + rdi*4]
inc r8
lea edi, [rdi - 0x18]
lea edi, [rax + rdi*2]
movzx eax, byte [r8]
movzx edx, al
test byte [rax + r12 + 1], 2
jne 0x18006e230
mov eax, edi
mov qword [r15], r8
neg eax
cmp r10b, 0x2d
cmovne eax, edi
add r9d, eax
test r14d, r14d
je 0x18006e26b
xorps xmm1, xmmword [0x1800c6970]
mov edx, r9d
movaps xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll_ldexp
jmp 0x18006e27b
xorps xmm0, xmm0
mov r14, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r12
pop rdi
ret
Function at 0x1800740a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp rdx, r8
je 0x1800741b7
push rbx
sub rsp, 0x20
mov qword [rsp + 0x30], rdi
mov r11, r8
lea rdi, [0x180000000]
mov r10, rdx
mov rbx, rcx
movzx edx, byte [r10 + 9]
movzx eax, dl
and al, 7
cmp al, 3
jne case.0x18007410a.8
xor dl, 7
mov byte [r10 + 9], dl
test dl, 0x20
je case.0x18007410a.8
movzx eax, byte [r10 + 8]
add eax, 0xfffffffc
cmp eax, 0x22
ja case.0x18007410a.8
cdqe
movzx eax, byte [rdi + rax + 0x741cc]
mov ecx, dword [rdi + rax*4 + 0x741b8]
add rcx, rdi
jmp rcx
and dl, 0xe7
or dl, 0x20
mov byte [r10 + 9], dl
jmp case.0x18007410a.8
mov rcx, qword [r10 + 0x10]
lea rax, [r10 + 0x18]
cmp rcx, rax
je 0x18007412d
and dl, 0xc7
jmp 0x180074133
and dl, 0xe7
or dl, 0x20
mov byte [r10 + 9], dl
test byte [rcx + 8], 0x40
je case.0x18007410a.8
mov rdx, qword [rcx]
test byte [rdx + 9], 0x18
je case.0x18007410a.8
mov rcx, rbx
call fcn.180074850
jmp case.0x18007410a.8
cmp word [r10 + 0xa], 0
jne case.0x18007410a.5
mov rax, qword [r10 + 0x18]
test rax, rax
je 0x180074177
test byte [rax + 9], 0x18
je 0x180074177
mov rdx, rax
mov rcx, rbx
call fcn.180074850
movzx edx, byte [r10 + 9]
and dl, 0xe7
or dl, 0x20
mov byte [r10 + 9], dl
jmp case.0x18007410a.8
mov rcx, r10
call fcn.180073560
mov rcx, qword [rbx + 0x88]
mov qword [rax], rcx
mov qword [rbx + 0x88], r10
and byte [r10 + 9], 0xc7
mov r10, qword [r10]
cmp r10, r11
jne 0x1800740c3
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
Function at 0x180075740
Capabilities:
Encrypt data using rc4 prga

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
sub rsp, 0x20
mov rdi, rcx
xor ebp, ebp
mov rcx, rdx
mov esi, ebp
mov r15d, ebp
mov r12d, r8d
mov rbx, rdx
call fcn.180077310
movzx ecx, byte [rbx + 0xb]
mov r14d, 1
shl r14d, cl
test eax, eax
je 0x1800757bd
mov r10d, ebp
mov r11d, eax
nop dword [rax]
mov rax, qword [rbx + 0x10]
test byte [r10 + rax + 8], 0x40
je 0x1800757b3
mov rdx, qword [r10 + rax]
test byte [rdx + 9], 0x18
je 0x1800757b3
mov rcx, rdi
mov esi, 1
call fcn.180074850
add r10, 0x10
sub r11, 1
jne 0x180075790
mov r11d, ebp
test r14d, r14d
je 0x180075862
nop dword [rax]
mov rdx, qword [rbx + 0x18]
mov ecx, r14d
sub ecx, r11d
mov eax, r11d
dec ecx
test r12d, r12d
cmovne eax, ecx
lea rcx, [rax + rax*2]
movzx eax, byte [rdx + rcx*8 + 8]
lea r10, [rdx + rcx*8]
movzx ecx, byte [rdx + rcx*8 + 9]
and cl, 0x40
test al, 0xf
jne 0x180075809
test cl, cl
je 0x180075856
mov byte [r10 + 9], 0xb
jmp 0x180075856
test cl, cl
je 0x18007583a
mov rdx, qword [r10 + 0x10]
test rdx, rdx
je 0x18007583a
movzx ecx, byte [rdx + 8]
movzx r8d, byte [rdx + 9]
and cl, 0xf
cmp cl, 4
jne 0x180075883
test r8b, 0x18
je 0x18007583a
mov rcx, rdi
call fcn.180074850
movzx eax, byte [r10 + 8]
and al, 0x40
test al, al
je 0x180075856
mov rdx, qword [r10]
test byte [rdx + 9], 0x18
je 0x180075856
mov rcx, rdi
mov esi, 1
call fcn.180074850
inc r11d
cmp r11d, r14d
jb 0x1800757d0
cmp byte [rdi + 0x65], 0
jne 0x1800758a4
mov rcx, qword [rdi + 0x90]
mov qword [rbx + 0x30], rcx
mov qword [rdi + 0x90], rbx
and byte [rbx + 9], 0xc7
jmp 0x180075915
mov ecx, r8d
and al, 0x40
and ecx, 0x18
je 0x18007583c
mov ebp, 1
test al, al
je 0x180075856
mov rax, qword [r10]
test byte [rax + 9], 0x18
je 0x180075856
mov r15d, ebp
jmp 0x180075856
test r15d, r15d
je 0x1800758c1
mov rax, qword [rdi + 0xa0]
mov qword [rbx + 0x30], rax
mov qword [rdi + 0xa0], rbx
and byte [rbx + 9], 0xc7
jmp 0x180075915
test ebp, ebp
je 0x1800758dd
mov rax, qword [rdi + 0xa8]
mov qword [rbx + 0x30], rax
mov qword [rdi + 0xa8], rbx
and byte [rbx + 9], 0xc7
jmp 0x180075915
movzx eax, byte [rbx + 9]
movzx ecx, al
and cl, 7
cmp cl, 5
jne 0x18007590b
mov rcx, rbx
call fcn.180073560
mov rcx, qword [rdi + 0x90]
mov qword [rax], rcx
mov qword [rdi + 0x90], rbx
and byte [rbx + 9], 0xc7
jmp 0x180075915
cmp cl, 6
jne 0x180075915
xor al, 2
mov byte [rbx + 9], al
mov rbx, qword [rsp + 0x40]
mov eax, esi
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret