joyce8/EMBER2024-capa huggingface dataset:
Function at 0x465660
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp byte [sym.a.out.exe_runtime.useAeshash], 0
je 0x46567f
mov rax, qword [rsp + 8]
mov rcx, qword [rax + 8]
mov rax, qword [rax]
lea rdx, [rsp + 0x18]
jmp 0x462b20
jmp sym.a.out.exe_runtime.strhashFallback

Function at 0x4656a0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp byte [sym.a.out.exe_runtime.useAeshash], 0
je 0x4656dc
mov rax, qword [rsp + 8]
movq xmm0, qword [rsp + 0x10]
pinsrd xmm0, dword [rax], 2
aesenc xmm0, xmmword [sym.a.out.exe_runtime.aeskeysched]
aesenc xmm0, xmmword [0x00607570]
aesenc xmm0, xmmword [0x00607580]
movq qword [rsp + 0x18], xmm0
ret
jmp sym.a.out.exe_runtime.memhash32Fallback

Function at 0x465700
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp byte [sym.a.out.exe_runtime.useAeshash], 0
je 0x46573d
mov rax, qword [rsp + 8]
movq xmm0, qword [rsp + 0x10]
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [sym.a.out.exe_runtime.aeskeysched]
aesenc xmm0, xmmword [0x00607570]
aesenc xmm0, xmmword [0x00607580]
movq qword [rsp + 0x18], xmm0
ret
jmp sym.a.out.exe_runtime.memhash64Fallback

Function at 0x467040
Capabilities:
Access peb ldr_data

Disassembly:
lea rax, [sym.a.out.exe_runtime.lastcontinuehandler]
jmp 0x466de0

Function at 0x478e80
Capabilities:
Encode data using base64

Disassembly:
sub rsp, 0x18
mov qword [rsp + 0x10], rbp
lea rbp, [rsp + 0x10]
mov rdx, qword [rsp + 0x20]
mov rbx, qword [rdx + 8]
lea rsi, [rbx + 0x2e]
imul rsi, rsi, 0xffffffffffffffe4
movabs rax, 0x5816058160581606
mov rcx, rdx
imul rsi
sar rdx, 5
sar rsi, 0x3f
sub rdx, rsi
lea rsi, [rdx + 0x15c]
sar rsi, 0x3f
shr rsi, 0x3d
lea rdx, [rsi + rdx]
lea rdx, [rdx + 0x15c]
sar rdx, 3
cmp rdx, 0x57
jae 0x478f59
lea rsi, [rdx + rdx*2]
lea rdi, sym.a.out.exe_strconv.powersOfTen
mov r8, qword [rdi + rsi*8 + 8]
lea r9, [r8 + rbx]
lea r9, [r9 + 0x40]
cmp r9, 0xffffffffffffffc4
jge 0x478f02
inc rdx
nop
jmp 0x478ed8
cmp r9, 0xffffffffffffffe0
jle 0x478f0d
dec rdx
jmp 0x478ed8
mov rbx, qword [rdi + rsi*8]
mov rax, qword [rcx]
mov rsi, rdx
mul rbx
shr rax, 0x3f
add rdx, rax
mov qword [rcx], rdx
mov rdx, qword [rcx + 8]
lea rdx, [rdx + r8]
lea rdx, [rdx + 0x40]
mov qword [rcx + 8], rdx
mov rcx, rsi
shl rsi, 3
lea rdx, [rsi - 0x15c]
neg rdx
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x30], rcx
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
mov rax, rdx
mov ecx, 0x57
call sym.a.out.exe_runtime.panicIndex
nop
int3
Function at 0x47eb60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
cmp rsp, qword [rcx + 0x10]
jbe 0x47eca6
sub rsp, 0x18
mov qword [rsp + 0x10], rbp
lea rbp, [rsp + 0x10]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x47ec6d
mov rdx, qword [rsp + 0x38]
nop dword [rax + rax]
cmp rcx, rdx
ja 0x47eca0
mov rdx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x40]
cmp rdx, rbx
jne 0x47ec34
mov rsi, qword [rsp + 0x20]
movzx edi, byte [rsi + 0x400]
movzx r8d, byte [rsi + 0x401]
lea rax, [rcx - 1]
mov r9, qword [rsp + 0x30]
cmp rax, r9
jae 0x47ec77
xor eax, eax
jmp 0x47ec17
movzx r9d, byte [rbx + rax]
inc edi
movzx r10d, dil
mov r11d, dword [rsi + r10*4]
add r8d, r11d
movzx r12d, r8b
mov r13d, dword [rsi + r12*4]
mov dword [rsi + r10*4], r13d
mov dword [rsi + r12*4], r11d
lea r10d, [r11 + r13]
movzx r10d, r10b
xor r9d, dword [rsi + r10*4]
mov byte [rdx + rax], r9b
inc rax
cmp rax, rcx
jl 0x47ebe2
mov byte [rsi + 0x400], dil
mov byte [rsi + 0x401], r8b
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
nop
mov rsi, rdx
lea rdi, [rbx + rcx]
lea rdi, [rdi - 1]
cmp rdx, rdi
ja 0x47ec65
mov rdx, rbx
lea rdi, [rcx + rsi]
lea rdi, [rdi - 1]
cmp rbx, rdi
jbe 0x47ec7f
mov rbx, rdx
mov rdx, rsi
nop dword [rax + rax]
jmp 0x47ebb8
mov rdx, rsi
jmp 0x47ebb8
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
mov rcx, r9
call sym.a.out.exe_runtime.panicIndex
lea rax, [0x0051e2e0]
mov qword [rsp], rax
lea rax, sym.a.out.exe_crypto_rc4..stmp_0
mov qword [rsp + 8], rax
call sym.a.out.exe_runtime.gopanic
nop dword [rax + rax]
call sym.a.out.exe_runtime.panicSliceAcap
nop
call sym.a.out.exe_runtime.morestack_noctxt
jmp sym.a.out.exe_crypto_rc4._Cipher_.XORKeyStream

Function at 0x488780
Capabilities:
Hash data using fnv

Disassembly:
mov rax, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov edx, dword [rsp + 8]
xor ebx, ebx
jmp 0x4887a1
movzx esi, byte [rax + rbx]
inc rbx
imul edx, edx, 0x1000193
xor edx, esi
cmp rbx, rcx
jl 0x488792
mov dword [rsp + 0x28], edx
ret
Function at 0x4a9d80
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x28
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateEventA]
test rax, rax
mov qword [0x0060a4f0], rax
je 0x4a9db5
lea rcx, [0x0060a500]
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call qword [sym.imp.msvcrt.dll___iob_func]
lea rcx, str.runtime:_failed_to_create_runtime_initialization_wait_event._n
lea r9, [rax + 0x60]
mov r8d, 0x3d
mov edx, 1
call sub.msvcrt.dll_fwrite
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x4a9e50
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x20
mov r8, rdx
xor edx, edx
call qword [sym.imp.msvcrt.dll__beginthread]
cmp rax, 0xffffffffffffffff
je 0x4a9e6c
add rsp, 0x20
pop rbx
ret
call qword [sym.imp.msvcrt.dll__errno]
mov ebx, dword [rax]
call qword [sym.imp.msvcrt.dll___iob_func]
lea rdx, [0x005c3870]
lea rcx, [rax + 0x60]
mov r8d, ebx
call sub.msvcrt.dll_fprintf
call sub.msvcrt.dll_abort
nop
nop word cs:[rax + rax]

Function at 0x4a9f60
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x28
call sym.a.out.exe__cgo_maybe_run_preinit
lea rcx, [0x0060a500]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x0060a500]
mov dword [0x0060a4e8], 1
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [0x0060a4f0]
call qword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x4a9fa3
add rsp, 0x28
ret
call qword [sym.imp.msvcrt.dll___iob_func]
lea rcx, str.runtime:_failed_to_signal_runtime_initialization_complete._n
lea r9, [rax + 0x60]
mov r8d, 0x3b
mov edx, 1
call sub.msvcrt.dll_fwrite
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x4aa030
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, 0x18
call sub.msvcrt.dll_malloc
test rax, rax
je 0x4aa06a
mov rdx, qword [rbx]
mov rcx, rax
mov qword [rax], rdx
mov rdx, qword [rbx + 8]
mov qword [rax + 8], rdx
mov rdx, qword [rbx + 0x10]
mov qword [rax + 0x10], rdx
add rsp, 0x20
pop rbx
jmp sym.a.out.exe__cgo_sys_thread_start
call qword [sym.imp.msvcrt.dll___iob_func]
lea rcx, str.runtime_cgo:_out_of_memory_in_thread_start_n
lea r9, [rax + 0x60]
mov r8d, 0x2b
mov edx, 1
call sub.msvcrt.dll_fwrite
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rdi, qword [rcx]
mov rsi, qword [rcx + 8]
mov rbx, qword [rcx + 0x10]
call fcn.004fca58
mov qword gs:[0x28], rsi
mov rax, qword gs:[0x28]
mov qword [rax], rdi
mov rcx, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp sym.a.out.exe_crosscall_amd64

Function at 0x4aa0f0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x20
xor edx, edx
mov r8, rcx
lea rcx, [0x004aa0a0]
call qword [sym.imp.msvcrt.dll__beginthread]
cmp rax, 0xffffffffffffffff
je 0x4aa113
add rsp, 0x20
pop rbx
ret
call qword [sym.imp.msvcrt.dll__errno]
mov ebx, dword [rax]
call qword [sym.imp.msvcrt.dll___iob_func]
lea rdx, str.runtime:_failed_to_create_new_OS_thread___d__n
lea rcx, [rax + 0x60]
mov r8d, ebx
call sub.msvcrt.dll_fprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
Function at 0x4aaa30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
movzx eax, byte [rcx + 0x220]
movzx r12d, byte [rcx + 0x92]
and eax, 1
cmp dword [rcx + 0x254], 1
mov rbx, rcx
movzx ecx, byte [rcx + 0x91]
sbb ebp, ebp
not ebp
and ebp, 0xe
or ebp, eax
test cl, 0xc
mov eax, ecx
setne dl
and eax, 1
shl edx, 2
or edx, ebp
lea ebp, [rax*8]
or ebp, edx
and ecx, 2
setne al
shl eax, 4
or ebp, eax
cmp r12b, bpl
je 0x4aabbc
lea r9, [rbx + 0xbb8]
mov eax, ebp
mov byte [rbx + 0x92], bpl
and eax, 3
cmp al, 1
je 0x4aac35
mov rdi, qword [sym.a.out.exe_lj_bc_ofs]
mov rsi, qword [sym.a.out.exe_lj_BC_ISLT]
mov rcx, qword [rbx + 0x12f0]
mov rdx, qword [rbx + 0x1308]
movzx r13d, word [rdi + 0xac]
movzx r14d, word [rdi + 0xb2]
mov rax, qword [rbx + 0x1320]
add r13, rsi
add r14, rsi
mov r15d, r12d
mov qword [rbx + 0x12e8], rcx
xor r15d, ebp
mov qword [rbx + 0x1300], rdx
test r15b, 6
mov qword [rbx + 0x1318], rax
je 0x4aabd0
test bpl, 6
je 0x4aacdf
lea rax, [sym.a.out.exe_lj_vm_record]
test bpl, 2
lea rdx, [sym.a.out.exe_lj_vm_inshook]
cmovne rdx, rax
mov rax, r9
lea rcx, [rbx + 0xe60]
nop dword [rax]
mov qword [rax], rdx
add rax, 8
cmp rax, rcx
jne 0x4aab40
and r15d, 8
je 0x4aac26
test bpl, 8
jne 0x4aac7c
xor eax, eax
movzx edx, word [rax + rdi + 0xaa]
add rdx, rsi
mov qword [r9 + rax*4 + 0x2a8], rdx
add rax, 2
cmp rax, 0x8c
jne 0x4aab62
mov qword [rbx + 0xe60], r13
mov qword [rbx + 0xe78], r14
and ebp, 1
je 0x4aabbc
and r12d, 1
jne 0x4aabbc
movzx eax, word [rbx + 0x7a4]
lea edx, [rax + rax]
lea rax, [rbx + 0xb38]
sub edx, 1
nop
mov word [rax], dx
add rax, 2
cmp rax, r9
jne 0x4aabb0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
test bpl, 6
jne 0x4aab4c
test bpl, 0x10
mov qword [rbx + 0xe10], rcx
mov qword [rbx + 0xe28], rdx
mov qword [rbx + 0xe40], rax
je 0x4aaca2
mov rax, qword [sym.a.out.exe_lj_vm_rethook]
and r15d, 8
mov qword [rbx + 0xde0], rax
mov qword [rbx + 0xde8], rax
mov qword [rbx + 0xdf0], rax
mov qword [rbx + 0xdf8], rax
jne 0x4aab56
test bpl, 8
jne 0x4aab8f
jmp 0x4aab81
mov rdi, qword [sym.a.out.exe_lj_bc_ofs]
mov rsi, qword [sym.a.out.exe_lj_BC_ISLT]
movzx ecx, word [rdi + 0x96]
movzx edx, word [rdi + 0x9c]
movzx eax, word [rdi + 0xa2]
movzx r13d, word [rdi + 0xaa]
movzx r14d, word [rdi + 0xb0]
add rcx, rsi
add rdx, rsi
add rax, rsi
add r13, rsi
add r14, rsi
jmp 0x4aaaed
mov rdx, qword [sym.a.out.exe_lj_vm_callhook]
lea rax, [rbx + 0xe60]
lea rcx, [rbx + 0x1090]
mov qword [rax], rdx
add rax, 8
cmp rcx, rax
jne 0x4aac91
jmp 0x4aab8f
mov rax, qword [rbx + 0x12b8]
mov qword [rbx + 0xde0], rax
mov rax, qword [rbx + 0x12c0]
mov qword [rbx + 0xde8], rax
mov rax, qword [rbx + 0x12c8]
mov qword [rbx + 0xdf0], rax
mov rax, qword [rbx + 0x12d0]
mov qword [rbx + 0xdf8], rax
jmp 0x4aab4c
lea rdx, [rbx + 0x1090]
mov rcx, r9
mov r8d, 0x2a8
call fcn.004fca10
test bpl, 0x10
mov r9, rax
je 0x4aab4c
jmp 0x4aabf9
Function at 0x4b9ae0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x40
lea rcx, str.ntdll.dll
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.NtAllocateVirtualMemory
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x0060a540], rax
mov qword [rsp + 0x30], 0x20000
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [rsp + 0x38]
mov r8d, 1
mov rcx, 0xffffffffffffffff
lea r9, [rsp + 0x30]
mov esi, eax
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0x3000
call qword [0x0060a540]
mov ecx, esi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
jne 0x4b9c37
mov rsi, qword [rsp + 0x38]
cmp rsi, 0xffffffffffffffff
je 0x4b9c37
lea rax, [rsi + 0x10]
mov r8d, 0x368
mov rbx, rax
neg rbx
and ebx, 7
test al, 7
cmovne rdi, rbx
xor edx, edx
lea rbx, [rsi + rdi]
lea rdi, [rbx + 0x10]
mov rcx, rdi
call sub.msvcrt.dll_memset
mov qword [rbx + 0x358], rsi
lea rdx, [rbx + 0x48]
mov qword [rbx + 8], 0x36b
lea rcx, [rbx + 0x248]
mov qword [rbx + 0x360], 0x20000
mov qword [rbx + 0x40], 0xff
nop dword [rax]
mov qword [rdx + 0x18], rdx
mov qword [rdx + 0x10], rdx
add rdx, 0x10
cmp rcx, rdx
jne 0x4b9bd0
lea rcx, [rbx + 0x378]
add rsi, 0x20000
lea rax, [rbx + 0x368]
mov r8, rcx
mov rdx, rsi
sub rdx, rax
neg r8
sub rdx, 0x40
and r8d, 7
and ecx, 7
cmovne rcx, r8
sub rdx, rcx
add rax, rcx
mov qword [rbx + 0x20], rdx
or rdx, 1
mov qword [rbx + 0x30], rax
mov qword [rax + 8], rdx
mov qword [rsi - 0x38], 0x40
mov qword [rbx + 0x38], 0x200000
mov rax, rdi
add rsp, 0x40
pop rbx
pop rsi
pop rdi
ret

Function at 0x4ba740
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x28
call qword [sym.imp.msvcrt.dll___iob_func]
mov r8d, 0x2b
mov edx, 1
lea r9, [rax + 0x60]
lea rcx, str.Must_use_luaL_newstate___for_64_bit_target_n
call sub.msvcrt.dll_fwrite
xor eax, eax
add rsp, 0x28
ret

Function at 0x4bc936
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp dword [rdx + rax*8 + 4], 0xfffeffff
jae sym.a.out.exe_lj_vmeta_unm
movsd xmm0, qword [rdx + rax*8]
movabs rax, 0x8000000000000000
movq xmm1, rax
xorps xmm0, xmm1
movsd qword [rdx + rcx*8], xmm0
mov eax, dword [rsi]
movzx ecx, ah
movzx ebp, al
add esi, 4
shr eax, 0x10
jmp qword [rbx + rbp*8]

Function at 0x4bdcc0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
test esi, 4
je sym.a.out.exe_lj_cont_dispatch
and esi, 0xfffffff8
sub edx, esi
lea rcx, [rcx + rsi - 8]
mov esi, dword [rdx - 4]
mov dword [rdx + rcx + 4], 0xfffffffd

Function at 0x4bdce1
Capabilities:
Encrypt data using rc4 prga

Disassembly:
add eax, 1
je sym.a.out.exe_lj_vm_unwind_yield
mov dword [rsp + 0x54], eax
test esi, 3
je 0x4bd783
Function at 0x4bdcfa
Capabilities:
Encrypt data using rc4 prga

