joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800147d4
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x180020610]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.18000d83c
xor ebx, ebx
cmp qword [0x180023080], rbx
mov rdi, rax
jne 0x1800148e7
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x1800149be
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1800149be
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x180023080], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x180023088], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x180023090], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x1800230a0], rax
test rax, rax
je 0x1800148de
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x180023098], rax
jmp 0x1800148ee
mov rax, qword [0x180023098]
jmp 0x1800148f5
mov rax, qword [0x180023098]
mov r11, qword [0x1800230a0]
cmp rax, rdi
je 0x18001495c
cmp r11, rdi
je 0x18001495c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x1800230a0]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x18001495c
test rax, rax
je 0x18001495c
call rsi
test rax, rax
je 0x180014956
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x180014956
test byte [rsp + 0x40], 1
jne 0x18001495c
bts ebp, 0x15
jmp 0x18001499c
mov rcx, qword [0x180023088]
cmp rcx, rdi
je 0x18001499c
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x18001499c
call rax
mov rbx, rax
test rax, rax
je 0x18001499c
mov rcx, qword [0x180023090]
cmp rcx, rdi
je 0x18001499c
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x18001499c
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x180023080]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1800149be
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x1800149c0
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180008660
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400207e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, rdx
mov rsi, rcx
lea rdx, str._497794080291118793
mov r8d, 0xa
xor ecx, ecx
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
mov byte [rsp + 0x2c], 0
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x1400208f1
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x28], eax
test eax, eax
je 0x1400208f1
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400208f1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x20], rax
test rax, rax
je 0x1400208f1
mov ecx, 0x58
call fcn.1400cbd40
test rax, rax
je 0x14002088a
mov rcx, rax
call fcn.14001e550
mov rbx, rax
jmp 0x14002088c
xor ebx, ebx
mov dword [rsp + 0x50], reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov rax, qword [rbx]
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov qword [rsi], rbx
mov dword [rbx + 0xc], 0
call qword [rax + VariantCopy]
test al, al
je 0x1400208c8
lea rdx, [rsp + 0x50]
mov r8d, 0xfde9
mov rcx, rbx
call fcn.1400aab70
mov rax, qword [0x14011bd50]
inc dword [0x14011a468]
mov qword [0x140118628], rax
mov eax, 3
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
lea rdx, str.Could_not_extract_script_from_EXE.
lea rcx, [0x14011b1d0]
mov r8, rdi
call fcn.140040740
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x181491838
Capabilities:
Encode data using xor

Disassembly:
jmp 0x181491842
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x18149186b
pop rbp
sub rbp, 0x33
sub rbp, 0x1491838
cmp edx, 1
je 0x1814918ae
ldmxcsr dword [rsp]
add rsp, 8
popfq
pop r15
pop r14
pop r13
pop r12
pop r11
pop r10
pop r9
pop r8
pop rdi
pop rsi
pop rbp
pop rbx
pop rdx
pop rcx
pop rax
xor rax, rax
ret
sub rsp, 0x20
jmp 0x1814918be
mov rax, 0x1491838
add rax, rbp
add rax, 0xb8
mov rcx, 0x60b
mov rdx, 0x52063844
xor byte [rax], dl
inc rax
dec rcx
jne 0x1814918dd
jmp 0x1814918f4
or al, 0xcd
lodsd eax, dword [rsi]
iretd
Function at 0x140002db0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov byte [rsp + 8], cl
sub rsp, 0x18
mov byte [rsp + 1], 0
jmp 0x140002dd4
movzx eax, byte [rsp + 1]
inc al
mov byte [rsp + 1], al
movzx eax, byte [rsp + 1]
cmp eax, 4
jge 0x140002e55
mov byte [rsp], 0
jmp 0x140002ded
movzx eax, byte [rsp]
inc al
mov byte [rsp], al
movzx eax, byte [rsp]
cmp eax, 4
jge 0x140002e50
movzx eax, byte [rsp + 1]
mov rcx, qword [rsp + 0x28]
lea rax, [rcx + rax*4]
movzx ecx, byte [rsp]
movzx edx, byte [rsp + 0x20]
shl edx, 2
movzx r8d, byte [rsp + 1]
shl r8d, 2
lea edx, [r8 + rdx*4]
movzx r8d, byte [rsp]
add edx, r8d
movsxd rdx, edx
mov r8, qword [rsp + 0x30]
movzx edx, byte [r8 + rdx]
movzx eax, byte [rax + rcx]
xor eax, edx
movzx ecx, byte [rsp]
movzx edx, byte [rsp + 1]
mov r8, qword [rsp + 0x28]
lea rdx, [r8 + rdx*4]
mov byte [rdx + rcx], al
jmp 0x140002de4
jmp 0x140002dc9
add rsp, 0x18
ret

Function at 0x140004250
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov byte [rsp + 1], 0
jmp 0x14000426b
movzx eax, byte [rsp + 1]
inc al
mov byte [rsp + 1], al
movzx eax, byte [rsp + 1]
cmp eax, 4
jge 0x1400042c9
mov byte [rsp], 0
jmp 0x140004284
movzx eax, byte [rsp]
inc al
mov byte [rsp], al
movzx eax, byte [rsp]
cmp eax, 4
jge 0x1400042c7
movzx eax, byte [rsp]
mov rcx, qword [rsp + 0x20]
lea rax, [rcx + rax*4]
movzx ecx, byte [rsp + 1]
movzx eax, byte [rax + rcx]
lea rcx, [0x140001640]
movzx edx, byte [rsp]
mov r8, qword [rsp + 0x20]
lea rdx, [r8 + rdx*4]
movzx r8d, byte [rsp + 1]
movzx eax, byte [rcx + rax]
mov byte [rdx + r8], al
jmp 0x14000427b
jmp 0x140004260
add rsp, 0x18
ret

Function at 0x140004790
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov byte [rsp], 0
jmp 0x1400047ad
movzx eax, byte [rsp]
inc al
mov byte [rsp], al
movzx eax, byte [rsp]
cmp eax, 0x10
jge 0x1400047e0
movzx eax, byte [rsp]
movzx ecx, byte [rsp]
mov rdx, qword [rsp + 0x28]
movzx ecx, byte [rdx + rcx]
mov rdx, qword [rsp + 0x20]
movzx eax, byte [rdx + rax]
xor eax, ecx
movzx ecx, byte [rsp]
mov rdx, qword [rsp + 0x20]
mov byte [rdx + rcx], al
jmp 0x1400047a4
add rsp, 0x18
ret
Function at 0x140004ec0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
cmp qword [rsp + 0x70], 0
je 0x140004ede
cmp qword [rsp + 0x78], 0
jne 0x140004ee5
xor eax, eax
jmp 0x14000503d
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140004f05
xor eax, eax
jmp 0x14000503d
mov rax, qword [rsp + 0x38]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x4550
je 0x140004f32
xor eax, eax
jmp 0x14000503d
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x30]
cmp dword [rcx + rax + 0x88], 0
jne 0x140004f51
xor eax, eax
jmp 0x14000503d
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x20], 0
jmp 0x140004fa2
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x20], eax
jae 0x14000503b
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov rdx, rax
mov rcx, qword [rsp + 0x78]
call fcn.140006830
test eax, eax
jne 0x140005036
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
movzx eax, word [rcx + rax*2]
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax*4]
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
jmp 0x14000503d
jmp 0x140004f98
xor eax, eax
add rsp, 0x68
ret
Function at 0x140005660
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
cmp qword [rsp + 0x30], 0
je 0x140005682
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x10], 0
jne 0x140005689
xor eax, eax
jmp 0x140005785
mov dword [rsp], 0
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x18]
movzx eax, word [rax]
cmp eax, 0x5a4d
jne 0x1400056b3
mov dword [rsp + 4], 1
jmp 0x1400056bb
mov dword [rsp + 4], 0
mov eax, dword [rsp + 4]
mov dword [rsp], eax
cmp dword [rsp], 0
jne 0x1400056cd
jmp 0x140005770
xor eax, eax
test eax, eax
jne 0x14000569a
mov rax, qword [rsp + 0x18]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0x10]
cmp dword [rax], 0x4550
jne 0x140005703
mov dword [rsp + 8], 1
jmp 0x14000570b
mov dword [rsp + 8], 0
mov eax, dword [rsp + 8]
mov dword [rsp], eax
cmp dword [rsp], 0
jne 0x14000571a
jmp 0x140005770
xor eax, eax
test eax, eax
jne 0x1400056ec
mov rax, qword [rsp + 0x10]
movzx eax, word [rax + 4]
cmp eax, 0x8664
jne 0x140005769
mov rax, qword [rsp + 0x10]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x14000574a
mov dword [rsp + 0xc], 1
jmp 0x140005752
mov dword [rsp + 0xc], 0
mov eax, dword [rsp + 0xc]
mov dword [rsp], eax
cmp dword [rsp], 0
jne 0x140005761
jmp 0x140005770
xor eax, eax
test eax, eax
jne 0x140005730
jmp 0x140005770
mov dword [rsp], 0
cmp dword [rsp], 0
jne 0x140005782
mov rax, qword [rsp + 0x30]
mov dword [rax + 0x20], 1
mov eax, dword [rsp]
add rsp, 0x28
ret
Function at 0x1400545b0
Capabilities:
Resolve function by fnv-1a hash

Disassembly:
push rdi
sub rsp, 0x30
lea rax, [rsp + 0x20]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx edx, byte [rsp + 0x20]
mov ecx, 0x53b2070f
call fcn.1400545e0
add rsp, 0x30
pop rdi
ret

Function at 0x140054a40
Capabilities:
Hash data using fnv

Disassembly:
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
movsx eax, byte [rsp + 0x10]
mov rcx, qword [rsp + 8]
mov ecx, dword [rcx]
xor ecx, eax
mov eax, ecx
mov eax, eax
imul rax, rax, 0x1000193
mov rcx, qword [rsp + 8]
mov dword [rcx], eax
ret

Function at 0x1400558f0
Capabilities:
Resolve function by fnv-1a hash

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x28]
call fcn.140054720
mov dword [rsp + 0x20], 0
jmp 0x14005591c
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x28]
call fcn.1400549d0
mov rcx, rax
call fcn.1400546c0
cmp eax, 0xf8f45725
jne 0x140055949
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x28]
call fcn.1400547b0
jmp 0x14005594b
jmp 0x140055912
add rsp, 0x48
ret
Function at 0x140005510
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140005544
cmp word [rcx], 0x5a4d
jne 0x140005544
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140005544
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140005544
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140005450
test eax, eax
jne 0x140005560
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.1400054c0
test rax, rax
je 0x140005555
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.140005d09
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x140005c10
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140005bb0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140006064
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x140990078]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x140990074]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x1400060b2
mov rdx, qword [rax]
cmp r12, rdx
jb 0x1400060aa
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140006199
inc ebx
add rax, 0x28
jmp 0x14000608a
mov rcx, r12
call fcn.140006891
mov rbp, rax
test rax, rax
jne 0x1400060d1
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140006000
movsxd rbx, ebx
mov rax, qword [0x140990078]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.14000693f
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140990078]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140006133
mov rax, qword [0x140990078]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140006000
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140006193
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140006193
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140990078]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140006193
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140006000
inc dword [0x140990074]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x1400065c0
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x1409900e0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1409900c0]
test rbx, rbx
je 0x14000660c
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140006606
test eax, eax
jne 0x140006606
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x1400065de
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400067c0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400067e3
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x1400067e3
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400067e4
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x14000681e
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140006815
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140006820
inc r8d
add rax, 0x28
jmp 0x1400067fc
xor eax, eax
ret

Function at 0x140006891
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140989b90]
mov r8, rcx
mov rcx, r9
call fcn.1400067c0
test eax, eax
je 0x1400068bd
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.1400067e4
xor eax, eax
add rsp, 0x28
ret
Function at 0x140042b60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov dword [rsp], 0
mov dword [rsp + 0x10], 0
mov dword [rsp + 0xc], 0
mov dword [rsp + 8], 0
mov dword [rsp + 8], 0
jmp 0x140042ba7
mov eax, dword [rsp + 8]
add eax, 1
mov dword [rsp + 8], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 8], eax
jae 0x140042c94
mov eax, dword [rsp]
add eax, 1
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov dword [rsp], eax
movsxd rcx, dword [rsp]
mov rax, qword [rsp + 0x30]
movzx ecx, byte [rax + rcx]
mov eax, dword [rsp + 0x10]
add eax, ecx
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov dword [rsp + 0x10], eax
movsxd rcx, dword [rsp]
mov rax, qword [rsp + 0x30]
movzx eax, byte [rax + rcx]
mov byte [rsp + 4], al
movsxd r8, dword [rsp + 0x10]
movsxd rdx, dword [rsp]
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x30]
movzx eax, byte [rax + r8]
mov byte [rcx + rdx], al
movsxd rdx, dword [rsp + 0x10]
mov rcx, qword [rsp + 0x30]
movzx eax, byte [rsp + 4]
mov byte [rcx + rdx], al
movsxd rcx, dword [rsp]
mov rax, qword [rsp + 0x30]
movzx edx, byte [rax + rcx]
movsxd rcx, dword [rsp + 0x10]
mov rax, qword [rsp + 0x30]
movzx ecx, byte [rax + rcx]
mov eax, edx
add eax, ecx
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov dword [rsp + 0xc], eax
mov edx, dword [rsp + 8]
movsxd rcx, dword [rsp + 0xc]
mov rax, qword [rsp + 0x30]
movzx ecx, byte [rax + rcx]
mov rax, qword [rsp + 0x38]
movzx edx, byte [rax + rdx]
xor edx, ecx
mov ecx, dword [rsp + 8]
mov rax, qword [rsp + 0x38]
mov byte [rax + rcx], dl
jmp 0x140042b9c
add rsp, 0x28
ret
Function at 0x140078794
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov r10d, r8d
mov r11, rdx
mov r9d, ecx
test rdx, rdx
jne 0x1400787b3
xor eax, eax
jmp 0x1400788c6
not r9d
lea rsi, [0x1400b0bc0]
cmp r10d, 8
jb 0x14007889b
mov rbx, r10
shr rbx, 3
movzx ecx, byte [r11]
mov eax, r9d
shr r9d, 8
xor rcx, rax
add r11, 8
add r10d, 0xfffffff8
movzx eax, cl
movzx ecx, byte [r11 - 7]
mov edx, dword [rsi + rax*4]
xor edx, r9d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r11 - 6]
mov r8d, dword [rsi + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r11 - 5]
mov edx, dword [rsi + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r11 - 4]
mov r8d, dword [rsi + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r11 - 3]
mov edx, dword [rsi + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r11 - 2]
mov r8d, dword [rsi + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r11 - 1]
mov edx, dword [rsi + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
mov r9d, dword [rsi + rax*4]
xor r9d, edx
sub rbx, 1
jne 0x1400787ce
test r10d, r10d
je 0x1400788c0
movzx ecx, byte [r11]
mov eax, r9d
inc r11
xor rcx, rax
shr eax, 8
movzx edx, cl
mov r9d, dword [rsi + rdx*4]
xor r9d, eax
add r10d, 0xffffffff
jne 0x1400788a0
not r9d
mov eax, r9d
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
ret

Function at 0x1400788d4
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov r9d, dword [rcx]
movsx rax, dl
mov r10, rcx
mov r8, r9
shr r9d, 8
xor r8, rax
movzx eax, r8b
lea r8, [0x1400b0bc0]
mov edx, dword [r8 + rax*4]
xor edx, r9d
mov dword [rcx], edx
movzx eax, dl
mov edx, dword [rcx + 8]
add eax, dword [rcx + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [rcx + 4], eax
movzx eax, byte [r10 + 7]
movzx ecx, dl
xor rcx, rax
shr edx, 8
mov eax, dword [r8 + rcx*4]
xor eax, edx
mov dword [r10 + 8], eax
ret
Function at 0x140096abc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov r8d, dword [rcx + 0x10]
mov rbx, rcx
and r8d, 7
je 0x140096ae8
cmp dword [rcx + 0x10], r8d
jge 0x140096ade
call fcn.140096334
mov ecx, r8d
shr dword [rbx + 0x14], cl
sub dword [rbx + 0x10], r8d
xor ecx, ecx
cmp dword [rbx + 0x10], ecx
jle 0x140096b0c
lea rdx, [rsp + 0x30]
mov al, byte [rbx + 0x14]
add dword [rbx + 0x10], 0xfffffff8
shr dword [rbx + 0x14], 8
mov byte [rdx], al
inc ecx
inc rdx
cmp dword [rbx + 0x10], 0
jg 0x140096af4
movsxd rdx, ecx
jmp 0x140096b30
mov rax, qword [rbx]
cmp rax, qword [rbx + 8]
jb 0x140096b1e
xor eax, eax
jmp 0x140096b29
movzx ecx, byte [rax]
inc rax
mov qword [rbx], rax
mov eax, ecx
mov byte [rsp + rdx + 0x30], al
inc rdx
cmp rdx, 4
jl 0x140096b11
movzx eax, byte [rsp + 0x30]
movzx edx, byte [rsp + 0x31]
movzx ecx, byte [rsp + 0x33]
shl edx, 8
shl ecx, 8
add edx, eax
movzx eax, byte [rsp + 0x32]
add ecx, eax
mov eax, edx
xor eax, 0xffff
cmp ecx, eax
je 0x140096b6d
lea rcx, str.zlib_corrupt
call fcn.1400937d4
jmp 0x140096bbb
mov rax, qword [rbx]
movsxd rdi, edx
lea rcx, [rdi + rax]
cmp rcx, qword [rbx + 8]
jbe 0x140096b86
lea rcx, str.read_past_buffer
jmp 0x140096b66
mov rax, qword [rbx + 0x18]
lea rcx, [rdi + rax]
cmp rcx, qword [rbx + 0x28]
jbe 0x140096ba0
mov rcx, rbx
call fcn.140096364
test eax, eax
je 0x140096bbb
mov rdx, qword [rbx]
mov rcx, qword [rbx + 0x18]
mov r8, rdi
call fcn.14009bc32
add qword [rbx], rdi
add qword [rbx + 0x18], rdi
mov eax, 1
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400ff790
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x50
mov r12, r9
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
test r8, r8
jne 0x1400ff7bd
xor al, al
jmp 0x1400ff91f
mov rax, qword [0x14011f670]
lea rcx, [rsp]
xor r11d, r11d
mov qword [rcx], rax
mov rax, qword [0x14011f678]
mov qword [rsp + 0x60], rbp
mov qword [rcx + 8], rax
mov rax, qword [0x14011f680]
mov rdx, r11
mov qword [rcx + 0x10], rax
mov rax, qword [0x14011f688]
mov qword [rcx + 0x18], rax
mov rax, qword [0x14011f690]
mov qword [rcx + 0x20], rax
mov rax, qword [0x14011f698]
mov qword [rcx + 0x28], rax
mov rax, qword [0x14011f6a0]
mov qword [rcx + 0x30], rax
mov rax, qword [0x14011f6a8]
mov qword [rcx + 0x38], rax
movzx eax, byte [0x14011f6b0]
mov byte [rcx + 0x40], al
mov rax, qword [r9]
mov rcx, r8
lea rbp, [r8 + rax]
test rbx, rbx
je 0x1400ff911
add r8, 4
nop word [rax + rax]
movzx r9d, byte [rdx + rdi]
inc rdx
shl r9d, 0x10
cmp rdx, rbx
jne 0x1400ff869
mov r11d, 2
jmp 0x1400ff88d
movzx eax, byte [rdx + rdi]
inc rdx
shl eax, 8
or r9d, eax
cmp rdx, rbx
jne 0x1400ff883
mov r11d, 1
jmp 0x1400ff88d
movzx eax, byte [rdx + rdi]
or r9d, eax
inc rdx
mov r10d, r9d
and r9d, 0x3f
cmp r8, rbp
ja 0x1400ff935
mov rax, r10
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx], al
mov rax, r10
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx + 1], al
cmp r11, 1
jbe 0x1400ff8d2
mov byte [rcx + 2], 0x3d
add rcx, 3
add r8, 3
jmp 0x1400ff8ea
shr r10, 6
add rcx, 3
and r10d, 0x3f
add r8, 3
movzx eax, byte [rsp + r10]
mov byte [rcx - 1], al
test r11, r11
je 0x1400ff8fa
mov byte [rcx], 0x3d
inc rcx
inc r8
jmp 0x1400ff908
movzx eax, byte [rsp + r9]
inc rcx
inc r8
mov byte [rcx - 1], al
cmp rdx, rbx
jb 0x1400ff850
sub rcx, rsi
mov al, 1
mov qword [r12], rcx
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r12
ret
xor al, al
jmp 0x1400ff91a