joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1402602e0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1402602ed
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1402602fd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1402602e5
lea eax, [rcx + 1]
jmp 0x14026030b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14026031e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140260304
sub eax, 3
jb 0x14026033e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14026038d
sar eax, 1
movsxd rbp, eax
jb 0x140260374
jmp 0x14026034c
add ebx, ebx
jne 0x14026034a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140260374
inc ecx
add ebx, ebx
jne 0x14026035a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140260374
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14026036d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14026035c
add ecx, 2
jmp 0x140260379
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1402602a2
jmp 0x1402602ed
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xa8400
mov dl, 0x22
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1402603d9
cmp rsi, rcx
jae 0x1402603e1
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1402603c0
cmp al, 0x8f
ja 0x1402603c0
cmp byte [rsi - 2], 0xf
je 0x1402603c6
sub al, 0xe8
cmp al, 1
ja 0x1402603aa
cmp rsi, rcx
jae 0x1402603e1
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1402603b0
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1402603e1
lodsb al, byte [rsi]
jmp 0x1402603c0
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x25c000]
mov eax, dword [rdi]
or eax, eax
je 0x14026044a
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x3ca908]
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 0x1402603ee
jns 0x140260423
movzx rdx, word [rdi]
add rdi, 2
jmp 0x14026042d
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 0x140260444
mov qword [rbx], rax
add rbx, 8
jmp 0x14026040e
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 0x140260484
cmp al, 0xef
ja 0x140260476
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140260456
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140260465
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 + 0x23f]
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 0x1402604d8
sub rsp, 0xffffffffffffff80
jmp 0x14002fb2c
Function at 0x1407fd058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1407fd1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1407fd089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407fd06f
add dl, dl
jne 0x1407fd096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407fd0f6
xor eax, eax
add dl, dl
jne 0x1407fd0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407fd1ad
add dl, dl
jne 0x1407fd0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407fd0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407fd0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407fd0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1407fd0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1407fd07e
mov eax, 1
add dl, dl
jne 0x1407fd106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407fd113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407fd0fb
sub eax, ebx
mov ebx, 1
jne 0x1407fd14c
mov ecx, 1
add dl, dl
jne 0x1407fd12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1407fd13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407fd123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407fd07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1407fd168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1407fd175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407fd15d
cmp eax, 0x7d00
jae 0x1407fd19b
cmp eax, 0x500
jb 0x1407fd196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407fd07e
cmp eax, 0x7f
ja 0x1407fd19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407fd07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1407fd1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1407fd07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140007de0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xb0
mov rax, qword [0x1401eb9a0]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rbx, rcx
mov qword [rsp + 0x90], rcx
mov r9d, 3
lea r8, [0x1401bae14]
xor edx, edx
call fcn.140002320
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
mov dword [rsp + 0x20], reloc.WS2_32.dll_WSASetLastError
mov dword [rsp + 0x24], 0x40
xor esi, esi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], rsi
lea rax, str.cmd.exe
mov qword [rsp + 0x38], rax
mov rax, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140007e81
mov rax, qword [rbx]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rsi
mov dword [rsp + 0x50], esi
mov qword [rsp + 0x58], rsi
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x140007ee4
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140007edd
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140007ed8
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140007f8e
mov rcx, r8
call fcn.14014fd6c
mov eax, 0xffffffff
jmp 0x140007f5a
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rsp + 0x98]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [rsp + 0x98]
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140007f58
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140007f53
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140007f8e
mov rcx, r8
call fcn.14014fd6c
mov eax, edi
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], 0
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.14014fd10
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.14015ee94
int3
Function at 0x140018420
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140018442
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x1400184bc
mov rdi, r14
mov rcx, rbx
call fcn.14001be70
test rax, rax
jle 0x140018494
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.140151fe0
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x1400184ac
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + gethostname]
cmp eax, 0xffffffff
je 0x1400184b4
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140018456
sub r14, rdi
jmp 0x1400185a9
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x1400184d3
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400184d5
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14001850a
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.140151fe0
mov rax, qword [rbx + 0x50]
sub rbp, rdi
add rsi, rdi
mov r8, rbp
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x1400185a6
mov r9, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r9], rax
jne 0x140018545
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x140018581
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.140169084
sub rbp, rax
add rsi, rax
mov rdi, rbp
cmp rax, 0xfff
jne 0x1400185bf
cmp rbp, rax
ja 0x140018551
mov r8, rdi
test rdi, rdi
je 0x1400185a6
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.140169084
mov r8, rdi
sub r8, rax
sub r14, r8
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
sub r14, rbp
jmp 0x1400185a9
Function at 0x140035af0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x1401eb9a0]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, rcx
mov qword [rsp + 0x38], rcx
xor eax, eax
mov dword [rsp + 0x30], eax
mov qword [rcx], rax
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], 7
mov word [rcx], ax
mov dword [rsp + 0x30], 1
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20119
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140035c09
mov dword [rsp + 0x48], 0x200
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.ProductName
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140035bd5
lea rax, [rsp + 0x50]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140035bb0
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.14001be90
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140035c30
lea rdx, str.Error_querying_value:
call fcn.14003a9e0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.140038290
mov rcx, rax
call fcn.14003ac80
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140035c30
lea rdx, str.Error_opening_registry_key:
call fcn.14003a9e0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.140038290
mov rcx, rax
call fcn.14003ac80
mov rax, rdi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14014fd10
mov rbx, qword [rsp + 0x278]
add rsp, 0x260
pop rdi
ret
Function at 0x1400498a0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov eax, edx
mov edi, 0x40
shl rax, 4
mov rbx, rcx
cmp rax, 0x400
cmovbe edi, edx
cmp edi, dword [rcx]
je 0x140049a16
mov rax, qword [0x1401f4f18]
test rax, rax
je 0x1400498d7
call rax
mov ecx, edi
shl rcx, 4
call fcn.140045190
mov rcx, qword [0x1401f4f20]
mov rdi, rax
test rcx, rcx
je 0x1400498f3
call rcx
test rdi, rdi
je 0x140049a16
mov rcx, qword [rbx + 0x10]
mov qword [rsp + 0x30], rsi
call fcn.140045620
mov rcx, rdi
mov qword [rbx + 0x10], rdi
call qword [0x1401ec980]
movsxd rsi, eax
xor edx, edx
shr rsi, 4
mov rcx, rdi
mov r8d, esi
shl r8, 4
mov dword [rbx], esi
call fcn.140152690
mov rcx, qword [rbx + 8]
xor r10d, r10d
mov qword [rbx + 8], r10
test rcx, rcx
je 0x140049a01
lea r11, [0x1401be3b0]
nop dword [rax]
mov r9, qword [rcx + 0x18]
mov eax, r10d
movzx edx, byte [r9]
test dl, dl
je 0x140049981
nop
movzx edx, dl
lea r9, [r9 + 1]
movzx r8d, byte [rdx + r11]
lea edx, [rax*8]
xor r8d, edx
movzx edx, byte [r9]
xor eax, r8d
test dl, dl
jne 0x140049960
mov r9, qword [rcx]
xor edx, edx
div esi
mov r8d, edx
shl r8, 4
add r8, rdi
je 0x1400499d9
mov eax, dword [r8]
test eax, eax
je 0x1400499a1
mov rdx, qword [r8 + 8]
jmp 0x1400499a4
mov rdx, r10
inc eax
mov qword [r8 + 8], rcx
mov dword [r8], eax
test rdx, rdx
je 0x1400499d9
mov qword [rcx], rdx
mov rax, qword [rdx + 8]
mov qword [rcx + 8], rax
mov rax, qword [rdx + 8]
test rax, rax
je 0x1400499cf
mov qword [rax], rcx
mov qword [rdx + 8], rcx
jmp 0x1400499f5
mov qword [rbx + 8], rcx
mov qword [rdx + 8], rcx
jmp 0x1400499f5
mov rax, qword [rbx + 8]
mov qword [rcx], rax
mov rax, qword [rbx + 8]
test rax, rax
je 0x1400499ed
mov qword [rax + 8], rcx
mov qword [rcx + 8], r10
mov qword [rbx + 8], rcx
mov rcx, r9
test r9, r9
jne 0x140049950
mov rsi, qword [rsp + 0x30]
mov eax, 1
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x140049a30
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov r11, qword [rcx + 0x10]
lea rsi, [0x1401be3b0]
xor r9d, r9d
mov rdi, rdx
mov rbx, rcx
test r11, r11
je 0x140049a9d
movzx eax, byte [rdx]
mov r10, rdx
test al, al
je 0x140049a82
movzx eax, al
lea r10, [r10 + 1]
movzx ecx, byte [rax + rsi]
lea eax, [r9*8]
xor ecx, eax
movzx eax, byte [r10]
xor r9d, ecx
test al, al
jne 0x140049a62
mov eax, r9d
xor edx, edx
div dword [rbx]
mov eax, edx
shl rax, 4
add rax, r11
mov r9d, edx
mov r11, qword [rax + 8]
mov ebx, dword [rax]
jmp 0x140049aa4
mov r11, qword [rcx + 8]
mov ebx, dword [rcx + 4]
mov dword [r8], r9d
test ebx, ebx
je 0x140049b10
nop dword [rax + rax]
mov r10, qword [r11 + 0x18]
dec ebx
mov r8, rdi
movzx r9d, byte [r10]
test r9b, r9b
je 0x140049af5
movzx eax, r9b
sub r10, rdi
nop dword [rax]
movzx edx, byte [r8]
movzx r9d, al
movzx ecx, al
movzx eax, byte [rdx + rsi]
cmp byte [rcx + rsi], al
jne 0x140049af5
movzx eax, byte [r10 + r8 + 1]
inc r8
movzx r9d, al
test al, al
jne 0x140049ad0
movzx eax, byte [r8]
movzx ecx, byte [rax + rsi]
movzx eax, r9b
movzx eax, byte [rax + rsi]
cmp eax, ecx
je 0x140049b22
mov r11, qword [r11]
test ebx, ebx
jne 0x140049ab0
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov rbx, qword [rsp + 8]
mov rax, r11
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
Function at 0x140049b40
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x20
mov rbp, r8
mov rsi, rdx
lea r8, [rsp + 0x58]
mov rdi, rcx
call fcn.140049a30
mov rcx, rax
test rax, rax
je 0x140049c38
mov qword [rsp + 0x40], r14
mov r14, qword [rax + 0x10]
test rbp, rbp
jne 0x140049c1b
mov rdx, qword [rax + 8]
mov rax, qword [rax]
test rdx, rdx
je 0x140049b8e
mov qword [rdx], rax
jmp 0x140049b92
mov qword [rdi + 8], rax
mov rdx, qword [rcx]
test rdx, rdx
je 0x140049ba2
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x140049bc5
mov edx, dword [rsp + 0x58]
shl rdx, 4
add rdx, rax
cmp qword [rdx + 8], rcx
jne 0x140049bc3
mov rax, qword [rcx]
mov qword [rdx + 8], rax
dec dword [rdx]
call fcn.140045620
add dword [rdi + 4], 0xffffffff
jne 0x140049c23
mov rsi, qword [rdi + 8]
xor ebp, ebp
mov rcx, qword [rdi + 0x10]
mov qword [rdi + 8], rbp
call fcn.140045620
mov qword [rdi + 0x10], rbp
mov dword [rdi], ebp
test rsi, rsi
je 0x140049c03
nop
mov rbx, qword [rsi]
mov rcx, rsi
call fcn.140045620
mov rsi, rbx
test rbx, rbx
jne 0x140049bf0
mov rax, r14
mov dword [rdi + 4], ebp
mov r14, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rax, r14
mov r14, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
test rbp, rbp
je 0x140049d55
mov ecx, 0x20
call fcn.140045190
mov rbx, rax
test rax, rax
jne 0x140049c63
mov rax, rbp
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
mov qword [rax + 0x10], rbp
xor ebp, ebp
mov qword [rax + 0x18], rsi
inc dword [rdi + 4]
mov edx, dword [rdi + 4]
cmp edx, 0xa
jb 0x140049cc4
mov eax, dword [rdi]
add eax, eax
cmp edx, eax
jbe 0x140049cc4
add edx, edx
mov rcx, rdi
call fcn.1400498a0
test eax, eax
je 0x140049cc4
movzx ecx, byte [rsi]
mov eax, ebp
test cl, cl
je 0x140049cbe
lea r8, [0x1401be3b0]
nop
movzx ecx, cl
lea rsi, [rsi + 1]
movzx edx, byte [rcx + r8]
lea ecx, [rax*8]
xor edx, ecx
movzx ecx, byte [rsi]
xor eax, edx
test cl, cl
jne 0x140049ca0
xor edx, edx
div dword [rdi]
jmp 0x140049cc8
mov edx, dword [rsp + 0x58]
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x140049d39
mov ecx, edx
shl rcx, 4
add rcx, rax
je 0x140049d39
mov eax, dword [rcx]
test eax, eax
je 0x140049ce8
mov rdx, qword [rcx + 8]
jmp 0x140049ceb
mov rdx, rbp
inc eax
mov qword [rcx + 8], rbx
mov dword [rcx], eax
test rdx, rdx
je 0x140049d39
mov qword [rbx], rdx
mov rax, qword [rdx + 8]
mov qword [rbx + 8], rax
mov rax, qword [rdx + 8]
test rax, rax
je 0x140049d22
mov qword [rax], rbx
xor eax, eax
mov qword [rdx + 8], rbx
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
mov qword [rdi + 8], rbx
xor eax, eax
mov qword [rdx + 8], rbx
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
mov rax, qword [rdi + 8]
mov qword [rbx], rax
mov rax, qword [rdi + 8]
test rax, rax
je 0x140049d4d
mov qword [rax + 8], rbx
mov qword [rbx + 8], rbp
mov qword [rdi + 8], rbx
mov rbx, qword [rsp + 0x48]
xor eax, eax
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
Function at 0x14007dca0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x30
mov r14, qword [rcx + 0x10]
xor r10d, r10d
mov rbx, rcx
mov esi, r9d
add rcx, 0x88
mov ebp, r8d
nop dword [rax]
cmp dword [rcx + 0xc], 0
jle 0x14007dce2
cmp dword [rcx], esi
jne 0x14007dce2
movsx eax, word [rcx + 4]
cmp eax, ebp
je 0x14007dd38
inc r10d
add rcx, 0x14
cmp r10d, 0xa
jl 0x14007dcd0
mov qword [rsp + 0x40], rdi
mov r9d, ebp
mov edi, dword [rsp + 0x60]
mov r8d, esi
mov rcx, r14
mov dword [rsp + 0x20], edi
call fcn.14007dbb0
movzx r8d, byte [rsp + 0x68]
test r8b, r8b
je 0x14007dddf
mov rdx, qword [r14 + 8]
test rdx, rdx
je 0x14007ddef
movsxd rax, dword [r14 + 0x3c]
lea rcx, [rax + rax*2]
mov byte [rdx + rcx*8 - 0x15], r8b
jmp 0x14007ddef
mov eax, dword [rbx + 0x74]
mov dword [rcx + 0x10], eax
inc dword [rbx + 0x74]
mov eax, dword [rcx + 0xc]
cmp dword [rbx + 0x94], eax
jne 0x14007dd53
mov byte [rbx + 0x8e], 0
cmp dword [rbx + 0xa8], eax
jne 0x14007dd62
mov byte [rbx + 0xa2], 0
cmp dword [rbx + 0xbc], eax
jne 0x14007dd71
mov byte [rbx + 0xb6], 0
cmp dword [rbx + 0xd0], eax
jne 0x14007dd80
mov byte [rbx + 0xca], 0
cmp dword [rbx + 0xe4], eax
jne 0x14007dd8f
mov byte [rbx + 0xde], 0
cmp dword [rbx + 0xf8], eax
jne 0x14007dd9e
mov byte [rbx + 0xf2], 0
cmp dword [rbx + 0x10c], eax
jne 0x14007ddad
mov byte [rbx + 0x106], 0
cmp dword [rbx + 0x120], eax
jne 0x14007ddbc
mov byte [rbx + 0x11a], 0
cmp dword [rbx + 0x134], eax
jne 0x14007ddcb
mov byte [rbx + 0x12e], 0
cmp dword [rbx + 0x148], eax
jne 0x14007ddda
mov byte [rbx + 0x142], 0
mov eax, dword [rcx + 0xc]
jmp 0x14007ddf6
mov r9d, edi
mov r8d, ebp
mov edx, esi
mov rcx, rbx
call fcn.14007d480
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x140080030
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x20
mov ebp, r8d
mov rbx, rdx
mov rdi, rcx
test rcx, rcx
je 0x1400801b8
test rdx, rdx
je 0x1400801b8
mov r9d, dword [rdx + 4]
mov r11d, dword [rcx + 4]
mov qword [rsp + 0x30], rsi
mov esi, r9d
or esi, r11d
bt esi, 0xa
jae 0x1400800a4
and r9d, r11d
bt r9d, 0xa
jae 0x1400801ae
mov eax, dword [rdx + 8]
cmp dword [rcx + 8], eax
jne 0x1400801ae
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
movzx r8d, byte [rcx]
cmp r8b, byte [rdx]
je 0x1400800ec
cmp r8b, 0x5f
jne 0x1400800c4
mov rcx, qword [rcx + 0x10]
mov r8d, ebp
call fcn.140080030
cmp eax, 2
jl 0x1400800e5
cmp byte [rbx], 0x5f
jne 0x1400801ae
mov rdx, qword [rbx + 0x10]
mov r8d, ebp
mov rcx, rdi
call fcn.140080030
cmp eax, 2
jge 0x1400801ae
mov eax, 1
jmp 0x14008008f
lea eax, [r8 + 0x66]
test al, 0xfd
je 0x14008012b
mov rax, qword [rcx + 8]
test rax, rax
je 0x14008012b
mov r10, qword [rdx + 8]
sub r10, rax
movzx edx, byte [rax]
movzx ecx, byte [rax + r10]
sub edx, ecx
jne 0x140080117
inc rax
test ecx, ecx
jne 0x140080104
test edx, edx
je 0x14008012b
xor eax, eax
cmp r8b, 0x5f
setne al
inc eax
jmp 0x14008008f
xor r9d, r11d
test r9b, 0x10
jne 0x1400801ae
bt esi, 0xe
jb 0x14008008d
bt esi, 0xb
jb 0x1400801ae
mov rdx, qword [rbx + 0x10]
mov r8d, ebp
mov rcx, qword [rdi + 0x10]
call fcn.140080030
test eax, eax
jne 0x1400801ae
mov rdx, qword [rbx + 0x18]
mov r8d, ebp
mov rcx, qword [rdi + 0x18]
call fcn.140080030
test eax, eax
jne 0x1400801ae
mov rdx, qword [rbx + 0x20]
mov r8d, ebp
mov rcx, qword [rdi + 0x20]
call fcn.1400801e0
test eax, eax
jne 0x1400801ae
bt esi, 0xd
jb 0x14008008d
movzx eax, word [rbx + 0x30]
cmp word [rdi + 0x30], ax
jne 0x1400801ae
mov ecx, dword [rdi + 0x2c]
mov eax, dword [rbx + 0x2c]
cmp ecx, eax
je 0x14008008d
cmp ecx, ebp
jne 0x1400801ae
test eax, eax
js 0x14008008d
mov eax, 2
jmp 0x14008008f
mov rbp, qword [rsp + 0x40]
xor eax, eax
cmp rbx, rdi
mov ecx, 2
mov rbx, qword [rsp + 0x38]
cmove ecx, eax
mov eax, ecx
add rsp, 0x20
pop rdi
ret