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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x80
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
mov edx, dword [rsp + 0xe0]
mov rax, qword [0x140448038]
xor rax, rsp
mov qword [rsp + 0x78], 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 0x14033036b
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 0x140330387
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 0x1403303b1
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 0x1403303d2
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 0x1403303f4
mov r10, qword [r9 + r11*8]
shr r10, cl
add r10d, r10d
and r10d, 2
or eax, r10d
test edx, edx
je 0x14033041a
dec edx
mov r10, rdx
shr r10, 6
xor ecx, ecx
cmp r10, r8
jae 0x140330418
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.140255cd0
mov r13, r15
not r13
mov r8, r12
xor r8, r15
dec r8
and r8, r13
sar r8, 0x3f
mov qword [rsp + 0x20], rsi
mov rcx, rdi
mov rdx, rsi
mov r9, rbx
call fcn.14032d1f0
inc r12
add rbx, 0xd8
cmp r12, 0x11
jne 0x14033045c
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x70], rax
movaps xmm0, xmmword [0x1403d47c0]
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
add rsi, 0x48
mov eax, dword [rdi + 0x40]
test eax, eax
jle 0x140330594
xor ecx, ecx
xor edx, edx
or rdx, qword [rsi + rcx*8]
inc rcx
cmp rax, rcx
jne 0x1403304cc
test rdx, rdx
sete dl
test rax, rax
je 0x140330573
movsxd rcx, eax
mov rax, qword [rdi + 0x38]
xor r8d, r8d
lea r9, [rsp + 0x30]
sub r10, r10
jmp 0x140330500
mov r10, qword [rax + r8*8]
sbb r10, qword [rsi + r8*8]
mov qword [r9 + r8*8], r10
lea r8, [r8 + 1]
dec rcx
jne 0x140330500
sbb r10, r10
movsxd rax, dword [rdi + 0x40]
mov ecx, eax
test rax, rax
jle 0x140330541
xor r8d, r8d
test dl, dl
jne 0x140330531
mov r9, qword [rsp + r8*8 + 0x30]
jmp 0x140330534
xor r9d, r9d
mov qword [rsp + r8*8 + 0x30], r9
inc r8
cmp rcx, r8
jne 0x140330526
test rcx, rcx
je 0x140330573
and r14d, 1
mov rcx, r14
neg rcx
dec r14
xor edx, edx
mov r8, qword [rsp + rdx*8 + 0x30]
and r8, rcx
mov r9, qword [rsi + rdx*8]
and r9, r14
or r9, r8
mov qword [rsi + rdx*8], r9
inc rdx
cmp rax, rdx
jne 0x140330555
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140253b80
nop
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov dl, 1
jmp 0x1403304de
Function at 0x1403501c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp edx, 0x33ff
jg 0x1403501e2
add edx, edx
movzx r8d, dx
movzx edx, word [rcx]
cmp r8d, edx
jbe 0x140350240
and edx, 1
or edx, 2
lea rcx, [rcx + rdx*2]
jmp 0x1403501ce
mov r8d, edx
shr r8d, 9
add r8d, 0x3400
shl edx, 6
and r8d, 0xfffe
mov eax, 0xffffffff
movzx r9d, word [rcx]
cmp r8d, r9d
jbe 0x140350219
and r9d, 1
or r9, 2
mov r10, r9
lea rcx, [rcx + r10*2]
jmp 0x1403501ff
mov r10d, r9d
and r10d, 0x7ffe
cmp r8d, r10d
jne 0x14035023f
movzx r10d, word [rcx + 2]
cmp r10w, dx
jae 0x14035026c
mov r10d, 3
test r9w, r9w
jns 0x140350213
ret
mov r9d, edx
and r9d, 0x7ffe
mov eax, 0xffffffff
cmp r8d, r9d
jne 0x14035023f
movzx eax, word [rcx + 2]
test dl, 1
je 0x14035023f
shl eax, 0x10
mov r10d, eax
movzx eax, word [rcx + 4]
or eax, r10d
jmp 0x14035023f
xor edx, r10d
test edx, 0xffc0
jne 0x14035023f
and r10d, 0x3f
shl r10d, 0x10
jmp 0x140350263
Function at 0x140353f30
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 [0x140448038]
xor rax, rsp
mov qword [rsp + 0x178], rax
mov qword [rcx + 8], rdx
mov eax, dword [0x140468fe0]
mov ecx, dword [0x14045a84c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1403541c7
mov rax, qword [0x140468fd8]
test rax, rax
jne 0x140354018
mov byte [rsi + 0x81], 0
movaps xmm0, xmmword [0x1403d47c0]
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.140354210
test al, al
jne 0x1403540b5
mov ecx, 2
call fcn.140206de0
test al, al
jne 0x1403540cf
xor esi, esi
mov rcx, qword [rsp + 0x178]
xor rcx, rsp
call fcn.140253b80
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.0x1402ceef0.0]
test eax, eax
jne 0x140354092
mov ecx, 2
call fcn.140206de0
test al, al
je 0x140353f8b
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.1402d7130
lea rcx, [rsp + 0x40]
lea rdx, [0x1404266de]
mov r8d, reloc.WS2_32.dll_ntohl
call fcn.140294040
mov rcx, rbx
call fcn.1402d71b0
jmp 0x140353f8b
cmp dword [rsp + 0x174], 0
setne byte [rsi + 0x81]
je 0x140353f92
mov byte [rsi + 0x80], 0
mov dl, 1
jmp 0x140353fc7
cmp byte [rsi + 0x80], 0
mov rdx, qword [rsi + 0x28]
mov rcx, rdi
mov r8, rsi
jne 0x140354113
call fcn.140354ac0
jmp 0x140354118
lea rdx, str....._third_partycrashpadcrashpadutilwinprocess_info.cc
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0x21e
mov r9d, 2
call fcn.140110ed0
lea rcx, [rsp + 0x40]
lea rdx, str.GetProcessBasicInformation_failed
mov r8d, 0x21
call fcn.140294040
mov rcx, rsi
call fcn.1401113c0
jmp 0x140353ff9
call fcn.140354440
test al, al
je 0x14035417e
mov dl, byte [rsi + 0x80]
mov rcx, rdi
mov r8, rsi
call fcn.1401744d0
mov sil, 1
test al, al
jne 0x140353ffb
mov ecx, 2
call fcn.140206de0
test al, al
je 0x140353ff9
lea rdx, str....._third_partycrashpadcrashpadutilwinprocess_info.cc
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0x22c
mov r9d, 2
call fcn.140110ed0
lea rcx, [rsp + 0x40]
lea rdx, str.ReadMemoryInfo_failed
mov r8d, 0x15
jmp 0x140354101
mov ecx, 2
call fcn.140206de0
test al, al
je 0x140353ff9
lea rdx, str....._third_partycrashpadcrashpadutilwinprocess_info.cc
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0x227
mov r9d, 2
call fcn.140110ed0
lea rcx, [rsp + 0x40]
lea rdx, str.ReadProcessData_failed
mov r8d, 0x16
jmp 0x140354101
lea rcx, [0x140468fe0]
call fcn.1402524e0
cmp dword [0x140468fe0], 0xffffffff
jne 0x140353f7b
lea rcx, [0x1403dcfc8]
lea rdx, str.::IsWow64Process
xor r8d, r8d
call fcn.1401759c0
mov qword [0x140468fd8], rax
lea rcx, [0x140468fe0]
call fcn.140252578
jmp 0x140353f7b
Function at 0x1403566c0
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 [0x140448038]
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 0x1403567be
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r15, [rsp + 0x30]
mov qword [r15 + 0x10], rax
movaps xmm0, xmmword [0x1403d47c0]
movaps xmmword [r15], xmm0
mov edx, dword [rsp + 0x54]
shr rdx, 1
mov rcx, r15
call fcn.1401d9700
mov r9, qword [r15]
cmp r9, qword [r15 + 8]
je 0x14035682e
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 0x1403567dc
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 0x1403567be
mov qword [rsp + 0x38], rcx
call fcn.1402523c4
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140253b80
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 0x140356821
sub rax, rcx
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov rdx, rax
call fcn.1400be6b0
mov rdx, qword [rdi]
mov r8, qword [rdi + 8]
mov rcx, rsi
call fcn.140356860
xor ebp, ebp
jmp 0x1403567aa
jbe 0x140356815
lea r8, [rdx + rax*2]
mov qword [rsp + 0x38], r8
jmp 0x140356815
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, 0x237
call fcn.1402984b0
int3

Function at 0x140356a20
Capabilities:
Read http header

Disassembly:
push rsi
sub rsp, 0x40
mov rax, qword [0x140448038]
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 0x140356a7b
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.140253b80
mov eax, esi
add rsp, 0x40
pop rsi
ret
Function at 0x14035b800
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 [0x140448038]
xor rax, rsp
mov qword [rsp + 0x198], rax
cmp byte [rcx + 0x17], 0
jns 0x14035b82a
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14035b84c
mov edi, eax
test bl, bl
jne 0x14035b844
mov eax, edi
and eax, 0x400
jne 0x14035b85a
and edi, 0x10
shr edi, 4
jmp 0x14035b85c
mov ecx, 2
call fcn.140206de0
test al, al
jne 0x14035b879
xor edi, edi
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.140253b80
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.1402d7130
lea rcx, [rsp + 0x68]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.140294040
mov rdi, rax
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
lea rdx, [rsp + 0x30]
mov qword [rdx], rcx
cmovs rax, qword [rsi + 8]
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x40]
mov rcx, rsi
call fcn.1401fd710
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x14035b8f8
mov r8, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rcx, rdi
mov rdx, rsi
call fcn.140294040
cmp byte [rsp + 0x57], 0
jns 0x14035b914
mov rcx, qword [rsp + 0x40]
call fcn.1402523c4
lea rcx, [rsp + 0x58]
call fcn.1402d71b0
jmp 0x14035b85a
Function at 0x14035b930
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x1b0
mov ebx, r8d
mov rsi, rcx
mov rax, qword [0x140448038]
xor rax, rsp
mov qword [rsp + 0x1a8], rax
cmp byte [rcx + 0x17], 0
jns 0x14035b95b
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dil, 1
test eax, eax
je 0x14035b987
mov rcx, qword [rsp + 0x1a8]
xor rcx, rsp
call fcn.140253b80
mov eax, edi
add rsp, 0x1b0
pop rbx
pop rdi
pop rsi
ret
test bl, bl
je 0x14035b99c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14035ba67
mov ecx, 2
call fcn.140206de0
test al, al
jne 0x14035b9ae
xor edi, edi
jmp 0x14035b96a
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.1402d7130
lea rcx, [rsp + 0x50]
lea rdx, str.CreateDirectory
mov r8d, 0x10
call fcn.140294040
mov rdi, rax
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
lea rdx, [rsp + 0x30]
mov qword [rdx], rcx
cmovs rax, qword [rsi + 8]
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x190]
mov rcx, rsi
call fcn.1401fd710
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x14035ba36
mov r8, qword [rsp + 0x198]
mov rsi, qword [rsp + 0x190]
mov rcx, rdi
mov rdx, rsi
call fcn.140294040
cmp byte [rsp + 0x1a7], 0
jns 0x14035ba58
mov rcx, qword [rsp + 0x190]
call fcn.1402523c4
lea rcx, [rsp + 0x40]
call fcn.1402d71b0
jmp 0x14035b9aa
mov dil, 1
mov rcx, rsi
mov dl, 1
call fcn.14035b800
test al, al
jne 0x14035b96a
mov ecx, 2
call fcn.140206de0
test al, al
je 0x14035b9aa
lea rdx, str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
lea rcx, [rsp + 0x40]
mov r8d, 0x5d
mov r9d, 2
call fcn.140110ed0
lea rdi, [rsp + 0x50]
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
lea rdx, [rsp + 0x180]
mov qword [rdx], rcx
cmovs rax, qword [rsi + 8]
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x190]
mov rcx, rsi
call fcn.1401fd710
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x14035bafb
mov r8, qword [rsp + 0x198]
mov rsi, qword [rsp + 0x190]
mov rcx, rdi
mov rdx, rsi
call fcn.140294040
lea rdx, str._not_a_directory
mov r8d, 0x10
mov rcx, rax
call fcn.140294040
cmp byte [rsp + 0x1a7], 0
jns 0x14035bb32
mov rcx, qword [rsp + 0x190]
call fcn.1402523c4
lea rcx, [rsp + 0x40]
call fcn.1401113c0
jmp 0x14035b9aa
Function at 0x14035bb50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x198
mov rsi, rcx
mov rax, qword [0x140448038]
xor rax, rsp
mov qword [rsp + 0x190], rax
cmp byte [rcx + 0x17], 0
jns 0x14035bb77
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14035bba7
test eax, 0x410
sete sil
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140253b80
mov eax, esi
add rsp, 0x198
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.140206de0
test al, al
jne 0x14035bbb9
xor esi, esi
jmp 0x14035bb8b
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.1402d7130
lea rcx, [rsp + 0x60]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.140294040
mov rdi, rax
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
lea rdx, [rsp + 0x28]
mov qword [rdx], rcx
cmovs rax, qword [rsi + 8]
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x38]
mov rcx, rsi
call fcn.1401fd710
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x14035bc38
mov r8, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, rsi
call fcn.140294040
cmp byte [rsp + 0x4f], 0
jns 0x14035bc54
mov rcx, qword [rsp + 0x38]
call fcn.1402523c4
lea rcx, [rsp + 0x50]
call fcn.1402d71b0
jmp 0x14035bbb5

Function at 0x14035bc70
Capabilities:
Check if file exists
Delete directory
Delete file

Disassembly:
push rsi
push rdi
sub rsp, 0x198
mov rsi, rcx
mov rax, qword [0x140448038]
xor rax, rsp
mov qword [rsp + 0x190], rax
cmp byte [rcx + 0x17], 0
jns 0x14035bc97
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14035bcae
and eax, 0x410
cmp eax, 0x410
je 0x14035bcf5
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14035bcba
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dil, 1
test eax, eax
je 0x14035bce3
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140253b80
mov eax, edi
add rsp, 0x198
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.140206de0
test al, al
jne 0x14035bd16
xor edi, edi
jmp 0x14035bcc7
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140253b80
mov rcx, rsi
add rsp, 0x198
pop rdi
pop rsi
jmp fcn.14035bdc0
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.1402d7130
lea rcx, [rsp + 0x60]
lea rdx, str.DeleteFile
mov r8d, ntohl
call fcn.140294040
mov rdi, rax
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
lea rdx, [rsp + 0x28]
mov qword [rdx], rcx
cmovs rax, qword [rsi + 8]
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x38]
mov rcx, rsi
call fcn.1401fd710
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x14035bd95
mov r8, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, rsi
call fcn.140294040
cmp byte [rsp + 0x4f], 0
jns 0x14035bdb1
mov rcx, qword [rsp + 0x38]
call fcn.1402523c4
lea rcx, [rsp + 0x50]
call fcn.1402d71b0
jmp 0x14035bcf1
Function at 0x14035bdc0
Capabilities:
Delete directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x1a0
mov rdi, rcx
mov rax, qword [0x140448038]
xor rax, rsp
mov qword [rsp + 0x198], rax
cmp byte [rcx + 0x17], 0
jns 0x14035bde8
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
test eax, eax
jne 0x14035be02
mov ecx, 2
call fcn.140206de0
test al, al
jne 0x14035be24
test esi, esi
setne bl
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.140253b80
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.1402d7130
lea rcx, [rsp + 0x68]
lea rdx, str.RemoveDirectory
mov r8d, 0x10
call fcn.140294040
mov rbx, rax
movzx eax, byte [rdi + 0x17]
test al, al
mov rcx, qword [rdi]
cmovns rcx, rdi
lea rdx, [rsp + 0x30]
mov qword [rdx], rcx
cmovs rax, qword [rdi + 8]
mov qword [rdx + 8], rax
lea rdi, [rsp + 0x40]
mov rcx, rdi
call fcn.1401fd710
movzx r8d, byte [rdi + 0x17]
test r8b, r8b
jns 0x14035bea3
mov r8, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x40]
mov rcx, rbx
mov rdx, rdi
call fcn.140294040
cmp byte [rsp + 0x57], 0
jns 0x14035bebf
mov rcx, qword [rsp + 0x40]
call fcn.1402523c4
lea rcx, [rsp + 0x58]
call fcn.1402d71b0
jmp 0x14035be02

Function at 0x14035e700
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rbx, rdx
mov rsi, rcx
mov rax, qword [rcx + 8]
cmp rax, qword [rcx + 0x10]
je 0x14035e73e
test rax, rax
je 0x14035e807
mov rcx, qword [rbx]
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 r15, rax
sar r15, 3
lea rcx, [r15 + 1]
mov rdx, rcx
shr rdx, 0x3d
jne 0x14035e833
movabs rdx, 0x1fffffffffffffff
lea rdi, [rsi + 0x18]
mov r14, rax
shr r14, 2
cmp r14, rcx
cmovbe r14, rcx
movabs rcx, 0x7ffffffffffffff8
cmp rax, rcx
cmovae r14, rdx
test r14, r14
jne 0x14035e7fa
xor eax, eax
shl r15, 3
add r15, rax
je 0x14035e807
lea rax, [rax + r14*8]
mov rcx, qword [rbx]
mov qword [r15], rcx
lea rcx, [r15 + 8]
mov rdx, qword [rsi]
mov r8, qword [rsi + 8]
cmp r8, rdx
je 0x14035e7c8
mov r9, qword [r8 - 8]
add r8, 0xfffffffffffffff8
mov qword [r15 - 8], r9
add r15, 0xfffffffffffffff8
cmp r8, rdx
jne 0x14035e7b0
mov rdx, qword [rsi]
mov qword [rsi], r15
mov qword [rsi + 8], rcx
mov r8, qword [rsi + 0x10]
mov qword [rsi + 0x10], rax
test rdx, rdx
je 0x14035e732
sub r8, rdx
sar r8, 3
mov rcx, rdi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.14035ed70
mov rcx, rdi
mov rdx, r14
call fcn.14035f2f0
jmp 0x14035e78d
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, 0x25
call fcn.1402984b0
mov rcx, rsi
call fcn.140293fe0
int3
Function at 0x140363f30
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x140363f6c
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 0x140363f76
add rdi, rbx
sub rsi, rbx
jne 0x140363f4a
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.14026cb40
int3

Function at 0x140364030
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.140255cd0
mov dword [rdi + 0x18], 0x238
cmp byte [rdi + 0x10], 0
je 0x140364072
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 0x140364066

Function at 0x140372370
Capabilities:
Read file via mapping

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
cmp dword [r8], 0
jle 0x14037238b
xor eax, eax
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
call fcn.1401737f0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x10000080
mov dword [rsp + 0x20], 3
mov rcx, rbx
mov edx, 0x80000000
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
je 0x140372439
mov r14, rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rax
xor edx, edx
mov r8d, 2
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rbx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x140372439
mov qword [rsp + 0x20], 0
mov rcx, rbx
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rdi + 8], rax
test rax, rax
je 0x140372464
mov qword [rdi + 0x28], rbx
mov al, 1
jmp 0x140372381
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
cmp ecx, 0x8007000e
jne 0x14037237f
mov dword [rsi], 7
jmp 0x14037237f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14037237f

Function at 0x140378e80
Capabilities:
Write 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 [0x140448038]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
add rsi, rdi
xor r15d, r15d
lea r14, [rsp + 0x2c]
mov r12, qword [sym.imp.KERNEL32.dll_WriteFile]
cmp rdi, rsi
jae 0x140378f08
mov dword [rsp + 0x2c], 0
mov r8d, esi
sub r8d, edi
mov qword [rsp + 0x20], r15
mov rcx, rbx
mov rdx, rdi
mov r9, r14
call r12
test eax, eax
sete dl
mov ecx, dword [rsp + 0x2c]
test rcx, rcx
sete al
or al, dl
mov edx, 0
jne 0x140378f01
mov rdx, rcx
add rdi, rdx
cmp al, 1
jne 0x140378ec2
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140253b80
nop
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140385dc0
Capabilities:
Parse pe header

Disassembly:
cmp rdx, 0x40
jb 0x140385e0e
cmp byte [rcx], 0x4d
jne 0x140385e0e
cmp byte [rcx + 1], 0x5a
jne 0x140385e0e
mov r9d, dword [rcx + 0x3c]
mov r10, rdx
sub r10, r9
xor eax, eax
cmp r10, 0x18
jb 0x140385e10
cmp r9, rdx
jae 0x140385e10
cmp r9d, 0x40
jb 0x140385e10
mov r10d, r9d
and r10d, 7
jne 0x140385e10
cmp byte [rcx + r9], 0x50
jne 0x140385e0e
cmp byte [rcx + r9 + 1], 0x45
jne 0x140385e0e
cmp byte [rcx + r9 + 2], 0
je 0x140385e11
xor eax, eax
ret
cmp byte [rcx + r9 + 3], 0
jne 0x140385e0e
add r9, 0x18
xor eax, eax
sub rdx, r9
jbe 0x140385e10
cmp rdx, 2
jb 0x140385e10
cmp word [rcx + r9], r8w
sete al
jmp 0x140385e10