joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401c74d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov rsi, r8
mov rdi, rdx
mov ebx, ecx
mov rax, qword [0x140430040]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea r14, [rdx + 1]
movzx ebp, byte [rdx + 1]
movsx r15d, bpl
and ebp, 0x7f
mov r12d, ebp
shl r12d, 0xe
shl ebp, 7
cmp r15d, 0xb
jle 0x1401c7581
test r15b, 1
je 0x1401c757b
movzx ecx, byte [rdi]
add r15d, 0xfffffff4
shr r15d, 1
lea eax, [r15 + rcx]
cmp eax, ebx
jg 0x1401c75eb
mov ebp, dword [rsi + 0x18]
cmp ebp, r15d
mov eax, r15d
cmovl eax, ebp
movsxd r8, eax
mov rdx, qword [rsi + 0x10]
add rcx, rdi
call fcn.1402b6270
test eax, eax
jg 0x1401c757b
jns 0x1401c75a3
movsx eax, byte [rsi + 0x20]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
cmp rcx, qword [0x140430040]
je 0x1401c756c
call fcn.140278ca0
int3
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
movsx eax, byte [rsi + 0x21]
jmp 0x1401c7555
test r15d, r15d
jns 0x1401c7551
movzx r15d, byte [rdi + 2]
test r15b, r15b
js 0x1401c7620
or r15d, ebp
cmp r15d, 0xb
jg 0x1401c750e
jmp 0x1401c7551
cmp r15d, ebp
jne 0x1401c75b9
cmp word [rsi + 0x1c], 2
jae 0x1401c75bd
movsx eax, byte [rsi + 0x1e]
mov byte [rsi + 0x22], 1
jmp 0x1401c7555
jle 0x1401c7551
jmp 0x1401c757b
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140278ca0
mov ecx, ebx
mov rdx, rdi
mov r8, rsi
mov r9d, 1
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp fcn.1401c5240
lea rax, [0x14040f811]
mov qword [rsp + 0x20], rax
lea rdx, str._s_at_line__d_of___.10s_
lea r8, str.database_corruption
mov ecx, ntohl
mov r9d, 0x15f32
call fcn.1401aeb90
mov byte [rsi + 0x1f], ntohl
xor eax, eax
jmp 0x1401c7555
movsx eax, byte [rdi + 3]
test eax, eax
js 0x1401c763e
and r15d, 0x7f
shl r15d, 7
or eax, r12d
or eax, r15d
mov r15d, eax
jmp 0x1401c7597
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r15, [rsp + 0x30]
mov qword [r15], rax
mov rcx, r14
mov rdx, r15
call fcn.1401bbe90
mov r15, qword [r15]
mov rax, r15
shr rax, 0x20
je 0x1401c7597
jmp 0x1401c7551
Function at 0x1401cb460
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb8
mov rax, qword [0x140430040]
xor rax, rsp
mov qword [rsp + 0xb0], rax
test r8d, r8d
jle 0x1401cb5dc
mov rbx, r9
mov rax, qword [rcx + 0x48]
mov r9, qword [rcx + 0x50]
mov r10d, dword [rax + 0x38]
mov r12, r10
add r12, r9
movzx eax, byte [rcx + 9]
mov qword [rsp + 0x20], rcx
movzx ecx, byte [rcx + 0xa]
add rax, r9
lea r11, [rcx + rax]
add r11, 8
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xa0], rax
movaps xmm0, xmmword [0x1403d4b30]
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], rax
add r8d, edx
movsxd rbp, edx
movsxd rdx, r8d
xor edi, edi
xor esi, esi
jmp 0x1401cb51b
mov dword [rsp + rax*4 + 0x50], r13d
jmp 0x1401cb511
mov dword [rsp + rax*4 + 0x80], r15d
inc edi
inc rbp
cmp rbp, rdx
jge 0x1401cb580
mov rax, qword [rbx + 0x10]
mov rax, qword [rax + rbp*8]
cmp rax, r11
jb 0x1401cb513
cmp rax, r12
jae 0x1401cb513
mov rcx, qword [rbx + 0x18]
movzx r13d, word [rcx + rbp*2]
sub eax, r9d
movzx r15d, ax
add r13d, r15d
test esi, esi
jle 0x1401cb567
mov r14d, esi
xor eax, eax
cmp dword [rsp + rax*4 + 0x80], r13d
je 0x1401cb509
cmp dword [rsp + rax*4 + 0x50], r15d
je 0x1401cb502
inc rax
cmp r14, rax
jne 0x1401cb549
cmp esi, 0xa
jge 0x1401cb5e0
movsxd rax, esi
mov dword [rsp + rax*4 + 0x80], r15d
mov dword [rsp + rax*4 + 0x50], r13d
cmp r13d, r10d
ja 0x1401cb5dc
inc esi
jmp 0x1401cb511
test esi, esi
jle 0x1401cb5ac
mov esi, esi
xor ebx, ebx
mov r14, qword [rsp + 0x20]
mov r8d, dword [rsp + rbx*4 + 0x50]
mov edx, dword [rsp + rbx*4 + 0x80]
sub r8d, edx
mov rcx, r14
call fcn.1401c8940
inc rbx
cmp rsi, rbx
jne 0x1401cb58d
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
cmp rcx, qword [0x140430040]
je 0x1401cb5c6
call fcn.140278ca0
int3
mov eax, edi
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor edi, edi
jmp 0x1401cb5ac
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x30], r11
mov qword [rsp + 0x38], r10
mov qword [rsp + 0x40], r9
xor esi, esi
xor eax, eax
mov qword [rsp + 0x48], rax
mov r8d, dword [rsp + rax*4 + 0x50]
mov edx, dword [rsp + rax*4 + 0x80]
sub r8d, edx
mov rcx, qword [rsp + 0x20]
call fcn.1401c8940
mov rcx, qword [rsp + 0x48]
inc rcx
mov rax, rcx
cmp r14, rcx
jne 0x1401cb5f8
mov r9, qword [rsp + 0x40]
mov r10, qword [rsp + 0x38]
mov r11, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
jmp 0x1401cb567
Function at 0x1401d9fc0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x140430040]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov al, byte [rdx]
cmp al, 0xa3
je 0x1401da125
mov rcx, rdi
cmp al, 0xa4
je 0x1401da131
movzx eax, al
cmp eax, 0x80
je 0x1401da12d
test rdi, rdi
je 0x1401da0b0
mov eax, dword [rdi + 4]
test eax, 0x82000
jne 0x1401da1b5
cmp byte [rsi + 0x23], 0
je 0x1401da0b2
cmp byte [rdi], 0xa3
je 0x1401da0b2
movaps xmm0, xmmword [0x1403d4b30]
lea r14, [rsp + 0x20]
movups xmmword [r14 + 0x18], xmm0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [r14 + 0x28], rax
mov word [r14 + 0x24], 2
mov qword [r14], rsi
lea rax, [0x140269320]
mov qword [r14 + 8], rax
lea rax, [0x1401db320]
mov qword [r14 + 0x10], rax
mov rcx, r14
mov rdx, rdi
call fcn.140269460
cmp word [r14 + 0x24], 0
je 0x1401da0b2
mov dword [rbx], 0
mov rcx, rsi
mov rdx, rdi
mov r8d, 0xffffffff
call fcn.1401d83a0
mov ebp, eax
jmp 0x1401da0de
dec al
mov byte [rsi + 0x1f], al
movzx eax, al
mov r14d, dword [rsi + rax*4 + 0xd8]
jmp 0x1401da0c4
xor edi, edi
mov al, byte [rsi + 0x1f]
test al, al
jne 0x1401da09e
mov r14d, dword [rsi + 0x38]
inc r14d
mov dword [rsi + 0x38], r14d
mov rcx, rsi
mov rdx, rdi
mov r8d, r14d
call fcn.140266020
mov ebp, eax
cmp eax, r14d
jne 0x1401da104
mov eax, r14d
mov dword [rbx], eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
cmp rcx, qword [0x140430040]
je 0x1401da0f5
call fcn.140278ca0
int3
mov eax, ebp
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
xor eax, eax
test r14d, r14d
je 0x1401da0dc
movzx ecx, byte [rsi + 0x1f]
cmp rcx, 7
ja 0x1401da0dc
lea edx, [rcx + 1]
mov byte [rsi + 0x1f], dl
mov dword [rsi + rcx*4 + 0xd8], r14d
jmp 0x1401da0dc
mov al, byte [rdi + 2]
jmp 0x1401d9fee
mov rcx, qword [rdi + 0x20]
mov rax, qword [rcx + 0x20]
mov r14d, dword [rax]
cmp r14, 1
je 0x1401da007
mov dword [rbx], 0
xor eax, eax
cmp al, byte [rdi]
jno 0x1401da172
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140278ca0
mov rcx, rsi
mov rdx, rdi
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.1401d8720
mov ebx, dword [rsi + 0x38]
lea ebp, [rbx + 1]
lea eax, [rbx + r14]
mov dword [rsi + 0x38], eax
test r14d, r14d
jle 0x1401da0de
shl r14, 5
inc ebx
xor r15d, r15d
mov rax, qword [rdi + 0x20]
mov rdx, qword [rax + r15 + 8]
mov rcx, rsi
mov r8d, ebx
call fcn.1401dd8d0
add r15, 0x20
inc ebx
cmp r14, r15
jne 0x1401da191
jmp 0x1401da0de
bt eax, 0x13
jb 0x1401da1ca
cmp byte [rdi], 0x67
jne 0x1401da01e
add rdi, 0x10
jmp 0x1401da1d2
mov rdi, qword [rdi + 0x20]
add rdi, 8
mov rdi, qword [rdi]
jmp 0x1401da007
Function at 0x1401ee9c0
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, 0x28
mov r14, qword [rcx + 0x98]
test r14, r14
je 0x1401eeadc
mov rsi, rcx
mov rdi, qword [rcx + 0x10]
mov r15, qword [rcx]
mov r13, qword [r15 + 0x20]
movsxd rbx, dword [r14 + 0x10]
mov r12d, dword [r14 + 0x14]
mov al, byte [rsi + 0x1f]
test al, al
jne 0x1401eeb04
mov ebp, dword [rsi + 0x38]
inc ebp
mov dword [rsi + 0x38], ebp
movsxd rax, dword [rdi + 0x90]
lea r9d, [rax + 7]
lea r8d, [r12 + 2]
cmp dword [rdi + 0x94], eax
jle 0x1401eeaed
lea ecx, [rax + 1]
mov dword [rdi + 0x90], ecx
mov rcx, qword [rdi + 0x88]
lea rax, [rax + rax*2]
mov dword [rcx + rax*8], gethostname
mov dword [rcx + rax*8 + 4], r8d
mov dword [rcx + rax*8 + 8], r9d
mov dword [rcx + rax*8 + 0xc], r12d
mov qword [rcx + rax*8 + 0x10], 0
shl rbx, 5
mov rax, qword [r13 + rbx + 0x18]
mov r9, qword [rax + 0x68]
mov r8d, dword [r14 + 0x10]
mov dword [rsp + 0x20], reloc.WS2_32.dll_WSAStartup
mov rcx, rsi
xor edx, edx
call fcn.1401d7a40
mov rcx, rdi
mov edx, 5
lea r8, [0x140415d00]
call fcn.1401b3670
test rax, rax
je 0x1401eeadc
lea ecx, [r12 + 1]
mov dword [rax + 4], ecx
mov dword [rax + 0x20], ecx
dec r12d
mov dword [rax + 0x34], r12d
mov dword [rax + 0x3c], ebp
mov dword [rax + 0x50], ebp
mov dword [rax + 0x54], ecx
mov word [rax + 0x4a], 8
test ebp, ebp
je 0x1401eead0
movzx eax, byte [rsi + 0x1f]
cmp rax, 7
ja 0x1401eead0
lea ecx, [rax + 1]
mov byte [rsi + 0x1f], cl
mov dword [rsi + rax*4 + 0xd8], ebp
mov r14, qword [r14]
test r14, r14
jne 0x1401ee9ea
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov dword [rsp + 0x20], r12d
mov rcx, rdi
mov edx, gethostname
call fcn.1401cbb10
jmp 0x1401eea58
dec al
mov byte [rsi + 0x1f], al
movzx eax, al
mov ebp, dword [rsi + rax*4 + 0xd8]
jmp 0x1401eea09
Function at 0x1401f1fb0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rsi, rcx
mov rax, qword [0x140430040]
xor rax, rsp
mov qword [rsp + 0x30], rax
movzx eax, byte [rcx]
add rax, 0xffffffffffffffc6
cmp rax, 0xfffffffffffffff6
jae 0x1401f203d
mov ebx, r8d
mov edi, edx
xor r14d, r14d
mov eax, 0
test rsi, rsi
je 0x1401f1ffe
mov rcx, rsi
call fcn.14029c0d0
and eax, 0x3fffffff
mov rcx, rsi
neg rcx
mov ecx, 0
sbb ecx, ecx
lea r9d, [rax + 1]
lea r8, [0x140416361]
mov edx, 0xfffffff8
lea r15, [rdx + 6]
lea r12, [0x14040f170]
movzx edx, byte [r14 + r8]
cmp eax, edx
je 0x1401f2057
inc r14
cmp r14, 8
jne 0x1401f2026
jmp 0x1401f20cb
lea rdi, [rsp + 0x2c]
mov dword [rdi], 0
mov rcx, rsi
mov rdx, rdi
call fcn.1401cc7b0
mov bl, byte [rdi]
jmp 0x1401f20cb
lea rdx, [0x140416359]
movzx r13d, byte [r14 + rdx]
mov edx, ecx
lea r10, str.onoffalseyestruextrafull
add r13, r10
je 0x1401f2109
test rsi, rsi
je 0x1401f202f
test eax, eax
je 0x1401f20a7
xor ebp, ebp
mov edx, r9d
movzx r10d, byte [r13 + rbp]
test r10, r10
je 0x1401f20f5
mov r10b, byte [r10 + r12]
movzx r11d, byte [rsi + rbp]
cmp r10b, byte [r11 + r12]
jne 0x1401f20f8
dec edx
inc rbp
cmp edx, 1
ja 0x1401f2083
test edi, edi
je 0x1401f20c0
mov rdx, r14
mov r10d, 0xfffffff8
or rdx, r10
cmp rdx, r15
jae 0x1401f202f
lea rax, [0x140416369]
mov bl, byte [r14 + rax]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
cmp rcx, qword [0x140430040]
je 0x1401f20e2
call fcn.140278ca0
int3
mov eax, ebx
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor r10d, r10d
movzx edx, r10b
movzx r10d, byte [rsi + rbp]
movzx r10d, byte [r10 + r12]
sub edx, r10d
test edx, edx
je 0x1401f20a7
jmp 0x1401f202f
Function at 0x1401f6ee0
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x140430040]
xor rax, rsp
mov qword [rsp + 0x50], rax
xorps xmm0, xmm0
lea rcx, [rsp + 0x30]
movaps xmmword [rcx], xmm0
mov dword [rsp + 0x20], 0xf0000040
xor r14d, r14d
xor edx, edx
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1401f6f4b
lea rax, [rsp + 0x38]
mov rcx, qword [rax - 8]
mov qword [rsp + 0x20], rax
mov edx, 0x8002
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov rcx, rbx
call fcn.140109920
mov rcx, qword [rsp + 0x38]
mov rdx, rdi
mov r8d, eax
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
lea rdi, [rsp + 0x4c]
mov dword [rdi], r14d
mov rcx, qword [rsp + 0x38]
mov dword [rsp + 0x20], r14d
mov edx, 2
xor r8d, r8d
mov r9, rdi
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [rdi], 0x10
jne 0x1401f6faf
mov rcx, qword [rsp + 0x38]
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x4c]
mov edx, 2
mov r8, rsi
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1401f6fbf
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1401f6fd1
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
cmp rcx, qword [0x140430040]
je 0x1401f6fe8
call fcn.140278ca0
int3
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x1401f7000
Capabilities:
Encode data using xor

Disassembly:
test rdx, rdx
je 0x1401f7068
xor eax, eax
mov r8b, byte [rcx + rax]
mov r9d, r8d
shr r9b, 7
mov r10d, r8d
shr r10b, 6
xor r10b, r9b
mov r9d, r8d
shr r9b, 5
mov r11d, r8d
shr r11b, 4
xor r11b, r9b
xor r11b, r10b
mov r9d, r8d
shr r9b, 3
mov r10d, r8d
shr r10b, 2
xor r10b, r9b
mov r9d, r8d
shr r9b, 1
xor r9b, r10b
xor r9b, r11b
and r9b, 1
and r8b, 0xfe
or r8b, r9b
xor r8b, 1
mov byte [rcx + rax], r8b
inc rax
cmp rdx, rax
jne 0x1401f7007
ret
Function at 0x1401f70f0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x30
mov ebp, r8d
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x140430040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, dword [rcx + 0x18]
mov ecx, dword [rcx + 0x20]
add eax, eax
add rcx, rax
add rcx, 0x18
mov rax, qword [fcn.140119a10]
call qword [str._a_]
mov rdi, rax
test rax, rax
je 0x1401f7259
mov qword [rdi], rsi
lea rcx, [rdi + 0x18]
mov qword [rdi + 8], rcx
mov eax, dword [rsi + 0x18]
add rax, rdi
add rax, 0x18
mov qword [rdi + 0x10], rax
cmp ebp, dword [rsi + 0x1c]
jbe 0x1401f7198
mov rax, qword [rsi]
call qword [str._a_]
mov rax, qword [rsi + 8]
mov rcx, qword [rdi + 8]
mov rdx, rbx
mov r8d, ebp
call qword [str._a_]
mov ebx, dword [rsi + 0x18]
add rbx, qword [rdi + 0x10]
mov rax, qword [rsi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, rbx
call qword [str._a_]
mov ebp, dword [rsi + 0x20]
mov rcx, qword [rdi + 8]
mov byte [rsp + 0x27], 0xaa
mov rax, qword [rsi]
call qword [str._a_]
mov rax, qword [rsi]
mov rcx, qword [rdi + 0x10]
call qword [str._a_]
mov r15d, ebp
test ebp, ebp
je 0x1401f720c
xor r12d, r12d
lea r14, [rsp + 0x27]
mov al, byte [rbx + r12]
xor al, 0x36
mov byte [rsp + 0x27], al
mov rax, qword [rsi + 8]
mov rcx, qword [rdi + 8]
mov rdx, r14
mov r8d, 1
call qword [str._a_]
mov al, byte [rbx + r12]
xor al, 0x5c
mov byte [rsp + 0x27], al
mov rax, qword [rsi + 8]
mov rcx, qword [rdi + 0x10]
mov rdx, r14
mov r8d, 1
call qword [str._a_]
inc r12
cmp r15, r12
jne 0x1401f71c2
cmp r15d, dword [rsi + 0x1c]
jae 0x1401f7259
lea rbx, str.6...._third_partycrashpadcrashpad_snapshotwinprocess_subrange_reader.cc
lea r14, [0x14041b174]
mov rax, qword [rsi + 8]
mov rcx, qword [rdi + 8]
mov rdx, rbx
mov r8d, 1
call qword [str._a_]
mov rax, qword [rsi + 8]
mov rcx, qword [rdi + 0x10]
mov rdx, r14
mov r8d, 1
call qword [str._a_]
inc r15
mov eax, dword [rsi + 0x1c]
cmp r15, rax
jb 0x1401f7220
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
cmp rcx, qword [0x140430040]
je 0x1401f7270
call fcn.140278ca0
int3
mov rax, rdi
add rsp, 0x30
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x1401f87d0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x1401f8818
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x1401f8821
lea rax, [rsi + 1]
cmp rax, 2
jb 0x1401f8808
mov qword [rdi], rsi
call fcn.14021c380
mov ecx, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.14021c380
mov rcx, qword [rdi]
call fcn.14020bb00
mov qword [rdi], 0
jmp 0x1401f87f6
Function at 0x140200d30
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x58
movdqa xmmword [rsp + 0x40], xmm10
movdqa xmmword [rsp + 0x30], xmm9
movdqa xmmword [rsp + 0x20], xmm8
movdqa xmmword [rsp + 0x10], xmm7
movdqa xmmword [rsp], xmm6
movdqu xmm4, xmmword [rcx]
movdqu xmm3, xmmword [rcx + 0x10]
movdqu xmm2, xmmword [rcx + 0x20]
movdqu xmm1, xmmword [rcx + 0x30]
movd xmm0, r8d
pxor xmm0, xmm4
add rdx, 0xffffffffffffffc0
add rcx, 0x40
cmp rdx, 0x40
jb 0x140200e2e
movabs rax, 0x154442bd4
movq xmm4, rax
movdqa xmm5, xmmword [0x1403dc920]
nop dword [rax]
movdqa xmm6, xmm0
pclmulqdq xmm6, xmm4, 0
movdqa xmm7, xmm3
pclmulqdq xmm7, xmm4, 0
movdqa xmm8, xmm2
pclmulqdq xmm8, xmm4, 0
movdqa xmm9, xmm1
pclmulqdq xmm9, xmm4, 0
pclmulqdq xmm0, xmm5, 0x11
pclmulqdq xmm3, xmm5, 0x11
pclmulqdq xmm2, xmm5, 0x11
pclmulqdq xmm1, xmm5, 0x11
movdqu xmm10, xmmword [rcx]
pxor xmm10, xmm6
pxor xmm0, xmm10
movdqu xmm6, xmmword [rcx + 0x10]
pxor xmm6, xmm7
pxor xmm3, xmm6
movdqu xmm6, xmmword [rcx + 0x20]
pxor xmm6, xmm8
pxor xmm2, xmm6
movdqu xmm6, xmmword [rcx + 0x30]
pxor xmm6, xmm9
pxor xmm1, xmm6
add rdx, 0xffffffffffffffc0
add rcx, 0x40
cmp rdx, 0x3f
ja 0x140200da0
movabs rax, 0x1751997d0
movq xmm4, rax
movdqa xmm5, xmm0
pclmulqdq xmm5, xmm4, 0
pxor xmm5, xmm3
pmovzxdq xmm3, qword [0x1403dc940]
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm5
movdqa xmm5, xmm0
pclmulqdq xmm5, xmm4, 0
pxor xmm5, xmm2
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm5
movdqa xmm2, xmm0
pclmulqdq xmm2, xmm4, 0
pxor xmm2, xmm1
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm2
cmp rdx, 0x10
jb 0x140200ebe
movdqu xmm1, xmmword [rcx]
movdqa xmm2, xmm0
pclmulqdq xmm2, xmm4, 0
pxor xmm2, xmm1
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm2
add rcx, 0x10
add rdx, 0xfffffffffffffff0
cmp rdx, 0xf
ja 0x140200e94
pmovzxdq xmm1, qword [0x1403dc940]
pclmulqdq xmm1, xmm0, 1
psrldq xmm0, 8
pxor xmm0, xmm1
pxor xmm1, xmm1
pxor xmm2, xmm2
pblendw xmm2, xmm0, 3
psrldq xmm0, 4
movabs rax, 0x163cd6124
movq xmm3, rax
pclmulqdq xmm3, xmm2, 0
pxor xmm3, xmm0
pxor xmm0, xmm0
pblendw xmm0, xmm3, 3
pclmulqdq xmm0, xmmword [0x1403dc930], 0x10
pblendw xmm0, xmm1, 0xfc
movabs rax, 0x1db710641
movq xmm1, rax
pclmulqdq xmm1, xmm0, 0
pxor xmm1, xmm3
pextrd eax, xmm1, 1
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
movaps xmm8, xmmword [rsp + 0x20]
movaps xmm9, xmmword [rsp + 0x30]
movaps xmm10, xmmword [rsp + 0x40]
add rsp, 0x58
ret
Function at 0x14020b990
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x140430040]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x140442ca0]
mov ecx, dword [0x14043f8b8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14020b9f7
mov rax, qword [0x140442c98]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
cmp rcx, qword [0x140430040]
je 0x14020b9ed
call fcn.140278ca0
int3
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x140442ca0]
call fcn.14027770c
cmp dword [0x140442ca0], 0xffffffff
jne 0x14020b9cc
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.1402b6a10
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x34]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x30]
mov dword [rdi], 0
mov ecx, dword [rsi + 4]
mov edx, dword [rsi + 8]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x88
call fcn.14027768c
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x140442ce8]
mov ecx, dword [0x14043f8b8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14020bab7
lea r8, [0x140442cb8]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.1400fc0c0
mov qword [0x140442c98], rsi
lea rcx, [0x140442ca0]
call fcn.1402777c0
jmp 0x14020b9cc
lea rcx, [0x140442ce8]
call fcn.14027770c
cmp dword [0x140442ce8], 0xffffffff
jne 0x14020ba88
xorps xmm0, xmm0
movups xmmword [0x140442cd8], xmm0
movups xmmword [0x140442cc8], xmm0
movups xmmword [0x140442cb8], xmm0
lea rcx, [0x140442cb8]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140442ce8]
call fcn.1402777c0
jmp 0x14020ba88

Function at 0x14020c0b0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
xor eax, eax
test r8d, r8d
sete al
xor r8d, r8d
test edx, edx
sete r8b
xor ecx, ecx
mov edx, r8d
mov r8d, eax
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi], 0
test rax, rax
je 0x14020c14a
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14020c134
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14020c111
mov qword [rsi], rdi
call fcn.14021c380
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsi]
mov byte [rsi + 8], 0
inc rax
cmp rax, 1
jbe 0x14020c14e
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.14021c380
mov rcx, qword [rsi]
call fcn.14020bb00
mov qword [rsi], 0
jmp 0x14020c0ff
mov byte [rsi + 8], 0
int3
Function at 0x14020cb90
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb0
mov esi, r9d
mov rdi, r8
mov r14, rdx
mov rbx, rcx
mov rax, qword [0x140430040]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movaps xmm0, xmmword [0x1403d4b30]
lea r12, [rsp + 0x60]
movaps xmmword [r12 + 0x30], xmm0
movaps xmmword [r12 + 0x20], xmm0
movaps xmmword [r12 + 0x10], xmm0
movaps xmmword [r12], xmm0
lea rdx, str.Read
lea r8, str....._base_files_file_win.cc
lea r15, [rsp + 0x40]
mov rcx, r15
mov r9d, 0x43
call fcn.14021c360
mov rcx, r12
mov rdx, r15
xor r8d, r8d
call fcn.14020f7b0
mov ebp, 0xffffffff
test r14, r14
js 0x14020cc8c
test esi, esi
js 0x14020cc8c
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
call fcn.140225380
test al, al
jne 0x14020ccdc
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r14
lea r9, [rsp + 0x2c]
mov dword [r9], 0xaaaaaaaa
mov rcx, qword [rbx]
mov qword [rsp + 0x20], r15
mov rdx, rdi
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14020ccc4
mov ebp, dword [rsp + 0x2c]
test ebp, ebp
js 0x14020ccd7
lea rcx, [rsp + 0x30]
call fcn.140225400
lea rcx, [rsp + 0x60]
call fcn.14020f840
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
cmp rcx, qword [0x140430040]
je 0x14020ccb0
call fcn.140278ca0
int3
mov eax, ebp
add rsp, 0xb0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ebp, ebp
cmp eax, 0x26
setne bpl
neg ebp
jmp 0x14020cc82
int3
mov r9d, esi
lea rdx, str.File::Read
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.140316730
jmp 0x14020cc44
Function at 0x14020cd00
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140430040]
xor rax, rsp
mov qword [rsp + 0x98], rax
movaps xmm0, xmmword [0x1403d4b30]
lea r14, [rsp + 0x50]
movaps xmmword [r14 + 0x30], xmm0
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
lea rdx, str.ReadAtCurrentPos
lea r8, str....._base_files_file_win.cc
lea r15, [rsp + 0x30]
mov rcx, r15
mov r9d, 0x60
call fcn.14021c360
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.14020f7b0
test esi, esi
js 0x14020ce0f
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
call fcn.140225380
test al, al
jne 0x14020ce1b
lea r9, [rsp + 0x2c]
mov dword [r9], 0xaaaaaaaa
mov rcx, qword [rbx]
mov qword [rsp + 0x20], 0
mov rdx, rdi
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14020ce37
mov esi, dword [rsp + 0x2c]
test esi, esi
js 0x14020ce16
lea rcx, [rsp + 0x30]
call fcn.140225400
lea rcx, [rsp + 0x50]
call fcn.14020f840
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
cmp rcx, qword [0x140430040]
je 0x14020cdfe
call fcn.140278ca0
int3
mov eax, esi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov esi, 0xffffffff
jmp 0x14020cdda
int3
mov r9d, esi
lea rdx, str.File::ReadAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.140316730
jmp 0x14020cda0
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x26
setne sil
neg esi
jmp 0x14020cdd0