joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14016d4a0
Capabilities:
Encrypt data using openssl rsa

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rax, qword [0x140516040]
xor rax, rsp
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [0x140484a40]
lea rdx, [rsp + 0x20]
movaps xmmword [rdx], xmm0
mov r8d, 6
call fcn.14016a740
test eax, eax
je 0x14016d5c2
mov rdi, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
movzx eax, byte [reloc.OLEAUT32.dll_VariantCopy]
cmp rsi, rax
jne 0x14016d531
lea rbx, [0x1404e6968]
test al, al
je 0x14016d50f
lea rdx, [0x1404e696c]
mov rcx, rdi
mov r8, rsi
call fcn.1402d93c0
test eax, eax
jne 0x14016d531
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
cmp rcx, qword [0x140516040]
je 0x14016d526
call fcn.14029bbb0
int3
mov rax, rbx
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
movzx eax, byte [reloc.OLEAUT32.dll_VariantInit]
cmp rsi, rax
jne 0x14016d55e
lea rbx, [0x1404e6b28]
test al, al
je 0x14016d50f
lea rdx, [0x1404e6b2c]
mov rcx, rdi
mov r8, rsi
call fcn.1402d93c0
test eax, eax
je 0x14016d50f
movzx eax, byte [reloc.OLEAUT32.dll_VariantInit]
cmp rsi, rax
jne 0x14016d58b
lea rbx, [0x1404e6a48]
test al, al
je 0x14016d50f
lea rdx, [0x1404e6a4c]
mov rcx, rdi
mov r8, rsi
call fcn.1402d93c0
test eax, eax
je 0x14016d50f
movzx eax, byte [0x1404e6cfd]
cmp rsi, rax
jne 0x14016d5c9
lea rbx, [0x1404e6cf0]
test al, al
je 0x14016d50f
lea rdx, [0x1404e6cf4]
mov rcx, rdi
mov r8, rsi
call fcn.1402d93c0
test eax, eax
je 0x14016d50f
jmp 0x14016d5c9
xor ebx, ebx
jmp 0x14016d50f
movzx eax, byte [0x1404e6c15]
cmp rsi, rax
jne 0x14016d5c2
lea rbx, [0x1404e6c08]
test al, al
je 0x14016d50f
lea rdx, [0x1404e6c0c]
mov rcx, rdi
mov r8, rsi
call fcn.1402d93c0
test eax, eax
je 0x14016d50f
jmp 0x14016d5c2
Function at 0x14016e010
Capabilities:
Create pipe

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x188
mov rsi, rcx
mov rax, qword [0x140516040]
xor rax, rsp
mov qword [rsp + 0x180], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x50], rax
movaps xmm0, xmmword [0x140484a40]
movaps xmmword [rsp + 0x40], xmm0
test dl, dl
je 0x14016e0fc
lea rdi, [rsp + 0x70]
xor ebx, ebx
mov r8d, 0x110
mov rcx, rdi
xor edx, edx
call fcn.1402d9b60
mov dword [rdi - 0xc], 0x11c
mov r14, qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
xor ecx, ecx
mov edx, 2
mov r8b, 3
call r14
mov rcx, rax
mov edx, 1
mov r8b, 3
call r14
mov rcx, rax
mov edx, 0x20
mov r8b, 3
call r14
mov qword [rdi - 8], 6
mov word [rdi + 0x108], 0
lea rcx, [rsp + 0x64]
mov edx, 0x23
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
mov edi, 0x80003
test eax, eax
je 0x14016e103
xorps xmm0, xmm0
lea rbx, [rsp + 0x40]
movaps xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov dword [rbx], 0x18
xor ecx, ecx
call fcn.14016e170
mov qword [rbx + 8], rax
mov dword [rbx + 0x10], 1
jmp 0x14016e103
mov edi, 3
xor ebx, ebx
cmp byte [rsi + 0x17], 0
jns 0x14016e10c
mov rsi, qword [rsi]
mov qword [rsp + 0x38], rbx
mov eax, 0x200
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x30], 0
mov rcx, rsi
mov edx, edi
mov r8d, 6
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
cmp rcx, qword [0x140516040]
je 0x14016e157
call fcn.14029bbb0
int3
add rsp, 0x188
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140175400
Capabilities:
Inspect section memory permissions

Disassembly:
mov r9d, r8d
xor r8d, r8d
jmp 0x140175410
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x40
mov ebx, r8d
mov rsi, rdx
mov r14, rcx
cmp byte [rdx + 0x17], 0
jns 0x140175431
mov rsi, qword [rsi]
mov edi, r9d
and edi, 0xfffffff
test r9b, 4
je 0x140175451
cmp byte [r14 + 0x50], 1
je 0x1401754dc
or edi, 0x20000000
test dil, 8
jne 0x1401754e7
xor r15d, r15d
cmp byte [r14 + 0x60], 0
mov r12d, 0
je 0x14017546f
mov r12, qword [r14 + 0x58]
cmp byte [r14 + 0x48], 0
mov r13d, 0
je 0x140175480
mov r13, qword [r14 + 0x40]
cmp byte [r14 + 0x38], 1
je 0x14017550e
cmp byte [r14 + 0x18], 1
je 0x14017551f
xor r9d, r9d
mov edx, 1
test ebx, ebx
jne 0x14017552f
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r15
mov rcx, rsi
mov r8d, edi
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov esi, eax
test eax, eax
jne 0x140175504
test esi, esi
sete al
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
or edi, 0x80000000
jmp 0x140175451
cmp byte [r14 + 0x68], 1
jne 0x1401754f9
or edi, 0x40000000
jmp 0x14017545b
or edi, 0x10000000
jmp 0x14017545b
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1401754c7
lea rcx, [r14 + 0x20]
call fcn.1400d5ec0
mov r15, rax
jmp 0x14017548b
mov rcx, r14
call fcn.1400d5ec0
mov r9, rax
jmp 0x140175499
cmp ebx, 4
jne 0x14017553e
mov edx, 6
jmp 0x1401754a6
lea eax, [rbx - 2]
cmp eax, 2
jae 0x140175550
mov edx, 7
jmp 0x1401754a6
cmp ebx, 1
jne 0x14017555f
mov edx, 4
jmp 0x1401754a6
xor edx, edx
jmp 0x1401754a6
Function at 0x140175410
Capabilities:
Inspect section memory permissions

Disassembly:
mov r9d, r8d
xor r8d, r8d
jmp 0x140175410
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x40
mov ebx, r8d
mov rsi, rdx
mov r14, rcx
cmp byte [rdx + 0x17], 0
jns 0x140175431
mov rsi, qword [rsi]
mov edi, r9d
and edi, 0xfffffff
test r9b, 4
je 0x140175451
cmp byte [r14 + 0x50], 1
je 0x1401754dc
or edi, 0x20000000
test dil, 8
jne 0x1401754e7
xor r15d, r15d
cmp byte [r14 + 0x60], 0
mov r12d, 0
je 0x14017546f
mov r12, qword [r14 + 0x58]
cmp byte [r14 + 0x48], 0
mov r13d, 0
je 0x140175480
mov r13, qword [r14 + 0x40]
cmp byte [r14 + 0x38], 1
je 0x14017550e
cmp byte [r14 + 0x18], 1
je 0x14017551f
xor r9d, r9d
mov edx, 1
test ebx, ebx
jne 0x14017552f
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r15
mov rcx, rsi
mov r8d, edi
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov esi, eax
test eax, eax
jne 0x140175504
test esi, esi
sete al
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
or edi, 0x80000000
jmp 0x140175451
cmp byte [r14 + 0x68], 1
jne 0x1401754f9
or edi, 0x40000000
jmp 0x14017545b
or edi, 0x10000000
jmp 0x14017545b
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1401754c7
lea rcx, [r14 + 0x20]
call fcn.1400d5ec0
mov r15, rax
jmp 0x14017548b
mov rcx, r14
call fcn.1400d5ec0
mov r9, rax
jmp 0x140175499
cmp ebx, 4
jne 0x14017553e
mov edx, 6
jmp 0x1401754a6
lea eax, [rbx - 2]
cmp eax, 2
jae 0x140175550
mov edx, 7
jmp 0x1401754a6
cmp ebx, 1
jne 0x14017555f
mov edx, 4
jmp 0x1401754a6
xor edx, edx
jmp 0x1401754a6

Function at 0x140175570
Capabilities:
Inspect section memory permissions

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x40
mov ebx, r8d
mov rsi, rdx
mov r15, rcx
mov edi, r9d
and edi, 0xfffffff
test r9b, 4
je 0x1401755a8
cmp byte [r15 + 0x50], 1
je 0x14017563f
or edi, 0x20000000
test dil, 8
jne 0x14017564a
xor r14d, r14d
cmp byte [r15 + 0x60], 0
mov r12d, 0
je 0x1401755c6
mov r12, qword [r15 + 0x58]
cmp byte [r15 + 0x48], 0
mov r13d, 0
je 0x1401755d7
mov r13, qword [r15 + 0x40]
cmp byte [r15 + 0x38], 1
je 0x140175671
cmp byte [r15 + 0x18], 1
je 0x140175682
xor r9d, r9d
cmp ebx, 4
jne 0x140175630
mov edx, 6
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r14
mov rcx, rsi
mov r8d, edi
call qword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
mov esi, eax
test eax, eax
jne 0x140175667
test esi, esi
sete al
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea eax, [rbx - 2]
cmp eax, 2
jae 0x140175692
mov edx, 7
jmp 0x1401755fa
or edi, 0x80000000
jmp 0x1401755a8
cmp byte [r15 + 0x68], 1
jne 0x14017565c
or edi, 0x40000000
jmp 0x1401755b2
or edi, 0x10000000
jmp 0x1401755b2
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14017561b
lea rcx, [r15 + 0x20]
call fcn.1400d5ec0
mov r14, rax
jmp 0x1401755e2
mov rcx, r15
call fcn.1400d5ec0
mov r9, rax
jmp 0x1401755f0
mov edx, 1
test ebx, ebx
je 0x1401755fa
cmp ebx, 1
jne 0x1401756ae
mov edx, 4
jmp 0x1401755fa
xor edx, edx
jmp 0x1401755fa
Function at 0x140175df0
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x40
mov rax, qword [0x140516040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov esi, 0xffffffff
cmp r8, rsi
cmovae r8, rsi
lea r9, [rsp + 0x34]
mov dword [r9], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140175e55
mov eax, dword [rsp + 0x34]
cmp rax, rsi
je 0x140175e5e
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
cmp rcx, qword [0x140516040]
je 0x140175e4f
call fcn.14029bbb0
int3
add rsp, 0x40
pop rsi
ret
mov rax, 0xffffffffffffffff
jmp 0x140175e38
int3
mov rcx, qword [rcx + 8]
jmp 0x140175df0

Function at 0x140175e70
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140516040]
xor rax, rsp
mov ebx, 0xffffffff
cmp r8, rbx
cmovb rbx, r8
mov qword [rsp + 0x30], rax
lea r14, [rsp + 0x2c]
mov r15, qword [sym.imp.KERNEL32.dll_ReadFile]
mov r12, qword [sym.imp.KERNEL32.dll_GetFileType]
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
mov rcx, rdi
mov rdx, rsi
mov r8d, ebx
mov r9, r14
call r15
test eax, eax
je 0x140175f1d
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x140175f09
cmp eax, 0xffffffff
je 0x140175f1a
mov eax, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
cmp rcx, qword [0x140516040]
je 0x140175efb
call fcn.14029bbb0
int3
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rcx, rdi
call r12
cmp eax, 3
je 0x140175eb1
mov eax, dword [rsp + 0x2c]
jmp 0x140175ee2
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
xor eax, eax
cmp ecx, 0x6d
setne al
neg rax
jmp 0x140175ee4

Function at 0x140176410
Capabilities:
Clear file content

Disassembly:
push rsi
push rdi
sub rsp, 0x168
mov rdi, rcx
mov rax, qword [0x140516040]
xor rax, rsp
mov qword [rsp + 0x160], rax
xor esi, esi
xor edx, edx
xor r8d, r8d
call fcn.140176330
test rax, rax
jne 0x14017644f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov sil, 1
test eax, eax
je 0x140176475
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
cmp rcx, qword [0x140516040]
je 0x140176469
call fcn.14029bbb0
int3
mov eax, esi
add rsp, 0x168
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.140212c30
test al, al
je 0x1401764cb
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutil_file_file_io_win.cc
lea rsi, [rsp + 0x28]
mov rcx, rsi
mov r8d, 0xfb
mov r9d, 2
call fcn.140313cd0
lea rcx, [rsp + 0x38]
lea rdx, [0x1404ea423]
mov r8d, ntohl
call fcn.1401e8c50
mov rcx, rsi
call fcn.140313d40
xor esi, esi
jmp 0x14017644f
Function at 0x140176980
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x40
mov rax, qword [0x140516040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov esi, 0xffffffff
cmp r8, rsi
cmovae r8, rsi
lea r9, [rsp + 0x34]
mov dword [r9], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140175e55
mov eax, dword [rsp + 0x34]
cmp rax, rsi
je 0x140175e5e
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
cmp rcx, qword [0x140516040]
je 0x140175e4f
call fcn.14029bbb0
int3
add rsp, 0x40
pop rsi
ret
mov rax, 0xffffffffffffffff
jmp 0x140175e38
int3
mov rcx, qword [rcx + 8]
jmp 0x140175df0

Function at 0x140183bf0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140183c05
mov dword [rsi], eax
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret
Function at 0x14018d200
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp qword [0x140535840], 0
jne 0x14018d23d
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x14018d230
mov dword [rdi], eax
mov dword [0x140535848], eax
mov qword [0x140535840], rsi
cmp eax, 0xffffffff
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
int3

Function at 0x140193ea0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov rsi, rcx
test r8d, r8d
je 0x140193fe8
mov ebx, r8d
mov dword [rsi], 0
test dl, 1
jne 0x140194008
xor edi, edi
movzx edx, dx
shr edx, 1
inc edi
mov ebp, edx
test dl, 1
je 0x140193eca
bsr ecx, ebp
xor ecx, 0x1f
mov eax, 0x20
sub eax, ecx
imul eax, ebx
cmp eax, 0xde3
jg 0x140194012
mov r8d, 1
mov eax, r8d
lea r8d, [rax + rax]
cmp eax, ebx
jle 0x140193ef9
mov r14d, eax
sar r14d, 2
movzx r8d, dx
cmp eax, 4
jae 0x140194026
xor eax, eax
mov rdx, r8
test rdx, rdx
je 0x140193f4c
xor ecx, ecx
mov r8, rdx
mov r9d, edx
and r9d, 0xfffffff
mov dword [rsi + rcx*4 + 4], r9d
shr r8, 0x1c
inc rcx
cmp rdx, 0xfffffff
mov rdx, r8
ja 0x140193f27
mov word [rsi], cx
test al, 1
jne 0x140194017
test r14d, r14d
jne 0x14019407b
movzx edx, word [rsi]
test rdx, rdx
je 0x140193fdd
imul edi, ebx
movsxd rax, edi
imul rax, rax, 0xffffffff92492493
shr rax, 0x20
add eax, edi
mov ecx, eax
shr ecx, 0x1f
sar eax, 4
add eax, ecx
add word [rsi + 2], ax
cmp dx, 0x7f
jg 0x140194012
test dx, dx
jle 0x140193fdd
lea ecx, [rax + rax*8]
lea ecx, [rcx + rcx*2]
add ecx, eax
sub edi, ecx
mov eax, 0x1c
sub eax, edi
xor r8d, r8d
xor r9d, r9d
mov r10d, r9d
mov r11d, dword [rsi + r8*4 + 4]
mov r9d, r11d
mov ecx, eax
shr r9d, cl
mov ecx, edi
shl r11d, cl
add r11d, r10d
and r11d, 0xfffffff
mov dword [rsi + r8*4 + 4], r11d
inc r8
cmp rdx, r8
jne 0x140193fac
test r9d, r9d
jne 0x140193ffe
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
mov word [rsi + 2], 0
mov dword [rsi + 4], 1
mov ax, 1
mov word [rsi], ax
jmp 0x140193fdd
mov dword [rsi + rdx*4 + 4], r9d
lea eax, [rdx + 1]
jmp 0x140193ff9
movzx ebp, dx
xor edi, edi
jmp 0x140193ed8
call fcn.1403a6980
mov rcx, rsi
mov edx, ebp
call fcn.140193df0
jmp 0x140193f54
or ecx, 0x20
xor eax, eax
mov rdx, r8
mov r9d, r14d
imul rdx, rdx
test r9d, ebx
je 0x140194059
mov r10, rdx
shr r10, cl
mov r11d, 1
test r10, r10
setne r10b
jne 0x140194052
mov r11, r8
imul rdx, r11
or al, r10b
mov r14d, r9d
sar r14d, 1
cmp r9d, 2
jb 0x140193f1d
mov r9, rdx
shr r9, 0x20
mov r9d, r14d
jne 0x140193f1d
jmp 0x140194031
mov rcx, rsi
call fcn.1403fa880
test r14d, ebx
je 0x140194092
mov rcx, rsi
mov edx, ebp
call fcn.140193df0
mov eax, r14d
sar eax, 1
cmp r14d, 1
mov r14d, eax
jbe 0x140193f5d
jmp 0x14019407b
Function at 0x1401956e0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov eax, dword [0x140536740]
mov ecx, dword [0x140527e80]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140195761
lea rcx, [0x140536730]
call fcn.14023ab60
test rax, rax
jne 0x14019574e
mov ecx, 4
call fcn.14029a62c
mov rdi, rax
mov dword [rax], 0
lea rbx, [0x140536730]
mov rcx, rbx
call fcn.14023ab60
mov rsi, rax
mov rcx, rbx
mov rdx, rdi
call fcn.1401578f0
test rsi, rsi
jne 0x1401957a4
lea rcx, [0x140536730]
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.14023ab60
lea rcx, [0x140536740]
call fcn.14029a6ac
cmp dword [0x140536740], 0xffffffff
jne 0x140195708
xorps xmm0, xmm0
movups xmmword [0x140536730], xmm0
lea rcx, [0x140536730]
lea rdx, [0x1400cb780]
call fcn.140157940
lea rcx, [0x140536740]
call fcn.14029a760
jmp 0x140195708
mov rcx, rsi
call fcn.14029a668
jmp 0x14019574e

Function at 0x14019a0d0
Capabilities:
Create thread

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov rsi, rcx
mov rax, qword [0x140516040]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r8, [0x14019a180]
xor ecx, ecx
xor edx, edx
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsi + 8], rax
test rax, rax
je 0x14019a134
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
cmp rcx, qword [0x140516040]
je 0x14019a12d
call fcn.14029bbb0
int3
add rsp, 0x68
pop rdi
pop rsi
ret
lea rdx, str.Start
lea r8, str....._third_partycrashpadcrashpadutil_thread_thread_win.cc
lea rsi, [rsp + 0x38]
mov rcx, rsi
mov r9d, 0x1b
call fcn.140212f30
lea rdi, [rsp + 0x58]
mov rcx, rdi
mov rdx, rsi
call fcn.140316940
lea rdx, [0x1404aab6a]
mov rcx, rdi
call fcn.1403133f0
mov rcx, rdi
call fcn.1403169f0
jmp 0x14019a116

Function at 0x14019a4a0
Capabilities:
Encode data using xor

Disassembly:
lea r9, [rcx + rdx]
imul eax, edx, 0xc6a4a793
xor eax, r8d
cmp rdx, 4
jl 0x14019a50e
add eax, dword [rcx]
imul edx, eax, 0xc6a4a793
mov eax, edx
shr eax, 0x10
xor eax, edx
lea rdx, [rcx + 4]
add rcx, 8
cmp rcx, r9
mov rcx, rdx
jbe 0x14019a4b3
sub r9, rdx
cmp r9, 3
je 0x14019a4e8
cmp r9, 1
je 0x14019a4fa
cmp r9, 2
je 0x14019a4f1
ret
movzx ecx, byte [rdx + 2]
shl ecx, 0x10
add eax, ecx
movzx ecx, byte [rdx + 1]
shl ecx, 8
add eax, ecx
movzx ecx, byte [rdx]
add ecx, eax
imul ecx, ecx, 0xc6a4a793
mov eax, ecx
shr eax, 0x18
xor eax, ecx
jmp 0x14019a4e7
mov rdx, rcx
jmp 0x14019a4d2
Function at 0x1401b34b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
movzx r9d, byte [rdx + 1]
cmp r9, 9
ja case.0x1401b34d3.0
movzx eax, byte [rdx]
and eax, 0x3f
lea r10, [0x1404fc7ec]
movsxd r9, dword [r10 + r9*4]
add r9, r10
jmp r9
movsx rax, byte [rdx + rax]
cmp qword [r8 + 0x10], rax
jg 0x1401b3501
jl 0x1401b3510
cmp word [r8 + 0x1c], 2
jb 0x1401b3516
mov r9d, 1
jmp fcn.1401b12a0
xor eax, eax
jmp 0x1401b34db
mov eax, 1
jmp 0x1401b34db
movsx eax, byte [r8 + 0x20]
ret
mov rax, qword [rdx + rax]
bswap rax
jmp 0x1401b34db
movsx eax, byte [r8 + 0x21]
ret
movsx eax, byte [r8 + 0x1e]
mov byte [r8 + 0x22], 1
ret
mov r9d, dword [rdx + rax + 2]
bswap r9d
movsx r10d, byte [rdx + rax]
shl r10d, 8
movzx eax, byte [rdx + rax + 1]
or eax, r10d
shl rax, 0x20
jmp 0x1401b354e
movsx r9, byte [rdx + rax]
shl r9, 8
movzx eax, byte [rdx + rax + 1]
or rax, r9
jmp 0x1401b34db
movzx r9d, byte [rdx + rax]
shl r9d, 0x18
movzx r10d, byte [rdx + rax + 1]
shl r10d, 0x10
movsxd r9, r9d
or r9, r10
movzx r10d, byte [rdx + rax + 2]
shl r10d, 8
or r10, r9
movzx eax, byte [rdx + rax + 3]
or rax, r10
jmp 0x1401b34db
xor r9d, r9d
jmp fcn.1401b12a0
movsx r9, byte [rdx + rax]
shl r9, 0x10
movzx r10d, byte [rdx + rax + 1]
shl r10d, 8
or r10, r9
movzx eax, byte [rdx + rax + 2]
jmp 0x1401b357e
Function at 0x1401b35b0
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 [0x140516040]
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 0x1401b3661
test r15b, 1
je 0x1401b365b
movzx ecx, byte [rdi]
add r15d, 0xfffffff4
shr r15d, 1
lea eax, [r15 + rcx]
cmp eax, ebx
jg 0x1401b36cb
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.1402d93c0
test eax, eax
jg 0x1401b365b
jns 0x1401b3683
movsx eax, byte [rsi + 0x20]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
cmp rcx, qword [0x140516040]
je 0x1401b364c
call fcn.14029bbb0
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 0x1401b3635
test r15d, r15d
jns 0x1401b3631
movzx r15d, byte [rdi + 2]
test r15b, r15b
js 0x1401b3700
or r15d, ebp
cmp r15d, 0xb
jg 0x1401b35ee
jmp 0x1401b3631
cmp r15d, ebp
jne 0x1401b3699
cmp word [rsi + 0x1c], 2
jae 0x1401b369d
movsx eax, byte [rsi + 0x1e]
mov byte [rsi + 0x22], 1
jmp 0x1401b3635
jle 0x1401b3631
jmp 0x1401b365b
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14029bbb0
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.1401b12a0
lea rax, [0x1404f37d1]
mov qword [rsp + 0x20], rax
lea rdx, str._s_at_line__d_of___.10s_
lea r8, str.database_corruption
mov ecx, ntohl
mov r9d, 0x15f25
call fcn.14019af90
mov byte [rsi + 0x1f], ntohl
xor eax, eax
jmp 0x1401b3635
movsx eax, byte [rdi + 3]
test eax, eax
js 0x1401b371e
and r15d, 0x7f
shl r15d, 7
or eax, r12d
or eax, r15d
mov r15d, eax
jmp 0x1401b3677
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r15, [rsp + 0x30]
mov qword [r15], rax
mov rcx, r14
mov rdx, r15
call fcn.1401a8240
mov r15, qword [r15]
mov rax, r15
shr rax, 0x20
je 0x1401b3677
jmp 0x1401b3631
Function at 0x1401b7580
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 [0x140516040]
xor rax, rsp
mov qword [rsp + 0xb0], rax
test r8d, r8d
jle 0x1401b76fe
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 [0x140484a40]
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 r13d, r13d
jmp 0x1401b763b
mov dword [rsp + rax*4 + 0x50], esi
jmp 0x1401b7631
mov dword [rsp + rax*4 + 0x80], r15d
inc edi
inc rbp
cmp rbp, rdx
jge 0x1401b76a0
mov rax, qword [rbx + 0x10]
mov rax, qword [rax + rbp*8]
cmp rax, r11
jb 0x1401b7633
cmp rax, r12
jae 0x1401b7633
mov rcx, qword [rbx + 0x18]
movzx esi, word [rcx + rbp*2]
sub eax, r9d
movzx r15d, ax
add esi, r15d
test r13d, r13d
jle 0x1401b7687
mov r14d, r13d
xor eax, eax
cmp dword [rsp + rax*4 + 0x80], esi
je 0x1401b7629
cmp dword [rsp + rax*4 + 0x50], r15d
je 0x1401b7623
inc rax
cmp r14, rax
jne 0x1401b7669
cmp r13d, 0xa
jge 0x1401b7702
movsxd rax, r13d
mov dword [rsp + rax*4 + 0x80], r15d
mov dword [rsp + rax*4 + 0x50], esi
cmp esi, r10d
ja 0x1401b76fe
inc r13d
jmp 0x1401b7631
test r13d, r13d
jle 0x1401b76ce
mov esi, r13d
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.1401b4a20
inc rbx
cmp rsi, rbx
jne 0x1401b76af
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
cmp rcx, qword [0x140516040]
je 0x1401b76e8
call fcn.14029bbb0
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 0x1401b76ce
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x30], r11
mov qword [rsp + 0x38], r10
mov qword [rsp + 0x40], r9
xor r13d, r13d
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.1401b4a20
mov rcx, qword [rsp + 0x48]
inc rcx
mov rax, rcx
cmp r14, rcx
jne 0x1401b771b
mov r9, qword [rsp + 0x40]
mov r10, qword [rsp + 0x38]
mov r11, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
jmp 0x1401b7687