Disassembly:
xor esi, 1
test esi, 3
jne sym.a.out.exe_lj_vm_returnp
mov dword [rbx - 0xad0], 0xfffffffe
and esi, 0xfffffff8
sub esi, edx
neg esi
sub eax, 1
je 0x4bdd2b
mov rbp, qword [rdx + rcx]
mov qword [rdx - 8], rbp
add edx, 8
sub eax, 1
jne 0x4bdd1b
mov ebp, dword [rsp + 0x60]
mov dword [rbp + 0x10], esi
mov eax, dword [rsp + 0x54]
mov ecx, dword [rsp + 0x58]
cmp ecx, eax
jne 0x4bdd58
sub edx, 8
mov dword [rbp + 0x18], edx
jb 0x4bdd6e
cmp edx, dword [rbp + 0x20]
ja 0x4bdd79
mov dword [rdx - 4], 0xffffffff
add edx, 8
add eax, 1
jmp 0x4bdd3a
test ecx, ecx
je 0x4bdd3e
sub ecx, eax
lea edx, [rdx + rcx*8]
jmp 0x4bdd3e
mov dword [rbp + 0x18], edx
mov dword [rsp + 0x54], eax
mov edx, ecx
mov ecx, ebp
call sym.a.out.exe_lj_state_growstack
mov edx, dword [rbp + 0x18]
jmp 0x4bdd32

Function at 0x4bfd90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rbp, sym.a.out.exe_lj_str_free
movzx edi, byte [rcx + 0x28]
mov r13, rcx
mov r12, rdx
mov esi, r8d
xor edi, 3
jmp 0x4bfdcb
movzx edx, byte [r13 + 0x28]
and eax, 0xfffffff8
mov r12, rbx
and edx, 3
or eax, edx
mov byte [rbx + 4], al
sub esi, 1
mov ebx, dword [r12]
test rbx, rbx
je 0x4bfe24
test esi, esi
je 0x4bfe24
cmp byte [rbx + 5], 6
je 0x4bfe10
movzx eax, byte [rbx + 4]
mov edx, eax
xor edx, 3
test dl, dil
jne 0x4bfdb5
mov eax, dword [rbx]
mov dword [r12], eax
mov eax, dword [r13 + 0x30]
cmp rbx, rax
je 0x4bfe34
movzx eax, byte [rbx + 5]
mov rdx, rbx
mov rcx, r13
sub eax, 4
call qword [rbp + rax*8]
jmp 0x4bfdc8
lea rdx, [rbx + 0x28]
mov r8d, 0x7fffff00
mov rcx, r13
call fcn.004bfd90
jmp 0x4bfdde
mov rax, r12
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov eax, dword [rbx]
mov dword [r13 + 0x30], eax
jmp 0x4bfdfb

Function at 0x4c6350
Capabilities:
Write file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
xor r9d, r9d
mov r8d, 1
mov ebx, dword [rcx + 8]
movzx eax, byte [rbx + 0x91]
mov rsi, rcx
movzx edi, byte [rbx + 0x93]
mov byte [rbx + 0x93], 0
mov ebp, eax
or eax, 0x30
mov byte [rbx + 0x91], al
mov eax, dword [rcx + 0x24]
and ebp, 0xfffffff0
add rdx, rax
call sym.a.out.exe_lj_vm_pcall
test eax, eax
jne 0x4c63d0
movzx eax, byte [rbx + 0x91]
and eax, 0xf
or eax, ebp
cmp byte [rbx + 0x93], 0xff
mov byte [rbx + 0x91], al
je 0x4c63bd
mov byte [rbx + 0x93], dil
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
sub qword [rsi + 0x18], 8
mov r12, qword [sym.imp.msvcrt.dll___iob_func]
call r12
mov edx, 1
mov r8d, 0x13
lea rcx, str.VM_handler_failed:
lea r9, [rax + 0x60]
call sub.msvcrt.dll_fwrite
call r12
lea rcx, [0x005c628a]
lea rdx, [rax + 0x60]
mov rax, qword [rsi + 0x18]
cmp dword [rax + 4], 0xfffffffb
je 0x4c6430
call sub.msvcrt.dll_fputs
call r12
mov ecx, 0xa
lea rdx, [rax + 0x60]
call sub.msvcrt.dll_fputc
jmp 0x4c639b
mov ecx, dword [rax]
add rcx, 0x10
jmp 0x4c6412
Function at 0x4cd580
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov esi, r9d
mov r9, qword [rcx + 0x10]
movzx eax, dx
mov r12d, r8d
mov rbx, rcx
mov ebp, edx
lea r8, [r9 + rax*8]
movzx eax, byte [r8 + 5]
cmp eax, 0x34
mov edi, eax
jle 0x4cd612
cmp eax, r12d
jg 0x4cd612
xor eax, eax
jmp 0x4cd5ce
add rax, 1
cmp rax, 0x10
je 0x4cd660
cmp dx, word [rbx + rax*8 + 0x8b8]
jne 0x4cd5c0
mov ecx, dword [rbx + rax*8 + 0x8bc]
cmp esi, ecx
ja 0x4cd5c0
xor ecx, esi
and ecx, 0xfff
jne 0x4cd5c0
movzx eax, word [rbx + rax*8 + 0x8ba]
mov rdx, rax
movzx eax, byte [r9 + rax*8 + 4]
shl eax, 0x18
add eax, edx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
test esi, 0x800
je 0x4cd6f4
movzx edx, byte [r8 + 4]
mov ecx, 0x604208
mov eax, ebp
bt ecx, edx
jb 0x4cd603
mov eax, 0x5515
mov rcx, rbx
mov word [rbx + 0x98], bp
mov word [rbx + 0x9c], ax
mov word [rbx + 0x9a], si
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp sym.a.out.exe_lj_opt_fold
movzx r14d, word [r8 + 2]
mov r9d, esi
mov rcx, rbx
shl edi, 8
movzx edx, word [r8]
mov r8d, r12d
sub di, 0xd00
call 0x4cd580
mov r9d, esi
mov r8d, r12d
mov edx, r14d
mov rcx, rbx
mov r13d, eax
call 0x4cd580
mov edx, esi
mov rcx, rbx
mov word [rbx + 0x98], r13w
shr edx, 5
mov word [rbx + 0x9a], ax
and edx, 0x1f
or edi, edx
mov word [rbx + 0x9c], di
call sym.a.out.exe_lj_opt_fold
mov edx, dword [rbx + 0x938]
lea ecx, [rdx + 1]
lea rdx, [rbx + rdx*8]
and ecx, 0xf
mov dword [rbx + 0x938], ecx
mov word [rdx + 0x8b8], bp
mov word [rdx + 0x8ba], ax
mov dword [rdx + 0x8bc], esi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov eax, ebp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov eax, edx
and eax, 0x1f000000
cmp eax, 0xe000000
je 0x4cdc90
mov r9d, 0xab3
mov r8d, 0x37
jmp 0x4cd580
mov eax, 0x5515
mov word [rcx + 0x98], dx
mov edx, 0x12ae
mov word [rcx + 0x9c], ax
mov word [rcx + 0x9a], dx
jmp sym.a.out.exe_lj_opt_fold
Function at 0x4dad00
Capabilities:
Inspect section memory permissions

Disassembly:
mov eax, 0xffffffff
cmp edx, 0xffff
ja 0x4dae34
test dl, 1
je 0x4dad18
mov eax, dword [rcx]
test dl, 2
je 0x4dad28
mov r8d, dword [rcx + 4]
cmp eax, r8d
cmova eax, r8d
test dl, 4
je 0x4dad38
mov r8d, dword [rcx + 8]
cmp eax, r8d
cmova eax, r8d
test dl, 8
je 0x4dad48
mov r8d, dword [rcx + 0xc]
cmp eax, r8d
cmova eax, r8d
test dl, 0x20
je 0x4dad58
mov r8d, dword [rcx + 0x14]
cmp eax, r8d
cmova eax, r8d
test dl, 0x40
je 0x4dad68
mov r8d, dword [rcx + 0x18]
cmp eax, r8d
cmova eax, r8d
test dl, 0x80
je 0x4dad78
mov r8d, dword [rcx + 0x1c]
cmp eax, r8d
cmova eax, r8d
test dh, 1
je 0x4dad88
mov r8d, dword [rcx + 0x20]
cmp eax, r8d
cmova eax, r8d
test dh, 2
je 0x4dad98
mov r8d, dword [rcx + 0x24]
cmp eax, r8d
cmova eax, r8d
test dh, 4
je 0x4dada8
mov r8d, dword [rcx + 0x28]
cmp eax, r8d
cmova eax, r8d
test dh, 8
je 0x4dadb8
mov r8d, dword [rcx + 0x2c]
cmp eax, r8d
cmova eax, r8d
test dh, 0x10
je 0x4dadc8
mov r8d, dword [rcx + 0x30]
cmp eax, r8d
cmova eax, r8d
test dh, 0x20
je 0x4dadd8
mov r8d, dword [rcx + 0x34]
cmp eax, r8d
cmova eax, r8d
test dh, 0x40
je 0x4dade8
mov r8d, dword [rcx + 0x38]
cmp eax, r8d
cmova eax, r8d
test dh, 0x80
je 0x4dadf8
mov r8d, dword [rcx + 0x3c]
cmp eax, r8d
cmova eax, r8d
movzx eax, ax
cmp eax, 0x7fff
jbe 0x4dae2d
mov r8d, dword [rcx + 0xb0]
and edx, r8d
je 0x4dae2d
mov r10, qword [rcx + 0x90]
mov r9d, eax
movzx r9d, byte [r10 + r9*8 + 6]
bt r8d, r9d
jb 0x4dae2d
bsf edx, edx
mov edx, edx
movzx eax, word [rcx + rdx*4]
mov edx, eax
jmp fcn.004dac70
test edx, 0x10000
je 0x4dae3f
mov eax, dword [rcx + 0x40]
test edx, 0x20000
je 0x4dae52
mov r8d, dword [rcx + 0x44]
cmp eax, r8d
cmova eax, r8d
test edx, 0x40000
je 0x4dae65
mov r8d, dword [rcx + 0x48]
cmp eax, r8d
cmova eax, r8d
test edx, 0x80000
je 0x4dae78
mov r8d, dword [rcx + 0x4c]
cmp eax, r8d
cmova eax, r8d
test edx, 0x100000
je 0x4dae8b
mov r8d, dword [rcx + 0x50]
cmp eax, r8d
cmova eax, r8d
test edx, 0x200000
je 0x4dae9e
mov r8d, dword [rcx + 0x54]
cmp eax, r8d
cmova eax, r8d
test edx, 0x400000
je 0x4daeb1
mov r8d, dword [rcx + 0x58]
cmp eax, r8d
cmova eax, r8d
test edx, 0x800000
je 0x4daec4
mov r8d, dword [rcx + 0x5c]
cmp eax, r8d
cmova eax, r8d
test edx, 0x1000000
je 0x4daed7
mov r8d, dword [rcx + 0x60]
cmp eax, r8d
cmova eax, r8d
test edx, 0x2000000
je 0x4daeea
mov r8d, dword [rcx + 0x64]
cmp eax, r8d
cmova eax, r8d
test edx, 0x4000000
je 0x4daefd
mov r8d, dword [rcx + 0x68]
cmp eax, r8d
cmova eax, r8d
test edx, 0x8000000
je 0x4daf10
mov r8d, dword [rcx + 0x6c]
cmp eax, r8d
cmova eax, r8d
test edx, 0x10000000
je 0x4daf23
mov r8d, dword [rcx + 0x70]
cmp eax, r8d
cmova eax, r8d
test edx, 0x20000000
je 0x4daf36
mov r8d, dword [rcx + 0x74]
cmp eax, r8d
cmova eax, r8d
test edx, 0x40000000
je 0x4daf49
mov r8d, dword [rcx + 0x78]
cmp eax, r8d
cmova eax, r8d
test edx, edx
jns 0x4dadf8
mov r8d, dword [rcx + 0x7c]
cmp eax, r8d
cmova eax, r8d
jmp 0x4dadf8
Function at 0x4f1d40
Capabilities:
Query environment variable

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov ebp, dword [rsp + 0x70]
mov rbx, rcx
mov rcx, r8
mov rsi, rdx
mov rdi, r9
call sub.msvcrt.dll_getenv
test rax, rax
je 0x4f1dc1
test ebp, ebp
jne 0x4f1dc1
lea r9, [0x005c9da7]
mov rdx, rax
mov rcx, rbx
lea r8, [0x005c9dab]
call sym.a.out.exe_luaL_gsub
mov rcx, rbx
mov r9, rdi
lea r8, [0x005c9dae]
mov rdx, rax
call sym.a.out.exe_luaL_gsub
mov edx, 0xfffffffe
mov rcx, rbx
call sym.a.out.exe_lua_remove
mov rcx, rbx
call fcn.004f1ca0
mov r8, rsi
mov edx, 0xfffffffe
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp sym.a.out.exe_lua_setfield
mov rdx, rdi
mov rcx, rbx
call sym.a.out.exe_lua_pushstring
jmp 0x4f1da1

Function at 0x4f4870
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rbx
cmp rdx, r8
je 0x4f4925
movzx eax, word [rdx + 2]
mov rcx, qword [rcx]
mov r9, rax
lea rbx, [rcx + rax*8]
cmp byte [rbx + 5], 0x1d
je 0x4f4930
movzx r10d, word [r8 + 2]
mov rax, r10
lea r10, [rcx + r10*8]
movzx r11d, ax
cmp byte [r10 + 5], 0x1d
je 0x4f4940
movzx esi, byte [rdx + 5]
lea eax, [rsi - 0x38]
cmp al, 1
jbe 0x4f4957
movzx eax, byte [r8 + 5]
movzx edx, word [rdx]
sub eax, 0x38
cmp al, 1
jbe 0x4f496e
movzx r8d, word [r8]
cmp r9d, r11d
je 0x4f4920
cmp r9d, 0x7fff
ja 0x4f48f0
xor eax, eax
cmp r11d, 0x7fff
ja 0x4f48f0
pop rbx
pop rsi
ret
cmp sil, 0x38
je 0x4f4980
movzx eax, byte [rbx + 4]
xor al, byte [r10 + 4]
test al, 0x1f
jne 0x4f49ca
cmp edx, r8d
je 0x4f49d0
pop rbx
pop rsi
jmp fcn.004f47e0
cmp edx, r8d
jne 0x4f4913
mov eax, 2
pop rbx
pop rsi
ret
movzx r9d, word [rbx]
lea rbx, [rcx + r9*8]
jmp 0x4f4893
movzx esi, byte [rdx + 5]
movzx r11d, word [r10]
lea eax, [rsi - 0x38]
lea r10, [rcx + r11*8]
cmp al, 1
ja 0x4f48bd
movzx eax, word [rdx]
movzx edx, word [rcx + rax*8]
movzx eax, byte [r8 + 5]
sub eax, 0x38
cmp al, 1
ja 0x4f48d0
movzx eax, word [r8]
movzx r8d, word [rcx + rax*8]
jmp 0x4f48d4
cmp byte [rbx + 5], 0x28
je 0x4f49e0
cmp byte [r10 + 5], 0x28
jne 0x4f490a
mov ebx, r9d
xor esi, esi
movzx eax, word [r10 + 2]
test ax, ax
js 0x4f4a10
movzx r11d, word [r10]
mov r10d, dword [rcx + rax*8]
cmp r9d, r11d
jne 0x4f49b8
xor eax, eax
test r10d, r10d
jne 0x4f48ed
cmp r11d, ebx
jne 0x4f490a
cmp r10d, esi
je 0x4f490a
xor eax, eax
pop rbx
pop rsi
ret
mov eax, 1
jmp 0x4f48ed
movzx eax, word [rbx + 2]
test ax, ax
js 0x4f4986
movzx ebx, word [rbx]
mov esi, dword [rcx + rax*8]
cmp r11d, ebx
jne 0x4f49fe
xor eax, eax
test esi, esi
jne 0x4f48ed
cmp byte [r10 + 5], 0x28
jne 0x4f490a
jmp 0x4f4996
xor r10d, r10d
jmp 0x4f49b8