joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140085cba
Capabilities:
Install driver

Disassembly:
jmp 0x1400932e0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x178
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x26
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x198]
lea rcx, [0x1401ea2f2]
call fcn.140086c2d
nop
mov rcx, qword [rbp + 0x178]
call fcn.14008578d
movzx eax, al
test eax, eax
jne 0x14009335c
mov rdx, qword [rbp + 0x178]
mov rcx, qword [rbp + 0x170]
call fcn.140085f7b
test eax, eax
je 0x14009335c
lea rcx, str.Driver_not_found
call fcn.140084c5c
nop
mov eax, 0xffffffff
jmp 0x1400933a9
mov r8, qword [rbp + 0x170]
lea rdx, str._registrymachineSYSTEMCurrentControlSetServices_
lea rcx, [rbp + 0x38]
call fcn.1400870d8
nop
lea rcx, [rbp + 0x38]
call fcn.1400844e1
mov rdx, rax
lea rcx, [rbp + 8]
call fcn.1400869df
nop
lea rcx, [rbp + 8]
call qword [sym.imp.ntdll.dll_NtLoadDriver]
mov dword [rbp + 0x134], eax
lea rcx, [rbp + 0x38]
call fcn.14008630e
mov eax, dword [rbp + 0x134]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14019ce30]
call fcn.140086165
mov rax, rdi
lea rsp, [rbp + 0x158]
pop rdi
pop rbp
ret

Function at 0x140085ee0
Capabilities:
Terminate process

Disassembly:
jmp 0x1401294a0
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x1401294ce
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.1400867e6
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000417
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x140085f7b
Capabilities:
Persist via windows service
Set registry value

Disassembly:
jmp 0x140093410
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x448
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0xa6
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x468]
lea rcx, [0x1401ea2f2]
call fcn.140086c2d
nop
mov dword [rbp + 4], 1
mov dword [rbp + 0x24], 0
lea rax, [rbp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov rcx, qword [rbp + 0x438]
call fcn.1400844e1
mov r9, rax
lea r8, str.___s
mov edx, 0x104
lea rcx, [rbp + 0x50]
call fcn.140084275
nop
lea r8, [0x1401d7a08]
lea rdx, str.systemCurrentControlSetServices
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
je 0x1400934bd
mov eax, dword [rbp + 0x24]
jmp 0x1400935b0
mov rcx, qword [rbp + 0x430]
call fcn.1400844e1
lea r8, [0x1401d7a10]
mov rdx, rax
mov rcx, qword [0x1401d7a08]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
je 0x1400934f1
mov eax, dword [rbp + 0x24]
jmp 0x1400935b0
lea rcx, [rbp + 0x50]
call fcn.1400833bb
lea rax, [rax + rax + 2]
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.ImagePath
mov rcx, qword [0x1401d7a10]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
je 0x140093537
mov eax, dword [rbp + 0x24]
jmp 0x1400935b0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rbp + 0x274], eax
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0x274]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, [0x14019d720]
mov rcx, qword [0x1401d7a10]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
je 0x140093582
mov eax, dword [rbp + 0x24]
jmp 0x1400935b0
mov dword [rsp + 0x28], 4
lea rax, [rbp + 4]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Type
mov rcx, qword [0x1401d7a10]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14019cd50]
call fcn.140086165
mov rax, rdi
lea rsp, [rbp + 0x418]
pop rdi
pop rbp
ret

Function at 0x14008684f
Capabilities:
Print debug messages

Disassembly:
jmp 0x14015f3d0
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x14008691c
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1400bac60
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1400ba5b0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400baca9
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1401eb020]
jmp 0x1400bacb8
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret

Function at 0x1400869da
Capabilities:
Set environment variable

Disassembly:
jmp 0x140184660
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x78]
call fcn.140084658
lea rcx, [rsp + 0x48]
call fcn.140084658
call fcn.140084fe5
mov r8d, eax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.1400843f6
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x1401846cf
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.1400849eb
lea rcx, [rsp + 0x78]
call fcn.1400849eb
mov eax, dword [rsp + 0x24]
jmp 0x140184760
call fcn.140084fe5
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.1400843f6
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x140184716
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x48]
call fcn.1400849eb
lea rcx, [rsp + 0x78]
call fcn.1400849eb
mov eax, dword [rsp + 0x2c]
jmp 0x140184760
lea rcx, [rsp + 0x48]
call fcn.1400845c7
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
call fcn.1400845c7
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x48]
call fcn.1400849eb
lea rcx, [rsp + 0x78]
call fcn.1400849eb
mov eax, dword [rsp + 0x30]
add rsp, 0xb8
ret
Function at 0x140135480
Capabilities:
Terminate process

Disassembly:
mov byte [rsp + 0x10], dl
mov dword [rsp + 8], ecx
sub rsp, 0x28
movzx eax, byte [rsp + 0x38]
test eax, eax
je 0x1401354a8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, dword [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [rsp + 0x30]
call fcn.140135620
mov ecx, dword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x14015a1a0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.140083a73
sub rsp, rax
mov rax, qword [0x1401d6040]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x1401d9570]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x14015a39a
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x14015a2e6
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x14015a2e6
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x14015a2cb
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x14015a268
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14015a35a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14015a3b9
mov eax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x40], eax
jae 0x14015a395
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14015a3b9
jmp 0x14015a23e
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.140084cfc
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x14015a460
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.140083a73
sub rsp, rax
mov rax, qword [0x1401d6040]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x1401d9570]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x14015a675
lea rax, [rsp + 0x147e]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
jae 0x14015a5b9
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x14015a5b9
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
cmp eax, 0xa
jne 0x14015a599
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, 0xd
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x14015a528
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov eax, eax
shl rax, 1
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x48]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14015a635
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14015a694
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x48]
cmp dword [rsp + 0x44], eax
jae 0x14015a670
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14015a694
jmp 0x14015a4fe
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.140084cfc
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x140177b60
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov edx, 8
lea rcx, [rsp + 0x60]
call fcn.1400841cb
movzx eax, al
test eax, eax
je 0x140177b87
mov al, 1
jmp 0x140177c7c
lea rcx, [rsp + 0x60]
call fcn.140086ee4
movzx eax, al
test eax, eax
je 0x140177bc6
lea rcx, [rsp + 0x60]
call fcn.140086200
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x60]
call fcn.140086200
mov rax, qword [rax + 8]
mov rcx, qword [rsp + 0x40]
cmp qword [rcx], rax
jne 0x140177bc6
xor al, al
jmp 0x140177c7c
lea rcx, [rsp + 0x60]
call fcn.14008639f
mov ecx, eax
call fcn.140086e7b
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
jne 0x140177beb
xor al, al
jmp 0x140177c7c
lea rax, [rsp + 0x38]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
lea rax, [rsp + 0x48]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
mov r9d, 1
lea r8, [rsp + 0x38]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x140177c30
xor al, al
jmp 0x140177c7c
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x140177c59
xor al, al
jmp 0x140177c7c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
jne 0x140177c6f
mov dword [rsp + 0x20], 1
jmp 0x140177c77
mov dword [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
add rsp, 0x50
pop rdi
ret
Function at 0x140005e10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rax, rdx
mov rsi, qword [rbp + 0x70]
mov rdi, qword [rbp + 0x68]
mov rdx, qword [rbp + 0x60]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x140005e90
cmp r10, r11
jb 0x140005f07
cmp r10, rdx
ja 0x140005f19
add r11, r9
xor r15d, r15d
nop dword [rax + rax]
cmp r14, r15
je 0x140005e92
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x140005e70
jmp 0x140005ef4
ja 0x140005e9a
mov r11, r10
cmp rax, r8
jne 0x140005e3e
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x140005ed0
mov rdi, r8
sub ecx, edx
jns 0x140005eeb
jmp 0x140005ef6
cmp r8, rsi
je 0x140005f28
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x140005ef6
xor al, 1
cmp rdi, rsi
jne 0x140005eb0
jmp 0x140005ef6
xor eax, eax
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140027520
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.1400272a0
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.140027530
int3
Function at 0x140006aff
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
cmp byte [rcx + 0x79], 0
je 0x140006b14
xor esi, esi
jmp 0x140006c9d
mov rdi, rcx
mov rsi, qword [rcx + 0x48]
lea rax, [rcx + 8]
cmp qword [rcx], 0
je 0x140006b7a
mov r9, qword [rdi + 0x50]
movups xmm0, xmmword [rdi + 0x58]
cmp qword [rdi + 0x38], 0xffffffffffffffff
sete byte [rsp + 0x30]
movups xmmword [rsp + 0x20], xmm0
lea rbx, [rsp + 0x40]
mov rcx, rbx
mov rdx, rax
mov r8, rsi
call fcn.140006cf5
cmp qword [rbx], 0
jne 0x140006c85
cmp byte [rdi + 0x79], 0
jne 0x140006b0d
mov byte [rdi + 0x79], 1
cmp byte [rdi + 0x78], 0
je 0x140006ca9
mov rsi, qword [rdi + 0x68]
mov rdx, qword [rdi + 0x70]
jmp 0x140006cba
mov cl, byte [rdi + 0x1a]
mov r8, qword [rdi + 8]
mov rdx, qword [rdi + 0x50]
mov r9b, byte [rdi + 0x18]
test cl, cl
jne 0x140006b59
mov r10d, r9d
xor r10b, 1
mov byte [rdi + 0x18], r10b
test r8, r8
je 0x140006bb4
cmp r8, rdx
jae 0x140006bae
cmp byte [rsi + r8], 0xbf
jg 0x140006bb4
jmp 0x140006cc3
jne 0x140006cc3
cmp r8, rdx
je 0x140006c6a
mov bl, byte [rsi + r8]
movzx r10d, bl
test r10b, r10b
jns 0x140006c28
mov r11d, r10d
and r11d, 0x1f
movzx ebp, byte [rsi + r8 + 1]
and ebp, 0x3f
cmp r10b, 0xdf
jbe 0x140006c15
movzx r10d, byte [rsi + r8 + 2]
shl ebp, 6
and r10d, 0x3f
or r10d, ebp
cmp bl, 0xf0
jb 0x140006c21
movzx ebx, byte [rsi + r8 + 3]
and r11d, 7
shl r11d, 0x12
shl r10d, 6
and ebx, 0x3f
or ebx, r10d
or ebx, r11d
mov r10d, ebx
jmp 0x140006c28
shl r11d, 6
or r11d, ebp
mov r10d, r11d
jmp 0x140006c28
shl r11d, 0xc
or r10d, r11d
test r9b, r9b
jne 0x140006c78
mov r9d, 1
cmp r10d, 0x80
jb 0x140006c5c
mov r9d, 2
cmp r10d, 0x800
jb 0x140006c5c
cmp r10d, 0x10000
mov r9d, 4
sbb r9, 0
add r8, r9
mov qword [rax], r8
mov r9b, 1
jmp 0x140006b89
test r9b, r9b
jne 0x140006c7b
mov byte [rdi + 0x1a], 1
jmp 0x140006b59
mov rdx, r8
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], rdx
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rdi + 0x68]
sub rdx, rcx
add rsi, rcx
mov qword [rdi + 0x68], rax
mov rax, rsi
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rsi, qword [rdi + 0x68]
mov rdx, qword [rdi + 0x70]
cmp rdx, rsi
je 0x140006b0d
sub rdx, rsi
add rsi, qword [rdi + 0x48]
jmp 0x140006c9d
lea rax, [0x1400405d8]
mov qword [rsp + 0x20], rax
mov rcx, rsi
mov r9, rdx
call fcn.140027690
int3
Function at 0x14000ce00
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae 0x14000ce25
cmp rax, rcx
je 0x14000ce2b
cmp rdx, 4
jae 0x14000ce32
xor eax, eax
xor r8d, r8d
jmp 0x14000ced0
pop rbp
jmp fcn.140003a00
xor eax, eax
jmp 0x14000cee7
mov r8d, edx
and r8d, 0x1c
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x140029500]
movdqa xmm3, xmmword [0x140029510]
pxor xmm1, xmm1
nop word cs:[rax + rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x14000ce60
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x14000cee7
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x14000ced0
pop rbp
ret
Function at 0x140013eb0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
movzx r9d, byte [rdx + 0x38]
movzx eax, byte [rdx + 0x3a]
test al, al
setne r8b
cmp r9b, 1
ja 0x140013f36
test al, al
jne 0x140013f0f
movzx esi, byte [rdx + 0x10]
lea eax, [rsi - 5]
cmp al, 1
ja 0x140013f0f
invalid
mov r10, qword [rdx]
xor r8d, r8d
xor eax, eax

Function at 0x140019104
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001914e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001914e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001914e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001914e
cmp dword [rcx + 0x84], 0xe
jbe 0x14001914e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140019150
xor al, al
add rsp, 0x28
ret

Function at 0x14001c7c8
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14001c837
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001c837
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001c837
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001c837
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001c837
cmp dword [rcx + 0x84], 0xe
jbe 0x14001c837
cmp dword [rcx + 0xf8], 0
je 0x14001c837
mov ecx, ebx
call fcn.14001c8e8
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14001c6c4
nop
cmp dword [rbp + 0x20], 0
je 0x14001c885
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001c890
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14001c7c8

Function at 0x14001c9cc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001c7c8
Function at 0x14001fa8c
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 0x14001fabc
xor eax, eax
jmp 0x14001fb7f
mov rbp, rbx
cmp word [rax], si
je 0x14001fae1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14001fac8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001fac4
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.14001f9ac
movsxd r14, eax
test eax, eax
jne 0x14001fb1f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001fab5
mov rcx, r14
call fcn.140020968
mov rdi, rax
test rax, rax
jne 0x14001fb38
xor ecx, ecx
call fcn.14001e00c
jmp 0x14001fb14
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.14001f9ac
test eax, eax
jne 0x14001fb69
mov rcx, rdi
call fcn.14001e00c
jmp 0x14001fb73
xor ecx, ecx
call fcn.14001e00c
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