joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140090e50
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x20], r9d
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
xor eax, eax
mov r14, r8
mov qword [rsp + 0x30], rax
mov r15, rdx
mov dword [rsp + 0x38], eax
mov rsi, rcx
test r8, r8
je 0x140090fff
xor ebp, ebp
mov word [r8], bp
mov rcx, qword [rcx + 8]
cmp rcx, 0xffffffffffffffff
jne 0x140090e94
jmp 0x140090ed6
mov eax, dword [rdx]
lea r8, [rsp + 0x84]
mov edx, eax
mov qword [rsp + 0x80], rax
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x80], eax
cmp eax, 0xffffffff
jne 0x140090ece
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, 0xffffffffffffffff
test eax, eax
jne 0x140090ed6
mov rcx, qword [rsp + 0x80]
mov eax, dword [r15]
cmp rcx, rax
jne 0x140090fff
cmp qword [rsi + 8], 0xffffffffffffffff
je 0x140090fff
mov ebx, ebp
nop
mov rcx, qword [rsi + 8]
lea rdx, [rsp + 0x30]
mov r8d, recv
mov eax, ebx
sub r8d, ebx
mov dword [rsp + 0x88], ebp
add rdx, rax
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140090f37
mov eax, dword [rsp + 0x88]
test eax, eax
je 0x140090f37
add ebx, eax
cmp ebx, 0xc
jb 0x140090ef0
mov eax, ebx
lock add qword [0x1401f4d70], rax
cmp ebx, 0xc
jne 0x140090fff
mov ebx, dword [r15 + 4]
mov ecx, dword [rsp + 0x30]
cmp ecx, ebx
je 0x140090fff
sub ebx, ecx
cmp ebx, 7
jbe 0x140090fff
mov edi, ebx
cmp rdi, 0xffe
jae 0x140090fff
mov edx, dword [r15]
xor r8d, r8d
add edx, ecx
mov rcx, rsi
call fcn.140004470
mov ecx, dword [r15]
add ecx, dword [rsp + 0x30]
cmp rax, rcx
jne 0x140090fff
mov r8d, ebx
mov rdx, r14
mov rcx, rsi
call fcn.14000c1e0
cmp eax, ebx
jne 0x140090fff
xor dl, dl
lea r11, [0x1401be080]
mov r8, r14
mov r9, rbp
mov r10d, edi
nop dword [rax]
nop dword [rax + rax]
movzx ecx, byte [r8]
lea r8, [r8 + 1]
mov rax, r9
inc r9
and eax, 0xf
add dl, byte [r11 + rax*4]
xor dl, cl
mov byte [r8 - 1], dl
movzx edx, cl
sub r10, 1
jne 0x140090fc0
shr rdi, 1
mov al, 1
mov word [r14 + rdi*2], bp
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov rbx, qword [rsp + 0x70]
xor al, al
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400914e0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
push rdi
push r14
sub rsp, 0x268
mov r14, r8
mov rdi, rcx
test rdx, rdx
je 0x140091768
test r8, r8
je 0x140091768
mov qword [rsp + 0x20], rdx
lea r9, str._s:Zone.Identifier:_DATA
mov qword [rsp + 0x250], r15
lea rcx, [rsp + 0x40]
xor r15d, r15d
mov edx, 0x103
mov word [r8], r15w
lea r8, [r15 - 1]
call fcn.140003dd0
mov rcx, qword [rdi + 8]
cmp rcx, 0xffffffffffffffff
je 0x14009154d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 8], 0xffffffffffffffff
xor r9d, r9d
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x280], rbx
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov qword [rsp + 0x260], rbp
lea r8d, [r9 + 3]
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rdi + 8], rax
cmp rax, 0xffffffffffffffff
je 0x14009173e
lea rdx, [rsp + 0x288]
mov qword [rsp + 0x258], rsi
mov rcx, rax
mov qword [rsp + 0x288], r15
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14009171e
mov rsi, qword [rsp + 0x288]
test rsi, rsi
je 0x14009171e
lea rcx, [rsi + 0x10]
lea rdx, [0x1401ae572]
call fcn.14002ec60
mov rbp, rax
test rax, rax
je 0x14009171e
cmp qword [rdi + 8], 0xffffffffffffffff
je 0x140091661
mov rbx, r15
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [rbx + rbp]
mov r8d, 0xfffffff
mov dword [rsp + 0x298], r15d
mov rax, rsi
mov qword [rsp + 0x20], r15
sub rax, rbx
lea r9, [rsp + 0x298]
cmp rax, r8
cmovb r8d, eax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14009164d
mov eax, dword [rsp + 0x298]
test eax, eax
je 0x14009164d
add rbx, rax
cmp rbx, rsi
jb 0x140091600
lock add qword [0x1401f4d70], rbx
cmp rbx, rsi
jne 0x140091661
mov word [rsi + rbp], r15w
jmp 0x14009166c
mov rcx, rbp
call fcn.14002ec58
mov rbp, r15
mov rcx, qword [rdi + 8]
cmp rcx, 0xffffffffffffffff
je 0x140091684
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 8], 0xffffffffffffffff
test rbp, rbp
je 0x140091736
lea rdx, str.HostUrl
mov rcx, rbp
call fcn.140030e78
mov rbx, rax
test rax, rax
je 0x140091714
add rbx, 8
lea rdx, [0x1401c8964]
mov rcx, rbx
call fcn.140030e78
test rax, rax
je 0x1400916bf
mov byte [rax], r15b
lea rdx, [0x1401c8968]
mov rcx, rbx
call fcn.140030e78
test rax, rax
je 0x1400916d6
mov byte [rax], r15b
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rbx + rax], r15b
jne 0x1400916e0
cmp rax, 0x103
jae 0x140091714
mov dword [rsp + 0x28], 0x103
mov r9d, 0xffffffff
mov r8, rbx
mov qword [rsp + 0x20], r14
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov rcx, rbp
call fcn.14002ec58
jmp 0x140091736
mov rcx, qword [rdi + 8]
cmp rcx, 0xffffffffffffffff
je 0x140091736
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 8], 0xffffffffffffffff
mov rsi, qword [rsp + 0x258]
cmp word [r14], r15w
mov r15, qword [rsp + 0x250]
mov rbp, qword [rsp + 0x260]
setne al
mov rbx, qword [rsp + 0x280]
add rsp, 0x268
pop r14
pop rdi
ret
xor al, al
add rsp, 0x268
pop r14
pop rdi
ret
Function at 0x140091780
Capabilities:
Encode data using xor
Parse pe header

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push r12
push r14
push r15
sub rsp, 0x1f8
mov rsi, r9
mov r14, r8
mov rbx, rdx
test rdx, rdx
je 0x1400919fe
cmp dword [r8], 0x4000
jb 0x1400919fe
test r9, r9
je 0x1400919fe
cmp word [r9], 0
je 0x1400919fe
mov rax, 0xffffffffffffffff
inc rax
cmp word [r9 + rax*2], 0
jne 0x1400917d4
inc eax
lea rdx, [0x1401ae572]
and eax, 0xfffffff8
lea r15d, [rax*2 + 0x10]
mov ecx, r15d
mov r12d, r15d
call fcn.14002ec60
mov rbp, rax
test rax, rax
je 0x1400919fe
mov qword [rsp + 0x248], rdi
mov eax, r12d
shr rax, 2
mov rdi, rbp
mov qword [rsp + 0x1f0], r13
mov rcx, rax
mov qword [rsp + 0x238], rax
rep movsd dword [rdi], dword [rsi]
test r15d, r15d
je 0x14009186e
xor dl, dl
lea r8, [0x1401be080]
xor edi, edi
mov rcx, rbp
mov esi, r12d
nop word [rax + rax]
mov rax, rdi
lea rcx, [rcx + 1]
and eax, 0xf
inc rdi
add dl, byte [r8 + rax*4]
xor byte [rcx - 1], dl
movzx edx, byte [rcx - 1]
sub rsi, 1
jne 0x140091850
xor r13b, r13b
mov qword [rsp + 0x230], 0
mov eax, 0x5a4d
cmp word [rbx], ax
jne 0x1400919d1
movsxd rax, dword [rbx + 0x3c]
mov r14d, dword [r14]
cmp eax, r14d
jge 0x1400919d1
cmp dword [rax + rbx], 0x4550
mov r12, rax
jne 0x1400919d1
movzx edi, word [rax + rbx + 4]
mov eax, 0x14c
cmp di, ax
je 0x1400918c8
mov eax, 0x8664
cmp di, ax
jne 0x1400919d1
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0xe0
call fcn.14014e180
xor edx, edx
lea rcx, [rsp + 0x100]
mov r8d, 0xf0
call fcn.14014e180
lea rsi, [rbx + 0x18]
mov eax, 0x14c
add rsi, r12
cmp di, ax
jne 0x14009191b
lea rdi, [rsp + 0x20]
mov ecx, 0x38
rep movsd dword [rdi], dword [rsi]
lea rsi, [rsp + 0xa0]
mov eax, 0x98
jmp 0x140091937
lea rdi, [rsp + 0x100]
mov ecx, 0x3c
rep movsd dword [rdi], dword [rsi]
lea rsi, [rsp + 0x190]
mov eax, 0xa8
lea rdi, [rsp + 0x230]
mov ecx, 2
rep movsd dword [rdi], dword [rsi]
mov r8d, dword [rsp + 0x230]
lea rdi, [r12 + rax]
test r15d, r15d
je 0x1400919a3
test rdi, rdi
je 0x1400919a3
test r8d, r8d
je 0x1400919a3
mov rcx, qword [rsp + 0x230]
shr rcx, 0x20
test ecx, ecx
je 0x1400919a3
cmp rdi, r14
jge 0x1400919d1
lea edx, [rcx + r15]
add rdi, rbx
mov rcx, qword [rsp + 0x240]
lea eax, [r14 + r15]
lea rsi, [rsp + 0x230]
mov dword [rsp + 0x234], edx
mov dword [rcx], eax
mov ecx, 2
rep movsd dword [rdi], dword [rsi]
jmp 0x1400919aa
mov edx, dword [rsp + 0x234]
test r8d, r8d
je 0x1400919d1
test edx, edx
je 0x1400919d1
mov rcx, qword [rsp + 0x238]
mov rsi, rbp
mov edi, edx
mov r13b, 1
mov edx, r15d
sub rdi, rdx
add rdi, rbx
add rdi, r8
rep movsd dword [rdi], dword [rsi]
mov rcx, rbp
call fcn.14002ec58
mov rdi, qword [rsp + 0x248]
movzx eax, r13b
mov r13, qword [rsp + 0x1f0]
add rsp, 0x1f8
pop r15
pop r14
pop r12
pop rsi
pop rbp
pop rbx
ret
xor al, al
add rsp, 0x1f8
pop r15
pop r14
pop r12
pop rsi
pop rbp
pop rbx
ret
Function at 0x140092fb0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Move file

Disassembly:
push rbp
push rsi
sub rsp, 0x498
mov rbp, rdx
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x208
xor esi, esi
call fcn.14014e180
test rbp, rbp
je 0x14009323a
mov qword [rsp + 0x4b8], rdi
lea r9, [0x1401c0df0]
mov qword [rsp + 0x4c0], r14
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x490], r15
mov rdi, 0xffffffffffffffff
lea r15, [0x1401c0de0]
mov qword [rsp + 0x4b0], rbx
mov qword [rsp + 0x28], r15
mov r8, rdi
mov edx, 0x104
mov qword [rsp + 0x20], rbp
call fcn.140003dd0
lea rdx, [rsp + 0x240]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r14, rax
cmp rax, rdi
je 0x1400931a7
nop word [rax + rax]
test byte [rsp + 0x240], 0x10
je 0x1400930e6
lea rdx, [0x1401ba828]
lea rcx, [rsp + 0x26c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x140093185
lea rdx, [0x1401c0de8]
lea rcx, [rsp + 0x26c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x140093185
lea rax, [rsp + 0x26c]
mov r8, rdi
mov qword [rsp + 0x28], rax
lea r9, [0x1401c0df0]
mov edx, 0x104
mov qword [rsp + 0x20], rbp
lea rcx, [rsp + 0x30]
call fcn.140003dd0
mov r9b, 1
mov byte [rsp + 0x20], 1
mov r8, r15
lea rdx, [rsp + 0x30]
lea rcx, [0x14021bde8]
call fcn.140092fb0
add esi, eax
jmp 0x140093185
lea rax, [rsp + 0x26c]
mov r8, rdi
mov qword [rsp + 0x28], rax
lea r9, [0x1401c0df0]
mov edx, 0x104
mov qword [rsp + 0x20], rbp
lea rcx, [rsp + 0x30]
call fcn.140003dd0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140093183
lea rcx, [rsp + 0x30]
mov rax, rdi
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140093130
cmp eax, dword [0x1401f33b0]
jae 0x140093183
mov rbx, qword [0x1401f33a8]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd r8, eax
lea rdx, [rsp + 0x30]
add r8, r8
mov rcx, rbx
call fcn.14014e520
test eax, eax
je 0x140093183
xor edx, edx
lea rcx, [rsp + 0x30]
lea r8d, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov byte [0x14021bde8], 1
inc esi
lea rdx, [rsp + 0x240]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140093050
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov r15, qword [rsp + 0x490]
mov r14, qword [rsp + 0x4c0]
test eax, eax
je 0x1400931d0
inc esi
jmp 0x14009321e
inc rdi
cmp word [rbp + rdi*2], 0
jne 0x1400931d0
cmp edi, dword [0x1401f33b0]
jae 0x14009321e
mov rbx, qword [0x1401f33a8]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd r8, eax
mov rdx, rbp
add r8, r8
mov rcx, rbx
call fcn.14014e520
test eax, eax
je 0x14009321e
xor edx, edx
mov rcx, rbp
lea r8d, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov byte [0x14021bde8], 1
mov rdi, qword [rsp + 0x4b8]
mov eax, esi
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x498
pop rsi
pop rbp
ret
xor eax, eax
add rsp, 0x498
pop rsi
pop rbp
ret
Function at 0x140093530
Capabilities:
Delete file
Get common file path
Get startup folder

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbx
push rbp
push r14
sub rsp, 0x670
mov rbp, r9
mov rbx, r8
test r8, r8
je 0x140093708
test r9, r9
je 0x140093708
xor r14d, r14d
lea r8, [rax + 0x18]
xor ecx, ecx
mov qword [rax + 0x18], r14
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x140093708
cmp qword [rsp + 0x6a0], r14
je 0x140093708
xor edx, edx
mov qword [rsp + 0x698], rdi
mov r8d, 0x208
lea rcx, [rsp + 0x40]
call fcn.14014e180
mov rcx, qword [rsp + 0x6a0]
lea rdx, [rsp + 0x40]
xor dil, dil
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x1400936e2
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rbp
lea r9, str._s_s.lnk
mov qword [rsp + 0x20], rax
mov edx, 0x103
lea r8, [r14 - 1]
lea rcx, [rsp + 0x250]
call fcn.140003dd0
lea rax, [rsp + 0x690]
mov qword [rsp + 0x690], r14
lea r9, [0x140150d80]
mov qword [rsp + 0x20], rax
xor edx, edx
lea r8d, [r14 + 1]
lea rcx, [0x140150da0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x1400936e2
mov rcx, qword [rsp + 0x690]
test rcx, rcx
je 0x1400936e2
mov qword [rsp + 0x30], r14
lea r8, [rsp + 0x30]
mov rax, qword [rcx]
lea rdx, [0x140150db0]
call qword [rax]
test eax, eax
js 0x1400936b7
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400936b7
mov rax, qword [rcx]
lea rdx, [rsp + 0x250]
xor r8d, r8d
call qword [rax + 0x28]
test eax, eax
js 0x1400936ac
mov rcx, qword [rsp + 0x690]
lea rdx, [rsp + 0x460]
mov r8d, 0x103
mov rax, qword [rcx]
call qword [rax + 0x40]
test eax, eax
js 0x1400936ac
lea rdx, [rsp + 0x460]
sub rdx, rbx
movzx ecx, word [rbx]
movzx eax, word [rbx + rdx]
sub ecx, eax
jne 0x1400936a6
add rbx, 2
test eax, eax
jne 0x140093693
test ecx, ecx
sete dil
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rsp + 0x690]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
test dil, dil
je 0x1400936e2
lea rcx, [rsp + 0x250]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
movzx edi, dil
cmove edi, r14d
mov rcx, qword [rsp + 0x6a0]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
movzx eax, dil
mov rdi, qword [rsp + 0x698]
add rsp, 0x670
pop r14
pop rbp
pop rbx
ret
xor eax, eax
add rsp, 0x670
pop r14
pop rbp
pop rbx
ret
Function at 0x140093720
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 8], rcx
push rsi
push r14
push r15
sub rsp, 0x250
mov rsi, r9
mov r14, r8
mov r15d, edx
test r8, r8
je 0x14009384d
test r9, r9
je 0x14009384d
cmp qword [rsp + 0x298], 0
je 0x14009384d
mov ebp, dword [rsp + 0x2a0]
test ebp, ebp
je 0x14009384d
mov rbx, qword [rsp + 0x2a8]
test rbx, rbx
je 0x14009384d
xor edx, edx
mov qword [rax + 8], 0
mov r8d, 0x208
lea rcx, [rsp + 0x40]
call fcn.14014e180
lea r8, [rsp + 0x270]
mov edx, r15d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x14009384d
mov rcx, qword [rsp + 0x270]
test rcx, rcx
je 0x14009384d
lea rdx, [rsp + 0x40]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov rcx, qword [rsp + 0x270]
test eax, eax
je 0x140093847
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, qword [rsp + 0x290]
lea edx, [rbp - 1]
mov rcx, qword [rsp + 0x298]
lea r9, str._s_s.lnk
mov qword [rsp + 0x28], rax
mov r8, 0xffffffffffffffff
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call fcn.140003dd0
cmp word [rbx], 0
mov r8, rsi
mov r9, qword [rsp + 0x298]
mov rdx, r14
cmove rbx, rsi
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], rbx
call fcn.140093ec0
jmp 0x14009384f
call qword [sym.imp.ole32.dll_CoTaskMemFree]
xor eax, eax
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rsi
ret
Function at 0x140093870
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r14
lea rbp, [rsp - 0x350]
sub rsp, 0x450
mov r12, r8
lea rcx, [rbp + 0x140]
mov esi, edx
mov r8d, 0x208
xor edx, edx
mov rbx, r9
call fcn.14014e180
xor r14d, r14d
xor dil, dil
mov qword [rbp + 0x380], r14
test r12, r12
je 0x140093aef
test rbx, rbx
je 0x140093aef
lea r8, [rbp + 0x380]
mov edx, esi
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x140093aef
mov rcx, qword [rbp + 0x380]
test rcx, rcx
je 0x140093aef
lea rdx, [rbp + 0x140]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x140093ad6
mov qword [rsp + 0x488], r15
lea rax, [rbp + 0x140]
mov ecx, 0x104
nop dword [rax]
cmp word [rax], r14w
je 0x140093930
add rax, 2
sub rcx, 1
jne 0x140093920
mov eax, 0x104
mov r15d, 0x7ffffffe
sub rax, rcx
test rcx, rcx
cmove rax, r14
je 0x14009399d
mov edi, 0x104
lea rcx, [rbp + 0x140]
lea rcx, [rcx + rax*2]
sub rdi, rax
je 0x14009398e
lea rsi, [0x1401b7674]
mov eax, r15d
sub rsi, rcx
nop dword [rax]
test rax, rax
je 0x14009398e
movzx edx, word [rsi + rcx]
test dx, dx
je 0x14009398e
mov word [rcx], dx
dec rax
add rcx, 2
sub rdi, 1
jne 0x140093970
test rdi, rdi
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r14w
mov r8, r12
lea rcx, [rbp + 0x140]
mov edx, 0x208
call fcn.140025190
lea rcx, [rbp + 0x140]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140093a72
lea rax, [0x1401b7738]
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x20], rax
lea rcx, [rbp + 0x140]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x34], 0x104
mov edx, 0x104
mov qword [rsp + 0x28], rax
mov word [rsp + 0x38], r14w
call fcn.14003c814
mov rdx, rax
mov eax, dword [rsp + 0x34]
cmp edx, eax
jb 0x140093a0f
lea edx, [rax - 1]
mov rax, qword [rsp + 0x28]
lea r8d, [rdx + rdx]
mov ecx, r8d
lea rsi, [rbp + 0x140]
shr rcx, 2
mov rdi, rax
rep movsd dword [rdi], dword [rsi]
mov ecx, r8d
and ecx, 3
je 0x140093a47
and r8, 0xfffffffffffffffc
lea rsi, [rbp + 0x140]
add rsi, r8
lea rdi, [r8 + rax]
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x28]
mov ecx, edx
mov dword [rsp + 0x30], edx
mov word [rax + rcx*2], r14w
lea rax, [0x1401b7690]
mov rcx, qword [rsp + 0x28]
mov qword [rsp + 0x20], rax
call fcn.140011720
movzx edi, al
jmp 0x140093a75
mov dil, 1
mov eax, dword [rbp + 0x3a0]
mov edx, eax
test eax, eax
je 0x140093ace
cmp eax, 0x7fffffff
jbe 0x140093a8e
mov word [rbx], r14w
jmp 0x140093ace
sub r15, rax
lea rcx, [rbp + 0x140]
sub rcx, rbx
nop dword [rax + rax]
lea rax, [r15 + rdx]
test rax, rax
je 0x140093abf
movzx eax, word [rcx + rbx]
test ax, ax
je 0x140093abf
mov word [rbx], ax
add rbx, 2
sub rdx, 1
jne 0x140093aa0
test rdx, rdx
lea rcx, [rbx - 2]
cmovne rcx, rbx
mov word [rcx], r14w
mov r15, qword [rsp + 0x488]
mov rcx, qword [rbp + 0x380]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test dil, dil
setne r14b
mov eax, r14d
jmp 0x140093af1
xor eax, eax
mov rbx, qword [rsp + 0x490]
add rsp, 0x450
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140093b10
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x240
mov rbx, r8
lea rcx, [rsp + 0x30]
mov edi, edx
mov r8d, 0x208
xor edx, edx
call fcn.14014e180
test rbx, rbx
je 0x140093c0a
mov rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], 0
jne 0x140093b44
cmp eax, 1
jb 0x140093c0a
xor r9d, r9d
lea rdx, [rsp + 0x30]
mov r8d, edi
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x140093c0a
mov r8d, 0x104
lea rax, [rsp + 0x30]
mov ecx, r8d
cmp word [rax], 0
je 0x140093b90
add rax, 2
sub rcx, 1
jne 0x140093b80
xor r10d, r10d
mov rax, r8
sub rax, rcx
test rcx, rcx
cmove rax, r10
je 0x140093bee
lea rcx, [rsp + 0x30]
lea rcx, [rcx + rax*2]
sub r8, rax
je 0x140093bdf
lea r9, [0x1401b7674]
mov eax, 0x7ffffffe
sub r9, rcx
nop
test rax, rax
je 0x140093bdf
movzx edx, word [r9 + rcx]
test dx, dx
je 0x140093bdf
mov word [rcx], dx
dec rax
add rcx, 2
sub r8, 1
jne 0x140093bc0
test r8, r8
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r10w
mov r8, rbx
lea rcx, [rsp + 0x30]
mov edx, 0x208
call fcn.140025190
lea rdx, [rsp + 0x30]
call fcn.140092fb0
mov rbx, qword [rsp + 0x250]
add rsp, 0x240
pop rdi
ret

Function at 0x140093d00
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push rbx
sub rsp, 0x430
mov rbx, rdx
test rdx, rdx
jne 0x140093d1c
xor eax, eax
add rsp, 0x430
pop rbx
ret
lea rax, [rsp + 0x20]
mov qword [rsp + 0x440], rdi
mov r8, rbx
lea rcx, [rsp + 0x20]
sub r8, rax
mov edx, 0x208
nop dword [rax]
lea rax, [rdx + 0x7ffffdf6]
test rax, rax
je 0x140093d63
movzx eax, word [r8 + rcx]
test ax, ax
je 0x140093d63
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x140093d40
lea rax, [rcx - 2]
test rdx, rdx
cmovne rax, rcx
xor edi, edi
lea rcx, [rsp + 0x20]
mov word [rax], di
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
lea rax, [rsp + rcx*2 + 0x1e]
lea rcx, [rsp + 0x20]
cmp rax, rcx
jbe 0x140093dd6
cmp word [rax], 0x5c
lea rcx, [rsp + 0x20]
je 0x140093da6
sub rax, 2
cmp rax, rcx
ja 0x140093d90
jmp 0x140093dd6
mov word [rax], di
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140093dd6
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140093dd6
lea rdx, [rsp + 0x20]
lea rcx, [0x14021bde8]
call fcn.140093d00
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rdi, qword [rsp + 0x440]
cmp eax, 0xffffffff
jne 0x140093e00
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
add rsp, 0x430
pop rbx
ret
mov eax, 1
add rsp, 0x430
pop rbx
ret
Function at 0x1400ad6f0
Capabilities:
Check for software breakpoints

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], r9
push rsi
push rdi
push r12
push r13
push r14
push r15
mov r15d, dword [rcx + 0xec90]
xor eax, eax
movzx ebp, dl
movzx r13d, r8b
mov edi, 0x50
mov r14, r9
mov r10, rcx
mov r11d, eax
mov esi, eax
mov edx, edi
mov ebx, r15d
mov r12d, eax
mov r8d, eax
cmp bpl, 0xcc
jne 0x1400ad76e
mov ecx, r13d
sub ecx, 0x15
je 0x1400ad754
sub ecx, 0x95
je 0x1400ad754
sub ecx, 1
je 0x1400ad754
cmp ecx, 2
jne 0x1400ad775
mov eax, 1
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x48]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
lea eax, [rbp + 0x40]
test al, 0xef
jne 0x1400ad754
mov rax, qword [r10 + 0x146f8]
test rax, rax
je 0x1400ad754
cmp dword [rax], 0xa
je 0x1400ad791
mov rax, qword [rax + 0x18]
test rax, rax
jne 0x1400ad781
jmp 0x1400ad754
mov r9, qword [rax + 8]
test r9, r9
je 0x1400ad8da
mov r14d, edx
test r8d, r8d
jne 0x1400ad8cc
movzx eax, word [r9]
cmp eax, 0x1e
ja 0x1400ad8bf
mov edx, dword [r10 + 0xec30]
mov ecx, eax
test edx, edx
je 0x1400ad7cd
bt edx, eax
jb 0x1400ad8bf
sub ecx, 0x15
je 0x1400ad809
sub ecx, 2
je 0x1400ad7fd
sub ecx, 1
je 0x1400ad7f1
cmp ecx, 1
jne 0x1400ad8bf
mov edx, 0xd3
mov ecx, 0x42
jmp 0x1400ad813
mov edx, 0xd2
mov ecx, 0x30
jmp 0x1400ad813
mov edx, 0x20e
mov ecx, 0x20
jmp 0x1400ad813
mov edx, 0xd1
mov ecx, 0x1c
test r11d, r11d
jne 0x1400ad82e
cmp word [r10 + 0xecb8], cx
ja 0x1400ad82e
movzx eax, cx
cmp edi, eax
jbe 0x1400ad82e
mov r11d, edx
mov edi, eax
test ebx, ebx
jne 0x1400ad83d
cmp word [r10 + 0xecb8], cx
cmove ebx, edx
test esi, esi
je 0x1400ad849
movzx eax, cx
cmp r14d, eax
jbe 0x1400ad859
cmp word [r10 + 0xecb8], cx
ja 0x1400ad859
mov esi, edx
movzx r14d, cx
cmp bpl, 0xc0
jne 0x1400ad889
lea eax, [r13 - 7]
cmp eax, 0xa8
ja case.0x1400ad887.11
lea r8, [0x140000000]
cdqe
movzx eax, byte [r8 + rax + 0xad944]
mov ecx, dword [r8 + rax*4 + 0xad93c]
add rcx, r8
jmp rcx
cmp bpl, 0xcc
jne 0x1400ad8bf
mov ecx, r13d
sub ecx, 0x13
je case.0x1400ad887.7
sub ecx, 1
je case.0x1400ad887.7
sub ecx, 0x94
je case.0x1400ad887.7
cmp ecx, 1
je case.0x1400ad887.7
mov r8d, 1
jmp 0x1400ad8bf
xor r8d, r8d
cmp r15d, edx
lea r12d, [r8 + 1]
sete r8b
mov r9, qword [r9 + 8]
test r9, r9
jne 0x1400ad7a1
mov dword [rsp + 0x40], r14d
mov edx, dword [rsp + 0x40]
mov r14, qword [rsp + 0x50]
mov ecx, r15d
mov dword [r14], ecx
test r15d, r15d
jne 0x1400ad8fb
movzx eax, word [r10 + 0xecb8]
cmp edi, eax
jne 0x1400ad8fb
lea r8d, [r15 + 1]
mov dword [r14], r11d
mov ecx, r11d
test ecx, ecx
jne 0x1400ad91c
mov dword [r14], ebx
lea r8d, [rcx + 1]
mov ecx, ebx
test ebx, ebx
jne 0x1400ad91c
xor eax, eax
mov ecx, eax
cmp edi, edx
jne 0x1400ad91e
mov dword [r14], r11d
mov ecx, r11d
jmp 0x1400ad91e
xor eax, eax
test ecx, ecx
jne 0x1400ad932
mov ecx, esi
mov dword [r14], esi
test ecx, ecx
jne 0x1400ad932
test r12d, r12d
cmovne r8d, eax
mov eax, r8d
jmp 0x1400ad759