joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401dc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x00450614]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x401f68
mov rax, qword [0x00450618]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x401e0c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x401e97
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x401df0
mov rcx, r12
call fcn.00402b20
mov rbp, rax
test rax, rax
je 0x401fa2
mov rax, qword [0x00450618]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.00402c50
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00450618]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x401fb1
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x401e90
sub eax, 4
and eax, 0xfffffffb
jne 0x401f20
add dword [0x00450614], 1
cmp ebx, 8
jae 0x401ec8
test bl, 4
jne 0x401f70
test ebx, ebx
je 0x401eb9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x401f90
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x401eb9
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x401efa
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rdi, qword [0x00450618]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x401e90
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00401d50
nop dword [rax]
xor edi, edi
jmp 0x401e17
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x401eb9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x401eb9
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.00401d50
mov rax, qword [0x00450618]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.00401d50
nop
nop dword [rax]
Function at 0x402790
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00450900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004508e0]
test rbx, rbx
je 0x4027e4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x4027db
test r12, r12
je 0x4027db
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4027c0
lea rcx, [0x00450900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x402b20
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x0044d3b0]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x402b99
mov rcx, r10
call fcn.004029f0
test eax, eax
je 0x402b99
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x402b96
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x402b8d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x402b99
add r8, 0x28
cmp r8, r9
jne 0x402b78
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret
Function at 0x1400021dc
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x140004650], rbx
je 0x140002228
cmp rax, rbx
jne 0x14000221b
mov ebx, 1
mov esi, ebx
jmp 0x14000222d
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140002200
mov ebx, 1
mov eax, dword [0x140004658]
cmp eax, ebx
jne 0x140002243
mov ecx, 0x1f
call fcn.14012e000
jmp 0x1400022a8
mov eax, dword [0x140004658]
test eax, eax
jne 0x1400022a2
mov dword [0x140004658], ebx
lea r15, [0x1400033b0]
lea rdi, [0x140003398]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140002294
test eax, eax
jne 0x140002298
cmp qword [rdi], 0
je 0x140002289
mov rax, qword [rdi]
mov rcx, qword [0x140003378]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x14000226a
test eax, eax
je 0x1400022a8
mov eax, 0xff
jmp 0x140002384
mov dword [0x140004064], ebx
mov eax, dword [0x140004658]
cmp eax, ebx
jne 0x1400022cf
lea rdx, [0x140003390]
lea rcx, [0x140003380]
call sub.msvcrt.dll__initterm
mov dword [0x140004658], 2
test esi, esi
jne 0x1400022dc
xor eax, eax
xchg qword [0x140004650], rax
cmp qword [0x140004660], 0
je 0x140002310
lea rcx, [0x140004660]
call fcn.140002540
test eax, eax
je 0x140002310
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140004660]
mov r9, qword [0x140003378]
call r9
mov r8, qword [0x140004078]
mov rdx, qword [0x140004070]
mov ecx, dword [0x140004068]
call fcn.140001800
mov dword [0x140004060], eax
cmp dword [0x140004080], 0
jne 0x140002340
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140004064], 0
jne 0x140002355
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140004060]
jmp 0x140002384
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.1400025c0
add rsp, 0x28
jmp 0x1400021dc

Function at 0x140002450
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000249c
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140002494
cmp dword [rcx + 0x3c], edx
jl 0x140002494
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140002494
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14000249c
mov rax, rdx
add rsp, 0x18
ret
Function at 0x141f979e0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x141f979ed
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x141f979fd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x141f979e5
lea eax, [rcx + 1]
jmp 0x141f97a0b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x141f97a1e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x141f97a04
sub eax, 3
jb 0x141f97a3e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x141f97a8d
sar eax, 1
movsxd rbp, eax
jb 0x141f97a74
jmp 0x141f97a4c
add ebx, ebx
jne 0x141f97a4a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x141f97a74
inc ecx
add ebx, ebx
jne 0x141f97a5a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x141f97a74
call r11
adc ecx, ecx
add ebx, ebx
jne 0x141f97a6d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x141f97a5c
add ecx, 2
jmp 0x141f97a79
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.141f979a2
jmp 0x141f979ed
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x17c400
mov dl, 0x2e
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x141f97ad9
cmp rsi, rcx
jae 0x141f97ae1
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x141f97ac0
cmp al, 0x8f
ja 0x141f97ac0
cmp byte [rsi - 2], 0xf
je 0x141f97ac6
sub al, 0xe8
cmp al, 1
ja 0x141f97aaa
cmp rsi, rcx
jae 0x141f97ae1
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x141f97ab0
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x141f97ae1
lodsb al, byte [rsi]
jmp 0x141f97ac0
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x1f93000]
mov eax, dword [rdi]
or eax, eax
je 0x141f97b4a
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x1fabccc]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x141f97aee
jns 0x141f97b23
movzx rdx, word [rdi]
add rdi, 2
jmp 0x141f97b2d
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x141f97b44
mov qword [rbx], rax
add rbx, 8
jmp 0x141f97b0e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x141f97ba2
sub rsp, 0xffffffffffffff80
jmp section.UPX0
Function at 0x369fcb0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x369fcbd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x369fccd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x369fcb5
lea eax, [rcx + 1]
jmp 0x369fcdb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x369fcee
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x369fcd4
sub eax, 3
jb 0x369fd0e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x369fd5d
sar eax, 1
movsxd rbp, eax
jb 0x369fd44
jmp 0x369fd1c
add ebx, ebx
jne 0x369fd1a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x369fd44
inc ecx
add ebx, ebx
jne 0x369fd2a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x369fd44
call r11
adc ecx, ecx
add ebx, ebx
jne 0x369fd3d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x369fd2c
add ecx, 2
jmp 0x369fd49
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.0369fc72
jmp 0x369fcbd
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
sub rsp, 0x28
lea rdi, [rsi + 0x326e000]
mov eax, dword [rdi]
or eax, eax
je 0x369fdbd
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x329f000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x369fd6d
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x369fdb7
mov qword [rbx], rax
add rbx, 8
jmp 0x369fd8d
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x369fe01
cmp al, 0xef
ja 0x369fde9
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x369fdc9
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x369fdd8
mov eax, dword [rdi]
add rdi, 4
jmp 0x369fdd8
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.0369fe80], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.0369fe80
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x369fe70
sub rsp, 0xffffffffffffff80
jmp 0x4014f0
Function at 0x1400024c4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
cmp dword [0x1400d0734], 0
lea rsi, [0x1400d0730]
mov ebx, r8d
mov r10, rcx
jne 0x140002529
xor r9d, r9d
mov r11, rsi
mov r8d, r9d
mov edi, 8
mov ecx, r8d
mov eax, r8d
and ecx, 1
shr eax, 1
neg ecx
and ecx, 0xedb88320
mov r8d, ecx
xor r8d, eax
sub rdi, 1
jne 0x1400024f7
mov dword [r11], r8d
inc r9d
add r11, 4
cmp r9d, 0x100
jb 0x1400024ef
not ebx
mov r8d, ebx
test edx, edx
jle 0x140002554
movzx eax, byte [r10]
inc r10
movzx ecx, r8b
xor rcx, rax
mov eax, r8d
shr eax, 8
mov r8d, dword [rsi + rcx*4]
xor r8d, eax
sub edx, 1
jne 0x140002532
jmp 0x140002594
mov cl, byte [r10]
inc r10
test cl, cl
je 0x140002594
mov r9b, reloc.WLDAP32.dll_Ordinal_35
cmp cl, r9b
jne 0x140002573
cmp byte [r10], r9b
jne 0x140002573
cmp byte [r10 + 1], r9b
cmove r8d, ebx
movzx eax, cl
mov ecx, r8d
movzx edx, r8b
shr ecx, 8
xor rdx, rax
mov r8d, dword [rsi + rdx*4]
xor r8d, ecx
mov cl, byte [r10]
inc r10
test cl, cl
jne 0x140002561
mov rbx, qword [rsp + 8]
not r8d
mov rsi, qword [rsp + 0x10]
mov eax, r8d
mov rdi, qword [rsp + 0x18]
ret
Function at 0x14001535d
Capabilities:
Encrypt data using rc4 prga

Disassembly:
test r8d, r8d
jle 0x1400155c6
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x30
mov rax, qword [0x1400b2700]
xor rax, rsp
mov qword [rbp - 8], rax
mov esi, dword [rbp + 0x50]
mov eax, edx
and qword [rbp - 0x10], 0
mov r14d, edx
sub eax, esi
movsxd r12, r9d
movsxd rbx, eax
mov rdi, rcx
mov r15d, r8d
mov r8, rsi
lea rcx, [rbp - 0x10]
xor edx, edx
call sub.VCRUNTIME140.dll_memset
xor r9d, r9d
mov eax, esi
sub eax, 2
je 0x140015514
sub eax, 1
je 0x1400154c5
sub eax, 1
je 0x140015477
xor r8d, r8d
cmp eax, 1
je 0x140015427
test rbx, rbx
js 0x140015558
mov r10, rdi
lea r11, [rbx + 1]
movzx edx, byte [r10]
movsxd rax, r8d
mov ecx, edx
and eax, 7
movzx eax, byte [rbp + rax - 0x10]
sub ecx, eax
lea eax, [rsi + r8]
and eax, 7
add r9d, ecx
inc r8d
mov byte [rbp + rax - 0x10], dl
xor edx, edx
mov eax, r9d
div esi
mov byte [r10], al
inc r10
sub r11, 1
jne 0x1400153eb
jmp 0x140015558
test rbx, rbx
js 0x140015558
mov r10, rdi
lea r11, [rbx + 1]
movzx edx, byte [r10]
movsxd rax, r8d
mov ecx, edx
and eax, 7
movzx eax, byte [rbp + rax - 0x10]
sub ecx, eax
lea eax, [r8 - 3]
and eax, 7
add r9d, ecx
inc r8d
mov byte [rbp + rax - 0x10], dl
mov eax, 0xcccccccd
mul r9d
shr edx, 2
mov byte [r10], dl
inc r10
sub r11, 1
jne 0x140015437
jmp 0x140015558
xor r8d, r8d
test rbx, rbx
js 0x140015558
mov r10, rdi
lea r11, [rbx + 1]
movzx edx, byte [r10]
movsxd rax, r8d
mov ecx, edx
and eax, 7
movzx eax, byte [rbp + rax - 0x10]
sub ecx, eax
lea eax, [r8 - 4]
and eax, 7
add r9d, ecx
inc r8d
mov byte [rbp + rax - 0x10], dl
mov eax, r9d
shr eax, 2
mov byte [r10], al
inc r10
sub r11, 1
jne 0x14001548a
jmp 0x140015558
xor r8d, r8d
test rbx, rbx
js 0x140015558
mov r10, rdi
lea r11, [rbx + 1]
movzx edx, byte [r10]
movsxd rax, r8d
mov ecx, edx
and eax, 7
movzx eax, byte [rbp + rax - 0x10]
sub ecx, eax
lea eax, [r8 + 3]
and eax, 7
add r9d, ecx
inc r8d
mov byte [rbp + rax - 0x10], dl
mov eax, 0xaaaaaaab
mul r9d
shr edx, 1
mov byte [r10], dl
inc r10
sub r11, 1
jne 0x1400154d8
jmp 0x140015558
xor r8d, r8d
test rbx, rbx
js 0x140015558
mov r10, rdi
lea r11, [rbx + 1]
movzx edx, byte [r10]
movsxd rax, r8d
mov ecx, edx
and eax, 7
movzx eax, byte [rbp + rax - 0x10]
sub ecx, eax
lea eax, [r8 + 2]
and eax, 7
add r9d, ecx
inc r8d
mov byte [rbp + rax - 0x10], dl
mov eax, r9d
shr eax, 1
mov byte [r10], al
inc r10
sub r11, 1
jne 0x140015523
cmp r8d, r14d
jge 0x140015591
movsxd rcx, r8d
mov eax, r14d
sub eax, r8d
mov r8d, eax
lea r10, [rcx + rdi]
mov rax, rcx
xor edx, edx
and eax, 7
inc rcx
movzx eax, byte [rbp + rax - 0x10]
sub r9d, eax
mov eax, r9d
div esi
mov byte [r10], al
inc r10
sub r8, 1
jne 0x14001556d
add rdi, r12
sub r15, 1
jne 0x1400153a5
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140086430
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x1400155d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
test edx, edx
jle 0x14001582a
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x30
mov rax, qword [0x1400b2700]
xor rax, rsp
mov qword [rbp - 8], rax
mov esi, dword [rbp + 0x60]
mov ebx, r8d
sub ebx, esi
movsxd r14, r9d
and qword [rbp - 0x10], 0
mov r15d, r8d
mov rdi, rcx
mov r12d, edx
mov r8, rsi
lea rcx, [rbp - 0x10]
xor edx, edx
call sub.VCRUNTIME140.dll_memset
xor r10d, r10d
mov eax, esi
sub eax, 2
je 0x140015779
sub eax, 1
je 0x14001572b
sub eax, 1
je 0x1400156de
xor r9d, r9d
cmp eax, 1
je 0x14001568f
test ebx, ebx
js 0x1400157bc
xor r11d, r11d
mov eax, r9d
movsxd r8, r11d
and eax, 7
add r11d, r14d
movzx edx, byte [r8 + rdi]
movzx ecx, byte [rbp + rax - 0x10]
mov eax, edx
sub eax, ecx
add r10d, eax
lea eax, [rsi + r9]
and eax, 7
inc r9d
mov byte [rbp + rax - 0x10], dl
xor edx, edx
mov eax, r10d
div esi
mov byte [r8 + rdi], al
cmp r9d, ebx
jle 0x14001564f
jmp 0x1400157bc
test ebx, ebx
js 0x1400157bc
xor r11d, r11d
mov eax, r9d
movsxd r8, r11d
and eax, 7
add r11d, r14d
movzx edx, byte [r8 + rdi]
movzx ecx, byte [rbp + rax - 0x10]
mov eax, edx
sub eax, ecx
add r10d, eax
lea eax, [r9 - 3]
and eax, 7
inc r9d
mov byte [rbp + rax - 0x10], dl
mov eax, 0xcccccccd
mul r10d
shr edx, 2
mov byte [r8 + rdi], dl
cmp r9d, ebx
jle 0x14001569a
jmp 0x1400157bc
xor r9d, r9d
test ebx, ebx
js 0x1400157bc
xor r11d, r11d
mov eax, r9d
movsxd r8, r11d
and eax, 7
add r11d, r14d
movzx edx, byte [r8 + rdi]
movzx ecx, byte [rbp + rax - 0x10]
mov eax, edx
sub eax, ecx
add r10d, eax
lea eax, [r9 - 4]
and eax, 7
inc r9d
mov byte [rbp + rax - 0x10], dl
mov eax, r10d
shr eax, 2
mov byte [r8 + rdi], al
cmp r9d, ebx
jle 0x1400156ec
jmp 0x1400157bc
xor r9d, r9d
test ebx, ebx
js 0x1400157bc
xor r11d, r11d
mov eax, r9d
movsxd r8, r11d
and eax, 7
add r11d, r14d
movzx edx, byte [r8 + rdi]
movzx ecx, byte [rbp + rax - 0x10]
mov eax, edx
sub eax, ecx
add r10d, eax
lea eax, [r9 + 3]
and eax, 7
inc r9d
mov byte [rbp + rax - 0x10], dl
mov eax, 0xaaaaaaab
mul r10d
shr edx, 1
mov byte [r8 + rdi], dl
cmp r9d, ebx
jle 0x140015739
jmp 0x1400157bc
xor r9d, r9d
test ebx, ebx
js 0x1400157bc
xor r11d, r11d
mov eax, r9d
movsxd r8, r11d
and eax, 7
add r11d, r14d
movzx edx, byte [r8 + rdi]
movzx ecx, byte [rbp + rax - 0x10]
mov eax, edx
sub eax, ecx
add r10d, eax
lea eax, [r9 + 2]
and eax, 7
inc r9d
mov byte [rbp + rax - 0x10], dl
mov eax, r10d
shr eax, 1
mov byte [r8 + rdi], al
cmp r9d, ebx
jle 0x140015783
cmp r9d, r15d
jge 0x1400157fd
mov eax, r14d
movsxd r8, r9d
imul eax, r9d
movsxd rcx, eax
mov eax, r15d
add rcx, rdi
sub eax, r9d
mov r9d, eax
mov rax, r8
xor edx, edx
and eax, 7
inc r8
movzx eax, byte [rbp + rax - 0x10]
sub r10d, eax
mov eax, r10d
div esi
mov byte [rcx], al
add rcx, r14
sub r9, 1
jne 0x1400157da
inc rdi
sub r12, 1
jne 0x14001560e
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140086430
mov rbx, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001582c
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
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
xor r14d, r14d
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
mov rsi, rdx
movsxd rdi, r9d
mov rbp, rcx
test r9d, r9d
jle 0x140015a24
lea rbx, [r8 + 0x20]
xor r13d, r13d
lea r8d, [r14 + 1]
mov r11d, 0x100
xorps xmm7, xmm7
movss xmm6, dword [rbx - 0x20]
comiss xmm6, xmm7
jbe 0x1400158d5
movsxd r10, dword [rsi + 0x24]
mov r9, qword [rsi + 8]
movsx ecx, r11w
movzx eax, byte [r10 + r9 + 7]
movzx edx, byte [r10 + r9 + 6]
imul edx, ecx
movsx ecx, r11w
add dx, ax
movzx eax, byte [r10 + r9 + 5]
movsx r8d, dx
movzx edx, byte [r10 + r9 + 4]
imul edx, ecx
add ax, dx
cwde
sub eax, r8d
mov r8d, 1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm6, xmm0
jmp 0x1400158fe
movsxd rcx, dword [rsi + 0x1c]
mov rax, qword [rsi + 8]
movzx edx, byte [rcx + rax + 0x12]
movzx eax, byte [rcx + rax + 0x13]
shl edx, 8
add edx, eax
movd xmm0, edx
cvtdq2ps xmm0, xmm0
divss xmm6, xmm0
xorps xmm6, xmmword [0x1400a33d0]
mov al, byte [rbp + 0x20]
xor r15d, r15d
mov byte [rbx], al
mov al, byte [rbp + 0x24]
mov byte [rbx + 1], al
cmp dword [rbx - 0x10], r15d
jle 0x140015a17
mov rcx, qword [rsp + 0xe0]
mov rax, r13
shl rax, 4
add rcx, 6
xor r12d, r12d
add rcx, rax
mov qword [rsp + 0x60], rcx
mov rax, qword [rbx - 0x18]
test rax, rax
jne 0x140015945
mov edx, dword [rbx - 0x1c]
add edx, r15d
jmp 0x140015949
mov edx, dword [rax + r12]
mov rcx, rsi
call fcn.140011b64
mov edx, eax
xorps xmm3, xmm3
mov eax, dword [rbp + 0x24]
xorps xmm2, xmm2
mov rcx, rsi
cvtsi2ss xmm3, rax
mov eax, dword [rbp + 0x20]
cvtsi2ss xmm2, rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x54]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x30], rax
mulss xmm3, xmm6
mulss xmm2, xmm6
movss dword [rsp + 0x28], xmm7
movss dword [rsp + 0x20], xmm7
call fcn.140013940
mov rcx, qword [rsp + 0x60]
mov r8d, 1
movzx eax, word [rbp + 0x20]
add r14d, r8d
sub ax, word [rsp + 0xd8]
add r13, r8
add ax, word [rbp + 0x1c]
add r15d, r8d
add ax, word [rsp + 0x50]
add r12, 4
sub ax, r8w
mov word [rcx - 2], ax
movzx eax, word [rbp + 0x24]
sub ax, word [rsp + 0x54]
add ax, word [rbp + 0x1c]
add ax, word [rsp + 0x58]
sub ax, r8w
mov word [rcx], ax
add rcx, 0x10
mov qword [rsp + 0x60], rcx
cmp r15d, dword [rbx - 0x10]
jl 0x140015934
mov r11d, 0x100
add rbx, 0x28
sub rdi, r8
jne 0x14001587c
movaps xmm7, xmmword [rsp + 0x70]
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov eax, r14d
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140017830
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
movss xmm3, dword [rdx + 4]
mov rsi, rdx
movss xmm4, dword [rdx]
mov rbx, r9
mov rbp, qword [rsp + 0x80]
xor edx, edx
movss xmm2, dword [r8]
mov rdi, r8
movss xmm5, dword [r8 + 4]
mov r10, rcx
movaps xmmword [rax - 0x28], xmm6
mov r8d, edx
movss xmm6, dword [rbp]
lea r15d, [rdx + 1]
movaps xmmword [rax - 0x38], xmm7
lea r14d, [rdx + 2]
movss xmm7, dword [r9 + 4]
mov r11d, edx
movaps xmmword [rax - 0x48], xmm8
movss xmm8, dword [r9]
mov rax, qword [rcx + 0x48]
movzx r9d, word [rcx + 0x38]
movaps xmmword [rsp], xmm9
movss xmm9, dword [rbp + 4]
mov word [rax], r9w
mov rax, qword [r10 + 0x48]
lea ecx, [r9 + r8]
add cx, r15w
add r8d, r15d
mov word [rax + r11 + 2], cx
add r11, r14
cmp r8d, r14d
jl 0x1400178b5
mov rax, qword [r10 + 0x48]
mov r8d, 8
mov word [rax + 6], r9w
mov rax, qword [r10 + 0x48]
lea ecx, [r9 + rdx]
add cx, r14w
add edx, r15d
mov word [r8 + rax], cx
add r8, r14
cmp edx, r14d
jl 0x1400178e1
movsd xmm0, qword [rsi]
lea r11, [rsp + 0x40]
mov rax, qword [r10 + 0x40]
mov ecx, dword [rsp + 0x88]
mov rsi, qword [r11 + 0x30]
movsd qword [rax], xmm0
movsd xmm1, qword [rbx]
mov rax, qword [r10 + 0x40]
mov rbx, qword [r11 + 0x20]
movsd qword [rax + 8], xmm1
mov rax, qword [r10 + 0x40]
mov dword [rax + 0x10], ecx
mov rax, qword [r10 + 0x40]
movss dword [rax + 0x14], xmm2
movss dword [rax + 0x18], xmm3
mov rax, qword [r10 + 0x40]
movss dword [rax + 0x1c], xmm6
movaps xmm6, xmmword [rsp + 0x30]
movss dword [rax + 0x20], xmm7
mov rax, qword [r10 + 0x40]
movaps xmm7, xmmword [rsp + 0x20]
mov dword [rax + 0x24], ecx
movsd xmm0, qword [rdi]
mov rax, qword [r10 + 0x40]
movsd qword [rax + 0x28], xmm0
movsd xmm1, qword [rbp]
mov rax, qword [r10 + 0x40]
mov rbp, qword [r11 + 0x28]
movsd qword [rax + 0x30], xmm1
mov rax, qword [r10 + 0x40]
mov dword [rax + 0x38], ecx
mov rax, qword [r10 + 0x40]
movss dword [rax + 0x3c], xmm4
movss dword [rax + 0x40], xmm5
mov rax, qword [r10 + 0x40]
movss dword [rax + 0x44], xmm8
movaps xmm8, xmmword [r11 - 0x30]
movss dword [rax + 0x48], xmm9
mov rax, qword [r10 + 0x40]
movaps xmm9, xmmword [r11 - 0x40]
mov dword [rax + 0x4c], ecx
add qword [r10 + 0x40], 0x50
add dword [r10 + 0x38], 4
add qword [r10 + 0x48], 0xc
mov rsp, r11
pop r15
pop r14
pop rdi
ret