joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1801035b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
mov rdx, qword [rcx + 8]
test rdx, rdx
je 0x1801035e5
mov rcx, qword [rcx]
xor r10d, r10d
lea rdi, [0x18035d62e]
nop dword [rax + rax]
lea r8, [r10 + 1]
movzx eax, byte [rcx + r10]
test al, al
js 0x1801035ea
mov r10, r8
cmp r8, rdx
jb 0x1801035d0
mov al, 1
pop rdi
pop rsi
ret
mov r9d, 0xffffffff
cmp r8, rdx
je 0x1801036a2
cmp al, 0xe0
jae 0x180103644
cmp al, 0xc2
jae 0x18010363c
cmp r9d, 0xd800
jb 0x1801035dd
lea eax, [r9 - 0xe000]
cmp eax, 0x1dcf
jbe 0x1801035dd
lea r10d, [r9 - 0xfdf0]
xor eax, eax
cmp r10d, 0x10020f
ja 0x1801035e7
and r9d, 0xfffe
cmp r9d, 0xfffe
je 0x1801035e7
jmp 0x1801035dd
and eax, 0x1f
mov r10d, eax
jmp 0x18010367e
cmp al, 0xef
ja 0x1801036aa
and eax, 0xf
lea r10, str._000000000000
movzx r10d, byte [rax + r10]
movzx r11d, byte [rcx + r8]
mov esi, r11d
shr esi, 5
bt r10d, esi
jae 0x180103601
and r11b, 0x3f
inc r8
cmp r8, rdx
je 0x1801036a2
shl eax, 6
movzx r10d, r11b
or r10d, eax
movzx eax, byte [rcx + r8]
xor eax, 0x80
cmp al, 0x3f
ja 0x180103601
shl r10d, 6
or r10d, eax
inc r8
mov r9d, r10d
jmp 0x180103601
mov r8, rdx
jmp 0x180103601
cmp al, 0xf4
ja 0x180103601
lea esi, [rax - 0xf0]
movzx eax, byte [rcx + r8]
mov r11d, eax
shr r11d, 4
movsx r11d, byte [r11 + rdi]
bt r11d, esi
jae 0x180103601
add r10, 2
cmp r10, rdx
je 0x1801036a2
mov r11b, byte [rcx + r10]
add r11b, 0x80
cmp r11b, 0x3f
ja 0x1801036fa
shl esi, 6
and eax, 0x3f
or eax, esi
mov r8, r10
jmp 0x18010366c
mov r8, r10
jmp 0x180103601

Function at 0x180109a70
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov qword [rcx], 0
mov r14, qword [rdx]
mov qword [rdx], 0
lea r15, [r14 + 1]
cmp r15, 2
jb 0x180109aa1
call fcn.18010a990
cmp qword [rsi], r14
je 0x180109ad0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x180109aef
cmp r15, 2
jb 0x180109ac8
mov qword [rsi], r14
call fcn.18010a990
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
movups xmm0, xmmword [rdi + 8]
movups xmm1, xmmword [rdi + 0x18]
movups xmmword [rsi + 0x18], xmm1
movups xmmword [rsi + 8], xmm0
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.18010a990
mov rcx, qword [rsi]
call fcn.1800fd300
mov qword [rsi], 0
jmp 0x180109aba
Function at 0x180109b10
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov r14, qword [rdx]
mov qword [rdx], 0
lea r15, [r14 + 1]
cmp r15, 2
jb 0x180109b3a
call fcn.18010a990
cmp qword [rsi], r14
je 0x180109b69
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x180109b88
cmp r15, 2
jb 0x180109b61
mov qword [rsi], r14
call fcn.18010a990
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
movups xmm0, xmmword [rdi + 8]
movups xmm1, xmmword [rdi + 0x18]
movups xmmword [rsi + 0x18], xmm1
movups xmmword [rsi + 8], xmm0
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.18010a990
mov rcx, qword [rsi]
call fcn.1800fd300
mov qword [rsi], 0
jmp 0x180109b53
Function at 0x18010cf80
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov rcx, rdx
call fcn.1800fe730
mov qword [rsi], 0
test rax, rax
je 0x18010cfd3
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x18010d007
lea rax, [rbx + 1]
cmp rax, 2
jb 0x18010cfcb
mov qword [rsi], rbx
call fcn.18010a990
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rsi + 8]
lea rdx, [rdi + 8]
call fcn.18010aaf0
lea rcx, [rsi + 0x20]
call fcn.1801191d0
mov eax, dword [rdi + 0x24]
mov dword [rsi + 0x24], eax
mov al, byte [rdi + 0x28]
mov byte [rsi + 0x28], al
mov al, byte [rdi + 0x29]
mov byte [rsi + 0x29], al
mov rax, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
call fcn.18010a990
mov rcx, qword [rsi]
call fcn.1800fd300
mov qword [rsi], 0
jmp 0x18010cfb9

Function at 0x18010ef72
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
xor eax, eax
mov dword [rcx], eax
mov qword [rcx + 8], rax
mov ecx, dword [rdx]
mov dword [rsi], ecx
mov dword [rdx], eax
mov rbx, qword [rdx + 8]
mov qword [rdx + 8], rax
lea r14, [rbx + 1]
cmp r14, 2
jb 0x18010efa3
call fcn.18010a990
cmp qword [rsi + 8], rbx
je 0x18010efd5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x18010efe2
cmp r14, 2
jb 0x18010efcd
mov qword [rsi + 8], rbx
call fcn.18010a990
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.18010a990
mov rcx, qword [rsi + 8]
call fcn.1800fd300
mov qword [rsi + 8], 0
jmp 0x18010efbe

Function at 0x18010effa
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov eax, dword [rdx]
mov dword [rcx], eax
mov dword [rdx], 0
mov rbx, qword [rdx + 8]
mov qword [rdx + 8], 0
lea r14, [rbx + 1]
cmp r14, 2
jb 0x18010f02b
call fcn.18010a990
cmp qword [rsi + 8], rbx
je 0x18010f05d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x18010f06a
cmp r14, 2
jb 0x18010f055
mov qword [rsi + 8], rbx
call fcn.18010a990
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.18010a990
mov rcx, qword [rsi + 8]
call fcn.1800fd300
mov qword [rsi + 8], 0
jmp 0x18010f046
Function at 0x18010f082
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov dword [rcx], 1
xor eax, eax
mov qword [rcx + 8], rax
mov r14, qword [rdx]
mov qword [rdx], rax
lea r15, [r14 + 1]
cmp r15, 2
jb 0x18010f0b4
call fcn.18010a990
cmp qword [rsi + 8], r14
je 0x18010f0e6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x18010f101
cmp r15, 2
jb 0x18010f0de
mov qword [rsi + 8], r14
call fcn.18010a990
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x18010f119
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.18010a990
mov rcx, qword [rsi + 8]
call fcn.1800fd300
mov qword [rsi + 8], 0
jmp 0x18010f0cf
call fcn.18010a990
mov rcx, qword [rdi]
call fcn.1800fd300
mov qword [rdi], 0
jmp 0x18010f0f2
Function at 0x18011bb00
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x1803c7ba4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x18011bb34
mov rcx, qword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 8]
jne 0x18011bb34
mov rax, qword [rax + rcx]
add rsp, 0x20
pop rsi
ret
xor eax, eax
jmp 0x18011bb2e

Function at 0x18011e17f
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, ecx
test r8, r8
je 0x18011e1aa
xor ecx, ecx
lea r9, [0x18039b570]
movzx r10d, al
movzx r11d, byte [rdx + rcx]
xor r11d, r10d
shr eax, 8
xor eax, dword [r9 + r11*4]
inc rcx
cmp r8, rcx
jne 0x18011e18f
ret
Function at 0x180124e60
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov esi, ecx
mov rax, qword [0x1803b6038]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rax, [0x1801ab580]
lea r8, [rsp + 0x20]
mov qword [r8], rax
lea rcx, [0x1803d8160]
lea rdx, [0x1801ab470]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x180124ef2
cmp dword [0x1803d8168], 0
jne 0x180124eee
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [0x1803d816c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x180124eee
movsxd rax, esi
mov rsi, qword [rdi + rax*8]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1801e6610
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
xor esi, esi
jmp 0x180124ed6
call fcn.1801fee30
int3
Function at 0x180137a20
Capabilities:
Access peb ldr_data

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov rax, qword [0x1803b6038]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov byte [rcx], 0
mov eax, dword [0x1803c8448]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea rcx, [rax + 0x1f8]
mov qword [rsi + 8], rcx
mov rcx, qword [rax + 0x1f8]
mov qword [rax + 0x1f8], rsi
mov qword [rsi + 0x10], rcx
mov qword [rsi + 0x18], rdx
mov qword [rsi + 0x38], 0
mov dword [rsi + 0x40], 0
mov byte [rsi + 0x50], 0
xorps xmm0, xmm0
movups xmmword [rsi + 0x20], xmm0
mov qword [rsi + 0x58], r8
mov qword [rsi + 0x60], r9
test byte [0x1803c5f80], 9
jne 0x180137ab5
mov byte [rsi + 0x30], 0
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1801e6610
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov byte [rsi + 0x30], 1
lea rdi, [rsp + 0x28]
mov rcx, rdx
mov rdx, rdi
call fcn.180100240
mov rax, qword [rdi]
mov qword [rsi + 0x20], rax
jmp 0x180137a9e
Function at 0x180144ac0
Capabilities:
Reference processor manufacturer constants

Disassembly:
push rsi
push rdi
mov r8, rcx
xor edi, edi
xor ecx, ecx
xor eax, eax
xchg rbx, r9
cpuid
xchg rbx, r9
test eax, eax
jle 0x180144be1
mov r10d, eax
xor ecx, ecx
mov eax, 1
xchg rbx, r9
cpuid
xchg rbx, r9
mov r9d, ecx
mov r11d, edx
mov esi, eax
cmp r10d, 7
jb 0x180144c21
mov eax, 7
xor ecx, ecx
xchg rbx, rdi
cpuid
xchg rbx, rdi
mov r10d, ecx
and edi, 0x20
shr edi, 5
shr r10b, 4
and r10b, 1
mov dword [r8], esi
mov eax, esi
and eax, 0xf
mov dword [r8 + 8], eax
shr esi, 0xc
and esi, 3
mov dword [r8 + 4], esi
mov eax, r11d
shr eax, 0x17
and al, 1
mov byte [r8 + 0xc], al
mov eax, r11d
shr eax, 0x19
and al, 1
mov byte [r8 + 0xd], al
shr r11d, 0x1a
and r11b, 1
mov byte [r8 + 0xe], r11b
mov eax, r9d
and al, 1
mov byte [r8 + 0xf], al
mov eax, r9d
shr eax, 9
and al, 1
mov byte [r8 + 0x10], al
mov eax, r9d
shr eax, 0x13
and al, 1
mov byte [r8 + 0x11], al
mov eax, r9d
shr eax, 0x14
and al, 1
mov byte [r8 + 0x12], al
mov eax, r9d
shr eax, 0x17
and al, 1
mov byte [r8 + 0x13], al
mov eax, r9d
shr eax, 0x1f
mov byte [r8 + 0x1a], al
mov eax, r9d
not eax
test eax, 0x1c000000
jne 0x180144c17
xor ecx, ecx
xgetbv
not eax
test al, 6
sete al
mov byte [r8 + 0x14], al
mov ecx, r9d
shr ecx, 0x19
and cl, 1
mov byte [r8 + 0x17], cl
shr r9d, 0xc
and r9b, 1
mov byte [r8 + 0x15], r9b
test al, al
setne al
and al, dil
mov byte [r8 + 0x16], al
mov byte [r8 + 0x18], r10b
xor ecx, ecx
mov eax, 0x80000000
xchg rbx, r9
cpuid
xchg rbx, r9
cmp eax, 0x80000006
jle 0x180144c1b
xor ecx, ecx
mov eax, 0x80000007
xchg rbx, r9
cpuid
xchg rbx, r9
shr edx, 8
and dl, 1
mov byte [r8 + 0x19], dl
test dl, dl
je 0x180144c29
pop rdi
pop rsi
ret
xor eax, eax
jmp 0x180144bb4
mov dl, byte [r8 + 0x19]
jmp 0x180144c10
xor r10d, r10d
jmp 0x180144b1f
cmp byte [r8 + 0x1a], 0
je 0x180144c14
xor ecx, ecx
mov eax, 0x40000000
xchg rbx, r9
cpuid
xchg rbx, r9
cmp r9d, 0x7263694d
jne 0x180144c14
cmp ecx, 0x666f736f
jne 0x180144c14
cmp edx, 0x76482074
jne 0x180144c14
mov byte [r8 + 0x19], 1
jmp 0x180144c14

Function at 0x1801480c8
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov edi, edx
mov rsi, rcx
mov rax, qword [0x1803b6038]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor ebx, ebx
xor edx, edx
call fcn.180146524
mov dword [rsi + 0x120], ebx
mov dword [rsi + 0x124], edi
movaps xmm0, xmmword [0x1803467d0]
lea rdi, [rsp + 0x20]
movaps xmmword [rdi + 0x20], xmm0
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rdi + 4]
mov ecx, dword [rdi + 0x28]
cmp eax, ecx
cmova ecx, eax
mov qword [rsi + 0x128], rcx
mov qword [rsi + 0x130], 0x20
mov qword [rsi + 0x138], 0x40
mov dword [rsi + 0x140], ebx
lea rax, [rsi + 8]
mov qword [rsi + 8], 0
xor rax, 0xffffffffb37cc16a
mov qword [rsi + 0x10], rax
mov qword [rsi + 0x18], rsi
mov dword [rsi + 0x28], ebx
lea rcx, [rsi + 0x30]
mov r8d, 0xf0
xor edx, edx
call fcn.1801e8860
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1801e6610
mov rax, rsi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
Function at 0x180148f3d
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov qword [rsp + 0x30], r8
mov rsi, rcx
mov r13, qword [rcx]
mov r12, qword [rcx + 8]
mov rdi, qword [rcx + 0x10]
lea rax, [rdi + r13]
test rdi, rdi
jle 0x180148f9d
movdqa xmm0, xmmword [0x180351e00]
movdqa xmm1, xmmword [0x180351e10]
mov rcx, r13
movdqu xmm2, xmmword [rcx]
pxor xmm3, xmm3
pcmpgtb xmm3, xmm2
pand xmm3, xmm0
pxor xmm3, xmm1
movdqu xmmword [rcx], xmm3
add rcx, 0x10
cmp rcx, rax
jb 0x180148f7c
mov rcx, qword [r13]
mov r8, qword [r13 + 7]
mov qword [rax + 8], r8
mov qword [rax + 1], rcx
mov byte [r13 + rdi], 0xff
test rdi, rdi
je 0x180149120
mov rbp, qword [rdx]
mov rbx, qword [rdx + 8]
mov rax, qword [rdx + 0x10]
mov qword [rsp + 0x20], rax
xor r14d, r14d
mov r15, r12
jmp 0x180149027
mov r11d, 0x10
mov r9, r8
add r9, r11
and r9, rcx
movdqu xmm0, xmmword [rdx + r9]
pcmpeqd xmm1, xmm1
pcmpgtb xmm1, xmm0
pmovmskb r10d, xmm1
add r11, 0x10
test r10d, r10d
jne 0x180149078
jmp 0x180148fdd
and al, 0x7f
mov byte [rdx + r14], al
lea r8, [r14 - 0xf]
and r8, rcx
and ecx, 0xf
add r8, rdx
mov byte [rcx + r8], al
inc r14
add r15, rbp
cmp r14, rdi
je 0x180149120
cmp byte [r13 + r14], 0xfe
jne 0x180149018
mov rcx, rsi
mov rdx, r15
mov rax, rbx
call qword [0x1803f5008]
mov rdx, qword [rsi]
mov rcx, qword [rsi + 0x10]
mov r9, rax
shr r9, 7
mov r8, rdx
shr r8, 0xc
xor r8, r9
and r8, rcx
movdqu xmm0, xmmword [rdx + r8]
pcmpeqd xmm1, xmm1
pcmpgtb xmm1, xmm0
pmovmskb r10d, xmm1
mov r9, r8
test r10d, r10d
je 0x180148fd4
bsf r10d, r10d
add r10, r9
and r10, rcx
mov r9, r10
sub r9, r8
mov r11, r14
sub r11, r8
xor r11, r9
and r11, rdi
cmp r11, 0xf
jbe 0x180149001
mov r8, r12
mov r12, r10
imul r12, rbp
mov qword [rsp + 0x28], r8
add r12, r8
and al, 0x7f
lea r8, [r10 - 0xf]
and r8, rcx
and ecx, 0xf
add r8, rdx
cmp byte [r13 + r10], 0x80
mov byte [rdx + r10], al
mov byte [rcx + r8], al
mov rcx, rsi
je 0x180149150
mov rdx, qword [rsp + 0x30]
mov r8, r12
mov rax, qword [rsp + 0x20]
call qword [0x1803f5008]
mov rcx, rsi
mov rdx, r12
mov r8, r15
mov r12, qword [rsp + 0x20]
mov rax, r12
call qword [0x1803f5008]
mov rcx, rsi
mov rdx, r15
mov r8, qword [rsp + 0x30]
mov rax, r12
call qword [0x1803f5008]
dec r14
sub r15, rbp
mov r12, qword [rsp + 0x28]
jmp 0x180149018
mov rax, qword [rsi]
mov rcx, qword [rsi + 0x10]
mov rdx, rcx
shr rdx, 3
mov r8, qword [rsi + 0x18]
shr r8, 1
add r8, rdx
sub rcx, r8
mov qword [rax - 8], rcx
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rdx, r12
mov r8, r15
mov rax, qword [rsp + 0x20]
call qword [0x1803f5008]
mov rax, qword [rsi]
mov rcx, qword [rsi + 0x10]
mov r8b, 0x80
mov byte [rax + r14], r8b
lea rdx, [r14 - 0xf]
and rdx, rcx
and ecx, 0xf
add rdx, rax
mov byte [rcx + rdx], r8b
jmp 0x180149116
Function at 0x18014d1fa
Capabilities:
Encode data using base64

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
cmp rdx, 1
je 0x18014d23c
mov rdi, rdx
lea rax, [rdx - 1]
test rdx, rax
je 0x18014d221
mov rcx, rdi
call fcn.1800f5d5b
mov rdi, rax
mov rbx, qword [rsi + 8]
cmp rdi, rbx
jbe 0x18014d25f
mov rcx, rsi
mov rdx, rdi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp 0x18014d066
mov edi, 2
jmp 0x18014d221
mov rcx, rdx
call fcn.1800f5d5b
cmp rdi, rax
cmovbe rdi, rax
cmp rdi, rbx
jb 0x18014d22a
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
jae 0x18014d257
mov rax, qword [rsi + 0x18]
test rax, rax
jns 0x18014d281
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
jmp 0x18014d286
cvtsi2ss xmm0, rax
divss xmm0, dword [rsi + 0x20]
call fcn.180203dd8
cvttss2si rax, xmm0
mov rcx, rax
subss xmm0, dword [0x1803507c0]
cvttss2si rdx, xmm0
sar rcx, 0x3f
and rdx, rcx
or rdx, rax
cmp rbx, 3
jb 0x18014d243
mov rax, rbx
shr rax, 1
movabs rcx, 0x5555555555555555
and rcx, rax
mov rax, rbx
sub rax, rcx
movabs rcx, 0x3333333333333333
mov r8, rax
shr r8, 2
and rax, rcx
and r8, rcx
add r8, rax
mov rax, r8
shr rax, 4
add rax, r8
movabs rcx, 0xf0f0f0f0f0f0f0f
and rcx, rax
movabs rax, 0x101010101010101
imul rax, rcx
shr rax, 0x38
cmp eax, 1
ja 0x18014d243
lea rax, [rdx - 1]
bsr rcx, rax
xor ecx, 0x3f
neg cl
mov eax, 1
shl rax, cl
cmp rdx, 2
cmovb rax, rdx
jmp 0x18014d24b
Function at 0x180167000
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp], 0xfffffffffffffffe
mov rdi, r8
mov rsi, rdx
mov r15b, byte [rbp + 0x68]
test byte [r9 + 8], 1
jne 0x18016706b
mov dl, byte [rbp + 0x60]
movzx r8d, r15b
mov rax, qword [rcx]
mov rax, qword [rax + 0x30]
mov dword [rsp + 0x28], r8d
mov byte [rsp + 0x20], dl
mov rdx, rsi
mov r8, rdi
call qword [0x1803f5008]
mov rax, rsi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
mov qword [rsi], rdi
test al, al
jns 0x18016704d
call fcn.1801e4f44
jmp 0x18016704d
lea rbx, [rbp - 0x20]
mov rcx, r9
mov rdx, rbx
call fcn.1800f65ea
lea rdx, [0x1803d27c8]
mov rcx, rbx
call fcn.1800f90ac
mov r14, rax
mov rcx, qword [rbp - 0x20]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
test eax, eax
jne 0x1801670ab
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x1803f5008]
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rbx + 0x10], rax
movaps xmm0, xmmword [0x1803467d0]
movaps xmmword [rbx], xmm0
mov rax, qword [r14]
xor r15b, 1
movzx ecx, r15b
mov rax, qword [rax + rcx*8 + 0x28]
mov rcx, r14
mov rdx, rbx
call qword [0x1803f5008]
movzx eax, byte [rbx + 0x17]
test al, al
js 0x1801670ee
mov edx, eax
and edx, 0x7f
jmp 0x1801670f2
mov rdx, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x20]
test rdx, rdx
je 0x18016705d
test al, al
cmovns rcx, rbx
mov r14, rcx
jmp 0x18016714e
movzx edx, al
mov rax, qword [rdi]
mov rax, qword [rax + 0x60]
mov rcx, rdi
call qword [0x1803f5008]
cmp eax, 0xffffffff
jne 0x180167124
xor edi, edi
inc r14
movzx eax, byte [rbp - 9]
mov edx, eax
and edx, 0x7f
test al, al
mov rcx, qword [rbp - 0x20]
mov r8, rbx
cmovs rdx, qword [rbp - 0x18]
cmovs r8, rcx
add rdx, r8
cmp r14, rdx
je 0x18016705d
test rdi, rdi
je 0x180167122
mov al, byte [r14]
mov rcx, qword [rdi + 0x30]
cmp rcx, qword [rdi + 0x38]
je 0x18016710a
lea rdx, [rcx + 1]
mov qword [rdi + 0x30], rdx
mov byte [rcx], al
jmp 0x180167124
Function at 0x18016b198
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x248
mov rax, qword [0x1803b6038]
xor rax, rsp
mov qword [rsp + 0x240], rax
movaps xmm0, xmmword [0x1803467d0]
lea rcx, [rsp + 0x20]
movaps xmmword [rcx], xmm0
call sub.ntdll.dll_RtlFormatCurrentUserKeyPath
mov esi, eax
test eax, eax
js 0x18016b314
lea rdi, [rsp + 0x20]
mov rdx, qword [rdi + 8]
lea rbx, [0x1803d3870]
mov r14d, 0xff
mov r8d, 0xff
mov rcx, rbx
call fcn.180208ac0
mov rcx, rbx
call fcn.180206ad4
sub r14, rax
lea rdx, [0x180356a78]
mov rcx, rbx
mov r8, r14
call fcn.180208ac0
mov rcx, rdi
call sub.ntdll.dll_RtlFreeUnicodeString
lea rbx, [rsp + 0x30]
mov r8d, 0x208
mov rcx, rbx
xor edx, edx
call fcn.1801e8860
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdi, rax
lea rcx, str.PROGRAMFILES
mov rdx, rbx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x18016b274
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.180208b08
test eax, eax
je 0x18016b338
lea rcx, str.PROGRAMFILES_X86_
lea rdx, [rsp + 0x30]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x18016b2af
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.180208b08
test eax, eax
je 0x18016b338
xor eax, eax
mov byte [0x1803d3469], al
mov dword [rsp + 0x30], 0
lea rcx, [0x180353cbc]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x180358b88]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18016b33f
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x30]
mov rcx, rax
mov rax, rdi
call qword [0x1803f5008]
test eax, eax
je 0x18016b33f
cmp dword [rsp + 0x30], 0
setne al
mov byte [0x1803d3a70], al
mov byte [0x1803d3468], 1
test esi, esi
setns bl
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1801e6610
mov eax, ebx
add rsp, 0x248
pop rbx
pop rdi
pop rsi
pop r14
ret
mov al, 1
jmp 0x18016b2b1
xor eax, eax
jmp 0x18016b307
Function at 0x18016b470
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov rsi, r8
mov ebx, edx
mov edi, ecx
mov rax, qword [0x1803b6038]
xor rax, rsp
mov qword [rsp + 0x70], rax
movzx eax, byte [r8 + 0x17]
test al, al
jns 0x18016b4a3
mov rax, qword [rsi + 8]
test rax, rax
je 0x18016b59c
bt ebx, 8
jae 0x18016b4bf
mov eax, ebx
and eax, 0x200
jne 0x18016b59c
cmp edi, 2
lea rax, [0x1803d3470]
lea rcx, [0x1803d3670]
cmove rcx, rax
cmp word [rcx], 0
jne 0x18016b59c
xorps xmm0, xmm0
lea r14, [rsp + 0x40]
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [r14], 0
je 0x18016b59c
cmp byte [0x1803d3a70], 0
setne al
bt ebx, 8
jb 0x18016b59c
shr ebx, 9
and ebx, 1
or bl, al
je 0x18016b59c
cmp edi, 2
lea rax, str.SOFTWAREClasses
lea r12, str.SOFTWARE
cmove r12, rax
movzx r13d, byte [rsi + 0x17]
test r13b, r13b
jns 0x18016b5bb
mov r14, qword [rsi]
mov r13, qword [rsi + 8]
mov edi, 1
xor ebx, ebx
xor eax, eax
mov qword [rsp + 0x38], rax
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x2c], 0
mov r15, qword [r12 + 8]
mov rbp, r13
sub rbp, r15
jb 0x18016b589
mov rdx, qword [r12]
mov rcx, r14
mov r8, r15
call fcn.180202248
test eax, eax
je 0x18016b5e6
add r12, 0x28
inc rbx
cmp rbx, rdi
jb 0x18016b569
cmp dword [rsp + 0x2c], 0
jne 0x18016b5c0
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1801e6610
nop
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r14, rsi
jmp 0x18016b54c
cmp byte [rsi + 0x17], 0
mov rax, rsi
jns 0x18016b5cc
mov rax, qword [rsi]
mov rdx, qword [rsp + 0x30]
sub rdx, rax
sar rdx, 1
mov rcx, rsi
mov r8, qword [rsp + 0x38]
call fcn.1802c6306
jmp 0x18016b59c
movzx ecx, word [r14 + r15*2]
cmp ecx, 0x5c
je 0x18016b5f4
test ecx, ecx
jne 0x18016b589
lea rax, [r14 + r15*2]
mov edx, dword [r12 + 0x10]
mov dword [rsp + 0x2c], edx
cmp edx, 1
je 0x18016b623
cmp dword [rsp + 0x2c], 2
jne 0x18016b634
lea rdx, str.WOW6432Node
mov qword [rsp + 0x38], rdx
mov rdx, rax
mov qword [rsp + 0x30], rax
jmp 0x18016b634
lea rdx, str.WOW6432Node_
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], r14
cmp cx, 0x5c
jne 0x18016b64d
lea r14, [rax + 2]
dec rbp
cmp word [rax + 2], 0x5c
mov rax, r14
je 0x18016b63a
jmp 0x18016b650
mov r14, rax
mov rdi, qword [r12 + 0x20]
mov r12, qword [r12 + 0x18]
xor ebx, ebx
mov r13, rbp
jmp 0x18016b590