joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180137840
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rax, qword [rcx + 0x20]
xor r15d, r15d
sub rax, 0x34
mov qword [rcx + 0x78], r15
mov qword [rcx + 0x28], rax
mov r14d, edx
mov rax, qword [rcx + 0x30]
mov rbx, rcx
mov word [rcx + 0x6a], r15w
lea ebp, [r15 - 1]
mov dword [rcx + 0x3c], r15d
mov edi, r15d
mov qword [rcx + 0x70], rax
mov qword [rax + 0x10], rax
mov word [rcx + 0x68], r15w
cmp r15w, word [rcx + 0xb8]
jge 0x18013797b
mov esi, r15d
mov rax, qword [rbx + 0xd0]
lea edx, [rbp + 1]
mov dword [rbx + 0x88], r15d
mov r9d, r14d
mov qword [rbx + 0x80], r15
mov rcx, rbx
movsx ebp, word [rsi + rax]
mov r8d, ebp
call fcn.180137d10
test al, al
jne 0x180137a16
mov r8d, dword [rbx + 4]
mov edx, dword [rbx + 0x5c]
lea eax, [r8 - 1]
test edx, eax
jne 0x18013790f
cmp edx, dword [rbx + 0x60]
jl 0x18013790f
cmp edx, dword [rbx + 0x64]
jg 0x18013790f
mov rcx, qword [rbx + 0x80]
test rcx, rcx
je 0x18013790f
mov rax, qword [rbx + 0x70]
movzx ecx, byte [rcx + 0x18]
xor cl, byte [rax + 0x18]
test cl, 8
jne 0x18013790f
add qword [rbx + 0x30], 0xfffffffffffffffc
mov r9, qword [rbx + 0x70]
mov rax, qword [r9 + 0x10]
cmp qword [rbx + 0x30], rax
je 0x180137932
test byte [r9 + 0x18], 8
je 0x180137932
neg r8d
and r8d, edx
sub edx, r8d
cmp edx, dword [rbx + 8]
jmp 0x180137943
lea eax, [r8 - 1]
neg r8d
add eax, edx
and eax, r8d
sub eax, edx
cmp eax, dword [rbx + 8]
setge dl
mov rcx, rbx
call fcn.1801386e0
test al, al
jne 0x180137a16
mov rax, qword [rbx + 0x80]
test rax, rax
je 0x180137966
mov qword [r9 + 0x28], rax
movsx eax, word [rbx + 0xb8]
inc edi
add rsi, 2
cmp edi, eax
jl 0x1801378a3
movzx edi, word [rbx + 0x68]
mov rdx, qword [rbx + 0x78]
cmp di, 1
jbe 0x180137a1a
test rdx, rdx
je 0x180137a1a
mov ebp, 0xffff
nop dword [rax + rax]
lea rsi, [rdx + 8]
cmp di, 1
jbe 0x1801379b8
movsxd rcx, dword [rdx + 0x1c]
mov rax, qword [rdx + 0x10]
lea r10, [rax + rcx*4]
jmp 0x1801379bb
mov r10, r15
mov qword [rsi], r10
test byte [rdx + 0x18], 8
mov r11d, dword [rdx + 0x20]
mov r8d, r11d
mov eax, dword [rdx + 0x1c]
je 0x1801379d6
dec r11d
add r11d, eax
jmp 0x1801379ed
sub r8d, eax
inc r8d
dec eax
mov dword [rdx + 0x20], r8d
movsxd rcx, eax
shl rcx, 2
add qword [rdx + 0x10], rcx
mov edx, r8d
mov rcx, rbx
call fcn.180138a00
test al, al
jne 0x180137a16
lea edx, [r11 + 1]
mov rcx, rbx
call fcn.180138a00
test al, al
jne 0x180137a16
mov rdx, qword [rsi]
add di, bp
jne 0x1801379a0
jmp 0x180137a1e
mov al, 1
jmp 0x180137a29
mov qword [rbx + 0x78], r15
mov rax, qword [rbx + 0x28]
cmp qword [rbx + 0x30], rax
setae al
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x18015a930
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov r9, rcx
mov r10, rdx
mov rdx, qword [r8 + 0x1b8]
mov ecx, 0x3020100
mov dword [r8 + 0x1c4], ecx
mov r11, r8
mov eax, 1
add ecx, 0x4040404
mov dword [r8 + rax*4 + 0x1c4], ecx
inc rax
cmp rax, rdx
jbe 0x18015a951
xor r8d, r8d
test r10, r10
je 0x18015a9b3
nop
movzx eax, byte [r9]
or r8, rax
movzx ecx, byte [rax + r11 + 0x1c4]
mov byte [r9], cl
mov byte [r11 + 0x1c3], cl
nop word [rax + rax]
movzx ecx, byte [r11 + rax + 0x1c3]
mov rdx, rax
sub rax, 1
mov byte [rdx + r11 + 0x1c4], cl
jns 0x18015a990
inc r9
sub r10, 1
jne 0x18015a970
shr r8, 2
mov qword [r11 + 0x1b8], r8
ret

Function at 0x18015ed30
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edi, ecx
call fcn.18015ed90
mov ecx, 2
mov rbx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
lea rdx, str._n_nbzip2_libbzip2:_internal_error_number__d._nThis_is_a_bug_in_bzip2_libbzip2___s._nPlease_report_it_to:_bzip2_devel_sourceware.org.__If_this_happened_nwhen_you_were_using_some_program_which_uses_libbzip2_as_a_ncomponent__you_should_also_report_this_bug_to_the_author_s__nof_that_program.__Please_make_an_effort_to_report_this_bug__ntimely_and_accurate_bug_reports_eventually_lead_to_higher_nquality_software.__Thanks._n_n
mov r9, rbx
mov r8d, edi
call fcn.180141720
cmp edi, 0x3ef
jne 0x18015ed84
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
lea rdx, str._n_A_special_note_about_internal_error_number_1007__n_nExperience_suggests_that_a_common_cause_of_i.e._1007_nis_unreliable_memory_or_other_hardware.__The_1007_assertion_njust_happens_to_cross_check_the_results_of_huge_numbers_of_nmemory_reads_writes__and_so_acts__unintendedly__as_a_stress_ntest_of_your_memory_system._n_nI_suggest_the_following:_try_compressing_the_file_again__npossibly_monitoring_progress_in_detail_with_the__vv_flag._n_n_If_the_error_cannot_be_reproduced__and_or_happens_at_different_n__points_in_compression__you_may_have_a_flaky_memory_system._n__Try_a_memory_test_program.__I_have_used_Memtest86_n___www.memtest86.com_.__At_the_time_of_writing_it_is_free__GPLd_._n__Memtest86_tests_memory_much_more_thorougly_than_your_BIOSs_n__power_on_test__and_may_find_failures_that_the_BIOS_doesnt._n_n_If_the_error_can_be_repeatably_reproduced__this_is_a_bug_in_n__bzip2__and_I_would_very_much_like_to_hear_about_it.__Please_n__let_me_know__and__ideally__save_a_copy_of_the_file_causing_the_n__problem____without_which_I_will_be_unable_to_investigate_it._n_n
call fcn.180141720
mov ecx, 3
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
int3
Function at 0x1400a2300
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1400a230d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1400a231d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1400a2305
lea eax, [rcx + 1]
jmp 0x1400a232b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1400a233e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1400a2324
sub eax, 3
jb 0x1400a235e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1400a23ad
sar eax, 1
movsxd rbp, eax
jb 0x1400a2394
jmp 0x1400a236c
add ebx, ebx
jne 0x1400a236a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400a2394
inc ecx
add ebx, ebx
jne 0x1400a237a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400a2394
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1400a238d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1400a237c
add ecx, 2
jmp 0x1400a2399
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1400a22c2
jmp 0x1400a230d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x3b200
mov dl, 0x12
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1400a23f9
cmp rsi, rcx
jae 0x1400a2401
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1400a23e0
cmp al, 0x8f
ja 0x1400a23e0
cmp byte [rsi - 2], 0xf
je 0x1400a23e6
sub al, 0xe8
cmp al, 1
ja 0x1400a23ca
cmp rsi, rcx
jae 0x1400a2401
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1400a23d0
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1400a2401
lodsb al, byte [rsi]
jmp 0x1400a23e0
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x9f000]
mov eax, dword [rdi]
or eax, eax
je 0x1400a245e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xdda94]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1400a240e
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1400a2458
mov qword [rbx], rax
add rbx, 8
jmp 0x1400a242e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1400a2498
cmp al, 0xef
ja 0x1400a248a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1400a246a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x1400a2479
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x227]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1400a24ec
sub rsp, 0xffffffffffffff80
jmp 0x14001ec88
Function at 0x1400039b0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
push r14
push r15
sub rsp, 0x48
xor r15d, r15d
lea rcx, str.C:Windows_system32_rdpjkj.log
mov rdi, r8
mov qword [rsp + 0x30], r15
mov r14, rdx
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov dword [rsp + 0x20], 3
lea r8d, [r15 + 1]
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140003a0c
xor al, al
add rsp, 0x48
pop r15
pop r14
pop rdi
pop rsi
ret
lea rdx, [rsp + 0x88]
mov qword [rsp + 0x40], rbp
mov rcx, rsi
mov qword [rsp + 0x88], r15
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov ebp, dword [rsp + 0x88]
mov ecx, 0x40
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [r14], rax
test rax, rax
jne 0x140003a61
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x40]
xor al, al
add rsp, 0x48
pop r15
pop r14
pop rdi
pop rsi
ret
mov qword [rsp + 0x78], rbx
mov ebx, ebp
mov dword [rdi], r15d
test ebp, ebp
jle 0x140003a9e
nop
mov rdx, qword [r14]
lea r9, [rsp + 0x70]
mov r8d, ebx
mov dword [rsp + 0x70], r15d
mov rcx, rsi
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x70]
test eax, eax
je 0x140003a9e
add dword [rdi], eax
sub ebx, eax
test ebx, ebx
jg 0x140003a70
mov rcx, rsi
mov rbx, qword [rsp + 0x78]
cmp dword [rdi], ebp
je 0x140003acb
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbp, qword [rsp + 0x40]
xor al, al
add rsp, 0x48
pop r15
pop r14
pop rdi
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x40]
mov al, 1
add rsp, 0x48
pop r15
pop r14
pop rdi
pop rsi
ret

Function at 0x140003d80
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov edi, r8d
mov dword [rsp + 0x28], 0x80
mov rsi, rdx
mov dword [rsp + 0x68], 0
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
test rax, rax
je 0x140003dfa
lea r9, [rsp + 0x68]
mov qword [rsp + 0x20], 0
mov r8d, edi
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
test eax, eax
jne 0x140003e0c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x50]
mov al, 1
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140006270
Capabilities:
Create directory
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x390
mov rax, qword [0x140030008]
xor rax, rsp
mov qword [rsp + 0x380], rax
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x104
call fcn.140011b90
lea rax, str.Diagnostics.txt
mov r9, rdi
lea r8, [0x14002b2e0]
mov qword [rsp + 0x20], rax
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.140004200
xor ebx, ebx
lea rcx, str.C:Windows_system32_rdpjkj.log
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], ebx
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [rbx + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
je 0x140006411
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x48], rbx
lea r8, [rsp + 0x48]
mov dword [rsp + 0x40], ebx
mov edx, 0x153
call fcn.140003af0
test al, al
je 0x140006411
mov rbx, qword [rsp + 0x48]
lea rcx, [rsp + 0x50]
mov r8d, dword [rsp + 0x40]
mov rdx, rbx
call fcn.140003d80
test al, al
je 0x140006411
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.1400040a0
test al, al
je 0x140006411
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
xor edx, edx
lea rcx, [rsp + 0x160]
mov r8d, 0x104
call fcn.140011b90
xor edx, edx
lea rcx, [rsp + 0x270]
mov r8d, 0x104
call fcn.140011b90
mov r9, rdi
lea r8, str._sx86.dll
mov edx, 0x104
lea rcx, [rsp + 0x160]
call fcn.140004200
mov r9, rdi
lea r8, str._sx64.dll
mov edx, 0x104
lea rcx, [rsp + 0x270]
call fcn.140004200
lea r8, [rsp + 0x160]
mov edx, 0x1a7
call fcn.140006440
test al, al
je 0x140006411
lea r8, [rsp + 0x270]
mov edx, 0x1ac
call fcn.140006440
test al, al
setne al
jmp 0x140006413
xor al, al
mov rcx, qword [rsp + 0x380]
xor rcx, rsp
call fcn.14000e940
mov rbx, qword [rsp + 0x3a8]
add rsp, 0x390
pop rdi
ret
Function at 0x140830760
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1408308e7
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 0x140830791
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140830777
add dl, dl
jne 0x14083079e
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408307fe
xor eax, eax
add dl, dl
jne 0x1408307ad
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408308b5
add dl, dl
jne 0x1408307be
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408307cb
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408307d8
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408307e5
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1408307f2
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140830786
mov eax, 1
add dl, dl
jne 0x14083080e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14083081b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140830803
sub eax, ebx
mov ebx, 1
jne 0x140830854
mov ecx, 1
add dl, dl
jne 0x140830836
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140830843
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14083082b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140830786
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140830870
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14083087d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140830865
cmp eax, 0x7d00
jae 0x1408308a3
cmp eax, 0x500
jb 0x14083089e
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140830786
cmp eax, 0x7f
ja 0x1408308a6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140830786
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1408308da
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 0x140830786
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001a70
Capabilities:
Check if file exists
Get common file path

Disassembly:
mov r11, rsp
push rsi
push rdi
sub rsp, 0x268
mov rax, qword [0x14003a200]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov qword [r11 + 8], rbx
mov rsi, rdx
mov qword [r11 - 0x18], r14
mov rbx, rcx
xor r14b, r14b
call fcn.140003b30
xor edi, edi
test al, al
je 0x140001b10
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], rdi
mov rcx, rbx
call fcn.140001e90
test al, al
je 0x140001b10
mov r8, qword [rsp + 0x30]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x290], rbp
lea edx, [rdi + 0x1a]
mov ebp, 1
mov qword [rsp + 0x20], rax
mov r9d, ebp
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
movzx ebx, r14b
cmove ebx, ebp
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x290]
test bl, bl
jne 0x140001b24
xor r9d, r9d
lea rdx, [rsp + 0x40]
xor ecx, ecx
lea r8d, [r9 + 0x1a]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov r14, qword [rsp + 0x260]
lea rcx, [rsp + 0x40]
mov rbx, qword [rsp + 0x280]
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], di
jne 0x140001b40
test eax, eax
je 0x140001c0f
lea rcx, [rsp + 0x40]
sub rcx, 2
nop word [rax + rax]
cmp word [rcx + 2], di
lea rcx, [rcx + 2]
jne 0x140001b60
mov eax, dword [0x14002572c]
lea rdx, [rsp + 0x40]
sub rdx, 2
mov dword [rcx], eax
nop dword [rax + rax]
cmp word [rdx + 2], di
lea rdx, [rdx + 2]
jne 0x140001b80
mov ecx, dword [0x1400256e8]
movups xmm0, xmmword [str.PuddingDesktop]
movsd xmm1, qword [0x1400256e0]
movups xmmword [rdx], xmm0
movsd qword [rdx + 0x10], xmm1
mov dword [rdx + 0x18], ecx
movzx ecx, word [0x1400256ec]
mov word [rdx + 0x1c], cx
lea rcx, [rsp + 0x40]
sub rcx, 2
nop
cmp word [rcx + 2], di
lea rcx, [rcx + 2]
jne 0x140001bc0
mov dword [rcx], eax
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140001be5
lea rcx, [rsp + 0x40]
call fcn.140005550
cmp word [rsp + 0x40], di
je 0x140001bff
lea rax, [rsp + 0x40]
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], 0
jne 0x140001bf5
mov r8, rdi
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1400051d0
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14000d1c0
add rsp, 0x268
pop rdi
pop rsi
ret
Function at 0x140001c30
Capabilities:
Check if file exists
Get common file path

Disassembly:
mov r11, rsp
push rsi
push rdi
sub rsp, 0x268
mov rax, qword [0x14003a200]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov qword [r11 + 8], rbx
mov rsi, rdx
mov qword [r11 - 0x18], r14
mov rbx, rcx
xor r14b, r14b
call fcn.140003b30
xor edi, edi
test al, al
je 0x140001cd0
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], rdi
mov rcx, rbx
call fcn.140001e90
test al, al
je 0x140001cd0
mov r8, qword [rsp + 0x30]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x290], rbp
lea edx, [rdi + 0x1a]
mov ebp, 1
mov qword [rsp + 0x20], rax
mov r9d, ebp
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
movzx ebx, r14b
cmove ebx, ebp
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x290]
test bl, bl
jne 0x140001ce4
xor r9d, r9d
lea rdx, [rsp + 0x40]
xor ecx, ecx
lea r8d, [r9 + 0x1a]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov r14, qword [rsp + 0x260]
lea rcx, [rsp + 0x40]
mov rbx, qword [rsp + 0x280]
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], di
jne 0x140001d00
test eax, eax
je 0x140001dcf
lea rcx, [rsp + 0x40]
sub rcx, 2
nop word [rax + rax]
cmp word [rcx + 2], di
lea rcx, [rcx + 2]
jne 0x140001d20
mov eax, dword [0x14002572c]
lea rdx, [rsp + 0x40]
sub rdx, 2
mov dword [rcx], eax
nop dword [rax + rax]
cmp word [rdx + 2], di
lea rdx, [rdx + 2]
jne 0x140001d40
movups xmm0, xmmword [str.PuddingDesktop.users]
movzx ecx, word [0x140025728]
movups xmm1, xmmword [0x140025710]
movups xmmword [rdx], xmm0
movsd xmm0, qword [0x140025720]
movups xmmword [rdx + 0x10], xmm1
movsd qword [rdx + 0x20], xmm0
mov word [rdx + 0x28], cx
lea rcx, [rsp + 0x40]
sub rcx, 2
cmp word [rcx + 2], di
lea rcx, [rcx + 2]
jne 0x140001d80
mov dword [rcx], eax
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140001da5
lea rcx, [rsp + 0x40]
call fcn.140005550
cmp word [rsp + 0x40], di
je 0x140001dbf
lea rax, [rsp + 0x40]
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], 0
jne 0x140001db5
mov r8, rdi
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1400051d0
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14000d1c0
add rsp, 0x268
pop rdi
pop rsi
ret
Function at 0x140002080
Capabilities:
Check if file exists

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x14003a200]
xor rax, rsp
mov qword [rsp + 0x230], rax
cmp qword [rcx + 0x48], 8
lea r8, [rcx + 0x30]
mov rbx, rcx
jb 0x1400020ac
mov r8, qword [r8]
lea r9, str.Config
lea rdx, str._s_s_
lea rcx, [rsp + 0x20]
call fcn.140005490
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1400020dd
lea rcx, [rsp + 0x20]
call fcn.140005550
lea rax, [rsp + 0x20]
sub rax, 2
nop word [rax + rax]
cmp word [rax + 2], 0
lea rax, [rax + 2]
jne 0x1400020f0
movups xmm0, xmmword [str.Related.ini]
movsd xmm1, qword [0x140025960]
movups xmmword [rax], xmm0
movsd qword [rax + 0x10], xmm1
cmp word [rsp + 0x20], 0
jne 0x14000211f
xor r8d, r8d
jmp 0x14000213b
lea rax, [rsp + 0x20]
or r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140002130
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x20]
call fcn.1400051d0
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14000d1c0
add rsp, 0x240
pop rbx
ret
Function at 0x140002830
Capabilities:
Check if file exists

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x14003a200]
xor rax, rsp
mov qword [rsp + 0x230], rax
cmp qword [rcx + 0x48], 8
lea r8, [rcx + 0x30]
mov rbx, rcx
jb 0x14000285c
mov r8, qword [r8]
lea r9, str.Config
lea rdx, str._s_s_
lea rcx, [rsp + 0x20]
call fcn.140005490
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14000288d
lea rcx, [rsp + 0x20]
call fcn.140005550
lea rax, [rsp + 0x20]
sub rax, 2
nop word [rax + rax]
cmp word [rax + 2], 0
lea rax, [rax + 2]
jne 0x1400028a0
mov ecx, dword [0x1400259a8]
movups xmm0, xmmword [str.Config.ini]
movups xmmword [rax], xmm0
mov dword [rax + 0x10], ecx
movzx ecx, word [0x1400259ac]
mov word [rax + 0x14], cx
cmp word [rsp + 0x20], 0
jne 0x1400028d6
xor r8d, r8d
jmp 0x1400028eb
lea rax, [rsp + 0x20]
or r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x1400028e0
lea rcx, [rbx + 0x50]
lea rdx, [rsp + 0x20]
call fcn.1400051d0
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14000d1c0
add rsp, 0x240
pop rbx
ret

Function at 0x1400029d0
Capabilities:
Check if file exists
Get common file path
Get program files directory

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x14003a200]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.140010590
xor r9d, r9d
lea rdx, [rsp + 0x20]
xor ecx, ecx
lea r8d, [r9 + 0x26]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp word [rsp + 0x20], 0
jne 0x140002a21
xor r8d, r8d
jmp 0x140002a3b
lea rax, [rsp + 0x20]
or r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140002a30
add rbx, 0x170
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.1400051d0
mov r8d, 1
lea rdx, [0x14002572c]
mov rcx, rbx
call fcn.140004f20
cmp qword [rbx + 0x18], 8
jb 0x140002a70
mov rcx, qword [rbx]
jmp 0x140002a73
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140002a90
lea r8d, [rax + 0x11]
mov rcx, rbx
lea rdx, str.C:Program_Files_
call fcn.1400051d0
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14000d1c0
add rsp, 0x240
pop rbx
ret
Function at 0x140003b30
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x248
mov rax, qword [0x14003a200]
xor rax, rsp
mov qword [rsp + 0x230], rax
movzx eax, byte [0x14003b058]
test al, al
jne 0x140003be2
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.140010590
mov r9d, 1
lea rdx, [rsp + 0x20]
xor ecx, ecx
lea r8d, [r9 + 0x19]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x140003bdb
lea rcx, [rsp + 0x20]
call fcn.140013d9c
lea rdx, str.config_systemprofile
lea rcx, [rsp + 0x20]
call fcn.14000fb18
test rax, rax
jne 0x140003bbb
lea rdx, str.cocuments_and_settingslocalService
lea rcx, [rsp + 0x20]
call fcn.14000fb18
test rax, rax
je 0x140003bdb
mov al, 1
mov byte [0x14003b058], al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14000d1c0
add rsp, 0x248
ret
movzx eax, byte [0x14003b058]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14000d1c0
add rsp, 0x248
ret