joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400e3b00
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1401a14d0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1400e3b57
cmp word [rdx], r13w
jne 0x1400e3b57
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400e3b5c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400e3c81
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400e3ca2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400e3b95
mov rdx, r9
mov word [rbx], cx
jmp 0x1400e3bbc
cmp r9, r8
jae 0x1400e3bcc
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1400e3b76
jmp 0x1400e3c81
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400e3c76
cmp dword [rsp + 0x80], esi
je 0x1400e3c76
lea r8, [0x1401a14d0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400e3c4e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400e3c1e
mov word [rbx], r13w
jmp 0x1400e3c7e
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1400e3c2b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400e3c7e
cmp word [rsp + 0x70], r13w
jne 0x1400e3c5b
cmp rbx, r14
je 0x1400e3c18
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400f4e3c
cmp word [rsp + 0x70], r13w
je 0x1400e3c81
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1401a14d0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400e3c7b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400e3c81
Function at 0x1400e5d0c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400e5d22
mov al, 1
jmp 0x1400e5d82
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400e5d33
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400e5d80
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400ed698
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400e5d80
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400e5d80
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400e5d80
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400e5d82
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400eb350
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 0x1400eb380
xor eax, eax
jmp 0x1400eb443
mov rbp, rbx
cmp word [rax], si
je 0x1400eb3a5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400eb38c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400eb388
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.1400eb1d0
movsxd r14, eax
test eax, eax
jne 0x1400eb3e3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400eb379
mov rcx, r14
call fcn.1400e7c70
mov rdi, rax
test rax, rax
jne 0x1400eb3fc
xor ecx, ecx
call fcn.1400e2d34
jmp 0x1400eb3d8
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.1400eb1d0
test eax, eax
jne 0x1400eb42d
mov rcx, rdi
call fcn.1400e2d34
jmp 0x1400eb437
xor ecx, ecx
call fcn.1400e2d34
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1400fbf7c
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.1400f4e3c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400f4e3c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400fc0cc
cmp rax, 0xffffffffffffffff
je 0x1400fc0cc
xor edi, edi
test rbp, rbp
jle 0x1400fc077
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400e7cd0
mov rbx, rax
test rax, rax
jne 0x1400fc004
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400fc06d
mov edx, 0x8000
mov ecx, r14d
call fcn.1400b8f6c
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.1400e5678
cmp eax, 0xffffffff
je 0x1400fc04d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400fc014
mov edx, r15d
mov ecx, r14d
call fcn.1400b8f6c
jmp 0x1400fc06d
cmp byte [rsi + 0x38], dil
je 0x1400fc064
cmp dword [rsi + 0x34], 5
jne 0x1400fc064
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400fc06d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400e2d34
jmp 0x1400fc0e0
jns 0x1400fc0e0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400f4e3c
cmp rax, 0xffffffffffffffff
jne 0x1400fc098
cmp byte [rsi + 0x30], dil
je 0x1400fc0e0
mov edi, dword [rsi + 0x2c]
jmp 0x1400fc0e0
mov ecx, r14d
call fcn.1400ed698
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400fc0e0
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 0x1400fc0e0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400fc0d9
mov eax, dword [rsi + 0x2c]
jmp 0x1400fc0de
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400f4e3c
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 0x1400fff60
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400fff88
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400fff88
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001140
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
lea r8, [0x14005d280]
mov r9d, edx
mov r10d, 8
mov ecx, r9d
mov eax, r9d
shr ecx, 1
mov r9d, ecx
xor r9d, 0xedb88320
test al, 1
cmove r9d, ecx
sub r10, 1
jne 0x140001152
mov dword [r8], r9d
inc edx
add r8, 4
cmp edx, 0x100
jb 0x140001149
mov byte [0x14005d680], 1
ret

Function at 0x14000118c
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x14005a040]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetCursorPos]
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
cmp byte [0x14005d680], 0
jne 0x1400011c5
call fcn.140001140
or ebx, 0xffffffff
lea rdx, [rsp + 0x20]
mov r8d, 0x10
movzx eax, byte [rdx]
mov ecx, ebx
xor rcx, rax
shr ebx, 8
movzx eax, cl
inc rdx
lea rcx, [0x14005d280]
xor ebx, dword [rcx + rax*4]
sub r8, 1
jne 0x1400011d3
call fcn.140023ba4
not ebx
xor eax, ebx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14001c440
add rsp, 0x40
pop rbx
ret

Function at 0x140001344
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
xor r9b, r9b
movzx r11d, cl
shl r11d, 2
mov rbx, r8
movzx r8d, r9b
xor r10b, r10b
add r8d, r11d
shl r8d, 2
movzx eax, r10b
inc r10b
add eax, r8d
mov cl, byte [rax + rbx]
xor byte [rdx], cl
inc rdx
cmp r10b, 4
jb 0x140001365
inc r9b
cmp r9b, 4
jb 0x140001357
mov rbx, qword [rsp + 8]
ret
Function at 0x14000138c
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov rax, qword [0x14005a040]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rbx, rcx
mov rdi, rdx
mov ecx, 0x10
lea r14d, [rcx + 0x18]
lea r13d, [rcx - 0xc]
cmp rcx, 0x10
jne 0x140001564
movups xmm0, xmmword [rbx + 0xb0]
mov r8, rbx
lea rdx, [rbp - 0x20]
xor ecx, ecx
movdqu xmmword [rbp - 0x20], xmm0
call fcn.140001344
mov sil, 1
lea rdx, [rbp - 0x20]
mov r8, r13
mov rcx, rdx
mov r9, r13
movzx eax, byte [rcx]
lea r10, [0x1400490a0]
mov al, byte [rax + r10]
mov byte [rcx], al
add rcx, r13
sub r9, 1
jne 0x1400013fa
inc rdx
sub r8, 1
jne 0x1400013f4
mov al, byte [rbp - 0x1b]
mov cl, byte [rbp - 0x1f]
mov byte [rbp - 0x1f], al
mov al, byte [rbp - 0x17]
mov byte [rbp - 0x1b], al
mov al, byte [rbp - 0x13]
mov byte [rbp - 0x17], al
mov al, byte [rbp - 0x16]
mov byte [rbp - 0x13], cl
mov cl, byte [rbp - 0x1e]
mov byte [rbp - 0x1e], al
mov al, byte [rbp - 0x12]
mov byte [rbp - 0x16], cl
mov cl, byte [rbp - 0x1a]
mov byte [rbp - 0x1a], al
mov al, byte [rbp - 0x11]
mov byte [rbp - 0x12], cl
mov cl, byte [rbp - 0x1d]
mov byte [rbp - 0x1d], al
mov al, byte [rbp - 0x15]
mov byte [rbp - 0x11], al
mov al, byte [rbp - 0x19]
mov byte [rbp - 0x15], al
mov byte [rbp - 0x19], cl
cmp sil, 0xa
je 0x14000152a
lea r11, [rbp - 0x1f]
mov r15, r13
mov r9b, byte [r11 - 1]
mov r8b, byte [r11 + 2]
mov dl, r9b
xor dl, byte [r11]
xor r8b, byte [r11 + 1]
mov al, dl
shr al, 7
add dl, dl
movzx eax, al
mov r10b, r8b
imul ecx, eax, 0x1b
xor r10b, r9b
xor r10b, byte [r11]
xor cl, dl
mov dl, byte [r11 + 1]
xor dl, byte [r11]
xor cl, r9b
xor cl, r10b
mov al, dl
mov byte [r11 - 1], cl
add dl, dl
shr al, 7
movzx eax, al
imul ecx, eax, 0x1b
mov al, r8b
shr al, 7
add r8b, r8b
movzx eax, al
xor cl, dl
mov dl, byte [r11 + 2]
xor cl, byte [r11]
xor dl, r9b
xor cl, r10b
mov byte [r11], cl
imul ecx, eax, 0x1b
mov al, dl
shr al, 7
add dl, dl
movzx eax, al
xor cl, r8b
xor cl, byte [r11 + 1]
xor cl, r10b
mov byte [r11 + 1], cl
imul ecx, eax, 0x1b
xor cl, dl
xor cl, byte [r11 + 2]
xor cl, r10b
mov byte [r11 + 2], cl
add r11, r13
sub r15, 1
jne 0x140001475
mov r8, rbx
lea rdx, [rbp - 0x20]
mov cl, sil
call fcn.140001344
inc sil
jmp 0x1400013ed
mov r8, rbx
lea rdx, [rbp - 0x20]
mov cl, 0xa
call fcn.140001344
mov eax, 0xf
mov cl, byte [rax + rbx + 0xb0]
cmp cl, 0xff
jne 0x140001559
mov byte [rbx + rax + 0xb0], 0
sub rax, 1
jns 0x14000153d
jmp 0x140001562
inc cl
mov byte [rbx + rax + 0xb0], cl
xor ecx, ecx
mov al, byte [rbp + rcx - 0x20]
inc rcx
xor byte [rdi], al
inc rdi
sub r14, 1
jne 0x1400013c6
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14001c440
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
Function at 0x140002bbc
Capabilities:
Encode data using xor

Disassembly:
neg r8d
mov r10, rcx
movsxd r11, r8d
mov r9, rdx
mov r8d, 0xa
sub r10, rdx
movsxd rcx, dword [r10 + r9]
movsxd rdx, dword [r9]
xor rdx, rcx
and rdx, r11
mov rax, rdx
xor rax, rcx
mov qword [r10 + r9], rax
movsxd rax, dword [r9]
xor rax, rdx
mov qword [r9], rax
lea r9, [r9 + 8]
sub r8, 1
jne 0x140002bd1
ret

Function at 0x1400032a0
Capabilities:
Encrypt data using curve25519

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rax, qword [0x14005a040]
xor rax, rsp
mov qword [rbp + 0x98], rax
movups xmm0, xmmword [rdx]
mov rbx, rcx
lea rcx, [rbp - 0x80]
movups xmm1, xmmword [rdx + 0x10]
mov rdx, r8
movd eax, xmm0
movups xmmword [rbp + 0x80], xmm1
and al, 0xf8
psrldq xmm1, 0xf
movups xmmword [rbp + 0x70], xmm0
mov byte [rbp + 0x70], al
movd eax, xmm1
and al, 0x3f
or al, 0x40
mov byte [rbp + 0x8f], al
call fcn.1400020c0
lea r9, [rbp - 0x80]
lea r8, [rbp + 0x70]
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x20]
call fcn.140002bfc
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x30]
call fcn.140002ef4
lea r8, [rbp - 0x30]
lea rdx, [rbp + 0x20]
lea rcx, [rsp + 0x20]
call fcn.140001c48
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.1400022b4
xor eax, eax
mov rcx, qword [rbp + 0x98]
xor rcx, rsp
call fcn.14001c440
mov rbx, qword [rsp + 0x1b8]
add rsp, 0x1a0
pop rbp
ret
Function at 0x140003368
Capabilities:
Encode data using xor

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
push r15
inc dword [rcx + 0x80c]
lea r11, [rcx + 0x404]
mov edx, dword [rcx + 0x80c]
lea rdi, [rcx + 0x604]
add edx, dword [rcx + 0x808]
lea rsi, [rcx + 4]
mov r8d, dword [rcx + 0x804]
mov r10, rcx
mov rbx, r11
mov rbp, rdi
cmp r11, rdi
jae 0x14000358f
mov r14d, 4
mov r15d, 0x3fc
mov ecx, dword [rbx]
mov r9d, r8d
mov eax, ecx
shl r9d, 0xd
and rax, r15
xor r9d, r8d
add r9d, dword [rdi]
add rdi, r14
mov r8d, r9d
shr r8d, 6
mov eax, dword [rax + r11]
xor r8d, r9d
add eax, edx
add eax, r9d
mov dword [rbx], eax
add rbx, r14
shr rax, 8
and rax, r15
add ecx, dword [rax + r11]
mov dword [rsi], ecx
add rsi, r14
add r8d, dword [rdi]
add rdi, r14
mov edx, dword [rbx]
mov eax, edx
and rax, r15
lea r9d, [r8*4]
xor r9d, r8d
mov eax, dword [rax + r11]
add eax, ecx
add eax, r8d
mov dword [rbx], eax
add rbx, r14
shr rax, 8
and rax, r15
mov ecx, dword [rax + r11]
add ecx, edx
mov dword [rsi], ecx
add rsi, r14
add r9d, dword [rdi]
add rdi, r14
mov edx, dword [rbx]
mov r8d, r9d
mov eax, edx
shr r8d, 0x10
and rax, r15
xor r8d, r9d
mov eax, dword [rax + r11]
add eax, ecx
add eax, r9d
mov dword [rbx], eax
add rbx, r14
shr rax, 8
and rax, r15
mov ecx, dword [rax + r11]
add ecx, edx
mov dword [rsi], ecx
add rsi, r14
mov edx, dword [rbx]
mov eax, edx
add r8d, dword [rdi]
and rax, r15
add rdi, r14
mov eax, dword [rax + r11]
add eax, ecx
add eax, r8d
mov dword [rbx], eax
add rbx, r14
shr rax, 8
and rax, r15
add edx, dword [rax + r11]
mov dword [rsi], edx
add rsi, r14
cmp rbx, rbp
jb 0x1400033c8
mov rdi, r11
mov ecx, dword [rbx]
mov r9d, r8d
mov eax, ecx
shl r9d, 0xd
and rax, r15
xor r9d, r8d
add r9d, dword [rdi]
add rdi, r14
mov r8d, r9d
shr r8d, 6
mov eax, dword [rax + r11]
xor r8d, r9d
add eax, edx
add eax, r9d
mov dword [rbx], eax
add rbx, r14
shr rax, 8
and rax, r15
add ecx, dword [rax + r11]
mov dword [rsi], ecx
add rsi, r14
add r8d, dword [rdi]
add rdi, r14
mov edx, dword [rbx]
mov eax, edx
and rax, r15
lea r9d, [r8*4]
xor r9d, r8d
mov eax, dword [rax + r11]
add eax, ecx
add eax, r8d
mov dword [rbx], eax
add rbx, r14
shr rax, 8
and rax, r15
mov ecx, dword [rax + r11]
add ecx, edx
mov dword [rsi], ecx
add rsi, r14
add r9d, dword [rdi]
add rdi, r14
mov edx, dword [rbx]
mov r8d, r9d
mov eax, edx
shr r8d, 0x10
and rax, r15
xor r8d, r9d
mov eax, dword [rax + r11]
add eax, ecx
add eax, r9d
mov dword [rbx], eax
add rbx, r14
shr rax, 8
and rax, r15
mov ecx, dword [rax + r11]
add ecx, edx
mov dword [rsi], ecx
add rsi, r14
mov edx, dword [rbx]
mov eax, edx
add r8d, dword [rdi]
and rax, r15
add rdi, r14
mov eax, dword [rax + r11]
add eax, ecx
add eax, r8d
mov dword [rbx], eax
add rbx, r14
shr rax, 8
and rax, r15
add edx, dword [rax + r11]
mov dword [rsi], edx
add rsi, r14
cmp rdi, rbp
jb 0x1400034ad
mov rbx, qword [rsp + 0x18]
mov rbp, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
mov dword [r10 + 0x808], edx
mov dword [r10 + 0x804], r8d
pop r15
pop r14
ret
Function at 0x140003844
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov edx, dword [0x14005e050]
lea r8, [0x14005d690]
cmp edx, 0x270
jl 0x1400038fd
mov rdx, r8
lea r11, [0x14005da1c]
mov r9d, 0x7fffffff
lea r10, [0x14004e860]
mov ecx, dword [rdx]
xor ecx, dword [rdx + 4]
and ecx, r9d
xor ecx, dword [rdx]
mov eax, ecx
shr ecx, 1
and eax, 1
xor ecx, dword [r10 + rax*4]
xor ecx, dword [rdx + 0x634]
mov dword [rdx], ecx
add rdx, 4
cmp rdx, r11
jl 0x140003874
lea rdx, [0x14005da1c]
lea r11, [0x14005e04c]
mov ecx, dword [rdx]
xor ecx, dword [rdx + 4]
and ecx, r9d
xor ecx, dword [rdx]
mov eax, ecx
shr ecx, 1
and eax, 1
xor ecx, dword [r10 + rax*4]
xor ecx, dword [rdx - 0x38c]
mov dword [rdx], ecx
add rdx, 4
cmp rdx, r11
jl 0x1400038a8
mov eax, dword [0x14005e04c]
mov ecx, dword [0x14005d690]
and eax, 0x80000000
and ecx, r9d
or ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
xor ecx, dword [r10 + rax*4]
xor ecx, dword [0x14005dcc0]
mov dword [0x14005e04c], ecx
xor edx, edx
movsxd rax, edx
inc edx
mov dword [0x14005e050], edx
mov ecx, dword [r8 + rax*4]
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
ret

Function at 0x140003dec
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x48
mov rbx, rdx
mov byte [rcx + 8], 0
mov rsi, rcx
lea rbp, [rax + 0x18]
call fcn.140003c78
mov r8d, 0x208
mov qword [rsp + 0x30], rbp
and qword [rsp + 0x28], 0
lea rdx, [rsi + 0xa]
mov r9d, r8d
mov qword [rsp + 0x20], rbx
mov rcx, qword [rax]
call fcn.140026190
or ecx, 0xffffffff
test eax, eax
cmovs eax, ecx
lea rcx, [rsi + 0xa]
mov dword [rsi + 0x41c], eax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x48
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140003e5c
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rbx, r8
mov rdi, rdx
mov rbp, rcx
call fcn.140003c78
mov r8d, 0x208
mov qword [rsp + 0x30], rbx
and qword [rsp + 0x28], 0
lea rdx, [rbp + 0xa]
mov r9d, r8d
mov qword [rsp + 0x20], rdi
mov rcx, qword [rax]
call fcn.140026190
or ecx, 0xffffffff
test eax, eax
cmovs eax, ecx
lea rcx, [rbp + 0xa]
mov dword [rbp + 0x41c], eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
jmp qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
Function at 0x1400041e0
Capabilities:
Move file

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xd0
mov rax, qword [0x14005a040]
xor rax, rsp
mov qword [rbp + 0x37], rax
lea rax, vtable.Encrypt.1.0
or rsi, 0xffffffffffffffff
lea r14, [rcx + 0x4c0]
mov qword [rcx], rax
lea rax, vtable.Encrypt.0
mov rdi, rcx
mov qword [r14], rax
cmp qword [rcx + 0x440], rsi
je 0x14000436c
mov r15d, dword [rcx + 0x798]
xor ebx, ebx
test r15d, r15d
je 0x14000436c
xor edx, edx
lea r8d, [rsi + 0x59]
lea rcx, [rbp - 0x29]
call fcn.14003c460
movups xmm1, xmmword [rdi + 0x4d8]
mov rax, qword [rdi + 0x450]
lea r8d, [rsi + 3]
movups xmm0, xmmword [rdi + 0x4c8]
xor r9d, r9d
mov qword [rbp - 0x31], rax
movaps xmmword [rbp - 0x19], xmm1
mov edx, ebx
movups xmm1, xmmword [rdi + 0x518]
mov rax, qword [rdi + 0x790]
movaps xmmword [rbp - 0x29], xmm0
movsd xmm0, qword [rdi + 0x4e8]
movdqu xmmword [rbp - 1], xmm1
mov dword [rbp - 0x39], 0x1020102
mov dword [rbp - 0x35], r15d
movsd qword [rbp - 9], xmm0
mov rcx, qword [rax + 0x18]
movups xmm0, xmmword [rcx]
movups xmmword [rbp + 0xf], xmm0
movups xmm1, xmmword [rcx + 0x10]
mov rcx, rdi
mov dword [rbp + 0x2f], 0x3040304
movups xmmword [rbp + 0x1f], xmm1
call fcn.14001b510
lea r9, [rbp - 0x69]
mov rcx, rdi
lea r8d, [rsi + 0x6d]
lea rdx, [rbp - 0x39]
call fcn.14001b430
mov rcx, qword [rdi + 0x440]
cmp rcx, rsi
je 0x140004301
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x440], rsi
mov rax, qword [rdi + 0x790]
xorps xmm0, xmm0
xorps xmm1, xmm1
mov rdx, qword [rax]
movups xmmword [rbp - 0x61], xmm0
movdqu xmmword [rbp - 0x51], xmm1
inc rsi
cmp word [rdx + rsi*2], bx
jne 0x14000431a
mov r8, rsi
lea rcx, [rbp - 0x61]
call fcn.14000451c
mov r8d, 7
lea rdx, str..mallox
lea rcx, [rbp - 0x61]
call fcn.1400044a0
mov rcx, qword [rdi + 0x790]
lea rdx, [rbp - 0x61]
cmp qword [rbp - 0x49], 7
cmova rdx, qword [rbp - 0x61]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
lea rcx, [rbp - 0x61]
call fcn.14000443c
mov rcx, r14
call fcn.14001b5e0
mov rcx, rdi
call fcn.14001b230
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.14001c440
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140005498
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x14005a040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbp, qword [rsp + 0x80]
xor ebx, ebx
mov rsi, r8
test rdx, rdx
je 0x140005531
test r8, r8
je 0x140005531
test rbp, rbp
je 0x140005531
lea rax, [r11 - 0x28]
mov qword [r11 - 0x28], rbx
lea r9d, [rbx + 2]
mov qword [r11 - 0x38], rax
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
cmp eax, 5
je 0x140005531
test eax, eax
jne 0x140005528
mov rcx, qword [rsp + 0x30]
lea r9d, [rbx + 4]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
sete bl
mov eax, ebx
jmp 0x140005533
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14001c440
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret