joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001276c
Capabilities:
Enumerate processes
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x140046010]
xor rax, rsp
mov qword [rsp + 0x270], rax
call fcn.1400016e0
mov rcx, rax
test rax, rax
je 0x1400128a9
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x14001405b.0]
add rax, 0x18
mov qword [rsp + 0x20], rax
mov r8d, 0x57b
lea rdx, str.CrashSender_d.exe
lea rcx, [rsp + 0x20]
call fcn.1400047d8
mov dword [rsp + 0x30], 0x238
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
mov rbx, qword [rsp + 0x20]
cmp eax, 1
jne 0x140012857
jmp 0x140012844
mov rdx, rbx
lea rcx, [rsp + 0x5c]
call fcn.140021aec
test eax, eax
jne 0x140012844
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r8d, dword [rsp + 0x38]
cmp r8d, eax
je 0x140012844
xor edx, edx
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
mov edx, 1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
je 0x1400127fe
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140012882
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14001405b.0]
xor eax, eax
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400169c0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
mov ecx, 0x80004005
call fcn.140001558
int3

Function at 0x140015038
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rbx, rcx
call fcn.140014f3c
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call fcn.140024acc
mov rcx, rsi
call fcn.1400237f8
cmp eax, 0xffffffff
jne 0x14001508d
mov rcx, rsi
call fcn.1400235c8
test eax, eax
je 0x14001508d
mov edx, 5
mov rcx, rbx
xor r9d, r9d
xor r8d, r8d
call fcn.1400151d0
jmp 0x140015105
xor edx, edx
mov rcx, rsi
lea r8d, [rdx + 2]
call fcn.140024acc
mov rcx, rsi
call fcn.1400240a4
xor r8d, r8d
xor edx, edx
mov rcx, rsi
mov rdi, rax
call fcn.140024acc
cmp rdi, 0xffffffffffffffff
jae 0x140015078
test rdi, rdi
jne 0x1400150c3
lea edx, [rdi + 0xd]
jmp 0x14001507d
lea rcx, [rdi + 1]
call fcn.1400171b8
mov r9, rsi
mov qword [rbx + 0x98], rax
mov r8, rdi
mov edx, 1
mov rcx, rax
call fcn.140024344
mov rcx, rbx
cmp rax, rdi
je 0x1400150f5
mov edx, 5
jmp 0x140015080
mov rax, qword [rbx + 0x98]
mov byte [rdi + rax], 0
call fcn.1400152d0
mov eax, dword [rbx + 0x6c]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400154f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov r9, qword [rcx + 0x78]
mov rdi, r8
mov rsi, rdx
test r9, r9
je 0x14001551d
mov edx, 1
mov rcx, rsi
call fcn.140023b50
jmp 0x140015542
add rcx, 0x110
mov edx, edi
call fcn.140015e30
mov r8, rdi
mov rdx, rsi
mov rbx, rax
lea rcx, [rax - 1]
call fcn.140018f40
mov byte [rbx + rdi - 1], 0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14001596c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp byte [rcx + 8], 0
mov rdi, rdx
mov rbx, rcx
je 0x14001598d
mov dl, 0x3e
mov byte [rcx + 8], 0
call fcn.140015554
cmp dword [rbx + 0x84], 0
jge 0x1400159c5
cmp byte [rbx + 0x70], 0
jne 0x1400159c5
cmp byte [rbx + 0x89], 0
jne 0x1400159c5
mov dl, 0xa
mov rcx, rbx
call fcn.140015554
mov rax, qword [rbx]
mov rcx, rbx
mov edx, dword [rbx + 0x80]
mov rax, qword [rax + 0x58]
call qword [case.0x14001405b.0]
mov r8d, 2
mov byte [rbx + 0x70], 0
lea rdx, [0x140040570]
mov rcx, rbx
call fcn.1400154f0
or r8, 0xffffffffffffffff
inc r8
cmp byte [rdi + r8], 0
jne 0x1400159e2
mov rdx, rdi
mov rcx, rbx
call fcn.1400154f0
mov r8d, 2
lea rdx, [0x1400405cc]
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1400154f0
Function at 0x1413544b4
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1413544be
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x1413544e7
pop rbp
sub rbp, 0x33
sub rbp, 0x13544b4
sub rsp, 0x20
jmp 0x141354506
mov rax, 0x13544b4
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffffbe197879
xor byte [rax], dl
inc rax
dec rcx
jne 0x141354525
jmp 0x14135453c
xor eax, esi
nop
invalid
Function at 0x140001000
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor edi, edi
mov dword [rsp + 0x50], ecx
mov ebx, edi
lea rsi, [0x140005798]
nop dword [rax]
mov r9d, 0xf003f
mov qword [rsp + 0x20], rsi
xor r8d, r8d
lea rdx, str.SoftwareGoodixFPSessionDetection
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [0x140005794], eax
test eax, eax
je 0x140001074
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 3
jl 0x140001030
mov eax, dword [0x140005794]
cmp eax, 2
jne 0x1400010b4
mov qword [rsp + 0x40], rdi
lea rdx, str.SoftwareGoodixFPSessionDetection
mov qword [rsp + 0x38], rsi
xor r9d, r9d
mov qword [rsp + 0x30], rdi
xor r8d, r8d
mov dword [rsp + 0x28], 0xf003f
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [0x140005794], eax
test eax, eax
jne 0x1400010f2
mov rcx, qword [0x140005798]
test rcx, rcx
je 0x14000110b
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SessionDetection
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [0x140005794], eax
mov rcx, qword [0x140005798]
test rcx, rcx
je 0x14000110b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [0x140005798], rdi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140001410
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x140002c10
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x140007600], rbx
je 0x140002c5c
cmp rax, rbx
jne 0x140002c4f
mov ebx, 1
mov esi, ebx
jmp 0x140002c61
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x140002c34
mov ebx, 1
mov eax, dword [0x140007608]
cmp eax, ebx
jne 0x140002c77
mov ecx, 0x1f
call fcn.140097000
jmp 0x140002cdc
mov eax, dword [0x140007608]
test eax, eax
jne 0x140002cd6
mov dword [0x140007608], ebx
lea r15, [0x1400043a0]
lea rdi, [0x140004388]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140002cc8
test eax, eax
jne 0x140002ccc
cmp qword [rdi], 0
je 0x140002cbd
mov rax, qword [rdi]
mov rcx, qword [vtable.H_MA8HI.0]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x140002c9e
test eax, eax
je 0x140002cdc
mov eax, 0xff
jmp 0x140002db8
mov dword [0x140007034], ebx
mov eax, dword [0x140007608]
cmp eax, ebx
jne 0x140002d03
lea rdx, [0x140004380]
lea rcx, [0x140004370]
call sub.msvcrt.dll__initterm
mov dword [0x140007608], 2
test esi, esi
jne 0x140002d10
xor eax, eax
xchg qword [0x140007600], rax
cmp qword [0x140007610], 0
je 0x140002d44
lea rcx, [0x140007610]
call fcn.140003280
test eax, eax
je 0x140002d44
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140007610]
mov r9, qword [vtable.H_MA8HI.0]
call r9
mov r8, qword [0x140007048]
mov rdx, qword [0x140007040]
mov ecx, dword [0x140007038]
call fcn.140002724
mov dword [0x140007030], eax
cmp dword [0x140007050], 0
jne 0x140002d74
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140007034], 0
jne 0x140002d89
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140007030]
jmp 0x140002db8
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.140003314
add rsp, 0x28
jmp 0x140002c10

Function at 0x14000316c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400031b8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400031b0
cmp dword [rcx + 0x3c], edx
jl 0x1400031b0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1400031b0
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x1400031b8
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140d54058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140d541df
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 0x140d54089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140d5406f
add dl, dl
jne 0x140d54096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140d540f6
xor eax, eax
add dl, dl
jne 0x140d540a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140d541ad
add dl, dl
jne 0x140d540b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d540c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d540d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d540dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140d540ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140d5407e
mov eax, 1
add dl, dl
jne 0x140d54106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d54113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140d540fb
sub eax, ebx
mov ebx, 1
jne 0x140d5414c
mov ecx, 1
add dl, dl
jne 0x140d5412e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140d5413b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140d54123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140d5407e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140d54168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140d54175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140d5415d
cmp eax, 0x7d00
jae 0x140d5419b
cmp eax, 0x500
jb 0x140d54196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140d5407e
cmp eax, 0x7f
ja 0x140d5419e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140d5407e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140d541d2
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 0x140d5407e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400013b0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
xor eax, eax
mov rsi, rcx
mov r8, rcx
mov dword [rsp + 0x28], eax
xor edx, edx
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
lea r9d, [rax - 1]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
test eax, eax
js 0x140001468
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x140001468
mov qword [rsp + 0x40], rbx
call qword [sym.imp.USER32.dll_EmptyClipboard]
lea ecx, [rdi + 1]
movsxd rdx, ecx
mov ecx, 0x2042
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbx, rax
test rax, rax
je 0x14000145d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x14000145d
mov dword [rsp + 0x28], edi
mov r9d, 0xffffffff
mov r8, rsi
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, rbx
mov ecx, 0xd
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140001480
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x140006040]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rsi, rcx
mov qword [rsp + 0x28], rcx
xor r14d, r14d
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r14
xor r8d, r8d
lea rdx, [0x140004520]
lea rcx, [rsp + 0x30]
call fcn.1400020d0
nop
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x14000162a
lea ecx, [r14 + 1]
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rbp, rax
test rax, rax
jne 0x140001558
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], r14
mov qword [rsi + 0x18], r14
xor r8d, r8d
lea rdx, [0x140004520]
mov rcx, rsi
call fcn.1400020d0
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x14000163b
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000154e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400015bf
call fcn.14000279c
jmp 0x14000163b
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
jne 0x1400015c6
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], r14
mov qword [rsi + 0x18], r14
xor r8d, r8d
lea rdx, [0x140004520]
mov rcx, rsi
call fcn.1400020d0
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x14000163b
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000154e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000154e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rdi, 0xffffffffffffffff
nop dword [rax]
inc rdi
cmp byte [rax + rdi], 0
jne 0x1400015d0
mov rcx, qword [rsp + 0x48]
cmp rdi, rcx
ja 0x14000160b
lea rbx, [rsp + 0x30]
cmp rcx, 0xf
cmova rbx, qword [rsp + 0x30]
mov qword [rsp + 0x40], rdi
mov r8, rdi
mov rdx, rax
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + rdi], 0
jmp 0x14000161b
mov r9, rax
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.140002260
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call qword [sym.imp.USER32.dll_CloseClipboard]
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [rsi + 0x10], xmm1
mov rax, rsi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140002430
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x140002f20
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002f6a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140002f6a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002f6a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002f6a
cmp dword [rcx + 0x84], 0xe
jbe 0x140002f6a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002f6c
xor al, al
add rsp, 0x28
ret
Function at 0x140025d70
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x468
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], 2
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x20], rax
xor esi, esi
mov r14d, 0xffffffff
xor edi, edi
xor r15d, r15d
cmp r8, 0x201
jae 0x140025df0
jmp 0x140025ddf
jae 0x140025e94
cmp r8, 0x201
jae 0x140025df0
mov r12d, 0x200
lea r13, [rsp + 0x68]
mov rbp, r8
jmp 0x140025e37
sub r8, r15
sub rdi, r15
cmp rdi, r8
jae 0x140025e17
lea rcx, [rsp + 0x30]
mov rdx, r15
call fcn.140010e40
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rsi, qword [rsp + 0x38]
cmp rsi, r14
mov r15d, 0xffffffff
cmovb r15, rsi
mov qword [rsp + 0x40], r15
mov rdi, rsi
mov r12, r15
mov r13, qword [rsp + 0x20]
mov rbp, r15
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov ecx, ebp
mov rdx, r13
call sub.KERNEL32.dll_GetCurrentDirectoryW
mov ebx, eax
test eax, eax
jne 0x140025e5b
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x140025ef2
mov r8d, ebx
cmp rbp, r8
jne 0x140025dd0
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x140025f12
add rbp, rbp
cmp rbp, r14
cmovae rbp, r14
mov r8, rbp
cmp r8, 0x201
jb 0x140025ddf
jmp 0x140025df0
cmp r12, r8
jb 0x140025f2c
lea rcx, [rsp + 0x48]
mov rdx, r13
call fcn.140033890
movups xmm0, xmmword [rsp + 0x48]
movups xmm1, xmmword [rsp + 0x58]
mov rdi, qword [rsp + 0x28]
movups xmmword [rdi + 0x10], xmm1
movups xmmword [rdi], xmm0
test rsi, rsi
je 0x140025edb
add rsi, rsi
mov r8d, 2
mov rcx, qword [rsp + 0x20]
mov rdx, rsi
call fcn.140001da0
mov rax, rdi
add rsp, 0x468
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rdi, qword [rsp + 0x28]
mov qword [rdi], rax
mov byte [rdi + 0x18], 2
test rsi, rsi
jne 0x140025ec5
jmp 0x140025edb
lea rcx, [0x1400c3760]
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.1400998d0
jmp 0x140025f41
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r12
mov r8, rax
call fcn.14009ff90
ud2
Function at 0x14003c600
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
mov eax, 0x1078
call fcn.1400bc9f0
sub rsp, rax
movaps xmmword [rsp + 0x1060], xmm6
mov rsi, rdx
mov rdi, rcx
lea rbx, [rsp + 0x60]
mov r8d, 0x1000
mov rcx, rbx
xor edx, edx
call sub.msvcrt.dll_memset
mov dword [rsp + 0x34], 0
xorps xmm6, xmm6
movaps xmmword [rsp + 0x40], xmm6
mov qword [rsp + 0x50], 0
lea r13, [rsp + 0x34]
mov qword [rsp + 0x58], r13
lea rbp, [0x14004aff0]
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x40]
mov rcx, rdi
mov rdx, rbx
mov r8d, 0x1000
call sub.KERNEL32.dll_ReadFileEx
test eax, eax
je 0x14003c795
lea rbx, [rsp + 0x40]
lea r14, [rsp + 0x60]
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.dll_SleepEx
cmp dword [rsp + 0x34], 0
je 0x14003c693
cmp dword [rsp + 0x38], 0
jne 0x14003c79a
mov r15d, dword [rsp + 0x3c]
test r15, r15
je 0x14003c79a
cmp r15d, 0x1000
ja 0x14003c7da
xor r12d, r12d
nop word cs:[rax + rax]
cmp r12, r15
ja 0x14003c7c6
lea rdx, [rsp + r12]
add rdx, 0x60
mov r8d, r15d
sub r8d, r12d
mov dword [rsp + 0x34], 0
movaps xmmword [rsp + 0x40], xmm6
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x20], rbp
mov rcx, rsi
mov r9, rbx
call sub.KERNEL32.dll_WriteFileEx
test eax, eax
je 0x14003c795
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.dll_SleepEx
cmp dword [rsp + 0x34], 0
je 0x14003c730
cmp dword [rsp + 0x38], 0
jne 0x14003c79a
mov eax, dword [rsp + 0x3c]
add r12, rax
cmp r12, r15
jne 0x14003c6e0
mov dword [rsp + 0x34], 0
movaps xmmword [rsp + 0x40], xmm6
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x20], rbp
mov rcx, rdi
mov rdx, r14
mov r8d, 0x1000
mov r9, rbx
call sub.KERNEL32.dll_ReadFileEx
test eax, eax
jne 0x14003c693
call sub.KERNEL32.dll_GetLastError
mov rcx, rdi
call fcn.1400bcd74
mov rcx, rsi
call fcn.1400bcd74
movaps xmm6, xmmword [rsp + 0x1060]
add rsp, 0x1078
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r8, str.library_std_src_syswindowspipe.rs
mov rcx, r12
mov rdx, r15
call fcn.1400a0010
jmp 0x14003c7ee
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
mov rcx, r15
call fcn.14009ff90
ud2
Function at 0x140043650
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.1400528c0
mov rax, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
test rax, rax
je 0x140043705
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x38]
lea rdx, [rsp + 0x20]
mov r8b, 1
call fcn.140049920
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
test rdi, rdi
je 0x140043705
mov rcx, rdi
xor edx, edx
call sub.KERNEL32.dll_CreateDirectoryW
test eax, eax
je 0x1400436da
test rsi, rsi
je 0x1400436d6
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call fcn.140001da0
xor esi, esi
jmp 0x140043705
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rsi, rsi
je 0x140043702
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call fcn.140001da0
mov rsi, rbx
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret

Function at 0x140046290
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x1400c7ae0]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x1400462d4
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtReadFile
cmp eax, 0x103
jne 0x140046331
mov rcx, rdi
mov edx, 0xffffffff
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x140046340
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x140046377
cmp eax, 0x103
je 0x140046381
test eax, eax
js 0x14004635d
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x140046377
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, [0x1400c7b48]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140031120
mov rcx, rax
call fcn.140007290
mov ecx, 7
int 0x29
ud2