joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001bb7e
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
aeskeygenassist xmm0, xmmword [rdx], 2
movdqa xmmword [rcx], xmm0
ret

Function at 0x14001cd6e
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x38
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
movaps xmmword [rdx], xmm0
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x14001cda1
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x14001cda6
call fcn.1400631a0
mov ecx, dword [0x1400a5534]
mov r8, qword gs:[0x58]
mov rcx, qword [r8 + rcx*8]
mov byte [rcx + 0x130], 1
mov qword [rcx + 0x138], rax
mov qword [rcx + 0x140], rdx
add rsp, 0x38
ret

Function at 0x14001cf4a
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rax
mov rax, rcx
add qword [rcx + 0x30], 8
mov qword [rsp], rdx
mov r10, qword [rcx + 0x40]
test r10, r10
je 0x14001cff1
mov esi, 8
mov r9d, 8
sub r9, r10
cmp r9, 8
cmovb rsi, r9
xor r11d, r11d
xor r8d, r8d
cmp rsi, 4
mov ecx, edx
cmovae r11, rcx
setae r8b
lea rcx, [r8*4 + 1]
shl r8, 2
cmp rcx, rsi
jae 0x14001cfb8
movzx edx, word [rsp + r8]
lea ecx, [r8*8]
shl rdx, cl
or r11, rdx
or r8, 2
cmp r8, rsi
jae 0x14001cfcf
movzx edx, byte [rsp + r8]
shl r8d, 3
mov ecx, r8d
shl rdx, cl
or r11, rdx
lea ecx, [r10*8]
shl r11, cl
or r11, qword [rax + 0x38]
mov qword [rax + 0x38], r11
cmp r10, 8
jbe 0x14001cff6
add r10, 8
jmp 0x14001d11b
xor r9d, r9d
jmp 0x14001d04a
mov r8, qword [rax + 0x18]
mov rdx, qword [rax + 0x10]
mov rcx, qword [rax]
add rcx, rdx
rol rdx, 0xd
xor r8, r11
xor rdx, rcx
rol rcx, 0x20
mov r10, qword [rax + 8]
add r10, r8
rol r8, 0x10
xor r8, r10
add rcx, r8
rol r8, 0x15
xor r8, rcx
add r10, rdx
rol rdx, 0x11
mov qword [rax + 0x18], r8
xor rdx, r10
rol r10, 0x20
mov qword [rax + 0x10], rdx
mov qword [rax + 8], r10
xor rcx, r11
mov qword [rax], rcx
mov ecx, 8
sub rcx, r9
mov r10d, ecx
and r10d, 7
and rcx, 0xfffffffffffffff8
cmp r9, rcx
jae 0x14001d0c3
mov rdx, qword [rax]
mov r8, qword [rax + 8]
mov rsi, qword [rax + 0x18]
mov r11, qword [rax + 0x10]
add rdx, r11
rol r11, 0xd
mov rdi, qword [rsp + r9]
xor r11, rdx
rol rdx, 0x20
xor rsi, rdi
add r8, rsi
rol rsi, 0x10
xor rsi, r8
add rdx, rsi
rol rsi, 0x15
add r8, r11
rol r11, 0x11
xor r11, r8
rol r8, 0x20
xor rsi, rdx
xor rdx, rdi
add r9, 8
cmp r9, rcx
jb 0x14001d071
mov qword [rax + 0x18], rsi
mov qword [rax + 0x10], r11
mov qword [rax + 8], r8
mov qword [rax], rdx
cmp r10d, 4
jb 0x14001d0d4
mov r8d, dword [rsp + r9]
mov edx, 4
jmp 0x14001d0d9
xor r8d, r8d
xor edx, edx
mov rcx, rdx
or rcx, 1
cmp rcx, r10
jae 0x14001d0ff
lea rcx, [rdx + r9]
movzx r11d, word [rsp + rcx]
lea ecx, [rdx*8]
shl r11, cl
or r8, r11
or rdx, 2
cmp rdx, r10
jae 0x14001d117
add r9, rdx
movzx r9d, byte [rsp + r9]
shl edx, 3
mov ecx, edx
shl r9, cl
or r8, r9
mov qword [rax + 0x38], r8
mov qword [rax + 0x40], r10
add rsp, 8
pop rdi
pop rsi
ret
Function at 0x14001f3be
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x48
movaps xmmword [rsp + 0x30], xmm6
mov rsi, rcx
lea rax, [0x140075dca]
mov qword [rsp + 0x20], rax
mov rdx, qword [rsp + 0x20]
xor eax, eax
xor ecx, ecx
sub rcx, qword [0x1400a4010]
mov r8, rcx
shr r8, 0xf
xor r8, rcx
imul rcx, r8, 0x3afa0c1d
add rcx, 0x2eced8a
rol rcx, 6
movzx ecx, cx
add rcx, rdx
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
mov r8b, 1
lea rdx, [0x14007fb10]
movzx r10d, byte [rax + rdx]
mov r9, rax
or r9, 1
movzx r9d, byte [r9 + rdx]
mov r11, rax
or r11, 2
movzx r11d, byte [r11 + rdx]
mov rdi, rax
or rdi, 3
movzx edi, byte [rdi + rdx]
mov rbx, rax
or rbx, 4
movzx ebx, byte [rbx + rdx]
mov r14, rax
or r14, 5
movzx r14d, byte [r14 + rdx]
mov r15, rax
or r15, 6
mov r12, rax
or r12, 7
movzx r15d, byte [r15 + rdx]
movzx r12d, byte [r12 + rdx]
shl r12, 0x38
shl r15, 0x30
or r15, r12
shl r14, 0x28
shl rbx, 0x20
shl rdi, 0x18
shl r11, 0x10
shl r9, 8
or r9, r10
or r9, r11
or r9, rdi
or r9, rbx
or r9, r14
or r9, r15
xor r9, qword [rcx + rax]
mov qword [rsp + rax + 0x20], r9
mov eax, 8
test r8b, 1
mov r8d, 0
jne 0x14001f423
movaps xmm6, xmmword [rsp + 0x20]
mov ecx, 0x10
call fcn.140029db5
movups xmmword [rdx], xmm6
mov qword [rsi], rax
mov qword [rsi + 8], rdx
mov qword [rsi + 0x10], 0x10
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x1400239c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, rdx
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
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 0x140023a50
cmp r11, r10
ja 0x140023ac6
cmp r10, rdx
ja 0x140023ad8
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x140023a52
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x140023a30
jmp 0x140023ab4
ja 0x140023a5a
mov r11, r10
cmp rax, r8
jne 0x1400239f4
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 0x140023a90
mov rdi, r8
sub ecx, edx
jns 0x140023aab
jmp 0x140023ab6
cmp r8, rsi
je 0x140023ae7
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x140023ab6
xor al, 1
cmp rdi, rsi
jne 0x140023a70
jmp 0x140023ab6
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, str.___2___D_Rj_J____Y_sBiGX____7Sz_9_eV
mov rcx, r11
mov rdx, r10
call fcn.140078ea0
lea r8, str.___2___D_Rj_J____Y_sBiGX____7Sz_9_eV
mov rcx, r10
call fcn.140078bd0
lea rcx, str.___2___D_Rj_J____Y_sBiGX____7Sz_9_eV
call fcn.140079080
int3
Function at 0x140028c05
Capabilities:
Manipulate console buffer

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov edi, edx
mov ebx, ecx
call fcn.14002985b
mov rsi, rdx
test rax, rax
je 0x140028c31
mov rdi, rsi
mov word [rsp + 0x2c], bx
mov word [rsp + 0x2e], di
test bx, bx
js 0x140028c70
test di, di
js 0x140028cb7
mov rcx, qword [rsi + 0x10]
shl edi, 0x10
movzx edx, bx
or edx, edi
call sub.kernel32.dll_SetConsoleCursorPosition
test eax, eax
je 0x140028d11
lock dec qword [rsi]
jne 0x140028c6c
mov rcx, rsi
call fcn.1400299c1
xor edi, edi
jmp fcn.140028c23
lea rax, [rsp + 0x2c]
lea rcx, [rsp + 0x30]
mov qword [rcx], rax
lea rax, [fcn.140027b80]
mov qword [rcx + 8], rax
lea rax, str.Argument_Out_of_Range_Exception_when_setting_cursor_position_to_X:
lea rdx, [rsp + 0x70]
mov qword [rdx], rax
mov eax, 1
mov qword [rdx + 8], rax
mov qword [rdx + 0x20], 0
mov qword [rdx + 0x10], rcx
mov qword [rdx + 0x18], rax
lea rdi, [rsp + 0x40]
jmp fcn.140028cfc
lea rax, [rsp + 0x2e]
lea rcx, [rsp + 0x30]
mov qword [rcx], rax
lea rax, [fcn.140027b80]
mov qword [rcx + 8], rax
lea rax, str.0d_b_
lea rdx, [rsp + 0x70]
mov qword [rdx], rax
mov eax, 1
mov qword [rdx + 8], rax
mov qword [rdx + 0x20], 0
mov qword [rdx + 0x10], rcx
mov qword [rdx + 0x18], rax
lea rdi, [rsp + 0x58]
lea edi, [rsp + 0x58]
mov rdi, qword [sym.imp.kernel32.dll_GetLastError]
call rdi
shl rax, 0x20
lea rcx, [rax + 2]
call fcn.140028d4a
add byte [rax], al
add bh, bh
xlatb
mov edi, eax
shl rdi, 0x20
shl edi, 0x20
or rdi, 2
lock dec qword [rsi]
jne fcn.140028c23
test esi, esp
invalid
invalid
invalid
mov rcx, rsi
call fcn.1400299c1
jmp fcn.140028c23
invalid
invalid

Function at 0x1400295b3
Capabilities:
Manipulate console buffer

Disassembly:
sub rsp, 0x28
mov r9d, r8d
movsx eax, cx
movsx r8d, dx
imul r8d, eax
xor ecx, ecx
xor edx, edx
call fcn.1400295e5
test rax, rax
je 0x1400295d8
add rsp, 0x28
ret
xor ecx, ecx
xor edx, edx
add rsp, 0x28
jmp fcn.140028c05

Function at 0x14002a569
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
movzx r15d, byte [rdx + 0x48]
lea rcx, [rdx + r15]
mov r8d, 0x48
sub r8, r15
xor r14d, r14d
xor edx, edx
call fcn.1400768f0
mov byte [rbx + 0x48], 0
mov byte [rbx + r15], 6
or byte [rbx + 0x47], 0x80
mov rax, qword [rbx + r14*8]
xor qword [rdi + r14*8], rax
lea rax, [r14 + 1]
mov r14, rax
cmp rax, 9
jne 0x14002a5a6
mov rdx, qword [rdi + 0xc8]
mov rcx, rdi
call fcn.14003b360
xor eax, eax
mov rcx, qword [rdi + rax*8]
mov qword [rsi + rax*8], rcx
inc rax
cmp rax, 8
jne 0x14002a5cc
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x14002a641
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xd8
movaps xmmword [rsp + 0xc0], xmm7
movaps xmmword [rsp + 0xb0], xmm6
test r8, r8
je 0x14002a713
mov rbx, r8
mov r14, rdx
mov r15, rcx
movups xmm6, xmmword [0x14008caa0]
mov r12d, 0xffffffff
xorps xmm7, xmm7
lea r13, [rsp + 0x50]
mov rbp, qword [sym.imp.ntdll.dll_NtReadFile]
mov rdi, qword [sym.imp.kernel32.dll_WaitForSingleObject]
lea rsi, str.failed_to_fill_whole_buffer
movaps xmmword [rsp + 0x50], xmm6
cmp rbx, r12
mov eax, 0xffffffff
cmovb rax, rbx
movups xmmword [rsp + 0x38], xmm7
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r13
mov rcx, r15
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call rbp
cmp eax, 0x103
jne 0x14002a6e6
mov rcx, r15
mov edx, 0xffffffff
call rdi
mov eax, dword [rsp + 0x50]
cmp eax, 0xc0000011
je 0x14002a715
cmp eax, 0x103
je 0x14002a788
test eax, eax
js 0x14002a73c
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14002a715
cmp rbx, rcx
jb 0x14002a779
add r14, rcx
sub rbx, rcx
jne 0x14002a6a0
xor esi, esi
mov rax, rsi
movaps xmm6, xmmword [rsp + 0xb0]
movaps xmm7, xmmword [rsp + 0xc0]
add rsp, 0xd8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov rdi, rax
shl rdi, 0x20
or rdi, 2
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x68], 1
mov ecx, eax
call fcn.14005b360
cmp al, 0xb
jne 0x14002a774
lea rcx, [rsp + 0x70]
call fcn.140058860
jmp 0x14002a715
mov rsi, rdi
jmp 0x14002a715
lea r8, str.9___go__q_GX_YA____cxbz_x_m_PS6_g_3_____J_AdzQ__U9_E___wt_f__2G___9_____C
mov rdx, rbx
call fcn.140078ad0
lea rcx, [rsp + 0x60]
mov dword [rcx], 0
add byte [rax], al
Function at 0x140030d0d
Capabilities:
Move file

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xa0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x18], 0xfffffffffffffffe
mov rsi, r9
mov rdi, r8
mov r14, rdx
mov r15, rcx
lea rbx, [rbp - 0x60]
mov rcx, rbx
mov rdx, r15
mov r8, r14
call fcn.140062db0
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
call fcn.140030f30
mov r12, qword [rbx]
mov rsi, qword [rbx + 8]
mov rbx, qword [rbx + 0x10]
lea rdi, [rbp - 0x10]
mov rcx, rdi
mov rdx, r15
mov r8, r14
call fcn.14005a7f0
mov rax, qword [rdi]
mov rdi, qword [rdi + 8]
movabs r14, 0x8000000000000000
cmp rax, r14
je 0x140030e28
mov rcx, qword [rbp]
lea rdx, [rbp - 0x40]
mov qword [rdx], rax
mov qword [rdx + 8], rdi
mov qword [rdx + 0x10], rcx
lea rdi, [rbp - 0x28]
mov rcx, rdi
call fcn.140060540
mov rax, qword [rdi]
mov rdi, qword [rdi + 8]
cmp rax, r14
je 0x140030e28
mov qword [rbp + 0x10], rax
mov qword [rbp + 8], rdi
lea rcx, [rbp - 0x10]
mov rdx, rsi
mov r8, rbx
call fcn.14005a7f0
mov rax, qword [rbp - 0x10]
mov rdi, qword [rbp - 8]
cmp rax, r14
je 0x140030e09
mov rcx, qword [rbp]
lea rdx, [rbp - 0x40]
mov qword [rdx], rax
mov qword [rdx + 8], rdi
mov qword [rdx + 0x10], rcx
lea rcx, [rbp - 0x28]
call fcn.140060540
mov r15, qword [rbp - 0x28]
mov rdi, qword [rbp - 0x20]
cmp r15, r14
jne 0x140030e70
mov r14, qword [rbp + 8]
mov rax, qword [rbp + 0x10]
test rax, rax
je 0x140030e28
mov rcx, qword [0x1400a54b0]
xor edx, edx
mov r8, r14
call qword [sym.imp.kernel32.dll_HeapFree]
test r12, r12
je 0x140030e3f
mov rcx, qword [0x1400a54b0]
xor edx, edx
mov r8, rsi
call qword [sym.imp.kernel32.dll_HeapFree]
test rdi, rdi
je 0x140030e5d
mov rcx, rdi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
jmp fcn.140028d4a
nop
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
mov r14, qword [rbp + 8]
mov rcx, r14
mov rdx, rdi
mov r8d, 1
call qword [sym.imp.kernel32.dll_MoveFileExW]
test eax, eax
je 0x140030eb6
test r15, r15
je 0x140030ea1
mov rcx, qword [0x1400a54b0]
xor edx, edx
mov r8, rdi
call qword [sym.imp.kernel32.dll_HeapFree]
cmp qword [rbp + 0x10], 0
je 0x140030ee5
mov rcx, qword [0x1400a54b0]
xor edi, edi
jmp 0x140030e1d
call qword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test r15, r15
je 0x140030edd
mov rcx, qword [0x1400a54b0]
xor edx, edx
mov r8, rdi
call qword [sym.imp.kernel32.dll_HeapFree]
mov rdi, rbx
jmp 0x140030e0d
xor edi, edi
jmp 0x140030e28
Function at 0x140031d22
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
sub rsp, 0x98
movaps xmmword [rsp + 0x80], xmm14
mov ah, 0x24
add byte [rax], 0
add byte [rax], al
Function at 0x140045133
Capabilities:
Access peb ldr_data

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x3f8
movdqa xmmword [rsp + 0x3e0], xmm15

Function at 0x140049632
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xf8
mov esi, edx
sub r8w, word [rcx + 0x1a]
imul r8w, word [rcx + 0x1c]
mov rax, qword [rsp + 0x170]
movzx r14d, dx
sub si, word [rcx + 0x18]
mov rdx, qword [rsp + 0x160]
add esi, r8d
mov r8d, 0xffff
and esi, r8d
mov r10, qword [rcx + 0x18]
mov r11, r10
shr r11, 0x20
add r11w, r10w
cmovb r11d, r8d
and r11d, r8d
mov r8, qword [rsp + 0x168]
add r8, r14
mov rbp, 0xffffffffffffffff
cmovae rbp, r8
cmp r11, rbp
cmovb rbp, r11
xor r8d, r8d
lea rbx, [rsp + 0x58]
mov qword [rbx], r8
mov qword [rbx + 0x10], r8
mov qword [rbx + 0x20], r8
mov qword [rbx + 0x28], rdx
mov qword [rbx + 0x30], r8
mov r10b, 2
mov byte [rbx + 0x38], r10b
mov r11d, 0xf020001
mov dword [rbx + 0x3c], r11d
mov dil, 0xf
mov byte [rbx + 0x40], dil
mov qword [rbx + 0x48], r8
mov qword [rbx + 0x58], r8
mov qword [rbx + 0x68], rdx
mov qword [rbx + 0x70], rdx
mov qword [rbx + 0x78], r8
mov byte [rbx + 0x80], r10b
mov dword [rbx + 0x84], r11d
mov byte [rbx + 0x88], dil
mov rdi, r14
mov qword [rbx + 0x90], r9
mov qword [rbx + 0x98], rdx
mov rdx, qword [rcx + 8]
mov r14, qword [rcx + 0x10]
mov cl, byte [rax]
mov byte [rsp + 0x2d], cl
mov ecx, dword [rax]
mov dword [rsp + 0x40], ecx
mov ecx, dword [rax + 4]
mov dword [rsp + 0x3c], ecx
mov cl, byte [rax + 4]
mov byte [rsp + 0x2c], cl
movzx ecx, word [rax + 8]
mov word [rsp + 0x2e], cx
movzx eax, word [rax + 0xa]
not eax
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x30], rdx
lea rax, [rdx + 0x28]
mov qword [rsp + 0x48], rax
mov rcx, rbx
call fcn.140043f81
test rax, rax
je 0x14004984b
mov r12, rax
mov r13, rdx
mov rcx, rax
call fcn.140067922
test rax, rax
je 0x140049759
mov r15, rax
mov rax, rbp
sub rax, rdi
mov ecx, 0
cmovae rcx, rax
cmp r15, rcx
ja 0x14004984b
cmp r14, rsi
jbe 0x140049873
mov qword [rsp + 0x50], rdi
lea rdi, [rsi + rsi*4]
mov rax, qword [rsp + 0x30]
lea rcx, [rax + rdi*8]
mov qword [rcx + 0x10], 0
mov r8, r12
add r8, r13
mov rdx, r12
call fcn.1400288c4
cmp byte [rsp + 0x2d], 0x13
je 0x1400497dd
mov rax, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x40]
mov dword [rax + rdi*8 + 0x18], ecx
cmp byte [rsp + 0x2c], 0x13
je 0x1400497f1
mov rax, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x3c]
mov dword [rax + rdi*8 + 0x1c], ecx
mov rcx, qword [rsp + 0x30]
movzx eax, word [rcx + rdi*8 + 0x20]
or ax, word [rsp + 0x2e]
and eax, dword [rsp + 0x44]
mov word [rcx + rdi*8 + 0x20], ax
lea r13, [r15 + rsi]
inc rsi
cmp rsi, r13
jae 0x14004983b
mov rax, qword [rsp + 0x48]
lea r12, [rax + rdi*8]
lea rdi, [r15 - 1]
cmp r14, rsi
jbe 0x140049861
mov rcx, r12
call fcn.1400495a4
inc rsi
add r12, 0x28
dec rdi
jne 0x140049822
mov rdi, qword [rsp + 0x50]
add rdi, r15
mov rsi, r13
jmp 0x140049759
mov eax, edi
add rsp, 0xf8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r8, [0x140089080]
mov rcx, rsi
mov rdx, r14
call fcn.140078b50
lea r8, [0x140089068]
jmp 0x140049868
Function at 0x14004c579
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x1b8
lea rbp, [rsp + 0x80]
and rsp, 0xffffffffffffff80
mov rsi, rdx
mov rdi, rcx
mov r14, qword [rdx + 0x28]
mov r15b, byte [rdx + 0x30]
lea rcx, [rsp + 0x80]
call fcn.14004ba41
mov rax, qword [rsi + 0x60]
mov qword [rsp + 0x78], rax
movabs rax, 0x7465646279746573
movabs rcx, 0x6c7967656e657261
movabs rdx, 0xded7d4e2d7dedfc6
movabs r8, 0xa60c596fc19fead0
movabs r9, 0xe414a674f0de7325
mov r12d, 1
lock xadd qword [0x1400a53d0], r12
mov r10, r12
xor r10, rax
lea r13, [r10 + rcx]
mov r11, r10
rol r11, 0x10
xor r11, r13
lea rbx, [r11 + rdx]
rol r11, 0x15
add r10, r8
mov r13, r10
xor r13, r9
rol r10, 0x20
xor r12, rbx
add r12, r13
rol r13, 0xd
xor r11, rbx
xor r13, r12
rol r12, 0x20
btc r11, 0x3b
add r10, r11
rol r11, 0x10
xor r11, r10
add r12, r11
rol r11, 0x15
add r10, r13
rol r13, 0x11
xor r11, r12
xor r13, r10
rol r10, 0x20
btc r12, 0x3b
add r12, r13
rol r13, 0xd
xor r13, r12
rol r12, 0x20
xor r10, 0xff
add r10, r11
rol r11, 0x10
xor r11, r10
add r12, r11
rol r11, 0x15
add r10, r13
rol r13, 0x11
xor r13, r10
rol r10, 0x20
xor r11, r12
add r12, r13
rol r13, 0xd
xor r13, r12
rol r12, 0x20
add r10, r11
rol r11, 0x10
xor r11, r10
add r12, r11
rol r11, 0x15
add r10, r13
rol r13, 0x11
xor r13, r10
rol r10, 0x20
xor r11, r12
add r12, r13
rol r13, 0xd
add r10, r11
rol r11, 0x10
xor r11, r10
rol r11, 0x15
xor r13, r12
add r10, r13
rol r13, 0x11
mov r12, r10
rol r12, 0x20
xor r12, r13
xor r12, r11
xor r12, r10
je 0x14004c5ee
mov rbx, qword [rsi + 0x58]
movups xmm0, xmmword [rsi + 0x38]
movups xmm1, xmmword [rsi + 0x48]
movups xmmword [rdi + 0x128], xmm1
movups xmmword [rdi + 0x118], xmm0
mov qword [rdi + 0x138], r14
mov byte [rdi + 0x140], r15b
lea rdx, [rsp + 0x80]
mov r8d, 0x100
mov rcx, rdi
call fcn.140076250
mov rax, qword [rsp + 0x78]
mov qword [rdi + 0x100], rax
mov qword [rdi + 0x108], r12
mov qword [rdi + 0x110], rbx
mov rax, qword [rsi + 0x10]
shl rax, 1
test rax, rax
je 0x14004c779
mov r8, qword [rsi + 0x18]
mov rcx, qword [0x1400a54b0]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
nop
lea rsp, [rbp + 0x138]
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x140054f50
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.14001fdf0
cmp rax, rcx
je 0x140054f75
cmp rdx, 4
jae 0x140054f78
xor eax, eax
xor r8d, r8d
jmp 0x140055010
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x14007e160]
movdqa xmm3, xmmword [0x14007e170]
pxor xmm1, xmm1
nop dword [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 0x140054fa0
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x140055027
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x140055010
ret

Function at 0x140059eb0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x14008caa0]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
push rdi
ror byte [rdi], 0x11
and al, 0x38
Function at 0x1400631a0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.advapi32.dll_SystemFunction036]
test al, al
je 0x1400631e3
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [fcn.14005f410]
mov qword [rbp - 0x28], rax
lea rax, str.fallback_RNG_broken:
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, str._______Jzb___Thj__Sy_R___q_jQy__QdHn__E
lea rcx, [rbp - 0x60]
call fcn.140078a90
ud2
Function at 0x140068b1b
Capabilities:
Create process on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rbx, rdx
mov rsi, rcx
mov rdx, qword [rcx + 0x10]
cmp rdx, qword [rcx]
jne 0x140068b41
mov rcx, rsi
call fcn.14003c217
mov rdx, qword [rsi + 0x10]
mov rdi, qword [rsi + 8]
mov byte [rdi + rdx], 0
inc rdx
mov qword [rsi + 0x10], rdx
mov r15, qword [rbx]
mov rdx, qword [rbx + 0x10]
cmp rdx, r15
jne 0x140068b6b
mov rcx, rbx
call fcn.14003c217
mov r15, qword [rbx]
mov rdx, qword [rbx + 0x10]
mov r14, qword [rbx + 8]
mov byte [r14 + rdx], 0
inc rdx
mov qword [rbx + 0x10], rdx
mov dword [rsp + 0x28], 6
mov qword [rsp + 0x20], 0
xor ecx, ecx
xor edx, edx
mov r8, rdi
mov r9, r14
call sub.shell32.dll_ShellExecuteA
test r15, r15
je 0x140068bb2
mov rcx, qword [0x1400a54b0]
xor edx, edx
mov r8, r14
call qword [sym.imp.kernel32.dll_HeapFree]
cmp qword [rsi], 0
je 0x140068bd6
mov rcx, qword [0x1400a54b0]
xor edx, edx
mov r8, rdi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp qword [sym.imp.kernel32.dll_HeapFree]
nop
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x140068cda
Capabilities:
Impersonate user

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x80
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
lea r13, [rsp + 0x30]
mov qword [r13], 0
mov rdx, qword [rdx + 8]
mov r8, qword [rdi + 0x10]
lea r14, [rsp + 0x38]
mov rcx, r14
call fcn.140068c54
mov rdx, qword [rsi + 8]
mov r8, qword [rsi + 0x10]
lea r15, [rsp + 0x50]
mov rcx, r15
call fcn.140068c54
mov rdx, qword [rbx + 8]
mov r8, qword [rbx + 0x10]
lea r12, [rsp + 0x68]
mov rcx, r12
call fcn.140068c54
mov r14, qword [r14 + 8]
mov r15, qword [r15 + 8]
mov r12, qword [r12 + 8]
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], 0
mov rcx, r14
mov rdx, r15
mov r8, r12
mov r9d, 3
call sub.advapi32.dll_LogonUserW
test eax, eax
je 0x140068d88
mov rcx, qword [rsp + 0x30]
call sub.advapi32.dll_ImpersonateLoggedOnUser
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.kernel32.dll_CloseHandle]
cmp qword [rsp + 0x68], 0
je 0x140068da2
mov rcx, qword [0x1400a54b0]
xor edx, edx
mov r8, r12
call qword [sym.imp.kernel32.dll_HeapFree]
cmp qword [rsp + 0x50], 0
je 0x140068dbc
mov rcx, qword [0x1400a54b0]
xor edx, edx
mov r8, r15
call qword [sym.imp.kernel32.dll_HeapFree]
cmp qword [rsp + 0x38], 0
je 0x140068dd6
mov rcx, qword [0x1400a54b0]
xor edx, edx
mov r8, r14
call qword [sym.imp.kernel32.dll_HeapFree]
cmp qword [rbx], 0
je 0x140068def
mov r8, qword [rbx + 8]
mov rcx, qword [0x1400a54b0]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
cmp qword [rdi], 0
je 0x140068e08
mov r8, qword [rdi + 8]
mov rcx, qword [0x1400a54b0]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
cmp qword [rsi], 0
je 0x140068e21
mov r8, qword [rsi + 8]
mov rcx, qword [0x1400a54b0]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
nop
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400695ec
Capabilities:
Parse pe header

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

Function at 0x14006a604
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14006a74c

Function at 0x14006b880
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14006b8a8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14006b8a8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret