joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401b84d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x68
in al, dx
push 0x246c8d48
invalid
mov rsi, rcx
lea rcx, [rbp - 0x28]
call fcn.1401ba170
mov rcx, qword [rbp - 0x28]
mov rax, qword [rbp - 0x20]
movabs r14, 0x8000000000000000
cmp rcx, r14
jne 0x1401b850e
mov qword [rbp - 8], rax
mov qword [rbp - 0x10], r14
jmp 0x1401b8534
mov rdx, qword [rbp - 0x18]
mov qword [rbp - 0x40], rcx
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], rdx
lea rcx, [rbp - 0x10]
lea rdx, [rbp - 0x40]
call fcn.1401b00c0
mov rdi, qword [rbp - 0x10]
cmp rdi, r14
jne 0x1401b854d
lea rcx, [rbp - 8]
call fcn.14019f740
mov qword [rsi], r14
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
mov rbx, qword [rbp - 8]
mov r15, qword [rbp]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1401b8570
mov qword [rsi], rdi
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r15
jmp 0x1401b8540
mov qword [rsi], r14
test rdi, rdi
je 0x1401b8540
add rdi, rdi
mov r8d, 2
mov rcx, rbx
mov rdx, rdi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
jmp fcn.140023340

Function at 0x1401bc3a0
Capabilities:
Resolve dns

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x208
lea rbp, [rsp + 0x80]
mov rax, rdx
mov rsi, rcx
mov rdx, qword [rdx]
mov rdi, qword [rax + 8]
movzx eax, word [rax + 0x10]
mov word [rbp + 0x186], ax
mov eax, dword [0x1402ff138]
cmp eax, 4
jne 0x1401bc4d0
lea rax, [rbp + 0x186]
mov qword [rbp + 0x170], rax
cmp rdi, 0x17f
ja 0x1401bc4f6
lea rbx, [rbp - 0x60]
mov rcx, rbx
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbp + rdi - 0x60], 0
inc rdi
lea rcx, [rbp + 0x158]
mov rdx, rbx
mov r8, rdi
call fcn.1401c84b0
cmp qword [rbp + 0x158], 0
je 0x1401bc43f
lea rax, [0x140290590]
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x1401bc4c1
mov rcx, qword [rbp + 0x160]
xorps xmm0, xmm0
movaps xmmword [rbp + 0x120], xmm0
movaps xmmword [rbp + 0x140], xmm0
movaps xmmword [rbp + 0x130], xmm0
mov dword [rbp + 0x128], 1
mov qword [rbp + 0x178], 0
lea r8, [rbp + 0x120]
lea r9, [rbp + 0x178]
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x1401bc4a2
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x1401bc4ba
mov rax, qword [rbp + 0x178]
movzx ecx, word [rbp + 0x186]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
mov rax, rsi
add rsp, 0x208
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov rbx, rdx
call fcn.1401db7f0
mov rdx, rbx
lea rax, [rbp + 0x186]
mov qword [rbp + 0x170], rax
cmp rdi, 0x17f
jbe 0x1401bc3f5
lea r9, [rbp + 0x170]
mov rcx, rsi
mov r8, rdi
call fcn.1401db840
jmp 0x1401bc4c1
Function at 0x1401bc640
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbp
push rsi
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
mov rax, rdx
mov rsi, rcx
xorps xmm0, xmm0
movaps xmmword [rbp + 0x10], xmm0
movaps xmmword [rbp], xmm0
movaps xmmword [rbp - 0x10], xmm0
movaps xmmword [rbp - 0x20], xmm0
movaps xmmword [rbp - 0x30], xmm0
movaps xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x50], xmm0
movaps xmmword [rbp - 0x60], xmm0
mov dword [rbp + 0x34], 0x80
lea rdx, [rbp - 0x60]
lea r8, [rbp + 0x34]
mov rcx, rax
call qword [sym.imp.ws2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x1401bc6ca
mov eax, dword [rbp + 0x34]
movzx ecx, word [rbp - 0x60]
cmp ecx, 0x17
je 0x1401bc6da
cmp ecx, 2
jne 0x1401bc718
cmp eax, 0xf
jbe 0x1401bc732
movzx eax, word [rbp - 0x5e]
rol ax, 8
mov ecx, dword [rbp - 0x5c]
mov word [rsi], 0
mov word [rsi + 6], ax
mov dword [rsi + 2], ecx
jmp 0x1401bc728
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
jmp 0x1401bc71f
cmp eax, 0x1b
jbe 0x1401bc74a
movzx eax, word [rbp - 0x5e]
rol ax, 8
mov ecx, dword [rbp - 0x5c]
mov edx, dword [rbp - 0x48]
movups xmm0, xmmword [rbp - 0x58]
movups xmmword [rbp + 0x24], xmm0
mov word [rsi], 1
movups xmm0, xmmword [rbp + 0x22]
movups xmmword [rsi + 2], xmm0
movzx r8d, word [rbp + 0x32]
mov word [rsi + 0x12], r8w
mov dword [rsi + 0x14], ecx
mov dword [rsi + 0x18], edx
mov word [rsi + 0x1c], ax
jmp 0x1401bc728
lea rax, str.invalid_argument____
mov qword [rsi + 8], rax
mov word [rsi], 2
add rsp, 0xb8
pop rsi
pop rbp
ret
lea rcx, str.assertion_failed:_len___mem::size_of::_c::sockaddr_in___library_std_src_sys_common_net.rs
lea r8, [0x140291fb8]
mov edx, 0x39
call fcn.1401dd1f0
lea rcx, str.assertion_failed:_len___mem::size_of::_c::sockaddr_in6___
lea r8, [0x140292010]
mov edx, 0x3a
call fcn.1401dd1f0
int3
Function at 0x1401cf6a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
test r8, r8
je 0x1401cf72a
mov rax, rdx
mov rdx, qword [rbp + 0x50]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x1401cf720
cmp r10, r11
jb 0x1401cf7a6
cmp r10, rdx
ja 0x1401cf7b8
add r11, r9
xor ebx, ebx
nop word cs:[rax + rax]
cmp rdi, rbx
je 0x1401cf722
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x1401cf700
jmp 0x1401cf787
ja 0x1401cf72a
mov r11, r10
cmp rax, r8
jne 0x1401cf6c7
mov rdx, qword [rbp + 0x60]
test rdx, rdx
je 0x1401cf78b
mov r8, qword [rbp + 0x58]
add rdx, r8
movzx ecx, cx
mov al, 1
nop
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x1401cf760
mov r8, r10
sub ecx, r9d
jns 0x1401cf77e
jmp 0x1401cf78d
cmp r10, rdx
je 0x1401cf79a
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x1401cf78d
xor al, 1
cmp r8, rdx
jne 0x1401cf740
jmp 0x1401cf78d
xor eax, eax
jmp 0x1401cf78d
mov al, 1
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.1401dd0d0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.1401dd6f0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.1401dd680
int3

Function at 0x1401d21a0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401d21ea
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401d21ea
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401d21ea
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401d21ea
cmp dword [rcx + 0x84], 0xe
jbe 0x1401d21ea
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1401d21ec
xor al, al
add rsp, 0x28
ret
Function at 0x1401da880
Capabilities:
Link many functions at runtime

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x70
lea rbp, [rsp + 0x70]
mov qword [rbp - 8], 0xfffffffffffffffe
lea rcx, [0x140256945]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x1401da8e3
mov rdi, rax
lea rdx, [0x140256966]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1401da8e3
mov rsi, rax
lea rdx, [0x140256974]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1401da8e3
mov r14, rax
xor ebx, ebx
jmp 0x1401da969
lea rcx, [0x140256900]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x1401da9da
mov rsi, rax
lea rdx, str.NtCreateKeyedEvent
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1401da9da
mov rdi, rax
lea rdx, str.NtReleaseKeyedEvent
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1401da9da
mov rbx, rax
lea rdx, str.NtWaitForKeyedEvent
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1401da9da
mov rsi, rax
lea rcx, [rbp - 0x48]
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call rdi
test eax, eax
jne 0x1401da9da
mov r14, qword [rbp - 0x48]
movzx eax, byte [0x1402ff001]
mov ecx, 0x18
mov edx, 8
call fcn.140023330
test rax, rax
je 0x1401daa0c
mov rdi, rax
mov qword [rax], rbx
mov qword [rax + 8], rsi
mov qword [rax + 0x10], r14
xor eax, eax
lock cmpxchg qword [0x1402ff048], rdi
je 0x1401da9cc
mov rsi, rax
cmp qword [rdi], 0
je 0x1401da9b6
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x18
mov r8d, 8
mov rcx, rdi
call fcn.140023340
mov rdi, rsi
mov rax, rdi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rax, str.parking_lot_requires_either_NT_Keyed_Events__WinXP__or_WaitOnAddress_WakeByAddress__Win8_
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], 1
mov qword [rbp - 0x38], 8
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
lea rdx, str.C:Usersdevo.cargo_registry_srcindex.crates.io_6f17d22bba15001fparking_lot_core_0.9.10_src_thread_parkerwindowsmod.rs
lea rcx, [rbp - 0x48]
call fcn.1401dd150
mov qword [rbp - 0x10], r14
mov qword [rbp - 0x18], rbx
mov ecx, 8
mov edx, 0x18
call fcn.1401dcf00
ud2
Function at 0x1401db840
Capabilities:
Resolve dns

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov r14, r9
mov rsi, rcx
lea rcx, [rbp - 0x28]
call fcn.1401c40d0
mov rdx, qword [rbp - 0x28]
movabs rax, 0x8000000000000000
cmp rdx, rax
jne 0x1401db8c9
mov rdi, qword [rbp - 0x20]
mov rbx, qword [rbp - 0x18]
xorps xmm0, xmm0
movaps xmmword [rbp - 0x60], xmm0
movaps xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x50], xmm0
mov dword [rbp - 0x58], 1
mov qword [rbp - 8], 0
lea r8, [rbp - 0x60]
lea r9, [rbp - 8]
mov rcx, rdi
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x1401db8fc
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x1401db910
lea rax, [0x140290590]
mov qword [rsi + 8], rax
mov qword [rsi], 1
test rdx, rdx
je 0x1401db930
mov rcx, qword [rbp - 0x20]
mov r8d, 1
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
jmp fcn.140023340
mov rcx, qword [r14]
mov rax, qword [rbp - 8]
movzx ecx, word [rcx]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
mov byte [rdi], 0
test rbx, rbx
je 0x1401db930
mov r8d, 1
mov rcx, rdi
mov rdx, rbx
call fcn.140023340
nop
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
Function at 0x140134175
Capabilities:
Access peb ldr_data
Execute syscall
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
div edi
syscall
movabs r8, 0x1f090900000201e9
cmp rbp, rbp
lea r13d, [rdi + 0xa0ec]
rcr ecx, 0xd1
rcr edx, 0
call fcn.140133992

Function at 0x140135310
Capabilities:
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
xchg r9, rdx
mov qword [rsp + 0x20], rdx
xchg r9, rdx
xchg r9, r8
mov qword [rsp + 0x18], r9
xchg r8, r9
mov dword [rsp + 0x10], edx
je 0x140135367
jne 0x140135367
jle 0x1401354df
mul r12
cmp ebp, 0x3898b980
add r9d, 0x730535ab
cmp rdx, rbx
cmp r10, rbp
jge 0x1401356ad
ror r11d, 0x1c
test r15, rdx
bswap r9
dec r13
jmp rax
jmp 0x140135385
mov qword [rsp + 8], rcx
sub rsp, 0x28
lea rax, [0x1401355c0]
xchg rcx, rax
mov qword [rsp + 0x18], rcx
xchg rcx, rax
mov dword [rsp + 8], 0
add byte [rbp + rcx*4 - 0x47], al
invalid
Function at 0x4062bc
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x004115d0]
xor rax, rsp
mov qword [rsp + 0x250], rax
lea rax, [rsp + 0x34]
movsxd rdi, edx
mov rbx, rcx
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
xor esi, esi
mov word [rcx], si
lea r9, [rsp + 0x30]
lea r8, [0x00409e78]
lea rdx, [0x00409e10]
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x34], 0x208
call sub.SHLWAPI.dll_SHGetValueW
cmp eax, esi
jne 0x40637d
cmp dword [rsp + 0x30], 1
jne 0x40637d
lea rax, [rsp + 0x40]
cmp word [rsp + 0x40], si
je 0x406357
cmp word [rax], 0x2c
je 0x406357
cmp word [rax], 0x3b
je 0x406357
mov rcx, rax
call qword [sym.imp.USER32.dll_CharNextW]
cmp word [rax], si
jne 0x40633d
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x38]
mov word [rax], si
call sub.MLANG.dll_Ordinal_123
cmp eax, esi
jl 0x40637d
lea r8, [rsp + 0x40]
mov rdx, rdi
mov rcx, rbx
call fcn.00402838
cmp si, word [rbx]
jne 0x406395
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov r8d, edi
mov rdx, rbx
mov ecx, eax
call sub.MLANG.dll_Ordinal_121
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.00403050
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x4068fc
Capabilities:
Query environment variable

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
sub rsp, 0x20
xor r12d, r12d
mov edi, r9d
mov rsi, r8
mov rbp, rdx
cmp rcx, r12
je 0x40692b
mov ebx, r12d
jmp 0x406957
mov r8d, edi
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebx, eax
cmp eax, edi
jbe 0x406952
cmp edi, r12d
je 0x40694d
lea eax, [rdi - 1]
mov word [rsi + rax*2], r12w
mov ebx, r12d
jmp 0x406965
cmp eax, r12d
jne 0x406965
mov rdx, rdi
mov r8, rbp
mov rcx, rsi
call fcn.00402838
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop r12
ret
mov r9d, r8d
mov r8, rdx
mov rdx, rcx
xor ecx, ecx
jmp 0x4068fc

Function at 0x406ae8
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, edx
mov rdx, rcx
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r11d, eax
xor eax, eax
cmp r11d, eax
jbe 0x406b0a
cmp r11d, ebx
jb 0x406b0f
mov eax, 0x7a
add rsp, 0x20
pop rbx
ret
Function at 0x1405872f0
Capabilities:
Encode data using base64

Disassembly:
ror dword [rsp + 9], 0x86
lea r11, [rsp + r11 + 0x10]
js 0x140590f0f
mov ecx, 0xfe3446a1
mov cx, word [rbx + riz]
mov r11d, 0x8b0d263c
mov qword [rsp], r11
add rbx, 2
bts r11w, r11w
sbb rdi, 2
add qword [rsp], 0xffffffffd2083b84
inc r11w
setle r11b
movzx r11d, word [rdi + riz]
sar word [rsp], 0x65
not byte [rsp + 4]
xor r11w, r8w
ror r11w, 1
shl dword [rsp + 1], 0x2a
neg r11w
shr qword [rsp], 0x33
inc r11w
sar word [rsp + 4], 0x21
push 0xffffffffd41e762e
rol r11w, 1
xor r8w, r11w
neg qword [rsp + 1]
jne 0x140555432
mov word [r11], cx
lea rsp, [rsp + 0x10]
js fcn.1405825a3

Function at 0x14059628c
Capabilities:
Encode data using base64

Disassembly:
dec di
mov qword [rsp], 0x6238a933
ror di, 1
dec di
sal qword [rsp], 0xab
rol byte [rsp + 2], 0x65
xor di, 0xdf20
sar word [rsp + 3], 0x49
jp 0x140596254
mov cx, word [r10 + rcx*2 - 0x32636c40]
jmp 0x14059061d
inc di
xor byte [rsp + 1], 0x1e
mov byte [rsp + 2], 0xba
xor di, 0xc900
neg word [rsp + 6]
shl word [rsp], 0x4e
xor r11w, di
sub dword [rsp], 0xb1866ca5
rol byte [rsp + 3], 0x47
lea rdi, [rsp + rdi + 8]
call fcn.140552d3d
push 0x72398c15
mov ecx, dword [r9]
neg word [rsp + 5]
setle byte [rsp]
mov edx, 0x429ec93
lea r9, [r9 + rdx*2 - 0x853d922]
adc dl, 0x9d
movzx edx, byte [rdi + rdx*2 - 0x853d860]
sal byte [rsp + 6], 0x64
adc dword [rsp + 2], 0x64090c0f
ja 0x14059482f
movzx ax, byte [r10]
Function at 0x1400024d0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rbx, rcx
mov r8, rcx
lea rdx, str._s.
lea rcx, [rbp + 0x80]
call fcn.140001020
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x80]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rdi, rax
xor esi, esi
movzx edx, byte [rsp + 0x6c]
movzx ecx, byte [rsp + 0x6d]
cmp dl, 0x2e
jne 0x14000255a
test cl, cl
je 0x1400026a1
cmp dl, dl
jne 0x14000255a
cmp cl, dl
jne 0x14000255a
cmp byte [rsp + 0x6e], 0
je 0x1400026a1
test byte [rsp + 0x40], 0x10
je 0x14000264a
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rsi
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rbx + r8], 0
jne 0x140002580
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.140005d90
nop
mov r8d, 1
lea rdx, [0x1400087c8]
lea rcx, [rsp + 0x20]
call fcn.140005670
lea rax, [rsp + 0x6c]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x1400025c0
lea rdx, [rsp + 0x6c]
lea rcx, [rsp + 0x20]
call fcn.140005670
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 0xf
cmova rcx, qword [rsp + 0x20]
call fcn.1400024d0
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 0xf
cmova rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x1400026a1
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002643
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400026e8
call fcn.140006ccc
jmp 0x1400026a1
mov ecx, dword [rsp + 0x5c]
shl rcx, 0x20
mov eax, dword [rsp + 0x60]
or rcx, rax
add qword [0x14000da88], rcx
lea r9, [rsp + 0x6c]
mov r8, rbx
lea rdx, str._s_s
lea rcx, [rbp + 0x80]
call fcn.140001020
test byte [rsp + 0x40], 1
je 0x140002694
mov edx, 0x80
lea rcx, [rbp + 0x80]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__chmod]
lea rcx, [rbp + 0x80]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x140002530
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.140006c70
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x1400046c0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x1400046e1
add rsp, 0x20
pop r15
pop rdi
pop rbx
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 + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14000470e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140004710
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140004769
test ecx, ecx
jle 0x140004749
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140004769
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140004769
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
Function at 0x140004790
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 0x1400047b2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x1400047c1
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 0x1400047e4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400047e6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140004822
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x1400048be
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000485d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14000489e
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]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x1400048be
cmp rbx, rax
ja 0x140004870
test rbx, rbx
je 0x1400048be
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]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
adc bh, bl
invalid
Function at 0x140004d20
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140004d4d
xor eax, eax
jmp 0x140004eb9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140004d87
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140004d87
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140004eb9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140004eac
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140004dca
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140004df5
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140004eb1
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140004e64
sub eax, 1
je 0x140004e64
cmp eax, 2
jne 0x140004eac
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140004eb1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140004e92
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x140004eac
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140004eb1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140006c70
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret