joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18005a2a0
Capabilities:
Get local ipv4 addresses
List tcp connections and listeners

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x180189e48]
xor rax, rsp
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor ebp, ebp
lea rdx, [rsp + 0x34]
mov dword [rsp + 0x28], ebp
xor r8d, r8d
xor ecx, ecx
mov dword [rsp + 0x20], 5
mov r13d, eax
lea r9d, [rbp + 2]
call qword [sym.imp.IPHLPAPI.DLL_GetExtendedTcpTable]
mov ecx, dword [rsp + 0x34]
call fcn.18011a85c
lea r9d, [rbp + 2]
mov dword [rsp + 0x28], ebp
xor r8d, r8d
mov dword [rsp + 0x20], 5
lea rdx, [rsp + 0x34]
mov rcx, rax
mov r14, rax
call qword [sym.imp.IPHLPAPI.DLL_GetExtendedTcpTable]
test eax, eax
jne 0x18005a3d4
mov r15d, ebp
mov r12d, ebp
mov edi, ebp
cmp dword [r14], ebp
jbe 0x18005a3c5
mov qword [rsp + 0x70], rsi
nop dword [rax]
mov eax, edi
lea rcx, [rax + rax*2]
cmp dword [r14 + rcx*8 + 0x18], r13d
lea rsi, [r14 + rcx*8]
jne 0x18005a3b4
movzx ecx, word [rsi + 0x14]
inc r12d
mov ebx, dword [rsi + 0x10]
call qword [sym.imp.WS2_32.dll_ntohs]
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_htonl]
lea ecx, [rax - 0xa000000]
cmp ecx, 0xffffff
jbe 0x18005a39f
lea ecx, [rax + 0x53f00000]
cmp ecx, 0xfffff
jbe 0x18005a39f
lea ecx, [rax + 0x3f580000]
cmp ecx, 0xffff
jbe 0x18005a39f
add eax, 0x81000000
cmp eax, 0xffffff
ja 0x18005a3a2
inc r15d
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_inet_ntoa]
movzx ecx, word [rsi + 0x14]
call qword [sym.imp.WS2_32.dll_ntohs]
inc edi
cmp edi, dword [r14]
jb 0x18005a340
mov rsi, qword [rsp + 0x70]
cmp r12d, r15d
jne 0x18005a3d4
mov rcx, r14
call fcn.18010d24c
mov al, 1
jmp 0x18005a4cb
mov rcx, r14
call fcn.18010d24c
xor r9d, r9d
mov dword [rsp + 0x34], ebp
lea rax, [rsp + 0x34]
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x20], rax
lea edx, [r9 + 0x10]
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
cmp eax, 0x6f
jne 0x18005a4c9
mov ecx, dword [rsp + 0x34]
call fcn.18011a85c
mov rdi, rax
xor r8d, r8d
lea rax, [rsp + 0x34]
mov r9, rdi
xor ecx, ecx
mov qword [rsp + 0x20], rax
lea edx, [r8 + 0x10]
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
test eax, eax
jne 0x18005a4b4
mov rbx, rdi
test rdi, rdi
je 0x18005a4c1
cmp dword [rbx + 0x68], 1
jne 0x18005a49b
cmp dword [rbx + 0x64], 6
jne 0x18005a49b
mov rcx, qword [rbx + 0x40]
test rcx, rcx
je 0x18005a49b
lea rdx, str.VMware
call fcn.1800f48c4
test rax, rax
jne 0x18005a49b
mov rcx, qword [rbx + 0x40]
lea rdx, str.XyNetTunne
inc ebp
call fcn.1800f48c4
test rax, rax
jne 0x18005a3cd
mov rcx, qword [rbx + 0x40]
lea rdx, str.Netease_UU
call fcn.1800f48c4
test rax, rax
jne 0x18005a3cd
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x18005a441
mov rcx, rdi
call fcn.18010d24c
cmp ebp, 1
setg al
jmp 0x18005a4cb
test rdi, rdi
je 0x18005a4c1
mov rcx, rdi
call fcn.18010d24c
cmp ebp, 1
setg al
jmp 0x18005a4cb
xor al, al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1800f23a0
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x18005f710
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
movsxd r12, edx
mov r15d, r9d
mov rbp, r8
mov r14, rcx
test rcx, rcx
je 0x18005f870
test r8, r8
je 0x18005f870
mov rdi, qword [rsp + 0x60]
test rdi, rdi
je 0x18005f870
mov qword [rsp + 0x40], rbx
mov ecx, 0x100
mov qword [rsp + 0x48], rsi
call fcn.1800f27b0
xor ecx, ecx
mov r10, rax
mov edx, ecx
mov r8, rax
nop
mov byte [r8], dl
lea r8, [r8 + 1]
inc edx
cmp edx, 0x100
jl 0x18005f770
mov r9d, ecx
mov r11d, ecx
mov rbx, r10
nop word [rax + rax]
movzx esi, byte [rbx]
mov eax, r11d
cdq
idiv r15d
movsxd rax, edx
movzx edx, byte [rax + rbp]
add r9d, edx
add r9d, esi
and r9d, 0x800000ff
jge 0x18005f7bd
dec r9d
or r9d, 0xffffff00
inc r9d
movsxd rdx, r9d
inc r11d
movzx eax, byte [rdx + r10]
mov byte [rbx], al
inc rbx
mov byte [rdx + r10], sil
cmp r11d, 0x100
jl 0x18005f790
mov rsi, qword [rsp + 0x48]
mov r8d, ecx
mov rbx, r12
test r12d, r12d
jle 0x18005f854
sub r14, rdi
nop dword [rax]
inc ecx
and ecx, 0x800000ff
jge 0x18005f804
dec ecx
or ecx, 0xffffff00
inc ecx
movsxd r9, ecx
movzx r11d, byte [r9 + r10]
add r8d, r11d
and r8d, 0x800000ff
jge 0x18005f825
dec r8d
or r8d, 0xffffff00
inc r8d
movsxd rdx, r8d
movzx eax, byte [rdx + r10]
mov byte [r9 + r10], al
mov byte [rdx + r10], r11b
movzx eax, byte [r9 + r10]
add eax, r11d
movzx edx, al
movzx eax, byte [rdx + r10]
xor al, byte [r14 + rdi]
mov byte [rdi], al
inc rdi
sub rbx, 1
jne 0x18005f7f0
mov rax, qword [rsp + 0x68]
mov rcx, r10
mov dword [rax], r12d
call fcn.1800f2740
mov rbx, qword [rsp + 0x40]
mov eax, 0xffffffff
jmp 0x18005f872
xor eax, eax
mov rbp, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x1800602f0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x180189e48]
xor rax, rsp
mov qword [rsp + 0x38], rax
movsxd rsi, ecx
mov dword [rsp + 0x2b], 0x38373635
mov word [rsp + 0x21], 0x4342
mov dword [rsp + 0x24], 0x31304645
lea rcx, [rsi + 1]
mov word [rsp + 0x29], 0x3433
mov byte [rsp + 0x23], 0x44
mov word [rsp + 0x2f], 0x39
mov byte [rsp + 0x28], 0x32
mov byte [rsp + 0x20], 0x41
call fcn.1800f27b0
lea r8, [rsi + 1]
xor edx, edx
mov rcx, rax
mov rdi, rax
call fcn.1800f4d70
test rsi, rsi
jle 0x1800603a3
mov qword [rsp + 0x68], rbp
mov rbx, rdi
mov qword [rsp + 0x70], r14
lea rbp, section.vmp3
mov r14d, 0x41
mov ecx, 0x11
call rbp
movsxd rcx, eax
lea rbx, [rbx + 1]
movzx eax, byte [rsp + rcx + 0x20]
test al, al
cmove eax, r14d
mov byte [rbx - 1], al
sub rsi, 1
jne 0x180060377
mov r14, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x68]
mov rax, rdi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1800f23a0
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x1800603c0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x180189e48]
xor rax, rsp
mov qword [rbp - 0x10], rax
xor eax, eax
mov ecx, 0x10
mov qword [0x180192720], rax
xorps xmm0, xmm0
mov byte [0x180192728], al
mov r8d, eax
mov dword [rbp - 0x30], ecx
mov byte [rbp - 0x1c], 0xbe
mov word [rbp - 0x1b], ax
mov byte [rbp - 0x19], al
movups xmmword [0x180192710], xmm0
movdqa xmm0, xmmword [0x18016c510]
movdqu xmmword [rbp - 0x2c], xmm0
test ecx, ecx
je 0x18006044b
nop dword [rax]
mov ecx, r8d
lea rdx, [rbp - 0x2c]
add rdx, rcx
lea ecx, [r8 - 0x52]
inc r8d
xor byte [rdx], cl
mov ecx, dword [rbp - 0x30]
cmp r8d, ecx
jb 0x180060430
xor edx, edx
mov byte [rbp + rcx - 0x2c], al
mov ecx, 8
mov dword [rbp - 0x3c], 0x87849d9e
mov dword [rbp - 0x40], ecx
mov dword [rbp - 0x38], 0xf0f7f28a
mov byte [rbp - 0x34], 0xb6
mov word [rbp - 0x33], dx
mov byte [rbp - 0x31], dl
mov ecx, eax
lea rdx, [rbp - 0x3c]
add rdx, rcx
lea ecx, [rax - 0x52]
inc eax
xor byte [rdx], cl
mov ecx, dword [rbp - 0x40]
cmp eax, ecx
jb 0x180060472
mov byte [rbp + rcx - 0x3c], 0
lea rbx, section.vmp3
mov ecx, 0x11
mov byte [rbp - 0x16], 0
call rbx
movsxd rcx, eax
movzx eax, byte [rbp + rcx - 0x2c]
mov ecx, 9
mov byte [rbp - 0x18], al
call rbx
movsxd rcx, eax
movzx eax, byte [rbp + rcx - 0x3c]
mov ecx, 2
mov byte [rbp - 0x17], al
call fcn.1800602f0
mov ecx, 2
mov r14, rax
call fcn.1800602f0
mov ecx, 2
mov rsi, rax
call fcn.1800602f0
mov ecx, 2
mov rdi, rax
call fcn.1800602f0
mov ecx, 2
mov rbx, rax
call fcn.1800602f0
mov qword [rsp + 0x38], r14
lea r8, [rbp - 0x18]
mov qword [rsp + 0x30], rsi
lea rdx, str._s_s_s_s_s_s
mov qword [rsp + 0x28], rdi
lea rcx, [0x180192710]
mov r9, rax
mov qword [rsp + 0x20], rbx
call sym.dll.dll_sprintf
lea rax, [0x180192710]
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1800f23a0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x180060560
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xc0
mov rax, qword [0x180189e48]
xor rax, rsp
mov qword [rbp + 0x47], rax
lea rsi, section.vmp3
mov dword [rbp - 9], 0x544c5643
mov ecx, 0xa
mov word [rbp - 0x19], 0x5453
mov dword [rbp + 0x2f], 0x572d4457
mov dword [rbp + 0x37], 0x572d4457
mov dword [rbp + 0x3f], 0x54534748
mov dword [rbp - 0x11], 0x45474145
mov word [rbp - 0xd], 0x2d54
mov dword [rbp + 0x13], 0x2d6b7369
mov dword [rbp + 0xf], 0x646e6153
mov word [rbp - 0x15], 0x5a4d
mov word [rbp], 0x534d
mov byte [rbp - 1], 0x44
mov byte [rbp + 2], 0x2d
mov dword [rbp + 8], 0x44535344
mov byte [rbp + 0xc], 0x41
mov byte [rbp + 7], 0x53
mov word [rbp + 0x22], 0x4948
mov word [rbp + 0x1f], 0x4f54
mov word [rbp + 0x24], 0x4142
mov byte [rbp + 0x26], 0x2d
mov byte [rbp + 0x21], 0x53
call rsi
movdqa xmm0, xmmword [0x18016c590]
mov ecx, 0x24
movdqa xmm1, xmmword [0x18016c5a0]
movsxd rbx, eax
xor eax, eax
mov word [rbp - 0x20], ax
xor edx, edx
mov byte [rbp - 0x1e], al
mov dword [rbp - 0x49], ecx
movdqu xmmword [rbp - 0x45], xmm0
mov dword [rbp - 0x25], 0xe8e8f8f8
movdqu xmmword [rbp - 0x35], xmm1
mov byte [rbp - 0x21], 0xd2
nop dword [rax]
mov eax, edx
lea rcx, [rbp - 0x45]
add rcx, rax
lea eax, [rdx - 0x52]
inc edx
xor byte [rcx], al
mov ecx, dword [rbp - 0x49]
cmp edx, ecx
jb 0x180060650
mov byte [rbp + rcx - 0x45], 0
xor edx, edx
lea rcx, [0x180192602]
mov r8d, 0x102
call fcn.1800f4d70
cmp ebx, 9
ja case.default.0x18006069a
lea rdx, [0x180000000]
mov ecx, dword [rdx + rbx*4 + 0x607d4]
add rcx, rdx
jmp rcx
mov eax, dword [rbp - 9]
mov dword [0x180192600], eax
mov ebx, 4
jmp 0x180060783
movzx eax, word [rbp - 0x19]
mov ebx, 2
mov word [0x180192600], ax
jmp 0x180060783
mov eax, dword [rbp + 0x2f]
mov ebx, 5
mov dword [0x180192600], eax
mov byte [0x180192604], 0x58
jmp 0x180060783
mov eax, dword [rbp + 0x37]
mov ebx, 5
mov dword [0x180192600], eax
mov byte [0x180192604], 0x43
jmp 0x180060783
mov eax, dword [rbp + 0x3f]
mov ebx, 5
mov dword [0x180192600], eax
mov byte [0x180192604], 0x2d
jmp 0x180060783
mov eax, dword [rbp - 0x11]
mov ebx, 6
mov dword [0x180192600], eax
movzx eax, word [rbp - 0xd]
mov word [0x180192604], ax
jmp 0x180060783
mov rax, qword [rbp + 0xf]
jmp 0x180060777
movzx eax, word [rbp - 0x15]
mov ebx, 3
mov word [0x180192600], ax
mov byte [0x180192602], 0x2d
jmp 0x180060783
mov eax, dword [rbp - 1]
jmp 0x18006069f
mov eax, dword [rbp + 7]
mov ebx, 7
mov dword [0x180192600], eax
movzx eax, word [rbp + 0xb]
mov word [0x180192604], ax
mov byte [0x180192606], 0x2d
jmp 0x180060783
mov rax, qword [rbp + 0x1f]
mov ebx, 8
mov qword [0x180192600], rax
lea rdi, [0x180192600]
nop word [rax + rax]
mov ecx, 8
call rsi
movsxd rcx, eax
movzx ecx, byte [rbp + rcx - 0x45]
mov byte [rbx + rdi], cl
inc rbx
cmp rbx, 0x10
jl 0x180060790
mov rax, rdi
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1800f23a0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x1800617d0
Capabilities:
Contain obfuscated stackstrings
Encode data using base64

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x4a0]
sub rsp, 0x5a0
mov rax, qword [0x180189e48]
xor rax, rsp
mov qword [rbp + 0x490], rax
mov rsi, r8
mov rdi, rdx
mov r15, rcx
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x40], r8
xor r13d, r13d
mov dword [rsp + 0x30], r13d
xor edx, edx
mov r8d, 0x300
lea rcx, [rbp + 0x190]
call fcn.1800f4d70
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x48], r13b
lea rcx, [0x18016b888]
jmp 0x1801b8864
Function at 0x180063bb0
Capabilities:
Read .ini file

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rsi, r8
mov rbp, rdx
mov r14, rcx
test rdx, rdx
je 0x180063c9c
test r8, r8
je 0x180063c9c
mov qword [rsp + 0x50], rbx
mov ecx, 0x402
mov qword [rsp + 0x58], rdi
mov ebx, 0x200
call fcn.1800f27b0
mov rdi, rax
lea r8, [0x180169b10]
mov rax, qword [r14 + 8]
mov r9, rdi
mov qword [rsp + 0x28], rax
mov rdx, rsi
mov rcx, rbp
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
inc eax
cmp eax, ebx
jb 0x180063c86
mov qword [rsp + 0x60], r15
mov r15, 0xffffffffffffffff
nop word [rax + rax]
mov rcx, rdi
add ebx, 0x200
call fcn.1800f2740
lea ecx, [rbx + 1]
mov eax, 2
mul rcx
cmovo rax, r15
mov rcx, rax
call fcn.1800f27b0
mov rdi, rax
lea r8, [0x180169b10]
mov rax, qword [r14 + 8]
mov r9, rdi
mov qword [rsp + 0x28], rax
mov rdx, rsi
mov rcx, rbp
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
inc eax
cmp eax, ebx
jae 0x180063c30
mov r15, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x50]
mov rax, rdi
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
mov ecx, 2
call fcn.1800f27b0
xor ecx, ecx
mov word [rax], cx
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret

Function at 0x1800643c0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rdi
mov eax, 0x138c8
call fcn.1800f34c0
sub rsp, rax
mov rax, qword [0x180189e48]
xor rax, rsp
mov qword [rsp + 0x138b0], rax
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x9c40
lea rdi, [rsp + 0x138e8]
call fcn.1800f4d70
lea rdx, [0x18016b458]
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_StrCatW]
lea rcx, [rsp + 0x30]
mov rax, 0xffffffffffffffff
nop dword [rax]
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x180064430
lea rbx, [rsp + 0x30]
lea rbx, [rbx + rax*2]
call fcn.18002c2f0
mov r9, qword [rsp + 0x138e0]
mov r8d, 0x7fffffff
mov qword [rsp + 0x28], rdi
mov rdx, rbx
mov qword [rsp + 0x20], 0
mov rcx, qword [rax]
call fcn.180107a4c
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x138b0]
xor rcx, rsp
call fcn.1800f23a0
add rsp, 0x138c8
pop rdi
pop rbx
ret
Function at 0x180065f00
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rax, qword [0x180189e48]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov r14, r8
mov rbx, rdx
mov qword [rsp + 0x20], rdx
xor esi, esi
mov rcx, rdx
cmp qword [rdx + 0x18], 0x10
jb 0x180065f3b
mov rcx, qword [rdx]
lea rdx, [0x18016bb8c]
call fcn.18011d854
mov rdi, rax
test rax, rax
je 0x180065fae
mov rcx, rax
call fcn.180128fa8
mov ecx, eax
call fcn.180128fa0
movsxd rbp, eax
mov dword [r14], ebp
mov ecx, ebp
add ecx, 1
mov rax, 0xffffffffffffffff
cmovb rcx, rax
call fcn.18011a85c
mov rsi, rax
test rax, rax
je 0x180065fa5
lea ecx, [rbp + 1]
movsxd r8, ecx
xor edx, edx
mov rcx, rax
call fcn.1800f4d70
mov rdx, rbp
mov r9, rdi
mov r8d, 1
mov rcx, rsi
call fcn.18010ea98
mov rcx, rdi
call fcn.18010f41c
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x180065fe4
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x180065fdf
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18006601a
mov rcx, r8
call fcn.1800f2740
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], 0
mov rax, rsi
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1800f23a0
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
call fcn.1800f98d4
int3
Function at 0x18007ce60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
movzx r14d, byte [rcx + 0x20]
mov ebp, r8d
mov rbx, qword [rdx]
xor r14d, 3
mov rdi, rdx
mov rsi, rcx
test rbx, rbx
je 0x18007cf28
mov qword [rsp + 0x40], r15
lea r15, fcn.180080140
nop dword [rax]
mov eax, ebp
dec ebp
test eax, eax
je 0x18007cf0d
cmp byte [rbx + 9], 6
jne 0x18007cec0
lea rdx, [rbx + 0x40]
mov r8d, 0xffffffff
mov rcx, rsi
call fcn.18007ce60
movzx ecx, byte [rbx + 8]
mov eax, ecx
xor eax, 3
test r14d, eax
je 0x18007cee1
movzx eax, byte [rsi + 0x20]
and cl, 0xf8
and al, 3
mov rdi, rbx
or cl, al
mov byte [rbx + 8], cl
jmp 0x18007cf05
mov rax, qword [rbx]
mov qword [rdi], rax
cmp rbx, qword [rsi + 0x28]
jne 0x18007cef4
mov rax, qword [rbx]
mov qword [rsi + 0x28], rax
movzx eax, byte [rbx + 9]
mov rdx, rbx
sub eax, 4
mov rcx, rsi
call qword [r15 + rax*8]
mov rbx, qword [rdi]
test rbx, rbx
jne 0x18007cea0
mov r15, qword [rsp + 0x40]
mov rax, rdi
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
mov rax, rdx
jmp 0x18007cf15

Function at 0x18007f010
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword [rcx + 0x38]
mov rsi, r8
add rax, 8
mov rbx, rcx
cmp rdx, rax
jbe 0x18007f124
mov r9, qword [rdx]
movzx eax, r9b
and al, 7
cmp al, 3
jne 0x18007f04d
and r9, 0xfffffffffffffff8
sub rdx, r9
mov r9, qword [rdx]
mov rcx, rdx
test r9b, 3
jne 0x18007f068
movzx eax, byte [r9 - 3]
lea rax, [rax*8 + 0x10]
sub rcx, rax
jmp 0x18007f06f
and r9, 0xfffffffffffffff8
sub rcx, r9
mov rdi, qword [rcx - 8]
movabs rax, 0x7fffffffffff
and rdi, rax
mov r8, rdx
mov rdx, rdi
mov rcx, rbx
call fcn.18007e650
cmp eax, 0xffffffff
je 0x18007f124
mov rcx, qword [rdi + 0x20]
lea r8, [0x180151f10]
mov eax, eax
sub rcx, 0x68
add rax, 0x1a
mov r10d, dword [rcx + rax*4]
lea rdx, [rcx + rax*4]
movzx eax, r10b
movzx r8d, word [r8 + rax*2]
shr r8d, 0xb
cmp r8d, 9
jne 0x18007f0f4
mov eax, r10d
shr eax, 8
movzx r9d, al
cmp r10b, 0x45
lea r8d, [r9 - 3]
cmovne r8d, r9d
mov r9, rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.18007f840
cmp r8d, 0x16
je 0x18007f124
mov rax, qword [rbx + 0x10]
mov rdx, qword [rax + r8*8 + 0x1a8]
lea rax, str.metamethod
add rdx, 0x18
mov qword [rsi], rdx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x18007f840
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov r14, r9
sub rdx, rcx
mov edi, r8d
sub rdx, 0x68
mov rbp, rcx
sar rdx, 2
call fcn.18007e9d0
test rax, rax
jne 0x18007f8f2
lea rsi, [rbp + 0x68]
lea r15, [0x180151f10]
sub rbx, 4
cmp rbx, rsi
jbe 0x18007f8bb
mov eax, dword [rbx]
movzx edx, al
mov ecx, eax
shr ecx, 8
movzx r8d, cl
movzx ecx, word [r15 + rdx*2]
and cx, 7
cmp cx, 2
jne 0x18007f8bf
cmp edi, r8d
jb 0x18007f884
cmp edx, 0x2c
jne 0x18007f8bb
shr eax, 0x10
cmp edi, eax
ja 0x18007f884
xor eax, eax
jmp 0x18007f8fc
cmp cx, 1
jne 0x18007f884
cmp r8d, edi
jne 0x18007f884
cmp edx, 0x12
jne 0x18007f915
mov edi, eax
mov rdx, rbx
sub rdx, rbp
shr edi, 0x10
sub rdx, 0x68
mov r8d, edi
sar rdx, 2
mov rcx, rbp
call fcn.18007e9d0
test rax, rax
je 0x18007f884
mov qword [r14], rax
lea rax, str.local
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
cmp edx, 0x2d
je 0x18007f9b1
cmp edx, 0x36
je 0x18007f98c
cmp edx, 0x39
jne 0x18007f8bb
mov ecx, eax
shr rcx, 0x10
movzx edx, cl
mov rcx, qword [rbp + 0x20]
not rdx
mov rdx, qword [rcx + rdx*8]
add rdx, 0x18
mov qword [r14], rdx
mov r9d, dword [rbx - 4]
cmp r9b, 0x12
jne 0x18007f980
mov ecx, r9d
shr ecx, 8
movzx edx, cl
lea ecx, [r8 + 2]
cmp edx, ecx
jne 0x18007f980
shr eax, 8
lea rcx, str.method
xor eax, r9d
test eax, 0xffff0000
lea rax, str.field
cmove rax, rcx
jmp 0x18007f8fc
lea rax, str.field
jmp 0x18007f8fc
mov rcx, rax
mov rax, qword [rbp + 0x20]
shr rcx, 0x10
not rcx
mov rcx, qword [rax + rcx*8]
lea rax, str.global
add rcx, 0x18
mov qword [r14], rcx
jmp 0x18007f8fc
mov rdx, qword [rbp + 0x58]
shr eax, 0x10
test rdx, rdx
jne 0x18007f9d3
lea rdx, [0x180168fa0]
mov qword [r14], rdx
lea rax, str.upvalue
jmp 0x18007f8fc
test eax, eax
je 0x18007f9ef
nop word [rax + rax]
movzx ecx, byte [rdx]
inc rdx
test cl, cl
jne 0x18007f9e0
add eax, 0xffffffff
jne 0x18007f9e0
mov qword [r14], rdx
lea rax, str.upvalue
jmp 0x18007f8fc

Function at 0x18007fee0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov r10, rcx
mov rbx, r8
shr r10, 0x20
mov r11d, edx
xor r10d, edx
rol r10d, 4
bswap r10d
cmp r9d, 0xc
jbe 0x18007ff73
mov r9d, r9d
add r9, 0xfffffffffffffff4
add r9, rbx
mov r8, r9
nop
add r10d, dword [r8 + 4]
add r11d, dword [r8 + 8]
mov edx, r10d
add ecx, dword [r8]
xor r11d, r10d
rol edx, 0xe
mov r8, rbx
sub r11d, edx
add rbx, 0xc
xor ecx, r11d
mov eax, r11d
rol eax, 0xb
sub ecx, eax
mov edx, ecx
mov eax, ecx
xor eax, r10d
ror edx, 7
sub eax, edx
mov r10d, eax
cmp r8, r9
jb 0x18007ff10
rol eax, 0x10
mov edx, r10d
xor edx, r11d
sub edx, eax
xor ecx, edx
mov eax, edx
rol eax, 4
sub ecx, eax
mov eax, ecx
xor ecx, r10d
rol eax, 0xe
sub ecx, eax
mov eax, ecx
mov rbx, qword [rsp + 8]
ret
mov rbx, qword [rsp + 8]
mov eax, r10d
ret
Function at 0x180082140
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
push r12
push r15
sub rsp, 0x20
mov rbp, rdx
mov rbx, r8
movzx edx, byte [rdx + 0x3c]
mov r12, rcx
lea rdx, [rdx*8 + 0x28]
call fcn.18007e2c0
lea r8, [rbp + 0x68]
mov rdi, rax
mov word [rax + 9], 8
mov byte [rax + 0xb], 0
mov qword [rax + 0x20], r8
mov qword [rax + 0x10], rbx
movzx edx, byte [rbp + 0x3d]
movzx r15d, byte [rbp + 0x3c]
add edx, 0x20
mov ecx, edx
shr ecx, 3
and cl, 0x20
sub dl, cl
mov byte [rbp + 0x3d], dl
test r15b, r15b
je 0x180082224
mov qword [rsp + 0x40], rsi
xor ebx, ebx
mov qword [rsp + 0x48], r14
lea rsi, [rax + 0x28]
mov r14d, r15d
nop dword [rax + rax]
mov edx, 0x30
mov rcx, r12
call fcn.18007e2c0
mov qword [rax + 0x10], 0xffffffffffffffff
lea rsi, [rsi + 8]
lea rbx, [rbx + 2]
lea rcx, [rax + 0x10]
mov word [rax + 9], 0x105
mov qword [rax + 0x20], rcx
mov rcx, qword [rbp + 0x28]
movzx edx, word [rcx + rbx - 2]
mov ecx, edx
shl edx, 0x18
shr ecx, 0xe
xor edx, ebp
and cl, 1
mov dword [rax + 0x28], edx
mov byte [rax + 0xb], cl
mov qword [rsi - 8], rax
sub r14, 1
jne 0x1800821c0
mov r14, qword [rsp + 0x48]
mov rax, rdi
mov rsi, qword [rsp + 0x40]
mov byte [rdi + 0xb], r15b
jmp 0x180082228
mov byte [rax + 0xb], r15b
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r12
pop rdi
ret
Function at 0x180097440
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [0x18018c6f0]
mov rbx, rcx
test rax, rax
jne 0x18009748c
xor r8d, r8d
lea rcx, str.advapi32.dll
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
test rax, rax
je 0x1800974fb
lea rdx, str.SystemFunction036
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18018c6f0], rax
test rax, rax
je 0x1800974fb
mov edx, 0x20
mov rcx, rbx
call rax
test al, al
je 0x1800974fb
mov rax, qword [rbx]
cmp rax, 2
jae 0x1800974aa
add rax, 2
mov qword [rbx], rax
mov rax, qword [rbx + 8]
cmp rax, 0x40
jae 0x1800974bc
add rax, 0x40
mov qword [rbx + 8], rax
mov rax, qword [rbx + 0x10]
cmp rax, 0x200
jae 0x1800974d2
add rax, 0x200
mov qword [rbx + 0x10], rax
mov rax, qword [rbx + 0x18]
cmp rax, 0x20000
jae 0x1800974e8
add rax, 0x20000
mov qword [rbx + 0x18], rax
mov rcx, rbx
call fcn.180097510
mov eax, 1
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret