joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401a0e18
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x160
mov rax, qword [0x140451b38]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rax, qword [rdx]
xor ebx, ebx
mov qword [rsp + 0x30], rdx
mov r12d, r8d
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x28], rax
test rax, rax
je 0x1401a0f2d
test r8d, r8d
je 0x1401a0f2d
lea r15, [rcx + 0x18]
mov word [rcx + 0x118], bx
mov qword [rsp + 0x40], r15
mov rcx, r15
mov eax, ebx
mov esi, 0x100
mov byte [rcx], al
inc eax
inc rcx
cmp eax, esi
jb 0x1401a0e84
mov edi, ebx
mov ebp, r12d
cmp r12d, esi
ja 0x1401a0ea2
mov eax, esi
sub eax, r12d
cmp edi, eax
jbe 0x1401a0ea6
mov ebp, esi
sub ebp, edi
test ebp, ebp
je 0x1401a0eea
mov r13d, dword [rdx + 8]
mov r15d, edi
mov rbx, qword [rsp + 0x28]
sub r13d, edi
mov r14d, ebp
lea edx, [r15 + r13]
mov rcx, rbx
lea r8, [rsp + 0x20]
call fcn.14018d9f4
mov cl, byte [rsp + 0x20]
xor cl, byte [rax]
mov eax, r15d
inc r15d
mov byte [rsp + rax + 0x50], cl
sub r14, 1
jne 0x1401a0ebc
mov rdx, qword [rsp + 0x30]
xor ebx, ebx
add edi, ebp
cmp edi, esi
jb 0x1401a0e91
mov r14, qword [rsp + 0x38]
lea r8, [rsp + 0x50]
mov r15, qword [rsp + 0x40]
sub r8, r14
movzx edx, byte [r15]
movzx ecx, byte [r8 + r15 - 0x18]
add ecx, ebx
add ecx, edx
movzx ebx, cl
mov al, byte [rbx + r14 + 0x18]
mov byte [r15], al
inc r15
mov byte [rbx + r14 + 0x18], dl
sub rsi, 1
jne 0x1401a0f02
xor eax, eax
jmp 0x1401a0f32
mov eax, 0xc004d104
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140388a40
mov rbx, qword [rsp + 0x1a8]
add rsp, 0x160
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x1401a10c8
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov r10, rdx
mov r9, rcx
cmp r8d, 1
jb 0x1401a113c
mov r11d, r8d
inc byte [r9 + 0x118]
movzx r8d, byte [r9 + 0x118]
mov al, byte [r8 + r9 + 0x18]
add byte [r9 + 0x119], al
movzx edx, byte [r9 + 0x119]
mov cl, byte [r8 + r9 + 0x18]
mov al, byte [rdx + r9 + 0x18]
mov byte [r8 + r9 + 0x18], al
mov byte [rdx + r9 + 0x18], cl
movzx eax, byte [r9 + 0x119]
movzx ecx, byte [r9 + 0x118]
mov cl, byte [rcx + r9 + 0x18]
add cl, byte [rax + r9 + 0x18]
movzx eax, cl
mov cl, byte [rax + r9 + 0x18]
xor byte [r10], cl
inc r10
sub r11, 1
jne 0x1401a10d7
ret
Function at 0x1401a1144
Capabilities:
Encode data using xor

Disassembly:
test r8d, r8d
je 0x1401a1202
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rbp, qword [rdx]
mov rdi, rcx
mov esi, dword [rdx + 8]
mov r14d, r8d
lea r8, [rsp + 0x50]
mov edx, esi
mov rcx, rbp
call fcn.14018d9f4
mov bl, byte [rsp + 0x50]
xor bl, byte [rax]
inc byte [rdi + 0x118]
movzx r8d, byte [rdi + 0x118]
mov al, byte [r8 + rdi + 0x18]
add byte [rdi + 0x119], al
movzx edx, byte [rdi + 0x119]
mov cl, byte [r8 + rdi + 0x18]
mov al, byte [rdx + rdi + 0x18]
mov byte [r8 + rdi + 0x18], al
lea r8, [rsp + 0x58]
mov byte [rdx + rdi + 0x18], cl
mov edx, esi
movzx ecx, byte [rdi + 0x118]
movzx eax, byte [rdi + 0x119]
mov cl, byte [rcx + rdi + 0x18]
add cl, byte [rax + rdi + 0x18]
movzx eax, cl
mov rcx, rbp
xor bl, byte [rax + rdi + 0x18]
call fcn.14018d9f4
xor bl, byte [rsp + 0x58]
inc esi
mov byte [rax], bl
sub r14, 1
jne 0x1401a116b
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x1401a2758
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
xor r13d, r13d
test r9d, r9d
je 0x1401a2954
mov r14d, dword [r8 + 8]
mov rax, qword [r8]
mov r12d, dword [rcx + 8]
mov r15d, dword [rdx + 8]
mov rdi, qword [rdx]
mov qword [rbp - 0x28], rax
mov rax, qword [rcx]
mov qword [rbp - 0x10], rax
lea esi, [r15 + 2]
lea eax, [r12 + 2]
mov qword [rbp - 0x20], rdi
mov dword [rbp - 0x2c], eax
sub r15d, r14d
lea eax, [r14 + 2]
mov dword [rbp - 0x30], esi
mov dword [rbp - 0x34], eax
sub r12d, r14d
mov eax, r9d
mov qword [rbp - 0x18], rax
lea edx, [r15 + r14]
mov rcx, rdi
lea r8, [rbp + 0x48]
call fcn.14018d9f4
lea edx, [rsi - 1]
mov rcx, rdi
lea r8, [rbp - 0x40]
movzx ebx, byte [rax]
movzx eax, byte [rbp + 0x48]
xor ebx, eax
ror ebx, 8
call fcn.14018d9f4
mov rcx, qword [rbp - 0x20]
lea r8, [rbp - 0x3f]
mov edx, esi
movzx edi, byte [rax]
movzx eax, byte [rbp - 0x40]
xor edi, eax
add edi, ebx
ror edi, 8
call fcn.14018d9f4
movzx ebx, byte [rbp - 0x3f]
lea edx, [rsi + 1]
mov rcx, qword [rbp - 0x20]
lea r8, [rbp - 0x3e]
movzx eax, byte [rax]
xor ebx, eax
add ebx, edi
ror ebx, 8
call fcn.14018d9f4
mov rcx, qword [rbp - 0x28]
lea r8, [rbp - 0x3d]
mov edx, r14d
movzx esi, byte [rax]
movzx eax, byte [rbp - 0x3e]
xor esi, eax
add esi, ebx
ror esi, 8
call fcn.14018d9f4
mov edx, dword [rbp - 0x34]
lea r8, [rbp - 0x3c]
mov rcx, qword [rbp - 0x28]
movzx ebx, byte [rax]
movzx eax, byte [rbp - 0x3d]
xor ebx, eax
ror ebx, 8
dec edx
call fcn.14018d9f4
mov edx, dword [rbp - 0x34]
lea r8, [rbp - 0x3b]
mov rcx, qword [rbp - 0x28]
movzx edi, byte [rax]
movzx eax, byte [rbp - 0x3c]
xor edi, eax
add edi, ebx
ror edi, 8
call fcn.14018d9f4
mov edx, dword [rbp - 0x34]
lea r8, [rbp - 0x3a]
mov rcx, qword [rbp - 0x28]
inc edx
movzx ebx, byte [rax]
movzx eax, byte [rbp - 0x3b]
xor ebx, eax
add ebx, edi
ror ebx, 8
call fcn.14018d9f4
lea edx, [r12 + r14]
lea r8, [rbp - 0x39]
movzx edi, byte [rax]
movzx eax, byte [rbp - 0x3a]
xor edi, eax
mov eax, esi
add edi, ebx
ror edi, 8
add rdi, rax
mov eax, r13d
mov r13, qword [rbp - 0x10]
add rdi, rax
mov ebx, edi
mov rcx, r13
call fcn.14018d9f4
mov esi, dword [rbp - 0x2c]
lea r8, [rbp - 0x38]
mov cl, dil
shr ebx, 8
xor cl, byte [rbp - 0x39]
mov byte [rax], cl
mov rcx, r13
lea edx, [rsi - 1]
call fcn.14018d9f4
mov cl, bl
lea r8, [rbp - 0x37]
xor cl, byte [rbp - 0x38]
mov edx, esi
shr ebx, 8
mov byte [rax], cl
mov rcx, r13
call fcn.14018d9f4
mov cl, bl
lea edx, [rsi + 1]
xor cl, byte [rbp - 0x37]
lea r8, [rbp - 0x36]
mov byte [rax], cl
mov rcx, r13
call fcn.14018d9f4
add dword [rbp - 0x30], 4
add esi, 4
add dword [rbp - 0x34], 4
mov r13, rdi
mov rdi, qword [rbp - 0x20]
add r14d, 4
shr ebx, 8
xor bl, byte [rbp - 0x36]
shr r13, 0x20
sub qword [rbp - 0x18], 1
mov dword [rbp - 0x2c], esi
mov esi, dword [rbp - 0x30]
mov byte [rax], bl
jne 0x1401a27c7
lea r11, [rsp + 0x60]
mov eax, r13d
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x1401bc91c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor esi, esi
lea rbx, [rcx + 0x20]
mov rdi, rcx
test edx, edx
je 0x1401bc96a
cmp dword [rbx], esi
jne 0x1401bc96a
mov rcx, qword [rcx + 8]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1401bc955
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [rdi + 8], 0xffffffffffffffff
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1401bc9bf
mov rdx, qword [rdi + 0x10]
jmp 0x1401bc9ba
mov rdx, qword [rcx + 8]
lea rax, [rdx + 1]
test rax, 0xfffffffffffffffe
je 0x1401bc9bf
cmp dword [rcx], esi
jne 0x1401bc995
cmp dword [rcx + 0x20], esi
jne 0x1401bc995
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov ecx, esi
test eax, eax
sete cl
mov dword [rdi], ecx
mov rcx, qword [rdi + 8]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1401bc9ae
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [rdi + 8], 0xffffffffffffffff
cmp dword [rbx], esi
jne 0x1401bc9bf
cmp dword [rdi], esi
jne 0x1401bc964
mov rdx, qword [rdi + 0x18]
call fcn.1401bcb98
mov rsi, qword [rsp + 0x38]
mov dword [rbx], 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1401bc9dc
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov esi, r8d
mov r14, rdx
mov rdi, rcx
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
mov r9d, dword [0x14045df10]
xor r15d, r15d
cmp dword [rdi + 0x78], r15d
mov ebp, eax
mov dword [rdi + 0x78], 1
mov ebx, r15d
mov rdx, qword [rdi + 8]
cmove r9d, eax
mov dword [0x14045df10], r9d
lea rcx, [rdx + 1]
test rcx, 0xfffffffffffffffe
jne 0x1401bca40
mov ebx, 0x80004005
jmp 0x1401bca82
mov rcx, rdx
mov qword [rsp + 0x20], r15
mov rdx, r14
lea r9, [rsp + 0x50]
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1401bca77
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1401bca39
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1401bca82
cmp dword [rsp + 0x50], esi
je 0x1401bca89
mov ebx, 0x8004e10a
mov ecx, ebx
call fcn.14007ac40
mov ecx, ebx
call fcn.14007ace8
test ebx, ebx
jns 0x1401bca9d
mov ecx, ebx
call fcn.14007ac40
jmp 0x1401bcae5
mov rdx, qword [rdi + 0x70]
test rdx, rdx
je 0x1401bcae5
sub ebp, dword [0x14045df10]
mov ecx, 0x1d4c0
mov eax, ecx
mov r8d, 0x4e20
sub eax, ebp
mov r9d, 0xfffffffe
cmp ebp, ecx
sbb ecx, ecx
and ecx, eax
cmp ecx, r8d
cmovb r8d, ecx
mov rcx, qword [0x14045c768]
call qword [sym.imp.KERNEL32.dll_ChangeTimerQueueTimer]
xor ecx, ecx
call fcn.14007ace8
mov ebx, r15d
mov ecx, ebx
call fcn.14007ace8
mov rbp, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x1401bcb98
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rcx, rdx
mov rdi, rdx
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1401bcbf9
mov rdx, rdi
call fcn.1401bcec8
mov ebx, eax
test eax, eax
jns 0x1401bcbc6
mov ecx, eax
jmp 0x1401bcbf4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1401bcbf9
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1401bcbe4
mov ebx, 0x80004005
jmp 0x1401bcbf2
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov ecx, ebx
call fcn.14007ac40
mov ecx, ebx
call fcn.14007ace8
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1401bcc98
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
push rdi
sub rsp, 0x50
mov r10d, dword [rsp + 0x80]
xorps xmm0, xmm0
mov edi, r8d
xor ebx, ebx
mov r8, qword [rcx + 8]
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
lea rax, [r8 - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1401bcd25
neg r9d
mov dword [r11 - 0x18], r10d
lea rcx, [r11 - 0x28]
sbb rax, rax
lea r9, [r11 + 8]
and rax, rcx
mov rcx, r8
mov r8d, edi
mov qword [r11 - 0x38], rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1401bcd18
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1401bcd06
mov ebx, 0x80004005
jmp 0x1401bcd14
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov ecx, ebx
jmp 0x1401bcd2c
cmp dword [rsp + 0x60], edi
je 0x1401bcd31
mov ecx, 0x8004e109
jmp 0x1401bcd2a
mov ecx, 0x80004005
mov ebx, ecx
call fcn.14007ac40
mov ecx, ebx
call fcn.14007ace8
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x1401bce48
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
xor ebx, ebx
mov rdx, qword [rcx + 8]
lea rax, [rdx + 1]
test rax, 0xfffffffffffffffe
jne 0x1401bce75
mov ecx, 0x80004005
mov ebx, ecx
call fcn.14007ac40
jmp 0x1401bceaa
mov rcx, rdx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x1401bcea8
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1401bce96
mov ebx, 0x80004005
jmp 0x1401bcea4
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov ecx, ebx
jmp 0x1401bce6e
mov dword [rdi], eax
mov ecx, ebx
call fcn.14007ace8
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1401bcec8
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x1401bcf43
xor ebx, ebx
test rdi, rdi
je 0x1401bcf2e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1401bcf16
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1401bcf06
mov ebx, 0x80004005
jmp 0x1401bcf33
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1401bcf33
test al, 1
je 0x1401bcf3a
and eax, 0xfffffffe
mov rcx, rdi
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x1401bcf3a
jmp 0x1401bcef5
mov ebx, 0x80070057
mov ecx, ebx
call fcn.14007ac40
mov ecx, ebx
call fcn.14007ace8
jmp 0x1401bcf5c
test eax, eax
jne 0x1401bcf4e
mov ebx, 0x80004005
jmp 0x1401bcf60
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x1401bcf67
mov ecx, ebx
call fcn.14007ac40
mov ecx, ebx
call fcn.14007ace8
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1401c2b30
Capabilities:
Check if file exists
Copy file
Get file attributes
Move file
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
xor ebp, ebp
mov rdi, rcx
cmp dword [rcx + 0x20], ebp
jne 0x1401c2b55
mov ebx, ebp
jmp 0x1401c2caf
lea rdx, [rsp + 0x30]
call fcn.1401bcf84
mov ebx, eax
test eax, eax
jns 0x1401c2b6c
mov esi, eax
jmp 0x1401c2c92
mov rdx, qword [rdi + 8]
lea rax, [rdx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1401c2bc6
cmp dword [rdi], ebp
jne 0x1401c2b95
cmp dword [rdi + 0x20], ebp
jne 0x1401c2b95
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov ecx, ebp
test eax, eax
sete cl
mov dword [rdi], ecx
mov rcx, qword [rdi + 8]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1401c2bae
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [rdi + 8], 0xffffffffffffffff
cmp dword [rdi + 0x20], ebp
jne 0x1401c2bc6
cmp dword [rdi], ebp
je 0x1401c2bbd
mov rdx, qword [rdi + 0x10]
jmp 0x1401c2bc1
mov rdx, qword [rdi + 0x18]
call fcn.1401bcb98
mov dword [rdi + 0x20], 1
mov rdx, qword [rdi + 0x18]
call fcn.1401bcb98
mov rdx, qword [rdi + 0x18]
xor r8d, r8d
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1401c2c11
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1401c2bfc
mov ebx, 0x80004005
jmp 0x1401c2c0a
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov esi, ebx
jmp 0x1401c2c92
mov rdx, qword [rdi + 0x10]
xor r8d, r8d
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x1401c2beb
mov rbx, qword [rdi + 0x10]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1401c2c47
bts eax, 0xd
mov rcx, rbx
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov r9, qword [rdi + 0x10]
mov edx, 0xc0000000
mov r8d, 4
mov rcx, rdi
call fcn.1401c3cc0
mov ebx, eax
mov esi, eax
test eax, eax
jns 0x1401c2c6d
mov ecx, eax
call fcn.14007ac40
mov ecx, ebx
call fcn.14007ace8
test ebx, ebx
js 0x1401c2c92
mov edx, dword [rsp + 0x30]
xor r8d, r8d
mov rcx, rdi
mov dword [rdi + 0x20], ebp
call fcn.1401bcd4c
mov ebx, eax
mov esi, eax
test eax, eax
jns 0x1401c2caf
mov ecx, esi
call fcn.14007ac40
test ebx, ebx
jns 0x1401c2caf
xor r9d, r9d
mov r8d, ebx
mov rcx, rdi
lea edx, [r9 + 3]
call fcn.1401bcc14
mov ecx, ebx
call fcn.14007ace8
mov rbp, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1403007d4
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140451b38]
xor rax, rsp
mov qword [rsp + 0x18], rax
mov rax, qword [rcx + 0x148]
xor r9d, r9d
shr rcx, 4
mov r8d, r9d
mov qword [rsp], rcx
mov ecx, r9d
mov rdx, qword [rax + 8]
movups xmm0, xmmword [rdx - 0x10]
movdqu xmmword [rsp + 8], xmm0
movzx eax, byte [rsp + rcx + 8]
inc rcx
add eax, r8d
imul r8d, eax, 0x401
mov eax, r8d
shr eax, 6
xor r8d, eax
cmp rcx, 0x10
jb 0x14030080d
movzx eax, byte [rsp + r9]
inc r9
add eax, r8d
imul r8d, eax, 0x401
mov eax, r8d
shr eax, 6
xor r8d, eax
cmp r9, 8
jb 0x14030082e
lea eax, [r8 + r8*8]
mov ecx, eax
shr ecx, 0xb
xor ecx, eax
mov eax, 0x6fd91d85
imul r8d, ecx, 0x8001
mul r8d
shr edx, 0x12
imul ecx, edx, 0x927c0
sub r8d, ecx
lea eax, [r8 + 0x927c0]
mov rcx, qword [rsp + 0x18]
xor rcx, rsp
call fcn.140388a40
add rsp, 0x28
ret
Function at 0x140305f10
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x90
mov r14, qword [rbp + 0x77]
mov r12, r9
and qword [rbp - 0x21], 0
mov r15d, r8d
and dword [rbp + 0x67], 0
mov rdi, rdx
and dword [rbp - 0x39], 0
mov rsi, rcx
cmp dword [r14], r8d
jae 0x140305f5a
mov edi, 0x80049e19
jmp 0x1403060d0
mov rax, qword [rdx]
and qword [rbp - 0x31], 0
and qword [rbp - 0x29], 0
and qword [rbp - 0x19], 0
mov rbx, qword [rax]
mov rax, qword [0x1403d25b8]
mov rcx, rbx
call rax
mov rax, rbx
lea r8, [rbp - 0x29]
lea rdx, [0x140424ef8]
mov rcx, rdi
call rax
test eax, eax
je 0x140305f9c
mov edi, 0x80049e2f
jmp 0x14030602a
mov rdi, qword [rbp - 0x29]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x30]
mov rax, qword [0x1403d25b8]
mov rcx, rbx
call rax
mov rax, rbx
lea rdx, [rbp - 0x31]
mov rcx, rdi
call rax
mov edi, eax
test eax, eax
js 0x14030602a
mov rdx, qword [rbp - 0x31]
lea r8, [rbp - 0x19]
mov rcx, rsi
call fcn.14030568c
mov edi, eax
test eax, eax
js 0x14030602a
lea rax, [0x14003471c]
mov qword [rbp - 0x11], 3
mov qword [rbp - 9], rax
lea rdx, [rbp - 0x11]
lea rax, [rbp + 0x77]
mov qword [rbp + 7], rsi
mov qword [rbp - 1], rax
xor r9d, r9d
mov rax, qword [rbp - 0x29]
mov ecx, 0xb9
mov qword [rbp + 0xf], rax
mov rax, qword [rbp - 0x19]
mov qword [rbp + 0x17], rax
lea r8d, [r9 + 0x38]
lea rax, [rbp - 0x21]
mov qword [rbp + 0x1f], rax
call sub.ntdll.dll_NtQuerySystemInformation
mov edi, dword [rbp + 0x77]
mov rsi, qword [rbp - 0x31]
test rsi, rsi
je 0x140306053
mov rax, qword [rsi]
mov rbx, qword [rax + 0x10]
mov rax, qword [0x1403d25b8]
mov rcx, rbx
call rax
mov rax, rbx
mov rcx, rsi
call rax
and qword [rbp - 0x31], 0
mov rsi, qword [rbp - 0x29]
test rsi, rsi
je 0x140306077
mov rax, qword [rsi]
mov rbx, qword [rax + 0x10]
mov rax, qword [0x1403d25b8]
mov rcx, rbx
call rax
mov rax, rbx
mov rcx, rsi
call rax
test edi, edi
js 0x1403060d0
mov eax, dword [r14]
mov r8d, r15d
mov r9, qword [rbp + 0x7f]
mov rdx, r12
mov rcx, qword [rbp - 0x21]
mov dword [rbp + 0x67], eax
lea rax, [rbp + 0x67]
mov qword [rsp + 0x28], rax
call fcn.1401701cc
mov edi, eax
test eax, eax
js 0x1403060d0
mov eax, dword [r14]
lea r9, [rbp - 0x39]
mov r8d, dword [rbp + 0x67]
sub eax, r8d
mov rdx, qword [rbp + 0x7f]
mov rcx, qword [rbp - 0x21]
mov dword [rbp - 0x39], eax
call fcn.140170560
mov edi, eax
test eax, eax
js 0x1403060d0
mov ecx, dword [rbp + 0x67]
add ecx, dword [rbp - 0x39]
mov dword [r14], ecx
mov rcx, qword [rbp - 0x21]
call fcn.14016f53c
lea r11, [rsp + 0x90]
mov eax, edi
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140386008
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rsi, r8
mov ebp, edx
mov rdi, rcx
test r8, r8
je 0x1403861a3
cmp edx, 0x14
jbe 0x1403861a3
mov rbx, qword [rcx + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
and qword [rdi + 0x20], 0
mov rbx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
and qword [rdi + 0x10], 0
lea r15, [rdi + 0x30]
mov rcx, qword [r15]
and dword [rdi + 0x18], 0
test rcx, rcx
je 0x14038608e
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
and qword [r15], 0
mov ecx, dword [rsi + 0xc]
shr ecx, 3
mov dword [rdi + 0x28], ecx
mov eax, dword [rsi + 0x10]
mov dword [rdi + 0x2c], eax
mov eax, ecx
shr eax, 1
add eax, 4
lea eax, [rax + rax*4]
lea ecx, [rax + rcx*2]
cmp ebp, ecx
jne 0x1403861a3
mov rbx, qword [rdi + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
and qword [rdi + 0x20], 0
mov ebx, dword [rdi + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rdi + 0x20], rax
test rax, rax
jne 0x1403860f9
mov ebx, 0x8007000e
jmp 0x1403861a8
mov r8d, dword [rdi + 0x28]
lea rdx, [rsi + 0x14]
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov r8d, 4
lea rdx, [rdi + 0x2c]
call fcn.140387018
mov ebx, eax
test eax, eax
jne 0x1403861a8
mov r8d, dword [rdi + 0x28]
mov rdx, qword [rdi + 0x20]
call fcn.140387018
mov ebx, eax
test eax, eax
jne 0x1403861a8
lea r14, [rdi + 0x38]
cmp qword [r14], 0
jne 0x140386177
lea r9d, [rax + 0x18]
mov dword [rsp + 0x20], 0xf0000000
lea r8, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
xor edx, edx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x140386177
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1403861a8
mov rcx, qword [r14]
xor r9d, r9d
mov qword [rsp + 0x28], r15
mov r8d, ebp
mov rdx, rsi
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x140386161
mov dword [rdi + 0xc], 4
jmp 0x1403861a8
mov ebx, 0x80070057
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret