joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140065520
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x1400655cf
push rbp
mov rbp, rsp
sub rsp, 0x58
mov qword [rsp + 0x70], rbx
lea rdx, [rsp + 0x68]
mov qword [rsp + 8], 0
movups xmmword [rsp + 0x10], xmm15
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
movups xmmword [rsp + 0x48], xmm15
lea rsi, [0x140065620]
mov qword [rsp + 0x10], rsi
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdx
mov rdx, r14
mov qword [rsp + 0x28], rdx
lea rdx, [rsp + 8]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.14006fc40
xorps xmm15, xmm15
mov r14, qword [0x140928c18]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
add rsp, 0x58
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.14006fd60
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
nop dword [rax]
jmp fcn.140065520
Function at 0x1403b8bc0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140883a00]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1403b8be0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1403b8be8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1403b8be0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x1403b8c35
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1403b8c2c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1403b8be0
add rax, 0x28
cmp rax, r9
jne 0x1403b8c18
xor eax, eax
ret

Function at 0x1403b8c40
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140883a00]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x1403b8c60
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1403b8c68
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x1403b8c60
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x1403b8cf0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140883a00]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x1403b8d10
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x1403b8d18
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret
Function at 0x2b0191050
Capabilities:
Encode data using xor

Disassembly:
shl rcx, 4
xor eax, eax
and ecx, 0xff0
add r8, rcx
lea r9, [rdx + rax]
lea r10, [rax + r8]
xor ecx, ecx
mov r11b, byte [r10 + rcx]
inc rcx
xor byte [r9], r11b
inc r9
cmp rcx, 4
jne 0x2b0191069
add rax, 4
cmp rax, 0x10
jne 0x2b019105f
ret

Function at 0x2b01911e0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push rbp
lea rax, [rdx + r8]
mov rbp, rsp
push r15
push r14
push r13
push r12
lea r12, str.cw
push rdi
mov dil, 0x1b
push rsi
mov rsi, rdx
push rbx
mov rbx, rcx
and rsp, 0xfffffffffffffff0
sub rsp, 0x40
mov qword [rsp + 0x28], rax
mov eax, 0x10
cmp qword [rsp + 0x28], rsi
je 0x2b01913f0
cmp eax, 0x10
jne 0x2b01913dd
lea rdx, [rsp + 0x30]
mov r8, rbx
xor ecx, ecx
mov r14d, 1
movups xmm0, xmmword [rbx + 0xf0]
lea r13, [rsp + 0x34]
movaps xmmword [rsp + 0x30], xmm0
call fcn.2b0191050
lea rdx, [rsp + 0x30]
mov rcx, rdx
mov rax, rcx
xor r8d, r8d
movzx r9d, byte [rax]
inc r8d
add rax, 4
mov r9b, byte [r12 + r9]
mov byte [rax - 4], r9b
cmp r8b, 4
jne 0x2b019125d
inc rcx
cmp r13, rcx
jne 0x2b0191257
mov cl, byte [rsp + 0x35]
mov al, byte [rsp + 0x31]
mov byte [rsp + 0x31], cl
mov cl, byte [rsp + 0x39]
mov byte [rsp + 0x35], cl
mov cl, byte [rsp + 0x3d]
mov byte [rsp + 0x3d], al
mov al, byte [rsp + 0x32]
mov byte [rsp + 0x39], cl
mov cl, byte [rsp + 0x3a]
mov byte [rsp + 0x3a], al
mov al, byte [rsp + 0x36]
mov byte [rsp + 0x32], cl
mov cl, byte [rsp + 0x3e]
mov byte [rsp + 0x3e], al
mov al, byte [rsp + 0x33]
mov byte [rsp + 0x36], cl
mov cl, byte [rsp + 0x3f]
mov byte [rsp + 0x33], cl
mov cl, byte [rsp + 0x3b]
mov byte [rsp + 0x3f], cl
mov cl, byte [rsp + 0x37]
mov byte [rsp + 0x37], al
mov byte [rsp + 0x3b], cl
cmp r14d, 0xe
je 0x2b01913a2
lea r11, [rdx + 0x10]
mov cl, byte [rdx]
mov r9b, byte [rdx + 1]
add rdx, 4
mov r8b, byte [rdx - 2]
xor r8b, byte [rdx - 1]
xor r9d, ecx
mov r15d, ecx
xor cl, byte [rdx - 1]
mov eax, r9d
mov r10d, r9d
add r9d, r9d
shr al, 7
xor r10d, r8d
imul eax, edi
xor r15d, r10d
xor r15d, eax
xor r9d, r15d
mov r15b, byte [rdx - 3]
xor r15b, byte [rdx - 2]
mov eax, r15d
mov byte [rdx - 4], r9b
mov r9b, byte [rdx - 3]
add r15d, r15d
shr al, 7
imul eax, edi
xor r9d, r10d
xor r9d, eax
mov eax, r8d
add r8d, r8d
shr al, 7
xor r15d, r9d
mov r9b, byte [rdx - 2]
imul eax, edi
mov byte [rdx - 3], r15b
xor r9d, r10d
xor r10b, byte [rdx - 1]
xor r9d, eax
mov eax, ecx
add ecx, ecx
shr al, 7
xor r8d, r9d
imul eax, edi
mov byte [rdx - 2], r8b
mov r8d, r10d
xor eax, r8d
xor ecx, eax
mov byte [rdx - 1], cl
cmp r11, rdx
jne 0x2b01912ec
mov ecx, r14d
lea rdx, [rsp + 0x30]
mov r8, rbx
inc r14d
call fcn.2b0191050
jmp 0x2b019124f
mov r8, rbx
mov ecx, 0xe
call fcn.2b0191050
mov eax, 0xf
mov dl, byte [rbx + rax + 0xf0]
cmp dl, 0xff
jne 0x2b01913d0
mov byte [rbx + rax + 0xf0], 0
sub rax, 1
jae 0x2b01913b4
jmp 0x2b01913db
cdqe
inc edx
mov byte [rbx + rax + 0xf0], dl
xor eax, eax
movsxd rdx, eax
inc eax
mov dl, byte [rsp + rdx + 0x30]
xor byte [rsi], dl
inc rsi
jmp 0x2b0191215
lea rsp, [rbp - 0x38]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x2b01923a0
Capabilities:
Inspect section memory permissions

Disassembly:
push r15
push r14
mov r14, r8
push r13
mov r13, rdx
push r12
push rbp
push rdi
mov rdi, rcx
mov rcx, rdx
push rsi
mov rsi, r9
push rbx
sub rsp, 0x48
call fcn.2b01a32a0
mov rbx, qword [0x2b01a9170]
mov qword [rsp + 0x38], rax
mov rax, qword [rbx]
cmp dword [rax + 0x8a], 0
je 0x2b0192412
lea rdx, [0x2b01a7120]
mov ecx, 1
call qword [rax + 0x146]
mov r12, rax
test rax, rax
jne 0x2b0192415
mov rax, qword [rbx]
mov ecx, 1
mov rax, qword [rax + 0x850]
mov edx, dword [rax + 0x68]
call fcn.2b019ef00
jmp 0x2b01925a5
xor r12d, r12d
xor ebp, ebp
mov r15d, 0x40
mov rax, qword [rdi + 8]
cmp word [rax + 2], bp
jbe 0x2b01924e4
movzx edx, bp
mov rcx, qword [rdi]
imul rax, rdx, 0x28
lea rax, [rcx + rax + 0x14]
cmp dword [rax + 0x10], 0
mov qword [rdi + 0x10], rax
jne 0x2b0192448
inc ebp
jmp 0x2b019241d
mov r8d, dword [rax + 0x24]
mov eax, 1
mov ecx, r8d
and ecx, 0xe0000000
je 0x2b01924ac
mov eax, 0x10
cmp ecx, 0x20000000
je 0x2b01924ac
mov eax, 2
cmp ecx, 0x40000000
je 0x2b01924ac
mov eax, 0x20
cmp ecx, 0x60000000
je 0x2b01924ac
mov eax, 8
cmp ecx, 0x80000000
je 0x2b01924ac
mov eax, pe_nt_image_headers64
cmp ecx, 0xa0000000
je 0x2b01924ac
cmp ecx, 0xc0000000
mov eax, 4
cmovne eax, r15d
bt r8d, 0x1a
jae 0x2b01924b6
or ah, 2
shl rdx, 4
add rdx, qword [rdi + 0x3c]
mov ecx, 2
mov r9, qword [rdx + 8]
mov dword [rsp + 0x20], eax
mov r8, qword [rdx]
or rdx, 0xffffffffffffffff
call fcn.2b019e650
test eax, eax
jne 0x2b0192444
jmp 0x2b01925a5
mov r9, qword [rdi + 0x4c]
test r9, r9
jne 0x2b01924f2
xor r15d, r15d
jmp 0x2b0192518
mov dword [rsp + 0x20], 2
mov r8, qword [rdi + 0x44]
or rdx, 0xffffffffffffffff
mov ecx, 2
call fcn.2b019e650
test eax, eax
jne 0x2b01924ed
jmp 0x2b01925a5
inc r15d
mov rax, qword [rdi + 8]
mov eax, dword [rax + 0xc]
cmp eax, r15d
jbe 0x2b0192571
mov ebp, r15d
mov rdx, qword [rdi + 0x20]
imul rbp, rbp, 0x12
lea rcx, [rdx + rbp]
cmp dword [rcx], 0
jne 0x2b0192546
imul rax, rax, 0x12
mov ecx, dword [rcx + 4]
add rax, rcx
lea rcx, [rdx + rax]
mov r8d, dword [rsp + 0x38]
mov rdx, r13
call fcn.2b019e270
test eax, eax
jne 0x2b0192515
add rbp, qword [rdi + 0x20]
mov rax, qword [rdi + 0x3c]
movzx edx, word [rbp + 0xc]
mov ecx, dword [rbp + 8]
shl rdx, 4
add rcx, qword [rax + rdx - 0x10]
jne 0x2b01925a9
mov edx, dword [rsp + 0xb0]
mov ecx, 0x14
call fcn.2b019ebd0
mov edx, 2
mov r12, rax
mov rcx, rax
call fcn.2b019e950
mov rcx, r12
mov rdx, r13
call fcn.2b019ea80
mov rcx, r12
call fcn.2b019ec80
xor eax, eax
jmp 0x2b019260d
mov rdx, qword [rdi + 8]
mov r9w, word [rdx + 2]
xor edx, edx
jmp 0x2b01925c5
mov r8, qword [rax]
cmp r8, rcx
jbe 0x2b01925cd
inc rdx
add rax, 0x10
cmp r9w, dx
ja 0x2b01925b6
jmp 0x2b01925a5
add r8, qword [rax + 8]
cmp rcx, r8
jae 0x2b01925be
imul rdx, rdx, 0x28
mov rax, qword [rdi]
lea rax, [rax + rdx + 0x14]
mov qword [rdi + 0x10], rax
test byte [rax + 0x27], 0x20
je 0x2b01925a5
mov r8, rsi
mov rdx, r14
call fcn.2b0192620
test r12, r12
je 0x2b0192608
mov rax, qword [rbx]
mov rcx, r12
call qword [rax + 0x14e]
mov eax, 1
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x2b019bae0
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
mov r12, rcx
push rbp
mov rdx, r12
push rdi
push rsi
xor esi, esi
push rbx
sub rsp, 0x28
movsxd rax, dword [rcx + 0x3c]
mov ecx, dword [rcx + rax + 0x88]
call 0x2b01a1fa0
mov rdx, r12
mov ebx, eax
add rbx, r12
mov ecx, dword [rbx + 0x20]
call 0x2b01a1fa0
mov ecx, dword [rbx + 0x24]
mov rdx, r12
mov ebp, eax
call 0x2b01a1fa0
mov r15d, dword [rbx + 0x18]
add rbp, r12
mov edi, eax
add rdi, r12
lea r14, [rsi + rsi]
add r14, rdi
cmp r15, rsi
je 0x2b019bba1
mov ecx, dword [rbp + rsi*4]
mov rdx, r12
call 0x2b01a1fa0
mov r13d, eax
add r13, r12
mov rcx, r13
call fcn.2b019c090
cmp eax, 0xa6caa1c5
jne 0x2b019bb8d
mov ecx, dword [rbx + 0x1c]
mov rdx, r12
call 0x2b01a1fa0
movzx edx, word [r14]
mov eax, eax
add rax, r12
mov ecx, dword [rax + rdx*4]
add rsp, 0x28
mov rdx, r12
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp 0x2b01a1fa0
mov rcx, r13
inc rsi
call fcn.2b019c090
cmp eax, 0xffe885ef
jne 0x2b019bb31
jmp 0x2b019bb5e
add rsp, 0x28
xor eax, eax
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov eax, ecx
movsxd rcx, dword [rdx + 0x3c]
add rcx, rdx
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
cmp dword [rdx + 0x14], eax
ja 0x2b01a1fea
mov r9w, word [rcx + 6]
xor ecx, ecx
cmp r9w, cx
je 0x2b01a1fe8
mov r8d, dword [rdx + 0xc]
cmp eax, r8d
jb 0x2b01a1fe0
mov r10d, dword [rdx + 0x10]
add r10d, r8d
cmp r10d, eax
jbe 0x2b01a1fe0
add eax, dword [rdx + 0x14]
sub eax, r8d
ret
inc ecx
add rdx, 0x28
jmp 0x2b01a1fbe
xor eax, eax
ret

Function at 0x2b019c040
Capabilities:
Hash data using djb2

Disassembly:
xor eax, eax
test rcx, rcx
je 0x2b019c08d
mov r10, rcx
mov eax, 0x1505
mov r9b, byte [r10]
test edx, edx
jne 0x2b019c05c
test r9b, r9b
jne 0x2b019c06f
ret
mov r11, r10
sub r11, rcx
cmp edx, r11d
jbe 0x2b019c08d
cmp r9b, 1
adc r10, 0
cmp r9b, 0x60
jbe 0x2b019c07e
test r8d, r8d
je 0x2b019c07e
sub r9d, 0x20
imul eax, eax, 0x21
movzx r9d, r9b
inc r10
add eax, r9d
jmp 0x2b019c04f
ret

Function at 0x2b019c090
Capabilities:
Hash data using djb2

Disassembly:
mov eax, 0x1505
movsx edx, byte [rcx]
inc rcx
test dl, dl
je 0x2b019c0a6
imul eax, eax, 0x21
add eax, edx
jmp 0x2b019c095
ret
Function at 0x2b019d290
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push rsi
xor eax, eax
push rbx
mov r8b, byte [rdx + rax]
mov byte [rcx + rax], r8b
mov r8b, byte [rdx + rax + 1]
mov byte [rcx + rax + 1], r8b
mov r8b, byte [rdx + rax + 2]
mov byte [rcx + rax + 2], r8b
mov r8b, byte [rdx + rax + 3]
mov byte [rcx + rax + 3], r8b
add rax, 4
cmp rax, 0x20
jne 0x2b019d294
mov r11d, 8
lea r10, str.cw
lea rbx, [0x2b01a91c0]
mov esi, r11d
movzx r9d, byte [rcx + 0x1c]
movzx r8d, byte [rcx + 0x1d]
movzx edx, byte [rcx + 0x1e]
movzx eax, byte [rcx + 0x1f]
and esi, 7
jne 0x2b019d312
mov sil, byte [r10 + r8]
mov r8b, byte [r10 + rdx]
mov dl, byte [r10 + rax]
mov al, byte [r10 + r9]
mov r9d, r11d
shr r9d, 3
xor sil, byte [rbx + r9]
mov r9d, esi
jmp 0x2b019d327
cmp esi, 4
jne 0x2b019d327
mov r9b, byte [r10 + r9]
mov r8b, byte [r10 + r8]
mov dl, byte [r10 + rdx]
mov al, byte [r10 + rax]
xor r9b, byte [rcx]
xor r8b, byte [rcx + 1]
inc r11d
add rcx, 4
xor dl, byte [rcx - 2]
xor al, byte [rcx - 1]
mov byte [rcx + 0x1c], r9b
mov byte [rcx + 0x1d], r8b
mov byte [rcx + 0x1e], dl
mov byte [rcx + 0x1f], al
cmp r11d, 0x3c
jne 0x2b019d2d8
pop rbx
pop rsi
ret

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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
test rcx, rcx
je 0x2b019d876
mov esi, edx
test edx, edx
jne 0x2b019d87d
xor eax, eax
jmp 0x2b019d96a
movsxd rax, dword [rcx + 0x3c]
mov r12, rcx
xor ebx, ebx
add rax, rcx
mov r9d, dword [rax + 0x88]
mov eax, dword [rax + 0x8c]
lea r15, [rcx + r9]
mov dword [rsp + 0x28], eax
mov eax, dword [r15 + 0x18]
mov r14d, dword [r15 + 0x20]
mov ebp, dword [r15 + 0x1c]
mov r13d, dword [r15 + 0x24]
mov dword [rsp + 0x2c], eax
add r14, rcx
cmp dword [rsp + 0x2c], ebx
jbe 0x2b019d876
mov edi, dword [r14 + rbx*4]
mov r8d, 1
xor edx, edx
add rdi, r12
mov rcx, rdi
call fcn.2b019c040
mov r8d, eax
lea rax, [rbx + 1]
cmp r8d, esi
jne 0x2b019d962
add rbx, rbx
add rbx, r12
movzx eax, word [rbx + r13]
lea rax, [r12 + rax*4]
mov eax, dword [rax + rbp]
add rax, r12
mov qword [rsp + 0x38], rax
cmp rax, r15
jae 0x2b019d908
mov rax, qword [rsp + 0x38]
jmp 0x2b019d96a
mov esi, dword [rsp + 0x28]
add rsi, r12
add rsi, r15
cmp rax, rsi
jae 0x2b019d901
call fcn.2b01a32a0
mov qword [rsp + 0x48], rdi
mov word [rsp + 0x40], ax
inc eax
mov word [rsp + 0x42], ax
mov rax, qword [0x2b01a9170]
mov rax, qword [rax]
mov rax, qword [rax + 0xce]
test rax, rax
je 0x2b019d876
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea r9, [rsp + 0x38]
mov rcx, r12
call rax
test eax, eax
jns 0x2b019d901
jmp 0x2b019d876
mov rbx, rax
jmp 0x2b019d8b5
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x2b01a1fa0
Capabilities:
Enumerate pe sections

Disassembly:
push r15
push r14
push r13
push r12
mov r12, rcx
push rbp
mov rdx, r12
push rdi
push rsi
xor esi, esi
push rbx
sub rsp, 0x28
movsxd rax, dword [rcx + 0x3c]
mov ecx, dword [rcx + rax + 0x88]
call 0x2b01a1fa0
mov rdx, r12
mov ebx, eax
add rbx, r12
mov ecx, dword [rbx + 0x20]
call 0x2b01a1fa0
mov ecx, dword [rbx + 0x24]
mov rdx, r12
mov ebp, eax
call 0x2b01a1fa0
mov r15d, dword [rbx + 0x18]
add rbp, r12
mov edi, eax
add rdi, r12
lea r14, [rsi + rsi]
add r14, rdi
cmp r15, rsi
je 0x2b019bba1
mov ecx, dword [rbp + rsi*4]
mov rdx, r12
call 0x2b01a1fa0
mov r13d, eax
add r13, r12
mov rcx, r13
call fcn.2b019c090
cmp eax, 0xa6caa1c5
jne 0x2b019bb8d
mov ecx, dword [rbx + 0x1c]
mov rdx, r12
call 0x2b01a1fa0
movzx edx, word [r14]
mov eax, eax
add rax, r12
mov ecx, dword [rax + rdx*4]
add rsp, 0x28
mov rdx, r12
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp 0x2b01a1fa0
mov rcx, r13
inc rsi
call fcn.2b019c090
cmp eax, 0xffe885ef
jne 0x2b019bb31
jmp 0x2b019bb5e
add rsp, 0x28
xor eax, eax
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov eax, ecx
movsxd rcx, dword [rdx + 0x3c]
add rcx, rdx
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
cmp dword [rdx + 0x14], eax
ja 0x2b01a1fea
mov r9w, word [rcx + 6]
xor ecx, ecx
cmp r9w, cx
je 0x2b01a1fe8
mov r8d, dword [rdx + 0xc]
cmp eax, r8d
jb 0x2b01a1fe0
mov r10d, dword [rdx + 0x10]
add r10d, r8d
cmp r10d, eax
jbe 0x2b01a1fe0
add eax, dword [rdx + 0x14]
sub eax, r8d
ret
inc ecx
add rdx, 0x28
jmp 0x2b01a1fbe
xor eax, eax
ret
Function at 0x1400012d0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x13b0
call fcn.140005780
sub rsp, rax
call qword [sym.imp.MSVCP140D.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [rsp + 0x13a4], 0xffffffff
mov ecx, 1
mov dword [rsp + 0x24], eax
nop dword [rax]
mov edx, eax
shr edx, 0x1e
xor edx, eax
imul eax, edx, 0x6c078965
add eax, ecx
mov dword [rsp + rcx*4 + 0x24], eax
inc rcx
cmp rcx, 0x270
jb 0x140001300
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x270
call fcn.140003ad0
mov ecx, eax
imul rdi, rcx, 0x2328
cmp edi, 0x14af
ja 0x14000135d
lea rcx, [rsp + 0x20]
call fcn.140003ad0
mov ecx, eax
imul rdi, rcx, 0x2328
cmp edi, 0x14b0
jb 0x140001342
shr rdi, 0x20
lea rcx, [rsp + 0x20]
add edi, 0x3e8
call fcn.140003ad0
mov ecx, eax
imul rbx, rcx, 0x2328
cmp ebx, 0x2328
jae 0x1400013ab
cmp ebx, 0x14b0
jae 0x1400013ab
nop word [rax + rax]
lea rcx, [rsp + 0x20]
call fcn.140003ad0
mov ecx, eax
imul rbx, rcx, 0x2328
cmp ebx, 0x14b0
jb 0x140001390
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Result_of_addition:
shr rbx, 0x20
add ebx, 0x800003e8
call fcn.1400031f0
mov r8d, 0x80000000
lea edx, [rbx - 0x80000000]
cmp ebx, r8d
lea ecx, [rbx + r8]
cmovae edx, ecx
mov rcx, rax
add edx, edi
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
mov rcx, rax
lea rdx, [0x1400033c0]
mov rbx, qword [rsp + 0x13c0]
add rsp, 0x13b0
pop rdi
jmp qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
Function at 0x140001410
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
mov eax, 0x13b0
call fcn.140005780
sub rsp, rax
mov rsi, rcx
call qword [sym.imp.MSVCP140D.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [rsp + 0x13a4], 0xffffffff
mov edx, 1
mov dword [rsp + 0x24], eax
mov r8d, eax
shr r8d, 0x1e
xor r8d, eax
imul eax, r8d, 0x6c078965
add eax, edx
mov dword [rsp + rdx*4 + 0x24], eax
inc rdx
cmp rdx, 0x270
jb 0x140001445
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x270
call fcn.140003ad0
mov ecx, eax
imul rdi, rcx, 0x2328
cmp edi, 0x14af
ja 0x1400014ab
nop dword [rax + rax]
lea rcx, [rsp + 0x20]
call fcn.140003ad0
mov ecx, eax
imul rdi, rcx, 0x2328
cmp edi, 0x14b0
jb 0x140001490
shr rdi, 0x20
lea rcx, [rsp + 0x20]
add edi, 0x3e8
call fcn.140003ad0
mov ecx, eax
imul rbx, rcx, 0x2328
cmp ebx, 0x2328
jae 0x1400014fb
cmp ebx, 0x14b0
jae 0x1400014fb
nop dword [rax + rax]
lea rcx, [rsp + 0x20]
call fcn.140003ad0
mov ecx, eax
imul rbx, rcx, 0x2328
cmp ebx, 0x14b0
jb 0x1400014e0
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Result_of_multiplication:
shr rbx, 0x20
add ebx, 0x800003e8
call fcn.1400031f0
mov r8d, 0x80000000
lea edx, [rbx - 0x80000000]
cmp ebx, r8d
lea ecx, [rbx + r8]
cmovae edx, ecx
mov rcx, rax
imul edx, edi
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
mov rcx, rax
lea rdx, [0x1400033c0]
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x140001558
mov rax, qword [rcx]
call qword [rax]
lea r11, [rsp + 0x13b0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140002220
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 0x140002248
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140D.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 0x14000226e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140002270
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400022c9
test ecx, ecx
jle 0x1400022a9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140D.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 0x1400022c9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400022c9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.ucrtbased.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 0x1400022f0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140002321
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
je 0x14000233f
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.MSVCP140D.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 + 0x30], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14000235b
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000235d
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140002399
mov qword [rsp + 0x38], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140D.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 + 0x38]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14000242e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400023d4
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 0x14000240e
nop dword [rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.ucrtbased.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14000242e
cmp rbx, rax
ja 0x1400023e0
test rbx, rbx
je 0x14000242e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.ucrtbased.dll_fread]
sub rbx, rax
mov rsi, qword [rsp + 0x48]
sub rbp, rbx
mov rbx, qword [rsp + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret