joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004960
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3d0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor edi, edi
xor ebx, ebx
xor r12d, r12d
cmp r8, 0x201
jae 0x1400049f0
jmp 0x1400049df
jae 0x140004ab0
cmp r8, 0x201
jae 0x1400049f0
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x140004a48
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x140004a1f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.14001c6f0
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x3e8], rax
mov rdi, qword [rbp + 0x3d0]
mov eax, 0xffffffff
cmp rdi, rax
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rbp + 0x3d8], r12
mov rbx, rdi
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x140004a71
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x140004b18
mov r8d, r14d
cmp r15, r8
jne 0x1400049d0
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140004b3b
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x1400049df
jmp 0x1400049f0
cmp rsi, r8
jb 0x140004b55
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.140007070
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rdi, rdi
je 0x140004b01
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call fcn.140001ee0
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi], rax
mov byte [rsi + 0x18], 2
test rdi, rdi
jne 0x140004ae9
jmp 0x140004b01
lea rcx, str.internal_error:_entered_unreachable_code_rustc_5680fa18feaa87f3ff04063800aec256c3d4b4belibrary_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14001d0a0
jmp 0x140004b6a
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.14001d4f0
ud2
Function at 0x140007a70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
movzx ebp, byte [rdx + 0x38]
xor ebx, ebx
cmp bpl, 1
setne dl
mov eax, 0
sbb eax, eax
mov rsi, rcx
or al, dl
movzx ecx, al
cmp cl, 0xff
je 0x140007aa0
test ecx, ecx
jne 0x140007af0
movzx ebx, byte [rdi + 0x3a]
cmp al, 0xff
je 0x140007aac
test ecx, ecx
jne 0x140007af0
mov rcx, rdi
call fcn.140007950
movzx eax, al
test bpl, bpl
jne 0x140007af7
lea rdx, [rdi + 0x10]
xor ecx, ecx
cmp byte [rdi + 0x10], 6
cmove rdx, rcx
je case.0x140007ae3.2
movzx r8d, byte [rdx]
mov ecx, 6
lea r9, [0x140007c68]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov rcx, qword [rdx + 0x10]
add rcx, 4
jmp case.0x140007ae3.2
xor eax, eax
test bpl, bpl
je 0x140007abc
xor ecx, ecx
add rax, rcx
movzx r10d, bl
lea rcx, [rax + r10]
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x140007c49
mov r11, qword [rdi]
lea r8, [r11 + rcx]
cmp rdx, rcx
jne 0x140007b2a
movzx r9d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x140007ba9
movzx r9d, byte [rdi + 0x10]
add rax, r10
sub rax, rdx
inc rax
lea rdi, [rdx + r11]
dec rdi
xor r10d, r10d
cmp r9b, 3
jae 0x140007b70
nop dword [rax + rax]
cmp byte [rdi], 0x5c
je 0x140007b8b
inc rax
dec rdi
cmp rax, 1
jne 0x140007b50
jmp 0x140007ba9
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x140007b8b
cmp ebx, 0x5c
je 0x140007b8b
inc rax
dec rdi
cmp rax, 1
jne 0x140007b70
jmp 0x140007ba9
neg rax
add rcx, rax
inc rcx
cmp rdx, rcx
jb 0x140007c57
add r11, rcx
mov r10d, 1
mov r8, r11
sub rdx, rcx
je 0x140007bd3
mov al, 9
cmp rdx, 2
je 0x140007bd7
cmp rdx, 1
jne 0x140007be7
cmp byte [r8], 0x2e
jne 0x140007be7
xor eax, eax
cmp r9b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x140007be7
mov al, 0xa
jmp 0x140007be7
cmp byte [r8], 0x2e
jne 0x140007be7
cmp byte [r8 + 1], 0x2e
sete al
xor al, 9
add r10, rdx
mov qword [rsi], r10
mov byte [rsi + 8], al
mov qword [rsi + 0x10], r8
mov qword [rsi + 0x18], rdx
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 8
jmp case.0x140007ae3.2
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 2
jmp case.0x140007ae3.2
mov ecx, 2
jmp case.0x140007ae3.2
lea r8, str.library_std_srcpath.rs
call fcn.14001d470
ud2
lea r8, str.library_std_srcpath.rs
call fcn.14001d470
ud2
Function at 0x14000c6a0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x14001fc58]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14000c6e4
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14000c74a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14000c781
test eax, eax
js 0x14000c75b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14000c774
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140006e40
mov rcx, rax
call fcn.1400026f0
mov ecx, 7
int 0x29
ud2

Function at 0x14001a3c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14001a43a
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x14001a430
cmp r10, r11
jb 0x14001a4d3
cmp r10, rdx
ja 0x14001a4e7
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14001a432
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14001a410
jmp 0x14001a4a7
ja 0x14001a43a
mov r11, r10
cmp rax, r8
jne 0x14001a3e2
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14001a4ab
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x14001a480
mov r8, r10
sub ecx, r9d
jns 0x14001a49e
jmp 0x14001a4ad
cmp r10, rdx
je 0x14001a4b9
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14001a4ad
xor al, 1
cmp r8, rdx
jne 0x14001a460
jmp 0x14001a4ad
xor eax, eax
jmp 0x14001a4ad
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.called__Option::unwrap____on_a__None__valuelibrarycore_src_nummod.rsfrom_str_radix_int:_must_lie_in_the_range___2__36_____found
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14001d0a0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14001d570
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14001d4f0
ud2
Function at 0x1400037e0
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x1400035b4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400035b4
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400035b4
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400035b4
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400035b4
cmp dword [rcx + 0x84], 0xe
jbe 0x1400035b4
cmp dword [rcx + 0xf8], esi
je 0x1400035b4
mov ecx, r14d
call fcn.1400036fc
mov ecx, 2
call fcn.14000685c
nop
cmp byte [0x140075680], 0
jne 0x14000367e
mov r15d, 1
mov eax, r15d
xchg dword [0x140075674], eax
test ebx, ebx
jne 0x140003627
mov rdi, qword [section..data]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x140075678]
cmp rcx, rax
je 0x14000361e
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.1400017b0]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x140075690]
jmp 0x140003633
cmp ebx, r15d
jne 0x140003639
lea rcx, [0x1400756a8]
call fcn.140003e00
nop
test ebx, ebx
jne 0x140003650
lea rdx, [0x1400695c0]
lea rcx, [0x1400695a0]
call fcn.140003474
lea rdx, [0x1400695d0]
lea rcx, [0x1400695c8]
call fcn.140003474
movzx eax, byte [0x140075680]
test esi, esi
cmove eax, r15d
mov byte [0x140075680], al
jmp 0x14000367e
mov ecx, 2
call fcn.1400068b0
test esi, esi
jne 0x140003695
mov ecx, r14d
call fcn.1400036b0
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x140003544
Function at 0x140004e2c
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x140004e09
call fcn.140004578
mov dword [rax], 0x16
call fcn.140004458
or eax, 0xffffffff
jmp 0x140004e26
sub dword [rcx + 0x10], 1
jns 0x140004e18
add rsp, 0x28
jmp 0x140009ab4
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x140004de8
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x140009770
call fcn.140004578
mov dword [rax], 0x16
call fcn.140004458
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140009758
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x140009758
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x1400097a2
lock or dword [rax + 0x14], 0x10
jmp 0x140009758
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x1400097bf
mov rcx, qword [rbp + 0x10]
call fcn.14000c024
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.140004dc0
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.14000ba00
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x140009816
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x140009758
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x140009882
mov rcx, qword [rbp + 0x10]
call fcn.140004dc0
cmp eax, 0xffffffff
je 0x140009869
mov rcx, qword [rbp + 0x10]
call fcn.140004dc0
cmp eax, 0xfffffffe
je 0x140009869
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.140004dc0
movsxd rdi, eax
lea rsi, [0x1400756e0]
mov rcx, rbx
sar rdi, 6
call fcn.140004dc0
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x140009870
lea rax, [0x140074150]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140009882
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x1400098b8
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x1400098b4
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x1400098b4
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x14000975b
jmp 0x140009728
Function at 0x140009abc
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x140009922
call fcn.140004578
mov dword [rax], 0x16
call fcn.140004458
mov eax, 0xffff
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140009904
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x140009904
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x20]
shr ecx, 1
test cl, 1
je 0x140009954
lock or dword [rax + 0x14], 0x10
jmp 0x140009904
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x140009971
mov rcx, qword [rbp + 0x20]
call fcn.14000c024
mov rax, qword [rbp + 0x20]
cmp dword [rax + 0x10], 1
jne 0x140009986
mov rcx, qword [rax]
mov sil, 1
mov r14b, byte [rcx]
jmp 0x14000998c
xor sil, sil
xor r14b, r14b
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x20]
mov rcx, rbx
call fcn.140004dc0
mov rdx, qword [rbp + 0x20]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.14000ba00
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x20]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 2
ja 0x1400099df
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x20]
and dword [rax + 0x10], 0
jmp 0x140009904
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x140009a4b
mov rcx, qword [rbp + 0x20]
call fcn.140004dc0
cmp eax, 0xffffffff
je 0x140009a32
mov rcx, qword [rbp + 0x20]
call fcn.140004dc0
cmp eax, 0xfffffffe
je 0x140009a32
mov rbx, qword [rbp + 0x20]
mov rcx, rbx
call fcn.140004dc0
movsxd rdi, eax
lea r15, [0x1400756e0]
mov rcx, rbx
sar rdi, 6
call fcn.140004dc0
and eax, 0x3f
shl rax, 6
add rax, qword [r15 + rdi*8]
jmp 0x140009a39
lea rax, [0x140074150]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140009a4b
mov rax, qword [rbp + 0x20]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x20]
cmp dword [rax + 0x20], 0x200
jne 0x140009a81
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x140009a7d
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x140009a7d
mov rax, qword [rbp + 0x20]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax]
test sil, sil
je 0x140009a9f
movzx edx, byte [rcx]
dec dword [rax + 0x10]
shl dx, 8
movzx ecx, r14b
or dx, cx
inc qword [rax]
jmp 0x140009aaa
movzx edx, word [rcx]
add dword [rax + 0x10], 0xfffffffe
add qword [rax], 2
movzx eax, dx
jmp 0x140009909
jmp 0x1400098d0
Function at 0x14000ff00
Capabilities:
Create restart manager session
Enumerate processes that use resource

Disassembly:
mov qword [rsp + 8], rcx
push rdi
mov eax, 0x1ae0
call fcn.14000d110
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1ad0], rax
xor eax, eax
mov word [rsp + 0x1a80], ax
lea rax, [rsp + 0x1a82]
mov rdi, rax
xor eax, eax
mov ecx, 0x40
rep stosb byte [rdi], al
lea r8, [rsp + 0x1a80]
xor edx, edx
lea rcx, [rsp + 0x40]
call qword [sym.imp.RstrtMgr.DLL_RmStartSession]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x14001003d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x1af0]
mov edx, 1
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.RstrtMgr.DLL_RmRegisterResources]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x14001003d
mov dword [rsp + 0x4c], 0xa
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x4c]
lea rdx, [rsp + 0x54]
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.RstrtMgr.DLL_RmGetList]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x14001003d
mov dword [rsp + 0x48], 0
jmp 0x14000fff4
mov eax, dword [rsp + 0x48]
inc eax
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x4c]
cmp dword [rsp + 0x48], eax
jae 0x14001003d
xor r8d, r8d
mov edx, 1
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.RstrtMgr.DLL_RmShutdown]
test eax, eax
jne 0x14001001e
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.RstrtMgr.DLL_RmEndSession]
xor r8d, r8d
xor edx, edx
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.RstrtMgr.DLL_RmRestart]
test eax, eax
jne 0x14001003b
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.RstrtMgr.DLL_RmEndSession]
jmp 0x14000ffea
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.RstrtMgr.DLL_RmEndSession]
mov rcx, qword [rsp + 0x1ad0]
xor rcx, rsp
call fcn.140001030
add rsp, 0x1ae0
pop rdi
ret
Function at 0x140010f90
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [rsp + 0x40], 0x75
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 1
xor edx, edx
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x140011001
xor eax, eax
jmp 0x14001107d
mov eax, dword [rsp + 0x44]
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0x90]
call fcn.140002100
mov eax, dword [rsp + 0x40]
mov r8d, eax
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x90]
call fcn.140001cb0
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 1
xor edx, edx
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x140011070
xor eax, eax
jmp 0x14001107d
mov rax, qword [rsp + 0x68]
mov ecx, dword [rsp + 0x44]
mov dword [rax], ecx
xor eax, eax
add rsp, 0x58
ret

Function at 0x140011110
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov rax, qword [rsp + 0x30]
movzx eax, byte [rax + 0x100]
mov byte [rsp], al
mov rax, qword [rsp + 0x30]
movzx eax, byte [rax + 0x101]
mov byte [rsp + 1], al
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 8], rax
mov dword [rsp + 4], 0
jmp 0x14001116e
mov eax, dword [rsp + 4]
inc eax
mov dword [rsp + 4], eax
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 4], eax
jae 0x140011235
movzx eax, byte [rsp]
inc eax
and eax, 0xff
mov byte [rsp], al
movzx eax, byte [rsp]
mov rcx, qword [rsp + 8]
movzx eax, byte [rcx + rax]
movzx ecx, byte [rsp + 1]
add eax, ecx
and eax, 0xff
mov byte [rsp + 1], al
movzx eax, byte [rsp]
mov rcx, qword [rsp + 8]
movzx eax, byte [rcx + rax]
mov byte [rsp + 2], al
movzx eax, byte [rsp + 1]
movzx ecx, byte [rsp]
mov rdx, qword [rsp + 8]
mov r8, qword [rsp + 8]
movzx eax, byte [r8 + rax]
mov byte [rdx + rcx], al
movzx eax, byte [rsp + 1]
mov rcx, qword [rsp + 8]
movzx edx, byte [rsp + 2]
mov byte [rcx + rax], dl
mov eax, dword [rsp + 4]
movzx ecx, byte [rsp]
mov rdx, qword [rsp + 8]
movzx ecx, byte [rdx + rcx]
movzx edx, byte [rsp + 1]
mov r8, qword [rsp + 8]
movzx edx, byte [r8 + rdx]
add ecx, edx
and ecx, 0xff
movsxd rcx, ecx
mov rdx, qword [rsp + 8]
movzx ecx, byte [rdx + rcx]
mov rdx, qword [rsp + 0x20]
movzx eax, byte [rdx + rax]
xor eax, ecx
mov ecx, dword [rsp + 4]
mov rdx, qword [rsp + 0x20]
mov byte [rdx + rcx], al
jmp 0x140011164
mov rax, qword [rsp + 0x30]
movzx ecx, byte [rsp]
mov byte [rax + 0x100], cl
mov rax, qword [rsp + 0x30]
movzx ecx, byte [rsp + 1]
mov byte [rax + 0x101], cl
add rsp, 0x18
ret
Function at 0x1400114b0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 0x18
cmp dword [0x1400774b8], 0x270
jl 0x140011662
mov dword [rsp + 4], 0
jmp 0x1400114d8
mov eax, dword [rsp + 4]
inc eax
mov dword [rsp + 4], eax
cmp dword [rsp + 4], 0xe3
jge 0x140011554
movsxd rax, dword [rsp + 4]
lea rcx, [0x1400774c0]
mov eax, dword [rcx + rax*4]
and eax, 0x80000000
mov ecx, dword [rsp + 4]
inc ecx
movsxd rcx, ecx
lea rdx, [0x1400774c0]
mov ecx, dword [rdx + rcx*4]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp], eax
mov eax, dword [rsp + 4]
add eax, 0x18d
cdqe
lea rcx, [0x1400774c0]
mov edx, dword [rsp]
shr edx, 1
mov eax, dword [rcx + rax*4]
xor eax, edx
mov ecx, dword [rsp]
and ecx, 1
mov ecx, ecx
lea rdx, [0x140074ca0]
xor eax, dword [rdx + rcx*4]
movsxd rcx, dword [rsp + 4]
lea rdx, [0x1400774c0]
mov dword [rdx + rcx*4], eax
jmp 0x1400114ce
jmp 0x140011560
mov eax, dword [rsp + 4]
inc eax
mov dword [rsp + 4], eax
cmp dword [rsp + 4], 0x26f
jge 0x1400115dc
movsxd rax, dword [rsp + 4]
lea rcx, [0x1400774c0]
mov eax, dword [rcx + rax*4]
and eax, 0x80000000
mov ecx, dword [rsp + 4]
inc ecx
movsxd rcx, ecx
lea rdx, [0x1400774c0]
mov ecx, dword [rdx + rcx*4]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp], eax
mov eax, dword [rsp + 4]
sub eax, 0xe3
cdqe
lea rcx, [0x1400774c0]
mov edx, dword [rsp]
shr edx, 1
mov eax, dword [rcx + rax*4]
xor eax, edx
mov ecx, dword [rsp]
and ecx, 1
mov ecx, ecx
lea rdx, [0x140074ca0]
xor eax, dword [rdx + rcx*4]
movsxd rcx, dword [rsp + 4]
lea rdx, [0x1400774c0]
mov dword [rdx + rcx*4], eax
jmp 0x140011556
mov eax, 4
imul rax, rax, 0x26f
lea rcx, [0x1400774c0]
mov eax, dword [rcx + rax]
and eax, 0x80000000
mov ecx, 4
imul rcx, rcx, 0
lea rdx, [0x1400774c0]
mov ecx, dword [rdx + rcx]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp], eax
mov eax, 4
imul rax, rax, 0x18c
lea rcx, [0x1400774c0]
mov edx, dword [rsp]
shr edx, 1
mov eax, dword [rcx + rax]
xor eax, edx
mov ecx, dword [rsp]
and ecx, 1
mov ecx, ecx
lea rdx, [0x140074ca0]
xor eax, dword [rdx + rcx*4]
mov ecx, 4
imul rcx, rcx, 0x26f
lea rdx, [0x1400774c0]
mov dword [rdx + rcx], eax
mov dword [0x1400774b8], 0
movsxd rax, dword [0x1400774b8]
lea rcx, [0x1400774c0]
mov eax, dword [rcx + rax*4]
mov dword [rsp], eax
mov eax, dword [0x1400774b8]
inc eax
mov dword [0x1400774b8], eax
mov eax, dword [rsp]
shr eax, 0xb
mov ecx, dword [rsp]
xor ecx, eax
mov eax, ecx
mov dword [rsp], eax
mov eax, dword [rsp]
shl eax, 7
and eax, 0x9d2c5680
mov ecx, dword [rsp]
xor ecx, eax
mov eax, ecx
mov dword [rsp], eax
mov eax, dword [rsp]
shl eax, 0xf
and eax, 0xefc60000
mov ecx, dword [rsp]
xor ecx, eax
mov eax, ecx
mov dword [rsp], eax
mov eax, dword [rsp]
shr eax, 0x12
mov ecx, dword [rsp]
xor ecx, eax
mov eax, ecx
mov dword [rsp], eax
mov eax, dword [rsp]
add rsp, 0x18
ret
Function at 0x1400116e0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov dword [rsp + 8], ecx
mov eax, 4
imul rax, rax, 0
lea rcx, [0x1400774c0]
mov edx, dword [rsp + 8]
mov dword [rcx + rax], edx
mov dword [0x1400774b8], 1
jmp 0x140011715
mov eax, dword [0x1400774b8]
inc eax
mov dword [0x1400774b8], eax
cmp dword [0x1400774b8], 0x270
jge 0x140011795
mov eax, dword [0x1400774b8]
dec eax
cdqe
lea rcx, [0x1400774c0]
mov edx, dword [0x1400774b8]
dec edx
movsxd rdx, edx
lea r8, [0x1400774c0]
mov edx, dword [r8 + rdx*4]
shr edx, 0x1e
mov eax, dword [rcx + rax*4]
xor eax, edx
imul eax, eax, 0x6c078965
add eax, dword [0x1400774b8]
movsxd rcx, dword [0x1400774b8]
lea rdx, [0x1400774c0]
mov dword [rdx + rcx*4], eax
movsxd rax, dword [0x1400774b8]
lea rcx, [0x1400774c0]
movsxd rdx, dword [0x1400774b8]
lea r8, [0x1400774c0]
mov eax, dword [rcx + rax*4]
mov dword [r8 + rdx*4], eax
jmp 0x140011707
ret