joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003a93c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14003a9c3
mov rsi, rbx
cmp word [rax], bp
je 0x14003a982
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14003a96c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14003a968
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140038fd4
mov rdi, rax
test rax, rax
je 0x14003a9b0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400226a0
mov rbp, rdi
xor ecx, ecx
call fcn.1400388bc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400469a0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x14038c1a0]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x1400469fe
cmp word [rdx], r12w
jne 0x1400469fe
or byte [rax + r8*8 + 0x38], cl
jmp 0x140046a04
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x140046b5f
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x140046b3a
lea r9, [rcx + 2]
cmp ax, r13w
je 0x140046a3d
mov rcx, r9
jmp 0x140046a60
cmp r9, rdx
jae 0x140046a77
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x140046a21
jmp 0x140046b5f
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140046b34
cmp dword [rsp + 0x80], edi
je 0x140046b34
mov rdx, r14
lea r11, [0x14038c1a0]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x140046b0d
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x140046ae0
mov word [rbx], r12w
jmp 0x140046b5b
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x140046ae9
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x140046b5b
cmp word [rsp + 0x70], r12w
jne 0x140046b1a
cmp rbx, rsi
je 0x140046ada
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.1400468c0
cmp word [rsp + 0x70], r12w
je 0x140046b5f
mov word [rbx], r13w
jmp 0x140046b5b
lea r11, [0x14038c1a0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140046b57
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x140046b5f
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14004ab60
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x1a8]
sub rsp, 0x290
mov rax, qword [0x14036f028]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rdi, rcx
mov qword [rsp + 0x38], rcx
xor r14d, r14d
lea r15, [0x140391280]
mov qword [rsp + 0x38], r15
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rsp + 0x40], 1
lea rsi, [0x140378b40]
cmp qword [0x140378b50], r14
jne 0x14004aca8
call fcn.1400c6590
mov rcx, rax
mov rax, qword [rax]
mov rax, qword [rax + 0x110]
call qword [case.0x1400669c3.0]
mov bl, al
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x70]
call fcn.140022d50
cmp byte [0x140391268], r14b
je 0x14004ac09
test bl, bl
lea edx, [r14 + 0x26]
jne 0x14004ac0e
mov edx, 0x1c
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x14004aca8
mov qword [rsp + 0x48], r14
movdqa xmm0, xmmword [0x1403193c0]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], r14w
cmp byte [0x140391268], r14b
je 0x14004ac57
test bl, bl
lea rdx, str.Microsoft_OneDrive_setuplogs
jne 0x14004ac5e
lea rdx, str.MicrosoftOneDrive_setuplogs
lea rcx, [rsp + 0x48]
call fcn.14000e454
lea r8, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae r8, qword [rsp + 0x48]
xor r9d, r9d
mov edx, 0x104
lea rcx, [rsp + 0x70]
call fcn.14004b0c0
mov ebx, eax
lea rcx, [rsp + 0x48]
call fcn.140007cf8
test ebx, ebx
js 0x14004aca8
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.14000e454
mov qword [rdi], r14
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], r14
cmp qword [reloc.OLEAUT32.dll_VariantInit], 8
cmovae rsi, qword [0x140378b40]
mov r8, qword [0x140378b50]
mov rdx, rsi
mov rcx, rdi
call fcn.14000e5cc
nop
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, rdi
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.1400209c0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14004ce28
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x14036f028]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor edi, edi
mov rbx, rcx
test rcx, rcx
je 0x14004cec6
mov edx, 0x2000
mov rax, rbx
mov ecx, edx
cmp word [rax], di
je 0x14004ce64
add rax, 2
sub rcx, 1
jne 0x14004ce55
sub rdx, rcx
mov rax, rcx
neg rax
sbb r8, r8
and r8, rdx
test rcx, rcx
je 0x14004ceae
mov rcx, qword [0x140391278]
lea r9, [rsp + 0x30]
add r8d, r8d
mov dword [rsp + 0x30], edi
mov rdx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rax, qword [0x140391270]
test rax, rax
je 0x14004ceae
mov rcx, rbx
call qword [case.0x1400669c3.0]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400209c0
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov ecx, 0x80004005
call fcn.140007ac8
int3

Function at 0x140071218
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x14036f028]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call fcn.140022d50
xor r9d, r9d
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor ecx, ecx
lea edx, [r9 + 0x1c]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x1400712a6
cmp qword [0x1403901a8], 8
lea r8, [0x140390190]
mov edx, 0x104
lea rcx, [rsp + 0x30]
cmovae r8, qword [0x140390190]
xor r9d, r9d
call fcn.14004b0c0
lea rdx, [rsp + 0x30]
mov rcx, rdi
mov ebx, eax
call fcn.14000e454
jmp 0x1400712ab
mov ebx, 0x80004005
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400209c0
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret
Function at 0x140071500
Capabilities:
Enumerate files on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x3b8]
sub rsp, 0x4b0
mov rax, qword [0x14036f028]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x250
call fcn.140022d50
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x140071551
mov rcx, qword [rbx]
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14007167e
xor esi, esi
xor edx, edx
lea rcx, [rbp + 0x190]
mov r8d, 0x208
call fcn.140022d50
cmp qword [rbx + 0x18], 8
mov r8, rbx
jb 0x14007158c
mov r8, qword [rbx]
lea rax, [rbp + 0x190]
mov edx, 0x104
sub r8, rax
lea rcx, [rbp + 0x190]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x1400715c5
movzx eax, word [r8 + rcx]
test ax, ax
je 0x1400715c5
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x1400715a2
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], si
je 0x14007165f
lea rcx, [rbp + 0x190]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
xor r9d, r9d
lea r8, [rsp + 0x6c]
mov edx, 0x104
lea rcx, [rbp + 0x190]
call fcn.14004b0c0
test eax, eax
js 0x14007165f
mov qword [rsp + 0x20], rsi
lea rax, [rbp + 0x190]
mov qword [rsp + 0x30], rsi
or r8, 0xffffffffffffffff
mov qword [rsp + 0x38], rsi
inc r8
cmp word [rax + r8*2], si
jne 0x14007161d
lea rdx, [rbp + 0x190]
lea rcx, [rsp + 0x20]
call fcn.14000e4d4
cmp qword [rsp + 0x38], 8
lea rcx, [rsp + 0x20]
cmovae rcx, qword [rsp + 0x20]
xor r8d, r8d
lea edx, [r8 + 2]
call sub.KERNEL32.dll_WerRegisterFile
lea rcx, [rsp + 0x20]
call fcn.140007cf8
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14007156b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.1400209c0
lea r11, [rsp + 0x4b0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14007219c
Capabilities:
Download url
Receive data

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
xor edx, edx
mov rcx, qword [rcx + 0x80]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x1400721d1
mov edi, 0x80004004
mov r8d, 0x277
mov ecx, edi
jmp 0x1400722d8
lea rdi, [rbx + 0x108]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov rcx, qword [rbx + 0x58]
test rcx, rcx
je 0x1400721fe
and qword [rbx + 0x58], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1400669c3.0]
nop
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, str.BITS
lea rax, str.URLMon
cmp byte [rbx + 0x175], 0
cmovne rax, rcx
mov qword [rsp + 0x20], rax
mov r9, rbx
lea r8, str.WebClient__p_:_BeginDownloadAttempt:_using__ls
lea rdx, str.WebClient
mov ecx, dword [rbx + 0x16c]
call fcn.14004cdd0
cmp byte [rbx + 0x175], 0
je 0x140072264
mov rcx, rbx
call fcn.140072320
mov edi, eax
test eax, eax
jns 0x1400722e4
mov r8d, 0x280
jmp 0x1400722d6
cmp byte [rbx + 0x40], 0
je 0x1400722a7
mov r9, rbx
lea r8, str.WebClient__p_:_BeginDownloadAttempt:_using_WinHTTP_instead_of_URLMon
lea rdx, str.WebClient
mov ecx, dword [rbx + 0x16c]
call fcn.14004cdd0
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x90]
call qword [case.0x1400669c3.0]
mov edi, eax
test eax, eax
jns 0x1400722e4
mov r8d, 0x285
jmp 0x1400722d6
call fcn.14005608c
lea rdx, [rbx + 0xb0]
cmp qword [rdx + 0x18], 8
jb 0x1400722bd
mov rdx, qword [rdx]
mov r9, rbx
xor r8d, r8d
xor ecx, ecx
call sub.urlmon.dll_URLOpenStreamW
mov edi, eax
test eax, eax
jns 0x1400722e4
mov r8d, 0x289
mov ecx, eax
lea rdx, str.D:dbs_shodct0828_230411cmddclientonedriveSetupStandalonewebclientwebclient.cpp
call fcn.14004a34c
mov r9, rbx
lea r8, str.WebClient__p_:_Leaving_BeginDownloadAttempt__
lea rdx, str.WebClient
mov ecx, edi
call fcn.14004a7b4
test edi, edi
jns 0x140072312
mov rcx, qword [rbx]
mov rax, qword [rcx + 0x78]
mov edx, edi
mov rcx, rbx
call qword [case.0x1400669c3.0]
mov eax, edi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140072ca0
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov rax, qword [0x14036f028]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor edi, edi
cmp qword [rcx + 0xe0], rdi
je 0x140072dea
lea rbx, [rcx + 0xd0]
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140072cec
mov rcx, qword [rbx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140072dd6
xorps xmm0, xmm0
movups xmmword [rbp + 7], xmm0
lea rsi, vtable.ClassPtr_struct_IFSManager_.0
mov qword [rbp + 7], rsi
mov qword [rbp + 0xf], rdi
lea rcx, [rbp + 0xf]
call fcn.14004a9bc
test eax, eax
js 0x140072db7
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140072d2e
mov rdx, qword [rbx]
mov qword [rbp - 0x19], rdi
mov qword [rbp - 9], rdi
mov qword [rbp - 1], rdi
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], di
jne 0x140072d3e
lea rcx, [rbp - 0x19]
call fcn.14000e4d4
nop
mov qword [rbp + 0x17], rdi
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x27], xmm0
lea rdx, [rbp - 0x19]
cmp qword [rbp - 1], 8
cmovae rdx, qword [rbp - 0x19]
mov r8, qword [rbp - 9]
lea rcx, [rbp + 0x17]
call fcn.14000e5cc
mov qword [rbp + 0x37], 0xffffffff80000001
mov byte [rbp + 0x3f], dil
lea rcx, [rbp - 0x19]
call fcn.140007cf8
mov rcx, qword [rbp + 0xf]
test rcx, rcx
jne 0x140072d98
int3
mov rax, qword [rcx]
lea rdx, [rbp + 0x17]
mov rax, qword [rax + 0x80]
call qword [case.0x1400669c3.0]
nop
lea rcx, [rbp + 0x17]
call fcn.140007cf8
nop
mov qword [rbp + 7], rsi
mov rcx, qword [rbp + 0xf]
mov qword [rbp + 0xf], rdi
test rcx, rcx
je 0x140072dd6
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1400669c3.0]
nop
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x140072de3
mov rax, qword [rbx]
mov qword [rbx + 0x10], rdi
mov word [rax], di
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1400209c0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x140073f84
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, r8
mov rsi, rcx
test rdx, rdx
jne 0x140073fbe
mov r8d, 0x155
mov ecx, 0x80004003
lea rdx, str.D:dbs_shodct0828_230411cmddclientonedriveSetupStandalonewebclientwebclient.cpp
mov edi, ecx
call fcn.14004a34c
jmp 0x14007401c
test rbp, rbp
jne 0x140073fcb
mov r8d, 0x156
jmp 0x140073fa9
call fcn.140073d38
mov edi, eax
test eax, eax
js 0x14007401c
cmp qword [rsi + 0xe0], 0
je 0x14007400d
lea rbx, [rsi + 0xd0]
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x140073ff4
mov rcx, qword [rbx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14007400d
cmp qword [rbx + 0x18], 8
jb 0x140074008
mov rbx, qword [rbx]
mov rdx, rbx
jmp 0x140074014
lea rdx, [0x140317330]
mov rcx, rbp
call fcn.14000e454
mov r9, rsi
lea r8, str.WebClient__p_:_Leaving_GetDownloadedData__
lea rdx, str.WebClient
mov ecx, edi
call fcn.14004a7b4
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400740a8
Capabilities:
Get common file path

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x450
mov rax, qword [0x14036f028]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rsi, rcx
mov ebx, 0x208
mov r8d, ebx
lea rcx, [r11 - 0x228]
xor edx, edx
call fcn.140022d50
mov r8d, ebx
lea rcx, [rsp + 0x20]
xor edx, edx
call fcn.140022d50
mov edi, 0x104
lea rdx, [rsp + 0x230]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
xor ebp, ebp
test eax, eax
jne 0x140074149
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x1400741d7
mov r8d, 0x541
lea rdx, str.D:dbs_shodct0828_230411cmddclientonedriveSetupStandalonewebclientwebclient.cpp
mov ecx, ebx
call fcn.14004a34c
jmp 0x1400741d7
lea r9, [rsp + 0x20]
xor r8d, r8d
lea rdx, [0x1402c6178]
lea rcx, [rsp + 0x230]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x14007418a
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x1400741d7
mov r8d, 0x542
jmp 0x140074136
lea rax, [rsp + 0x20]
cmp word [rax], bp
je 0x14007419e
add rax, 2
sub rdi, 1
jne 0x14007418f
mov rax, rdi
neg rax
sbb ebx, ebx
not ebx
and ebx, 0x80070057
test rdi, rdi
jne 0x1400741be
mov r8d, 0x543
jmp 0x140074136
mov rcx, rsi
call fcn.140072ca0
lea rcx, [rsi + 0xd0]
lea rdx, [rsp + 0x20]
call fcn.14000e454
mov eax, ebx
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.1400209c0
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14007eba4
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rdx, 0xcbf29ce484222325
xor r8d, r8d
movzx eax, byte [r8 + rcx]
movabs r9, 0x100000001b3
xor rdx, rax
inc r8
imul rdx, r9
cmp r8, 4
jb 0x14007ebb1
mov rax, rdx
ret

Function at 0x140085c58
Capabilities:
Encode data using xor

Disassembly:
mov r11d, 1
lea rax, vtable.._AV___Ref_count_obj2_V__mersenne_twister_engine__K_0EA__0BDI__0JM__0BP__0_EKPNJAKFFGJJOGBH__0BN__0FFFFFFFFFFFFFFFF__0BB__0HBNGHPPPONKGAAAA__0CF__0_IBBCAAAAAAAAA__0CL__0FIFBPECNEMJFHPCN__std___std__.0
mov qword [rcx], rax
lea r9, [rcx + 0x20]
mov dword [rcx + 8], r11d
movabs rax, 0x5555555555555555
mov dword [rcx + 0xc], r11d
mov r10d, VarR8Pow
mov r8d, dword [rdx]
mov edx, r11d
mov qword [rcx + 0x1398], rax
mov qword [rcx + 0x18], r8
mov rax, r8
shr rax, 0x3e
xor rax, r8
movabs r8, 0x5851f42d4c957f2d
imul r8, rax
add r8, rdx
add rdx, r11
mov qword [r9], r8
lea r9, [r9 + 8]
cmp rdx, r10
jb 0x140085c95
mov dword [rcx + 0x10], r10d
mov rax, rcx
ret

Function at 0x1400a91dc
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rdx, 0xcbf29ce484222325
xor r8d, r8d
movzx eax, byte [r8 + rcx]
movabs r9, 0x100000001b3
xor rdx, rax
inc r8
imul rdx, r9
cmp r8, 2
jb 0x1400a91e9
mov rax, rdx
ret

Function at 0x1400bb55c
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.1400bf1bc
mov cl, al
mov rdx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400bb57c

Function at 0x1400bb57c
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x14036f028]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rsi, rdx
mov bpl, cl
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
xor edi, edi
call fcn.140022d50
mov al, bpl
lea rdx, [rsp + 0x20]
neg al
sbb r8d, r8d
xor r9d, r9d
and r8d, 0xa
xor ecx, ecx
add r8d, 0x1c
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea rdx, [0x140317330]
mov rcx, rsi
mov ebx, eax
call fcn.14000e454
test ebx, ebx
jne 0x1400bb5f3
mov edi, 0x80004005
jmp 0x1400bb640
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.14000e454
mov r8d, 1
lea rdx, [0x1403172c8]
mov rcx, rsi
call fcn.14000dfc0
test bpl, bpl
lea rax, [0x1402c0bd8]
lea rdx, str.MicrosoftOneDrive
cmovne rdx, rax
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], di
jne 0x1400bb62e
mov rcx, rsi
call fcn.14000dfc0
mov eax, edi
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400209c0
mov rbx, qword [rsp + 0x270]
add rsp, 0x240
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400bbca0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x58
mov rax, qword [0x14036f028]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rsi, qword [rsp + 0xa0]
mov rdi, r8
mov rbp, qword [rsp + 0xa8]
test rsi, rsi
jne 0x1400bbcda
mov eax, 0x80070057
jmp 0x1400bbd72
movzx r9d, r9b
shl r9d, 8
add r9d, 0x20019
cmp qword [rdx + 0x18], 8
jb 0x1400bbcf3
mov rdx, qword [rdx]
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400bbd70
cmp qword [rdi + 0x18], 8
jb 0x1400bbd22
mov rdi, qword [rdi]
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x38]
mov qword [rsp + 0x28], rbp
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400bbd65
mov eax, dword [rsp + 0x38]
sub eax, 3
neg eax
sbb ebx, ebx
and ebx, 0x8007065d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400209c0
add rsp, 0x58
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1400bbd88
Capabilities:
Query or enumerate registry value

Disassembly:
movzx r9d, r9b
add r9d, r9d
jmp fcn.1400bbd94

Function at 0x1400bbe98
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14036f028]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rsi, qword [rsp + 0x90]
mov rdi, r8
test rsi, rsi
jne 0x1400bbec9
mov eax, 0x80070057
jmp 0x1400bbf7a
movzx r9d, r9b
shl r9d, 8
add r9d, 0x20019
cmp qword [rdx + 0x18], 8
jb 0x1400bbee2
mov rdx, qword [rdx]
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ebx, ax
or ebx, 0x80070000
mov dword [rsp + 0x38], 8
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400bbf78
cmp qword [rdi + 0x18], 8
jb 0x1400bbf19
mov rdi, qword [rdi]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x3c]
lea rax, [rsp + 0x40]
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400bbf6d
cmp dword [rsp + 0x3c], 0xb
jne 0x1400bbf68
mov rax, qword [rsp + 0x40]
xor ebx, ebx
mov qword [rsi], rax
jmp 0x1400bbf6d
mov ebx, 0x8007065d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400209c0
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400c1970
Capabilities:
Set registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x14036f028]
xor rax, rsp
mov qword [rsp + 0x58], rax
neg byte [rsp + 0xa8]
mov rsi, r9
mov rbx, r8
sbb eax, eax
and eax, 0xfffe00fc
add eax, 0x20006
cmp qword [rdx + 0x18], 8
jb 0x1400c19aa
mov rdx, qword [rdx]
and qword [rsp + 0x40], 0
lea r8, [rsp + 0x50]
mov qword [rsp + 0x38], r8
xor r9d, r9d
and qword [rsp + 0x30], 0
xor r8d, r8d
mov dword [rsp + 0x28], eax
and dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
test eax, eax
jne 0x1400c1a24
cmp qword [rbx + 0x10], 0
jne 0x1400c19e6
xor ebx, ebx
jmp 0x1400c19f0
cmp qword [rbx + 0x18], 8
jb 0x1400c19f0
mov rbx, qword [rbx]
mov eax, dword [rsp + 0xa0]
mov r9d, 3
mov rcx, qword [rsp + 0x50]
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov rdx, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, di
or eax, 0x80070000
test edi, edi
cmovle eax, edi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400209c0
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret

Function at 0x1400c1c60
Capabilities:
Set registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x14036f028]
xor rax, rsp
mov qword [rsp + 0x58], rax
neg byte [rsp + 0xa0]
mov rsi, r9
mov rbx, r8
sbb eax, eax
and eax, 0xfffe00fc
add eax, 0x20006
cmp qword [rdx + 0x18], 8
jb 0x1400c1c9a
mov rdx, qword [rdx]
and qword [rsp + 0x40], 0
lea r8, [rsp + 0x50]
mov qword [rsp + 0x38], r8
xor r9d, r9d
and qword [rsp + 0x30], 0
xor r8d, r8d
mov dword [rsp + 0x28], eax
and dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
test eax, eax
jne 0x1400c1d11
cmp qword [rbx + 0x10], 0
jne 0x1400c1cd6
xor ebx, ebx
jmp 0x1400c1ce0
cmp qword [rbx + 0x18], 8
jb 0x1400c1ce0
mov rbx, qword [rbx]
mov rcx, qword [rsp + 0x50]
mov r9d, VariantTimeToDosDateTime
mov dword [rsp + 0x28], 8
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, di
or eax, 0x80070000
test edi, edi
cmovle eax, edi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400209c0
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret