joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14015ad7c
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.140139284
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14015ae06
cmp byte [rbp - 0x21], r15b
je 0x14015ae01
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14015ae3c
call fcn.14014a558
test eax, eax
jne 0x14015ae28
cmp byte [rbp - 0x21], r15b
je 0x14015ae20
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14015ae3c
cmp byte [rbp - 0x21], r15b
je 0x14015ae39
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.14013d8d4
test eax, eax
jne 0x14015aedc
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140139284
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14015ae7b
cmp byte [rbp - 0x21], r15b
je 0x14015aeb0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14015aeb0
call fcn.14014a558
test eax, eax
jne 0x14015ae9c
cmp byte [rbp - 0x21], r15b
je 0x14015ae95
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14015aeb0
cmp byte [rbp - 0x21], r15b
je 0x14015aead
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.14013d8d4
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14015aedc
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14015aedf
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14015aeed
mov rcx, rdi
call fcn.140148290
cmp byte [rbp + 0x3f], r15b
je 0x14015aefc
mov rcx, qword [rbp + 0x27]
call fcn.140148290
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 0x14015ba50
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.14014bd2c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14014bd2c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14015bba0
cmp rax, 0xffffffffffffffff
je 0x14015bba0
xor edi, edi
test rbp, rbp
jle 0x14015bb4b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14014a218
mov rbx, rax
test rax, rax
jne 0x14015bad8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14015bb41
mov edx, 0x8000
mov ecx, r14d
call fcn.1401467c0
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.140149960
cmp eax, 0xffffffff
je 0x14015bb21
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14015bae8
mov edx, r15d
mov ecx, r14d
call fcn.1401467c0
jmp 0x14015bb41
cmp byte [rsi + 0x38], dil
je 0x14015bb38
cmp dword [rsi + 0x34], 5
jne 0x14015bb38
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14015bb41
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140148290
jmp 0x14015bbb4
jns 0x14015bbb4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14014bd2c
cmp rax, 0xffffffffffffffff
jne 0x14015bb6c
cmp byte [rsi + 0x30], dil
je 0x14015bbb4
mov edi, dword [rsi + 0x2c]
jmp 0x14015bbb4
mov ecx, r14d
call fcn.1401542f0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14015bbb4
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 0x14015bbb4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14015bbad
mov eax, dword [rsi + 0x2c]
jmp 0x14015bbb2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14014bd2c
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 0x14015c470
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14015c498
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14015c498
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x100ed8a60
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x100ed8a6d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x100ed8a7d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x100ed8a65
lea eax, [rcx + 1]
jmp 0x100ed8a8b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x100ed8a9e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x100ed8a84
sub eax, 3
jb 0x100ed8abe
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x100ed8b0d
sar eax, 1
movsxd rbp, eax
jb 0x100ed8af4
jmp 0x100ed8acc
add ebx, ebx
jne 0x100ed8aca
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x100ed8af4
inc ecx
add ebx, ebx
jne 0x100ed8ada
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x100ed8af4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x100ed8aed
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x100ed8adc
add ecx, 2
jmp 0x100ed8af9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.100ed8a22
jmp 0x100ed8a6d
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xed4000]
mov eax, dword [rdi]
or eax, eax
je 0x100ed8b69
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xeeacf0]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x100ed8b19
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x100ed8b63
mov qword [rbx], rax
add rbx, 8
jmp 0x100ed8b39
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.100ed8bec], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.100ed8bec
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x100ed8bdc
sub rsp, 0xffffffffffffff80
jmp 0x1000031c0
Function at 0x180009d10
Capabilities:
Acquire debug privileges

Disassembly:
sub rsp, 0x68
mov rax, qword [0x180138040]
xor rax, rsp
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x180009db0
lea r8, [rsp + 0x38]
xor ecx, ecx
lea rdx, str.SeDebugPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x30]
test eax, eax
je 0x180009daa
mov rax, qword [rsp + 0x38]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x44], rax
xor edx, edx
xor eax, eax
mov dword [rsp + 0x40], 1
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x4c], 2
mov qword [rsp + 0x20], rax
lea r9d, [rax + 0x10]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x180009dc4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x514
jne 0x180009dc4
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1800be3a0
add rsp, 0x68
ret
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1800be3a0
add rsp, 0x68
ret
Function at 0x180009df0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x290
mov rax, qword [0x180138040]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor edx, edx
mov rbx, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x180009e49
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x238
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x180009e50
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x180009f3a
mov qword [rsp + 0x2a0], rdi
xor edi, edi
nop word [rax + rax]
xorps xmm0, xmm0
mov qword [rsp + 0x30], rdi
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x6c]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], di
jne 0x180009e80
lea rdx, [rsp + 0x6c]
lea rcx, [rsp + 0x20]
call fcn.180017fb0
cmp qword [rbx + 0x18], 7
mov rax, rbx
jbe 0x180009ea6
mov rax, qword [rbx]
mov r10, qword [rsp + 0x38]
lea r8, [rsp + 0x20]
mov r9, qword [rsp + 0x20]
cmp r10, 7
mov rdx, qword [rsp + 0x30]
cmova r8, r9
cmp rdx, qword [rbx + 0x10]
jne 0x180009f5b
test rdx, rdx
je 0x180009ee8
sub r8, rax
movzx ecx, word [r8 + rax]
cmp cx, word [rax]
jne 0x180009f5b
add rax, 2
sub rdx, 1
jne 0x180009ed4
mov edi, dword [rsp + 0x48]
cmp r10, 7
jbe 0x180009f27
lea rdx, [r10*2 + 2]
mov rax, r9
cmp rdx, 0x1000
jb 0x180009f1f
mov r9, qword [r9 - 8]
add rdx, 0x27
sub rax, r9
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180009fad
mov rcx, r9
call fcn.1800be3c0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rdi, qword [rsp + 0x2a0]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1800be3a0
mov rbx, qword [rsp + 0x2a8]
add rsp, 0x290
pop rsi
ret
cmp r10, 7
jbe 0x180009f92
lea rdx, [r10*2 + 2]
mov rax, r9
cmp rdx, 0x1000
jb 0x180009f8a
mov r9, qword [r9 - 8]
add rdx, 0x27
sub rax, r9
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180009fad
mov rcx, r9
call fcn.1800be3c0
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x180009e60
jmp 0x180009f27
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x18000a030
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x180138040]
xor rax, rsp
mov qword [rsp + 0x68], rax
call fcn.180009d10
mov rax, qword [0x180139360]
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
cmp byte [rax + 0x19], 0
jne 0x18000a0e4
nop dword [rax]
lea rbx, [rax + 0x20]
mov rcx, rbx
call fcn.180009df0
mov esi, eax
test eax, eax
je 0x18000a0cf
mov r8d, eax
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x18000a0cf
mov rbp, qword [rbx + 0x28]
mov rbx, qword [rbx + 0x20]
cmp rbx, rbp
je 0x18000a0c6
nop word [rax + rax]
mov r8, rdi
mov rdx, rbx
mov ecx, esi
call fcn.180009800
add rbx, 0x20
cmp rbx, rbp
jne 0x18000a0b0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x30]
call fcn.180015fc0
mov rax, qword [rsp + 0x30]
cmp byte [rax + 0x19], 0
je 0x18000a070
call fcn.180009d10
mov rax, qword [0x180139070]
mov rax, qword [rax]
mov qword [rsp + 0x38], rax
cmp byte [rax + 0x19], 0
jne 0x18000a220
mov qword [rsp + 0x80], r14
nop word [rax + rax]
xor edx, edx
lea rbx, [rax + 0x20]
xor ecx, ecx
lea r14, [rbx + 0x20]
lea r8d, [rdx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
je 0x18000a1ff
cmp qword [rbx + 0x18], 7
jbe 0x18000a13c
mov rbx, qword [rbx]
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
jne 0x18000a164
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x18000a1ff
lea rax, [rsp + 0x30]
mov r9d, 0x24
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
mov rcx, rbx
test eax, eax
jne 0x18000a19c
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x18000a1ff
mov esi, dword [rsp + 0x5c]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x18000a1ff
mov r8d, esi
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x18000a1ff
mov rbp, qword [r14 + 8]
mov rbx, qword [r14]
cmp rbx, rbp
je 0x18000a1f6
nop word [rax + rax]
mov r8, rdi
mov rdx, rbx
mov ecx, esi
call fcn.180009800
add rbx, 0x20
cmp rbx, rbp
jne 0x18000a1e0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x38]
call fcn.180015fc0
mov rax, qword [rsp + 0x38]
cmp byte [rax + 0x19], 0
je 0x18000a110
mov r14, qword [rsp + 0x80]
xor eax, eax
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1800be3a0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x18000bb80
Capabilities:
Acquire debug privileges

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x180138040]
xor rax, rsp
mov qword [rsp + 0x48], rax
call fcn.18000b920
call fcn.18000b400
call fcn.18000b920
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, 0x28
mov rcx, rax
mov rbx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea r8, [rsp + 0x3c]
mov dword [rsp + 0x38], 1
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x38]
xor eax, eax
mov dword [rsp + 0x44], 2
mov qword [rsp + 0x28], rax
xor edx, edx
mov qword [rsp + 0x20], rax
lea r9d, [rax + 0x10]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_K32EmptyWorkingSet]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1800be3a0
add rsp, 0x50
pop rbx
ret
Function at 0x18000d5d0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
mov eax, 0x1630
call fcn.1800bf030
sub rsp, rax
mov rax, qword [0x180138040]
xor rax, rsp
mov qword [rsp + 0x1620], rax
mov rdi, rdx
mov qword [rsp + 0x30], rcx
mov rbx, rcx
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov edx, eax
mov dword [rsp + 0x64], eax
mov eax, 1
mov dword [rsp + 0x13e4], 0xffffffff
nop dword [rax]
mov ecx, edx
shr ecx, 0x1e
xor ecx, edx
imul edx, ecx, 0x6c078965
add edx, eax
mov dword [rsp + rax*4 + 0x64], edx
inc rax
cmp rax, 0x270
jb 0x18000d620
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x60], 0x270
call fcn.180019b00
mov ecx, eax
imul rdx, rcx, 0x186a0
cmp edx, 0x106df
ja 0x18000d67c
lea rcx, [rsp + 0x60]
call fcn.180019b00
mov ecx, eax
imul rdx, rcx, 0x186a0
cmp edx, 0x106e0
jb 0x18000d661
shr rdx, 0x20
cmp qword [rdi + 0x18], 7
jbe 0x18000d68a
mov rdi, qword [rdi]
movabs rax, 0xb6f0fae108d65a20
mov dword [rsp + 0x20], edx
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x40]
mov rax, qword [rsp + 0x30]
lea rcx, [rsp + 0x1410]
mov qword [rsp + 0x40], rax
mov r9, rdi
movabs rax, 0x11337a9181a91b6d
mov edx, 0x104
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
movabs rax, 0x7e19682dcaee7416
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x50], rax
movabs rax, 0x1490310279a49c7d
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x58], rax
movabs rax, 0xb684fabd08a55a05
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x13f0], rax
movabs rax, 0x11037ab481d91b0e
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x13f8], rax
movabs rax, 0x7e6d6803ca8a742f
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x1400], rax
movabs rax, 0x1490310279d49c10
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x1408], rax
vmovdqu ymm0, ymmword [rsp + 0x13f0]
vpxor ymm1, ymm0, ymmword [rsp + 0x40]
vmovdqu ymmword [rsp + 0x40], ymm1
vzeroupper
call fcn.180002b20
xorps xmm0, xmm0
lea rax, [rsp + 0x1410]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov r8, 0xffffffffffffffff
mov qword [rbx + 0x18], 0
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x18000d7c0
lea rdx, [rsp + 0x1410]
mov rcx, rbx
call fcn.180017fb0
mov rax, rbx
mov rcx, qword [rsp + 0x1620]
xor rcx, rsp
call fcn.1800be3a0
mov rbx, qword [rsp + 0x1650]
add rsp, 0x1630
pop rdi
ret
Function at 0x180014410
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x18], r8
push rdi
push r12
push r13
push r14
push r15
mov r14, qword [rsp + 0x50]
xor ebp, ebp
mov rax, qword [rsp + 0x58]
mov r13, r9
mov rbx, qword [rsp + 0x68]
mov r12, rdx
mov qword [r14], r8
mov qword [rbx], rax
mov rax, qword [r14]
cmp rax, r9
je 0x1800145a1
mov r15, qword [rsp + 0x60]
lea r8d, [rbp + 1]
mov rdi, qword [rbx]
mov r11d, 0x2800
mov r9d, 0x3ff
mov r10d, 0x2400
cmp rdi, r15
je 0x1800145a1
movzx edx, word [r12]
xor sil, sil
movzx ecx, word [rax]
cmp r8w, dx
jae 0x1800144ab
lea eax, [r10 + rcx]
cmp ax, r9w
ja 0x1800145c8
mov eax, edx
sub ecx, 0xdc00
shl eax, 0xa
or eax, ecx
jmp 0x1800144c2
mov eax, ecx
add cx, r11w
cmp cx, r9w
ja 0x1800144c2
shl eax, 0xa
mov sil, 1
sub eax, 0x35f0000
cmp eax, 0x80
jae 0x1800144d5
movzx r9d, al
mov r10d, ebp
mov r11d, ebp
jmp 0x180014522
mov r9d, eax
cmp eax, 0x800
jae 0x1800144ef
shr r9d, 6
mov r10d, r8d
or r9b, 0xc0
mov r11d, r8d
jmp 0x180014522
cmp eax, 0x10000
jae 0x180014509
shr r9d, 0xc
mov r10d, 2
or r9b, 0xe0
mov r11d, r10d
jmp 0x180014522
shr r9d, 0x12
mov r10d, 3
movzx r11d, sil
or r9b, 0xf0
xor r11d, 1
add r11d, r11d
lea r8d, [r11 + 1]
mov rdx, r15
sub rdx, rdi
mov ecx, r8d
cmp rdx, rcx
jl 0x1800145a1
add qword [r14], 2
test sil, sil
jne 0x180014543
cmp r10d, 3
jae 0x18001454f
mov rcx, qword [rbx]
mov r8d, r11d
mov byte [rcx], r9b
inc qword [rbx]
mov r9, qword [rbx]
test r8d, r8d
jle 0x18001457e
lea ecx, [r10 + r10*2]
add ecx, ecx
nop dword [rax]
sub ecx, 6
mov edx, eax
shr edx, cl
dec r8d
and dl, 0x3f
or dl, 0x80
mov byte [r9], dl
inc qword [rbx]
mov r9, qword [rbx]
test r8d, r8d
jg 0x180014560
shr eax, 0xa
mov r8d, 1
test sil, sil
mov ecx, r8d
cmovne ecx, eax
mov word [r12], cx
mov rax, qword [r14]
cmp rax, r13
jne 0x18001445f
mov rax, qword [rsp + 0x40]
cmp rax, qword [r14]
sete bpl
mov eax, ebp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov eax, 2
jmp 0x1800145af
Function at 0x180014f20
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x180014f48
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x180014f6e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x180014f70
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x180014fc9
test ecx, ecx
jle 0x180014fa9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x180014fc9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x180014fc9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x180014ff0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x180015012
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x180015028
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x180015044
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180015046
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180015082
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x18001511e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1800150bd
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x1800150fe
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x18001511e
cmp rbx, rax
ja 0x1800150d0
test rbx, rbx
je 0x18001511e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret