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

Disassembly:
push r14
push rdi
push rsi
push rbp
push rbx
sub rsp, 0x20
mov rdi, rcx
mov rbx, rdx
mov esi, r8d
mov ecx, esi
xor eax, eax
test ecx, ecx
jle 0x18027da42
test rbx, rbx
je 0x18027da20
cmp dword [rbx + 8], ecx
jl 0x18027da20
mov edx, eax
movzx edx, word [rbx + rdx*2 + 0xc]
mov r8d, ecx
shl r8d, 7
xor edx, r8d
add ecx, edx
inc eax
cmp eax, esi
jl 0x18027da05
jmp 0x18027da42
cmp eax, dword [rbx + 8]
jae 0x18027db37
mov edx, eax
movzx edx, word [rbx + rdx*2 + 0xc]
mov r8d, ecx
shl r8d, 7
xor edx, r8d
add ecx, edx
inc eax
cmp eax, esi
jl 0x18027da20
mov eax, ecx
sar eax, 0x11
sub ecx, eax
mov eax, ecx
sar eax, 0xb
sub ecx, eax
mov eax, ecx
sar eax, 5
mov ebp, ecx
sub ebp, eax
mov rcx, qword [rdi + 8]
mov eax, ebp
and eax, dword [rdi + 0x14]
cmp eax, dword [rcx + 8]
jae 0x18027db37
mov rcx, qword [rcx + rax*8 + 0x10]
test rcx, rcx
je 0x18027daea
cmp dword [rcx + 0x18], ebp
jne 0x18027dae1
mov rax, qword [rcx + 8]
mov rdx, qword [rax + 8]
mov r8d, dword [rdx + 8]
cmp r8d, esi
jne 0x18027dae1
xor r10d, r10d
test r8d, r8d
jle 0x18027db2c
test rbx, rbx
je 0x18027dabd
cmp dword [rbx + 8], r8d
jl 0x18027dabd
mov r9d, r10d
movzx r11d, word [rdx + r9*2 + 0xc]
cmp r11w, word [rbx + r9*2 + 0xc]
jne 0x18027dae1
inc r10d
cmp r8d, r10d
jg 0x18027daa2
jmp 0x18027db2c
mov r9d, r10d
movzx r9d, word [rdx + r9*2 + 0xc]
cmp r10d, dword [rbx + 8]
jae 0x18027db37
mov r11d, r10d
cmp r9w, word [rbx + r11*2 + 0xc]
jne 0x18027dae1
inc r10d
cmp r8d, r10d
jg 0x18027dabd
jmp 0x18027db2c
mov rcx, qword [rcx + 0x10]
test rcx, rcx
jne 0x18027da75
lea rcx, [0x18047d1d8]
call fcn.180006b00
mov r14, rax
mov rcx, rbx
mov r8d, esi
xor edx, edx
cmp dword [rcx], ecx
call fcn.180175520
lea rcx, [r14 + 8]
mov rdx, rax
call fcn.180006d10
mov rcx, rdi
mov rdx, r14
mov r8d, ebp
add rsp, 0x20
pop rbx
pop rbp
pop rsi
pop rdi
pop r14
jmp fcn.18027db90
add rsp, 0x20
pop rbx
pop rbp
pop rsi
pop rdi
pop r14
ret
call fcn.18022d830
int3

Function at 0x18027db40
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [rcx + 8]
mov edx, eax
xor r8d, r8d
test eax, eax
jle 0x18027db6e
nop dword [rax]
mov r10d, r8d
movzx r10d, word [rcx + r10*2 + 0xc]
mov r9d, edx
shl r9d, 7
xor r10d, r9d
add edx, r10d
inc r8d
cmp eax, r8d
jg 0x18027db50
mov eax, edx
sar eax, 0x11
sub edx, eax
mov eax, edx
sar eax, 0xb
sub edx, eax
mov eax, edx
sar eax, 5
mov ecx, edx
sub ecx, eax
mov eax, ecx
ret
Function at 0x1803d5200
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x48
movaps xmmword [rsp + 0x30], xmm6
cmp r9d, 8
jge 0x1803d5251
movzx r10d, dx
sub r8d, r10d
movzx eax, r8w
xor edx, edx
test r9d, r9d
jle 0x1803d547b
movsxd r8, edx
movzx r8d, word [rcx + r8*2]
sub r8d, r10d
movzx r8d, r8w
cmp r8d, eax
jle 0x1803d5245
inc edx
cmp edx, r9d
jl 0x1803d5225
jmp 0x1803d547b
mov eax, edx
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
ret
movzx r10d, dx
movd xmm0, r10d
punpcklwd xmm0, xmm0
pshufd xmm0, xmm0, 0
mov eax, r8d
sub eax, r10d
movzx eax, ax
movd xmm1, eax
punpcklwd xmm1, xmm1
pshufd xmm1, xmm1, 0
mov rax, rcx
add r9d, 0xfffffff8
mov edx, r9d
add rdx, rdx
lea r8, [rax + rdx]
movups xmm2, xmmword [case.0x1803ad3a5.100]
movaps xmm3, xmm1
psubw xmm3, xmm2
movups xmm4, xmmword [rax]
psubw xmm4, xmm0
movaps xmm5, xmm4
psubw xmm5, xmm2
movaps xmm6, xmm3
pcmpgtw xmm6, xmm5
pcmpeqw xmm4, xmm1
por xmm4, xmm6
movaps xmmword [rsp + 0x20], xmm4
xorps xmm5, xmm5
pcmpeqw xmm4, xmm5
pmovmskb r10d, xmm4
cmp r10d, 0xffff
jne 0x1803d53bb
add rax, 0x10
cmp rax, r8
jb 0x1803d5298
movups xmm4, xmmword [r8]
psubw xmm4, xmm0
movaps xmm0, xmm4
psubw xmm0, xmm2
pcmpgtw xmm3, xmm0
pcmpeqw xmm1, xmm4
por xmm1, xmm3
movaps xmmword [rsp + 0x20], xmm1
xorps xmm0, xmm0
pcmpeqw xmm0, xmm1
pmovmskb eax, xmm0
cmp eax, 0xffff
je 0x1803d547b
mov rax, qword [rsp + 0x20]
mov qword [rsp + 8], rax
movzx eax, word [rsp + 8]
shr eax, 0xf
movzx ecx, word [rsp + 0xa]
shr ecx, 0xf
add ecx, ecx
or eax, ecx
movzx ecx, word [rsp + 0xc]
shr ecx, 0xf
shl ecx, 2
or ecx, eax
mov eax, ecx
movzx ecx, word [rsp + 0xe]
shr ecx, 0xf
shl ecx, 3
or ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x28]
mov qword [rsp], rcx
movzx ecx, word [rsp]
shr ecx, 0xf
movzx r8d, word [rsp + 2]
shr r8d, 0xf
add r8d, r8d
or ecx, r8d
movzx r8d, word [rsp + 4]
shr r8d, 0xf
shl r8d, 2
or r8d, ecx
mov ecx, r8d
movzx r8d, word [rsp + 6]
shr r8d, 0xf
shl r8d, 3
or r8d, ecx
mov ecx, r8d
shl ecx, 4
or eax, ecx
bsf ecx, eax
mov r8d, 0x20
test eax, eax
cmove ecx, r8d
mov eax, ecx
shr rdx, 1
add eax, edx
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
ret
mov rdx, qword [rsp + 0x20]
mov qword [rsp + 0x18], rdx
movzx edx, word [rsp + 0x18]
shr edx, 0xf
movzx r8d, word [rsp + 0x1a]
shr r8d, 0xf
add r8d, r8d
or edx, r8d
movzx r8d, word [rsp + 0x1c]
shr r8d, 0xf
shl r8d, 2
or r8d, edx
mov edx, r8d
movzx r8d, word [rsp + 0x1e]
shr r8d, 0xf
shl r8d, 3
or r8d, edx
mov edx, r8d
mov r8, qword [rsp + 0x28]
mov qword [rsp + 0x10], r8
movzx r8d, word [rsp + 0x10]
shr r8d, 0xf
movzx r10d, word [rsp + 0x12]
shr r10d, 0xf
add r10d, r10d
or r8d, r10d
movzx r10d, word [rsp + 0x14]
shr r10d, 0xf
shl r10d, 2
or r10d, r8d
mov r8d, r10d
movzx r10d, word [rsp + 0x16]
shr r10d, 0xf
shl r10d, 3
or r10d, r8d
mov r8d, r10d
shl r8d, 4
or edx, r8d
bsf r8d, edx
mov r10d, 0x20
test edx, edx
cmove r8d, r10d
sub rax, rcx
shr rax, 1
add eax, r8d
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
ret
mov eax, 0xffffffff
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
ret
Function at 0x180da7058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.180da71df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x180da7089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x180da706f
add dl, dl
jne 0x180da7096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x180da70f6
xor eax, eax
add dl, dl
jne 0x180da70a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x180da71ad
add dl, dl
jne 0x180da70b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180da70c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180da70d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180da70dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x180da70ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x180da707e
mov eax, 1
add dl, dl
jne 0x180da7106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180da7113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180da70fb
sub eax, ebx
mov ebx, 1
jne 0x180da714c
mov ecx, 1
add dl, dl
jne 0x180da712e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180da713b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180da7123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x180da707e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x180da7168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180da7175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180da715d
cmp eax, 0x7d00
jae 0x180da719b
cmp eax, 0x500
jb 0x180da7196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x180da707e
cmp eax, 0x7f
ja 0x180da719e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x180da707e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x180da71d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x180da707e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140002a40
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140002a68
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x140002a8e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140002a90
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140002ae9
test ecx, ecx
jle 0x140002ac9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140002ae9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140002ae9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x140002b10
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140002b32
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140002b48
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140002b64
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140002b66
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140002ba2
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140002c3e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140002bdd
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x140002c1e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x140002c3e
cmp rbx, rax
ja 0x140002bf0
test rbx, rbx
je 0x140002c3e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x1400030a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400030cd
xor eax, eax
jmp 0x140003239
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140003107
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140003107
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140003239
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000322c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000314a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140003175
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140003231
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400031e4
sub eax, 1
je 0x1400031e4
cmp eax, 2
jne 0x14000322c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140003231
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140003212
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14000322c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140003231
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400048c0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140003710
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400037e3
cmp byte [rcx + 0x71], 0
je 0x1400037e3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400037df
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400037a4
sub eax, 1
je 0x1400037a8
cmp eax, 2
jne 0x1400037df
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400048c0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400037d6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x1400037df
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000378c
xor al, al
jmp 0x14000378c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400048c0
add rsp, 0x60
pop rbx
ret

Function at 0x140005240
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000528a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000528a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000528a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000528a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000528a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000528c
xor al, al
add rsp, 0x28
ret
Function at 0x1400102f0
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x14035f028]
xor rax, rsp
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
mov rbx, rcx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov r8, qword [rbx + 0x20]
add r8, 0x68
cmp qword [r8 + 0x18], 8
jb 0x14001032b
mov r8, qword [r8]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x28], 8
mov r9d, 3
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftOneDrive
mov rcx, 0xffffffff80000001
call qword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140020930
add rsp, 0x40
pop rbx
ret

Function at 0x1400106d0
Capabilities:
Check if file exists

Disassembly:
sub rsp, 0x28
add rcx, 0x30
cmp qword [rcx + 0x18], 8
jb 0x1400106e2
mov rcx, qword [rcx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne al
add rsp, 0x28
ret
Function at 0x14002148c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400214d6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400214d6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400214d6
mov eax, SHFlushSFCache
cmp word [rcx + 0x18], ax
jne 0x1400214d6
cmp dword [rcx + 0x84], 0xe
jbe 0x1400214d6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400214d8
xor al, al
add rsp, 0x28
ret
Function at 0x14003a88c
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 0x14003a913
mov rsi, rbx
cmp word [rax], bp
je 0x14003a8d2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14003a8bc
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14003a8b8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140038f24
mov rdi, rax
test rax, rax
je 0x14003a900
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140022600
mov rbp, rdi
xor ecx, ecx
call fcn.14003880c
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 0x1400468f0
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, [0x14037a660]
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 0x14004694e
cmp word [rdx], r12w
jne 0x14004694e
or byte [rax + r8*8 + 0x38], cl
jmp 0x140046954
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x140046aaf
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x140046a8a
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14004698d
mov rcx, r9
jmp 0x1400469b0
cmp r9, rdx
jae 0x1400469c7
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 0x140046971
jmp 0x140046aaf
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 0x140046a84
cmp dword [rsp + 0x80], edi
je 0x140046a84
mov rdx, r14
lea r11, [0x14037a660]
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 0x140046a5d
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x140046a30
mov word [rbx], r12w
jmp 0x140046aab
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 0x140046a39
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x140046aab
cmp word [rsp + 0x70], r12w
jne 0x140046a6a
cmp rbx, rsi
je 0x140046a2a
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.140046810
cmp word [rsp + 0x70], r12w
je 0x140046aaf
mov word [rbx], r13w
jmp 0x140046aab
lea r11, [0x14037a660]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140046aa7
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x140046aaf
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 0x14004aad8
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 [0x14035f028]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rdi, rcx
mov qword [rsp + 0x38], rcx
xor r14d, r14d
lea r15, [0x14037f710]
mov qword [rsp + 0x38], r15
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rsp + 0x40], 1
lea rsi, [0x140368b50]
cmp qword [0x140368b60], r14
jne 0x14004ac3d
call fcn.1400c8120
mov rcx, rax
mov rax, qword [rax]
mov rax, qword [rax + 0x110]
call qword [case.0x140066cb3.0]
mov bl, al
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x70]
call fcn.140022cb0
cmp byte [0x14037f6f8], r14b
je 0x14004ab81
test bl, bl
lea edx, [r14 + 0x26]
jne 0x14004ab86
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 0x14004ac3d
mov qword [rsp + 0x48], r14
movdqa xmm0, xmmword [0x14030b010]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], r14w
cmp byte [0x14037f6f8], r14b
je 0x14004abd3
test bl, bl
lea rdx, str.Microsoft_OneDrive_setuplogs
jne 0x14004abda
lea rdx, str.MicrosoftOneDrive_setuplogs
mov r8d, 0x1d
lea rcx, [rsp + 0x48]
call fcn.14000e0cc
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.14004b054
mov ebx, eax
lea rcx, [rsp + 0x48]
call fcn.140007b58
test ebx, ebx
js 0x14004ac3d
lea rax, [rsp + 0x70]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r14w
jne 0x14004ac26
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.14000e0cc
mov qword [rdi], r14
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], r14
cmp qword [reloc.OLEAUT32.dll_VariantInit], 8
cmovae rsi, qword [0x140368b50]
mov r8, qword [0x140368b60]
mov rdx, rsi
mov rcx, rdi
call fcn.14000e3dc
nop
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, rdi
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.140020930
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 0x14004ce18
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x14035f028]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor edi, edi
mov rbx, rcx
test rcx, rcx
je 0x14004ceb6
mov edx, 0x2000
mov rax, rbx
mov ecx, edx
cmp word [rax], di
je 0x14004ce54
add rax, 2
sub rcx, 1
jne 0x14004ce45
sub rdx, rcx
mov rax, rcx
neg rax
sbb r8, r8
and r8, rdx
test rcx, rcx
je 0x14004ce9e
mov rcx, qword [0x14037f708]
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 [0x14037f700]
test rax, rax
je 0x14004ce9e
mov rcx, rbx
call qword [case.0x140066cb3.0]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140020930
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov ecx, 0x80004005
call fcn.140007ad8
int3

Function at 0x140071924
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x14035f028]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call fcn.140022cb0
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]
xor esi, esi
test eax, eax
js 0x1400719cc
cmp qword [0x14037e638], 8
lea r8, [0x14037e620]
mov edx, 0x104
lea rcx, [rsp + 0x30]
cmovae r8, qword [0x14037e620]
xor r9d, r9d
call fcn.14004b054
mov ebx, eax
or r8, 0xffffffffffffffff
lea rax, [rsp + 0x30]
inc r8
cmp word [rax + r8*2], si
jne 0x1400719b3
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.14000e0cc
jmp 0x1400719d1
mov ebx, 0x80004005
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140020930
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret