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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x90
mov rbp, rdx
mov rsi, rcx
mov rbx, qword [rdx + 8]
mov rdx, rcx
cmp qword [rcx + 0x18], 0x10
jb 0x18001c04c
mov rdx, qword [rcx]
movabs r9, 0xcbf29ce484222325
mov r8, qword [rcx + 0x10]
xor r14d, r14d
mov ecx, r14d
test r8, r8
je 0x18001c083
movabs r10, 0x100000001b3
nop
movzx eax, byte [rcx + rdx]
xor r9, rax
imul r9, r10
inc rcx
cmp rcx, r8
jb 0x18001c070
mov r8, rsi
lea rdx, [rsp + 0x68]
mov rcx, rbp
call fcn.180019510
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x18001c0ac
cmove rcx, rbx
cmp rcx, rbx
je 0x18001c0ac
xor al, al
jmp 0x18001c25c
mov ecx, 0xf8
call fcn.180032af8
mov rdi, rax
mov qword [rsp + 0x20], rax
xor edx, edx
mov r8d, 0xf8
mov rcx, rax
call fcn.180051b50
lea rax, vtable.el::base::threading::ThreadSafe.0
mov qword [rdi], rax
lea rcx, [rdi + 8]
mov edx, 0x102
call fcn.180031948
mov byte [rdi + 0x58], 1
lea rax, vtable.el::LogDispatchCallback.0
mov qword [rdi], rax
lea rbx, [rdi + 0x60]
mov qword [rsp + 0x30], rbx
mov dword [rbx], r14d
mov qword [rbx + 8], r14
mov qword [rbx + 0x10], r14
mov ecx, 0x38
call fcn.180032af8
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rbx + 8], rax
lea rcx, [rbx + 0x18]
mov qword [rcx], r14
mov qword [rcx + 8], r14
mov qword [rcx + 0x10], r14
mov qword [rbx + 0x30], 7
mov qword [rbx + 0x38], 8
mov dword [rbx], 0x3f800000
mov r8, qword [rbx + 8]
mov edx, 0x10
call fcn.180016860
nop
lea rcx, [rdi + 0xa0]
mov edx, 0x102
call fcn.180031948
nop
lea rax, vtable.el::base::DefaultLogDispatchCallback.0
mov qword [rdi], rax
mov qword [rsp + 0x30], rdi
mov ecx, 0x18
call fcn.180032af8
mov rbx, rax
mov qword [rsp + 0x20], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rax, vtable.std::_Ref_count_class_el::base::DefaultLogDispatchCallback_.0
mov qword [rbx], rax
mov qword [rbx + 0x10], rdi
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x28], rbx
mov rdx, rsi
lea rcx, [rsp + 0x38]
call fcn.1800137c0
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], rbx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x78]
mov rcx, rbp
call fcn.18001dd80
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x18001c220
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x18001c220
mov rbx, qword [rsp + 0x60]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x18001c220
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x18001c25a
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001c254
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18001c274
call fcn.180032af0
nop
mov al, 1
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.180056698
nop
int3
Function at 0x18001ce40
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
sub rsp, 0x28
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x18001cffe
lea rax, [rdx - 1]
mov qword [rsp + 0x50], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x20], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.180016860
mov rcx, qword [rsi + 8]
lea rax, [rdi - 1]
mov qword [rsi + 0x30], rax
mov qword [rsi + 0x38], rdi
mov rcx, qword [rcx]
mov rdx, rcx
cmp rcx, rbx
je 0x18001cfc7
mov qword [rsp + 0x58], rbp
movabs rdi, 0x100000001b3
movabs rbp, 0xcbf29ce484222325
mov r10d, dword [rcx + 0x10]
mov r11, qword [rsi + 0x30]
mov eax, r10d
mov rdx, qword [rdx]
shr eax, 8
movzx r8d, al
mov eax, r10d
shr eax, 0x10
movzx r9d, r10b
xor r9, rbp
imul r9, rdi
xor r9, r8
movzx r8d, al
imul r9, rdi
mov eax, r10d
xor r9, r8
shr rax, 0x18
imul r9, rdi
xor r9, rax
imul r9, rdi
and r11, r9
shl r11, 4
add r11, qword [rsi + 0x18]
mov r9, qword [r11]
cmp r9, rbx
jne 0x18001cf36
mov qword [r11], rcx
mov qword [r11 + 8], rcx
jmp 0x18001cfb6
mov rax, qword [r11 + 8]
cmp r10d, dword [rax + 0x10]
jne 0x18001cf6f
mov r10, qword [rax]
cmp r10, rcx
je 0x18001cf69
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], r10
mov rax, qword [r10 + 8]
mov qword [rax], rcx
mov qword [r10 + 8], r8
mov qword [rdx + 8], r9
mov qword [rcx + 8], rax
mov qword [r11 + 8], rcx
jmp 0x18001cfb6
mov r8, rax
cmp r9, rax
je 0x18001cf92
nop word [rax + rax]
mov rax, qword [rax + 8]
mov r8, rax
cmp r10d, dword [rax + 0x10]
je 0x18001cfd8
cmp r9, rax
jne 0x18001cf80
mov r10, qword [rcx + 8]
mov qword [r10], rdx
mov r9, qword [rdx + 8]
mov qword [r9], r8
mov rax, qword [r8 + 8]
mov qword [rax], rcx
mov qword [r8 + 8], r9
mov qword [rdx + 8], r10
mov qword [rcx + 8], rax
mov qword [r11], rcx
mov rcx, rdx
cmp rdx, rbx
jne 0x18001ced1
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov r14, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rsi
ret
mov r10, qword [rax]
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], r10
mov rax, qword [r10 + 8]
mov qword [rax], rcx
mov qword [r10 + 8], r8
mov qword [rdx + 8], r9
mov qword [rcx + 8], rax
jmp 0x18001cfb6
lea rcx, str.invalid_hash_bucket_count
call fcn.1800309b8
int3
Function at 0x180024b60
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 8
mov r10, r8
mov r9, rdx
test rdx, rdx
jne 0x180024b76
xor eax, eax
add rsp, 8
ret
mov qword [rsp], rbx
lea rbx, [0x18008e340]
not ecx
cmp r10, 8
jb 0x180024c64
mov r11, r10
shr r11, 3
imul rax, r11, 0xfffffffffffffff8
add r10, rax
nop dword [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
mov edx, dword [rbx + rax*4]
xor edx, ecx
movzx ecx, byte [r9 + 1]
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 2]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 3]
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 4]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 5]
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 6]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 7]
add r9, 8
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
mov ecx, dword [rbx + rax*4]
xor ecx, edx
sub r11, 1
jne 0x180024ba0
test r10, r10
je 0x180024c90
nop dword [rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
xor rdx, rax
shr eax, 8
movzx r8d, dl
mov ecx, dword [rbx + r8*4]
xor ecx, eax
sub r10, 1
jne 0x180024c70
mov rbx, qword [rsp]
not ecx
mov eax, ecx
add rsp, 8
ret
Function at 0x180024fb0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1800a11a0]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp byte [rcx + 0x41], 0
mov rsi, rdx
mov edi, r8d
mov rbx, rcx
je 0x1800250c9
mov rcx, qword [rcx + 0x50]
mov qword [rsp + 0x78], rbp
mov rax, rcx
test rcx, rcx
je 0x180024fff
cmp dword [rbx + 0x58], edi
jae 0x180024fff
call fcn.180032af0
mov qword [rbx + 0x50], 0
jmp 0x180025004
test rax, rax
jne 0x180025013
lea ecx, [rdi + rdi]
call fcn.180032eb4
mov qword [rbx + 0x50], rax
mov dword [rbx + 0x58], edi
mov r8, rdi
mov rdx, rsi
mov rcx, rax
mov rbp, rdi
call fcn.1800516a0
test edi, edi
je 0x1800250c0
xor r11d, r11d
lea rsi, [0x18008e340]
nop word [rax + rax]
mov rax, qword [rbx + 0x50]
lea r11, [r11 + 1]
mov r8d, dword [rbx + 0x4c]
mov edx, dword [rbx + 0x44]
mov r9d, r8d
and r9d, 0xfffd
mov ecx, edx
movsx r10, byte [r11 + rax - 1]
or r9d, 2
xor rcx, r10
shr edx, 8
movzx eax, cl
mov ecx, dword [rsi + rax*4]
xor ecx, edx
movzx eax, cl
add eax, dword [rbx + 0x48]
mov dword [rbx + 0x44], ecx
imul eax, eax, 0x8088405
inc eax
mov ecx, eax
shr rcx, 0x18
mov dword [rbx + 0x48], eax
movzx eax, r8b
xor rcx, rax
shr r8d, 8
mov eax, dword [rsi + rcx*4]
mov ecx, r9d
xor ecx, 1
xor eax, r8d
imul ecx, r9d
mov dword [rbx + 0x4c], eax
mov rax, qword [rbx + 0x50]
shr ecx, 8
xor cl, r10b
mov byte [r11 + rax - 1], cl
sub rbp, 1
jne 0x180025040
mov rsi, qword [rbx + 0x50]
mov rbp, qword [rsp + 0x78]
mov rdx, qword [rbx + 0x30]
test rdx, rdx
je 0x1800250fb
mov ecx, dword [rbx + 0x38]
lea eax, [rcx + rdi]
cmp eax, dword [rbx + 0x3c]
jb 0x1800250e6
mov dword [rbx + 0x24], 0x30000
jmp 0x18002512b
add rcx, rdx
mov r8, rdi
mov rdx, rsi
call fcn.1800516a0
add dword [rbx + 0x38], edi
mov eax, edi
jmp 0x18002512d
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x180025124
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], 0
mov r8d, edi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rsp + 0x30]
jmp 0x18002512d
mov dword [rbx + 0x24], 0x1000000
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180032aa0
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x180025360
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1800a11a0]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, rcx
mov rbp, rdx
mov rcx, qword [rcx + 0xb8]
test rcx, rcx
je 0x1800253e0
mov eax, dword [rdi + 0xc4]
mov esi, dword [rdi + 0xc0]
cmp eax, esi
jae 0x180025430
sub esi, eax
lea rdx, [rcx + rax]
cmp esi, r8d
mov rcx, rbp
cmova esi, r8d
mov r8d, esi
call fcn.1800516a0
mov ecx, dword [rdi + 0xa0]
mov rdx, rbp
add dword [rdi + 0xc4], esi
add dword [rdi + 0x9c], esi
mov r8d, esi
call fcn.180024b60
mov dword [rdi + 0xa0], eax
mov eax, esi
jmp 0x180025432
mov rcx, qword [rdi + 0xa8]
test rcx, rcx
je 0x180025429
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180025430
mov ebx, dword [rsp + 0x30]
mov rdx, rbp
add dword [rdi + 0x9c], ebx
mov r8d, ebx
mov ecx, dword [rdi + 0xa0]
call fcn.180024b60
mov dword [rdi + 0xa0], eax
mov eax, ebx
jmp 0x180025432
mov dword [rdi + 0x24], 0x1000000
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180032aa0
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x180027060
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1800a11a0]
xor rax, rsp
mov qword [rsp + 0x40], rax
call fcn.180029930
test al, al
jne 0x180027082
xor bl, bl
jmp 0x1800270f8
lea rdx, [rsp + 0x20]
call fcn.180028ee0
mov r8d, 7
lea rdx, str.xx.dat
lea rcx, [rsp + 0x20]
call fcn.180015970
cmp qword [rsp + 0x38], 0x10
lea rcx, [rsp + 0x20]
cmovae rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rdx, qword [rsp + 0x38]
test eax, eax
setne bl
cmp rdx, 0x10
jb 0x1800270f8
mov rcx, qword [rsp + 0x20]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800270f3
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18002710e
call fcn.180032af0
movzx eax, bl
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180032aa0
add rsp, 0x50
pop rbx
ret
call fcn.180056698
int3
Function at 0x180028080
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rsi
sub rsp, 0x70
mov rax, qword [0x1800a11a0]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, rdx
mov qword [rsp + 0x40], rdx
call fcn.180029930
test al, al
jne 0x1800280eb
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x1800280e4
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x1800280df
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180028253
mov rcx, r8
call fcn.180032af0
xor al, al
jmp 0x18002821f
lea rdx, [rsp + 0x48]
call fcn.180028ee0
nop
mov r8d, 1
lea rdx, [0x18008d2f8]
lea rcx, [rsp + 0x48]
call fcn.180015970
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.18002c340
nop
mov rdx, rax
cmp qword [rax + 0x18], 0x10
jb 0x180028128
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
lea rcx, [rsp + 0x48]
call fcn.180015970
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 0x10
jb 0x180028174
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18002816f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180028259
call fcn.180032af0
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
setne sil
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x1800281ce
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800281c9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18002824d
call fcn.180032af0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0xf
mov byte [rsp + 0x48], 0
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x18002821b
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x180028216
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180028253
mov rcx, r8
call fcn.180032af0
movzx eax, sil
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.180032aa0
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rsi
ret
call fcn.180056698
nop
call fcn.180056698
nop
call fcn.180056698
int3
Function at 0x180028ee0
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x1800a11a0]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, rdx
mov qword [rsp + 0x28], rdx
xor eax, eax
mov dword [rsp + 0x20], eax
mov qword [rdx + 0x10], rax
mov qword [rdx + 0x18], 0xf
mov byte [rdx], al
mov dword [rsp + 0x20], 1
mov r8, qword [0x1800a20a0]
test r8, r8
je 0x180028f67
lea rdx, [0x1800a2090]
cmp rbx, rdx
je 0x180028f4f
cmp qword [0x1800a20a8], 0x10
cmovae rdx, qword [0x1800a2090]
mov rcx, rbx
call fcn.18001e3a0
cmp byte [0x1800a20b0], 0
je 0x180028fcc
mov r8d, 6
lea rdx, str._Debug
jmp 0x180028fc4
xor edx, edx
mov r8d, 0x104
lea rcx, [rsp + 0x30]
call fcn.180051b50
xor r9d, r9d
lea r8d, [r9 + 0x1a]
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea rax, [rsp + 0x30]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x180028fa0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.18001e3a0
mov r8d, 0x11
lea rdx, str.XiaomiCloudUser
mov rcx, rbx
call fcn.180015970
mov rcx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x180028fd9
mov rcx, qword [rbx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x180028ffb
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x180028ff0
mov rdx, qword [rbx]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
mov rax, rbx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180032aa0
add rsp, 0x150
pop rbx
ret

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

Disassembly:
sub rsp, 0x38
cmp byte [0x1800a20b0], 0
je 0x180029944
mov al, 1
add rsp, 0x38
ret
cmp qword [0x1800a20d0], 8
lea rcx, [0x1800a6f20]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x30], rdi
lea rdi, [0x1800a20b8]
mov rdx, rdi
cmovae rdx, qword [0x1800a20b8]
call fcn.18002f600
test al, al
je 0x180029a12
cmp qword [0x1800a6f98], 8
lea r10, [0x1800a6f80]
mov rax, qword [0x1800a6f90]
movabs r9, 0xcbf29ce484222325
cmovae r10, qword [0x1800a6f80]
xor edx, edx
lea r11, [rax + rax]
test r11, r11
je 0x1800299d4
movabs rbx, 0x100000001b3
nop dword [rax]
movzx eax, byte [rdx + r10]
inc rdx
xor r9, rax
imul r9, rbx
cmp rdx, r11
jb 0x1800299c0
lea r8, [0x1800a6f80]
lea rdx, [rsp + 0x20]
lea rcx, [0x1800a6f20]
call fcn.180030620
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x180029a12
cmp rcx, qword [0x1800a6f28]
je 0x180029a12
mov rdi, qword [rsp + 0x30]
mov bl, 1
movzx eax, bl
mov rbx, qword [rsp + 0x40]
add rsp, 0x38
ret
xor bl, bl
lea rdx, str.Failed_to_VerifySignature__s
cmp qword [0x1800a20d0], 8
mov ecx, 0x10
cmovae rdi, qword [0x1800a20b8]
mov r8, rdi
call fcn.18001f390
mov rdi, qword [rsp + 0x30]
movzx eax, bl
mov rbx, qword [rsp + 0x40]
add rsp, 0x38
ret
Function at 0x18002db40
Capabilities:
Check if file exists

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x498]
sub rsp, 0x598
mov rax, qword [0x1800a11a0]
xor rax, rsp
mov qword [rbp + 0x480], rax
mov qword [rsp + 0x60], r9
mov qword [rsp + 0x68], r8
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x58], rcx
mov rsi, qword [rbp + 0x500]
mov r13, qword [rbp + 0x508]
mov qword [rsp + 0x48], r13
movzx eax, byte [rbp + 0x510]
mov byte [rsp + 0x30], al
test rsi, rsi
je 0x18002e335
mov rax, 0xffffffffffffffff
nop
inc rax
cmp word [rsi + rax*2], 0
jne 0x18002dbb0
test rax, rax
je 0x18002e335
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x18002e335
lea rcx, [0x18008fd58]
jmp loc.1801585de
mov r8, rsi
lea rdx, str._LoadPT_File_Null_or_Not_Exists._path_s
mov ecx, 0x10
call fcn.18001f390
xor al, al
mov rcx, qword [rbp + 0x480]
xor rcx, rsp
call fcn.180032aa0
add rsp, 0x598
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x18002e970
Capabilities:
Check if file exists

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x428]
sub rsp, 0x528
mov rax, qword [0x1800a11a0]
xor rax, rsp
mov qword [rbp + 0x410], rax
mov r13, r9
mov qword [rsp + 0x48], r9
mov rsi, r8
mov r15, rdx
mov qword [rsp + 0x38], rdx
mov rdi, rcx
movzx eax, byte [rbp + 0x490]
mov byte [rsp + 0x30], al
test r8, r8
je 0x18002efb5
mov rax, 0xffffffffffffffff
nop
inc rax
cmp word [r8 + rax*2], 0
jne 0x18002e9d0
test rax, rax
je 0x18002efb5
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x18002efb5
lea rcx, str.__r_QmOuR
jmp loc.1800d8fe7
mov r8, rsi
lea rdx, str._LoadData_File_Null_or_Not_Exists._path_s
mov ecx, 0x10
call fcn.18001f390
xor al, al
mov rcx, qword [rbp + 0x410]
xor rcx, rsp
call fcn.180032aa0
add rsp, 0x528
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret

Function at 0x18002f200
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1800a11a0]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rax, r8
mov rsi, rcx
mov qword [rsp + 0x38], rcx
xor edi, edi
test r8, r8
jne 0x18002f25b
mov qword [rcx + 0x10], rdi
mov qword [rcx + 0x18], 7
mov word [rcx], di
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rdi + rbx*2], di
jne 0x18002f243
mov r8, rbx
xor edx, edx
call fcn.180020e90
jmp 0x18002f36f
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], di
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x18002f35e
mov dword [rsp + 0x34], edi
mov dword [rsp + 0x30], edi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, str.NetCfgInstanceId
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18002f353
cmp dword [rsp + 0x34], 1
jne 0x18002f353
mov eax, dword [rsp + 0x30]
cmp eax, 2
jb 0x18002f353
lea ecx, [rax + 1]
mov eax, 2
mul rcx
mov rbx, 0xffffffffffffffff
cmovo rax, rbx
mov rcx, rax
call fcn.180032eb4
mov rbp, rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, str.NetCfgInstanceId
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax]
inc rbx
cmp word [rbp + rbx*2], 0
jne 0x18002f330
mov r8, rbx
mov rdx, rbp
lea rcx, [rsp + 0x40]
call fcn.180020e90
mov rcx, rbp
call fcn.180032af0
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [rsi + 0x10], xmm1
mov rax, rsi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.180032aa0
mov rbx, qword [rsp + 0x98]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
Function at 0x180032ebc
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x180036954
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x180036967
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.180036f68
lea rdx, [0x18009e5d8]
lea rcx, [rsp + 0x20]
call fcn.1800515c8
int3

Function at 0x1800410f8
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x1800a5eb8]
xor edx, edx
jmp fcn.180036954

Function at 0x180041a70
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x1800a5eb8]
jmp fcn.180036954

Function at 0x18004d234
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x18004d2f0]
mov r9, qword [r9 + 8]
jmp fcn.18003eb10

Function at 0x18004d2c8
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x18004d300]
mov r9, qword [r9 + 8]
jmp fcn.18003eb10
Function at 0x140008070
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xf0
mov rax, qword [0x140321ce0]
xor rax, rsp
mov qword [rbp + 0x4f], rax
xor esi, esi
mov qword [rbp - 0x21], rsi
movdqa xmm0, xmmword [0x1402d5890]
movdqu xmmword [rbp - 0x11], xmm0
mov word [rbp - 0x21], si
lea rcx, [rbp - 0x21]
call fcn.140062874
mov ebx, eax
test eax, eax
js 0x1400080eb
lea rcx, [rbp - 0x21]
cmp qword [rbp - 9], 8
cmovae rcx, qword [rbp - 0x21]
call qword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
test eax, eax
je 0x1400080d7
mov ebx, esi
jmp 0x1400080eb
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov qword [rbp - 0x41], rsi
movdqa xmm0, xmmword [0x1402d5890]
movdqu xmmword [rbp - 0x31], xmm0
mov word [rbp - 0x41], si
test ebx, ebx
js 0x140008218
lea rdx, [rbp - 0x41]
mov cl, 1
call fcn.1400642ec
mov ebx, eax
test eax, eax
js 0x140008218
mov r8d, SafeArrayGetElement
lea rdx, str.FileSyncHelperlogs
lea rcx, [rbp - 0x41]
call fcn.14000a06c
lea rdx, [rbp - 0x41]
cmp qword [rbp - 0x29], 8
cmovae rdx, qword [rbp - 0x41]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea rax, [rbp - 0x41]
cmp qword [rbp - 0x29], 8
cmovae rax, qword [rbp - 0x41]
xor r9d, r9d
mov byte [rsp + 0x48], sil
mov dword [rsp + 0x40], 3
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov byte [rsp + 0x28], 1
mov byte [rsp + 0x20], sil
xor r8d, r8d
lea rsi, str.FileSyncHelper
mov rdx, rsi
mov rcx, rsi
call fcn.140020414
mov ebx, eax
lea rax, [0x1402d3b3c]
mov qword [rbp + 0x37], rax
mov dword [rbp + 0x2f], 3
mov dword [rbp + 0x3f], ebx
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x38], 2
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 0x7df240a5
lea rax, [0x1402d4408]
mov qword [rsp + 0x20], rax
lea r9, str.InitializeLogging
mov r8d, reloc.OLEAUT32.dll_RegisterTypeLib
lea rdx, str.D:dbs_shodct0825_133309cmd_nclientonedriveProductElevatedHelperServerexewinmain.cpp
lea rcx, [rbp - 1]
call fcn.14001f720
lea rdx, [rbp + 0x2f]
lea rcx, [rbp - 1]
call fcn.14002094c
call fcn.140020564
mov rdx, rsi
lea rcx, str.App_Name
call fcn.1400206e0
nop
lea rcx, [rbp - 0x41]
call fcn.14000a008
nop
lea rcx, [rbp - 0x21]
call fcn.14000a008
mov eax, ebx
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.1400b36b0
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret