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

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rax, qword [0x14029a048]
xor rax, rsp
mov qword [rsp + 0x40], rax
movzx eax, byte [rdx + 0x17]
mov ebx, eax
and ebx, 0x7f
test al, al
mov rdi, qword [rdx]
cmovns rdi, rdx
cmovs rbx, qword [rdx + 8]
movzx eax, byte [rcx + 0x17]
mov ebp, eax
and ebp, 0x7f
test al, al
mov rsi, qword [rcx]
cmovns rsi, rcx
cmovs rbp, qword [rcx + 8]
cmp rbp, 2
jb 0x1400d63cf
cmp word [rsi + 2], 0x3a
jne 0x1400d63cf
movzx eax, word [rsi]
and eax, 0xffffffdf
add eax, 0xffffffbf
cmp ax, 0x1a
jae 0x1400d63cf
mov r15d, 2
xor eax, eax
jmp 0x1400d63d4
mov al, 1
xor r15d, r15d
cmp rbx, 2
jb 0x1400d63f7
cmp word [rdi + 2], 0x3a
jne 0x1400d63f7
movzx ecx, word [rdi]
and ecx, 0xffffffdf
add ecx, 0xffffffa5
cmp cx, 0xffe6
setae cl
not al
test al, cl
jne 0x1400d644d
mov r14b, 1
cmp rbp, rbx
jne 0x1400d6430
test rbx, rbx
je 0x1400d64d2
dec rbx
xor eax, eax
nop dword [rax]
movzx ecx, word [rsi + rax*2]
movzx edx, word [rdi + rax*2]
cmp cx, dx
jne 0x1400d6429
lea rbp, [rax + 1]
cmp rbx, rax
mov rax, rbp
jne 0x1400d6410
cmp cx, dx
setne r14b
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140116250
mov eax, r14d
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
cmp rbp, r15
mov rax, r15
cmovb rax, rbp
cmp rbx, 2
mov ecx, 2
cmovb rcx, rbx
lea rdx, [rsp + 0x30]
mov qword [rdx], rdi
mov qword [rdx + 8], rcx
lea rcx, [rsp + 0x20]
mov qword [rcx], rsi
mov qword [rcx + 8], rax
mov r8d, 1
call fcn.1400ebd70
mov r14b, 1
test al, al
je 0x1400d6430
mov rax, rbp
sub rax, r15
jb 0x1400d64da
add rbx, 0xfffffffffffffffe
cmp rax, rbx
jne 0x1400d6430
test rax, rax
je 0x1400d64d2
lea rax, [rsi + r15*2]
not r15
add r15, rbp
xor ecx, ecx
movzx edx, word [rax + rcx*2]
movzx ebp, word [rdi + rcx*2 + 4]
cmp dx, bp
jne 0x1400d64ca
lea rbx, [rcx + 1]
cmp r15, rcx
mov rcx, rbx
jne 0x1400d64b0
cmp dx, bp
jmp 0x1400d642c
xor r14d, r14d
jmp 0x1400d6430
int3
Function at 0x1400e82d0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x14029c128]
cmp ecx, 0xffffffff
je 0x1400e82f5
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 3
dec eax
cmp eax, 2
setb al
add rsp, 0x28
ret
xor eax, eax
jmp 0x1400e82f0

Function at 0x1400e8380
Capabilities:
Get thread local storage value

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

Function at 0x1400e83c0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x14029c128]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400e83fe
mov rcx, qword [rsi]
shl rcx, 4
mov qword [rax + rcx], rdi
mov ecx, dword [rsi + 8]
mov rdx, qword [rsi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x28
pop rdi
pop rsi
ret
test rdi, rdi
je 0x1400e83f7
call fcn.14007ec00
jmp 0x1400e83de

Function at 0x1400e8410
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov r14, rdx
mov rsi, rcx
mov qword [rcx], 0xffffffffffffffff
mov dword [rcx + 8], 0
mov ecx, dword [0x14029c128]
cmp ecx, 0xffffffff
je 0x1400e8444
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x1400e8449
call fcn.14007ec00
mov eax, dword [0x1402b1258]
mov ecx, dword [0x1402aa718]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400e84fd
mov r15, qword [0x1402b1250]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1400e8543
mov rax, qword [0x1402afa40]
inc rax
xor ecx, ecx
lea rdx, [0x1402afa50]
nop dword [rax]
lea ebx, [rax + rcx]
movzx edi, bl
lea rbx, [rdi + rdi*2]
cmp dword [rdx + rbx*8], 0
je 0x1400e84be
inc rcx
cmp rcx, 0x100
jne 0x1400e84a0
jmp 0x1400e84dc
lea rax, [rdx + rbx*8]
mov dword [rax], 1
mov qword [rax + 8], r14
mov qword [0x1402afa40], rdi
mov qword [rsi], rdi
mov eax, dword [rax + 0x10]
mov dword [rsi + 8], eax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp qword [rsi], 0x100
jae 0x1400e8550
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
lea rcx, [0x1402b1258]
int3
mov rcx, r15
int3
int3
Function at 0x1400efd80
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x208
movaps xmmword [rsp + 0x1f0], xmm6
mov rax, qword [0x14029a048]
xor rax, rsp
mov qword [rsp + 0x1e8], rax
test rdx, rdx
je 0x1400eff09
mov rbx, r8
mov rsi, rdx
mov r12, rcx
movaps xmm6, xmmword [0x14024a210]
movaps xmmword [rsp + 0x1d0], xmm6
movaps xmmword [rsp + 0x1c0], xmm6
test byte [0x1402b9307], 0x40
je 0x1400f003e
mov eax, 0x40000000
and eax, dword [0x1402b9300]
je 0x1400f003e
lea rcx, [rsp + 0x1c0]
mov edx, 0x20
call fcn.140019bd0
test eax, eax
je 0x1400f003e
xor eax, eax
movzx ecx, byte [rbx + rax]
xor byte [rsp + rax + 0x1c0], cl
inc rax
cmp rax, 0x20
jne 0x1400efe10
lea r14, [rsp + 0x90]
mov r8d, 0x130
mov rcx, r14
mov dl, 0xaa
call fcn.140118630
mov ecx, 1
int3
mov rcx, qword [rsp + 0x1e8]
xor rcx, rsp
call fcn.140116250
movaps xmm6, xmmword [rsp + 0x1f0]
add rsp, 0x208
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
int3

Function at 0x1400f02f0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rax, qword [0x14029a048]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp r8, 0x30
ja 0x1400f044c
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
movaps xmm0, xmmword [0x14024a210]
lea r14, [rsp + 0x40]
movaps xmmword [r14], xmm0
movaps xmmword [r14 - 0x10], xmm0
movaps xmmword [r14 - 0x20], xmm0
lea r12, [rsp + 0x30]
lea r15, [rcx + 0x108]
mov eax, dword [rcx + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rcx + 0x114], eax
mov rax, qword [rcx + 0xf8]
lea rdx, [rsp + 0x20]
mov rcx, r15
mov r8, rsi
call qword [0x1402ce008]
mov eax, dword [rsi + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rsi + 0x114], eax
mov rax, qword [rsi + 0xf8]
mov rcx, r15
mov rdx, r12
mov r8, rsi
call qword [0x1402ce008]
mov eax, dword [rsi + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rsi + 0x114], eax
mov rax, qword [rsi + 0xf8]
mov rcx, r15
mov rdx, r14
mov r8, rsi
call qword [0x1402ce008]
test rdi, rdi
je 0x1400f03e0
xor eax, eax
nop word cs:[rax + rax]
movzx ecx, byte [rbx + rax]
xor byte [rsp + rax + 0x20], cl
inc rax
cmp rdi, rax
jne 0x1400f03d0
lea rdi, [rsi + 0xf8]
mov eax, dword [0x1402b9304]
lea rcx, [rsp + 0x20]
mov edx, 0x100
mov r8, rsi
bt eax, 0x19
jae 0x1400f0450
call fcn.140003260
lea rax, [0x140001d60]
test rdi, rdi
je 0x1400f041b
lea rcx, [fcn.140001000]
mov qword [rdi], rcx
mov qword [rsi + 0x100], rax
movups xmm0, xmmword [r14]
movups xmmword [r15], xmm0
mov esi, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140116250
mov eax, esi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor esi, esi
jmp 0x1400f042f
bt eax, 9
jae 0x1400f0470
call fcn.140004450
lea rax, [0x140004920]
test rdi, rdi
je 0x1400f041b
lea rcx, [fcn.140004620]
jmp 0x1400f0418
call fcn.1401d8e80
lea rax, [0x1401d9670]
test rdi, rdi
je 0x1400f041b
lea rcx, [0x1401d8d60]
jmp 0x1400f0418
Function at 0x1400f9690
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, ecx
test r8, r8
je 0x1400f96bb
xor ecx, ecx
lea r9, [0x14026f5c0]
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 0x1400f96a0
ret

Function at 0x1400fbe80
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1402b91f0]
mov ecx, dword [0x1402aa718]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400fbeb5
lea rcx, [0x1402b91e0]
add rsp, 0x28
jmp fcn.1400e8380
lea rcx, [0x1402b91f0]
call fcn.140114e30
cmp dword [0x1402b91f0], 0xffffffff
jne 0x1400fbea5
xorps xmm0, xmm0
movups xmmword [0x1402b91e0], xmm0
lea rcx, [0x1402b91e0]
xor edx, edx
call fcn.1400e8410
lea rcx, [0x1402b91f0]
call fcn.140114ec8
jmp 0x1400fbea5
Function at 0x140116965
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
sub rax, rax
sub rcx, 0xd55f
add rax, rcx
add rax, 0xd55f
add rcx, 0xd55f
sub rsp, 0x3f0
sub rsp, 0x20
and spl, 0xf0
mov byte [rbp - 0xd], 0x56
mov byte [rbp - 0xc], 0x69
mov byte [rbp - 0xb], 0x72
mov byte [rbp - 0xa], 0x74
mov byte [rbp - 9], 0x75
mov byte [rbp - 8], 0x61
mov byte [rbp - 7], 0x6c
mov byte [rbp - 6], 0x41
mov byte [rbp - 5], 0x6c
mov byte [rbp - 4], 0x6c
mov byte [rbp - 3], 0x6f
mov byte [rbp - 2], 0x63
mov byte [rbp - 1], 0
and rcx, 0
add rcx, rsi
lea rdx, [rbp - 0xd]
call rax
sub rsp, 8
mov qword [rsp], 0
add rsp, 8
mov rcx, qword [rsp - 8]
mov rdx, 0x5aa1
mov r8, 0x3000
mov r9, 0x40
call rax
mov rcx, 0x441e
lea r9, [0x140112744]
add byte [rax - 0x7d], cl
invalid
dec rcx
mov dl, byte [r9 + rcx]
mov byte [rax + rcx], dl
test rcx, rcx
jne 0x140116a22
je 0x140116a39
insb byte [rdi], dx
cld
add byte [rax], al
je 0x140116a43
jne 0x140116a0d
lea rax, [0x140115f36]
add rax, 0xb32
call rax
je 0x1401169de
push rsp
ror byte [rax - 0x39], cl
shl dword [rsi], 0x3e
add byte [rax], al
mov rcx, 0x3e26
mov r9d, 0x8d68
mov r10d, 0x92819200
lea eax, [rax]
add byte [rcx - 0x46], al
add byte [rdx - 0xb76d7f], dl
leave
dec rcx
xor byte [rax + rcx], r9b
add r9d, r10d
rol r9d, 1
test rcx, rcx
jne 0x140116a4c
add rax, 0x1ebd
mov rsp, rbp
mov rbp, qword [rsp]
add rsp, 8
ret
Function at 0x140128eb0
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14012ef24
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14012ef24
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140129000
cmp rax, 0xffffffffffffffff
je 0x140129000
xor edi, edi
test rbp, rbp
jle 0x140128fab
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400ecf10
mov rbx, rax
test rax, rax
jne 0x140128f38
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140128fa1
mov edx, 0x8000
mov ecx, r14d
call fcn.1401303d8
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.140134104
cmp eax, 0xffffffff
je 0x140128f81
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140128f48
mov edx, r15d
mov ecx, r14d
call fcn.1401303d8
jmp 0x140128fa1
cmp byte [rsi + 0x38], dil
je 0x140128f98
cmp dword [rsi + 0x34], 5
jne 0x140128f98
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140128fa1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400ece70
jmp 0x140129014
jns 0x140129014
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14012ef24
cmp rax, 0xffffffffffffffff
jne 0x140128fcc
cmp byte [rsi + 0x30], dil
je 0x140129014
mov edi, dword [rsi + 0x2c]
jmp 0x140129014
mov ecx, r14d
call fcn.14012cffc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140129014
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140129014
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14012900d
mov eax, dword [rsi + 0x2c]
jmp 0x140129012
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14012ef24
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x14012ff98
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x1402ab650]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x14012fff6
cmp word [rdx], r12w
jne 0x14012fff6
or byte [rax + r8*8 + 0x38], cl
jmp 0x14012fffc
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x140130157
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x140130132
lea r9, [rcx + 2]
cmp ax, r13w
je 0x140130035
mov rcx, r9
jmp 0x140130058
cmp r9, rdx
jae 0x14013006f
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x140130019
jmp 0x140130157
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14013012c
cmp dword [rsp + 0x80], edi
je 0x14013012c
mov rdx, r14
lea r11, [0x1402ab650]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x140130105
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x1401300d8
mov word [rbx], r12w
jmp 0x140130153
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x1401300e1
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x140130153
cmp word [rsp + 0x70], r12w
jne 0x140130112
cmp rbx, rsi
je 0x1401300d2
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14012ef24
cmp word [rsp + 0x70], r12w
je 0x140130157
mov word [rbx], r13w
jmp 0x140130153
lea r11, [0x1402ab650]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14013014f
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x140130157
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14014a87c
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14014a8ac
xor eax, eax
jmp 0x14014a96f
mov rbp, rbx
cmp word [rax], si
je 0x14014a8d1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14014a8b8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14014a8b4
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14014a7cc
movsxd r14, eax
test eax, eax
jne 0x14014a90f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14014a8a5
mov rcx, r14
call fcn.1400ecf80
mov rdi, rax
test rax, rax
jne 0x14014a928
xor ecx, ecx
call fcn.1400ece70
jmp 0x14014a904
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14014a7cc
test eax, eax
jne 0x14014a959
mov rcx, rdi
call fcn.1400ece70
jmp 0x14014a963
xor ecx, ecx
call fcn.1400ece70
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x14014a98c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14014aa13
mov rsi, rbx
cmp word [rax], bp
je 0x14014a9d2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14014a9bc
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14014a9b8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400ecf80
mov rdi, rax
test rax, rax
je 0x14014aa00
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140117f80
mov rbp, rdi
xor ecx, ecx
call fcn.1400ece70
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14014cfb4
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1401230a4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14014d03e
cmp byte [rbp - 0x21], r15b
je 0x14014d039
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14014d074
call fcn.140143d94
test eax, eax
jne 0x14014d060
cmp byte [rbp - 0x21], r15b
je 0x14014d058
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14014d074
cmp byte [rbp - 0x21], r15b
je 0x14014d071
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140128688
test eax, eax
jne 0x14014d114
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1401230a4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14014d0b3
cmp byte [rbp - 0x21], r15b
je 0x14014d0e8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14014d0e8
call fcn.140143d94
test eax, eax
jne 0x14014d0d4
cmp byte [rbp - 0x21], r15b
je 0x14014d0cd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14014d0e8
cmp byte [rbp - 0x21], r15b
je 0x14014d0e5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140128688
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14014d114
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14014d117
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14014d125
mov rcx, rdi
call fcn.1400ece70
cmp byte [rbp + 0x3f], r15b
je 0x14014d134
mov rcx, qword [rbp + 0x27]
call fcn.1400ece70
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14014d7e8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x14029a048]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rsi, qword [rsp + 0xa0]
lea r10, [0x1402abad8]
xor r11d, r11d
lea rdi, [0x14023d880]
test r9, r9
mov rax, rdx
mov r12, rdx
cmovne r10, r9
test rdx, rdx
lea ebp, [r11 + 1]
cmovne rdi, rdx
mov r15d, ebp
cmovne r15, r8
neg rax
sbb r14, r14
and r14, rcx
test r15, r15
jne 0x14014d858
mov rax, 0xfffffffffffffffe
jmp 0x14014d9a5
cmp word [r10 + 6], r11w
jne 0x14014d8c7
movzx r9d, byte [rdi]
inc rdi
test r9b, r9b
js 0x14014d882
test r14, r14
je 0x14014d873
mov dword [r14], r9d
test r9b, r9b
setne r11b
mov rax, r11
jmp 0x14014d9a5
mov al, r9b
and al, 0xe0
cmp al, 0xc0
jne 0x14014d890
mov r8b, 2
jmp 0x14014d8ae
mov al, r9b
and al, 0xf0
cmp al, 0xe0
jne 0x14014d89e
mov r8b, 3
jmp 0x14014d8ae
mov al, r9b
and al, 0xf8
cmp al, 0xf0
jne 0x14014d99a
mov r8b, 4
movzx eax, r8b
mov ecx, 7
sub ecx, eax
mov edx, ebp
shl edx, cl
mov bl, r8b
sub edx, ebp
and edx, r9d
jmp 0x14014d8f0
mov r8b, byte [r10 + 4]
mov edx, dword [r10]
mov bl, byte [r10 + 6]
lea eax, [r8 - 2]
cmp al, 2
ja 0x14014d99a
cmp bl, bpl
jb 0x14014d99a
cmp bl, r8b
jae 0x14014d99a
movzx ebp, bl
cmp rbp, r15
mov r9d, ebp
cmovae r9, r15
jmp 0x14014d91d
movzx ecx, byte [rdi]
inc rdi
mov al, cl
and al, 0xc0
cmp al, 0x80
jne 0x14014d99a
mov eax, edx
and ecx, 0x3f
shl eax, 6
mov edx, ecx
or edx, eax
mov rax, rdi
sub rax, r12
cmp rax, r9
jb 0x14014d8ff
cmp r9, rbp
jae 0x14014d949
movzx eax, r8b
sub bl, r9b
mov word [r10 + 4], ax
movzx eax, bl
mov word [r10 + 6], ax
mov dword [r10], edx
jmp 0x14014d84c
lea eax, [rdx - 0xd800]
cmp eax, 0x7ff
jbe 0x14014d99a
cmp edx, 0x110000
jae 0x14014d99a
movzx eax, r8b
mov dword [rsp + 0x20], 0x80
mov dword [rsp + 0x24], 0x800
mov dword [rsp + 0x28], 0x10000
cmp edx, dword [rsp + rax*4 + 0x18]
jb 0x14014d99a
test r14, r14
je 0x14014d988
mov dword [r14], edx
neg edx
mov rdx, r10
sbb rcx, rcx
and rcx, rbp
call fcn.1401525b4
jmp 0x14014d9a5
mov rdx, rsi
mov rcx, r10
call fcn.1401525a0
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140116250
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14014e990
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x14014e9c2
call fcn.14012bd9c
mov dword [rax], 0x16
call fcn.14012e4e0
jmp 0x14014eae1
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14014eae1
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14014eae1
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14014e9f1
lock or dword [rcx + 0x14], 0x10
jmp 0x14014eae1
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14014ea05
call fcn.14015082c
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.14012c1b0
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.14012f75c
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14014eacf
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x14014ea9a
mov rcx, rsi
call fcn.14012c1b0
cmp eax, edi
je 0x14014ea85
mov rcx, rsi
call fcn.14012c1b0
cmp eax, 0xfffffffe
je 0x14014ea85
mov rcx, rsi
call fcn.14012c1b0
movsxd rbx, eax
lea r14, [0x1402ab650]
mov rcx, rsi
sar rbx, 6
call fcn.14012c1b0
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x14014ea8c
lea rdx, [0x14029a530]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14014ea9a
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x14014eabe
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x14014eabe
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x14014eabe
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x14014eae4
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret