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

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x59bb85
test al, 1
je 0x59bba4
test al, 2
jne 0x59bbb9
xor rax, 3
add rsp, 0x28
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x00679f80]
mov edx, 0x23
jmp 0x59bbcc
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x00679f40]
mov edx, 0x25
call fcn.00464920
ud2

Function at 0x59c4b2
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov ebx, edx
call fcn.0059b046
mov rcx, qword [rax]
movzx eax, bl
lea r9, [rsp + 0x2c]
mov dword [r9], eax
mov dword [rsp + 0x20], 4
mov edx, 6
mov r8d, 1
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x59c4ed
xor eax, eax
jmp 0x59c4fa
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x30
pop rbx
ret
Function at 0x59c755
Capabilities:
Send data
Send data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov rbp, r9
mov rbx, r8
mov r14, rdx
mov qword [rsp + 0x28], rcx
mov rax, qword [rsp + 0xc0]
lea rdi, [rsp + 0x3a]
lea r15, [rdx + 0x18]
xor ecx, ecx
cmp qword [rdx + 0x18], 0xffffffffffffffff
cmove r15, rcx
mov r12d, 0x7fffffff
cmp rax, r12
cmovb r12, rax
lea r13, [rsp + 0x52]
lea rsi, [rsp + 0x30]
mov qword [rsp + 0x40], r15
mov rdx, qword [r14 + 0x10]
mov rcx, rsi
mov r8, rbx
call fcn.0059c4aa
mov al, byte [rsp + 0x39]
cmp al, 3
je 0x59c8c4
mov rcx, qword [rsp + 0x30]
cmp al, 2
je 0x59c8d2
mov dl, byte [rsp + 0x38]
movzx r8d, word [rdi + 4]
mov word [r13 + 4], r8w
mov r8d, dword [rdi]
mov dword [r13], r8d
mov qword [rsp + 0x48], rcx
mov byte [rsp + 0x50], dl
mov byte [rsp + 0x51], al
mov rcx, r15
lea rdx, str._usr_local_cargo_registry_src_index.crates.io_6f17d22bba15001f_tokio_1.32.0_src_io_poll_evented.rs
call fcn.0059b064
mov rcx, qword [r15]
mov rdx, rbp
mov r8d, r12d
xor r9d, r9d
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
jne 0x59c8e4
call sub.WS2_32.dll_WSAGetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rcx, rsi
call fcn.004a28a0
cmp al, 0xd
jne 0x59c894
mov rax, qword [r15 + 8]
test rax, rax
je 0x59c894
mov rcx, qword [rax]
mov rdx, qword [rax + 8]
lock inc qword [rdx]
jle 0x59c916
mov r15, r14
mov r14, rbx
add rcx, 0x10
mov r8, qword [rax + 0x10]
mov r9b, byte [rax + 0x18]
call fcn.004a2778
mov rbx, rax
xor ecx, ecx
call fcn.0055b978
test rbx, rbx
je 0x59c889
mov ecx, 1
mov rdx, rsi
call fcn.004a28fc
mov rsi, rbx
mov rbx, r14
mov r14, r15
mov r15, qword [rsp + 0x40]
mov rcx, rsi
call fcn.0044d3d8
cmp al, 0xd
jne 0x59c8f5
mov qword [rsp + 0x30], rsi
mov rcx, r14
lea rdx, [rsp + 0x48]
call fcn.0059c23f
lea rsi, [rsp + 0x30]
mov rcx, rsi
call fcn.00596b39
jmp 0x59c7ab
mov rax, qword [rsp + 0x28]
mov qword [rax], 2
jmp 0x59c905
mov rax, qword [rsp + 0x28]
mov qword [rax], 1
mov qword [rax + 8], rcx
jmp 0x59c905
cdqe
mov rcx, qword [rsp + 0x28]
and qword [rcx], 0
mov qword [rcx + 8], rax
jmp 0x59c905
mov rax, qword [rsp + 0x28]
mov qword [rax], 1
mov qword [rax + 8], rsi
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2

Function at 0x59c94e
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
lea rcx, [0x005ab200]
call fcn.0047906d
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x59c97d
mov rdi, rax
cmp qword [rax + 8], 0
je 0x59c97d
add rdi, 8
jmp 0x59c9ef
lea rdi, [0x005ab200]
mov rcx, rdi
call fcn.0047906d
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x59c9ed
mov rsi, rax
test rax, rax
jne 0x59c9cd
mov ecx, 0x10
mov edx, 8
call fcn.004ad1f5
mov rsi, rax
mov qword [rax], rdi
and qword [rax + 8], 0
mov rcx, rdi
call fcn.0047906d
mov ecx, eax
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
lea rdi, [rsi + 8]
call fcn.00599dc8
mov rdx, qword [rsi + 8]
lea rcx, [rsp + 0x20]
mov qword [rcx], rdx
mov qword [rsi + 8], rax
call fcn.00599dfc
jmp 0x59c9ef
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x5a797d
Capabilities:
Get session user name

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rsi, rcx
lea rdx, [rsp + 0x2c]
and dword [rdx], 0
xor r15d, r15d
xor ecx, ecx
call sub.ADVAPI32.dll_GetUserNameW
test eax, eax
jne 0x5a7a4c
lea r14, [rsp + 0x2c]
mov ecx, dword [r14]
call fcn.005a782a
mov rbx, rax
mov rdi, rdx
mov rax, rdx
shr rax, 0x20
neg rax
sbb r15d, r15d
or r15d, edi
mov dword [r14], r15d
mov rcx, rbx
mov rdx, r14
call sub.ADVAPI32.dll_GetUserNameW
test eax, eax
je 0x5a79f8
mov eax, dword [rsp + 0x2c]
lea r8, [rax - 1]
test rax, rax
cmove r8, rax
lea rcx, [rsp + 0x30]
mov rdx, rbx
call fcn.00561110
jmp 0x5a7a27
mov ecx, 7
call fcn.00555c28
mov dword [rax], 0x6e6b6e75
mov dword [rax + 3], 0x6e776f6e
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x40], 7
mov byte [rsp + 0x48], 1
mov rcx, rbx
mov rdx, rdi
call fcn.005a7885
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.005a789b
nop
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
lea rcx, [0x0069f2cf]
lea r8, [0x0069f348]
mov edx, 0x19
call fcn.00464920
ud2

Function at 0x5a7a66
Capabilities:
Get hostname

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rsi, rcx
lea r14, [rsp + 0x2c]
and dword [r14], 0
xor r15d, r15d
xor ecx, ecx
xor edx, edx
mov r8, r14
call sub.KERNEL32.dll_GetComputerNameExW
mov ecx, dword [r14]
call fcn.005a782a
mov rbx, rax
mov rdi, rdx
mov rax, rdx
shr rax, 0x20
neg rax
sbb r15d, r15d
or r15d, edi
mov dword [r14], r15d
xor ecx, ecx
mov rdx, rbx
mov r8, r14
call sub.KERNEL32.dll_GetComputerNameExW
test eax, eax
je 0x5a7ad2
mov r8d, dword [rsp + 0x2c]
lea rcx, [rsp + 0x30]
mov rdx, rbx
call fcn.00561110
jmp 0x5a7b05
mov ecx, 9
call fcn.00555c28
movabs rcx, 0x736f686c61636f6c
mov qword [rax], rcx
mov byte [rax + 8], 0x74
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x40], 9
mov byte [rsp + 0x48], 1
mov rcx, rbx
mov rdx, rdi
call fcn.005a7885
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.005a789b
nop
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x5a9870
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x006be804]
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
test esi, esi
jle 0x5a9a24
mov rax, qword [0x006be808]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x5a98bc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x5a9949
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x5a98a0
mov rcx, rbx
call fcn.005aa540
test rax, rax
mov r12, rax
je 0x5a9a59
mov rax, qword [0x006be808]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.005aa670
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x006be808]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x5a9a3c
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x5a9942
sub eax, 0x40
and eax, 0xffffffbf
jne 0x5a99c4
add dword [0x006be804], 1
cmp edi, 8
jae 0x5a9980
test dil, 4
jne 0x5a9a10
test edi, edi
je 0x5a996c
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x5a9a2b
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rbp]
mov qword [rbx], rax
mov eax, edi
mov rdx, qword [rbp + rax - 8]
mov qword [rbx + rax - 8], rdx
lea rax, [rbx + 8]
and rax, 0xfffffffffffffff8
sub rbx, rax
sub rbp, rbx
add ebx, edi
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x5a996c
and ebx, 0xfffffff8
xor edx, edx
mov ecx, edx
add edx, 8
mov r8, qword [rbp + rcx]
cmp edx, ebx
mov qword [rax + rcx], r8
jb 0x5a99b0
jmp 0x5a996c
add rsi, qword [0x006be808]
mov rcx, qword [rsp + 0x20]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x5a9942
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.005aa870
nop dword [rax + rax]
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x5a996c
xor esi, esi
jmp 0x5a98c7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x5a996c
mov rax, qword [0x006be808]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rsi + 0x18]
call fcn.005aa870
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.005aa870
nop
nop dword [rax]
Function at 0x5aa1b0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x006beae0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x006beac0]
test rbx, rbx
je 0x5aa204
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x5aa1fb
test rsi, rsi
je 0x5aa1fb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x5aa1e0
lea rcx, [0x006beae0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x5aa540
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x006a0680]
mov rdx, rcx
cmp word [r8], 0x5a4d
jne 0x5aa5ad
mov rcx, r8
call fcn.005aa420
test eax, eax
je 0x5aa5ad
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x5aa5ad
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x5aa5a4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x5aa5af
add rax, 0x28
cmp rax, r9
jne 0x5aa590
xor eax, eax
add rsp, 0x28
ret

Function at 0x5aa870
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x00401540]
jmp 0x401510
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.005aa840
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
mov r8d, 0x1b
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.005aa840
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x401530
Function at 0x18001488c
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x18000003c]
lea rsi, [0x180000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x180014904
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x180014904
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x180014904
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x1800148f8
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x180014916
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x1800148e6
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x180014906

Function at 0x180014dd0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180014df8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180014df8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x18090f000
Capabilities:
Decompress data using aplib

Disassembly:
jmp 0x18090f00a
jmp 0x18091100f
jmp fcn.1805f22c0
Function at 0x459a76
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov eax, dword [rbp + 0x20]
cmp eax, 0
jg 0x459a9e
jmp 0x459b48
mov rax, qword [rbp + 0x18]
mov qword [rbp - 8], rax
mov eax, dword [rbp + 0x20]
movsxd rax, eax
mov qword [rbp - 0x10], rax
movabs rax, 0
mov qword [rbp - 0x18], rax
call sub.msvcrt.dll___iob_func
add rax, 0x30
mov qword [rbp - 0x20], rax
mov eax, dword [rbp + 0x10]
cmp eax, 2
jne 0x459ae4
call sub.msvcrt.dll___iob_func
add rax, 0x60
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x10]
cmp rax, 0
jg 0x459af7
jmp 0x459b48
mov rax, qword [rbp - 0x20]
mov r9, rax
mov rax, qword [rbp - 0x10]
mov r8, rax
movabs rax, 1
mov r11, rax
mov rax, qword [rbp - 8]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_fwrite
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov rcx, qword [rbp - 8]
add rcx, rax
mov qword [rbp - 8], rcx
mov rax, qword [rbp - 0x10]
mov rcx, qword [rbp - 0x18]
sub rax, rcx
mov qword [rbp - 0x10], rax
jmp 0x459ae4
leave
ret

Function at 0x459a81
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov eax, dword [rbp + 0x20]
cmp eax, 0
jg 0x459a9e
jmp 0x459b48
mov rax, qword [rbp + 0x18]
mov qword [rbp - 8], rax
mov eax, dword [rbp + 0x20]
movsxd rax, eax
mov qword [rbp - 0x10], rax
movabs rax, 0
mov qword [rbp - 0x18], rax
call sub.msvcrt.dll___iob_func
add rax, 0x30
mov qword [rbp - 0x20], rax
mov eax, dword [rbp + 0x10]
cmp eax, 2
jne 0x459ae4
call sub.msvcrt.dll___iob_func
add rax, 0x60
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x10]
cmp rax, 0
jg 0x459af7
jmp 0x459b48
mov rax, qword [rbp - 0x20]
mov r9, rax
mov rax, qword [rbp - 0x10]
mov r8, rax
movabs rax, 1
mov r11, rax
mov rax, qword [rbp - 8]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_fwrite
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov rcx, qword [rbp - 8]
add rcx, rax
mov qword [rbp - 8], rcx
mov rax, qword [rbp - 0x10]
mov rcx, qword [rbp - 0x18]
sub rax, rcx
mov qword [rbp - 0x10], rax
jmp 0x459ae4
leave
ret
Function at 0x4be34a
Capabilities:
Read file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xb0
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov eax, dword [rbp + 0x18]
cmp eax, 0xffffffff
jne 0x4be3fe
lea rax, [0x005507d5]
mov qword [rbp - 0x28], rax
mov eax, 0
mov dword [rbp - 0x20], eax
mov eax, 1
mov dword [rbp - 0x1c], eax
mov eax, 0x10
mov r8, rax
lea rax, [rbp - 0x28]
mov r11, rax
lea rax, [rbp - 0x18]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
mov eax, 0
mov dword [rbp - 8], eax
movabs rax, 4
mov r8, rax
mov eax, 0
mov r11, rax
lea rax, [rbp - 4]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memset
mov rax, qword [rbp + 0x10]
mov ecx, 0x18
mov r8, rcx
lea rcx, [rbp - 0x18]
mov r11, rcx
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
jmp 0x4be58e
mov eax, dword [rbp + 0x20]
add eax, 1
movsxd rax, eax
mov r10, rax
mov rcx, r10
call fcn.00459eef
mov qword [rbp - 0x30], rax
mov eax, dword [rbp + 0x20]
mov r8, rax
mov rax, qword [rbp - 0x30]
mov r11, rax
mov eax, dword [rbp + 0x18]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll__read
mov dword [rbp - 0x34], eax
mov eax, dword [rbp - 0x34]
cmp eax, 0
jge 0x4be4e1
mov rax, qword [rbp - 0x30]
mov r10, rax
mov rcx, r10
call fcn.0045af21
lea rax, [0x005507d6]
mov qword [rbp - 0x60], rax
mov eax, 0
mov dword [rbp - 0x58], eax
mov eax, 1
mov dword [rbp - 0x54], eax
mov eax, 0x10
mov r8, rax
lea rax, [rbp - 0x60]
mov r11, rax
lea rax, [rbp - 0x50]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
mov eax, dword [rbp - 0x34]
mov dword [rbp - 0x40], eax
movabs rax, 4
mov r8, rax
mov eax, 0
mov r11, rax
lea rax, [rbp - 0x3c]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memset
mov rax, qword [rbp + 0x10]
mov ecx, 0x18
mov r8, rcx
lea rcx, [rbp - 0x50]
mov r11, rcx
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
jmp 0x4be58e
mov eax, dword [rbp - 0x34]
movsxd rax, eax
mov rcx, qword [rbp - 0x30]
add rcx, rax
mov eax, 0
mov byte [rcx], al
mov eax, dword [rbp - 0x34]
mov r8, rax
mov rax, qword [rbp - 0x30]
mov r11, rax
lea rax, [rbp - 0x88]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.00466e66
mov eax, 0x10
mov r8, rax
lea rax, [rbp - 0x88]
mov r11, rax
lea rax, [rbp - 0x78]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
mov eax, dword [rbp - 0x34]
mov dword [rbp - 0x68], eax
movabs rax, 4
mov r8, rax
mov eax, 0
mov r11, rax
lea rax, [rbp - 0x64]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memset
mov rax, qword [rbp + 0x10]
mov ecx, 0x18
mov r8, rcx
lea rcx, [rbp - 0x78]
mov r11, rcx
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
jmp 0x4be58e
leave
ret
Function at 0x4be355
Capabilities:
Read file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xb0
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov eax, dword [rbp + 0x18]
cmp eax, 0xffffffff
jne 0x4be3fe
lea rax, [0x005507d5]
mov qword [rbp - 0x28], rax
mov eax, 0
mov dword [rbp - 0x20], eax
mov eax, 1
mov dword [rbp - 0x1c], eax
mov eax, 0x10
mov r8, rax
lea rax, [rbp - 0x28]
mov r11, rax
lea rax, [rbp - 0x18]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
mov eax, 0
mov dword [rbp - 8], eax
movabs rax, 4
mov r8, rax
mov eax, 0
mov r11, rax
lea rax, [rbp - 4]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memset
mov rax, qword [rbp + 0x10]
mov ecx, 0x18
mov r8, rcx
lea rcx, [rbp - 0x18]
mov r11, rcx
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
jmp 0x4be58e
mov eax, dword [rbp + 0x20]
add eax, 1
movsxd rax, eax
mov r10, rax
mov rcx, r10
call fcn.00459eef
mov qword [rbp - 0x30], rax
mov eax, dword [rbp + 0x20]
mov r8, rax
mov rax, qword [rbp - 0x30]
mov r11, rax
mov eax, dword [rbp + 0x18]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll__read
mov dword [rbp - 0x34], eax
mov eax, dword [rbp - 0x34]
cmp eax, 0
jge 0x4be4e1
mov rax, qword [rbp - 0x30]
mov r10, rax
mov rcx, r10
call fcn.0045af21
lea rax, [0x005507d6]
mov qword [rbp - 0x60], rax
mov eax, 0
mov dword [rbp - 0x58], eax
mov eax, 1
mov dword [rbp - 0x54], eax
mov eax, 0x10
mov r8, rax
lea rax, [rbp - 0x60]
mov r11, rax
lea rax, [rbp - 0x50]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
mov eax, dword [rbp - 0x34]
mov dword [rbp - 0x40], eax
movabs rax, 4
mov r8, rax
mov eax, 0
mov r11, rax
lea rax, [rbp - 0x3c]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memset
mov rax, qword [rbp + 0x10]
mov ecx, 0x18
mov r8, rcx
lea rcx, [rbp - 0x50]
mov r11, rcx
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
jmp 0x4be58e
mov eax, dword [rbp - 0x34]
movsxd rax, eax
mov rcx, qword [rbp - 0x30]
add rcx, rax
mov eax, 0
mov byte [rcx], al
mov eax, dword [rbp - 0x34]
mov r8, rax
mov rax, qword [rbp - 0x30]
mov r11, rax
lea rax, [rbp - 0x88]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.00466e66
mov eax, 0x10
mov r8, rax
lea rax, [rbp - 0x88]
mov r11, rax
lea rax, [rbp - 0x78]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
mov eax, dword [rbp - 0x34]
mov dword [rbp - 0x68], eax
movabs rax, 4
mov r8, rax
mov eax, 0
mov r11, rax
lea rax, [rbp - 0x64]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memset
mov rax, qword [rbp + 0x10]
mov ecx, 0x18
mov r8, rcx
lea rcx, [rbp - 0x78]
mov r11, rcx
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
jmp 0x4be58e
leave
ret
Function at 0x4caa84
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xa0
mov qword [rbp + 0x10], rcx
lea rax, [0x00550b19]
mov qword [rbp - 0x30], rax
mov eax, 1
mov dword [rbp - 0x28], eax
mov eax, 1
mov dword [rbp - 0x24], eax
lea rax, [0x00550b1b]
mov qword [rbp - 0x40], rax
mov eax, 1
mov dword [rbp - 0x38], eax
mov eax, 1
mov dword [rbp - 0x34], eax
lea rax, [rsp + 0x20]
mov ecx, 0x10
mov r8, rcx
lea rcx, [rbp - 0x40]
mov r11, rcx
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
lea rax, [rsp + 0x30]
mov ecx, 0x10
mov r8, rcx
lea rcx, [rbp - 0x30]
mov r11, rcx
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
lea rax, [rsp + 0x40]
mov ecx, 0x10
mov r8, rcx
mov rcx, qword [rbp + 0x10]
mov r11, rcx
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x30]
lea r11, [rsp + 0x40]
lea rax, [rbp - 0x20]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.004679bd
mov eax, 0x10
mov r8, rax
lea rax, [rbp - 0x20]
mov r11, rax
lea rax, [rbp - 0x10]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
lea rax, [rsp + 0x20]
mov ecx, 0x10
mov r8, rcx
lea rcx, [rbp - 0x10]
mov r11, rcx
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
lea r10, [rsp + 0x20]
mov rcx, r10
call fcn.00476e52
mov r10, rax
mov rcx, r10
call sub.kernel32.dll_GetFileAttributesW
mov dword [rbp - 0x44], eax
mov eax, dword [rbp - 0x44]
cmp eax, 0xffffffff
jne 0x4cabcb
mov eax, 0
mov byte [rbp - 0x45], al
movzx eax, byte [rbp - 0x45]
jmp 0x4cabfc
mov eax, dword [rbp - 0x44]
and eax, 0x10
cmp eax, 0
je 0x4cabeb
mov eax, 1
mov byte [rbp - 0x46], al
movzx eax, byte [rbp - 0x46]
jmp 0x4cabfc
mov eax, 0
mov byte [rbp - 0x47], al
movzx eax, byte [rbp - 0x47]
jmp 0x4cabfc
leave
ret
Function at 0x4caa8f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xa0
mov qword [rbp + 0x10], rcx
lea rax, [0x00550b19]
mov qword [rbp - 0x30], rax
mov eax, 1
mov dword [rbp - 0x28], eax
mov eax, 1
mov dword [rbp - 0x24], eax
lea rax, [0x00550b1b]
mov qword [rbp - 0x40], rax
mov eax, 1
mov dword [rbp - 0x38], eax
mov eax, 1
mov dword [rbp - 0x34], eax
lea rax, [rsp + 0x20]
mov ecx, 0x10
mov r8, rcx
lea rcx, [rbp - 0x40]
mov r11, rcx
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
lea rax, [rsp + 0x30]
mov ecx, 0x10
mov r8, rcx
lea rcx, [rbp - 0x30]
mov r11, rcx
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
lea rax, [rsp + 0x40]
mov ecx, 0x10
mov r8, rcx
mov rcx, qword [rbp + 0x10]
mov r11, rcx
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x30]
lea r11, [rsp + 0x40]
lea rax, [rbp - 0x20]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.004679bd
mov eax, 0x10
mov r8, rax
lea rax, [rbp - 0x20]
mov r11, rax
lea rax, [rbp - 0x10]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
lea rax, [rsp + 0x20]
mov ecx, 0x10
mov r8, rcx
lea rcx, [rbp - 0x10]
mov r11, rcx
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
lea r10, [rsp + 0x20]
mov rcx, r10
call fcn.00476e52
mov r10, rax
mov rcx, r10
call sub.kernel32.dll_GetFileAttributesW
mov dword [rbp - 0x44], eax
mov eax, dword [rbp - 0x44]
cmp eax, 0xffffffff
jne 0x4cabcb
mov eax, 0
mov byte [rbp - 0x45], al
movzx eax, byte [rbp - 0x45]
jmp 0x4cabfc
mov eax, dword [rbp - 0x44]
and eax, 0x10
cmp eax, 0
je 0x4cabeb
mov eax, 1
mov byte [rbp - 0x46], al
movzx eax, byte [rbp - 0x46]
jmp 0x4cabfc
mov eax, 0
mov byte [rbp - 0x47], al
movzx eax, byte [rbp - 0x47]
jmp 0x4cabfc
leave
ret