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

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x88
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
mov edx, dword [rsp + 0xe0]
mov rax, qword [0x140418038]
xor rax, rsp
mov qword [rsp + 0x80], rax
movsxd r8, dword [rcx + 0x18]
lea ecx, [rdx + 4]
mov r11, rcx
shr r11, 6
xor eax, eax
mov r10d, 0
cmp r11, r8
jae 0x14031942c
mov r10, qword [r9 + r11*8]
shr r10, cl
shl r10d, 5
and r10d, 0x20
lea ecx, [rdx + 3]
mov r11, rcx
shr r11, 6
cmp r11, r8
jae 0x140319448
mov rax, qword [r9 + r11*8]
shr rax, cl
shl eax, 4
and eax, 0x10
or eax, r10d
lea ecx, [rdx + 2]
mov r14, rcx
shr r14, 6
xor r10d, r10d
mov r11d, 0
cmp r14, r8
jae 0x140319472
mov r11, qword [r9 + r14*8]
shr r11, cl
shl r11d, 3
and r11d, 8
or eax, r11d
lea ecx, [rdx + 1]
mov r11, rcx
shr r11, 6
cmp r11, r8
jae 0x140319493
mov r10, qword [r9 + r11*8]
shr r10, cl
shl r10d, 2
and r10d, 4
or eax, r10d
mov ecx, edx
mov r11, rcx
shr r11, 6
xor r10d, r10d
cmp r11, r8
jae 0x1403194b5
mov r10, qword [r9 + r11*8]
shr r10, cl
add r10d, r10d
and r10d, 2
or eax, r10d
test edx, edx
je 0x1403194db
dec edx
mov r10, rdx
shr r10, 6
xor ecx, ecx
cmp r10, r8
jae 0x1403194d9
mov r8, qword [r9 + r10*8]
xor ecx, ecx
bt r8, rdx
setb cl
or eax, ecx
mov r14d, eax
shr r14, 5
lea ecx, [r14 - 1]
neg r14
and ecx, eax
xor eax, 0x3f
mov r15d, r14d
and r15d, eax
or r15d, ecx
mov rax, r15
shr rax, 1
and r15d, 1
add r15, rax
xor r12d, r12d
mov r8d, 0xd8
mov rcx, rsi
xor edx, edx
call fcn.140244560
mov r8, r12
xor r8, r15
dec r8
sar r8, 0x3f
mov qword [rsp + 0x20], rsi
mov rcx, rdi
mov rdx, rsi
mov r9, rbx
call fcn.140316470
inc r12
add rbx, 0xd8
cmp r12, 0x11
jne 0x140319517
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x70], rax
movaps xmm0, xmmword [0x1403aa440]
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
add rsi, 0x48
mov ecx, dword [rdi + 0x40]
test ecx, ecx
jle 0x14031958e
xor edx, edx
xor eax, eax
or rax, qword [rsi + rdx*8]
inc rdx
cmp rcx, rdx
jne 0x140319580
jmp 0x140319590
xor eax, eax
test rcx, rcx
je 0x140319620
movsxd rcx, ecx
mov rdx, qword [rdi + 0x38]
xor r8d, r8d
lea r9, [rsp + 0x30]
sub r10, r10
jmp 0x1403195b0
mov r10, qword [rdx + r8*8]
sbb r10, qword [rsi + r8*8]
mov qword [r9 + r8*8], r10
lea r8, [r8 + 1]
dec rcx
jne 0x1403195b0
sbb r10, r10
mov ecx, dword [rdi + 0x40]
test ecx, ecx
jle 0x1403195eb
xor edx, edx
mov r8, rax
test rax, rax
je 0x1403195de
mov r8, qword [rsp + rdx*8 + 0x30]
mov qword [rsp + rdx*8 + 0x30], r8
inc rdx
cmp rcx, rdx
jne 0x1403195d1
test rcx, rcx
je 0x140319620
and r14d, 1
mov rax, r14
neg rax
dec r14
movsxd rcx, ecx
xor edx, edx
mov r8, qword [rsp + rdx*8 + 0x30]
and r8, rax
mov r9, qword [rsi + rdx*8]
and r9, r14
or r9, r8
mov qword [rsi + rdx*8], r9
inc rdx
cmp rcx, rdx
jne 0x140319602
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140242430
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140335470
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x180
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x140418038]
xor rax, rsp
mov qword [rsp + 0x178], rax
mov qword [rcx + 8], rdx
mov eax, dword [0x140438ec0]
mov ecx, dword [0x14042a04c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140335707
mov rax, qword [0x140438eb8]
test rax, rax
jne 0x140335558
mov byte [rsi + 0x81], 0
movaps xmm0, xmmword [0x1403aa440]
lea rbx, [rsp + 0x30]
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [rbx], 9
sete byte [rsi + 0x80]
cmp byte [rsi + 0x81], 0
setne dl
lea rax, [rsi + 0x30]
lea r9, [rsi + 0x28]
mov qword [rsp + 0x20], rax
mov rcx, rdi
mov r8, rsi
call fcn.140335750
test al, al
jne 0x1403355f5
mov ecx, 2
call fcn.1401de860
test al, al
jne 0x14033560f
xor esi, esi
mov rcx, qword [rsp + 0x178]
xor rcx, rsp
call fcn.140242430
mov eax, esi
add rsp, 0x180
pop rbx
pop rdi
pop rsi
ret
lea rdx, [rsp + 0x174]
mov dword [rdx], 0xaaaaaaaa
mov rcx, rdi
call qword [case.0x1402bbc90.0]
test eax, eax
jne 0x1403355d2
mov ecx, 2
call fcn.1401de860
test al, al
je 0x1403354cb
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutilwinprocess_info.cc
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov r8d, 0x4b
mov r9d, 2
call fcn.1402b3940
lea rcx, [rsp + 0x40]
lea rdx, [0x1403c6e6c]
mov r8d, reloc.WS2_32.dll_ntohl
call fcn.14027e630
mov rcx, rbx
call fcn.1402b39c0
jmp 0x1403354cb
cmp dword [rsp + 0x174], 0
setne byte [rsi + 0x81]
je 0x1403354d2
mov byte [rsi + 0x80], 0
mov dl, 1
jmp 0x140335507
cmp byte [rsi + 0x80], 0
mov rdx, qword [rsi + 0x28]
mov rcx, rdi
mov r8, rsi
jne 0x140335653
call fcn.140336000
jmp 0x140335658
lea rdx, str....._third_partycrashpadcrashpadutilwinprocess_info.cc
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0x21e
mov r9d, 2
call fcn.1400e3550
lea rcx, [rsp + 0x40]
lea rdx, str.GetProcessBasicInformation_failed
mov r8d, 0x21
call fcn.14027e630
mov rcx, rsi
call fcn.1400e3a40
jmp 0x140335539
call fcn.140335980
test al, al
je 0x1403356be
mov dl, byte [rsi + 0x80]
mov rcx, rdi
mov r8, rsi
call fcn.14015da30
mov sil, 1
test al, al
jne 0x14033553b
mov ecx, 2
call fcn.1401de860
test al, al
je 0x140335539
lea rdx, str....._third_partycrashpadcrashpadutilwinprocess_info.cc
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0x22c
mov r9d, 2
call fcn.1400e3550
lea rcx, [rsp + 0x40]
lea rdx, str.ReadMemoryInfo_failed
mov r8d, 0x15
jmp 0x140335641
mov ecx, 2
call fcn.1401de860
test al, al
je 0x140335539
lea rdx, str....._third_partycrashpadcrashpadutilwinprocess_info.cc
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0x227
mov r9d, 2
call fcn.1400e3550
lea rcx, [rsp + 0x40]
lea rdx, str.ReadProcessData_failed
mov r8d, 0x16
jmp 0x140335641
lea rcx, [0x140438ec0]
call fcn.140240e30
cmp dword [0x140438ec0], 0xffffffff
jne 0x1403354bb
lea rcx, [0x1403b0260]
lea rdx, str.::IsWow64Process
xor r8d, r8d
call fcn.14015ef80
mov qword [0x140438eb8], rax
lea rcx, [0x140438ec0]
call fcn.140240ec8
jmp 0x1403354bb
Function at 0x140337e90
Capabilities:
Read http header

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x60
mov rsi, r9
mov rdi, r8
mov ebx, edx
mov r14, rcx
mov rax, qword [0x140418038]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea r12, [rsp + 0x54]
mov dword [r12], 0
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x28], 0
xor r9d, r9d
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov ebp, 0x80004005
cmovne ebp, ecx
cmp ebp, 0x8007007a
jne 0x140337f8e
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r15, [rsp + 0x30]
mov qword [r15 + 0x10], rax
movaps xmm0, xmmword [0x1403aa440]
movaps xmmword [r15], xmm0
mov edx, dword [rsp + 0x54]
shr rdx, 1
mov rcx, r15
call fcn.1401e94b0
mov r9, qword [r15]
cmp r9, qword [r15 + 8]
je 0x140337ffe
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x28], 0
mov rcx, r14
mov edx, ebx
mov r8, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x140337fac
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov ebp, 0x80004005
cmovne ebp, ecx
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140337f8e
mov qword [rsp + 0x38], rcx
call fcn.140240d14
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140242430
mov eax, ebp
add rsp, 0x60
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov eax, dword [rsp + 0x54]
shr rax, 1
mov rdx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x38]
mov rcx, r8
sub rcx, rdx
sar rcx, 1
cmp rcx, rax
jae 0x140337ff1
sub rax, rcx
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov rdx, rax
call fcn.1400a9ce0
mov rdx, qword [rdi]
mov r8, qword [rdi + 8]
mov rcx, rsi
call fcn.140338030
xor ebp, ebp
jmp 0x140337f7a
jbe 0x140337fe5
lea r8, [rdx + rax*2]
mov qword [rsp + 0x38], r8
jmp 0x140337fe5
lea rax, str.front___called_on_an_empty_vector
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude_vector
lea r9, str._empty__
mov r8d, 0x220
call fcn.140280b90
int3

Function at 0x1403381f0
Capabilities:
Read http header

Disassembly:
push rsi
sub rsp, 0x40
mov rax, qword [0x140418038]
xor rax, rsp
mov qword [rsp + 0x38], rax
or edx, 0x20000000
lea rax, [rsp + 0x34]
mov dword [rax], 4
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 0
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
xor esi, esi
test eax, eax
jne 0x14033824b
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov esi, 0x80004005
cmovne esi, ecx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140242430
mov eax, esi
add rsp, 0x40
pop rsi
ret
Function at 0x14033bd60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x1a0
mov ebx, edx
mov rsi, rcx
mov rax, qword [0x140418038]
xor rax, rsp
mov qword [rsp + 0x198], rax
cmp byte [rcx + 0x17], 0
jns 0x14033bd8a
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14033bdac
mov edi, eax
test bl, bl
jne 0x14033bda4
mov eax, edi
and eax, 0x400
jne 0x14033bdba
and edi, 0x10
shr edi, 4
jmp 0x14033bdbc
mov ecx, 2
call fcn.1401de860
test al, al
jne 0x14033bdd9
xor edi, edi
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.140242430
mov eax, edi
add rsp, 0x1a0
pop rbx
pop rdi
pop rsi
ret
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
lea rcx, [rsp + 0x58]
mov r8d, 0x82
mov r9d, 2
call fcn.1402b3940
lea rcx, [rsp + 0x68]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.14027e630
mov rdi, rax
movzx eax, byte [rsi + 0x17]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [rsi]
cmovns rax, rsi
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
cmovs rcx, qword [rsi + 8]
mov qword [rdx + 8], rcx
lea rsi, [rsp + 0x40]
mov rcx, rsi
call fcn.1401e9a30
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x14033be5f
mov r8, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
jmp 0x14033be63
and r8d, 0x7f
mov rcx, rdi
mov rdx, rsi
call fcn.14027e630
cmp byte [rsp + 0x57], 0
jns 0x14033be7f
mov rcx, qword [rsp + 0x40]
call fcn.140240d14
lea rcx, [rsp + 0x58]
call fcn.1402b39c0
jmp 0x14033bdba
Function at 0x14033be90
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x1b0
mov ebx, r8d
mov rsi, rcx
mov rax, qword [0x140418038]
xor rax, rsp
mov qword [rsp + 0x1a8], rax
cmp byte [rcx + 0x17], 0
jns 0x14033bebb
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dil, 1
test eax, eax
je 0x14033bee7
mov rcx, qword [rsp + 0x1a8]
xor rcx, rsp
call fcn.140242430
mov eax, edi
add rsp, 0x1b0
pop rbx
pop rdi
pop rsi
ret
test bl, bl
je 0x14033befc
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14033bfa4
mov ecx, 2
call fcn.1401de860
test al, al
jne 0x14033bf0e
xor edi, edi
jmp 0x14033beca
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
lea rcx, [rsp + 0x40]
mov r8d, 0x62
mov r9d, 2
call fcn.1402b3940
lea rcx, [rsp + 0x50]
lea rdx, str.CreateDirectory
mov r8d, 0x10
call fcn.14027e630
mov rdi, rax
movzx eax, byte [rsi + 0x17]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [rsi]
cmovns rax, rsi
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
cmovs rcx, qword [rsi + 8]
mov qword [rdx + 8], rcx
lea rsi, [rsp + 0x190]
mov rcx, rsi
call fcn.1401e9a30
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x14033c03f
mov r8, qword [rsp + 0x198]
mov rsi, qword [rsp + 0x190]
jmp 0x14033c043
mov dil, 1
mov rcx, rsi
mov dl, 1
call fcn.14033bd60
test al, al
jne 0x14033beca
mov ecx, 2
call fcn.1401de860
test al, al
je 0x14033bf0a
lea rdx, str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
lea rcx, [rsp + 0x40]
mov r8d, 0x5d
mov r9d, 2
call fcn.1400e3550
lea rdi, [rsp + 0x50]
movzx eax, byte [rsi + 0x17]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [rsi]
cmovns rax, rsi
lea rdx, [rsp + 0x180]
mov qword [rdx], rax
cmovs rcx, qword [rsi + 8]
mov qword [rdx + 8], rcx
lea rsi, [rsp + 0x190]
mov rcx, rsi
call fcn.1401e9a30
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x14033c074
mov r8, qword [rsp + 0x198]
mov rsi, qword [rsp + 0x190]
jmp 0x14033c078
and r8d, 0x7f
mov rcx, rdi
mov rdx, rsi
call fcn.14027e630
cmp byte [rsp + 0x1a7], 0
jns 0x14033c065
mov rcx, qword [rsp + 0x190]
call fcn.140240d14
lea rcx, [rsp + 0x40]
call fcn.1402b39c0
jmp 0x14033bf0a
and r8d, 0x7f
mov rcx, rdi
mov rdx, rsi
call fcn.14027e630
lea rdx, str._not_a_directory
mov r8d, 0x10
mov rcx, rax
call fcn.14027e630
cmp byte [rsp + 0x1a7], 0
jns 0x14033c0af
mov rcx, qword [rsp + 0x190]
call fcn.140240d14
lea rcx, [rsp + 0x40]
call fcn.1400e3a40
jmp 0x14033bf0a
Function at 0x14033c0c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x198
mov rsi, rcx
mov rax, qword [0x140418038]
xor rax, rsp
mov qword [rsp + 0x190], rax
cmp byte [rcx + 0x17], 0
jns 0x14033c0e7
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14033c117
test eax, 0x410
sete sil
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140242430
mov eax, esi
add rsp, 0x198
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.1401de860
test al, al
jne 0x14033c129
xor esi, esi
jmp 0x14033c0fb
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
lea rcx, [rsp + 0x50]
mov r8d, 0x75
mov r9d, 2
call fcn.1402b3940
lea rcx, [rsp + 0x60]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.14027e630
mov rdi, rax
movzx eax, byte [rsi + 0x17]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [rsi]
cmovns rax, rsi
lea rdx, [rsp + 0x28]
mov qword [rdx], rax
cmovs rcx, qword [rsi + 8]
mov qword [rdx + 8], rcx
lea rsi, [rsp + 0x38]
mov rcx, rsi
call fcn.1401e9a30
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x14033c1af
mov r8, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
jmp 0x14033c1b3
and r8d, 0x7f
mov rcx, rdi
mov rdx, rsi
call fcn.14027e630
cmp byte [rsp + 0x4f], 0
jns 0x14033c1cf
mov rcx, qword [rsp + 0x38]
call fcn.140240d14
lea rcx, [rsp + 0x50]
call fcn.1402b39c0
jmp 0x14033c125
Function at 0x14033c1e0
Capabilities:
Check if file exists
Delete directory
Delete file

Disassembly:
push rsi
push rdi
sub rsp, 0x198
mov rsi, rcx
mov rax, qword [0x140418038]
xor rax, rsp
mov qword [rsp + 0x190], rax
cmp byte [rcx + 0x17], 0
jns 0x14033c207
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14033c21e
and eax, 0x410
cmp eax, 0x410
je 0x14033c265
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14033c22a
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dil, 1
test eax, eax
je 0x14033c253
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140242430
mov eax, edi
add rsp, 0x198
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.1401de860
test al, al
jne 0x14033c286
xor edi, edi
jmp 0x14033c237
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140242430
mov rcx, rsi
add rsp, 0x198
pop rdi
pop rsi
jmp fcn.14033c340
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
lea rcx, [rsp + 0x50]
mov r8d, 0x95
mov r9d, 2
call fcn.1402b3940
lea rcx, [rsp + 0x60]
lea rdx, str.DeleteFile
mov r8d, ntohl
call fcn.14027e630
mov rdi, rax
movzx eax, byte [rsi + 0x17]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [rsi]
cmovns rax, rsi
lea rdx, [rsp + 0x28]
mov qword [rdx], rax
cmovs rcx, qword [rsi + 8]
mov qword [rdx + 8], rcx
lea rsi, [rsp + 0x38]
mov rcx, rsi
call fcn.1401e9a30
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x14033c30c
mov r8, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
jmp 0x14033c310
and r8d, 0x7f
mov rcx, rdi
mov rdx, rsi
call fcn.14027e630
cmp byte [rsp + 0x4f], 0
jns 0x14033c32c
mov rcx, qword [rsp + 0x38]
call fcn.140240d14
lea rcx, [rsp + 0x50]
call fcn.1402b39c0
jmp 0x14033c261
Function at 0x14033c340
Capabilities:
Delete directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x1a0
mov rdi, rcx
mov rax, qword [0x140418038]
xor rax, rsp
mov qword [rsp + 0x198], rax
cmp byte [rcx + 0x17], 0
jns 0x14033c368
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
test eax, eax
jne 0x14033c382
mov ecx, 2
call fcn.1401de860
test al, al
jne 0x14033c3a4
test esi, esi
setne bl
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.140242430
mov eax, ebx
add rsp, 0x1a0
pop rbx
pop rdi
pop rsi
ret
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
lea rcx, [rsp + 0x58]
mov r8d, 0x30
mov r9d, 2
call fcn.1402b3940
lea rcx, [rsp + 0x68]
lea rdx, str.RemoveDirectory
mov r8d, 0x10
call fcn.14027e630
mov rbx, rax
movzx eax, byte [rdi + 0x17]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [rdi]
cmovns rax, rdi
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
cmovs rcx, qword [rdi + 8]
mov qword [rdx + 8], rcx
lea rdi, [rsp + 0x40]
mov rcx, rdi
call fcn.1401e9a30
movzx r8d, byte [rdi + 0x17]
test r8b, r8b
jns 0x14033c42a
mov r8, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x40]
jmp 0x14033c42e
and r8d, 0x7f
mov rcx, rbx
mov rdx, rdi
call fcn.14027e630
cmp byte [rsp + 0x57], 0
jns 0x14033c44a
mov rcx, qword [rsp + 0x40]
call fcn.140240d14
lea rcx, [rsp + 0x58]
call fcn.1402b39c0
jmp 0x14033c382

Function at 0x140340de0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
mov r14, rdx
mov rsi, rcx
mov rax, qword [rcx + 8]
cmp rax, qword [rcx + 0x10]
je 0x140340e1e
test rax, rax
je 0x140340edb
mov rcx, qword [r14]
mov qword [rax], rcx
add rax, 8
mov qword [rsi + 8], rax
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
sub rax, qword [rsi]
mov rbx, rax
sar rbx, 3
lea rcx, [rbx + 1]
mov rdx, rcx
shr rdx, 0x3d
jne 0x140340f07
movabs rdx, 0x1fffffffffffffff
lea rdi, [rsi + 0x18]
mov r15, rax
sar r15, 2
cmp r15, rcx
cmovbe r15, rcx
movabs rcx, 0x7ffffffffffffff8
cmp rax, rcx
cmovae r15, rdx
test r15, r15
jne 0x140340ece
xor eax, eax
shl rbx, 3
add rbx, rax
je 0x140340edb
lea r15, [rax + r15*8]
mov rax, qword [r14]
mov qword [rbx], rax
lea r14, [rbx + 8]
mov rdx, qword [rsi]
mov r8, qword [rsi + 8]
sub r8, rdx
sub rbx, r8
mov rcx, rbx
call fcn.140243eb0
mov rdx, qword [rsi]
mov r8, qword [rsi + 0x10]
mov qword [rsi], rbx
mov qword [rsi + 8], r14
mov qword [rsi + 0x10], r15
test rdx, rdx
je 0x140340e12
sub r8, rdx
sar r8, 3
mov rcx, rdi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.140341440
mov rcx, rdi
mov rdx, r15
call fcn.1403419c0
jmp 0x140340e6d
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x23
call fcn.140280b90
call fcn.14025af90
int3
Function at 0x140349a10
Capabilities:
Enumerate processes

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rcx
lea rsi, [rcx + 0x18]
mov r8d, 0x238
mov rcx, rsi
xor edx, edx
call fcn.140244560
mov dword [rdi + 0x18], 0x238
cmp byte [rdi + 0x10], 0
je 0x140349a52
mov rcx, qword [rdi + 8]
mov rdx, rsi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
mov byte [rdi + 0x10], 1
mov rcx, qword [rdi + 8]
mov rdx, rsi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x140349a46

Function at 0x140349e60
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x140349e9c
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffffffff
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x140349ea6
add rdi, rbx
sub rsi, rbx
jne 0x140349e7a
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.14025af90
int3

Function at 0x140351b50
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov rax, qword [0x140418038]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r14, qword [rdx + r8*8]
lea rdi, [rsp + 0x20]
lea rbx, [rsp + 0x38]
movabs r15, 0x9e3779b97f4a7c15
mov r12, qword [r14 + 0x38]
mov rcx, r14
mov rdx, rdi
call fcn.1401d96a0
mov rdx, qword [rsp + 0x20]
mov r8, qword [rsp + 0x28]
mov rcx, rbx
call fcn.1401c8380
xor rax, qword [rsi + 0x10]
imul rax, r15
shr rax, 0x20
mov r8d, dword [rsi + 8]
dec r8d
and r8d, eax
mov rcx, rsi
mov rdx, rdi
mov r9, r14
call fcn.1403515f0
mov r14, r12
test r12, r12
jne 0x140351b87
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140242430
nop
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x140351bf0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov rdi, rcx
mov rax, qword [0x140418038]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rsi, qword [rdx + r8*8]
mov rax, qword [rsi]
lea rbx, [rsp + 0x40]
mov qword [rbx], rax
lea r13, [rsi + 8]
lea r14, [rsp + 0x28]
lea r15, [rsp + 0x48]
movabs rbp, 0x9e3779b97f4a7c15
mov rcx, qword [rax + 0x28]
mov r12, qword [rax + 0x30]
mov rdx, r14
call fcn.1401d96a0
mov rdx, qword [rsp + 0x28]
mov r8, qword [rsp + 0x30]
mov rcx, r15
call fcn.1401c8380
xor rax, qword [rdi + 0x10]
imul rax, rbp
shr rax, 0x20
mov r8d, dword [rdi + 8]
dec r8d
and r8d, eax
mov rcx, rdi
mov rdx, r14
mov r9, r12
call fcn.1403515f0
mov rcx, rbx
call fcn.1401775d0
mov rax, qword [rsp + 0x40]
cmp rax, r13
jne 0x140351c39
test rsi, rsi
je 0x140351c9d
cmp qword [rdi + 0x28], 0
je 0x140351cbc
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140242430
nop
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rdx, qword [rsi + 8]
mov rcx, rsi
call fcn.1403510d0
mov rcx, rsi
call fcn.140240d14
jmp 0x140351c9d