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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x14022b800]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, r8
mov r12, rdx
mov rbp, rcx
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x40], r8
xor esi, esi
mov dword [rsp + 0x20], esi
mov qword [rdx], rsi
mov qword [rdx + 0x10], rsi
mov qword [rdx + 0x18], 7
mov word [rdx], si
xor r8d, r8d
lea rdx, [0x1401c16d8]
mov rcx, r12
call fcn.140005060
mov dword [rsp + 0x20], 1
cmp qword [rbp + 0x10], rsi
jne 0x1401061e7
cmp qword [rbp + 0x50], rsi
jne 0x1401061e7
mov rcx, rbp
call fcn.140106370
cmp qword [rdi + 0x18], 8
jb 0x1401061fe
mov rbx, qword [rdi]
mov rcx, qword [rdi + 0x10]
lea r15, [rbx + rcx*2]
mov r14, rbx
jmp 0x14010620c
mov rax, qword [rdi + 0x10]
lea r15, [rdi + rax*2]
mov rbx, rdi
mov r14, rdi
cmp rbx, r15
je 0x14010622a
sub r14, rbx
movzx ecx, word [rbx]
call fcn.140156bbc
mov word [r14 + rbx], ax
add rbx, 2
cmp rbx, r15
jne 0x140106214
cmp qword [r12 + 0x10], 0
jne 0x140106345
cmp qword [rbp + 0x50], 0
je 0x1401062a7
mov rax, qword [rbp + 0x48]
mov rbx, qword [rax]
cmp rbx, rax
je 0x1401062a7
nop dword [rax]
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14010625d
mov rdx, qword [rdi]
lea rcx, [rbx + 0x10]
cmp qword [rcx + 0x18], 8
jb 0x14010626b
mov rcx, qword [rcx]
xor r8d, r8d
call fcn.140106de0
test al, al
jne 0x140106285
mov rax, qword [rbx]
mov rbx, rax
cmp rax, qword [rbp + 0x48]
jne 0x140106250
jmp 0x1401062a7
lea r8, [rbx + 0x30]
cmp r12, r8
je 0x1401062a7
mov rdx, r8
cmp qword [r8 + 0x18], 8
jb 0x14010629b
mov rdx, qword [r8]
mov r8, qword [r8 + 0x10]
mov rcx, r12
call fcn.140005060
cmp qword [r12 + 0x10], 0
jne 0x140106345
cmp qword [rbp + 0x10], 0
je 0x140106345
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x1401062cb
mov rdx, qword [rdi]
movabs r9, 0xcbf29ce484222325
mov rcx, qword [rdi + 0x10]
add rcx, rcx
je 0x140106303
movabs r8, 0x100000001b3
nop dword [rax + rax]
movzx eax, byte [rsi + rdx]
xor r9, rax
imul r9, r8
inc rsi
cmp rsi, rcx
jb 0x1401062f0
mov r8, rdi
lea rdx, [rsp + 0x30]
mov rcx, rbp
call fcn.140008a10
mov r8, qword [rax + 8]
test r8, r8
je 0x140106345
cmp r8, qword [rbp + 8]
je 0x140106345
add r8, 0x30
cmp r12, r8
je 0x140106345
mov rdx, r8
cmp qword [r8 + 0x18], 8
jb 0x140106338
mov rdx, qword [r8]
mov r8, qword [r8 + 0x10]
mov rcx, r12
call fcn.140005060
nop
mov rcx, rdi
call fcn.140004ff0
mov rax, r12
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14014f2f0
add rsp, 0x50
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140107c30
Capabilities:
Hash data using fnv

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
mov r15, r8
mov r14, rdx
mov rsi, rcx
movzx edi, byte [r8]
movabs rax, 0xcbf29ce484222325
xor rdi, rax
movabs rcx, 0x100000001b3
imul rdi, rcx
movzx eax, byte [r8 + 1]
xor rdi, rax
imul rdi, rcx
movzx eax, byte [r8 + 2]
xor rdi, rax
imul rdi, rcx
movzx eax, byte [r8 + 3]
xor rdi, rax
imul rdi, rcx
mov rdx, rdi
and rdx, qword [rsi + 0x30]
add rdx, rdx
mov rcx, qword [rsi + 0x18]
mov rax, qword [rcx + rdx*8 + 8]
lea r12, [rsi + 8]
mov rbp, qword [r12]
cmp rax, rbp
je 0x140107ce2
mov rdx, qword [rcx + rdx*8]
mov ecx, dword [r8]
cmp ecx, dword [rax + 0x10]
je 0x140107cc5
cmp rax, rdx
je 0x140107cdf
mov rax, qword [rax + 8]
cmp ecx, dword [rax + 0x10]
jne 0x140107cb7
mov qword [r14], rax
mov byte [r14 + 8], 0
mov rax, r14
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rbp, rax
movabs rax, 0xaaaaaaaaaaaaaaa
cmp qword [rsi + 0x10], rax
je 0x140107e5a
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x28], 0
mov ecx, 0x18
call fcn.14014f310
mov rbx, rax
mov qword [rsp + 0x28], rax
mov eax, dword [r15]
mov dword [rbx + 0x10], eax
mov byte [rbx + 0x14], 0
mov rdx, qword [rsi + 0x10]
lea rcx, [rdx + 1]
xorps xmm0, xmm0
test rcx, rcx
js 0x140107d37
cvtsi2ss xmm0, rcx
jmp 0x140107d4c
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
mov rcx, qword [rsi + 0x38]
xorps xmm1, xmm1
test rcx, rcx
js 0x140107d5f
cvtsi2ss xmm1, rcx
jmp 0x140107d74
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm1, rax
addss xmm1, xmm1
divss xmm0, xmm1
comiss xmm0, dword [rsi]
seta al
test al, al
je 0x140107df1
mov rcx, rsi
call fcn.14005b5e0
mov rax, rdi
and rax, qword [rsi + 0x30]
add rax, rax
mov r8, qword [rsi + 0x18]
mov rcx, qword [r8 + rax*8 + 8]
mov rdx, qword [r12]
cmp rcx, rdx
jne 0x140107db6
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x28], 0
jmp 0x140107ddd
mov rdx, qword [r8 + rax*8]
mov eax, dword [rbx + 0x10]
cmp eax, dword [rcx + 0x10]
je 0x140107dd0
cmp rcx, rdx
je 0x140107e26
mov rcx, qword [rcx + 8]
cmp eax, dword [rcx + 0x10]
jne 0x140107dc2
mov rax, qword [rcx]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rcx
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
mov rdx, qword [rsi + 0x10]
mov rbp, qword [rsp + 0x20]
mov rcx, qword [rbp + 8]
lea rax, [rdx + 1]
mov qword [rsi + 0x10], rax
mov qword [rbx], rbp
mov qword [rbx + 8], rcx
mov qword [rcx], rbx
mov qword [rbp + 8], rbx
mov rax, qword [rsi + 0x18]
and rdi, qword [rsi + 0x30]
add rdi, rdi
mov rdx, qword [rax + rdi*8]
cmp rdx, qword [r12]
jne 0x140107e36
mov qword [rax + rdi*8], rbx
jmp 0x140107e48
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], 0
jmp 0x140107ddd
cmp rdx, rbp
jne 0x140107e41
mov qword [rax + rdi*8], rbx
jmp 0x140107e4d
cmp qword [rax + rdi*8 + 8], rcx
jne 0x140107e4d
mov qword [rax + rdi*8 + 8], rbx
mov qword [r14], rbx
mov byte [r14 + 8], 1
jmp 0x140107ccd
lea rcx, str.unordered_map_set_too_long
call fcn.140128aa0
int3
Function at 0x14010a300
Capabilities:
Hash data using fnv

Disassembly:
movzx r9d, byte [r8]
movabs rcx, 0x100000001b3
mov r10, rdx
movabs rax, 0xcbf29ce484222325
mov rdx, qword [0x14023d820]
xor r9, rax
movzx eax, byte [r8 + 1]
imul r9, rcx
xor r9, rax
movzx eax, byte [r8 + 2]
imul r9, rcx
xor r9, rax
movzx eax, byte [r8 + 3]
imul r9, rcx
xor r9, rax
imul r9, rcx
and rdx, r9
mov r9, qword [0x14023d7f8]
shl rdx, 4
add rdx, qword [0x14023d808]
mov rax, qword [rdx + 8]
cmp rax, r9
je 0x14010a390
mov ecx, dword [r8]
mov rdx, qword [rdx]
cmp ecx, dword [rax + 0x10]
je 0x14010a384
cmp rax, rdx
je 0x14010a390
mov rax, qword [rax + 8]
cmp ecx, dword [rax + 0x10]
jne 0x14010a376
test rax, rax
je 0x14010a390
mov qword [r10], rax
mov rax, r10
ret
mov qword [r10], r9
mov rax, r10
ret
Function at 0x14010a690
Capabilities:
Hash data using fnv

Disassembly:
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov edi, 1
bsr rcx, rax
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x14010a850
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x14023d7f8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [0x14023d808]
lea rdx, [rdi + rdi]
call fcn.1400088d0
mov rcx, qword [0x14023d7f8]
lea r9, [rdi - 1]
mov qword [0x14023d820], r9
mov qword [0x14023d828], rdi
mov rcx, qword [rcx]
mov rdx, rcx
cmp rcx, rbx
je 0x14010a845
mov qword [rsp + 0x40], rsi
movabs rdi, 0x100000001b3
movabs rsi, 0xcbf29ce484222325
nop word [rax + rax]
movzx eax, byte [rcx + 0x11]
movzx r11d, byte [rcx + 0x10]
mov rdx, qword [rdx]
xor r11, rsi
imul r11, rdi
xor r11, rax
movzx eax, byte [rcx + 0x12]
imul r11, rdi
xor r11, rax
movzx eax, byte [rcx + 0x13]
imul r11, rdi
xor r11, rax
imul r11, rdi
and r11, r9
shl r11, 4
add r11, qword [0x14023d808]
mov r10, qword [r11]
cmp r10, rbx
jne 0x14010a782
mov qword [r11], rcx
mov qword [r11 + 8], rcx
jmp 0x14010a806
mov rax, qword [r11 + 8]
mov r9d, dword [rcx + 0x10]
cmp r9d, dword [rax + 0x10]
jne 0x14010a7bf
mov r10, qword [rax]
cmp r10, rcx
je 0x14010a7b9
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], r10
mov rax, qword [r10 + 8]
mov qword [rax], rcx
mov qword [r10 + 8], r8
mov qword [rdx + 8], r9
mov qword [rcx + 8], rax
mov qword [r11 + 8], rcx
jmp 0x14010a806
mov r8, rax
cmp r10, rax
je 0x14010a7e2
nop word [rax + rax]
mov rax, qword [rax + 8]
mov r8, rax
cmp r9d, dword [rax + 0x10]
je 0x14010a81a
cmp r10, rax
jne 0x14010a7d0
mov r10, qword [rcx + 8]
mov qword [r10], rdx
mov r9, qword [rdx + 8]
mov qword [r9], r8
mov rax, qword [r8 + 8]
mov qword [rax], rcx
mov qword [r8 + 8], r9
mov qword [rdx + 8], r10
mov qword [rcx + 8], rax
mov qword [r11], rcx
mov rcx, rdx
cmp rdx, rbx
je 0x14010a840
mov r9, qword [0x14023d820]
jmp 0x14010a730
mov r10, qword [rax]
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], r10
mov rax, qword [r10 + 8]
mov qword [rax], rcx
mov qword [r10 + 8], r8
mov qword [rdx + 8], r9
mov qword [rcx + 8], rax
jmp 0x14010a806
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
lea rcx, str.invalid_hash_bucket_count
call fcn.140128aa0
int3
Function at 0x14010aed0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x270
mov rax, qword [0x14022b800]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov ebp, edx
mov rdi, rcx
xor r15d, r15d
mov qword [rcx], r15
mov qword [rcx + 8], r15
call fcn.140061c90
mov rcx, rax
lea rdx, [rsp + 0x28]
call fcn.140023930
nop
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rdx, qword [rsp + 0x28]
lea r8, str.dvrres_image.dll
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
xor edx, edx
lea r8d, [r15 + 0x40]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
test rax, rax
jne 0x14010af60
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
jmp 0x14010af63
mov rbx, rsi
movzx edx, bp
lea r8, [0x1401ef298]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbp, rax
test rax, rax
je 0x14010b039
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r14, rax
test rax, rax
je 0x14010b039
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rcx, rax
mov edx, ebx
call qword [sym.imp.SHLWAPI.dll_SHCreateMemStream]
mov qword [rdi + 8], rax
test rax, rax
je 0x14010b039
mov ecx, 0x18
call qword [sym.imp.gdiplus.dll_GdipAlloc]
mov rbx, rax
mov qword [rsp + 0x20], rax
test rax, rax
je 0x14010b028
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rax
mov rcx, qword [rdi + 8]
lea rax, vtable.Gdiplus::Bitmap.0
mov qword [rbx], rax
mov qword [rsp + 0x20], r15
lea rdx, [rsp + 0x20]
call qword [sym.imp.gdiplus.dll_GdipCreateBitmapFromStream]
mov dword [rbx + 0x10], eax
mov rax, qword [rsp + 0x20]
mov qword [rbx + 8], rax
mov qword [rdi], rbx
test rbx, rbx
je 0x14010b02b
mov eax, dword [rbx + 0x10]
mov dword [rbx + 0x10], r15d
test eax, eax
jne 0x14010b039
jmp 0x14010b02b
mov qword [rdi], r15
mov rcx, qword [rdi + 8]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov qword [rdi + 8], r15
test rsi, rsi
je 0x14010b048
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rcx, [rsp + 0x28]
call fcn.140004ff0
mov rax, rdi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14014f2f0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x270
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14010c2d0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x14022b800]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov esi, edx
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x234
call fcn.140152140
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rdi
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x14010c34b
nop word [rax + rax]
cmp dword [rsp + 0x28], esi
lea rdx, [rsp + 0x20]
mov rcx, rdi
cmove ebx, dword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x14010c330
mov eax, ebx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14014f2f0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14010e950
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r15, r8
mov r14, rdx
mov rsi, rcx
movzx edi, byte [r8]
movabs rax, 0xcbf29ce484222325
xor rdi, rax
movabs rcx, 0x100000001b3
imul rdi, rcx
movzx eax, byte [r8 + 1]
xor rdi, rax
imul rdi, rcx
movzx eax, byte [r8 + 2]
xor rdi, rax
imul rdi, rcx
movzx eax, byte [r8 + 3]
xor rdi, rax
imul rdi, rcx
mov rdx, rdi
and rdx, qword [rsi + 0x30]
add rdx, rdx
mov rcx, qword [rsi + 0x18]
mov rax, qword [rcx + rdx*8 + 8]
lea r12, [rsi + 8]
mov rbp, qword [r12]
cmp rax, rbp
je 0x14010ea14
mov rdx, qword [rcx + rdx*8]
mov ecx, dword [r8]
cmp ecx, dword [rax + 0x10]
je 0x14010e9ee
nop dword [rax]
cmp rax, rdx
je 0x14010ea11
mov rax, qword [rax + 8]
cmp ecx, dword [rax + 0x10]
jne 0x14010e9e0
mov qword [r14], rax
mov byte [r14 + 8], 0
mov rax, r14
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rbp, rax
movabs rax, 0x7ffffffffffffff
cmp qword [rsi + 0x10], rax
je 0x14010eb84
mov qword [rsp + 0x20], r12
xor r13d, r13d
mov qword [rsp + 0x28], r13
lea ecx, [r13 + 0x20]
call fcn.14014f310
mov rbx, rax
mov qword [rsp + 0x28], rax
mov eax, dword [r15]
mov dword [rbx + 0x10], eax
mov qword [rbx + 0x18], r13
mov rdx, qword [rsi + 0x10]
lea rcx, [rdx + 1]
xorps xmm0, xmm0
test rcx, rcx
js 0x14010ea67
cvtsi2ss xmm0, rcx
jmp 0x14010ea7c
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
mov rcx, qword [rsi + 0x38]
xorps xmm1, xmm1
test rcx, rcx
js 0x14010ea8f
cvtsi2ss xmm1, rcx
jmp 0x14010eaa4
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm1, rax
addss xmm1, xmm1
divss xmm0, xmm1
comiss xmm0, dword [rsi]
seta al
test al, al
je 0x14010eb1f
mov rcx, rsi
call fcn.14005b5e0
mov rax, rdi
and rax, qword [rsi + 0x30]
add rax, rax
mov r8, qword [rsi + 0x18]
mov rcx, qword [r8 + rax*8 + 8]
mov rdx, qword [r12]
cmp rcx, rdx
jne 0x14010eae2
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x28], r13
jmp 0x14010eb0b
mov rdx, qword [r8 + rax*8]
mov eax, dword [rbx + 0x10]
cmp eax, dword [rcx + 0x10]
je 0x14010eafe
nop
cmp rcx, rdx
je 0x14010eb54
mov rcx, qword [rcx + 8]
cmp eax, dword [rcx + 0x10]
jne 0x14010eaf0
mov rax, qword [rcx]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rcx
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
mov rdx, qword [rsi + 0x10]
mov rbp, qword [rsp + 0x20]
mov rcx, qword [rbp + 8]
lea rax, [rdx + 1]
mov qword [rsi + 0x10], rax
mov qword [rbx], rbp
mov qword [rbx + 8], rcx
mov qword [rcx], rbx
mov qword [rbp + 8], rbx
mov rax, qword [rsi + 0x18]
and rdi, qword [rsi + 0x30]
add rdi, rdi
mov rdx, qword [rax + rdi*8]
cmp rdx, qword [r12]
jne 0x14010eb60
mov qword [rax + rdi*8], rbx
jmp 0x14010eb72
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], r13
jmp 0x14010eb0b
cmp rdx, rbp
jne 0x14010eb6b
mov qword [rax + rdi*8], rbx
jmp 0x14010eb77
cmp qword [rax + rdi*8 + 8], rcx
jne 0x14010eb77
mov qword [rax + rdi*8 + 8], rbx
mov qword [r14], rbx
mov byte [r14 + 8], 1
jmp 0x14010e9f6
lea rcx, str.unordered_map_set_too_long
call fcn.140128aa0
int3
Function at 0x14010ed30
Capabilities:
Get disk information
Get process image filename

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x690
mov rax, qword [0x14022b800]
xor rax, rsp
mov qword [rsp + 0x680], rax
mov r14, rcx
mov qword [rsp + 0x38], rcx
xor edi, edi
mov dword [rsp + 0x30], edi
mov r8d, edx
xor edx, edx
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x14010ed9b
mov r8d, 0x104
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [r14], rdi
mov qword [r14 + 0x10], rdi
mov qword [r14 + 0x18], 7
mov word [r14], di
lea rax, [rsp + 0x50]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], di
jne 0x14010edc0
lea rdx, [rsp + 0x50]
mov rcx, r14
call fcn.140005060
mov dword [rsp + 0x30], 3
xor sil, sil
cmp qword [r14 + 0x10], 0
jbe 0x14010ef2d
mov r15, r14
cmp qword [r14 + 0x18], 8
jb 0x14010edfa
mov r15, qword [r14]
mov word [rsp + 0x50], di
lea rdx, [rsp + 0x50]
mov ecx, 0x103
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x14010ef2d
mov eax, dword [0x1401f6d68]
mov dword [rsp + 0x40], eax
movzx eax, word [0x1401f6d6c]
mov word [rsp + 0x44], ax
lea rbx, [rsp + 0x50]
movzx eax, word [rsp + 0x50]
nop word [rax + rax]
mov word [rsp + 0x40], ax
mov r8d, 0x104
lea rdx, [rsp + 0x260]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x14010ef10
lea rax, [rsp + 0x260]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x14010ee75
cmp r8, 0x104
jae 0x14010ef10
lea rdi, [r15 + r8*2]
cmp word [rdi], 0x5c
jne 0x14010eeb0
lea rdx, [rsp + 0x260]
mov rcx, r15
call fcn.140173aa0
test eax, eax
jne 0x14010eeb0
mov sil, 1
jmp 0x14010eeb3
xor sil, sil
test sil, sil
je 0x14010ef10
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x40]
lea r8, str._s_s
mov edx, 0x104
lea rcx, [rsp + 0x470]
call fcn.140104f00
lea rax, [rsp + 0x470]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x14010eef0
lea rdx, [rsp + 0x470]
mov rcx, r14
call fcn.140005060
nop dword [rax + rax]
movzx ecx, word [rbx]
add rbx, 2
test cx, cx
jne 0x14010ef10
test sil, sil
jne 0x14010ef2d
movzx eax, word [rbx]
test ax, ax
jne 0x14010ee40
mov rax, r14
mov rcx, qword [rsp + 0x680]
xor rcx, rsp
call fcn.14014f2f0
lea r11, [rsp + 0x690]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x140168d18
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, [0x14023cd30]
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 0x140168d76
cmp word [rdx], r12w
jne 0x140168d76
or byte [rax + r8*8 + 0x38], cl
jmp 0x140168d7c
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x140168ed7
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x140168eb2
lea r9, [rcx + 2]
cmp ax, r13w
je 0x140168db5
mov rcx, r9
jmp 0x140168dd8
cmp r9, rdx
jae 0x140168def
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 0x140168d99
jmp 0x140168ed7
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 0x140168eac
cmp dword [rsp + 0x80], edi
je 0x140168eac
mov rdx, r14
lea r11, [0x14023cd30]
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 0x140168e85
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x140168e58
mov word [rbx], r12w
jmp 0x140168ed3
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 0x140168e61
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x140168ed3
cmp word [rsp + 0x70], r12w
jne 0x140168e92
cmp rbx, rsi
je 0x140168e52
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.140168c74
cmp word [rsp + 0x70], r12w
je 0x140168ed7
mov word [rbx], r13w
jmp 0x140168ed3
lea r11, [0x14023cd30]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140168ecf
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x140168ed7
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 0x14016e3d4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14014ffe0
sub rsp, rax
mov rax, qword [0x14022b800]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14017f3ac
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14016e423
mov rax, rbp
jmp 0x14016e52b
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x23cd30]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140168c6c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x23cd30]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14016e527
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14016e527
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140168c6c
test rax, rax
js 0x14016e527
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14016e527
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14016e519
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14016e519
cmp byte [rcx], 0xd
jne 0x14016e4ff
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14016e50e
cmp byte [rcx + 1], 0xa
jne 0x14016e50e
inc rcx
jmp 0x14016e50e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x22b850]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14016e4e1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14016e52b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14014f2f0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140180118
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140168c74
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140168c74
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140180268
cmp rax, 0xffffffffffffffff
je 0x140180268
xor edi, edi
test rbp, rbp
jle 0x140180213
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14017ab4c
mov rbx, rax
test rax, rax
jne 0x1401801a0
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140180209
mov edx, 0x8000
mov ecx, r14d
call fcn.140178b6c
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14016a3ac
cmp eax, 0xffffffff
je 0x1401801e9
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1401801b0
mov edx, r15d
mov ecx, r14d
call fcn.140178b6c
jmp 0x140180209
cmp byte [rsi + 0x38], dil
je 0x140180200
cmp dword [rsi + 0x34], 5
jne 0x140180200
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140180209
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140178e5c
jmp 0x14018027c
jns 0x14018027c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140168c74
cmp rax, 0xffffffffffffffff
jne 0x140180234
cmp byte [rsi + 0x30], dil
je 0x14018027c
mov edi, dword [rsi + 0x2c]
jmp 0x14018027c
mov ecx, r14d
call fcn.14017ff6c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14018027c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x14018027c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140180275
mov eax, dword [rsi + 0x2c]
jmp 0x14018027a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140168c74
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret