Function at 0x513e80
Capabilities:
Encode data using xor
Encrypt data using aes via x86 extensions
Query environment variable
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x288
movups xmmword [rsp + 0x210], xmm6
movups xmmword [rsp + 0x220], xmm7
movups xmmword [rsp + 0x230], xmm8
movups xmmword [rsp + 0x240], xmm9
movups xmmword [rsp + 0x250], xmm10
movups xmmword [rsp + 0x260], xmm11
movups xmmword [rsp + 0x270], xmm12
mov eax, dword [0x00860024]
mov qword [rsp + 0x2e0], r8
mov rsi, rcx
mov rdi, rdx
mov dword [rsp + 0x2e8], r9d
mov qword [rsp + 0x78], 0
cmp eax, 0xffffffff
je 0x5146bf
xor ebp, ebp
test eax, eax
je 0x514700
lea rcx, [0x0085ffe0]
call sym.__emutls_get_address
cmp qword [rax], 0
mov rbx, rax
je 0x5150c9
mov eax, dword [rsp + 0x2f0]
lea r12, [rsp + 0x140]
mov r8, rdi
mov rdx, rsi
mov rcx, r12
test eax, eax
je 0x51472d
call sym.memcpy
movdqu xmm2, xmmword [rsp + 0x180]
cmp dword [rsp + 0x2e8], 1
movdqu xmm4, xmmword [rsp + 0x190]
movdqu xmm5, xmmword [rsp + 0x1b0]
movups xmmword [rsp + 0xc0], xmm2
movdqu xmm2, xmmword [rsp + 0x1a0]
movups xmmword [rsp + 0xd0], xmm4
movdqu xmm4, xmmword [rsp + 0x1c0]
movups xmmword [rsp + 0xe0], xmm2
movdqu xmm2, xmmword [rsp + 0x1d0]
movups xmmword [rsp + 0xf0], xmm5
movdqu xmm5, xmmword [rsp + 0x1e0]
movups xmmword [rsp + 0x100], xmm4
movdqu xmm4, xmmword [rsp + 0x1f0]
movups xmmword [rsp + 0x110], xmm2
movups xmmword [rsp + 0x120], xmm5
movups xmmword [rsp + 0x130], xmm4
je 0x51501c
jle 0x5150d3
mov rax, qword [rsp + 0x180]
xor rax, qword [rsp + 0x190]
mov qword [rsp + 0x58], 0
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0x188]
xor rax, qword [rsp + 0x198]
mov r14, qword [rsp + 0x1a8]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0x1a0]
mov qword [rsp + 0x40], rax
test ebp, ebp
je 0x514737
movdqu xmm10, xmmword [rsp + 0x140]
xor edx, edx
movdqu xmm9, xmmword [rsp + 0x150]
lea rsi, [rsp + 0xc0]
movdqu xmm2, xmm10
aeskeygenassist xmm1, xmm9, 1
movdqu xmm5, xmm9
pslldq xmm2, 4
pslldq xmm5, 4
pshufd xmm1, xmm1, 0xff
movdqu xmm0, xmm2
pslldq xmm0, 4
movdqu xmm6, xmm0
pxor xmm0, xmm2
pslldq xmm6, 4
pxor xmm6, xmm1
pxor xmm6, xmm0
pxor xmm6, xmm10
aeskeygenassist xmm0, xmm6, 0
movdqu xmm4, xmm6
pshufd xmm2, xmm0, 0xaa
pslldq xmm4, 4
movdqu xmm0, xmm5
pslldq xmm0, 4
movdqu xmm1, xmm0
pxor xmm5, xmm0
pslldq xmm1, 4
movdqu xmm0, xmm1
pxor xmm0, xmm2
pxor xmm5, xmm0
pxor xmm5, xmm9
aeskeygenassist xmm0, xmm5, 2
movdqu xmm3, xmm5
pshufd xmm2, xmm0, 0xff
pslldq xmm3, 4
movdqu xmm0, xmm4
pslldq xmm0, 4
movdqu xmm1, xmm0
pxor xmm4, xmm0
pslldq xmm1, 4
movdqu xmm0, xmm1
pxor xmm0, xmm2
pxor xmm4, xmm0
pxor xmm4, xmm6
aeskeygenassist xmm0, xmm4, 0
pshufd xmm2, xmm0, 0xaa
movdqu xmm0, xmm3
pslldq xmm0, 4
movdqu xmm1, xmm0
pxor xmm3, xmm0
pslldq xmm1, 4
movdqu xmm0, xmm1
pxor xmm0, xmm2
movdqu xmm2, xmm4
pxor xmm3, xmm0
pslldq xmm2, 4
pxor xmm3, xmm5
aeskeygenassist xmm0, xmm3, 4
pshufd xmm7, xmm0, 0xff
movdqu xmm0, xmm2
pslldq xmm0, 4
movdqu xmm1, xmm0
pxor xmm2, xmm0
pslldq xmm1, 4
movdqu xmm0, xmm1
movdqu xmm1, xmm3
pxor xmm0, xmm7
pslldq xmm1, 4
pxor xmm2, xmm0
pxor xmm2, xmm4
aeskeygenassist xmm0, xmm2, 0
pshufd xmm8, xmm0, 0xaa
movdqu xmm0, xmm1
pslldq xmm0, 4
movdqu xmm7, xmm0
pxor xmm1, xmm0
pslldq xmm7, 4
movdqu xmm0, xmm7
movdqu xmm7, xmm2
pxor xmm0, xmm8
pslldq xmm7, 4
pxor xmm1, xmm0
pxor xmm1, xmm3
aeskeygenassist xmm0, xmm1, 8
pshufd xmm11, xmm0, 0xff
movdqu xmm0, xmm7
pslldq xmm0, 4
movdqu xmm8, xmm0
pxor xmm7, xmm0
pslldq xmm8, 4
movdqu xmm0, xmm8
movdqu xmm8, xmm1
pxor xmm0, xmm11
pslldq xmm8, 4
pxor xmm7, xmm0
pxor xmm7, xmm2
aeskeygenassist xmm0, xmm7, 0
pshufd xmm12, xmm0, 0xaa
movdqu xmm0, xmm8
pslldq xmm0, 4
movdqu xmm11, xmm0
pxor xmm8, xmm0
pslldq xmm11, 4
movdqu xmm0, xmm11
pxor xmm0, xmm12
pxor xmm8, xmm0
pxor xmm8, xmm1
nop dword [rax]
mov rax, rsi
nop dword [rax + rax]
movdqu xmm0, xmmword [rax]
add rax, 0x10
aesenc xmm0, xmm10
aesenc xmm0, xmm9
aesenc xmm0, xmm6
aesenc xmm0, xmm5
aesenc xmm0, xmm4
aesenc xmm0, xmm3
aesenc xmm0, xmm2
aesenc xmm0, xmm1
aesenc xmm0, xmm7
aesenc xmm0, xmm8
movups xmmword [rax - 0x10], xmm0
cmp r12, rax
jne 0x514248
movdqu xmm0, xmmword [rsp + 0xc0]
mov rax, qword [rbx]
movups xmmword [rax + rdx], xmm0
movdqu xmm0, xmmword [rsp + 0xd0]
movups xmmword [rax + rdx + 0x10], xmm0
movdqu xmm0, xmmword [rsp + 0xe0]
movups xmmword [rax + rdx + 0x20], xmm0
movdqu xmm0, xmmword [rsp + 0xf0]
movups xmmword [rax + rdx + 0x30], xmm0
movdqu xmm0, xmmword [rsp + 0x100]
movups xmmword [rax + rdx + 0x40], xmm0
movdqu xmm0, xmmword [rsp + 0x110]
movups xmmword [rax + rdx + 0x50], xmm0
movdqu xmm0, xmmword [rsp + 0x120]
movups xmmword [rax + rdx + 0x60], xmm0
movdqu xmm0, xmmword [rsp + 0x130]
movups xmmword [rax + rdx + 0x70], xmm0
sub rdx, 0xffffffffffffff80
cmp rdx, 0x100000
jne 0x514240
mov rax, qword [rsp + 0x148]
xor rax, qword [rsp + 0x168]
mov qword [rsp + 0x28], rax
mov rcx, rax
mov rax, qword [rsp + 0x150]
xor rax, qword [rsp + 0x170]
mov rdi, qword [rsp + 0x140]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0x158]
xor rax, qword [rsp + 0x178]
xor rdi, qword [rsp + 0x160]
movdqu xmm7, xmmword [rsp + 0xb0]
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0xa8], rax
mov eax, dword [rsp + 0x2f8]
movdqu xmm6, xmmword [rsp + 0xa0]
shr eax, 1
mov edx, eax
mov qword [rsp + 0x38], rdx
test ebp, ebp
jne 0x514a29
xor edx, edx
lea rbp, [rsp + 0x80]
lea r15, [rsp + 0x90]
test eax, eax
je 0x51481a
movdqu xmm9, xmmword [0x00918900]
mov qword [rsp + 0x60], rsi
mov rsi, rcx
movdqu xmm8, xmmword [0x00918910]
mov qword [rsp + 0x68], r12
mov r12, rdx
mov qword [rsp + 0x50], rbp
jmp 0x5145d7
mov rdx, qword [rbx]
mov rcx, r13
mov rax, r13
mov r8, r13
xor rcx, 0x30
xor rax, 0x10
xor r8, 0x20
mov r9, qword [rsp + 0x40]
movdqu xmm2, xmmword [rdx + rcx]
add rax, rdx
movdqu xmm0, xmmword [rdx + r8]
movdqu xmm1, xmmword [rax]
paddq xmm2, xmm7
movups xmmword [rax], xmm2
mov rax, qword [rbx]
paddq xmm1, xmm6
movups xmmword [rax + r8], xmm1
mov rax, qword [rbx]
paddq xmm0, xmmword [rsp + 0x80]
movups xmmword [rax + rcx], xmm0
mov rax, qword [rbx]
movdqu xmm0, xmmword [rsp + 0x90]
movdqu xmm1, xmm0
movq r8, xmm0
movq rcx, xmm0
pxor xmm1, xmm6
and r8d, 0xffff0
lea r10d, [rcx + r14*2]
movups xmmword [rax + r13], xmm1
mov rax, qword [rbx]
movhlps xmm4, xmm0
or r10d, 0x80000001
add rax, r8
mov rdx, qword [rax + 8]
xor r9, qword [rax]
mov rax, r14
shl rax, 0x20
xor r9, rax
mov qword [rsp + 0x48], rdx
movq rax, xmm4
xor edx, edx
div r10
shl rdx, 0x20
mov eax, eax
add rax, rdx
lea r13, [rax + rcx]
mov qword [rsp + 0x40], rax
mov rax, r13
mov rbp, r13
shr rax, 0xc
movq xmm0, rax
movdqu xmm1, xmm0
pxor xmm0, xmm0
paddq xmm1, xmm9
movsd xmm0, xmm1
sqrtsd xmm0, xmm0
paddq xmm0, xmm8
movq r11, xmm0
movq rax, xmm0
shr r11, 0x13
shr rax, 0x14
mov r10, r11
mov r14, r11
sub rbp, rax
and r10d, 1
shl r14, 0x20
lea rdx, [rax + r10]
imul rdx, rax
add rdx, r14
movabs r14, 0x100000000
add r14, rdx
cmp r14, rbp
setb al
add rdx, r10
mov r10, qword [rbx]
cmp rdx, r13
movzx eax, al
mov r13, r8
seta dl
xor r13, 0x30
movzx edx, dl
sub eax, edx
movsxd r14, eax
mov rax, rcx
mov rcx, r8
xor rcx, 0x10
add r14, r11
mul r9
xor qword [r10 + rcx], rdx
mov r10, r8
mov r11, qword [rbx]
xor r10, 0x20
xor qword [r11 + rcx + 8], rax
add r11, r10
xor rdx, qword [r11]
xor rax, qword [r11 + 8]
mov r11, qword [rbx]
add rdx, rdi
add rax, rsi
xor r9, rdx
add rcx, r11
paddq xmm7, xmmword [r11 + r13]
movdqu xmm0, xmmword [r11 + r10]
movdqu xmm1, xmmword [rcx]
movups xmmword [rcx], xmm7
mov rcx, qword [rbx]
paddq xmm1, xmm6
mov qword [rsp + 0x20], r9
movups xmmword [rcx + r10], xmm1
mov rcx, qword [rbx]
paddq xmm0, xmmword [rsp + 0x80]
movups xmmword [rcx + r13], xmm0
add r8, qword [rbx]
mov qword [r8 + 8], rax
xor rax, qword [rsp + 0x48]
mov qword [r8], rdx
mov qword [rsp + 0x28], rax
movdqu xmm0, xmmword [rsp + 0x90]
add r12, 1
cmp r12, qword [rsp + 0x38]
je 0x514810
mov rdi, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
movdqu xmm7, xmm6
movdqu xmm6, xmm0
mov rax, qword [rbx]
mov r13, rdi
mov r8, qword [rsp + 0x50]
mov rdx, r15
and r13d, 0xffff0
mov rcx, r15
movdqu xmm4, xmmword [rax + r13]
movups xmmword [rsp + 0x90], xmm4
movdqu xmm4, xmmword [rsp + 0x20]
movups xmmword [rsp + 0x80], xmm4
call sym.aesb_single_round
cmp dword [rsp + 0x2e8], 1
jg 0x5143de
movdqu xmm0, xmmword [rsp + 0x90]
mov rax, qword [rbx]
movdqu xmm1, xmm0
movq rdx, xmm0
pxor xmm1, xmm6
and edx, 0xffff0
cmp dword [rsp + 0x2e8], 1
movups xmmword [rax + r13], xmm1
movq rax, xmm0
jne 0x515077
mov r10, qword [rbx]
movzx r9d, byte [r10 + r13 + 0xb]
mov ecx, r9d
mov r8d, r9d
shr cl, 3
and r8d, 1
and ecx, 6
or ecx, r8d
mov r8d, 0x75310
add ecx, ecx
shr r8d, cl
and r8d, 0x30
xor r8d, r9d
mov byte [r10 + r13 + 0xb], r8b
mov rcx, qword [rbx]
add rcx, rdx
mov r8, qword [rcx]
mul r8
add rax, rsi
mov rsi, qword [rcx + 8]
add rdx, rdi
mov qword [rcx], rdx
xor rdx, r8
xor rsi, rax
xor rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x28], rsi
mov qword [rcx + 8], rax
jmp 0x5145ad
lea rcx, str.MONERO_USE_SOFTWARE_AES
call sym.getenv
test rax, rax
je 0x5146f6
cmp byte [rax], 0x30
je 0x5150a9
cmp byte [rax], 0x6e
jne 0x5150b8
cmp byte [rax + 1], 0x6f
jne 0x5150b8
cmp byte [rax + 2], 0
jne 0x5150b8
mov dword [0x00860024], 0
mov eax, dword [0x00860020]
test eax, eax
jns 0x514720
mov eax, 1
xor ecx, ecx
cpuid
mov eax, ecx
and eax, 0x2000000
mov dword [0x00860020], eax
xor ebp, ebp
test eax, eax
setne bpl
jmp 0x513f08
call sym.hash_process
jmp 0x513f46
call sym.oaes_alloc
mov r8d, 0x20
mov rdx, r12
xor edi, edi
mov rcx, rax
mov qword [rsp + 0x78], rax
lea rsi, [rsp + 0xc0]
call sym.oaes_key_import_data
nop dword [rax]
mov r13, rsi
nop dword [rax + rax]
mov rax, qword [rsp + 0x78]
mov rdx, r13
mov rcx, r13
add r13, 0x10
mov rax, qword [rax]
mov r8, qword [rax + 0x18]
call sym.aesb_pseudo_round
cmp r12, r13
jne 0x514768
movdqu xmm3, xmmword [rsp + 0xc0]
mov rax, qword [rbx]
movups xmmword [rax + rdi], xmm3
movdqu xmm4, xmmword [rsp + 0xd0]
movups xmmword [rax + rdi + 0x10], xmm4
movdqu xmm5, xmmword [rsp + 0xe0]
movups xmmword [rax + rdi + 0x20], xmm5
movdqu xmm2, xmmword [rsp + 0xf0]
movups xmmword [rax + rdi + 0x30], xmm2
movdqu xmm7, xmmword [rsp + 0x100]
movups xmmword [rax + rdi + 0x40], xmm7
movdqu xmm6, xmmword [rsp + 0x110]
movups xmmword [rax + rdi + 0x50], xmm6
movdqu xmm1, xmmword [rsp + 0x120]
movups xmmword [rax + rdi + 0x60], xmm1
movdqu xmm3, xmmword [rsp + 0x130]
movups xmmword [rax + rdi + 0x70], xmm3
sub rdi, 0xffffffffffffff80
cmp rdi, 0x100000
jne 0x514760
jmp 0x514311
mov rsi, qword [rsp + 0x60]
mov r12, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x78]
lea rdx, [rsp + 0x160]
mov rbp, rsi
movdqu xmm6, xmmword [rsp + 0x180]
mov r8d, 0x20
mov r14d, 0x100000
neg rbp
movdqu xmm5, xmmword [rsp + 0x190]
movdqu xmm4, xmmword [rsp + 0x1c0]
movups xmmword [rsp + 0xc0], xmm6
movdqu xmm6, xmmword [rsp + 0x1a0]
sub r14, rsi
movups xmmword [rsp + 0xd0], xmm5
lea r13, [rsi + 0x80]
movdqu xmm5, xmmword [rsp + 0x1b0]
movups xmmword [rsp + 0xe0], xmm6
movdqu xmm6, xmmword [rsp + 0x1d0]
movups xmmword [rsp + 0xf0], xmm5
movdqu xmm5, xmmword [rsp + 0x1e0]
movups xmmword [rsp + 0x100], xmm4
movdqu xmm4, xmmword [rsp + 0x1f0]
movups xmmword [rsp + 0x110], xmm6
movups xmmword [rsp + 0x120], xmm5
movups xmmword [rsp + 0x130], xmm4
call sym.oaes_key_import_data
mov rdi, rsi
nop dword [rax + rax]
lea rax, [rbp + rdi]
add rax, qword [rbx]
mov rcx, rdi
mov rdx, qword [rax]
xor qword [rdi], rdx
mov rdx, rdi
mov rax, qword [rax + 8]
xor qword [rdi + 8], rax
add rdi, 0x10
mov rax, qword [rsp + 0x78]
mov rax, qword [rax]
mov r8, qword [rax + 0x18]
call sym.aesb_pseudo_round
cmp r13, rdi
jne 0x5148d8
sub rbp, 0xffffffffffffff80
cmp r14, rbp
jne 0x5148d0
lea rcx, [rsp + 0x78]
call sym.oaes_free
movdqu xmm2, xmmword [rsp + 0xc0]
mov rcx, r12
movdqu xmm5, xmmword [rsp + 0xd0]
movdqu xmm7, xmmword [rsp + 0xe0]
movdqu xmm4, xmmword [rsp + 0xf0]
movups xmmword [rsp + 0x180], xmm2
movdqu xmm2, xmmword [rsp + 0x100]
movups xmmword [rsp + 0x190], xmm5
movdqu xmm5, xmmword [rsp + 0x110]
movups xmmword [rsp + 0x1a0], xmm7
movdqu xmm7, xmmword [rsp + 0x120]
movups xmmword [rsp + 0x1b0], xmm4
movdqu xmm4, xmmword [rsp + 0x130]
movups xmmword [rsp + 0x1c0], xmm2
movups xmmword [rsp + 0x1d0], xmm5
movups xmmword [rsp + 0x1e0], xmm7
movups xmmword [rsp + 0x1f0], xmm4
call sym.hash_permutation
movzx eax, byte [rsp + 0x140]
mov edx, 0xc8
mov rcx, r12
lea r9, sym.hash_extra_blake
mov r8, qword [rsp + 0x2e0]
and eax, 3
call qword [r9 + rax*8]
nop
movups xmm6, xmmword [rsp + 0x210]
movups xmm7, xmmword [rsp + 0x220]
movups xmm8, xmmword [rsp + 0x230]
movups xmm9, xmmword [rsp + 0x240]
movups xmm10, xmmword [rsp + 0x250]
movups xmm11, xmmword [rsp + 0x260]
movups xmm12, xmmword [rsp + 0x270]
add rsp, 0x288
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
test eax, eax
je 0x514d2b
mov qword [rsp + 0x50], rsi
mov r9, qword [rsp + 0x40]
xor ebp, ebp
pxor xmm3, xmm3
mov qword [rsp + 0x60], r12
movdqu xmm4, xmmword [0x00918900]
mov rsi, rcx
movdqu xmm2, xmmword [0x00918910]
jmp 0x514c51
mov r8, rdx
mov rcx, rdx
mov r10, rdx
xor r8, 0x30
xor rcx, 0x10
xor r10, 0x20
movdqu xmm5, xmmword [rax + r8]
add rcx, rax
movdqu xmm0, xmmword [rax + r10]
movdqu xmm1, xmmword [rcx]
paddq xmm5, xmm7
movups xmmword [rcx], xmm5
mov rax, qword [rbx]
paddq xmm1, xmm6
movups xmmword [rax + r10], xmm1
mov rax, qword [rbx]
paddq xmm0, xmmword [rsp + 0x80]
movups xmmword [rax + r8], xmm0
mov rax, qword [rbx]
movdqu xmm0, xmmword [rsp + 0x90]
movdqu xmm1, xmm0
movq r8, xmm0
movq rcx, xmm0
pxor xmm1, xmm6
and r8d, 0xffff0
movhlps xmm5, xmm0
movups xmmword [rax + rdx], xmm1
mov rax, qword [rbx]
mov qword [rsp + 0x40], rax
add rax, r8
mov rdx, qword [rax + 8]
xor r9, qword [rax]
mov rax, r14
shl rax, 0x20
xor r9, rax
mov qword [rsp + 0x48], rdx
movq rax, xmm5
xor edx, edx
mov r10, r9
lea r9d, [rcx + r14*2]
or r9d, 0x80000001
div r9
shl rdx, 0x20
mov eax, eax
lea r9, [rax + rdx]
lea r14, [r9 + rcx]
mov rax, r14
mov r12, r14
shr rax, 0xc
movq xmm0, rax
paddq xmm0, xmm4
shufpd xmm0, xmm3, 2
sqrtsd xmm0, xmm0
paddq xmm0, xmm2
movq r13, xmm0
movq rax, xmm0
shr r13, 0x13
shr rax, 0x14
mov r11, r13
mov r15, r13
sub r12, rax
and r11d, 1
shl r15, 0x20
lea rdx, [rax + r11]
imul rdx, rax
add rdx, r15
movabs r15, 0x100000000
add r15, rdx
cmp r15, r12
setb al
add rdx, r11
mov r11, r8
cmp rdx, r14
movzx eax, al
seta dl
xor r11, 0x10
movzx edx, dl
sub eax, edx
movsxd r14, eax
mov rax, r10
mul rcx
mov rcx, qword [rsp + 0x40]
add r14, r13
mov r13, r8
xor r13, 0x20
xor qword [rcx + r11], rdx
mov r12, qword [rbx]
xor qword [r12 + r11 + 8], rax
add r12, r13
mov rcx, qword [rbx]
xor rdx, qword [r12]
xor rax, qword [r12 + 8]
mov r12, r8
xor r12, 0x30
add r11, rcx
movdqu xmm0, xmmword [rcx + r13]
add rdx, rdi
paddq xmm7, xmmword [rcx + r12]
movdqu xmm1, xmmword [r11]
add rax, rsi
xor r10, rdx
movups xmmword [r11], xmm7
mov rcx, qword [rbx]
paddq xmm1, xmm6
movups xmmword [rcx + r13], xmm1
mov rcx, qword [rbx]
paddq xmm0, xmmword [rsp + 0x80]
mov qword [rsp + 0x20], r10
movups xmmword [rcx + r12], xmm0
add r8, qword [rbx]
mov qword [r8 + 8], rax
xor rax, qword [rsp + 0x48]
mov qword [r8], rdx
mov qword [rsp + 0x28], rax
movdqu xmm0, xmmword [rsp + 0x90]
add rbp, 1
cmp rbp, qword [rsp + 0x38]
je 0x514d21
mov rdi, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
movdqu xmm7, xmm6
movdqu xmm6, xmm0
mov rax, qword [rbx]
mov rdx, rdi
movdqu xmm5, xmmword [rsp + 0x20]
and edx, 0xffff0
cmp dword [rsp + 0x2e8], 1
lea rcx, [rax + rdx]
movdqu xmm0, xmmword [rcx]
movups xmmword [rsp + 0x80], xmm5
aesenc xmm0, xmm5
movups xmmword [rsp + 0x90], xmm0
jg 0x514a5e
movdqu xmm1, xmm0
movq r8, xmm0
movq rax, xmm0
pxor xmm1, xmm6
and r8d, 0xffff0
cmp dword [rsp + 0x2e8], 1
movups xmmword [rcx], xmm1
jne 0x515048
mov r11, qword [rbx]
mov r15d, 0x75310
movzx r10d, byte [r11 + rdx + 0xb]
mov ecx, r10d
mov r12d, r10d
shr cl, 3
and r12d, 1
and ecx, 6
or ecx, r12d
add ecx, ecx
shr r15d, cl
mov ecx, r15d
and ecx, 0x30
xor r10d, ecx
mov byte [r11 + rdx + 0xb], r10b
add r8, qword [rbx]
mov rcx, qword [r8]
mul rcx
add rax, rsi
mov rsi, qword [r8 + 8]
add rdx, rdi
mov qword [r8], rdx
xor rdx, rcx
xor rsi, rax
xor rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x28], rsi
mov qword [r8 + 8], rax
jmp 0x514c27
mov rsi, qword [rsp + 0x50]
mov r12, qword [rsp + 0x60]
movdqu xmm5, xmmword [rsp + 0x1a0]
mov rcx, qword [rbx]
movdqu xmm2, xmmword [rsp + 0x190]
movdqu xmm10, xmmword [rsp + 0x160]
movups xmmword [rsp + 0xe0], xmm5
lea r8, [rcx + 0x100000]
movdqu xmm5, xmmword [rsp + 0x1f0]
movdqu xmm9, xmmword [rsp + 0x170]
movups xmmword [rsp + 0xd0], xmm2
movdqu xmm2, xmmword [rsp + 0x1e0]
movdqu xmm4, xmmword [rsp + 0x1b0]
movups xmmword [rsp + 0x130], xmm5
movdqu xmm5, xmm10
aeskeygenassist xmm0, xmm9, 1
movdqu xmm6, xmmword [rsp + 0x180]
pslldq xmm5, 4
movups xmmword [rsp + 0x120], xmm2
pshufd xmm2, xmm0, 0xff
movdqu xmm7, xmmword [rsp + 0x1d0]
movdqu xmm0, xmm5
movups xmmword [rsp + 0xf0], xmm4
movdqu xmm4, xmm9
pslldq xmm0, 4
pslldq xmm4, 4
movups xmmword [rsp + 0xc0], xmm6
movdqu xmm6, xmmword [rsp + 0x1c0]
movdqu xmm1, xmm0
pxor xmm5, xmm0
movups xmmword [rsp + 0x110], xmm7
pslldq xmm1, 4
movups xmmword [rsp + 0x100], xmm6
movdqu xmm0, xmm1
pxor xmm0, xmm2
pxor xmm5, xmm0
pxor xmm5, xmm10
aeskeygenassist xmm0, xmm5, 0
movdqu xmm3, xmm5
pshufd xmm2, xmm0, 0xaa
pslldq xmm3, 4
movdqu xmm0, xmm4
pslldq xmm0, 4
movdqu xmm1, xmm0
pxor xmm4, xmm0
pslldq xmm1, 4
movdqu xmm0, xmm1
pxor xmm0, xmm2
pxor xmm4, xmm0
pxor xmm4, xmm9
aeskeygenassist xmm0, xmm4, 2
pshufd xmm2, xmm0, 0xff
movdqu xmm0, xmm3
pslldq xmm0, 4
movdqu xmm1, xmm0
pxor xmm3, xmm0
pslldq xmm1, 4
movdqu xmm0, xmm1
pxor xmm0, xmm2
movdqu xmm2, xmm4
pslldq xmm2, 4
pxor xmm3, xmm0
movdqu xmm0, xmm2
pxor xmm3, xmm5
pslldq xmm0, 4
aeskeygenassist xmm1, xmm3, 0
movdqu xmm6, xmm0
pshufd xmm1, xmm1, 0xaa
pxor xmm0, xmm2
pslldq xmm6, 4
movdqu xmm2, xmm3
pxor xmm6, xmm1
pslldq xmm2, 4
pxor xmm6, xmm0
pxor xmm6, xmm4
aeskeygenassist xmm0, xmm6, 4
pshufd xmm7, xmm0, 0xff
movdqu xmm0, xmm2
pslldq xmm0, 4
movdqu xmm1, xmm0
pxor xmm2, xmm0
pslldq xmm1, 4
movdqu xmm0, xmm1
movdqu xmm1, xmm6
pxor xmm0, xmm7
pslldq xmm1, 4
pxor xmm2, xmm0
pxor xmm2, xmm3
aeskeygenassist xmm0, xmm2, 0
pshufd xmm8, xmm0, 0xaa
movdqu xmm0, xmm1
pslldq xmm0, 4
movdqu xmm7, xmm0
pxor xmm1, xmm0
pslldq xmm7, 4
movdqu xmm0, xmm7
movdqu xmm7, xmm2
pxor xmm0, xmm8
pslldq xmm7, 4
pxor xmm1, xmm0
pxor xmm1, xmm6
aeskeygenassist xmm0, xmm1, 8
pshufd xmm11, xmm0, 0xff
movdqu xmm0, xmm7
pslldq xmm0, 4
movdqu xmm8, xmm0
pxor xmm7, xmm0
pslldq xmm8, 4
movdqu xmm0, xmm8
movdqu xmm8, xmm1
pxor xmm0, xmm11
pslldq xmm8, 4
pxor xmm7, xmm0
pxor xmm7, xmm2
aeskeygenassist xmm0, xmm7, 0
pshufd xmm12, xmm0, 0xaa
movdqu xmm0, xmm8
pslldq xmm0, 4
movdqu xmm11, xmm0
pxor xmm8, xmm0
pslldq xmm11, 4
movdqu xmm0, xmm11
pxor xmm0, xmm12
pxor xmm8, xmm0
pxor xmm8, xmm1
nop dword [rax]
mov rax, rsi
mov rdx, rcx
nop
movdqu xmm0, xmmword [rax]
pxor xmm0, xmmword [rdx]
add rax, 0x10
add rdx, 0x10
aesenc xmm0, xmm10
aesenc xmm0, xmm9
aesenc xmm0, xmm5
aesenc xmm0, xmm4
aesenc xmm0, xmm3
aesenc xmm0, xmm6
aesenc xmm0, xmm2
aesenc xmm0, xmm1
aesenc xmm0, xmm7
aesenc xmm0, xmm8
movups xmmword [rax - 0x10], xmm0
cmp r12, rax
jne 0x514fc0
sub rcx, 0xffffffffffffff80
cmp r8, rcx
jne 0x514fb8
jmp 0x514921
cmp rdi, 0x2a
jbe 0x5150ed
mov rax, qword [rsp + 0x200]
xor rax, qword [rsi + 0x23]
xor r14d, r14d
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x58], rax
jmp 0x514030
add r8, qword [rbx]
mov rcx, qword [r8]
mov r10, qword [r8 + 8]
mul rcx
add rdx, rdi
add rax, rsi
mov qword [r8], rdx
xor rdx, rcx
mov qword [r8 + 8], rax
xor rax, r10
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x28], rax
jmp 0x514c27
mov rcx, qword [rbx]
add rcx, rdx
mov r8, qword [rcx]
mov r9, qword [rcx + 8]
mul r8
add rdx, rdi
add rax, rsi
mov qword [rcx], rdx
xor rdx, r8
mov qword [rcx + 8], rax
xor rax, r9
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x28], rax
jmp 0x5145ad
cmp byte [rax + 1], 0
je 0x5146f6
jmp 0x5146d9
mov dword [0x00860024], 1
xor ebp, ebp
jmp 0x513f08
call sym.slow_hash_allocate_state
jmp 0x513f21
mov qword [rsp + 0x58], 0
xor r14d, r14d
mov qword [rsp + 0x40], 0
jmp 0x514030
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, 0x35
mov edx, 1
lea rcx, str.Cryptonight_variant_1_needs_at_least_43_bytes_of_data
mov r9, rax
call sym.fwrite
mov ecx, 1
call sym._exit
nop
nop
nop
nop