joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003e10
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je case.default.0x140003e40
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
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 + 0x30], rbp
mov qword [rsp + 0x38], rsi
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x140003e68
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140003e6a
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140003ec3
test ecx, ecx
jle 0x140003ea3
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call fcn.14000aa87
mov rax, qword [rdi + 0x58]
sub rbx, rbp
add r14, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140003ec3
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140003ec3
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x30]
sub rsi, rbx
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov ebp, 0xe7d7bad8
xchg ecx, eax
rcr byte [0x19b952ec3], cl
fild qword [rdi - 0x680144e9]
xchg esi, eax
lea edx, [rcx - 0x2093f557]
xchg esp, eax
Function at 0x140003ef0
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 0x140003f12
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140003f21
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 0x140003f44
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140003f46
xor ecx, ecx
mov qword [rsp + 0x20], rdi
movsxd rax, ecx
test ecx, ecx
je 0x140003f80
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.14000aa87
mov rax, qword [rsi + 0x50]
sub rbx, rdi
add r14, rdi
mov r8, rbx
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140004027
mov r9, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r9], rax
jne 0x140003fbb
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x140004001
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]
sub rbx, rax
add r14, rax
mov rdi, rbx
cmp rax, 0xfff
jne 0x140004040
cmp rbx, rax
ja 0x140003fd0
mov r8, rdi
test rdi, rdi
je 0x140004027
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]
mov r8, rdi
sub r8, rax
sub rbp, r8
mov rdi, qword [rsp + 0x20]
mov rax, rbp
mov rbx, qword [rsp + 0x28]
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
sub rbp, rbx
jmp 0x14000402a
pop rdi
inc dword [rax]
scasd eax, dword [rdi]
jp 0x14001ccb4
fcomp st(7)
test dword gs:[eip - 0x504c40c1], 0x3b204fbf
cmp eax, 0xff5fd7eb
scasd eax, dword [rdi]
stosd dword [rdi], eax
xchg edi, eax
invalid
or dil, bpl
leave
sub edi, dword [rbx + 3]
push rdx
invalid
Function at 0x140004884
Capabilities:
Delete directory

Disassembly:
push rbp
push r15
xor rax, rax
push rax
push rax
sub rsp, 0x28
call fcn.140012b50
mov r15, qword [0x140020514]
cmp r15, 1
jne 0x140004953
push qword [0x140020604]
pop rcx
call fcn.14000dd04
mov r15, rax
and r15, r15
jle 0x1400048e9
mov rcx, qword [0x140020604]
call fcn.14000dd0c
mov rcx, qword [0x140020604]
call fcn.14000dd20
or rax, rax
je 0x1400048e9
mov rbp, qword [0x14002060c]
push qword [rbp + 0x10]
pop rcx
call fcn.14000e1bc
jmp 0x1400048c6
push qword [0x1400205f4]
pop rcx
call fcn.14000dd04
mov qword [rsp + 0x28], rax
mov r15, qword [rsp + 0x28]
and r15, r15
jle 0x140004953
push 5
push 0
push 1
push qword [0x1400205f4]
pop rcx
pop rdx
pop r8
pop r9
call fcn.140009060
mov rcx, qword [0x1400205f4]
call fcn.14000dd0c
mov rcx, qword [0x1400205f4]
call fcn.14000dd20
or rax, rax
je 0x140004953
mov rbp, qword [0x1400205fc]
push qword [rbp + 0x14]
pop rcx
call sub.KERNEL32.dll_RemoveDirectoryW
jmp 0x140004930
mov rax, 1
jmp 0x14000495f
add rsp, 0x38
pop r15
pop rbp
ret

Function at 0x140006b38
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x14001f190]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret

Function at 0x140007204
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.140007194
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140021210]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140020640]
jmp 0x140007240
cmp qword [rbx + 0x18], rdi
je 0x140007247
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140007237
jmp 0x140007261
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x140020640]
call fcn.1400123b8
lea rcx, [0x140021210]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xchg edi, eax
movabs dword [0x5fa1fe323c4779a3], eax
jns 0x14003f6ca
cmp al, 0x32
invalid
movabs eax, dword [0xe6337386552dad5f]
xchg esp, eax
fidiv word ds:[rsi - 0x30b91ec4]
iretd
invalid
iretd
mov bpl, 0xf3
xchg byte [rcx - 0x7e339c66], dl
xchg r8, rax
invalid
outsb dx, byte [rsi]
cmp ebp, dword [rdi + 1]
push 0xffffffffffffffdf
invalid
adc r12b, byte [r9d + 0x7c]
mov esi, 0x981cafbe
invalid
xor edx, dword [rsi - 0x500ff960]
fsubr dword [rdx + 0x7952267e]
scasd eax, dword [rdi]
invalid
add dword [rax + 0x6b77e0b1], edi
mov dl, 0x5e
invalid
cmc
jns 0x14003f699
rol byte [rbp + 0x56], cl
xchg esp, eax
cmpsb byte [rsi], byte [rdi]
mov dl, 0x75
retf
push rsp
scasd eax, dword [rdi]
invalid
Function at 0x140aac058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140aac1df
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 0x140aac089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140aac06f
add dl, dl
jne 0x140aac096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140aac0f6
xor eax, eax
add dl, dl
jne 0x140aac0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140aac1ad
add dl, dl
jne 0x140aac0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140aac0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140aac0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140aac0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140aac0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140aac07e
mov eax, 1
add dl, dl
jne 0x140aac106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140aac113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140aac0fb
sub eax, ebx
mov ebx, 1
jne 0x140aac14c
mov ecx, 1
add dl, dl
jne 0x140aac12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140aac13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140aac123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140aac07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140aac168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140aac175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140aac15d
cmp eax, 0x7d00
jae 0x140aac19b
cmp eax, 0x500
jb 0x140aac196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140aac07e
cmp eax, 0x7f
ja 0x140aac19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140aac07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140aac1d2
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 0x140aac07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x180001100
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
xor ebx, ebx
movsxd rbp, edx
xor r11d, r11d
xor r10d, r10d
mov r14, r9
mov r15, r8
mov rdi, rcx
test edx, edx
jle 0x18000123c
mov rsi, rcx
lea r12, [0x180026500]
neg rsi
mov rdx, rcx
movzx eax, byte [rdx]
cmp al, 0x3d
jne 0x180001156
inc r11d
cmp r11d, 2
jg 0x1800011a9
cmp al, 0x7f
ja 0x1800011a9
movzx eax, al
movzx ecx, byte [rax + r12]
cmp cl, 0x7f
je 0x1800011a9
cmp cl, 0x40
jae 0x180001171
test r11d, r11d
jne 0x1800011a9
inc rdx
inc ebx
inc r10d
lea rax, [rsi + rdx]
cmp rax, rbp
jl 0x180001146
test ebx, ebx
je 0x18000123c
lea eax, [rbx + rbx*2]
lea eax, [rax*2 + 7]
sar eax, 3
cmp dword [r9], eax
jge 0x1800011b3
mov dword [r9], eax
mov eax, 0xfffffff0
jmp 0x18000123e
mov eax, 0xffffffee
jmp 0x18000123e
xor r8d, r8d
xor r11d, r11d
mov r9d, 3
mov rax, r15
test r10d, r10d
jle 0x180001236
nop word [rax + rax]
movzx ecx, byte [rdi]
movzx edx, byte [rcx + r12]
xor ecx, ecx
cmp dl, 0x40
sete cl
and edx, 0x3f
sub r9d, ecx
inc r11d
mov ecx, r8d
mov r8d, edx
shl ecx, 6
or r8d, ecx
cmp r11d, 4
jne 0x18000122b
xor r11d, r11d
test r9d, r9d
jle 0x18000120e
mov ecx, r8d
shr ecx, 0x10
mov byte [rax], cl
inc rax
cmp r9d, 1
jle 0x18000121f
mov ecx, r8d
shr ecx, 8
mov byte [rax], cl
inc rax
cmp r9d, 2
jle 0x18000122b
mov byte [rax], r8b
inc rax
dec r10d
inc rdi
test r10d, r10d
jg 0x1800011d0
sub eax, r15d
mov dword [r14], eax
xor eax, eax
mov rbx, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
pop r15
pop r14
pop r12
ret
Function at 0x1800020e0
Capabilities:
Read .ini file

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x798]
sub rsp, 0x898
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x18003b080]
xor rax, rsp
mov qword [rbp + 0x780], rax
mov edi, r9d
mov r14, r8
mov rsi, rdx
mov rbx, rcx
lea r9, [rcx + 0x90]
cmp qword [r9 + 0x18], 8
jb 0x18000212f
mov r9, qword [r9]
mov r8d, edi
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, edi
jne 0x1800022ab
mov qword [rsp + 0x50], 7
xor r15d, r15d
mov qword [rsp + 0x48], r15
mov word [rsp + 0x38], r15w
xor r8d, r8d
lea rdx, [0x180026758]
lea rcx, [rsp + 0x38]
call fcn.1800017f0
nop
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp - 0x80]
call fcn.18000f7e0
mov r8d, edi
lea rdx, [0x1800265e8]
lea rcx, [rbp - 0x80]
call fcn.180001a70
lea rax, [rbp - 0x80]
mov r9, r14
mov r8, rsi
lea rdx, [rsp + 0x58]
mov rcx, rbx
mov qword [rsp + 0x20], rax
cmp byte [rbx + 1], r15b
je 0x180002206
call fcn.180001fa0
mov rbx, rax
lea rax, [rsp + 0x38]
cmp rax, rbx
je 0x180002204
mov r8, qword [rsp + 0x50]
cmp r8, 8
jb 0x1800021e2
inc r8
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x38]
call fcn.180001940
mov qword [rsp + 0x50], 7
mov qword [rsp + 0x48], r15
mov word [rsp + 0x38], r15w
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.180001350
nop
jmp 0x180002257
call fcn.1800020a0
mov rbx, rax
lea rax, [rsp + 0x38]
cmp rax, rbx
je 0x180002257
mov r8, qword [rsp + 0x50]
cmp r8, 8
jb 0x180002235
inc r8
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x38]
call fcn.180001940
mov qword [rsp + 0x50], 7
mov qword [rsp + 0x48], r15
mov word [rsp + 0x38], r15w
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.180001350
nop
mov r8, qword [rsp + 0x70]
cmp r8, 8
jb 0x180002274
inc r8
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x58]
call fcn.180001940
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rcx, qword [rsp + 0x38]
call fcn.180012af4
mov ebx, eax
mov r8, qword [rsp + 0x50]
cmp r8, 8
jb 0x1800022a9
inc r8
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x38]
call fcn.180001940
mov eax, ebx
mov rcx, qword [rbp + 0x780]
xor rcx, rsp
call fcn.18000dae0
add rsp, 0x898
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1800022d0
Capabilities:
Read .ini file

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x888
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x18003b080]
xor rax, rsp
mov qword [rsp + 0x870], rax
mov r15, r9
mov r14, r8
mov rbx, rdx
mov rbp, rcx
mov qword [rsp + 0x40], rdx
mov rsi, qword [rsp + 0x8e0]
xor edi, edi
mov dword [rsp + 0x30], edi
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0x70]
call fcn.18000f7e0
lea rax, [rbp + 0x90]
cmp qword [rax + 0x18], 8
jb 0x18000233d
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x400
lea r9, [rsp + 0x70]
mov r8, rsi
mov rdx, r15
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rdi
cmp qword [rbx + 0x18], 8
jb 0x180002376
mov rax, qword [rbx]
jmp 0x180002379
mov rax, rbx
mov word [rax], di
cmp word [rsp + 0x70], di
je 0x18000239a
lea rax, [rsp + 0x70]
or rdi, 0xffffffffffffffff
nop dword [rax]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x180002390
mov r8, rdi
lea rdx, [rsp + 0x70]
mov rcx, rbx
call fcn.1800017f0
mov dword [rsp + 0x30], 1
cmp qword [rbx + 0x18], 8
jb 0x1800023be
mov rax, qword [rbx]
jmp 0x1800023c1
mov rax, rbx
mov r11, rsi
sub r11, rax
nop word [rax + rax]
movzx r10d, word [rax]
movzx edx, word [rax + r11]
sub r10d, edx
jne 0x1800023e6
add rax, 2
test edx, edx
jne 0x1800023d0
test r10d, r10d
jne 0x180002438
mov qword [rsp + 0x20], rsi
mov r9, r15
mov r8, r14
lea rdx, [rsp + 0x48]
mov rcx, rbp
cmp byte [rbp + 1], r10b
je 0x18000240b
call fcn.180001fa0
jmp 0x180002410
call fcn.1800020a0
mov rdx, rax
mov rcx, rbx
call fcn.1800012e0
mov r8, qword [rsp + 0x60]
cmp r8, 8
jb 0x180002438
inc r8
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x48]
call fcn.180001940
mov rax, rbx
mov rcx, qword [rsp + 0x870]
xor rcx, rsp
call fcn.18000dae0
add rsp, 0x888
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1800059d0
Capabilities:
Hash data with md5

Disassembly:
push rbx
sub rsp, 0x20
mov byte [rcx + 0x68], 0
xor eax, eax
mov qword [rcx + 0x10], rax
mov rbx, rcx
mov dword [rcx], 0x67452301
mov dword [rcx + 4], 0xefcdab89
mov dword [rcx + 8], 0x98badcfe
mov dword [rcx + 0xc], 0x10325476
cmp qword [rdx + 0x18], 0x10
mov r8, qword [rdx + 0x10]
jb 0x180005a0c
mov rdx, qword [rdx]
call fcn.180006690
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x180007fc0
Capabilities:
Check if file exists
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
or r8, 0xffffffffffffffff
mov rbx, rcx
mov rdi, r8
nop dword [rax]
inc rdi
cmp word [rcx + rdi*2], 0
jne 0x180007fe0
lea eax, [rdi + 1]
movsxd rcx, eax
mov eax, 2
mul rcx
cmovo rax, r8
mov rcx, rax
call fcn.18000db74
mov rsi, rax
sub rax, rbx
nop word [rax + rax]
movzx ecx, word [rbx]
mov word [rax + rbx], cx
lea rbx, [rbx + 2]
test cx, cx
jne 0x180008010
xor r14d, r14d
movsxd rdi, edi
mov ebx, r14d
lea ebp, [r14 + 1]
test rdi, rdi
js 0x18000807f
mov qword [rsp + 0x40], r15
mov r15d, 0x5c
nop dword [rax]
cmp word [rsi + rbx*2], r15w
jne 0x18000806d
mov rcx, rsi
mov word [rsi + rbx*2], r14w
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x180008068
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x180008077
mov word [rsi + rbx*2], r15w
inc rbx
cmp rbx, rdi
jle 0x180008040
jmp 0x18000807a
mov ebp, r14d
mov r15, qword [rsp + 0x40]
mov rcx, rsi
call fcn.18000db7c
mov rbx, qword [rsp + 0x48]
mov eax, ebp
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x1800080a0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x18003b080]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov qword [rsp + 0x290], rbx
mov rsi, rdx
xor bl, bl
mov rbp, rcx
call fcn.180008410
xor edi, edi
test al, al
je 0x18000813c
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rdi
call fcn.180008320
test al, al
je 0x18000813c
mov r8, qword [rsp + 0x30]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x298], r14
lea edx, [rdi + 0x1a]
mov r14d, 1
mov qword [rsp + 0x20], rax
mov r9d, r14d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
movzx ebx, bl
cmove ebx, r14d
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14, qword [rsp + 0x298]
test bl, bl
jne 0x180008150
xor r9d, r9d
lea rdx, [rsp + 0x40]
xor ecx, ecx
lea r8d, [r9 + 0x1a]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov rbx, qword [rsp + 0x290]
lea rcx, [rsp + 0x40]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], di
jne 0x180008161
test eax, eax
je 0x18000821f
lea rcx, [rsp + 0x40]
sub rcx, 2
nop dword [rax + rax]
cmp word [rcx + 2], di
lea rcx, [rcx + 2]
jne 0x180008180
mov eax, dword [0x18002675c]
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 0x1800081a0
xor r8d, r8d
nop dword [rax]
movzx ecx, word [rsi + r8*2]
mov word [rdx + r8*2], cx
lea r8, [r8 + 1]
test cx, cx
jne 0x1800081b0
lea rcx, [rsp + 0x40]
sub rcx, 2
nop dword [rax]
cmp word [rcx + 2], di
lea rcx, [rcx + 2]
jne 0x1800081d0
mov dword [rcx], eax
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1800081f5
lea rcx, [rsp + 0x40]
call fcn.180007fc0
cmp word [rsp + 0x40], di
je 0x18000820f
lea rax, [rsp + 0x40]
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], 0
jne 0x180008205
mov r8, rdi
lea rdx, [rsp + 0x40]
mov rcx, rbp
call fcn.1800017f0
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.18000dae0
add rsp, 0x260
pop rdi
pop rsi
pop rbp
ret

Function at 0x180008410
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x248
mov rax, qword [0x18003b080]
xor rax, rsp
mov qword [rsp + 0x230], rax
movzx eax, byte [0x18003c238]
test al, al
jne 0x1800084c2
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.18000f7e0
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 0x1800084bb
lea rcx, [rsp + 0x20]
call fcn.18001568c
lea rdx, str.config_systemprofile
lea rcx, [rsp + 0x20]
call fcn.180011060
test rax, rax
jne 0x18000849b
lea rdx, str.documents_and_settingslocalservice
lea rcx, [rsp + 0x20]
call fcn.180011060
test rax, rax
je 0x1800084bb
mov al, 1
mov byte [0x18003c238], al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.18000dae0
add rsp, 0x248
ret
movzx eax, byte [0x18003c238]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.18000dae0
add rsp, 0x248
ret
Function at 0x1800088b0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov ebp, r9d
mov edi, r8d
mov rsi, rdx
mov r14, rcx
xor bl, bl
call fcn.180008410
mov r15d, 1
test al, al
je 0x180008936
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], 0
call fcn.180008320
test al, al
je 0x180008936
mov r8, qword [rsp + 0x30]
mov r9d, r15d
mov edx, edi
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
movzx ebx, bl
cmove ebx, r15d
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x180008936
movzx eax, bl
jmp 0x180008954
mov r9d, ebp
mov r8d, edi
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
movzx ecx, bl
cmovne ecx, r15d
movzx eax, cl
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x180008a50
Capabilities:
Create process on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x180], rbx
mov rax, qword [0x18003b080]
xor rax, rsp
mov qword [rbp + 0x20], rax
mov r15d, r9d
movzx r12d, r8b
mov rsi, rdx
mov rdi, rcx
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rsp + 0x70]
call fcn.18000f7e0
mov dword [rsp + 0x70], 0x68
xor eax, eax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rbp - 8], 7
xor r13d, r13d
mov qword [rbp - 0x10], r13
mov word [rbp - 0x20], r13w
mov qword [rbp + 0x18], 7
mov qword [rbp + 0x10], r13
mov word [rbp], r13w
lea r14d, [rax + 1]
or rbx, 0xffffffffffffffff
test rsi, rsi
je 0x180008b82
cmp word [rsi], r13w
jne 0x180008afe
mov r8d, r13d
jmp 0x180008b0c
mov r8, rbx
inc r8
cmp word [rsi + r8*2], 0
jne 0x180008b01
mov rdx, rsi
lea rcx, [rbp]
call fcn.1800017f0
cmp qword [rbp + 0x10], 0
je 0x180008b82
mov r8, r14
lea rdx, [0x180027078]
lea rcx, [rbp - 0x20]
call fcn.1800017f0
cmp word [rdi], 0
jne 0x180008b3d
mov r8, r13
jmp 0x180008b4b
mov r8, rbx
inc r8
cmp word [rdi + r8*2], 0
jne 0x180008b40
mov rdx, rdi
lea rcx, [rbp - 0x20]
call fcn.1800042f0
mov r8d, 2
lea rdx, [0x18002707c]
lea rcx, [rbp - 0x20]
call fcn.1800042f0
mov r9, rbx
xor r8d, r8d
lea rdx, [rbp]
lea rcx, [rbp - 0x20]
call fcn.180001580
jmp 0x180008ba9
cmp word [rdi], 0
jne 0x180008b90
mov rbx, r13
jmp 0x180008b9a
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x180008b90
mov r8, rbx
mov rdx, rdi
lea rcx, [rbp - 0x20]
call fcn.1800017f0
lea rdx, [rbp - 0x20]
cmp qword [rbp - 8], 8
cmovae rdx, qword [rbp - 0x20]
lea rcx, str.CreateRunProcess__s_
call fcn.180009750
lea rdx, [rbp - 0x20]
cmp qword [rbp - 8], 8
cmovae rdx, qword [rbp - 0x20]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x180008c10
mov r14d, r13d
jmp 0x180008c41
test r12b, r12b
je 0x180008c2a
or edx, 0xffffffff
test r15d, r15d
cmovg edx, r15d
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov r8, qword [rbp + 0x18]
cmp r8, 8
jb 0x180008c5b
inc r8
mov rdx, qword [rbp]
lea rcx, [rbp]
call fcn.180001940
mov qword [rbp + 0x18], 7
mov qword [rbp + 0x10], r13
mov word [rbp], r13w
mov r8, qword [rbp - 8]
cmp r8, 8
jb 0x180008c86
inc r8
mov rdx, qword [rbp - 0x20]
lea rcx, [rbp - 0x20]
call fcn.180001940
mov eax, r14d
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.18000dae0
mov rbx, qword [rsp + 0x180]
add rsp, 0x130
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret